diff --git a/keeperapi/package.json b/keeperapi/package.json index 68d5bde..a86f831 100644 --- a/keeperapi/package.json +++ b/keeperapi/package.json @@ -10,8 +10,8 @@ "scripts": { "start": "rollup -cw", "build": "node ./scripts/cleanDistFolder.js && rollup -c && cp src/proto.d.ts dist", - "update-proto:es6": "pbjs -t static-module -w es6 -o src/proto.js ../../keeperapp-protobuf/APIRequest.proto ../../keeperapp-protobuf/AccountSummary.proto ../../keeperapp-protobuf/automator.proto ../../keeperapp-protobuf/breachwatch.proto ../../keeperapp-protobuf/client.proto ../../keeperapp-protobuf/externalservice.proto ../../keeperapp-protobuf/folder.proto ../../keeperapp-protobuf/push.proto ../../keeperapp-protobuf/record.proto ../../keeperapp-protobuf/servicelogger.proto ../../keeperapp-protobuf/ssocloud.proto ../../keeperapp-protobuf/token.proto ../../keeperapp-protobuf/upsell.proto ../../keeperapp-protobuf/SyncDown.proto ../../keeperapp-protobuf/BI.proto ../../keeperapp-protobuf/router.proto && pbts -o src/proto.d.ts src/proto.js", - "update-proto:cjs": "pbjs -t json-module -w commonjs -o src/proto.js ../../keeperapp-protobuf/APIRequest.proto ../../keeperapp-protobuf/AccountSummary.proto ../../keeperapp-protobuf/automator.proto ../../keeperapp-protobuf/breachwatch.proto ../../keeperapp-protobuf/client.proto ../../keeperapp-protobuf/externalservice.proto ../../keeperapp-protobuf/folder.proto ../../keeperapp-protobuf/push.proto ../../keeperapp-protobuf/record.proto ../../keeperapp-protobuf/servicelogger.proto ../../keeperapp-protobuf/ssocloud.proto ../../keeperapp-protobuf/token.proto ../../keeperapp-protobuf/upsell.proto ../../keeperapp-protobuf/SyncDown.proto ../../keeperapp-protobuf/router.proto && pbjs -t static-module -w commonjs ../../keeperapp-protobuf/APIRequest.proto ../../keeperapp-protobuf/AccountSummary.proto ../../keeperapp-protobuf/automator.proto ../../keeperapp-protobuf/breachwatch.proto ../../keeperapp-protobuf/client.proto ../../keeperapp-protobuf/externalservice.proto ../../keeperapp-protobuf/folder.proto ../../keeperapp-protobuf/push.proto ../../keeperapp-protobuf/record.proto ../../keeperapp-protobuf/servicelogger.proto ../../keeperapp-protobuf/ssocloud.proto ../../keeperapp-protobuf/token.proto ../../keeperapp-protobuf/upsell.proto ../../keeperapp-protobuf/SyncDown.proto ../../keeperapp-protobuf/BI.proto ../../keeperapp-protobuf/router.proto | pbts -o src/proto.d.ts -", + "update-proto:es6": "pbjs -t static-module -w es6 -o src/proto.js ../../keeperapp-protobuf/APIRequest.proto ../../keeperapp-protobuf/AccountSummary.proto ../../keeperapp-protobuf/automator.proto ../../keeperapp-protobuf/breachwatch.proto ../../keeperapp-protobuf/client.proto ../../keeperapp-protobuf/externalservice.proto ../../keeperapp-protobuf/folder.proto ../../keeperapp-protobuf/push.proto ../../keeperapp-protobuf/record.proto ../../keeperapp-protobuf/servicelogger.proto ../../keeperapp-protobuf/ssocloud.proto ../../keeperapp-protobuf/token.proto ../../keeperapp-protobuf/upsell.proto ../../keeperapp-protobuf/SyncDown.proto ../../keeperapp-protobuf/BI.proto ../../keeperapp-protobuf/router.proto ../../keeperapp-protobuf/record_endpoints.proto && pbts -o src/proto.d.ts src/proto.js", + "update-proto:cjs": "pbjs -t json-module -w commonjs -o src/proto.js ../../keeperapp-protobuf/APIRequest.proto ../../keeperapp-protobuf/AccountSummary.proto ../../keeperapp-protobuf/automator.proto ../../keeperapp-protobuf/breachwatch.proto ../../keeperapp-protobuf/client.proto ../../keeperapp-protobuf/externalservice.proto ../../keeperapp-protobuf/folder.proto ../../keeperapp-protobuf/push.proto ../../keeperapp-protobuf/record.proto ../../keeperapp-protobuf/servicelogger.proto ../../keeperapp-protobuf/ssocloud.proto ../../keeperapp-protobuf/token.proto ../../keeperapp-protobuf/upsell.proto ../../keeperapp-protobuf/SyncDown.proto ../../keeperapp-protobuf/BI.proto ../../keeperapp-protobuf/router.proto ../../keeperapp-protobuf/record_endpoints.proto && pbjs -t static-module -w commonjs ../../keeperapp-protobuf/APIRequest.proto ../../keeperapp-protobuf/AccountSummary.proto ../../keeperapp-protobuf/automator.proto ../../keeperapp-protobuf/breachwatch.proto ../../keeperapp-protobuf/client.proto ../../keeperapp-protobuf/externalservice.proto ../../keeperapp-protobuf/folder.proto ../../keeperapp-protobuf/push.proto ../../keeperapp-protobuf/record.proto ../../keeperapp-protobuf/servicelogger.proto ../../keeperapp-protobuf/ssocloud.proto ../../keeperapp-protobuf/token.proto ../../keeperapp-protobuf/upsell.proto ../../keeperapp-protobuf/SyncDown.proto ../../keeperapp-protobuf/BI.proto ../../keeperapp-protobuf/router.proto ../../keeperapp-protobuf/record_endpoints.proto | pbts -o src/proto.d.ts -", "format": "prettier --write .", "format:check": "prettier --check .", "test": "jest", diff --git a/keeperapi/src/proto.d.ts b/keeperapi/src/proto.d.ts index cb89271..4cc8d04 100644 --- a/keeperapi/src/proto.d.ts +++ b/keeperapi/src/proto.d.ts @@ -30209,7 +30209,8 @@ export namespace Enterprise { FORBID_ACCOUNT_TRANSFER = 8, NPS_POPUP_OPT_OUT = 9, SHOW_USER_ONBOARD = 10, - FORBID_KEY_TYPE_1 = 11 + FORBID_KEY_TYPE_1 = 11, + KEEPER_DRIVE = 12 } /** Properties of a SetRestrictVisibilityRequest. */ @@ -38376,6 +38377,9 @@ export namespace AccountSummary { /** AccountSummaryElements forbidKeyType1 */ forbidKeyType1?: (boolean|null); + + /** AccountSummaryElements disallowedFeatures */ + disallowedFeatures?: (string[]|null); } /** Represents an AccountSummaryElements. */ @@ -38444,6 +38448,9 @@ export namespace AccountSummary { /** AccountSummaryElements forbidKeyType1. */ public forbidKeyType1: boolean; + /** AccountSummaryElements disallowedFeatures. */ + public disallowedFeatures: string[]; + /** * Creates a new AccountSummaryElements instance using the specified properties. * @param [properties] Properties to set @@ -39504,6 +39511,12 @@ export namespace AccountSummary { /** Settings personalUsernames */ personalUsernames?: (string[]|null); + + /** Settings maxIpDistance */ + maxIpDistance?: (number|null); + + /** Settings maxIpDistanceEffective */ + maxIpDistanceEffective?: (number|null); } /** Represents a Settings. */ @@ -39632,6 +39645,12 @@ export namespace AccountSummary { /** Settings personalUsernames. */ public personalUsernames: string[]; + /** Settings maxIpDistance. */ + public maxIpDistance: number; + + /** Settings maxIpDistanceEffective. */ + public maxIpDistanceEffective: number; + /** * Creates a new Settings instance using the specified properties. * @param [properties] Properties to set @@ -42828,6 +42847,9 @@ export namespace Automator { /** AutomatorInfo version */ version?: (string|null); + + /** AutomatorInfo sslCertificateExpirationDate */ + sslCertificateExpirationDate?: (string|null); } /** Information about an automator for a client that is configuring an Automator. */ @@ -42872,6 +42894,9 @@ export namespace Automator { /** AutomatorInfo version. */ public version: string; + /** AutomatorInfo sslCertificateExpirationDate. */ + public sslCertificateExpirationDate: string; + /** * Creates a new AutomatorInfo instance using the specified properties. * @param [properties] Properties to set @@ -45713,13 +45738,13 @@ export namespace Automator { issuer?: (string|null); /** SSLCertificateInfo issuedOn */ - issuedOn?: (string|null); + issuedOn?: (number|Long|null); /** SSLCertificateInfo expiresOn */ - expiresOn?: (string|null); + expiresOn?: (number|Long|null); /** SSLCertificateInfo checkedOn */ - checkedOn?: (string|null); + checkedOn?: (number|Long|null); } /** @@ -45747,13 +45772,13 @@ export namespace Automator { public issuer: string; /** SSLCertificateInfo issuedOn. */ - public issuedOn: string; + public issuedOn: (number|Long); /** SSLCertificateInfo expiresOn. */ - public expiresOn: string; + public expiresOn: (number|Long); /** SSLCertificateInfo checkedOn. */ - public checkedOn: string; + public checkedOn: (number|Long); /** * Creates a new SSLCertificateInfo instance using the specified properties. @@ -53144,6 +53169,15 @@ export namespace Tokens { /** SessionToken clientTypeId */ clientTypeId?: (number|null); + + /** SessionToken ipAddress */ + ipAddress?: (number|Long|null); + + /** SessionToken latitude */ + latitude?: (number|null); + + /** SessionToken longitude */ + longitude?: (number|null); } /** Represents a SessionToken. */ @@ -53215,6 +53249,15 @@ export namespace Tokens { /** SessionToken clientTypeId. */ public clientTypeId: number; + /** SessionToken ipAddress. */ + public ipAddress: (number|Long); + + /** SessionToken latitude. */ + public latitude: number; + + /** SessionToken longitude. */ + public longitude: number; + /** * Creates a new SessionToken instance using the specified properties. * @param [properties] Properties to set @@ -56956,6 +56999,9 @@ export namespace Tokens { /** VaultSyncDownContinuationToken multiPageIncrementalClientVersion */ multiPageIncrementalClientVersion?: (number|null); + + /** VaultSyncDownContinuationToken dagSyncPoint */ + dagSyncPoint?: (number|Long|null); } /** Represents a VaultSyncDownContinuationToken. */ @@ -57006,6 +57052,9 @@ export namespace Tokens { /** VaultSyncDownContinuationToken multiPageIncrementalClientVersion. */ public multiPageIncrementalClientVersion: number; + /** VaultSyncDownContinuationToken dagSyncPoint. */ + public dagSyncPoint: (number|Long); + /** * Creates a new VaultSyncDownContinuationToken instance using the specified properties. * @param [properties] Properties to set @@ -63218,35473 +63267,46888 @@ export namespace Folder { */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} - -/** Namespace Records. */ -export namespace Records { - /** RecordTypeScope enum. */ - enum RecordTypeScope { - RT_STANDARD = 0, - RT_USER = 1, - RT_ENTERPRISE = 2, - RT_PAM = 3, - RT_PAM_CONFIGURATION = 4 + /** FolderUsageType enum. */ + enum FolderUsageType { + UT_UNKNOWN = 0, + UT_NORMAL = 1, + UT_WORKFLOW = 2, + UT_TRASHCAN = 3 } - /** Properties of a RecordType. */ - interface IRecordType { + /** Properties of a FolderData. */ + interface IFolderData { - /** RecordType recordTypeId */ - recordTypeId?: (number|null); + /** FolderData folderUid */ + folderUid?: (Uint8Array|null); - /** RecordType content */ - content?: (string|null); + /** FolderData parentUid */ + parentUid?: (Uint8Array|null); - /** RecordType scope */ - scope?: (Records.RecordTypeScope|null); + /** FolderData data */ + data?: (Uint8Array|null); + + /** FolderData type */ + type?: (Folder.FolderUsageType|null); + + /** FolderData inheritUserPermissions */ + inheritUserPermissions?: (Folder.SetBooleanValue|null); + + /** FolderData folderKey */ + folderKey?: (Uint8Array|null); + + /** FolderData ownerInfo */ + ownerInfo?: (Folder.IUserInfo|null); + + /** FolderData dateCreated */ + dateCreated?: (number|Long|null); + + /** FolderData lastModified */ + lastModified?: (number|Long|null); } - /** Represents a RecordType. */ - class RecordType implements IRecordType { + /** + * FolderData is used in the folder add and update requests and it is stored in the DAG. + * It is also used to store folders' data in the sync down response. + */ + class FolderData implements IFolderData { /** - * Constructs a new RecordType. + * Constructs a new FolderData. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordType); + constructor(properties?: Folder.IFolderData); - /** RecordType recordTypeId. */ - public recordTypeId: number; + /** FolderData folderUid. */ + public folderUid: Uint8Array; - /** RecordType content. */ - public content: string; + /** FolderData parentUid. */ + public parentUid: Uint8Array; - /** RecordType scope. */ - public scope: Records.RecordTypeScope; + /** FolderData data. */ + public data: Uint8Array; + + /** FolderData type. */ + public type: Folder.FolderUsageType; + + /** FolderData inheritUserPermissions. */ + public inheritUserPermissions: Folder.SetBooleanValue; + + /** FolderData folderKey. */ + public folderKey: Uint8Array; + + /** FolderData ownerInfo. */ + public ownerInfo?: (Folder.IUserInfo|null); + + /** FolderData dateCreated. */ + public dateCreated: (number|Long); + + /** FolderData lastModified. */ + public lastModified: (number|Long); /** - * Creates a new RecordType instance using the specified properties. + * Creates a new FolderData instance using the specified properties. * @param [properties] Properties to set - * @returns RecordType instance + * @returns FolderData instance */ - public static create(properties?: Records.IRecordType): Records.RecordType; + public static create(properties?: Folder.IFolderData): Folder.FolderData; /** - * Encodes the specified RecordType message. Does not implicitly {@link Records.RecordType.verify|verify} messages. - * @param message RecordType message or plain object to encode + * Encodes the specified FolderData message. 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 encode(message: Records.IRecordType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IFolderData, 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 + * 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: Records.IRecordType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IFolderData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordType message from the specified reader or buffer. + * Decodes a FolderData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordType + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderData; /** - * Decodes a RecordType message from the specified reader or buffer, length delimited. + * Decodes a FolderData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordType + * @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)): Records.RecordType; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.FolderData; /** - * Verifies a RecordType message. + * 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 RecordType message from a plain object. Also converts values to their respective internal types. + * Creates a FolderData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordType + * @returns FolderData */ - public static fromObject(object: { [k: string]: any }): Records.RecordType; + public static fromObject(object: { [k: string]: any }): Folder.FolderData; /** - * Creates a plain object from a RecordType message. Also converts values to other types if specified. - * @param message RecordType + * Creates a plain object from a FolderData message. Also converts values to other types if specified. + * @param message FolderData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.FolderData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordType to JSON. + * Converts this FolderData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordType + * Gets the default type url for FolderData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordTypesRequest. */ - interface IRecordTypesRequest { + /** Properties of a FolderKey. */ + interface IFolderKey { - /** RecordTypesRequest standard */ - standard?: (boolean|null); + /** FolderKey folderUid */ + folderUid?: (Uint8Array|null); - /** RecordTypesRequest user */ - user?: (boolean|null); + /** FolderKey parentUid */ + parentUid?: (Uint8Array|null); - /** RecordTypesRequest enterprise */ - enterprise?: (boolean|null); + /** FolderKey folderKey */ + folderKey?: (Uint8Array|null); - /** RecordTypesRequest pam */ - pam?: (boolean|null); + /** FolderKey encryptedBy */ + encryptedBy?: (Folder.FolderKeyEncryptionType|null); } - /** Represents a RecordTypesRequest. */ - class RecordTypesRequest implements IRecordTypesRequest { + /** Represents a FolderKey. */ + class FolderKey implements IFolderKey { /** - * Constructs a new RecordTypesRequest. + * Constructs a new FolderKey. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordTypesRequest); + constructor(properties?: Folder.IFolderKey); - /** RecordTypesRequest standard. */ - public standard: boolean; + /** FolderKey folderUid. */ + public folderUid: Uint8Array; - /** RecordTypesRequest user. */ - public user: boolean; + /** FolderKey parentUid. */ + public parentUid: Uint8Array; - /** RecordTypesRequest enterprise. */ - public enterprise: boolean; + /** FolderKey folderKey. */ + public folderKey: Uint8Array; - /** RecordTypesRequest pam. */ - public pam: boolean; + /** FolderKey encryptedBy. */ + public encryptedBy: Folder.FolderKeyEncryptionType; /** - * Creates a new RecordTypesRequest instance using the specified properties. + * Creates a new FolderKey instance using the specified properties. * @param [properties] Properties to set - * @returns RecordTypesRequest instance + * @returns FolderKey instance */ - public static create(properties?: Records.IRecordTypesRequest): Records.RecordTypesRequest; + public static create(properties?: Folder.IFolderKey): Folder.FolderKey; /** - * Encodes the specified RecordTypesRequest message. Does not implicitly {@link Records.RecordTypesRequest.verify|verify} messages. - * @param message RecordTypesRequest message or plain object to encode + * Encodes the specified FolderKey message. 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 encode(message: Records.IRecordTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IFolderKey, 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 + * 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: Records.IRecordTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IFolderKey, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordTypesRequest message from the specified reader or buffer. + * Decodes a FolderKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordTypesRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordTypesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderKey; /** - * Decodes a RecordTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a FolderKey message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordTypesRequest + * @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)): Records.RecordTypesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.FolderKey; /** - * Verifies a RecordTypesRequest message. + * 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 RecordTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FolderKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordTypesRequest + * @returns FolderKey */ - public static fromObject(object: { [k: string]: any }): Records.RecordTypesRequest; + public static fromObject(object: { [k: string]: any }): Folder.FolderKey; /** - * Creates a plain object from a RecordTypesRequest message. Also converts values to other types if specified. - * @param message RecordTypesRequest + * Creates a plain object from a FolderKey message. Also converts values to other types if specified. + * @param message FolderKey * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.FolderKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordTypesRequest to JSON. + * Converts this FolderKey to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordTypesRequest + * Gets the default type url for FolderKey * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordTypesResponse. */ - interface IRecordTypesResponse { - - /** RecordTypesResponse recordTypes */ - recordTypes?: (Records.IRecordType[]|null); - - /** RecordTypesResponse standardCounter */ - standardCounter?: (number|null); - - /** RecordTypesResponse userCounter */ - userCounter?: (number|null); + /** FolderKeyEncryptionType enum. */ + enum FolderKeyEncryptionType { + ENCRYPTED_BY_USER_KEY = 0, + ENCRYPTED_BY_PARENT_KEY = 1, + ENCRYPTED_BY_TEAM_KEY = 2 + } - /** RecordTypesResponse enterpriseCounter */ - enterpriseCounter?: (number|null); + /** Properties of a FolderAddRequest. */ + interface IFolderAddRequest { - /** RecordTypesResponse pamCounter */ - pamCounter?: (number|null); + /** FolderAddRequest folderData */ + folderData?: (Folder.IFolderData[]|null); } - /** Represents a RecordTypesResponse. */ - class RecordTypesResponse implements IRecordTypesResponse { + /** Represents a FolderAddRequest. */ + class FolderAddRequest implements IFolderAddRequest { /** - * Constructs a new RecordTypesResponse. + * Constructs a new FolderAddRequest. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordTypesResponse); - - /** RecordTypesResponse recordTypes. */ - public recordTypes: Records.IRecordType[]; - - /** RecordTypesResponse standardCounter. */ - public standardCounter: number; - - /** RecordTypesResponse userCounter. */ - public userCounter: number; + constructor(properties?: Folder.IFolderAddRequest); - /** RecordTypesResponse enterpriseCounter. */ - public enterpriseCounter: number; - - /** RecordTypesResponse pamCounter. */ - public pamCounter: number; + /** FolderAddRequest folderData. */ + public folderData: Folder.IFolderData[]; /** - * Creates a new RecordTypesResponse instance using the specified properties. + * Creates a new FolderAddRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RecordTypesResponse instance + * @returns FolderAddRequest instance */ - public static create(properties?: Records.IRecordTypesResponse): Records.RecordTypesResponse; + public static create(properties?: Folder.IFolderAddRequest): Folder.FolderAddRequest; /** - * Encodes the specified RecordTypesResponse message. Does not implicitly {@link Records.RecordTypesResponse.verify|verify} messages. - * @param message RecordTypesResponse message or plain object to encode + * Encodes the specified FolderAddRequest message. 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 encode(message: Records.IRecordTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IFolderAddRequest, 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 + * 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: Records.IRecordTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IFolderAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordTypesResponse message from the specified reader or buffer. + * Decodes a FolderAddRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordTypesResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordTypesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderAddRequest; /** - * Decodes a RecordTypesResponse message from the specified reader or buffer, length delimited. + * Decodes a FolderAddRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordTypesResponse + * @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)): Records.RecordTypesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.FolderAddRequest; /** - * Verifies a RecordTypesResponse message. + * 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 RecordTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FolderAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordTypesResponse + * @returns FolderAddRequest */ - public static fromObject(object: { [k: string]: any }): Records.RecordTypesResponse; + public static fromObject(object: { [k: string]: any }): Folder.FolderAddRequest; /** - * Creates a plain object from a RecordTypesResponse message. Also converts values to other types if specified. - * @param message RecordTypesResponse + * Creates a plain object from a FolderAddRequest message. Also converts values to other types if specified. + * @param message FolderAddRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.FolderAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordTypesResponse to JSON. + * Converts this FolderAddRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordTypesResponse + * Gets the default type url for FolderAddRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordTypeModifyResponse. */ - interface IRecordTypeModifyResponse { + /** FolderModifyStatus enum. */ + enum FolderModifyStatus { + SUCCESS = 0, + BAD_REQUEST = 1, + ACCESS_DENIED = 2, + NOT_FOUND = 3 + } - /** RecordTypeModifyResponse recordTypeId */ - recordTypeId?: (number|null); + /** Properties of a FolderModifyResult. */ + interface IFolderModifyResult { - /** RecordTypeModifyResponse counter */ - counter?: (number|null); + /** FolderModifyResult folderUid */ + folderUid?: (Uint8Array|null); + + /** FolderModifyResult status */ + status?: (Folder.FolderModifyStatus|null); + + /** FolderModifyResult message */ + message?: (string|null); } - /** Represents a RecordTypeModifyResponse. */ - class RecordTypeModifyResponse implements IRecordTypeModifyResponse { + /** Represents a FolderModifyResult. */ + class FolderModifyResult implements IFolderModifyResult { /** - * Constructs a new RecordTypeModifyResponse. + * Constructs a new FolderModifyResult. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordTypeModifyResponse); + constructor(properties?: Folder.IFolderModifyResult); - /** RecordTypeModifyResponse recordTypeId. */ - public recordTypeId: number; + /** FolderModifyResult folderUid. */ + public folderUid: Uint8Array; - /** RecordTypeModifyResponse counter. */ - public counter: number; + /** FolderModifyResult status. */ + public status: Folder.FolderModifyStatus; + + /** FolderModifyResult message. */ + public message: string; /** - * Creates a new RecordTypeModifyResponse instance using the specified properties. + * Creates a new FolderModifyResult instance using the specified properties. * @param [properties] Properties to set - * @returns RecordTypeModifyResponse instance + * @returns FolderModifyResult instance */ - public static create(properties?: Records.IRecordTypeModifyResponse): Records.RecordTypeModifyResponse; + public static create(properties?: Folder.IFolderModifyResult): Folder.FolderModifyResult; /** - * Encodes the specified RecordTypeModifyResponse message. Does not implicitly {@link Records.RecordTypeModifyResponse.verify|verify} messages. - * @param message RecordTypeModifyResponse message or plain object to encode + * Encodes the specified FolderModifyResult message. 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 encode(message: Records.IRecordTypeModifyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IFolderModifyResult, 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 + * 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: Records.IRecordTypeModifyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IFolderModifyResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordTypeModifyResponse message from the specified reader or buffer. + * Decodes a FolderModifyResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordTypeModifyResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordTypeModifyResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderModifyResult; /** - * Decodes a RecordTypeModifyResponse message from the specified reader or buffer, length delimited. + * Decodes a FolderModifyResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordTypeModifyResponse + * @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)): Records.RecordTypeModifyResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.FolderModifyResult; /** - * Verifies a RecordTypeModifyResponse message. + * 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 RecordTypeModifyResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FolderModifyResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordTypeModifyResponse + * @returns FolderModifyResult */ - public static fromObject(object: { [k: string]: any }): Records.RecordTypeModifyResponse; + public static fromObject(object: { [k: string]: any }): Folder.FolderModifyResult; /** - * Creates a plain object from a RecordTypeModifyResponse message. Also converts values to other types if specified. - * @param message RecordTypeModifyResponse + * Creates a plain object from a FolderModifyResult message. Also converts values to other types if specified. + * @param message FolderModifyResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordTypeModifyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.FolderModifyResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordTypeModifyResponse to JSON. + * Converts this FolderModifyResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordTypeModifyResponse + * Gets the default type url for FolderModifyResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordsGetRequest. */ - interface IRecordsGetRequest { - - /** RecordsGetRequest recordUids */ - recordUids?: (Uint8Array[]|null); + /** Properties of a FolderAddResponse. */ + interface IFolderAddResponse { - /** RecordsGetRequest clientTime */ - clientTime?: (number|Long|null); + /** FolderAddResponse folderAddResults */ + folderAddResults?: (Folder.IFolderModifyResult[]|null); } - /** Represents a RecordsGetRequest. */ - class RecordsGetRequest implements IRecordsGetRequest { + /** Represents a FolderAddResponse. */ + class FolderAddResponse implements IFolderAddResponse { /** - * Constructs a new RecordsGetRequest. + * Constructs a new FolderAddResponse. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordsGetRequest); - - /** RecordsGetRequest recordUids. */ - public recordUids: Uint8Array[]; + constructor(properties?: Folder.IFolderAddResponse); - /** RecordsGetRequest clientTime. */ - public clientTime: (number|Long); + /** FolderAddResponse folderAddResults. */ + public folderAddResults: Folder.IFolderModifyResult[]; /** - * Creates a new RecordsGetRequest instance using the specified properties. + * Creates a new FolderAddResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RecordsGetRequest instance + * @returns FolderAddResponse instance */ - public static create(properties?: Records.IRecordsGetRequest): Records.RecordsGetRequest; + public static create(properties?: Folder.IFolderAddResponse): Folder.FolderAddResponse; /** - * Encodes the specified RecordsGetRequest message. Does not implicitly {@link Records.RecordsGetRequest.verify|verify} messages. - * @param message RecordsGetRequest message or plain object to encode + * Encodes the specified FolderAddResponse message. 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 encode(message: Records.IRecordsGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IFolderAddResponse, 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 + * 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: Records.IRecordsGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IFolderAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordsGetRequest message from the specified reader or buffer. + * Decodes a FolderAddResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordsGetRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsGetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderAddResponse; /** - * Decodes a RecordsGetRequest message from the specified reader or buffer, length delimited. + * Decodes a FolderAddResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordsGetRequest + * @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)): Records.RecordsGetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.FolderAddResponse; /** - * Verifies a RecordsGetRequest message. + * 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 RecordsGetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FolderAddResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordsGetRequest + * @returns FolderAddResponse */ - public static fromObject(object: { [k: string]: any }): Records.RecordsGetRequest; + public static fromObject(object: { [k: string]: any }): Folder.FolderAddResponse; /** - * Creates a plain object from a RecordsGetRequest message. Also converts values to other types if specified. - * @param message RecordsGetRequest + * Creates a plain object from a FolderAddResponse message. Also converts values to other types if specified. + * @param message FolderAddResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsGetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.FolderAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordsGetRequest to JSON. + * Converts this FolderAddResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordsGetRequest + * Gets the default type url for FolderAddResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Record. */ - interface IRecord { - - /** Record recordUid */ - recordUid?: (Uint8Array|null); - - /** Record recordKey */ - recordKey?: (Uint8Array|null); - - /** Record recordKeyType */ - recordKeyType?: (Records.RecordKeyType|null); - - /** Record data */ - data?: (Uint8Array|null); - - /** Record extra */ - extra?: (Uint8Array|null); - - /** Record version */ - version?: (number|null); + /** Properties of a FolderUpdateRequest. */ + interface IFolderUpdateRequest { - /** Record clientModifiedTime */ - clientModifiedTime?: (number|Long|null); - - /** Record revision */ - revision?: (number|Long|null); - - /** Record fileIds */ - fileIds?: (Uint8Array[]|null); + /** FolderUpdateRequest folderData */ + folderData?: (Folder.IFolderData[]|null); } - /** Represents a Record. */ - class Record implements IRecord { + /** Represents a FolderUpdateRequest. */ + class FolderUpdateRequest implements IFolderUpdateRequest { /** - * Constructs a new Record. + * Constructs a new FolderUpdateRequest. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecord); - - /** Record recordUid. */ - public recordUid: Uint8Array; - - /** Record recordKey. */ - public recordKey: Uint8Array; - - /** Record recordKeyType. */ - public recordKeyType: Records.RecordKeyType; - - /** Record data. */ - public data: Uint8Array; + constructor(properties?: Folder.IFolderUpdateRequest); - /** Record extra. */ - public extra: Uint8Array; - - /** Record version. */ - public version: number; - - /** Record clientModifiedTime. */ - public clientModifiedTime: (number|Long); - - /** Record revision. */ - public revision: (number|Long); - - /** Record fileIds. */ - public fileIds: Uint8Array[]; + /** FolderUpdateRequest folderData. */ + public folderData: Folder.IFolderData[]; /** - * Creates a new Record instance using the specified properties. + * Creates a new FolderUpdateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Record instance + * @returns FolderUpdateRequest instance */ - public static create(properties?: Records.IRecord): Records.Record; + public static create(properties?: Folder.IFolderUpdateRequest): Folder.FolderUpdateRequest; /** - * Encodes the specified Record message. Does not implicitly {@link Records.Record.verify|verify} messages. - * @param message Record message or plain object to encode + * Encodes the specified FolderUpdateRequest message. 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 encode(message: Records.IRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IFolderUpdateRequest, 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 + * 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: Records.IRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IFolderUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Record message from the specified reader or buffer. + * Decodes a FolderUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Record + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.Record; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderUpdateRequest; /** - * Decodes a Record message from the specified reader or buffer, length delimited. + * Decodes a FolderUpdateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Record + * @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)): Records.Record; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.FolderUpdateRequest; /** - * Verifies a Record message. + * 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 Record message from a plain object. Also converts values to their respective internal types. + * Creates a FolderUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Record + * @returns FolderUpdateRequest */ - public static fromObject(object: { [k: string]: any }): Records.Record; + public static fromObject(object: { [k: string]: any }): Folder.FolderUpdateRequest; /** - * Creates a plain object from a Record message. Also converts values to other types if specified. - * @param message Record + * Creates a plain object from a FolderUpdateRequest message. Also converts values to other types if specified. + * @param message FolderUpdateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.Record, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.FolderUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Record to JSON. + * Converts this FolderUpdateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Record + * Gets the default type url for FolderUpdateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** RecordKeyType enum. */ - enum RecordKeyType { - NO_KEY = 0, - ENCRYPTED_BY_DATA_KEY = 1, - ENCRYPTED_BY_PUBLIC_KEY = 2, - ENCRYPTED_BY_DATA_KEY_GCM = 3, - ENCRYPTED_BY_PUBLIC_KEY_ECC = 4, - ENCRYPTED_BY_ROOT_KEY_CBC = 5, - ENCRYPTED_BY_ROOT_KEY_GCM = 6 - } - - /** Properties of a FolderRecordKey. */ - interface IFolderRecordKey { - - /** FolderRecordKey folderUid */ - folderUid?: (Uint8Array|null); - - /** FolderRecordKey recordUid */ - recordUid?: (Uint8Array|null); + /** Properties of a FolderUpdateResponse. */ + interface IFolderUpdateResponse { - /** FolderRecordKey recordKey */ - recordKey?: (Uint8Array|null); + /** FolderUpdateResponse folderUpdateResults */ + folderUpdateResults?: (Folder.IFolderModifyResult[]|null); } - /** Represents a FolderRecordKey. */ - class FolderRecordKey implements IFolderRecordKey { + /** Represents a FolderUpdateResponse. */ + class FolderUpdateResponse implements IFolderUpdateResponse { /** - * Constructs a new FolderRecordKey. + * Constructs a new FolderUpdateResponse. * @param [properties] Properties to set */ - constructor(properties?: Records.IFolderRecordKey); - - /** FolderRecordKey folderUid. */ - public folderUid: Uint8Array; - - /** FolderRecordKey recordUid. */ - public recordUid: Uint8Array; + constructor(properties?: Folder.IFolderUpdateResponse); - /** FolderRecordKey recordKey. */ - public recordKey: Uint8Array; + /** FolderUpdateResponse folderUpdateResults. */ + public folderUpdateResults: Folder.IFolderModifyResult[]; /** - * Creates a new FolderRecordKey instance using the specified properties. + * Creates a new FolderUpdateResponse instance using the specified properties. * @param [properties] Properties to set - * @returns FolderRecordKey instance + * @returns FolderUpdateResponse instance */ - public static create(properties?: Records.IFolderRecordKey): Records.FolderRecordKey; + public static create(properties?: Folder.IFolderUpdateResponse): Folder.FolderUpdateResponse; /** - * Encodes the specified FolderRecordKey message. Does not implicitly {@link Records.FolderRecordKey.verify|verify} messages. - * @param message FolderRecordKey message or plain object to encode + * Encodes the specified FolderUpdateResponse message. 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 encode(message: Records.IFolderRecordKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IFolderUpdateResponse, 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 + * 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: Records.IFolderRecordKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IFolderUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FolderRecordKey message from the specified reader or buffer. + * Decodes a FolderUpdateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FolderRecordKey + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FolderRecordKey; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderUpdateResponse; /** - * Decodes a FolderRecordKey message from the specified reader or buffer, length delimited. + * Decodes a FolderUpdateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FolderRecordKey + * @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)): Records.FolderRecordKey; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.FolderUpdateResponse; /** - * Verifies a FolderRecordKey message. + * 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 FolderRecordKey message from a plain object. Also converts values to their respective internal types. + * Creates a FolderUpdateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FolderRecordKey + * @returns FolderUpdateResponse */ - public static fromObject(object: { [k: string]: any }): Records.FolderRecordKey; + public static fromObject(object: { [k: string]: any }): Folder.FolderUpdateResponse; /** - * Creates a plain object from a FolderRecordKey message. Also converts values to other types if specified. - * @param message FolderRecordKey + * Creates a plain object from a FolderUpdateResponse message. Also converts values to other types if specified. + * @param message FolderUpdateResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.FolderRecordKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.FolderUpdateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FolderRecordKey to JSON. + * Converts this FolderUpdateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FolderRecordKey + * Gets the default type url for FolderUpdateResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Folder. */ - interface IFolder { + /** FolderPermissionBits enum. */ + enum FolderPermissionBits { + noBits = 0, + canAdd = 1, + canRemove = 2, + canDelete = 4, + canListAccess = 8, + canUpdateAccess = 16, + canChangeOwnership = 32, + canEditRecords = 64, + canViewRecords = 128, + canApproveAccess = 256, + canRequestAccess = 512, + canUpdateSetting = 1024, + canListRecords = 2048, + canListFolders = 4096 + } - /** Folder folderUid */ - folderUid?: (Uint8Array|null); + /** Properties of a FolderPermissions. */ + interface IFolderPermissions { - /** Folder folderKey */ - folderKey?: (Uint8Array|null); + /** FolderPermissions canAdd */ + canAdd?: (boolean|null); - /** Folder folderKeyType */ - folderKeyType?: (Records.RecordKeyType|null); + /** FolderPermissions canRemove */ + canRemove?: (boolean|null); + + /** FolderPermissions canDelete */ + canDelete?: (boolean|null); + + /** FolderPermissions canListAccess */ + canListAccess?: (boolean|null); + + /** FolderPermissions canUpdateAccess */ + canUpdateAccess?: (boolean|null); + + /** FolderPermissions canChangeOwnership */ + canChangeOwnership?: (boolean|null); + + /** FolderPermissions canEditRecords */ + canEditRecords?: (boolean|null); + + /** FolderPermissions canViewRecords */ + canViewRecords?: (boolean|null); + + /** FolderPermissions canApproveAccess */ + canApproveAccess?: (boolean|null); + + /** FolderPermissions canRequestAccess */ + canRequestAccess?: (boolean|null); + + /** FolderPermissions canUpdateSetting */ + canUpdateSetting?: (boolean|null); + + /** FolderPermissions canListRecords */ + canListRecords?: (boolean|null); + + /** FolderPermissions canListFolders */ + canListFolders?: (boolean|null); } - /** Represents a Folder. */ - class Folder implements IFolder { + /** Represents a FolderPermissions. */ + class FolderPermissions implements IFolderPermissions { /** - * Constructs a new Folder. + * Constructs a new FolderPermissions. * @param [properties] Properties to set */ - constructor(properties?: Records.IFolder); + constructor(properties?: Folder.IFolderPermissions); - /** Folder folderUid. */ - public folderUid: Uint8Array; + /** FolderPermissions canAdd. */ + public canAdd: boolean; - /** Folder folderKey. */ - public folderKey: Uint8Array; + /** FolderPermissions canRemove. */ + public canRemove: boolean; - /** Folder folderKeyType. */ - public folderKeyType: Records.RecordKeyType; + /** FolderPermissions canDelete. */ + public canDelete: boolean; + + /** FolderPermissions canListAccess. */ + public canListAccess: boolean; + + /** FolderPermissions canUpdateAccess. */ + public canUpdateAccess: boolean; + + /** FolderPermissions canChangeOwnership. */ + public canChangeOwnership: boolean; + + /** FolderPermissions canEditRecords. */ + public canEditRecords: boolean; + + /** FolderPermissions canViewRecords. */ + public canViewRecords: boolean; + + /** FolderPermissions canApproveAccess. */ + public canApproveAccess: boolean; + + /** FolderPermissions canRequestAccess. */ + public canRequestAccess: boolean; + + /** FolderPermissions canUpdateSetting. */ + public canUpdateSetting: boolean; + + /** FolderPermissions canListRecords. */ + public canListRecords: boolean; + + /** FolderPermissions canListFolders. */ + public canListFolders: boolean; /** - * Creates a new Folder instance using the specified properties. + * Creates a new FolderPermissions instance using the specified properties. * @param [properties] Properties to set - * @returns Folder instance + * @returns FolderPermissions instance */ - public static create(properties?: Records.IFolder): Records.Folder; + public static create(properties?: Folder.IFolderPermissions): Folder.FolderPermissions; /** - * Encodes the specified Folder message. Does not implicitly {@link Records.Folder.verify|verify} messages. - * @param message Folder message or plain object to encode + * Encodes the specified FolderPermissions message. 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 encode(message: Records.IFolder, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IFolderPermissions, 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 + * 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: Records.IFolder, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IFolderPermissions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Folder message from the specified reader or buffer. + * Decodes a FolderPermissions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Folder + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.Folder; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderPermissions; /** - * Decodes a Folder message from the specified reader or buffer, length delimited. + * Decodes a FolderPermissions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Folder + * @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)): Records.Folder; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.FolderPermissions; /** - * Verifies a Folder message. + * 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 Folder message from a plain object. Also converts values to their respective internal types. + * Creates a FolderPermissions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Folder + * @returns FolderPermissions */ - public static fromObject(object: { [k: string]: any }): Records.Folder; + public static fromObject(object: { [k: string]: any }): Folder.FolderPermissions; /** - * Creates a plain object from a Folder message. Also converts values to other types if specified. - * @param message Folder + * Creates a plain object from a FolderPermissions message. Also converts values to other types if specified. + * @param message FolderPermissions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.Folder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.FolderPermissions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Folder to JSON. + * Converts this FolderPermissions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Folder + * Gets the default type url for FolderPermissions * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Team. */ - interface ITeam { + /** Properties of a Capabilities. */ + interface ICapabilities { - /** Team teamUid */ - teamUid?: (Uint8Array|null); + /** Capabilities canAdd */ + canAdd?: (Folder.SetBooleanValue|null); - /** Team teamKey */ - teamKey?: (Uint8Array|null); + /** Capabilities canRemove */ + canRemove?: (Folder.SetBooleanValue|null); - /** Team teamPrivateKey */ - teamPrivateKey?: (Uint8Array|null); + /** Capabilities canDelete */ + canDelete?: (Folder.SetBooleanValue|null); - /** Team teamKeyType */ - teamKeyType?: (Records.RecordKeyType|null); + /** Capabilities canListAccess */ + canListAccess?: (Folder.SetBooleanValue|null); - /** Team folders */ - folders?: (Records.IFolder[]|null); - } + /** Capabilities canUpdateAccess */ + canUpdateAccess?: (Folder.SetBooleanValue|null); - /** Represents a Team. */ - class Team implements ITeam { + /** Capabilities canChangeOwnership */ + canChangeOwnership?: (Folder.SetBooleanValue|null); - /** - * Constructs a new Team. + /** Capabilities canEditRecords */ + canEditRecords?: (Folder.SetBooleanValue|null); + + /** Capabilities canViewRecords */ + canViewRecords?: (Folder.SetBooleanValue|null); + + /** Capabilities canApproveAccess */ + canApproveAccess?: (Folder.SetBooleanValue|null); + + /** Capabilities canRequestAccess */ + canRequestAccess?: (Folder.SetBooleanValue|null); + + /** Capabilities canUpdateSetting */ + canUpdateSetting?: (Folder.SetBooleanValue|null); + + /** Capabilities canListRecords */ + canListRecords?: (Folder.SetBooleanValue|null); + + /** Capabilities canListFolders */ + canListFolders?: (Folder.SetBooleanValue|null); + } + + /** Represents a Capabilities. */ + class Capabilities implements ICapabilities { + + /** + * Constructs a new Capabilities. * @param [properties] Properties to set */ - constructor(properties?: Records.ITeam); + constructor(properties?: Folder.ICapabilities); - /** Team teamUid. */ - public teamUid: Uint8Array; + /** Capabilities canAdd. */ + public canAdd: Folder.SetBooleanValue; - /** Team teamKey. */ - public teamKey: Uint8Array; + /** Capabilities canRemove. */ + public canRemove: Folder.SetBooleanValue; - /** Team teamPrivateKey. */ - public teamPrivateKey: Uint8Array; + /** Capabilities canDelete. */ + public canDelete: Folder.SetBooleanValue; - /** Team teamKeyType. */ - public teamKeyType: Records.RecordKeyType; + /** Capabilities canListAccess. */ + public canListAccess: Folder.SetBooleanValue; - /** Team folders. */ - public folders: Records.IFolder[]; + /** Capabilities canUpdateAccess. */ + public canUpdateAccess: Folder.SetBooleanValue; + + /** Capabilities canChangeOwnership. */ + public canChangeOwnership: Folder.SetBooleanValue; + + /** Capabilities canEditRecords. */ + public canEditRecords: Folder.SetBooleanValue; + + /** Capabilities canViewRecords. */ + public canViewRecords: Folder.SetBooleanValue; + + /** Capabilities canApproveAccess. */ + public canApproveAccess: Folder.SetBooleanValue; + + /** Capabilities canRequestAccess. */ + public canRequestAccess: Folder.SetBooleanValue; + + /** Capabilities canUpdateSetting. */ + public canUpdateSetting: Folder.SetBooleanValue; + + /** Capabilities canListRecords. */ + public canListRecords: Folder.SetBooleanValue; + + /** Capabilities canListFolders. */ + public canListFolders: Folder.SetBooleanValue; /** - * Creates a new Team instance using the specified properties. + * Creates a new Capabilities instance using the specified properties. * @param [properties] Properties to set - * @returns Team instance + * @returns Capabilities instance */ - public static create(properties?: Records.ITeam): Records.Team; + public static create(properties?: Folder.ICapabilities): Folder.Capabilities; /** - * Encodes the specified Team message. Does not implicitly {@link Records.Team.verify|verify} messages. - * @param message Team message or plain object to encode + * Encodes the specified Capabilities message. 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 encode(message: Records.ITeam, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.ICapabilities, 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 + * 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: Records.ITeam, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.ICapabilities, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Team message from the specified reader or buffer. + * Decodes a Capabilities message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Team + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.Team; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.Capabilities; /** - * Decodes a Team message from the specified reader or buffer, length delimited. + * Decodes a Capabilities message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Team + * @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)): Records.Team; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.Capabilities; /** - * Verifies a Team message. + * 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 Team message from a plain object. Also converts values to their respective internal types. + * Creates a Capabilities message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Team + * @returns Capabilities */ - public static fromObject(object: { [k: string]: any }): Records.Team; + public static fromObject(object: { [k: string]: any }): Folder.Capabilities; /** - * Creates a plain object from a Team message. Also converts values to other types if specified. - * @param message Team + * Creates a plain object from a Capabilities message. Also converts values to other types if specified. + * @param message Capabilities * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.Team, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.Capabilities, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Team to JSON. + * Converts this Capabilities to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Team + * Gets the default type url for Capabilities * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordsGetResponse. */ - interface IRecordsGetResponse { + /** Properties of a FolderRecordUpdateRequest. */ + interface IFolderRecordUpdateRequest { - /** RecordsGetResponse records */ - records?: (Records.IRecord[]|null); + /** FolderRecordUpdateRequest folderUid */ + folderUid?: (Uint8Array|null); - /** RecordsGetResponse folderRecordKeys */ - folderRecordKeys?: (Records.IFolderRecordKey[]|null); + /** FolderRecordUpdateRequest addRecords */ + addRecords?: (Folder.IRecordMetadata[]|null); - /** RecordsGetResponse folders */ - folders?: (Records.IFolder[]|null); + /** FolderRecordUpdateRequest updateRecords */ + updateRecords?: (Folder.IRecordMetadata[]|null); - /** RecordsGetResponse teams */ - teams?: (Records.ITeam[]|null); + /** FolderRecordUpdateRequest removeRecords */ + removeRecords?: (Folder.IRecordMetadata[]|null); } - /** Represents a RecordsGetResponse. */ - class RecordsGetResponse implements IRecordsGetResponse { + /** Represents a FolderRecordUpdateRequest. */ + class FolderRecordUpdateRequest implements IFolderRecordUpdateRequest { /** - * Constructs a new RecordsGetResponse. + * Constructs a new FolderRecordUpdateRequest. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordsGetResponse); + constructor(properties?: Folder.IFolderRecordUpdateRequest); - /** RecordsGetResponse records. */ - public records: Records.IRecord[]; + /** FolderRecordUpdateRequest folderUid. */ + public folderUid: Uint8Array; - /** RecordsGetResponse folderRecordKeys. */ - public folderRecordKeys: Records.IFolderRecordKey[]; + /** FolderRecordUpdateRequest addRecords. */ + public addRecords: Folder.IRecordMetadata[]; - /** RecordsGetResponse folders. */ - public folders: Records.IFolder[]; + /** FolderRecordUpdateRequest updateRecords. */ + public updateRecords: Folder.IRecordMetadata[]; - /** RecordsGetResponse teams. */ - public teams: Records.ITeam[]; + /** FolderRecordUpdateRequest removeRecords. */ + public removeRecords: Folder.IRecordMetadata[]; /** - * Creates a new RecordsGetResponse instance using the specified properties. + * Creates a new FolderRecordUpdateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RecordsGetResponse instance + * @returns FolderRecordUpdateRequest instance */ - public static create(properties?: Records.IRecordsGetResponse): Records.RecordsGetResponse; + public static create(properties?: Folder.IFolderRecordUpdateRequest): Folder.FolderRecordUpdateRequest; /** - * Encodes the specified RecordsGetResponse message. Does not implicitly {@link Records.RecordsGetResponse.verify|verify} messages. - * @param message RecordsGetResponse message or plain object to encode + * Encodes the specified FolderRecordUpdateRequest message. 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 encode(message: Records.IRecordsGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IFolderRecordUpdateRequest, 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 + * 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: Records.IRecordsGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IFolderRecordUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordsGetResponse message from the specified reader or buffer. + * Decodes a FolderRecordUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordsGetResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsGetResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderRecordUpdateRequest; /** - * Decodes a RecordsGetResponse message from the specified reader or buffer, length delimited. + * Decodes a FolderRecordUpdateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordsGetResponse + * @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)): Records.RecordsGetResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.FolderRecordUpdateRequest; /** - * Verifies a RecordsGetResponse message. + * 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 RecordsGetResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FolderRecordUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordsGetResponse + * @returns FolderRecordUpdateRequest */ - public static fromObject(object: { [k: string]: any }): Records.RecordsGetResponse; + public static fromObject(object: { [k: string]: any }): Folder.FolderRecordUpdateRequest; /** - * Creates a plain object from a RecordsGetResponse message. Also converts values to other types if specified. - * @param message RecordsGetResponse + * Creates a plain object from a FolderRecordUpdateRequest message. Also converts values to other types if specified. + * @param message FolderRecordUpdateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsGetResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.FolderRecordUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordsGetResponse to JSON. + * Converts this FolderRecordUpdateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordsGetResponse + * Gets the default type url for FolderRecordUpdateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** RecordFolderType enum. */ - enum RecordFolderType { - user_folder = 0, - shared_folder = 1, - shared_folder_folder = 2 - } - - /** Properties of a RecordLink. */ - interface IRecordLink { + /** Properties of a RecordMetadata. */ + interface IRecordMetadata { - /** RecordLink recordUid */ + /** The record uid */ recordUid?: (Uint8Array|null); - /** RecordLink recordKey */ - recordKey?: (Uint8Array|null); + /** The record key encrypted with the folder key or the user’s data key if the record is located in the Vault root. */ + encryptedRecordKey?: (Uint8Array|null); + + /** Indicates the encryption scheme used to encrypt the record key. */ + encryptedRecordKeyType?: (Folder.EncryptedKeyType|null); + + /** time limited access settings define expiration, notification and rotation policies. */ + tlaProperties?: (common.tla.ITLAProperties|null); } - /** Represents a RecordLink. */ - class RecordLink implements IRecordLink { + /** Represents a RecordMetadata. */ + class RecordMetadata implements IRecordMetadata { /** - * Constructs a new RecordLink. + * Constructs a new RecordMetadata. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordLink); + constructor(properties?: Folder.IRecordMetadata); - /** RecordLink recordUid. */ + /** The record uid */ public recordUid: Uint8Array; - /** RecordLink recordKey. */ - public recordKey: Uint8Array; + /** The record key encrypted with the folder key or the user’s data key if the record is located in the Vault root. */ + public encryptedRecordKey: Uint8Array; + + /** Indicates the encryption scheme used to encrypt the record key. */ + public encryptedRecordKeyType: Folder.EncryptedKeyType; + + /** time limited access settings define expiration, notification and rotation policies. */ + public tlaProperties?: (common.tla.ITLAProperties|null); /** - * Creates a new RecordLink instance using the specified properties. + * Creates a new RecordMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns RecordLink instance + * @returns RecordMetadata instance */ - public static create(properties?: Records.IRecordLink): Records.RecordLink; + public static create(properties?: Folder.IRecordMetadata): Folder.RecordMetadata; /** - * Encodes the specified RecordLink message. Does not implicitly {@link Records.RecordLink.verify|verify} messages. - * @param message RecordLink message or plain object to encode + * Encodes the specified RecordMetadata message. 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 encode(message: Records.IRecordLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IRecordMetadata, 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 + * 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: Records.IRecordLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IRecordMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordLink message from the specified reader or buffer. + * Decodes a RecordMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordLink + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordLink; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.RecordMetadata; /** - * Decodes a RecordLink message from the specified reader or buffer, length delimited. + * Decodes a RecordMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordLink + * @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)): Records.RecordLink; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.RecordMetadata; /** - * Verifies a RecordLink message. + * 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 RecordLink message from a plain object. Also converts values to their respective internal types. + * Creates a RecordMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordLink + * @returns RecordMetadata */ - public static fromObject(object: { [k: string]: any }): Records.RecordLink; + public static fromObject(object: { [k: string]: any }): Folder.RecordMetadata; /** - * Creates a plain object from a RecordLink message. Also converts values to other types if specified. - * @param message RecordLink + * Creates a plain object from a RecordMetadata message. Also converts values to other types if specified. + * @param message RecordMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.RecordMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordLink to JSON. + * Converts this RecordMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordLink + * Gets the default type url for RecordMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordAudit. */ - interface IRecordAudit { + /** Properties of a FolderRecord. */ + interface IFolderRecord { - /** RecordAudit version */ - version?: (number|null); + /** the parent folder uid. Can reference the implicit root folder. */ + folderUid?: (Uint8Array|null); - /** RecordAudit data */ - data?: (Uint8Array|null); + /** record key and tla information */ + recordMetadata?: (Folder.IRecordMetadata|null); + + /** Indicates the encryption scheme used to encrypt the record key for this folder. */ + folderKeyEncryptionType?: (Folder.FolderKeyEncryptionType|null); } - /** Represents a RecordAudit. */ - class RecordAudit implements IRecordAudit { + /** Represents a FolderRecord. */ + class FolderRecord implements IFolderRecord { /** - * Constructs a new RecordAudit. + * Constructs a new FolderRecord. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordAudit); + constructor(properties?: Folder.IFolderRecord); - /** RecordAudit version. */ - public version: number; + /** the parent folder uid. Can reference the implicit root folder. */ + public folderUid: Uint8Array; - /** RecordAudit data. */ - public data: Uint8Array; + /** record key and tla information */ + public recordMetadata?: (Folder.IRecordMetadata|null); + + /** Indicates the encryption scheme used to encrypt the record key for this folder. */ + public folderKeyEncryptionType: Folder.FolderKeyEncryptionType; /** - * Creates a new RecordAudit instance using the specified properties. + * Creates a new FolderRecord instance using the specified properties. * @param [properties] Properties to set - * @returns RecordAudit instance + * @returns FolderRecord instance */ - public static create(properties?: Records.IRecordAudit): Records.RecordAudit; + public static create(properties?: Folder.IFolderRecord): Folder.FolderRecord; /** - * Encodes the specified RecordAudit message. Does not implicitly {@link Records.RecordAudit.verify|verify} messages. - * @param message RecordAudit message or plain object to encode + * Encodes the specified FolderRecord message. 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 encode(message: Records.IRecordAudit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IFolderRecord, 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 + * 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: Records.IRecordAudit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordAudit message from the specified reader or buffer. + * Decodes a FolderRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordAudit + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordAudit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderRecord; /** - * Decodes a RecordAudit message from the specified reader or buffer, length delimited. + * Decodes a FolderRecord message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordAudit + * @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)): Records.RecordAudit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.FolderRecord; /** - * Verifies a RecordAudit message. + * 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 RecordAudit message from a plain object. Also converts values to their respective internal types. + * Creates a FolderRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordAudit + * @returns FolderRecord */ - public static fromObject(object: { [k: string]: any }): Records.RecordAudit; + public static fromObject(object: { [k: string]: any }): Folder.FolderRecord; /** - * Creates a plain object from a RecordAudit message. Also converts values to other types if specified. - * @param message RecordAudit + * Creates a plain object from a FolderRecord message. Also converts values to other types if specified. + * @param message FolderRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordAudit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.FolderRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordAudit to JSON. + * Converts this FolderRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordAudit + * Gets the default type url for FolderRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SecurityData. */ - interface ISecurityData { + /** Properties of a FolderRecordUpdateResponse. */ + interface IFolderRecordUpdateResponse { - /** SecurityData data */ - data?: (Uint8Array|null); + /** FolderRecordUpdateResponse folderUid */ + folderUid?: (Uint8Array|null); + + /** FolderRecordUpdateResponse folderRecordUpdateResult */ + folderRecordUpdateResult?: (Folder.IFolderRecordUpdateResult[]|null); } - /** Represents a SecurityData. */ - class SecurityData implements ISecurityData { + /** Represents a FolderRecordUpdateResponse. */ + class FolderRecordUpdateResponse implements IFolderRecordUpdateResponse { /** - * Constructs a new SecurityData. + * Constructs a new FolderRecordUpdateResponse. * @param [properties] Properties to set */ - constructor(properties?: Records.ISecurityData); + constructor(properties?: Folder.IFolderRecordUpdateResponse); - /** SecurityData data. */ - public data: Uint8Array; + /** FolderRecordUpdateResponse folderUid. */ + public folderUid: Uint8Array; + + /** FolderRecordUpdateResponse folderRecordUpdateResult. */ + public folderRecordUpdateResult: Folder.IFolderRecordUpdateResult[]; /** - * Creates a new SecurityData instance using the specified properties. + * Creates a new FolderRecordUpdateResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SecurityData instance + * @returns FolderRecordUpdateResponse instance */ - public static create(properties?: Records.ISecurityData): Records.SecurityData; + public static create(properties?: Folder.IFolderRecordUpdateResponse): Folder.FolderRecordUpdateResponse; /** - * Encodes the specified SecurityData message. Does not implicitly {@link Records.SecurityData.verify|verify} messages. - * @param message SecurityData message or plain object to encode + * Encodes the specified FolderRecordUpdateResponse message. 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 encode(message: Records.ISecurityData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IFolderRecordUpdateResponse, 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 + * 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: Records.ISecurityData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IFolderRecordUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SecurityData message from the specified reader or buffer. + * Decodes a FolderRecordUpdateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SecurityData + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.SecurityData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderRecordUpdateResponse; /** - * Decodes a SecurityData message from the specified reader or buffer, length delimited. + * Decodes a FolderRecordUpdateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SecurityData + * @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)): Records.SecurityData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.FolderRecordUpdateResponse; /** - * Verifies a SecurityData message. + * 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 SecurityData message from a plain object. Also converts values to their respective internal types. + * Creates a FolderRecordUpdateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SecurityData + * @returns FolderRecordUpdateResponse */ - public static fromObject(object: { [k: string]: any }): Records.SecurityData; + public static fromObject(object: { [k: string]: any }): Folder.FolderRecordUpdateResponse; /** - * Creates a plain object from a SecurityData message. Also converts values to other types if specified. - * @param message SecurityData + * Creates a plain object from a FolderRecordUpdateResponse message. Also converts values to other types if specified. + * @param message FolderRecordUpdateResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.SecurityData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.FolderRecordUpdateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SecurityData to JSON. + * Converts this FolderRecordUpdateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SecurityData + * Gets the default type url for FolderRecordUpdateResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SecurityScoreData. */ - interface ISecurityScoreData { + /** Properties of a FolderRecordUpdateResult. */ + interface IFolderRecordUpdateResult { - /** SecurityScoreData data */ - data?: (Uint8Array|null); + /** FolderRecordUpdateResult recordUid */ + recordUid?: (Uint8Array|null); + + /** FolderRecordUpdateResult status */ + status?: (Folder.FolderModifyStatus|null); + + /** FolderRecordUpdateResult message */ + message?: (string|null); } - /** Represents a SecurityScoreData. */ - class SecurityScoreData implements ISecurityScoreData { + /** Represents a FolderRecordUpdateResult. */ + class FolderRecordUpdateResult implements IFolderRecordUpdateResult { /** - * Constructs a new SecurityScoreData. + * Constructs a new FolderRecordUpdateResult. * @param [properties] Properties to set */ - constructor(properties?: Records.ISecurityScoreData); + constructor(properties?: Folder.IFolderRecordUpdateResult); - /** SecurityScoreData data. */ - public data: Uint8Array; + /** FolderRecordUpdateResult recordUid. */ + public recordUid: Uint8Array; + + /** FolderRecordUpdateResult status. */ + public status: Folder.FolderModifyStatus; + + /** FolderRecordUpdateResult message. */ + public message: string; /** - * Creates a new SecurityScoreData instance using the specified properties. + * Creates a new FolderRecordUpdateResult instance using the specified properties. * @param [properties] Properties to set - * @returns SecurityScoreData instance + * @returns FolderRecordUpdateResult instance */ - public static create(properties?: Records.ISecurityScoreData): Records.SecurityScoreData; + public static create(properties?: Folder.IFolderRecordUpdateResult): Folder.FolderRecordUpdateResult; /** - * Encodes the specified SecurityScoreData message. Does not implicitly {@link Records.SecurityScoreData.verify|verify} messages. - * @param message SecurityScoreData message or plain object to encode + * Encodes the specified FolderRecordUpdateResult message. 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 encode(message: Records.ISecurityScoreData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IFolderRecordUpdateResult, 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 + * 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: Records.ISecurityScoreData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IFolderRecordUpdateResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SecurityScoreData message from the specified reader or buffer. + * Decodes a FolderRecordUpdateResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SecurityScoreData + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.SecurityScoreData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderRecordUpdateResult; /** - * Decodes a SecurityScoreData message from the specified reader or buffer, length delimited. + * Decodes a FolderRecordUpdateResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SecurityScoreData + * @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)): Records.SecurityScoreData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.FolderRecordUpdateResult; /** - * Verifies a SecurityScoreData message. + * 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 SecurityScoreData message from a plain object. Also converts values to their respective internal types. + * Creates a FolderRecordUpdateResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SecurityScoreData + * @returns FolderRecordUpdateResult */ - public static fromObject(object: { [k: string]: any }): Records.SecurityScoreData; + public static fromObject(object: { [k: string]: any }): Folder.FolderRecordUpdateResult; /** - * Creates a plain object from a SecurityScoreData message. Also converts values to other types if specified. - * @param message SecurityScoreData + * Creates a plain object from a FolderRecordUpdateResult message. Also converts values to other types if specified. + * @param message FolderRecordUpdateResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.SecurityScoreData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.FolderRecordUpdateResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SecurityScoreData to JSON. + * Converts this FolderRecordUpdateResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SecurityScoreData + * Gets the default type url for FolderRecordUpdateResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordAdd. */ - interface IRecordAdd { + /** AccessRoleType enum. */ + enum AccessRoleType { + NAVIGATOR = 0, + REQUESTOR = 1, + VIEWER = 2, + SHARED_MANAGER = 3, + CONTENT_MANAGER = 4, + CONTENT_SHARE_MANAGER = 5, + MANAGER = 6, + UNRESOLVED = 7 + } - /** RecordAdd recordUid */ - recordUid?: (Uint8Array|null); + /** Properties of a FolderAccessData. */ + interface IFolderAccessData { - /** RecordAdd recordKey */ - recordKey?: (Uint8Array|null); + /** FolderAccessData folderUid */ + folderUid?: (Uint8Array|null); - /** RecordAdd clientModifiedTime */ - clientModifiedTime?: (number|Long|null); + /** FolderAccessData accessTypeUid */ + accessTypeUid?: (Uint8Array|null); - /** RecordAdd data */ - data?: (Uint8Array|null); + /** FolderAccessData accessType */ + accessType?: (Folder.AccessType|null); - /** RecordAdd nonSharedData */ - nonSharedData?: (Uint8Array|null); + /** FolderAccessData accessRoleType */ + accessRoleType?: (Folder.AccessRoleType|null); - /** RecordAdd folderType */ - folderType?: (Records.RecordFolderType|null); + /** FolderAccessData folderKey */ + folderKey?: (Folder.IEncryptedDataKey|null); - /** RecordAdd folderUid */ - folderUid?: (Uint8Array|null); + /** FolderAccessData inherited */ + inherited?: (boolean|null); - /** RecordAdd folderKey */ - folderKey?: (Uint8Array|null); + /** FolderAccessData hidden */ + hidden?: (boolean|null); - /** RecordAdd recordLinks */ - recordLinks?: (Records.IRecordLink[]|null); + /** FolderAccessData permissions */ + permissions?: (Folder.IFolderPermissions|null); - /** RecordAdd audit */ - audit?: (Records.IRecordAudit|null); + /** FolderAccessData tlaProperties */ + tlaProperties?: (common.tla.ITLAProperties|null); - /** RecordAdd securityData */ - securityData?: (Records.ISecurityData|null); + /** FolderAccessData dateCreated */ + dateCreated?: (number|Long|null); - /** RecordAdd securityScoreData */ - securityScoreData?: (Records.ISecurityScoreData|null); + /** FolderAccessData lastModified */ + lastModified?: (number|Long|null); + + /** FolderAccessData deniedAccess */ + deniedAccess?: (boolean|null); } - /** Represents a RecordAdd. */ - class RecordAdd implements IRecordAdd { + /** Represents a FolderAccessData. */ + class FolderAccessData implements IFolderAccessData { /** - * Constructs a new RecordAdd. + * Constructs a new FolderAccessData. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordAdd); + constructor(properties?: Folder.IFolderAccessData); - /** RecordAdd recordUid. */ - public recordUid: Uint8Array; + /** FolderAccessData folderUid. */ + public folderUid: Uint8Array; - /** RecordAdd recordKey. */ - public recordKey: Uint8Array; + /** FolderAccessData accessTypeUid. */ + public accessTypeUid: Uint8Array; - /** RecordAdd clientModifiedTime. */ - public clientModifiedTime: (number|Long); + /** FolderAccessData accessType. */ + public accessType: Folder.AccessType; - /** RecordAdd data. */ - public data: Uint8Array; + /** FolderAccessData accessRoleType. */ + public accessRoleType: Folder.AccessRoleType; - /** RecordAdd nonSharedData. */ - public nonSharedData: Uint8Array; + /** FolderAccessData folderKey. */ + public folderKey?: (Folder.IEncryptedDataKey|null); - /** RecordAdd folderType. */ - public folderType: Records.RecordFolderType; + /** FolderAccessData inherited. */ + public inherited: boolean; - /** RecordAdd folderUid. */ - public folderUid: Uint8Array; + /** FolderAccessData hidden. */ + public hidden: boolean; - /** RecordAdd folderKey. */ - public folderKey: Uint8Array; + /** FolderAccessData permissions. */ + public permissions?: (Folder.IFolderPermissions|null); - /** RecordAdd recordLinks. */ - public recordLinks: Records.IRecordLink[]; + /** FolderAccessData tlaProperties. */ + public tlaProperties?: (common.tla.ITLAProperties|null); - /** RecordAdd audit. */ - public audit?: (Records.IRecordAudit|null); + /** FolderAccessData dateCreated. */ + public dateCreated: (number|Long); - /** RecordAdd securityData. */ - public securityData?: (Records.ISecurityData|null); + /** FolderAccessData lastModified. */ + public lastModified: (number|Long); - /** RecordAdd securityScoreData. */ - public securityScoreData?: (Records.ISecurityScoreData|null); + /** FolderAccessData deniedAccess. */ + public deniedAccess: boolean; /** - * Creates a new RecordAdd instance using the specified properties. + * Creates a new FolderAccessData instance using the specified properties. * @param [properties] Properties to set - * @returns RecordAdd instance + * @returns FolderAccessData instance */ - public static create(properties?: Records.IRecordAdd): Records.RecordAdd; + public static create(properties?: Folder.IFolderAccessData): Folder.FolderAccessData; /** - * Encodes the specified RecordAdd message. Does not implicitly {@link Records.RecordAdd.verify|verify} messages. - * @param message RecordAdd message or plain object to encode + * Encodes the specified FolderAccessData message. 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 encode(message: Records.IRecordAdd, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IFolderAccessData, 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 + * 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: Records.IRecordAdd, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IFolderAccessData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordAdd message from the specified reader or buffer. + * Decodes a FolderAccessData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordAdd + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordAdd; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderAccessData; /** - * Decodes a RecordAdd message from the specified reader or buffer, length delimited. + * Decodes a FolderAccessData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordAdd + * @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)): Records.RecordAdd; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.FolderAccessData; /** - * Verifies a RecordAdd message. + * 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 RecordAdd message from a plain object. Also converts values to their respective internal types. + * Creates a FolderAccessData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordAdd + * @returns FolderAccessData */ - public static fromObject(object: { [k: string]: any }): Records.RecordAdd; + public static fromObject(object: { [k: string]: any }): Folder.FolderAccessData; /** - * Creates a plain object from a RecordAdd message. Also converts values to other types if specified. - * @param message RecordAdd + * Creates a plain object from a FolderAccessData message. Also converts values to other types if specified. + * @param message FolderAccessData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordAdd, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.FolderAccessData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordAdd to JSON. + * Converts this FolderAccessData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordAdd + * Gets the default type url for FolderAccessData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordsAddRequest. */ - interface IRecordsAddRequest { + /** Properties of a RevokedAccess. */ + interface IRevokedAccess { - /** RecordsAddRequest records */ - records?: (Records.IRecordAdd[]|null); + /** the uid of the folder whose access have been revoked */ + folderUid?: (Uint8Array|null); - /** RecordsAddRequest clientTime */ - clientTime?: (number|Long|null); + /** the uid of actor whose access has been revoked. can represent a Team or a User (an account) */ + actorUid?: (Uint8Array|null); - /** RecordsAddRequest securityDataKeyType */ - securityDataKeyType?: (Records.RecordKeyType|null); + /** discriminant to distinguish between user (account) and team */ + accessType?: (Folder.AccessType|null); } - /** Represents a RecordsAddRequest. */ - class RecordsAddRequest implements IRecordsAddRequest { + /** Represents a RevokedAccess. */ + class RevokedAccess implements IRevokedAccess { /** - * Constructs a new RecordsAddRequest. + * Constructs a new RevokedAccess. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordsAddRequest); + constructor(properties?: Folder.IRevokedAccess); - /** RecordsAddRequest records. */ - public records: Records.IRecordAdd[]; + /** the uid of the folder whose access have been revoked */ + public folderUid: Uint8Array; - /** RecordsAddRequest clientTime. */ - public clientTime: (number|Long); + /** the uid of actor whose access has been revoked. can represent a Team or a User (an account) */ + public actorUid: Uint8Array; - /** RecordsAddRequest securityDataKeyType. */ - public securityDataKeyType: Records.RecordKeyType; + /** discriminant to distinguish between user (account) and team */ + public accessType: Folder.AccessType; /** - * Creates a new RecordsAddRequest instance using the specified properties. + * Creates a new RevokedAccess instance using the specified properties. * @param [properties] Properties to set - * @returns RecordsAddRequest instance + * @returns RevokedAccess instance */ - public static create(properties?: Records.IRecordsAddRequest): Records.RecordsAddRequest; + public static create(properties?: Folder.IRevokedAccess): Folder.RevokedAccess; /** - * Encodes the specified RecordsAddRequest message. Does not implicitly {@link Records.RecordsAddRequest.verify|verify} messages. - * @param message RecordsAddRequest message or plain object to encode + * Encodes the specified RevokedAccess message. 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 encode(message: Records.IRecordsAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IRevokedAccess, 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 + * 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: Records.IRecordsAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IRevokedAccess, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordsAddRequest message from the specified reader or buffer. + * Decodes a RevokedAccess message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordsAddRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsAddRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.RevokedAccess; /** - * Decodes a RecordsAddRequest message from the specified reader or buffer, length delimited. + * Decodes a RevokedAccess message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordsAddRequest + * @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)): Records.RecordsAddRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.RevokedAccess; /** - * Verifies a RecordsAddRequest message. + * 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 RecordsAddRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RevokedAccess message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordsAddRequest + * @returns RevokedAccess */ - public static fromObject(object: { [k: string]: any }): Records.RecordsAddRequest; + public static fromObject(object: { [k: string]: any }): Folder.RevokedAccess; /** - * Creates a plain object from a RecordsAddRequest message. Also converts values to other types if specified. - * @param message RecordsAddRequest + * Creates a plain object from a RevokedAccess message. Also converts values to other types if specified. + * @param message RevokedAccess * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.RevokedAccess, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordsAddRequest to JSON. + * Converts this RevokedAccess to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordsAddRequest + * Gets the default type url for RevokedAccess * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordUpdate. */ - interface IRecordUpdate { - - /** RecordUpdate recordUid */ - recordUid?: (Uint8Array|null); - - /** RecordUpdate clientModifiedTime */ - clientModifiedTime?: (number|Long|null); - - /** RecordUpdate revision */ - revision?: (number|Long|null); - - /** RecordUpdate data */ - data?: (Uint8Array|null); - - /** RecordUpdate nonSharedData */ - nonSharedData?: (Uint8Array|null); - - /** RecordUpdate recordLinksAdd */ - recordLinksAdd?: (Records.IRecordLink[]|null); - - /** RecordUpdate recordLinksRemove */ - recordLinksRemove?: (Uint8Array[]|null); + /** Properties of a DeniedAccess. */ + interface IDeniedAccess { - /** RecordUpdate audit */ - audit?: (Records.IRecordAudit|null); + /** the uid of the folder whose access have been denied */ + folderUid?: (Uint8Array|null); - /** RecordUpdate securityData */ - securityData?: (Records.ISecurityData|null); + /** the uid of actor whose access has been denied. can represent a Team or a User (an account) */ + actorUid?: (Uint8Array|null); - /** RecordUpdate securityScoreData */ - securityScoreData?: (Records.ISecurityScoreData|null); + /** discriminant to distinguish between user (account) and team */ + accessType?: (Folder.AccessType|null); } - /** Represents a RecordUpdate. */ - class RecordUpdate implements IRecordUpdate { + /** Represents a DeniedAccess. */ + class DeniedAccess implements IDeniedAccess { /** - * Constructs a new RecordUpdate. + * Constructs a new DeniedAccess. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordUpdate); - - /** RecordUpdate recordUid. */ - public recordUid: Uint8Array; - - /** RecordUpdate clientModifiedTime. */ - public clientModifiedTime: (number|Long); - - /** RecordUpdate revision. */ - public revision: (number|Long); - - /** RecordUpdate data. */ - public data: Uint8Array; + constructor(properties?: Folder.IDeniedAccess); - /** RecordUpdate nonSharedData. */ - public nonSharedData: Uint8Array; - - /** RecordUpdate recordLinksAdd. */ - public recordLinksAdd: Records.IRecordLink[]; - - /** RecordUpdate recordLinksRemove. */ - public recordLinksRemove: Uint8Array[]; - - /** RecordUpdate audit. */ - public audit?: (Records.IRecordAudit|null); + /** the uid of the folder whose access have been denied */ + public folderUid: Uint8Array; - /** RecordUpdate securityData. */ - public securityData?: (Records.ISecurityData|null); + /** the uid of actor whose access has been denied. can represent a Team or a User (an account) */ + public actorUid: Uint8Array; - /** RecordUpdate securityScoreData. */ - public securityScoreData?: (Records.ISecurityScoreData|null); + /** discriminant to distinguish between user (account) and team */ + public accessType: Folder.AccessType; /** - * Creates a new RecordUpdate instance using the specified properties. + * Creates a new DeniedAccess instance using the specified properties. * @param [properties] Properties to set - * @returns RecordUpdate instance + * @returns DeniedAccess instance */ - public static create(properties?: Records.IRecordUpdate): Records.RecordUpdate; + public static create(properties?: Folder.IDeniedAccess): Folder.DeniedAccess; /** - * Encodes the specified RecordUpdate message. Does not implicitly {@link Records.RecordUpdate.verify|verify} messages. - * @param message RecordUpdate message or plain object to encode + * Encodes the specified DeniedAccess message. Does not implicitly {@link Folder.DeniedAccess.verify|verify} messages. + * @param message DeniedAccess message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Records.IRecordUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IDeniedAccess, 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 + * Encodes the specified DeniedAccess message, length delimited. Does not implicitly {@link Folder.DeniedAccess.verify|verify} messages. + * @param message DeniedAccess 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; + public static encodeDelimited(message: Folder.IDeniedAccess, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordUpdate message from the specified reader or buffer. + * Decodes a DeniedAccess message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordUpdate + * @returns DeniedAccess * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordUpdate; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.DeniedAccess; /** - * Decodes a RecordUpdate message from the specified reader or buffer, length delimited. + * Decodes a DeniedAccess message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordUpdate + * @returns DeniedAccess * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.DeniedAccess; /** - * Verifies a RecordUpdate message. + * Verifies a DeniedAccess message. * @param message Plain object 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. + * Creates a DeniedAccess message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordUpdate + * @returns DeniedAccess */ - public static fromObject(object: { [k: string]: any }): Records.RecordUpdate; + public static fromObject(object: { [k: string]: any }): Folder.DeniedAccess; /** - * Creates a plain object from a RecordUpdate message. Also converts values to other types if specified. - * @param message RecordUpdate + * Creates a plain object from a DeniedAccess message. Also converts values to other types if specified. + * @param message DeniedAccess * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.DeniedAccess, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordUpdate to JSON. + * Converts this DeniedAccess to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordUpdate + * Gets the default type url for DeniedAccess * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordsUpdateRequest. */ - interface IRecordsUpdateRequest { - - /** RecordsUpdateRequest records */ - records?: (Records.IRecordUpdate[]|null); - - /** RecordsUpdateRequest clientTime */ - clientTime?: (number|Long|null); + /** Properties of a FolderRemoved. */ + interface IFolderRemoved { - /** RecordsUpdateRequest securityDataKeyType */ - securityDataKeyType?: (Records.RecordKeyType|null); + /** the uid of the folder that is either moved to trash or permanently deleted */ + folderUid?: (Uint8Array|null); } - /** Represents a RecordsUpdateRequest. */ - class RecordsUpdateRequest implements IRecordsUpdateRequest { + /** Represents a FolderRemoved. */ + class FolderRemoved implements IFolderRemoved { /** - * Constructs a new RecordsUpdateRequest. + * Constructs a new FolderRemoved. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordsUpdateRequest); - - /** RecordsUpdateRequest records. */ - public records: Records.IRecordUpdate[]; - - /** RecordsUpdateRequest clientTime. */ - public clientTime: (number|Long); + constructor(properties?: Folder.IFolderRemoved); - /** RecordsUpdateRequest securityDataKeyType. */ - public securityDataKeyType: Records.RecordKeyType; + /** the uid of the folder that is either moved to trash or permanently deleted */ + public folderUid: Uint8Array; /** - * Creates a new RecordsUpdateRequest instance using the specified properties. + * Creates a new FolderRemoved instance using the specified properties. * @param [properties] Properties to set - * @returns RecordsUpdateRequest instance + * @returns FolderRemoved instance */ - public static create(properties?: Records.IRecordsUpdateRequest): Records.RecordsUpdateRequest; + public static create(properties?: Folder.IFolderRemoved): Folder.FolderRemoved; /** - * Encodes the specified RecordsUpdateRequest message. Does not implicitly {@link Records.RecordsUpdateRequest.verify|verify} messages. - * @param message RecordsUpdateRequest message or plain object to encode + * Encodes the specified FolderRemoved message. 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 encode(message: Records.IRecordsUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IFolderRemoved, 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 + * 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: Records.IRecordsUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IFolderRemoved, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordsUpdateRequest message from the specified reader or buffer. + * Decodes a FolderRemoved message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordsUpdateRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUpdateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderRemoved; /** - * Decodes a RecordsUpdateRequest message from the specified reader or buffer, length delimited. + * Decodes a FolderRemoved message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordsUpdateRequest + * @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)): Records.RecordsUpdateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.FolderRemoved; /** - * Verifies a RecordsUpdateRequest message. + * 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 RecordsUpdateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FolderRemoved message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordsUpdateRequest + * @returns FolderRemoved */ - public static fromObject(object: { [k: string]: any }): Records.RecordsUpdateRequest; + public static fromObject(object: { [k: string]: any }): Folder.FolderRemoved; /** - * Creates a plain object from a RecordsUpdateRequest message. Also converts values to other types if specified. - * @param message RecordsUpdateRequest + * Creates a plain object from a FolderRemoved message. Also converts values to other types if specified. + * @param message FolderRemoved * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.FolderRemoved, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordsUpdateRequest to JSON. + * Converts this FolderRemoved to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordsUpdateRequest + * Gets the default type url for FolderRemoved * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordFileForConversion. */ - interface IRecordFileForConversion { + /** Properties of a RecordAccessData. */ + interface IRecordAccessData { - /** RecordFileForConversion recordUid */ + /** RecordAccessData accessTypeUid */ + accessTypeUid?: (Uint8Array|null); + + /** RecordAccessData accessType */ + accessType?: (Folder.AccessType|null); + + /** RecordAccessData recordUid */ recordUid?: (Uint8Array|null); - /** RecordFileForConversion fileFileId */ - fileFileId?: (string|null); + /** RecordAccessData accessRoleType */ + accessRoleType?: (Folder.AccessRoleType|null); - /** RecordFileForConversion thumbFileId */ - thumbFileId?: (string|null); + /** RecordAccessData owner */ + owner?: (boolean|null); - /** RecordFileForConversion data */ - data?: (Uint8Array|null); + /** RecordAccessData inherited */ + inherited?: (boolean|null); - /** RecordFileForConversion recordKey */ - recordKey?: (Uint8Array|null); + /** RecordAccessData hidden */ + hidden?: (boolean|null); - /** RecordFileForConversion linkKey */ - linkKey?: (Uint8Array|null); + /** RecordAccessData deniedAccess */ + deniedAccess?: (boolean|null); + + /** RecordAccessData canViewTitle */ + canViewTitle?: (boolean|null); + + /** RecordAccessData canEdit */ + canEdit?: (boolean|null); + + /** RecordAccessData canView */ + canView?: (boolean|null); + + /** RecordAccessData canListAccess */ + canListAccess?: (boolean|null); + + /** RecordAccessData canUpdateAccess */ + canUpdateAccess?: (boolean|null); + + /** RecordAccessData canDelete */ + canDelete?: (boolean|null); + + /** RecordAccessData canChangeOwnership */ + canChangeOwnership?: (boolean|null); + + /** RecordAccessData canRequestAccess */ + canRequestAccess?: (boolean|null); + + /** RecordAccessData canApproveAccess */ + canApproveAccess?: (boolean|null); + + /** RecordAccessData dateCreated */ + dateCreated?: (number|Long|null); + + /** RecordAccessData lastModified */ + lastModified?: (number|Long|null); + + /** RecordAccessData tlaProperties */ + tlaProperties?: (common.tla.ITLAProperties|null); } - /** Represents a RecordFileForConversion. */ - class RecordFileForConversion implements IRecordFileForConversion { + /** Represents a RecordAccessData. */ + class RecordAccessData implements IRecordAccessData { /** - * Constructs a new RecordFileForConversion. + * Constructs a new RecordAccessData. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordFileForConversion); + constructor(properties?: Folder.IRecordAccessData); - /** RecordFileForConversion recordUid. */ + /** RecordAccessData accessTypeUid. */ + public accessTypeUid: Uint8Array; + + /** RecordAccessData accessType. */ + public accessType: Folder.AccessType; + + /** RecordAccessData recordUid. */ public recordUid: Uint8Array; - /** RecordFileForConversion fileFileId. */ - public fileFileId: string; + /** RecordAccessData accessRoleType. */ + public accessRoleType: Folder.AccessRoleType; - /** RecordFileForConversion thumbFileId. */ - public thumbFileId: string; + /** RecordAccessData owner. */ + public owner: boolean; - /** RecordFileForConversion data. */ - public data: Uint8Array; + /** RecordAccessData inherited. */ + public inherited: boolean; - /** RecordFileForConversion recordKey. */ - public recordKey: Uint8Array; + /** RecordAccessData hidden. */ + public hidden: boolean; - /** RecordFileForConversion linkKey. */ - public linkKey: Uint8Array; + /** RecordAccessData deniedAccess. */ + public deniedAccess: boolean; + + /** RecordAccessData canViewTitle. */ + public canViewTitle: boolean; + + /** RecordAccessData canEdit. */ + public canEdit: boolean; + + /** RecordAccessData canView. */ + public canView: boolean; + + /** RecordAccessData canListAccess. */ + public canListAccess: boolean; + + /** RecordAccessData canUpdateAccess. */ + public canUpdateAccess: boolean; + + /** RecordAccessData canDelete. */ + public canDelete: boolean; + + /** RecordAccessData canChangeOwnership. */ + public canChangeOwnership: boolean; + + /** RecordAccessData canRequestAccess. */ + public canRequestAccess: boolean; + + /** RecordAccessData canApproveAccess. */ + public canApproveAccess: boolean; + + /** RecordAccessData dateCreated. */ + public dateCreated: (number|Long); + + /** RecordAccessData lastModified. */ + public lastModified: (number|Long); + + /** RecordAccessData tlaProperties. */ + public tlaProperties?: (common.tla.ITLAProperties|null); /** - * Creates a new RecordFileForConversion instance using the specified properties. + * Creates a new RecordAccessData instance using the specified properties. * @param [properties] Properties to set - * @returns RecordFileForConversion instance + * @returns RecordAccessData instance */ - public static create(properties?: Records.IRecordFileForConversion): Records.RecordFileForConversion; + public static create(properties?: Folder.IRecordAccessData): Folder.RecordAccessData; /** - * Encodes the specified RecordFileForConversion message. Does not implicitly {@link Records.RecordFileForConversion.verify|verify} messages. - * @param message RecordFileForConversion message or plain object to encode + * Encodes the specified RecordAccessData message. 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 encode(message: Records.IRecordFileForConversion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IRecordAccessData, 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 + * 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: Records.IRecordFileForConversion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IRecordAccessData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordFileForConversion message from the specified reader or buffer. + * Decodes a RecordAccessData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordFileForConversion + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordFileForConversion; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.RecordAccessData; /** - * Decodes a RecordFileForConversion message from the specified reader or buffer, length delimited. + * Decodes a RecordAccessData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordFileForConversion + * @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)): Records.RecordFileForConversion; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.RecordAccessData; /** - * Verifies a RecordFileForConversion message. + * 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 RecordFileForConversion message from a plain object. Also converts values to their respective internal types. + * Creates a RecordAccessData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordFileForConversion + * @returns RecordAccessData */ - public static fromObject(object: { [k: string]: any }): Records.RecordFileForConversion; + public static fromObject(object: { [k: string]: any }): Folder.RecordAccessData; /** - * Creates a plain object from a RecordFileForConversion message. Also converts values to other types if specified. - * @param message RecordFileForConversion + * Creates a plain object from a RecordAccessData message. Also converts values to other types if specified. + * @param message RecordAccessData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordFileForConversion, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.RecordAccessData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordFileForConversion to JSON. + * Converts this RecordAccessData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordFileForConversion + * Gets the default type url for RecordAccessData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordFolderForConversion. */ - interface IRecordFolderForConversion { + /** Properties of an AccessData. */ + interface IAccessData { - /** RecordFolderForConversion folderUid */ - folderUid?: (Uint8Array|null); + /** AccessData accessTypeUid */ + accessTypeUid?: (Uint8Array|null); - /** RecordFolderForConversion recordFolderKey */ - recordFolderKey?: (Uint8Array|null); + /** AccessData accessRoleType */ + accessRoleType?: (Folder.AccessRoleType|null); + + /** AccessData deniedAccess */ + deniedAccess?: (boolean|null); + + /** AccessData inherited */ + inherited?: (boolean|null); + + /** AccessData hidden */ + hidden?: (boolean|null); + + /** AccessData capabilities */ + capabilities?: (Folder.ICapabilities|null); } - /** Represents a RecordFolderForConversion. */ - class RecordFolderForConversion implements IRecordFolderForConversion { + /** Represents an AccessData. */ + class AccessData implements IAccessData { /** - * Constructs a new RecordFolderForConversion. + * Constructs a new AccessData. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordFolderForConversion); + constructor(properties?: Folder.IAccessData); - /** RecordFolderForConversion folderUid. */ - public folderUid: Uint8Array; + /** AccessData accessTypeUid. */ + public accessTypeUid: Uint8Array; - /** RecordFolderForConversion recordFolderKey. */ - public recordFolderKey: Uint8Array; + /** AccessData accessRoleType. */ + public accessRoleType: Folder.AccessRoleType; + + /** AccessData deniedAccess. */ + public deniedAccess: boolean; + + /** AccessData inherited. */ + public inherited: boolean; + + /** AccessData hidden. */ + public hidden: boolean; + + /** AccessData capabilities. */ + public capabilities?: (Folder.ICapabilities|null); /** - * Creates a new RecordFolderForConversion instance using the specified properties. + * Creates a new AccessData instance using the specified properties. * @param [properties] Properties to set - * @returns RecordFolderForConversion instance + * @returns AccessData instance */ - public static create(properties?: Records.IRecordFolderForConversion): Records.RecordFolderForConversion; + public static create(properties?: Folder.IAccessData): Folder.AccessData; /** - * Encodes the specified RecordFolderForConversion message. Does not implicitly {@link Records.RecordFolderForConversion.verify|verify} messages. - * @param message RecordFolderForConversion message or plain object to encode + * Encodes the specified AccessData message. 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 encode(message: Records.IRecordFolderForConversion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IAccessData, 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 + * 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: Records.IRecordFolderForConversion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IAccessData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordFolderForConversion message from the specified reader or buffer. + * Decodes an AccessData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordFolderForConversion + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordFolderForConversion; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.AccessData; /** - * Decodes a RecordFolderForConversion message from the specified reader or buffer, length delimited. + * Decodes an AccessData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordFolderForConversion + * @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)): Records.RecordFolderForConversion; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.AccessData; /** - * Verifies a RecordFolderForConversion message. + * 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 a RecordFolderForConversion message from a plain object. Also converts values to their respective internal types. + * Creates an AccessData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordFolderForConversion + * @returns AccessData */ - public static fromObject(object: { [k: string]: any }): Records.RecordFolderForConversion; + public static fromObject(object: { [k: string]: any }): Folder.AccessData; /** - * Creates a plain object from a RecordFolderForConversion message. Also converts values to other types if specified. - * @param message RecordFolderForConversion + * Creates a plain object from an AccessData message. Also converts values to other types if specified. + * @param message AccessData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordFolderForConversion, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.AccessData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordFolderForConversion to JSON. + * Converts this AccessData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordFolderForConversion + * Gets the default type url for AccessData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordConvertToV3. */ - interface IRecordConvertToV3 { - - /** RecordConvertToV3 recordUid */ - recordUid?: (Uint8Array|null); - - /** RecordConvertToV3 clientModifiedTime */ - clientModifiedTime?: (number|Long|null); - - /** RecordConvertToV3 revision */ - revision?: (number|Long|null); - - /** RecordConvertToV3 data */ - data?: (Uint8Array|null); - - /** RecordConvertToV3 nonSharedData */ - nonSharedData?: (Uint8Array|null); + /** Properties of a FolderAccessRequest. */ + interface IFolderAccessRequest { - /** RecordConvertToV3 audit */ - audit?: (Records.IRecordAudit|null); + /** FolderAccessRequest folderAccessAdds */ + folderAccessAdds?: (Folder.IFolderAccessData[]|null); - /** RecordConvertToV3 recordFile */ - recordFile?: (Records.IRecordFileForConversion[]|null); + /** FolderAccessRequest folderAccessUpdates */ + folderAccessUpdates?: (Folder.IFolderAccessData[]|null); - /** RecordConvertToV3 folderKey */ - folderKey?: (Records.IRecordFolderForConversion[]|null); + /** FolderAccessRequest folderAccessRemoves */ + folderAccessRemoves?: (Folder.IFolderAccessData[]|null); } - /** Represents a RecordConvertToV3. */ - class RecordConvertToV3 implements IRecordConvertToV3 { + /** Request for rest/vault/folders/v3/access_update end-point. */ + class FolderAccessRequest implements IFolderAccessRequest { /** - * Constructs a new RecordConvertToV3. + * Constructs a new FolderAccessRequest. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordConvertToV3); - - /** RecordConvertToV3 recordUid. */ - public recordUid: Uint8Array; - - /** RecordConvertToV3 clientModifiedTime. */ - public clientModifiedTime: (number|Long); - - /** RecordConvertToV3 revision. */ - public revision: (number|Long); - - /** RecordConvertToV3 data. */ - public data: Uint8Array; - - /** RecordConvertToV3 nonSharedData. */ - public nonSharedData: Uint8Array; + constructor(properties?: Folder.IFolderAccessRequest); - /** RecordConvertToV3 audit. */ - public audit?: (Records.IRecordAudit|null); + /** FolderAccessRequest folderAccessAdds. */ + public folderAccessAdds: Folder.IFolderAccessData[]; - /** RecordConvertToV3 recordFile. */ - public recordFile: Records.IRecordFileForConversion[]; + /** FolderAccessRequest folderAccessUpdates. */ + public folderAccessUpdates: Folder.IFolderAccessData[]; - /** RecordConvertToV3 folderKey. */ - public folderKey: Records.IRecordFolderForConversion[]; + /** FolderAccessRequest folderAccessRemoves. */ + public folderAccessRemoves: Folder.IFolderAccessData[]; /** - * Creates a new RecordConvertToV3 instance using the specified properties. + * Creates a new FolderAccessRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RecordConvertToV3 instance + * @returns FolderAccessRequest instance */ - public static create(properties?: Records.IRecordConvertToV3): Records.RecordConvertToV3; + public static create(properties?: Folder.IFolderAccessRequest): Folder.FolderAccessRequest; /** - * Encodes the specified RecordConvertToV3 message. Does not implicitly {@link Records.RecordConvertToV3.verify|verify} messages. - * @param message RecordConvertToV3 message or plain object to encode + * Encodes the specified FolderAccessRequest message. 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 encode(message: Records.IRecordConvertToV3, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IFolderAccessRequest, 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 + * 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: Records.IRecordConvertToV3, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IFolderAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordConvertToV3 message from the specified reader or buffer. + * Decodes a FolderAccessRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordConvertToV3 + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordConvertToV3; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderAccessRequest; /** - * Decodes a RecordConvertToV3 message from the specified reader or buffer, length delimited. + * Decodes a FolderAccessRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordConvertToV3 + * @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)): Records.RecordConvertToV3; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.FolderAccessRequest; /** - * Verifies a RecordConvertToV3 message. + * 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 RecordConvertToV3 message from a plain object. Also converts values to their respective internal types. + * Creates a FolderAccessRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordConvertToV3 + * @returns FolderAccessRequest */ - public static fromObject(object: { [k: string]: any }): Records.RecordConvertToV3; + public static fromObject(object: { [k: string]: any }): Folder.FolderAccessRequest; /** - * Creates a plain object from a RecordConvertToV3 message. Also converts values to other types if specified. - * @param message RecordConvertToV3 + * Creates a plain object from a FolderAccessRequest message. Also converts values to other types if specified. + * @param message FolderAccessRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordConvertToV3, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.FolderAccessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordConvertToV3 to JSON. + * Converts this FolderAccessRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordConvertToV3 + * Gets the default type url for FolderAccessRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordsConvertToV3Request. */ - interface IRecordsConvertToV3Request { + /** Properties of a FolderAccessResult. */ + interface IFolderAccessResult { - /** RecordsConvertToV3Request records */ - records?: (Records.IRecordConvertToV3[]|null); + /** FolderAccessResult folderUid */ + folderUid?: (Uint8Array|null); - /** RecordsConvertToV3Request clientTime */ - clientTime?: (number|Long|null); + /** FolderAccessResult accessUid */ + accessUid?: (Uint8Array|null); + + /** FolderAccessResult accessType */ + accessType?: (Folder.AccessType|null); + + /** FolderAccessResult status */ + status?: (Folder.FolderModifyStatus|null); + + /** FolderAccessResult message */ + message?: (string|null); } - /** Represents a RecordsConvertToV3Request. */ - class RecordsConvertToV3Request implements IRecordsConvertToV3Request { + /** Represents a FolderAccessResult. */ + class FolderAccessResult implements IFolderAccessResult { /** - * Constructs a new RecordsConvertToV3Request. + * Constructs a new FolderAccessResult. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordsConvertToV3Request); + constructor(properties?: Folder.IFolderAccessResult); - /** RecordsConvertToV3Request records. */ - public records: Records.IRecordConvertToV3[]; + /** FolderAccessResult folderUid. */ + public folderUid: Uint8Array; - /** RecordsConvertToV3Request clientTime. */ - public clientTime: (number|Long); + /** FolderAccessResult accessUid. */ + public accessUid: Uint8Array; + + /** FolderAccessResult accessType. */ + public accessType: Folder.AccessType; + + /** FolderAccessResult status. */ + public status: Folder.FolderModifyStatus; + + /** FolderAccessResult message. */ + public message: string; /** - * Creates a new RecordsConvertToV3Request instance using the specified properties. + * Creates a new FolderAccessResult instance using the specified properties. * @param [properties] Properties to set - * @returns RecordsConvertToV3Request instance + * @returns FolderAccessResult instance */ - public static create(properties?: Records.IRecordsConvertToV3Request): Records.RecordsConvertToV3Request; + public static create(properties?: Folder.IFolderAccessResult): Folder.FolderAccessResult; /** - * Encodes the specified RecordsConvertToV3Request message. Does not implicitly {@link Records.RecordsConvertToV3Request.verify|verify} messages. - * @param message RecordsConvertToV3Request message or plain object to encode + * Encodes the specified FolderAccessResult message. 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 encode(message: Records.IRecordsConvertToV3Request, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IFolderAccessResult, 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 + * 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: Records.IRecordsConvertToV3Request, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IFolderAccessResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordsConvertToV3Request message from the specified reader or buffer. + * Decodes a FolderAccessResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordsConvertToV3Request + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsConvertToV3Request; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderAccessResult; /** - * Decodes a RecordsConvertToV3Request message from the specified reader or buffer, length delimited. + * Decodes a FolderAccessResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordsConvertToV3Request + * @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)): Records.RecordsConvertToV3Request; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.FolderAccessResult; /** - * Verifies a RecordsConvertToV3Request message. + * 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 RecordsConvertToV3Request message from a plain object. Also converts values to their respective internal types. + * Creates a FolderAccessResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordsConvertToV3Request + * @returns FolderAccessResult */ - public static fromObject(object: { [k: string]: any }): Records.RecordsConvertToV3Request; + public static fromObject(object: { [k: string]: any }): Folder.FolderAccessResult; /** - * Creates a plain object from a RecordsConvertToV3Request message. Also converts values to other types if specified. - * @param message RecordsConvertToV3Request + * Creates a plain object from a FolderAccessResult message. Also converts values to other types if specified. + * @param message FolderAccessResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsConvertToV3Request, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.FolderAccessResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordsConvertToV3Request to JSON. + * Converts this FolderAccessResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordsConvertToV3Request + * Gets the default type url for FolderAccessResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordsRemoveRequest. */ - interface IRecordsRemoveRequest { + /** Properties of a FolderAccessResponse. */ + interface IFolderAccessResponse { - /** RecordsRemoveRequest records */ - records?: (Uint8Array[]|null); + /** FolderAccessResponse folderAccessResults */ + folderAccessResults?: (Folder.IFolderAccessResult[]|null); } - /** Represents a RecordsRemoveRequest. */ - class RecordsRemoveRequest implements IRecordsRemoveRequest { + /** Response for rest/vault/folders/v3/access_update end-point. */ + class FolderAccessResponse implements IFolderAccessResponse { /** - * Constructs a new RecordsRemoveRequest. + * Constructs a new FolderAccessResponse. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordsRemoveRequest); + constructor(properties?: Folder.IFolderAccessResponse); - /** RecordsRemoveRequest records. */ - public records: Uint8Array[]; + /** FolderAccessResponse folderAccessResults. */ + public folderAccessResults: Folder.IFolderAccessResult[]; /** - * Creates a new RecordsRemoveRequest instance using the specified properties. + * Creates a new FolderAccessResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RecordsRemoveRequest instance + * @returns FolderAccessResponse instance */ - public static create(properties?: Records.IRecordsRemoveRequest): Records.RecordsRemoveRequest; + public static create(properties?: Folder.IFolderAccessResponse): Folder.FolderAccessResponse; /** - * Encodes the specified RecordsRemoveRequest message. Does not implicitly {@link Records.RecordsRemoveRequest.verify|verify} messages. - * @param message RecordsRemoveRequest message or plain object to encode + * Encodes the specified FolderAccessResponse message. 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 encode(message: Records.IRecordsRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IFolderAccessResponse, 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 + * 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: Records.IRecordsRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IFolderAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordsRemoveRequest message from the specified reader or buffer. + * Decodes a FolderAccessResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordsRemoveRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsRemoveRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.FolderAccessResponse; /** - * Decodes a RecordsRemoveRequest message from the specified reader or buffer, length delimited. + * Decodes a FolderAccessResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordsRemoveRequest + * @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)): Records.RecordsRemoveRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.FolderAccessResponse; /** - * Verifies a RecordsRemoveRequest message. + * 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 RecordsRemoveRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FolderAccessResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordsRemoveRequest + * @returns FolderAccessResponse */ - public static fromObject(object: { [k: string]: any }): Records.RecordsRemoveRequest; + public static fromObject(object: { [k: string]: any }): Folder.FolderAccessResponse; /** - * Creates a plain object from a RecordsRemoveRequest message. Also converts values to other types if specified. - * @param message RecordsRemoveRequest + * Creates a plain object from a FolderAccessResponse message. Also converts values to other types if specified. + * @param message FolderAccessResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsRemoveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.FolderAccessResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordsRemoveRequest to JSON. + * Converts this FolderAccessResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordsRemoveRequest + * Gets the default type url for FolderAccessResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordRevert. */ - interface IRecordRevert { + /** AccessType enum. */ + enum AccessType { + AT_UNKNOWN = 0, + AT_OWNER = 1, + AT_USER = 2, + AT_TEAM = 3, + AT_ENTERPRISE = 4, + AT_FOLDER = 5, + AT_APPLICATION = 6 + } - /** RecordRevert recordUid */ - recordUid?: (Uint8Array|null); + /** ObjectType enum. */ + enum ObjectType { + OT_UNKNOWN = 0, + OT_RECORD = 1, + OT_FOLDER = 2 + } - /** RecordRevert revertToRevision */ - revertToRevision?: (number|Long|null); + /** Properties of a UserInfo. */ + interface IUserInfo { + + /** UserInfo accountUid */ + accountUid?: (Uint8Array|null); + + /** UserInfo username */ + username?: (string|null); } - /** Represents a RecordRevert. */ - class RecordRevert implements IRecordRevert { + /** Represents a UserInfo. */ + class UserInfo implements IUserInfo { /** - * Constructs a new RecordRevert. + * Constructs a new UserInfo. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordRevert); + constructor(properties?: Folder.IUserInfo); - /** RecordRevert recordUid. */ - public recordUid: Uint8Array; + /** UserInfo accountUid. */ + public accountUid: Uint8Array; - /** RecordRevert revertToRevision. */ - public revertToRevision: (number|Long); + /** UserInfo username. */ + public username: string; /** - * Creates a new RecordRevert instance using the specified properties. + * Creates a new UserInfo instance using the specified properties. * @param [properties] Properties to set - * @returns RecordRevert instance + * @returns UserInfo instance */ - public static create(properties?: Records.IRecordRevert): Records.RecordRevert; + public static create(properties?: Folder.IUserInfo): Folder.UserInfo; /** - * Encodes the specified RecordRevert message. Does not implicitly {@link Records.RecordRevert.verify|verify} messages. - * @param message RecordRevert message or plain object to encode + * Encodes the specified UserInfo message. 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 encode(message: Records.IRecordRevert, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IUserInfo, 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 + * 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: Records.IRecordRevert, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IUserInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordRevert message from the specified reader or buffer. + * Decodes a UserInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordRevert + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordRevert; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.UserInfo; /** - * Decodes a RecordRevert message from the specified reader or buffer, length delimited. + * Decodes a UserInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordRevert + * @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)): Records.RecordRevert; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.UserInfo; /** - * Verifies a RecordRevert message. + * 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 RecordRevert message from a plain object. Also converts values to their respective internal types. + * Creates a UserInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordRevert + * @returns UserInfo */ - public static fromObject(object: { [k: string]: any }): Records.RecordRevert; + public static fromObject(object: { [k: string]: any }): Folder.UserInfo; /** - * Creates a plain object from a RecordRevert message. Also converts values to other types if specified. - * @param message RecordRevert + * Creates a plain object from a UserInfo message. Also converts values to other types if specified. + * @param message UserInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordRevert, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.UserInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordRevert to JSON. + * Converts this UserInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordRevert + * Gets the default type url for UserInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordsRevertRequest. */ - interface IRecordsRevertRequest { + /** Properties of a RecordData. */ + interface IRecordData { - /** RecordsRevertRequest records */ - records?: (Records.IRecordRevert[]|null); + /** RecordData user */ + user?: (Folder.IUserInfo|null); + + /** RecordData data */ + data?: (Uint8Array|null); + + /** RecordData recordUid */ + recordUid?: (Uint8Array|null); } - /** Represents a RecordsRevertRequest. */ - class RecordsRevertRequest implements IRecordsRevertRequest { + /** Represents a RecordData. */ + class RecordData implements IRecordData { /** - * Constructs a new RecordsRevertRequest. + * Constructs a new RecordData. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordsRevertRequest); + constructor(properties?: Folder.IRecordData); - /** RecordsRevertRequest records. */ - public records: Records.IRecordRevert[]; + /** RecordData user. */ + public user?: (Folder.IUserInfo|null); + + /** RecordData data. */ + public data: Uint8Array; + + /** RecordData recordUid. */ + public recordUid: Uint8Array; /** - * Creates a new RecordsRevertRequest instance using the specified properties. + * Creates a new RecordData instance using the specified properties. * @param [properties] Properties to set - * @returns RecordsRevertRequest instance + * @returns RecordData instance */ - public static create(properties?: Records.IRecordsRevertRequest): Records.RecordsRevertRequest; + public static create(properties?: Folder.IRecordData): Folder.RecordData; /** - * Encodes the specified RecordsRevertRequest message. Does not implicitly {@link Records.RecordsRevertRequest.verify|verify} messages. - * @param message RecordsRevertRequest message or plain object to encode + * Encodes the specified RecordData message. 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 encode(message: Records.IRecordsRevertRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IRecordData, 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 + * 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: Records.IRecordsRevertRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IRecordData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordsRevertRequest message from the specified reader or buffer. + * Decodes a RecordData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordsRevertRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsRevertRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.RecordData; /** - * Decodes a RecordsRevertRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordsRevertRequest + * @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.RecordsRevertRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.RecordData; /** - * Verifies a RecordsRevertRequest message. + * 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 RecordsRevertRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordsRevertRequest + * @returns RecordData */ - public static fromObject(object: { [k: string]: any }): Records.RecordsRevertRequest; + public static fromObject(object: { [k: string]: any }): Folder.RecordData; /** - * Creates a plain object from a RecordsRevertRequest message. Also converts values to other types if specified. - * @param message RecordsRevertRequest + * Creates a plain object from a RecordData message. Also converts values to other types if specified. + * @param message RecordData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsRevertRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.RecordData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordsRevertRequest to JSON. + * Converts this RecordData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordsRevertRequest + * Gets the default type url for RecordData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** RecordModifyResult enum. */ - enum RecordModifyResult { - RS_SUCCESS = 0, - RS_OUT_OF_SYNC = 1, - RS_ACCESS_DENIED = 2, - RS_SHARE_DENIED = 3, - RS_RECORD_EXISTS = 4, - RS_OLD_RECORD_VERSION_TYPE = 5, - RS_NEW_RECORD_VERSION_TYPE = 6, - RS_FILES_NOT_MATCH = 7, - RS_RECORD_NOT_SHAREABLE = 8, - RS_ATTACHMENT_NOT_SHAREABLE = 9, - RS_FILE_LIMIT_REACHED = 10, - RS_SIZE_EXCEEDED_LIMIT = 11, - RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS = 12 - } + /** Properties of a RecordKey. */ + interface IRecordKey { - /** Properties of a RecordLinkError. */ - interface IRecordLinkError { + /** RecordKey userUid */ + userUid?: (Uint8Array|null); - /** RecordLinkError recordUid */ + /** RecordKey recordUid */ recordUid?: (Uint8Array|null); - /** RecordLinkError status */ - status?: (Records.RecordModifyResult|null); + /** RecordKey recordKey */ + recordKey?: (Uint8Array|null); - /** RecordLinkError message */ - message?: (string|null); + /** RecordKey encryptedKeyType */ + encryptedKeyType?: (Folder.EncryptedKeyType|null); } - /** Represents a RecordLinkError. */ - class RecordLinkError implements IRecordLinkError { + /** + * Represents a key for a record, which includes the user UID, record UID, and the encrypted key type. + * This is used to identify and manage access to the record's encrypted data. + */ + class RecordKey implements IRecordKey { /** - * Constructs a new RecordLinkError. + * Constructs a new RecordKey. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordLinkError); + constructor(properties?: Folder.IRecordKey); - /** RecordLinkError recordUid. */ + /** RecordKey userUid. */ + public userUid: Uint8Array; + + /** RecordKey recordUid. */ public recordUid: Uint8Array; - /** RecordLinkError status. */ - public status: Records.RecordModifyResult; + /** RecordKey recordKey. */ + public recordKey: Uint8Array; - /** RecordLinkError message. */ - public message: string; + /** RecordKey encryptedKeyType. */ + public encryptedKeyType: Folder.EncryptedKeyType; /** - * Creates a new RecordLinkError instance using the specified properties. + * Creates a new RecordKey instance using the specified properties. * @param [properties] Properties to set - * @returns RecordLinkError instance + * @returns RecordKey instance */ - public static create(properties?: Records.IRecordLinkError): Records.RecordLinkError; + public static create(properties?: Folder.IRecordKey): Folder.RecordKey; /** - * Encodes the specified RecordLinkError message. Does not implicitly {@link Records.RecordLinkError.verify|verify} messages. - * @param message RecordLinkError message or plain object to encode + * Encodes the specified RecordKey message. 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 encode(message: Records.IRecordLinkError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Folder.IRecordKey, 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 + * 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: Records.IRecordLinkError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Folder.IRecordKey, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordLinkError message from the specified reader or buffer. + * Decodes a RecordKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordLinkError + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordLinkError; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Folder.RecordKey; /** - * Decodes a RecordLinkError message from the specified reader or buffer, length delimited. + * Decodes a RecordKey message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordLinkError + * @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)): Records.RecordLinkError; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.RecordKey; /** - * Verifies a RecordLinkError message. + * 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 RecordLinkError message from a plain object. Also converts values to their respective internal types. + * Creates a RecordKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordLinkError + * @returns RecordKey */ - public static fromObject(object: { [k: string]: any }): Records.RecordLinkError; + public static fromObject(object: { [k: string]: any }): Folder.RecordKey; /** - * Creates a plain object from a RecordLinkError message. Also converts values to other types if specified. - * @param message RecordLinkError + * Creates a plain object from a RecordKey message. Also converts values to other types if specified. + * @param message RecordKey * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordLinkError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Folder.RecordKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordLinkError to JSON. + * Converts this RecordKey to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordLinkError + * Gets the default type url for RecordKey * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } +} - /** Properties of a RecordModifyStatus. */ - interface IRecordModifyStatus { +/** Namespace Records. */ +export namespace Records { - /** RecordModifyStatus recordUid */ - recordUid?: (Uint8Array|null); + /** RecordTypeScope enum. */ + enum RecordTypeScope { + RT_STANDARD = 0, + RT_USER = 1, + RT_ENTERPRISE = 2, + RT_PAM = 3, + RT_PAM_CONFIGURATION = 4 + } - /** RecordModifyStatus status */ - status?: (Records.RecordModifyResult|null); + /** Properties of a RecordType. */ + interface IRecordType { - /** RecordModifyStatus message */ - message?: (string|null); + /** RecordType recordTypeId */ + recordTypeId?: (number|null); - /** RecordModifyStatus linkErrors */ - linkErrors?: (Records.IRecordLinkError[]|null); + /** RecordType content */ + content?: (string|null); + + /** RecordType scope */ + scope?: (Records.RecordTypeScope|null); } - /** Represents a RecordModifyStatus. */ - class RecordModifyStatus implements IRecordModifyStatus { + /** Represents a RecordType. */ + class RecordType implements IRecordType { /** - * Constructs a new RecordModifyStatus. + * Constructs a new RecordType. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordModifyStatus); - - /** RecordModifyStatus recordUid. */ - public recordUid: Uint8Array; + constructor(properties?: Records.IRecordType); - /** RecordModifyStatus status. */ - public status: Records.RecordModifyResult; + /** RecordType recordTypeId. */ + public recordTypeId: number; - /** RecordModifyStatus message. */ - public message: string; + /** RecordType content. */ + public content: string; - /** RecordModifyStatus linkErrors. */ - public linkErrors: Records.IRecordLinkError[]; + /** RecordType scope. */ + public scope: Records.RecordTypeScope; /** - * Creates a new RecordModifyStatus instance using the specified properties. + * Creates a new RecordType instance using the specified properties. * @param [properties] Properties to set - * @returns RecordModifyStatus instance + * @returns RecordType instance */ - public static create(properties?: Records.IRecordModifyStatus): Records.RecordModifyStatus; + public static create(properties?: Records.IRecordType): Records.RecordType; /** - * Encodes the specified RecordModifyStatus message. Does not implicitly {@link Records.RecordModifyStatus.verify|verify} messages. - * @param message RecordModifyStatus message or plain object to encode + * Encodes the specified RecordType message. 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 encode(message: Records.IRecordModifyStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordType, 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 + * 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.IRecordModifyStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordModifyStatus message from the specified reader or buffer. + * Decodes a RecordType message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordModifyStatus + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordModifyStatus; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordType; /** - * Decodes a RecordModifyStatus message from the specified reader or buffer, length delimited. + * Decodes a RecordType message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordModifyStatus + * @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.RecordModifyStatus; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordType; /** - * Verifies a RecordModifyStatus message. + * 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 RecordModifyStatus message from a plain object. Also converts values to their respective internal types. + * Creates a RecordType message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordModifyStatus + * @returns RecordType */ - public static fromObject(object: { [k: string]: any }): Records.RecordModifyStatus; + public static fromObject(object: { [k: string]: any }): Records.RecordType; /** - * Creates a plain object from a RecordModifyStatus message. Also converts values to other types if specified. - * @param message RecordModifyStatus + * Creates a plain object from a RecordType message. Also converts values to other types if specified. + * @param message RecordType * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordModifyStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordType, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordModifyStatus to JSON. + * Converts this RecordType to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordModifyStatus + * Gets the default type url for RecordType * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordsModifyResponse. */ - interface IRecordsModifyResponse { + /** Properties of a RecordTypesRequest. */ + interface IRecordTypesRequest { - /** RecordsModifyResponse records */ - records?: (Records.IRecordModifyStatus[]|null); + /** RecordTypesRequest standard */ + standard?: (boolean|null); - /** RecordsModifyResponse revision */ - revision?: (number|Long|null); + /** RecordTypesRequest user */ + user?: (boolean|null); + + /** RecordTypesRequest enterprise */ + enterprise?: (boolean|null); + + /** RecordTypesRequest pam */ + pam?: (boolean|null); } - /** Represents a RecordsModifyResponse. */ - class RecordsModifyResponse implements IRecordsModifyResponse { + /** Represents a RecordTypesRequest. */ + class RecordTypesRequest implements IRecordTypesRequest { /** - * Constructs a new RecordsModifyResponse. + * Constructs a new RecordTypesRequest. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordsModifyResponse); + constructor(properties?: Records.IRecordTypesRequest); - /** RecordsModifyResponse records. */ - public records: Records.IRecordModifyStatus[]; + /** RecordTypesRequest standard. */ + public standard: boolean; - /** RecordsModifyResponse revision. */ - public revision: (number|Long); + /** RecordTypesRequest user. */ + public user: boolean; + + /** RecordTypesRequest enterprise. */ + public enterprise: boolean; + + /** RecordTypesRequest pam. */ + public pam: boolean; /** - * Creates a new RecordsModifyResponse instance using the specified properties. + * Creates a new RecordTypesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RecordsModifyResponse instance + * @returns RecordTypesRequest instance */ - public static create(properties?: Records.IRecordsModifyResponse): Records.RecordsModifyResponse; + public static create(properties?: Records.IRecordTypesRequest): Records.RecordTypesRequest; /** - * Encodes the specified RecordsModifyResponse message. Does not implicitly {@link Records.RecordsModifyResponse.verify|verify} messages. - * @param message RecordsModifyResponse message or plain object to encode + * Encodes the specified RecordTypesRequest message. 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 encode(message: Records.IRecordsModifyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordTypesRequest, 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 + * 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.IRecordsModifyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordsModifyResponse message from the specified reader or buffer. + * Decodes a RecordTypesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordsModifyResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsModifyResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordTypesRequest; /** - * Decodes a RecordsModifyResponse message from the specified reader or buffer, length delimited. + * Decodes a RecordTypesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordsModifyResponse + * @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.RecordsModifyResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordTypesRequest; /** - * Verifies a RecordsModifyResponse message. + * 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 RecordsModifyResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RecordTypesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordsModifyResponse + * @returns RecordTypesRequest */ - public static fromObject(object: { [k: string]: any }): Records.RecordsModifyResponse; + public static fromObject(object: { [k: string]: any }): Records.RecordTypesRequest; /** - * Creates a plain object from a RecordsModifyResponse message. Also converts values to other types if specified. - * @param message RecordsModifyResponse + * Creates a plain object from a RecordTypesRequest message. Also converts values to other types if specified. + * @param message RecordTypesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsModifyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordsModifyResponse to JSON. + * Converts this RecordTypesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordsModifyResponse + * Gets the default type url for RecordTypesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordAddAuditData. */ - interface IRecordAddAuditData { + /** Properties of a RecordTypesResponse. */ + interface IRecordTypesResponse { - /** RecordAddAuditData recordUid */ - recordUid?: (Uint8Array|null); + /** RecordTypesResponse recordTypes */ + recordTypes?: (Records.IRecordType[]|null); - /** RecordAddAuditData revision */ - revision?: (number|Long|null); + /** RecordTypesResponse standardCounter */ + standardCounter?: (number|null); - /** RecordAddAuditData data */ - data?: (Uint8Array|null); + /** RecordTypesResponse userCounter */ + userCounter?: (number|null); - /** RecordAddAuditData version */ - version?: (number|null); + /** RecordTypesResponse enterpriseCounter */ + enterpriseCounter?: (number|null); + + /** RecordTypesResponse pamCounter */ + pamCounter?: (number|null); } - /** Represents a RecordAddAuditData. */ - class RecordAddAuditData implements IRecordAddAuditData { + /** Represents a RecordTypesResponse. */ + class RecordTypesResponse implements IRecordTypesResponse { /** - * Constructs a new RecordAddAuditData. + * Constructs a new RecordTypesResponse. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordAddAuditData); + constructor(properties?: Records.IRecordTypesResponse); - /** RecordAddAuditData recordUid. */ - public recordUid: Uint8Array; + /** RecordTypesResponse recordTypes. */ + public recordTypes: Records.IRecordType[]; - /** RecordAddAuditData revision. */ - public revision: (number|Long); + /** RecordTypesResponse standardCounter. */ + public standardCounter: number; - /** RecordAddAuditData data. */ - public data: Uint8Array; + /** RecordTypesResponse userCounter. */ + public userCounter: number; - /** RecordAddAuditData version. */ - public version: number; + /** RecordTypesResponse enterpriseCounter. */ + public enterpriseCounter: number; + + /** RecordTypesResponse pamCounter. */ + public pamCounter: number; /** - * Creates a new RecordAddAuditData instance using the specified properties. + * Creates a new RecordTypesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RecordAddAuditData instance + * @returns RecordTypesResponse instance */ - public static create(properties?: Records.IRecordAddAuditData): Records.RecordAddAuditData; + public static create(properties?: Records.IRecordTypesResponse): Records.RecordTypesResponse; /** - * Encodes the specified RecordAddAuditData message. Does not implicitly {@link Records.RecordAddAuditData.verify|verify} messages. - * @param message RecordAddAuditData message or plain object to encode + * Encodes the specified RecordTypesResponse message. 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 encode(message: Records.IRecordAddAuditData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordTypesResponse, 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 + * 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.IRecordAddAuditData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordAddAuditData message from the specified reader or buffer. + * Decodes a RecordTypesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordAddAuditData + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordAddAuditData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordTypesResponse; /** - * Decodes a RecordAddAuditData message from the specified reader or buffer, length delimited. + * Decodes a RecordTypesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordAddAuditData + * @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.RecordAddAuditData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordTypesResponse; /** - * Verifies a RecordAddAuditData message. + * 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 RecordAddAuditData message from a plain object. Also converts values to their respective internal types. + * Creates a RecordTypesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordAddAuditData + * @returns RecordTypesResponse */ - public static fromObject(object: { [k: string]: any }): Records.RecordAddAuditData; + public static fromObject(object: { [k: string]: any }): Records.RecordTypesResponse; /** - * Creates a plain object from a RecordAddAuditData message. Also converts values to other types if specified. - * @param message RecordAddAuditData + * Creates a plain object from a RecordTypesResponse message. Also converts values to other types if specified. + * @param message RecordTypesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordAddAuditData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordAddAuditData to JSON. + * Converts this RecordTypesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordAddAuditData + * Gets the default type url for RecordTypesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AddAuditDataRequest. */ - interface IAddAuditDataRequest { + /** Properties of a RecordTypeModifyResponse. */ + interface IRecordTypeModifyResponse { - /** AddAuditDataRequest records */ - records?: (Records.IRecordAddAuditData[]|null); + /** RecordTypeModifyResponse recordTypeId */ + recordTypeId?: (number|null); + + /** RecordTypeModifyResponse counter */ + counter?: (number|null); } - /** Represents an AddAuditDataRequest. */ - class AddAuditDataRequest implements IAddAuditDataRequest { + /** Represents a RecordTypeModifyResponse. */ + class RecordTypeModifyResponse implements IRecordTypeModifyResponse { /** - * Constructs a new AddAuditDataRequest. + * Constructs a new RecordTypeModifyResponse. * @param [properties] Properties to set */ - constructor(properties?: Records.IAddAuditDataRequest); + constructor(properties?: Records.IRecordTypeModifyResponse); - /** AddAuditDataRequest records. */ - public records: Records.IRecordAddAuditData[]; + /** RecordTypeModifyResponse recordTypeId. */ + public recordTypeId: number; + + /** RecordTypeModifyResponse counter. */ + public counter: number; /** - * Creates a new AddAuditDataRequest instance using the specified properties. + * Creates a new RecordTypeModifyResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AddAuditDataRequest instance + * @returns RecordTypeModifyResponse instance */ - public static create(properties?: Records.IAddAuditDataRequest): Records.AddAuditDataRequest; + public static create(properties?: Records.IRecordTypeModifyResponse): Records.RecordTypeModifyResponse; /** - * Encodes the specified AddAuditDataRequest message. Does not implicitly {@link Records.AddAuditDataRequest.verify|verify} messages. - * @param message AddAuditDataRequest message or plain object to encode + * Encodes the specified RecordTypeModifyResponse message. 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 encode(message: Records.IAddAuditDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordTypeModifyResponse, 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 + * 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.IAddAuditDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordTypeModifyResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddAuditDataRequest message from the specified reader or buffer. + * Decodes a RecordTypeModifyResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddAuditDataRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.AddAuditDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordTypeModifyResponse; /** - * Decodes an AddAuditDataRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordTypeModifyResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddAuditDataRequest + * @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.AddAuditDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordTypeModifyResponse; /** - * Verifies an AddAuditDataRequest message. + * 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 an AddAuditDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordTypeModifyResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddAuditDataRequest + * @returns RecordTypeModifyResponse */ - public static fromObject(object: { [k: string]: any }): Records.AddAuditDataRequest; + public static fromObject(object: { [k: string]: any }): Records.RecordTypeModifyResponse; /** - * Creates a plain object from an AddAuditDataRequest message. Also converts values to other types if specified. - * @param message AddAuditDataRequest + * Creates a plain object from a RecordTypeModifyResponse message. Also converts values to other types if specified. + * @param message RecordTypeModifyResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.AddAuditDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordTypeModifyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddAuditDataRequest to JSON. + * Converts this RecordTypeModifyResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddAuditDataRequest + * Gets the default type url for RecordTypeModifyResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a File. */ - interface IFile { - - /** File recordUid */ - recordUid?: (Uint8Array|null); - - /** File recordKey */ - recordKey?: (Uint8Array|null); - - /** File data */ - data?: (Uint8Array|null); - - /** File fileSize */ - fileSize?: (number|Long|null); + /** Properties of a RecordsGetRequest. */ + interface IRecordsGetRequest { - /** File thumbSize */ - thumbSize?: (number|null); + /** RecordsGetRequest recordUids */ + recordUids?: (Uint8Array[]|null); - /** File isScript */ - isScript?: (boolean|null); + /** RecordsGetRequest clientTime */ + clientTime?: (number|Long|null); } - /** Represents a File. */ - class File implements IFile { + /** Represents a RecordsGetRequest. */ + class RecordsGetRequest implements IRecordsGetRequest { /** - * Constructs a new File. + * Constructs a new RecordsGetRequest. * @param [properties] Properties to set */ - constructor(properties?: Records.IFile); - - /** File recordUid. */ - public recordUid: Uint8Array; - - /** File recordKey. */ - public recordKey: Uint8Array; - - /** File data. */ - public data: Uint8Array; - - /** File fileSize. */ - public fileSize: (number|Long); + constructor(properties?: Records.IRecordsGetRequest); - /** File thumbSize. */ - public thumbSize: number; + /** RecordsGetRequest recordUids. */ + public recordUids: Uint8Array[]; - /** File isScript. */ - public isScript: boolean; + /** RecordsGetRequest clientTime. */ + public clientTime: (number|Long); /** - * Creates a new File instance using the specified properties. + * Creates a new RecordsGetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns File instance + * @returns RecordsGetRequest instance */ - public static create(properties?: Records.IFile): Records.File; + public static create(properties?: Records.IRecordsGetRequest): Records.RecordsGetRequest; /** - * Encodes the specified File message. Does not implicitly {@link Records.File.verify|verify} messages. - * @param message File message or plain object to encode + * Encodes the specified RecordsGetRequest message. 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 encode(message: Records.IFile, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordsGetRequest, 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 + * 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.IFile, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordsGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a File message from the specified reader or buffer. + * Decodes a RecordsGetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns File + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.File; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsGetRequest; /** - * Decodes a File message from the specified reader or buffer, length delimited. + * Decodes a RecordsGetRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns File + * @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.File; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsGetRequest; /** - * Verifies a File message. + * 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 File message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsGetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns File + * @returns RecordsGetRequest */ - public static fromObject(object: { [k: string]: any }): Records.File; + public static fromObject(object: { [k: string]: any }): Records.RecordsGetRequest; /** - * Creates a plain object from a File message. Also converts values to other types if specified. - * @param message File + * Creates a plain object from a RecordsGetRequest message. Also converts values to other types if specified. + * @param message RecordsGetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.File, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordsGetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this File to JSON. + * Converts this RecordsGetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for File + * Gets the default type url for RecordsGetRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FilesAddRequest. */ - interface IFilesAddRequest { + /** Properties of a Record. */ + interface IRecord { - /** FilesAddRequest files */ - files?: (Records.IFile[]|null); + /** Record recordUid */ + recordUid?: (Uint8Array|null); - /** FilesAddRequest clientTime */ - clientTime?: (number|Long|null); + /** Record recordKey */ + recordKey?: (Uint8Array|null); + + /** Record recordKeyType */ + recordKeyType?: (Records.RecordKeyType|null); + + /** Record data */ + data?: (Uint8Array|null); + + /** Record extra */ + extra?: (Uint8Array|null); + + /** Record version */ + version?: (number|null); + + /** Record clientModifiedTime */ + clientModifiedTime?: (number|Long|null); + + /** Record revision */ + revision?: (number|Long|null); + + /** Record fileIds */ + fileIds?: (Uint8Array[]|null); } - /** Represents a FilesAddRequest. */ - class FilesAddRequest implements IFilesAddRequest { + /** Represents a Record. */ + class Record implements IRecord { /** - * Constructs a new FilesAddRequest. + * Constructs a new Record. * @param [properties] Properties to set */ - constructor(properties?: Records.IFilesAddRequest); + constructor(properties?: Records.IRecord); - /** FilesAddRequest files. */ - public files: Records.IFile[]; + /** Record recordUid. */ + public recordUid: Uint8Array; - /** FilesAddRequest clientTime. */ - public clientTime: (number|Long); + /** Record recordKey. */ + public recordKey: Uint8Array; + + /** Record recordKeyType. */ + public recordKeyType: Records.RecordKeyType; + + /** Record data. */ + public data: Uint8Array; + + /** Record extra. */ + public extra: Uint8Array; + + /** Record version. */ + public version: number; + + /** Record clientModifiedTime. */ + public clientModifiedTime: (number|Long); + + /** Record revision. */ + public revision: (number|Long); + + /** Record fileIds. */ + public fileIds: Uint8Array[]; /** - * Creates a new FilesAddRequest instance using the specified properties. + * Creates a new Record instance using the specified properties. * @param [properties] Properties to set - * @returns FilesAddRequest instance + * @returns Record instance */ - public static create(properties?: Records.IFilesAddRequest): Records.FilesAddRequest; + public static create(properties?: Records.IRecord): Records.Record; /** - * Encodes the specified FilesAddRequest message. Does not implicitly {@link Records.FilesAddRequest.verify|verify} messages. - * @param message FilesAddRequest message or plain object to encode + * Encodes the specified Record message. 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 encode(message: Records.IFilesAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecord, 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 + * 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.IFilesAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FilesAddRequest message from the specified reader or buffer. + * Decodes a Record message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FilesAddRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FilesAddRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.Record; /** - * Decodes a FilesAddRequest message from the specified reader or buffer, length delimited. + * Decodes a Record message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FilesAddRequest + * @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.FilesAddRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.Record; /** - * Verifies a FilesAddRequest message. + * 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 FilesAddRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Record message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FilesAddRequest + * @returns Record */ - public static fromObject(object: { [k: string]: any }): Records.FilesAddRequest; + public static fromObject(object: { [k: string]: any }): Records.Record; /** - * Creates a plain object from a FilesAddRequest message. Also converts values to other types if specified. - * @param message FilesAddRequest + * Creates a plain object from a Record message. Also converts values to other types if specified. + * @param message Record * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.FilesAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.Record, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FilesAddRequest to JSON. + * Converts this Record to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FilesAddRequest + * Gets the default type url for Record * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** FileAddResult enum. */ - enum FileAddResult { - FA_SUCCESS = 0, - FA_ERROR = 1 + /** RecordKeyType enum. */ + enum RecordKeyType { + NO_KEY = 0, + ENCRYPTED_BY_DATA_KEY = 1, + ENCRYPTED_BY_PUBLIC_KEY = 2, + ENCRYPTED_BY_DATA_KEY_GCM = 3, + ENCRYPTED_BY_PUBLIC_KEY_ECC = 4, + ENCRYPTED_BY_ROOT_KEY_CBC = 5, + ENCRYPTED_BY_ROOT_KEY_GCM = 6 } - /** Properties of a FileAddStatus. */ - interface IFileAddStatus { - - /** FileAddStatus recordUid */ - recordUid?: (Uint8Array|null); - - /** FileAddStatus status */ - status?: (Records.FileAddResult|null); - - /** FileAddStatus url */ - url?: (string|null); + /** Properties of a FolderRecordKey. */ + interface IFolderRecordKey { - /** FileAddStatus parameters */ - parameters?: (string|null); + /** FolderRecordKey folderUid */ + folderUid?: (Uint8Array|null); - /** FileAddStatus thumbnailParameters */ - thumbnailParameters?: (string|null); + /** FolderRecordKey recordUid */ + recordUid?: (Uint8Array|null); - /** FileAddStatus successStatusCode */ - successStatusCode?: (number|null); + /** FolderRecordKey recordKey */ + recordKey?: (Uint8Array|null); } - /** Represents a FileAddStatus. */ - class FileAddStatus implements IFileAddStatus { + /** Represents a FolderRecordKey. */ + class FolderRecordKey implements IFolderRecordKey { /** - * Constructs a new FileAddStatus. + * Constructs a new FolderRecordKey. * @param [properties] Properties to set */ - constructor(properties?: Records.IFileAddStatus); - - /** FileAddStatus recordUid. */ - public recordUid: Uint8Array; - - /** FileAddStatus status. */ - public status: Records.FileAddResult; - - /** FileAddStatus url. */ - public url: string; + constructor(properties?: Records.IFolderRecordKey); - /** FileAddStatus parameters. */ - public parameters: string; + /** FolderRecordKey folderUid. */ + public folderUid: Uint8Array; - /** FileAddStatus thumbnailParameters. */ - public thumbnailParameters: string; + /** FolderRecordKey recordUid. */ + public recordUid: Uint8Array; - /** FileAddStatus successStatusCode. */ - public successStatusCode: number; + /** FolderRecordKey recordKey. */ + public recordKey: Uint8Array; /** - * Creates a new FileAddStatus instance using the specified properties. + * Creates a new FolderRecordKey instance using the specified properties. * @param [properties] Properties to set - * @returns FileAddStatus instance + * @returns FolderRecordKey instance */ - public static create(properties?: Records.IFileAddStatus): Records.FileAddStatus; + public static create(properties?: Records.IFolderRecordKey): Records.FolderRecordKey; /** - * Encodes the specified FileAddStatus message. Does not implicitly {@link Records.FileAddStatus.verify|verify} messages. - * @param message FileAddStatus message or plain object to encode + * Encodes the specified FolderRecordKey message. 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 encode(message: Records.IFileAddStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IFolderRecordKey, 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 + * 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.IFileAddStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IFolderRecordKey, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FileAddStatus message from the specified reader or buffer. + * Decodes a FolderRecordKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FileAddStatus + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FileAddStatus; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FolderRecordKey; /** - * Decodes a FileAddStatus message from the specified reader or buffer, length delimited. + * Decodes a FolderRecordKey message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FileAddStatus + * @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.FileAddStatus; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.FolderRecordKey; /** - * Verifies a FileAddStatus message. + * 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 FileAddStatus message from a plain object. Also converts values to their respective internal types. + * Creates a FolderRecordKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FileAddStatus + * @returns FolderRecordKey */ - public static fromObject(object: { [k: string]: any }): Records.FileAddStatus; + public static fromObject(object: { [k: string]: any }): Records.FolderRecordKey; /** - * Creates a plain object from a FileAddStatus message. Also converts values to other types if specified. - * @param message FileAddStatus + * Creates a plain object from a FolderRecordKey message. Also converts values to other types if specified. + * @param message FolderRecordKey * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.FileAddStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.FolderRecordKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FileAddStatus to JSON. + * Converts this FolderRecordKey to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FileAddStatus + * Gets the default type url for FolderRecordKey * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FilesAddResponse. */ - interface IFilesAddResponse { + /** Properties of a Folder. */ + interface IFolder { - /** FilesAddResponse files */ - files?: (Records.IFileAddStatus[]|null); + /** Folder folderUid */ + folderUid?: (Uint8Array|null); - /** FilesAddResponse revision */ - revision?: (number|Long|null); + /** Folder folderKey */ + folderKey?: (Uint8Array|null); + + /** Folder folderKeyType */ + folderKeyType?: (Records.RecordKeyType|null); } - /** Represents a FilesAddResponse. */ - class FilesAddResponse implements IFilesAddResponse { + /** Represents a Folder. */ + class Folder implements IFolder { /** - * Constructs a new FilesAddResponse. + * Constructs a new Folder. * @param [properties] Properties to set */ - constructor(properties?: Records.IFilesAddResponse); + constructor(properties?: Records.IFolder); - /** FilesAddResponse files. */ - public files: Records.IFileAddStatus[]; + /** Folder folderUid. */ + public folderUid: Uint8Array; - /** FilesAddResponse revision. */ - public revision: (number|Long); + /** Folder folderKey. */ + public folderKey: Uint8Array; + + /** Folder folderKeyType. */ + public folderKeyType: Records.RecordKeyType; /** - * Creates a new FilesAddResponse instance using the specified properties. + * Creates a new Folder instance using the specified properties. * @param [properties] Properties to set - * @returns FilesAddResponse instance + * @returns Folder instance */ - public static create(properties?: Records.IFilesAddResponse): Records.FilesAddResponse; + public static create(properties?: Records.IFolder): Records.Folder; /** - * Encodes the specified FilesAddResponse message. Does not implicitly {@link Records.FilesAddResponse.verify|verify} messages. - * @param message FilesAddResponse message or plain object to encode + * Encodes the specified Folder message. 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 encode(message: Records.IFilesAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IFolder, 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 + * 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.IFilesAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IFolder, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FilesAddResponse message from the specified reader or buffer. + * Decodes a Folder message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FilesAddResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FilesAddResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.Folder; /** - * Decodes a FilesAddResponse message from the specified reader or buffer, length delimited. + * Decodes a Folder message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FilesAddResponse + * @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.FilesAddResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.Folder; /** - * Verifies a FilesAddResponse message. + * 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 FilesAddResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Folder message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FilesAddResponse + * @returns Folder */ - public static fromObject(object: { [k: string]: any }): Records.FilesAddResponse; + public static fromObject(object: { [k: string]: any }): Records.Folder; /** - * Creates a plain object from a FilesAddResponse message. Also converts values to other types if specified. - * @param message FilesAddResponse + * Creates a plain object from a Folder message. Also converts values to other types if specified. + * @param message Folder * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.FilesAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.Folder, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FilesAddResponse to JSON. + * Converts this Folder to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FilesAddResponse + * Gets the default type url for Folder * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FilesGetRequest. */ - interface IFilesGetRequest { + /** Properties of a Team. */ + interface ITeam { - /** FilesGetRequest recordUids */ - recordUids?: (Uint8Array[]|null); + /** Team teamUid */ + teamUid?: (Uint8Array|null); - /** FilesGetRequest forThumbnails */ - forThumbnails?: (boolean|null); + /** Team teamKey */ + teamKey?: (Uint8Array|null); - /** FilesGetRequest emergencyAccessAccountOwner */ - emergencyAccessAccountOwner?: (string|null); + /** Team teamPrivateKey */ + teamPrivateKey?: (Uint8Array|null); + + /** Team teamKeyType */ + teamKeyType?: (Records.RecordKeyType|null); + + /** Team folders */ + folders?: (Records.IFolder[]|null); } - /** Represents a FilesGetRequest. */ - class FilesGetRequest implements IFilesGetRequest { + /** Represents a Team. */ + class Team implements ITeam { /** - * Constructs a new FilesGetRequest. + * Constructs a new Team. * @param [properties] Properties to set */ - constructor(properties?: Records.IFilesGetRequest); + constructor(properties?: Records.ITeam); - /** FilesGetRequest recordUids. */ - public recordUids: Uint8Array[]; + /** Team teamUid. */ + public teamUid: Uint8Array; - /** FilesGetRequest forThumbnails. */ - public forThumbnails: boolean; + /** Team teamKey. */ + public teamKey: Uint8Array; - /** FilesGetRequest emergencyAccessAccountOwner. */ - public emergencyAccessAccountOwner: string; + /** Team teamPrivateKey. */ + public teamPrivateKey: Uint8Array; + + /** Team teamKeyType. */ + public teamKeyType: Records.RecordKeyType; + + /** Team folders. */ + public folders: Records.IFolder[]; /** - * Creates a new FilesGetRequest instance using the specified properties. + * Creates a new Team instance using the specified properties. * @param [properties] Properties to set - * @returns FilesGetRequest instance + * @returns Team instance */ - public static create(properties?: Records.IFilesGetRequest): Records.FilesGetRequest; + public static create(properties?: Records.ITeam): Records.Team; /** - * Encodes the specified FilesGetRequest message. Does not implicitly {@link Records.FilesGetRequest.verify|verify} messages. - * @param message FilesGetRequest message or plain object to encode + * Encodes the specified Team message. 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 encode(message: Records.IFilesGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.ITeam, 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 + * 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.IFilesGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.ITeam, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FilesGetRequest message from the specified reader or buffer. + * Decodes a Team message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FilesGetRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FilesGetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.Team; /** - * Decodes a FilesGetRequest message from the specified reader or buffer, length delimited. + * Decodes a Team message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FilesGetRequest + * @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.FilesGetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.Team; /** - * Verifies a FilesGetRequest message. + * 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 FilesGetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Team message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FilesGetRequest + * @returns Team */ - public static fromObject(object: { [k: string]: any }): Records.FilesGetRequest; + public static fromObject(object: { [k: string]: any }): Records.Team; /** - * Creates a plain object from a FilesGetRequest message. Also converts values to other types if specified. - * @param message FilesGetRequest + * Creates a plain object from a Team message. Also converts values to other types if specified. + * @param message Team * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.FilesGetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.Team, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FilesGetRequest to JSON. + * Converts this Team to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FilesGetRequest + * Gets the default type url for Team * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** FileGetResult enum. */ - enum FileGetResult { - FG_SUCCESS = 0, - FG_ERROR = 1, - FG_ACCESS_DENIED = 2 - } - - /** Properties of a FileGetStatus. */ - interface IFileGetStatus { - - /** FileGetStatus recordUid */ - recordUid?: (Uint8Array|null); + /** Properties of a RecordsGetResponse. */ + interface IRecordsGetResponse { - /** FileGetStatus status */ - status?: (Records.FileGetResult|null); + /** RecordsGetResponse records */ + records?: (Records.IRecord[]|null); - /** FileGetStatus url */ - url?: (string|null); + /** RecordsGetResponse folderRecordKeys */ + folderRecordKeys?: (Records.IFolderRecordKey[]|null); - /** FileGetStatus successStatusCode */ - successStatusCode?: (number|null); + /** RecordsGetResponse folders */ + folders?: (Records.IFolder[]|null); - /** FileGetStatus fileKeyType */ - fileKeyType?: (Records.RecordKeyType|null); + /** RecordsGetResponse teams */ + teams?: (Records.ITeam[]|null); } - /** Represents a FileGetStatus. */ - class FileGetStatus implements IFileGetStatus { + /** Represents a RecordsGetResponse. */ + class RecordsGetResponse implements IRecordsGetResponse { /** - * Constructs a new FileGetStatus. + * Constructs a new RecordsGetResponse. * @param [properties] Properties to set */ - constructor(properties?: Records.IFileGetStatus); - - /** FileGetStatus recordUid. */ - public recordUid: Uint8Array; + constructor(properties?: Records.IRecordsGetResponse); - /** FileGetStatus status. */ - public status: Records.FileGetResult; + /** RecordsGetResponse records. */ + public records: Records.IRecord[]; - /** FileGetStatus url. */ - public url: string; + /** RecordsGetResponse folderRecordKeys. */ + public folderRecordKeys: Records.IFolderRecordKey[]; - /** FileGetStatus successStatusCode. */ - public successStatusCode: number; + /** RecordsGetResponse folders. */ + public folders: Records.IFolder[]; - /** FileGetStatus fileKeyType. */ - public fileKeyType: Records.RecordKeyType; + /** RecordsGetResponse teams. */ + public teams: Records.ITeam[]; /** - * Creates a new FileGetStatus instance using the specified properties. + * Creates a new RecordsGetResponse instance using the specified properties. * @param [properties] Properties to set - * @returns FileGetStatus instance + * @returns RecordsGetResponse instance */ - public static create(properties?: Records.IFileGetStatus): Records.FileGetStatus; + public static create(properties?: Records.IRecordsGetResponse): Records.RecordsGetResponse; /** - * Encodes the specified FileGetStatus message. Does not implicitly {@link Records.FileGetStatus.verify|verify} messages. - * @param message FileGetStatus message or plain object to encode + * Encodes the specified RecordsGetResponse message. 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 encode(message: Records.IFileGetStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordsGetResponse, 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 + * 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.IFileGetStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordsGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FileGetStatus message from the specified reader or buffer. + * Decodes a RecordsGetResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FileGetStatus + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FileGetStatus; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsGetResponse; /** - * Decodes a FileGetStatus message from the specified reader or buffer, length delimited. + * Decodes a RecordsGetResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FileGetStatus + * @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.FileGetStatus; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsGetResponse; /** - * Verifies a FileGetStatus message. + * 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 FileGetStatus message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsGetResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FileGetStatus + * @returns RecordsGetResponse */ - public static fromObject(object: { [k: string]: any }): Records.FileGetStatus; + public static fromObject(object: { [k: string]: any }): Records.RecordsGetResponse; /** - * Creates a plain object from a FileGetStatus message. Also converts values to other types if specified. - * @param message FileGetStatus + * Creates a plain object from a RecordsGetResponse message. Also converts values to other types if specified. + * @param message RecordsGetResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.FileGetStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordsGetResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FileGetStatus to JSON. + * Converts this RecordsGetResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FileGetStatus + * Gets the default type url for RecordsGetResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FilesGetResponse. */ - interface IFilesGetResponse { + /** RecordFolderType enum. */ + enum RecordFolderType { + user_folder = 0, + shared_folder = 1, + shared_folder_folder = 2 + } - /** FilesGetResponse files */ - files?: (Records.IFileGetStatus[]|null); + /** Properties of a RecordLink. */ + interface IRecordLink { + + /** RecordLink recordUid */ + recordUid?: (Uint8Array|null); + + /** RecordLink recordKey */ + recordKey?: (Uint8Array|null); } - /** Represents a FilesGetResponse. */ - class FilesGetResponse implements IFilesGetResponse { + /** Represents a RecordLink. */ + class RecordLink implements IRecordLink { /** - * Constructs a new FilesGetResponse. + * Constructs a new RecordLink. * @param [properties] Properties to set */ - constructor(properties?: Records.IFilesGetResponse); + constructor(properties?: Records.IRecordLink); - /** FilesGetResponse files. */ - public files: Records.IFileGetStatus[]; + /** RecordLink recordUid. */ + public recordUid: Uint8Array; + + /** RecordLink recordKey. */ + public recordKey: Uint8Array; /** - * Creates a new FilesGetResponse instance using the specified properties. + * Creates a new RecordLink instance using the specified properties. * @param [properties] Properties to set - * @returns FilesGetResponse instance + * @returns RecordLink instance */ - public static create(properties?: Records.IFilesGetResponse): Records.FilesGetResponse; + public static create(properties?: Records.IRecordLink): Records.RecordLink; /** - * Encodes the specified FilesGetResponse message. Does not implicitly {@link Records.FilesGetResponse.verify|verify} messages. - * @param message FilesGetResponse message or plain object to encode + * Encodes the specified RecordLink message. 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 encode(message: Records.IFilesGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordLink, 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 + * 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.IFilesGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordLink, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FilesGetResponse message from the specified reader or buffer. + * Decodes a RecordLink message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FilesGetResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FilesGetResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordLink; /** - * Decodes a FilesGetResponse message from the specified reader or buffer, length delimited. + * Decodes a RecordLink message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FilesGetResponse + * @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.FilesGetResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordLink; /** - * Verifies a FilesGetResponse message. + * 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 FilesGetResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RecordLink message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FilesGetResponse + * @returns RecordLink */ - public static fromObject(object: { [k: string]: any }): Records.FilesGetResponse; + public static fromObject(object: { [k: string]: any }): Records.RecordLink; /** - * Creates a plain object from a FilesGetResponse message. Also converts values to other types if specified. - * @param message FilesGetResponse + * Creates a plain object from a RecordLink message. Also converts values to other types if specified. + * @param message RecordLink * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.FilesGetResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FilesGetResponse to JSON. + * Converts this RecordLink to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FilesGetResponse + * Gets the default type url for RecordLink * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ApplicationAddRequest. */ - interface IApplicationAddRequest { - - /** ApplicationAddRequest appUid */ - appUid?: (Uint8Array|null); - - /** ApplicationAddRequest recordKey */ - recordKey?: (Uint8Array|null); + /** Properties of a RecordAudit. */ + interface IRecordAudit { - /** ApplicationAddRequest clientModifiedTime */ - clientModifiedTime?: (number|Long|null); + /** RecordAudit version */ + version?: (number|null); - /** ApplicationAddRequest data */ + /** RecordAudit data */ data?: (Uint8Array|null); - - /** ApplicationAddRequest audit */ - audit?: (Records.IRecordAudit|null); } - /** Represents an ApplicationAddRequest. */ - class ApplicationAddRequest implements IApplicationAddRequest { + /** Represents a RecordAudit. */ + class RecordAudit implements IRecordAudit { /** - * Constructs a new ApplicationAddRequest. + * Constructs a new RecordAudit. * @param [properties] Properties to set */ - constructor(properties?: Records.IApplicationAddRequest); - - /** ApplicationAddRequest appUid. */ - public appUid: Uint8Array; - - /** ApplicationAddRequest recordKey. */ - public recordKey: Uint8Array; + constructor(properties?: Records.IRecordAudit); - /** ApplicationAddRequest clientModifiedTime. */ - public clientModifiedTime: (number|Long); + /** RecordAudit version. */ + public version: number; - /** ApplicationAddRequest data. */ + /** RecordAudit data. */ public data: Uint8Array; - /** ApplicationAddRequest audit. */ - public audit?: (Records.IRecordAudit|null); - /** - * Creates a new ApplicationAddRequest instance using the specified properties. + * Creates a new RecordAudit instance using the specified properties. * @param [properties] Properties to set - * @returns ApplicationAddRequest instance + * @returns RecordAudit instance */ - public static create(properties?: Records.IApplicationAddRequest): Records.ApplicationAddRequest; + public static create(properties?: Records.IRecordAudit): Records.RecordAudit; /** - * Encodes the specified ApplicationAddRequest message. Does not implicitly {@link Records.ApplicationAddRequest.verify|verify} messages. - * @param message ApplicationAddRequest message or plain object to encode + * Encodes the specified RecordAudit message. 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 encode(message: Records.IApplicationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordAudit, 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 + * 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.IApplicationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordAudit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApplicationAddRequest message from the specified reader or buffer. + * Decodes a RecordAudit message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ApplicationAddRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.ApplicationAddRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordAudit; /** - * Decodes an ApplicationAddRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordAudit message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ApplicationAddRequest + * @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.ApplicationAddRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordAudit; /** - * Verifies an ApplicationAddRequest message. + * 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 an ApplicationAddRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordAudit message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApplicationAddRequest + * @returns RecordAudit */ - public static fromObject(object: { [k: string]: any }): Records.ApplicationAddRequest; + public static fromObject(object: { [k: string]: any }): Records.RecordAudit; /** - * Creates a plain object from an ApplicationAddRequest message. Also converts values to other types if specified. - * @param message ApplicationAddRequest + * Creates a plain object from a RecordAudit message. Also converts values to other types if specified. + * @param message RecordAudit * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.ApplicationAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordAudit, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApplicationAddRequest to JSON. + * Converts this RecordAudit to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ApplicationAddRequest + * Gets the default type url for RecordAudit * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** RecordDetailsInclude enum. */ - enum RecordDetailsInclude { - DATA_PLUS_SHARE = 0, - DATA_ONLY = 1, - SHARE_ONLY = 2 - } - - /** Properties of a GetRecordDataWithAccessInfoRequest. */ - interface IGetRecordDataWithAccessInfoRequest { - - /** GetRecordDataWithAccessInfoRequest clientTime */ - clientTime?: (number|Long|null); - - /** GetRecordDataWithAccessInfoRequest recordUid */ - recordUid?: (Uint8Array[]|null); + /** Properties of a SecurityData. */ + interface ISecurityData { - /** GetRecordDataWithAccessInfoRequest recordDetailsInclude */ - recordDetailsInclude?: (Records.RecordDetailsInclude|null); + /** SecurityData data */ + data?: (Uint8Array|null); } - /** Represents a GetRecordDataWithAccessInfoRequest. */ - class GetRecordDataWithAccessInfoRequest implements IGetRecordDataWithAccessInfoRequest { + /** Represents a SecurityData. */ + class SecurityData implements ISecurityData { /** - * Constructs a new GetRecordDataWithAccessInfoRequest. + * Constructs a new SecurityData. * @param [properties] Properties to set */ - constructor(properties?: Records.IGetRecordDataWithAccessInfoRequest); - - /** GetRecordDataWithAccessInfoRequest clientTime. */ - public clientTime: (number|Long); - - /** GetRecordDataWithAccessInfoRequest recordUid. */ - public recordUid: Uint8Array[]; + constructor(properties?: Records.ISecurityData); - /** GetRecordDataWithAccessInfoRequest recordDetailsInclude. */ - public recordDetailsInclude: Records.RecordDetailsInclude; + /** SecurityData data. */ + public data: Uint8Array; /** - * Creates a new GetRecordDataWithAccessInfoRequest instance using the specified properties. + * Creates a new SecurityData instance using the specified properties. * @param [properties] Properties to set - * @returns GetRecordDataWithAccessInfoRequest instance + * @returns SecurityData instance */ - public static create(properties?: Records.IGetRecordDataWithAccessInfoRequest): Records.GetRecordDataWithAccessInfoRequest; + public static create(properties?: Records.ISecurityData): Records.SecurityData; /** - * Encodes the specified GetRecordDataWithAccessInfoRequest message. Does not implicitly {@link Records.GetRecordDataWithAccessInfoRequest.verify|verify} messages. - * @param message GetRecordDataWithAccessInfoRequest message or plain object to encode + * Encodes the specified SecurityData message. 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 encode(message: Records.IGetRecordDataWithAccessInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.ISecurityData, 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 + * 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.IGetRecordDataWithAccessInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.ISecurityData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetRecordDataWithAccessInfoRequest message from the specified reader or buffer. + * Decodes a SecurityData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetRecordDataWithAccessInfoRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetRecordDataWithAccessInfoRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.SecurityData; /** - * Decodes a GetRecordDataWithAccessInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a SecurityData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetRecordDataWithAccessInfoRequest + * @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.GetRecordDataWithAccessInfoRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.SecurityData; /** - * Verifies a GetRecordDataWithAccessInfoRequest message. + * 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 GetRecordDataWithAccessInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SecurityData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetRecordDataWithAccessInfoRequest + * @returns SecurityData */ - public static fromObject(object: { [k: string]: any }): Records.GetRecordDataWithAccessInfoRequest; + public static fromObject(object: { [k: string]: any }): Records.SecurityData; /** - * Creates a plain object from a GetRecordDataWithAccessInfoRequest message. Also converts values to other types if specified. - * @param message GetRecordDataWithAccessInfoRequest + * Creates a plain object from a SecurityData message. Also converts values to other types if specified. + * @param message SecurityData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.GetRecordDataWithAccessInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.SecurityData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetRecordDataWithAccessInfoRequest to JSON. + * Converts this SecurityData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetRecordDataWithAccessInfoRequest + * Gets the default type url for SecurityData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a UserPermission. */ - interface IUserPermission { - - /** UserPermission username */ - username?: (string|null); - - /** UserPermission owner */ - owner?: (boolean|null); - - /** UserPermission shareAdmin */ - shareAdmin?: (boolean|null); - - /** UserPermission sharable */ - sharable?: (boolean|null); - - /** UserPermission editable */ - editable?: (boolean|null); - - /** UserPermission awaitingApproval */ - awaitingApproval?: (boolean|null); - - /** UserPermission expiration */ - expiration?: (number|Long|null); - - /** UserPermission accountUid */ - accountUid?: (Uint8Array|null); - - /** UserPermission timerNotificationType */ - timerNotificationType?: (Records.TimerNotificationType|null); + /** Properties of a SecurityScoreData. */ + interface ISecurityScoreData { - /** UserPermission rotateOnExpiration */ - rotateOnExpiration?: (boolean|null); + /** SecurityScoreData data */ + data?: (Uint8Array|null); } - /** Represents a UserPermission. */ - class UserPermission implements IUserPermission { + /** Represents a SecurityScoreData. */ + class SecurityScoreData implements ISecurityScoreData { /** - * Constructs a new UserPermission. + * Constructs a new SecurityScoreData. * @param [properties] Properties to set */ - constructor(properties?: Records.IUserPermission); - - /** UserPermission username. */ - public username: string; - - /** UserPermission owner. */ - public owner: boolean; - - /** UserPermission shareAdmin. */ - public shareAdmin: boolean; - - /** UserPermission sharable. */ - public sharable: boolean; - - /** UserPermission editable. */ - public editable: boolean; - - /** UserPermission awaitingApproval. */ - public awaitingApproval: boolean; - - /** UserPermission expiration. */ - public expiration: (number|Long); - - /** UserPermission accountUid. */ - public accountUid: Uint8Array; - - /** UserPermission timerNotificationType. */ - public timerNotificationType: Records.TimerNotificationType; + constructor(properties?: Records.ISecurityScoreData); - /** UserPermission rotateOnExpiration. */ - public rotateOnExpiration: boolean; + /** SecurityScoreData data. */ + public data: Uint8Array; /** - * Creates a new UserPermission instance using the specified properties. + * Creates a new SecurityScoreData instance using the specified properties. * @param [properties] Properties to set - * @returns UserPermission instance + * @returns SecurityScoreData instance */ - public static create(properties?: Records.IUserPermission): Records.UserPermission; + public static create(properties?: Records.ISecurityScoreData): Records.SecurityScoreData; /** - * Encodes the specified UserPermission message. Does not implicitly {@link Records.UserPermission.verify|verify} messages. - * @param message UserPermission message or plain object to encode + * Encodes the specified SecurityScoreData message. 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 encode(message: Records.IUserPermission, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.ISecurityScoreData, 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 + * 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.IUserPermission, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.ISecurityScoreData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserPermission message from the specified reader or buffer. + * Decodes a SecurityScoreData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserPermission + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.UserPermission; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.SecurityScoreData; /** - * Decodes a UserPermission message from the specified reader or buffer, length delimited. + * Decodes a SecurityScoreData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UserPermission + * @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.UserPermission; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.SecurityScoreData; /** - * Verifies a UserPermission message. + * 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 UserPermission message from a plain object. Also converts values to their respective internal types. + * Creates a SecurityScoreData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserPermission + * @returns SecurityScoreData */ - public static fromObject(object: { [k: string]: any }): Records.UserPermission; + public static fromObject(object: { [k: string]: any }): Records.SecurityScoreData; /** - * Creates a plain object from a UserPermission message. Also converts values to other types if specified. - * @param message UserPermission + * Creates a plain object from a SecurityScoreData message. Also converts values to other types if specified. + * @param message SecurityScoreData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.UserPermission, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.SecurityScoreData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserPermission to JSON. + * Converts this SecurityScoreData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UserPermission + * Gets the default type url for SecurityScoreData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SharedFolderPermission. */ - interface ISharedFolderPermission { + /** Properties of a RecordAdd. */ + interface IRecordAdd { - /** SharedFolderPermission sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + /** RecordAdd recordUid */ + recordUid?: (Uint8Array|null); - /** SharedFolderPermission resharable */ - resharable?: (boolean|null); + /** RecordAdd recordKey */ + recordKey?: (Uint8Array|null); - /** SharedFolderPermission editable */ - editable?: (boolean|null); + /** RecordAdd clientModifiedTime */ + clientModifiedTime?: (number|Long|null); - /** SharedFolderPermission revision */ - revision?: (number|Long|null); + /** RecordAdd data */ + data?: (Uint8Array|null); - /** SharedFolderPermission expiration */ - expiration?: (number|Long|null); + /** RecordAdd nonSharedData */ + nonSharedData?: (Uint8Array|null); - /** SharedFolderPermission timerNotificationType */ - timerNotificationType?: (Records.TimerNotificationType|null); + /** RecordAdd folderType */ + folderType?: (Records.RecordFolderType|null); - /** SharedFolderPermission rotateOnExpiration */ - rotateOnExpiration?: (boolean|null); + /** RecordAdd folderUid */ + folderUid?: (Uint8Array|null); + + /** RecordAdd folderKey */ + folderKey?: (Uint8Array|null); + + /** RecordAdd recordLinks */ + recordLinks?: (Records.IRecordLink[]|null); + + /** RecordAdd audit */ + audit?: (Records.IRecordAudit|null); + + /** RecordAdd securityData */ + securityData?: (Records.ISecurityData|null); + + /** RecordAdd securityScoreData */ + securityScoreData?: (Records.ISecurityScoreData|null); } - /** Represents a SharedFolderPermission. */ - class SharedFolderPermission implements ISharedFolderPermission { + /** Represents a RecordAdd. */ + class RecordAdd implements IRecordAdd { /** - * Constructs a new SharedFolderPermission. + * Constructs a new RecordAdd. * @param [properties] Properties to set */ - constructor(properties?: Records.ISharedFolderPermission); + constructor(properties?: Records.IRecordAdd); - /** SharedFolderPermission sharedFolderUid. */ - public sharedFolderUid: Uint8Array; + /** RecordAdd recordUid. */ + public recordUid: Uint8Array; - /** SharedFolderPermission resharable. */ - public resharable: boolean; + /** RecordAdd recordKey. */ + public recordKey: Uint8Array; - /** SharedFolderPermission editable. */ - public editable: boolean; + /** RecordAdd clientModifiedTime. */ + public clientModifiedTime: (number|Long); - /** SharedFolderPermission revision. */ - public revision: (number|Long); + /** RecordAdd data. */ + public data: Uint8Array; - /** SharedFolderPermission expiration. */ - public expiration: (number|Long); + /** RecordAdd nonSharedData. */ + public nonSharedData: Uint8Array; - /** SharedFolderPermission timerNotificationType. */ - public timerNotificationType: Records.TimerNotificationType; + /** RecordAdd folderType. */ + public folderType: Records.RecordFolderType; - /** SharedFolderPermission rotateOnExpiration. */ - public rotateOnExpiration: boolean; + /** RecordAdd folderUid. */ + public folderUid: Uint8Array; + + /** RecordAdd folderKey. */ + public folderKey: Uint8Array; + + /** RecordAdd recordLinks. */ + public recordLinks: Records.IRecordLink[]; + + /** RecordAdd audit. */ + public audit?: (Records.IRecordAudit|null); + + /** RecordAdd securityData. */ + public securityData?: (Records.ISecurityData|null); + + /** RecordAdd securityScoreData. */ + public securityScoreData?: (Records.ISecurityScoreData|null); /** - * Creates a new SharedFolderPermission instance using the specified properties. + * Creates a new RecordAdd instance using the specified properties. * @param [properties] Properties to set - * @returns SharedFolderPermission instance + * @returns RecordAdd instance */ - public static create(properties?: Records.ISharedFolderPermission): Records.SharedFolderPermission; + public static create(properties?: Records.IRecordAdd): Records.RecordAdd; /** - * Encodes the specified SharedFolderPermission message. Does not implicitly {@link Records.SharedFolderPermission.verify|verify} messages. - * @param message SharedFolderPermission message or plain object to encode + * Encodes the specified RecordAdd message. 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 encode(message: Records.ISharedFolderPermission, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordAdd, 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 + * 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.ISharedFolderPermission, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordAdd, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SharedFolderPermission message from the specified reader or buffer. + * Decodes a RecordAdd message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SharedFolderPermission + * @returns RecordAdd * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.SharedFolderPermission; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordAdd; /** - * Decodes a SharedFolderPermission message from the specified reader or buffer, length delimited. + * Decodes a RecordAdd message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SharedFolderPermission + * @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.SharedFolderPermission; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordAdd; /** - * Verifies a SharedFolderPermission message. + * 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 SharedFolderPermission message from a plain object. Also converts values to their respective internal types. + * Creates a RecordAdd message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SharedFolderPermission + * @returns RecordAdd */ - public static fromObject(object: { [k: string]: any }): Records.SharedFolderPermission; + public static fromObject(object: { [k: string]: any }): Records.RecordAdd; /** - * Creates a plain object from a SharedFolderPermission message. Also converts values to other types if specified. - * @param message SharedFolderPermission + * Creates a plain object from a RecordAdd message. Also converts values to other types if specified. + * @param message RecordAdd * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.SharedFolderPermission, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordAdd, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SharedFolderPermission to JSON. + * Converts this RecordAdd to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SharedFolderPermission + * Gets the default type url for RecordAdd * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordData. */ - interface IRecordData { + /** Properties of a RecordsAddRequest. */ + interface IRecordsAddRequest { - /** RecordData revision */ - revision?: (number|Long|null); + /** RecordsAddRequest records */ + records?: (Records.IRecordAdd[]|null); - /** RecordData version */ - version?: (number|null); + /** RecordsAddRequest clientTime */ + clientTime?: (number|Long|null); - /** RecordData shared */ - shared?: (boolean|null); + /** RecordsAddRequest securityDataKeyType */ + securityDataKeyType?: (Records.RecordKeyType|null); + } - /** RecordData encryptedRecordData */ - encryptedRecordData?: (string|null); + /** Represents a RecordsAddRequest. */ + class RecordsAddRequest implements IRecordsAddRequest { - /** RecordData encryptedExtraData */ - encryptedExtraData?: (string|null); + /** + * Constructs a new RecordsAddRequest. + * @param [properties] Properties to set + */ + constructor(properties?: Records.IRecordsAddRequest); - /** RecordData clientModifiedTime */ - clientModifiedTime?: (number|Long|null); + /** RecordsAddRequest records. */ + public records: Records.IRecordAdd[]; - /** RecordData nonSharedData */ - nonSharedData?: (string|null); + /** RecordsAddRequest clientTime. */ + public clientTime: (number|Long); - /** RecordData linkedRecordData */ - linkedRecordData?: (Records.IRecordData[]|null); + /** RecordsAddRequest securityDataKeyType. */ + public securityDataKeyType: Records.RecordKeyType; - /** RecordData fileId */ - fileId?: (Uint8Array[]|null); + /** + * Creates a new RecordsAddRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordsAddRequest instance + */ + public static create(properties?: Records.IRecordsAddRequest): Records.RecordsAddRequest; - /** RecordData fileSize */ - fileSize?: (number|Long|null); - - /** RecordData thumbnailSize */ - thumbnailSize?: (number|Long|null); - - /** RecordData recordKeyType */ - recordKeyType?: (Records.RecordKeyType|null); - - /** RecordData recordKey */ - recordKey?: (Uint8Array|null); - - /** RecordData recordUid */ - recordUid?: (Uint8Array|null); - } - - /** Represents a RecordData. */ - class RecordData implements IRecordData { - - /** - * Constructs a new RecordData. - * @param [properties] Properties to set - */ - constructor(properties?: Records.IRecordData); - - /** RecordData revision. */ - public revision: (number|Long); - - /** RecordData version. */ - public version: number; - - /** RecordData shared. */ - public shared: boolean; - - /** RecordData encryptedRecordData. */ - public encryptedRecordData: string; - - /** RecordData encryptedExtraData. */ - public encryptedExtraData: string; - - /** RecordData clientModifiedTime. */ - public clientModifiedTime: (number|Long); - - /** RecordData nonSharedData. */ - public nonSharedData: string; - - /** RecordData linkedRecordData. */ - public linkedRecordData: Records.IRecordData[]; - - /** RecordData fileId. */ - public fileId: Uint8Array[]; - - /** RecordData fileSize. */ - public fileSize: (number|Long); - - /** RecordData thumbnailSize. */ - public thumbnailSize: (number|Long); - - /** RecordData recordKeyType. */ - public recordKeyType: Records.RecordKeyType; - - /** RecordData recordKey. */ - public recordKey: Uint8Array; - - /** RecordData recordUid. */ - public recordUid: Uint8Array; - - /** - * Creates a new RecordData instance using the specified properties. - * @param [properties] Properties to set - * @returns RecordData instance - */ - public static create(properties?: Records.IRecordData): Records.RecordData; - - /** - * Encodes the specified RecordData message. 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 encode(message: Records.IRecordData, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified RecordsAddRequest message. 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 encode(message: Records.IRecordsAddRequest, 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 + * 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.IRecordData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordsAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordData message from the specified reader or buffer. + * Decodes a RecordsAddRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordData + * @returns RecordsAddRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsAddRequest; /** - * Decodes a RecordData message from the specified reader or buffer, length delimited. + * Decodes a RecordsAddRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordData + * @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.RecordData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsAddRequest; /** - * Verifies a RecordData message. + * 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 RecordData message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordData + * @returns RecordsAddRequest */ - public static fromObject(object: { [k: string]: any }): Records.RecordData; + public static fromObject(object: { [k: string]: any }): Records.RecordsAddRequest; /** - * Creates a plain object from a RecordData message. Also converts values to other types if specified. - * @param message RecordData + * Creates a plain object from a RecordsAddRequest message. Also converts values to other types if specified. + * @param message RecordsAddRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordsAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordData to JSON. + * Converts this RecordsAddRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordData + * Gets the default type url for RecordsAddRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordDataWithAccessInfo. */ - interface IRecordDataWithAccessInfo { + /** Properties of a RecordUpdate. */ + interface IRecordUpdate { - /** RecordDataWithAccessInfo recordUid */ + /** RecordUpdate recordUid */ recordUid?: (Uint8Array|null); - /** RecordDataWithAccessInfo recordData */ - recordData?: (Records.IRecordData|null); + /** RecordUpdate clientModifiedTime */ + clientModifiedTime?: (number|Long|null); - /** RecordDataWithAccessInfo userPermission */ - userPermission?: (Records.IUserPermission[]|null); + /** RecordUpdate revision */ + revision?: (number|Long|null); - /** RecordDataWithAccessInfo sharedFolderPermission */ - sharedFolderPermission?: (Records.ISharedFolderPermission[]|null); + /** RecordUpdate data */ + data?: (Uint8Array|null); + + /** RecordUpdate nonSharedData */ + nonSharedData?: (Uint8Array|null); + + /** RecordUpdate recordLinksAdd */ + recordLinksAdd?: (Records.IRecordLink[]|null); + + /** RecordUpdate recordLinksRemove */ + recordLinksRemove?: (Uint8Array[]|null); + + /** RecordUpdate audit */ + audit?: (Records.IRecordAudit|null); + + /** RecordUpdate securityData */ + securityData?: (Records.ISecurityData|null); + + /** RecordUpdate securityScoreData */ + securityScoreData?: (Records.ISecurityScoreData|null); } - /** Represents a RecordDataWithAccessInfo. */ - class RecordDataWithAccessInfo implements IRecordDataWithAccessInfo { + /** Represents a RecordUpdate. */ + class RecordUpdate implements IRecordUpdate { /** - * Constructs a new RecordDataWithAccessInfo. + * Constructs a new RecordUpdate. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordDataWithAccessInfo); + constructor(properties?: Records.IRecordUpdate); - /** RecordDataWithAccessInfo recordUid. */ + /** RecordUpdate recordUid. */ public recordUid: Uint8Array; - /** RecordDataWithAccessInfo recordData. */ - public recordData?: (Records.IRecordData|null); + /** RecordUpdate clientModifiedTime. */ + public clientModifiedTime: (number|Long); - /** RecordDataWithAccessInfo userPermission. */ - public userPermission: Records.IUserPermission[]; + /** RecordUpdate revision. */ + public revision: (number|Long); - /** RecordDataWithAccessInfo sharedFolderPermission. */ - public sharedFolderPermission: Records.ISharedFolderPermission[]; + /** RecordUpdate data. */ + public data: Uint8Array; + + /** RecordUpdate nonSharedData. */ + public nonSharedData: Uint8Array; + + /** RecordUpdate recordLinksAdd. */ + public recordLinksAdd: Records.IRecordLink[]; + + /** RecordUpdate recordLinksRemove. */ + public recordLinksRemove: Uint8Array[]; + + /** RecordUpdate audit. */ + public audit?: (Records.IRecordAudit|null); + + /** RecordUpdate securityData. */ + public securityData?: (Records.ISecurityData|null); + + /** RecordUpdate securityScoreData. */ + public securityScoreData?: (Records.ISecurityScoreData|null); /** - * Creates a new RecordDataWithAccessInfo instance using the specified properties. + * Creates a new RecordUpdate instance using the specified properties. * @param [properties] Properties to set - * @returns RecordDataWithAccessInfo instance + * @returns RecordUpdate instance */ - public static create(properties?: Records.IRecordDataWithAccessInfo): Records.RecordDataWithAccessInfo; + public static create(properties?: Records.IRecordUpdate): Records.RecordUpdate; /** - * Encodes the specified RecordDataWithAccessInfo message. Does not implicitly {@link Records.RecordDataWithAccessInfo.verify|verify} messages. - * @param message RecordDataWithAccessInfo message or plain object to encode + * Encodes the specified RecordUpdate message. 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 encode(message: Records.IRecordDataWithAccessInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordUpdate, 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 + * 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.IRecordDataWithAccessInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordUpdate, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordDataWithAccessInfo message from the specified reader or buffer. + * Decodes a RecordUpdate message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordDataWithAccessInfo + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordDataWithAccessInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordUpdate; /** - * Decodes a RecordDataWithAccessInfo message from the specified reader or buffer, length delimited. + * Decodes a RecordUpdate message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordDataWithAccessInfo + * @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.RecordDataWithAccessInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordUpdate; /** - * Verifies a RecordDataWithAccessInfo message. + * 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 RecordDataWithAccessInfo message from a plain object. Also converts values to their respective internal types. + * Creates a RecordUpdate message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordDataWithAccessInfo + * @returns RecordUpdate */ - public static fromObject(object: { [k: string]: any }): Records.RecordDataWithAccessInfo; + public static fromObject(object: { [k: string]: any }): Records.RecordUpdate; /** - * Creates a plain object from a RecordDataWithAccessInfo message. Also converts values to other types if specified. - * @param message RecordDataWithAccessInfo + * Creates a plain object from a RecordUpdate message. Also converts values to other types if specified. + * @param message RecordUpdate * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordDataWithAccessInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordDataWithAccessInfo to JSON. + * Converts this RecordUpdate to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordDataWithAccessInfo + * Gets the default type url for RecordUpdate * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetRecordDataWithAccessInfoResponse. */ - interface IGetRecordDataWithAccessInfoResponse { + /** Properties of a RecordsUpdateRequest. */ + interface IRecordsUpdateRequest { - /** GetRecordDataWithAccessInfoResponse recordDataWithAccessInfo */ - recordDataWithAccessInfo?: (Records.IRecordDataWithAccessInfo[]|null); + /** RecordsUpdateRequest records */ + records?: (Records.IRecordUpdate[]|null); - /** GetRecordDataWithAccessInfoResponse noPermissionRecordUid */ - noPermissionRecordUid?: (Uint8Array[]|null); + /** RecordsUpdateRequest clientTime */ + clientTime?: (number|Long|null); + + /** RecordsUpdateRequest securityDataKeyType */ + securityDataKeyType?: (Records.RecordKeyType|null); } - /** Represents a GetRecordDataWithAccessInfoResponse. */ - class GetRecordDataWithAccessInfoResponse implements IGetRecordDataWithAccessInfoResponse { + /** Represents a RecordsUpdateRequest. */ + class RecordsUpdateRequest implements IRecordsUpdateRequest { /** - * Constructs a new GetRecordDataWithAccessInfoResponse. + * Constructs a new RecordsUpdateRequest. * @param [properties] Properties to set */ - constructor(properties?: Records.IGetRecordDataWithAccessInfoResponse); + constructor(properties?: Records.IRecordsUpdateRequest); - /** GetRecordDataWithAccessInfoResponse recordDataWithAccessInfo. */ - public recordDataWithAccessInfo: Records.IRecordDataWithAccessInfo[]; + /** RecordsUpdateRequest records. */ + public records: Records.IRecordUpdate[]; - /** GetRecordDataWithAccessInfoResponse noPermissionRecordUid. */ - public noPermissionRecordUid: Uint8Array[]; + /** RecordsUpdateRequest clientTime. */ + public clientTime: (number|Long); + + /** RecordsUpdateRequest securityDataKeyType. */ + public securityDataKeyType: Records.RecordKeyType; /** - * Creates a new GetRecordDataWithAccessInfoResponse instance using the specified properties. + * Creates a new RecordsUpdateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetRecordDataWithAccessInfoResponse instance + * @returns RecordsUpdateRequest instance */ - public static create(properties?: Records.IGetRecordDataWithAccessInfoResponse): Records.GetRecordDataWithAccessInfoResponse; + public static create(properties?: Records.IRecordsUpdateRequest): Records.RecordsUpdateRequest; /** - * Encodes the specified GetRecordDataWithAccessInfoResponse message. Does not implicitly {@link Records.GetRecordDataWithAccessInfoResponse.verify|verify} messages. - * @param message GetRecordDataWithAccessInfoResponse message or plain object to encode + * Encodes the specified RecordsUpdateRequest message. 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 encode(message: Records.IGetRecordDataWithAccessInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordsUpdateRequest, 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 + * 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.IGetRecordDataWithAccessInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordsUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetRecordDataWithAccessInfoResponse message from the specified reader or buffer. + * Decodes a RecordsUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetRecordDataWithAccessInfoResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetRecordDataWithAccessInfoResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUpdateRequest; /** - * Decodes a GetRecordDataWithAccessInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a RecordsUpdateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetRecordDataWithAccessInfoResponse + * @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.GetRecordDataWithAccessInfoResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsUpdateRequest; /** - * Verifies a GetRecordDataWithAccessInfoResponse message. + * 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 GetRecordDataWithAccessInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetRecordDataWithAccessInfoResponse + * @returns RecordsUpdateRequest */ - public static fromObject(object: { [k: string]: any }): Records.GetRecordDataWithAccessInfoResponse; + public static fromObject(object: { [k: string]: any }): Records.RecordsUpdateRequest; /** - * Creates a plain object from a GetRecordDataWithAccessInfoResponse message. Also converts values to other types if specified. - * @param message GetRecordDataWithAccessInfoResponse + * Creates a plain object from a RecordsUpdateRequest message. Also converts values to other types if specified. + * @param message RecordsUpdateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.GetRecordDataWithAccessInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordsUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetRecordDataWithAccessInfoResponse to JSON. + * Converts this RecordsUpdateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetRecordDataWithAccessInfoResponse + * Gets the default type url for RecordsUpdateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** CheckShareAdminObjectType enum. */ - enum CheckShareAdminObjectType { - CHECK_SA_INVALID_TYPE = 0, - CHECK_SA_ON_SF = 1, - CHECK_SA_ON_RECORD = 2 - } + /** Properties of a RecordFileForConversion. */ + interface IRecordFileForConversion { - /** Properties of an IsObjectShareAdmin. */ - interface IIsObjectShareAdmin { + /** RecordFileForConversion recordUid */ + recordUid?: (Uint8Array|null); - /** IsObjectShareAdmin uid */ - uid?: (Uint8Array|null); + /** RecordFileForConversion fileFileId */ + fileFileId?: (string|null); - /** IsObjectShareAdmin isAdmin */ - isAdmin?: (boolean|null); + /** RecordFileForConversion thumbFileId */ + thumbFileId?: (string|null); - /** IsObjectShareAdmin objectType */ - objectType?: (Records.CheckShareAdminObjectType|null); + /** RecordFileForConversion data */ + data?: (Uint8Array|null); + + /** RecordFileForConversion recordKey */ + recordKey?: (Uint8Array|null); + + /** RecordFileForConversion linkKey */ + linkKey?: (Uint8Array|null); } - /** Represents an IsObjectShareAdmin. */ - class IsObjectShareAdmin implements IIsObjectShareAdmin { + /** Represents a RecordFileForConversion. */ + class RecordFileForConversion implements IRecordFileForConversion { /** - * Constructs a new IsObjectShareAdmin. + * Constructs a new RecordFileForConversion. * @param [properties] Properties to set */ - constructor(properties?: Records.IIsObjectShareAdmin); + constructor(properties?: Records.IRecordFileForConversion); - /** IsObjectShareAdmin uid. */ - public uid: Uint8Array; + /** RecordFileForConversion recordUid. */ + public recordUid: Uint8Array; - /** IsObjectShareAdmin isAdmin. */ - public isAdmin: boolean; + /** RecordFileForConversion fileFileId. */ + public fileFileId: string; - /** IsObjectShareAdmin objectType. */ - public objectType: Records.CheckShareAdminObjectType; + /** RecordFileForConversion thumbFileId. */ + public thumbFileId: string; + + /** RecordFileForConversion data. */ + public data: Uint8Array; + + /** RecordFileForConversion recordKey. */ + public recordKey: Uint8Array; + + /** RecordFileForConversion linkKey. */ + public linkKey: Uint8Array; /** - * Creates a new IsObjectShareAdmin instance using the specified properties. + * Creates a new RecordFileForConversion instance using the specified properties. * @param [properties] Properties to set - * @returns IsObjectShareAdmin instance + * @returns RecordFileForConversion instance */ - public static create(properties?: Records.IIsObjectShareAdmin): Records.IsObjectShareAdmin; + public static create(properties?: Records.IRecordFileForConversion): Records.RecordFileForConversion; /** - * Encodes the specified IsObjectShareAdmin message. Does not implicitly {@link Records.IsObjectShareAdmin.verify|verify} messages. - * @param message IsObjectShareAdmin message or plain object to encode + * Encodes the specified RecordFileForConversion message. 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 encode(message: Records.IIsObjectShareAdmin, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordFileForConversion, 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 + * 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.IIsObjectShareAdmin, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordFileForConversion, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IsObjectShareAdmin message from the specified reader or buffer. + * Decodes a RecordFileForConversion message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IsObjectShareAdmin + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.IsObjectShareAdmin; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordFileForConversion; /** - * Decodes an IsObjectShareAdmin message from the specified reader or buffer, length delimited. + * Decodes a RecordFileForConversion message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IsObjectShareAdmin + * @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.IsObjectShareAdmin; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordFileForConversion; /** - * Verifies an IsObjectShareAdmin message. + * 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 an IsObjectShareAdmin message from a plain object. Also converts values to their respective internal types. + * Creates a RecordFileForConversion message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IsObjectShareAdmin + * @returns RecordFileForConversion */ - public static fromObject(object: { [k: string]: any }): Records.IsObjectShareAdmin; + public static fromObject(object: { [k: string]: any }): Records.RecordFileForConversion; /** - * Creates a plain object from an IsObjectShareAdmin message. Also converts values to other types if specified. - * @param message IsObjectShareAdmin + * Creates a plain object from a RecordFileForConversion message. Also converts values to other types if specified. + * @param message RecordFileForConversion * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.IsObjectShareAdmin, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordFileForConversion, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IsObjectShareAdmin to JSON. + * Converts this RecordFileForConversion to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for IsObjectShareAdmin + * Gets the default type url for RecordFileForConversion * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AmIShareAdmin. */ - interface IAmIShareAdmin { + /** Properties of a RecordFolderForConversion. */ + interface IRecordFolderForConversion { - /** AmIShareAdmin isObjectShareAdmin */ - isObjectShareAdmin?: (Records.IIsObjectShareAdmin[]|null); + /** RecordFolderForConversion folderUid */ + folderUid?: (Uint8Array|null); + + /** RecordFolderForConversion recordFolderKey */ + recordFolderKey?: (Uint8Array|null); } - /** Represents an AmIShareAdmin. */ - class AmIShareAdmin implements IAmIShareAdmin { + /** Represents a RecordFolderForConversion. */ + class RecordFolderForConversion implements IRecordFolderForConversion { /** - * Constructs a new AmIShareAdmin. + * Constructs a new RecordFolderForConversion. * @param [properties] Properties to set */ - constructor(properties?: Records.IAmIShareAdmin); + constructor(properties?: Records.IRecordFolderForConversion); - /** AmIShareAdmin isObjectShareAdmin. */ - public isObjectShareAdmin: Records.IIsObjectShareAdmin[]; + /** RecordFolderForConversion folderUid. */ + public folderUid: Uint8Array; + + /** RecordFolderForConversion recordFolderKey. */ + public recordFolderKey: Uint8Array; /** - * Creates a new AmIShareAdmin instance using the specified properties. + * Creates a new RecordFolderForConversion instance using the specified properties. * @param [properties] Properties to set - * @returns AmIShareAdmin instance + * @returns RecordFolderForConversion instance */ - public static create(properties?: Records.IAmIShareAdmin): Records.AmIShareAdmin; + public static create(properties?: Records.IRecordFolderForConversion): Records.RecordFolderForConversion; /** - * Encodes the specified AmIShareAdmin message. Does not implicitly {@link Records.AmIShareAdmin.verify|verify} messages. - * @param message AmIShareAdmin message or plain object to encode + * Encodes the specified RecordFolderForConversion message. 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 encode(message: Records.IAmIShareAdmin, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordFolderForConversion, 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 + * 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.IAmIShareAdmin, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordFolderForConversion, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AmIShareAdmin message from the specified reader or buffer. + * Decodes a RecordFolderForConversion message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AmIShareAdmin + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.AmIShareAdmin; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordFolderForConversion; /** - * Decodes an AmIShareAdmin message from the specified reader or buffer, length delimited. + * Decodes a RecordFolderForConversion message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AmIShareAdmin + * @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.AmIShareAdmin; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordFolderForConversion; /** - * Verifies an AmIShareAdmin message. + * 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 an AmIShareAdmin message from a plain object. Also converts values to their respective internal types. + * Creates a RecordFolderForConversion message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AmIShareAdmin + * @returns RecordFolderForConversion */ - public static fromObject(object: { [k: string]: any }): Records.AmIShareAdmin; + public static fromObject(object: { [k: string]: any }): Records.RecordFolderForConversion; /** - * Creates a plain object from an AmIShareAdmin message. Also converts values to other types if specified. - * @param message AmIShareAdmin + * Creates a plain object from a RecordFolderForConversion message. Also converts values to other types if specified. + * @param message RecordFolderForConversion * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.AmIShareAdmin, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordFolderForConversion, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AmIShareAdmin to JSON. + * Converts this RecordFolderForConversion to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AmIShareAdmin + * Gets the default type url for RecordFolderForConversion * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordShareUpdateRequest. */ - interface IRecordShareUpdateRequest { - - /** RecordShareUpdateRequest addSharedRecord */ - addSharedRecord?: (Records.ISharedRecord[]|null); + /** Properties of a RecordConvertToV3. */ + interface IRecordConvertToV3 { - /** RecordShareUpdateRequest updateSharedRecord */ - updateSharedRecord?: (Records.ISharedRecord[]|null); + /** RecordConvertToV3 recordUid */ + recordUid?: (Uint8Array|null); - /** RecordShareUpdateRequest removeSharedRecord */ - removeSharedRecord?: (Records.ISharedRecord[]|null); + /** RecordConvertToV3 clientModifiedTime */ + clientModifiedTime?: (number|Long|null); - /** RecordShareUpdateRequest pt */ - pt?: (string|null); + /** RecordConvertToV3 revision */ + revision?: (number|Long|null); + + /** RecordConvertToV3 data */ + data?: (Uint8Array|null); + + /** RecordConvertToV3 nonSharedData */ + nonSharedData?: (Uint8Array|null); + + /** RecordConvertToV3 audit */ + audit?: (Records.IRecordAudit|null); + + /** RecordConvertToV3 recordFile */ + recordFile?: (Records.IRecordFileForConversion[]|null); + + /** RecordConvertToV3 folderKey */ + folderKey?: (Records.IRecordFolderForConversion[]|null); } - /** Represents a RecordShareUpdateRequest. */ - class RecordShareUpdateRequest implements IRecordShareUpdateRequest { + /** Represents a RecordConvertToV3. */ + class RecordConvertToV3 implements IRecordConvertToV3 { /** - * Constructs a new RecordShareUpdateRequest. + * Constructs a new RecordConvertToV3. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordShareUpdateRequest); + constructor(properties?: Records.IRecordConvertToV3); - /** RecordShareUpdateRequest addSharedRecord. */ - public addSharedRecord: Records.ISharedRecord[]; + /** RecordConvertToV3 recordUid. */ + public recordUid: Uint8Array; - /** RecordShareUpdateRequest updateSharedRecord. */ - public updateSharedRecord: Records.ISharedRecord[]; + /** RecordConvertToV3 clientModifiedTime. */ + public clientModifiedTime: (number|Long); - /** RecordShareUpdateRequest removeSharedRecord. */ - public removeSharedRecord: Records.ISharedRecord[]; + /** RecordConvertToV3 revision. */ + public revision: (number|Long); - /** RecordShareUpdateRequest pt. */ - public pt: string; + /** RecordConvertToV3 data. */ + public data: Uint8Array; + + /** RecordConvertToV3 nonSharedData. */ + public nonSharedData: Uint8Array; + + /** RecordConvertToV3 audit. */ + public audit?: (Records.IRecordAudit|null); + + /** RecordConvertToV3 recordFile. */ + public recordFile: Records.IRecordFileForConversion[]; + + /** RecordConvertToV3 folderKey. */ + public folderKey: Records.IRecordFolderForConversion[]; /** - * Creates a new RecordShareUpdateRequest instance using the specified properties. + * Creates a new RecordConvertToV3 instance using the specified properties. * @param [properties] Properties to set - * @returns RecordShareUpdateRequest instance + * @returns RecordConvertToV3 instance */ - public static create(properties?: Records.IRecordShareUpdateRequest): Records.RecordShareUpdateRequest; + public static create(properties?: Records.IRecordConvertToV3): Records.RecordConvertToV3; /** - * Encodes the specified RecordShareUpdateRequest message. Does not implicitly {@link Records.RecordShareUpdateRequest.verify|verify} messages. - * @param message RecordShareUpdateRequest message or plain object to encode + * Encodes the specified RecordConvertToV3 message. 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 encode(message: Records.IRecordShareUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordConvertToV3, 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 + * 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.IRecordShareUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordConvertToV3, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordShareUpdateRequest message from the specified reader or buffer. + * Decodes a RecordConvertToV3 message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordShareUpdateRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordShareUpdateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordConvertToV3; /** - * Decodes a RecordShareUpdateRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordConvertToV3 message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordShareUpdateRequest + * @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.RecordShareUpdateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordConvertToV3; /** - * Verifies a RecordShareUpdateRequest message. + * 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 RecordShareUpdateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordConvertToV3 message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordShareUpdateRequest + * @returns RecordConvertToV3 */ - public static fromObject(object: { [k: string]: any }): Records.RecordShareUpdateRequest; + public static fromObject(object: { [k: string]: any }): Records.RecordConvertToV3; /** - * Creates a plain object from a RecordShareUpdateRequest message. Also converts values to other types if specified. - * @param message RecordShareUpdateRequest + * Creates a plain object from a RecordConvertToV3 message. Also converts values to other types if specified. + * @param message RecordConvertToV3 * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordShareUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordConvertToV3, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordShareUpdateRequest to JSON. + * Converts this RecordConvertToV3 to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordShareUpdateRequest + * Gets the default type url for RecordConvertToV3 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SharedRecord. */ - interface ISharedRecord { - - /** SharedRecord toUsername */ - toUsername?: (string|null); - - /** SharedRecord recordUid */ - recordUid?: (Uint8Array|null); - - /** SharedRecord recordKey */ - recordKey?: (Uint8Array|null); - - /** SharedRecord sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); - - /** SharedRecord teamUid */ - teamUid?: (Uint8Array|null); - - /** SharedRecord editable */ - editable?: (boolean|null); - - /** SharedRecord shareable */ - shareable?: (boolean|null); - - /** SharedRecord transfer */ - transfer?: (boolean|null); - - /** SharedRecord useEccKey */ - useEccKey?: (boolean|null); - - /** SharedRecord removeVaultData */ - removeVaultData?: (boolean|null); - - /** SharedRecord expiration */ - expiration?: (number|Long|null); + /** Properties of a RecordsConvertToV3Request. */ + interface IRecordsConvertToV3Request { - /** SharedRecord timerNotificationType */ - timerNotificationType?: (Records.TimerNotificationType|null); + /** RecordsConvertToV3Request records */ + records?: (Records.IRecordConvertToV3[]|null); - /** SharedRecord rotateOnExpiration */ - rotateOnExpiration?: (boolean|null); + /** RecordsConvertToV3Request clientTime */ + clientTime?: (number|Long|null); } - /** Represents a SharedRecord. */ - class SharedRecord implements ISharedRecord { + /** Represents a RecordsConvertToV3Request. */ + class RecordsConvertToV3Request implements IRecordsConvertToV3Request { /** - * Constructs a new SharedRecord. + * Constructs a new RecordsConvertToV3Request. * @param [properties] Properties to set */ - constructor(properties?: Records.ISharedRecord); - - /** SharedRecord toUsername. */ - public toUsername: string; - - /** SharedRecord recordUid. */ - public recordUid: Uint8Array; - - /** SharedRecord recordKey. */ - public recordKey: Uint8Array; - - /** SharedRecord sharedFolderUid. */ - public sharedFolderUid: Uint8Array; - - /** SharedRecord teamUid. */ - public teamUid: Uint8Array; - - /** SharedRecord editable. */ - public editable: boolean; - - /** SharedRecord shareable. */ - public shareable: boolean; - - /** SharedRecord transfer. */ - public transfer: boolean; - - /** SharedRecord useEccKey. */ - public useEccKey: boolean; - - /** SharedRecord removeVaultData. */ - public removeVaultData: boolean; - - /** SharedRecord expiration. */ - public expiration: (number|Long); + constructor(properties?: Records.IRecordsConvertToV3Request); - /** SharedRecord timerNotificationType. */ - public timerNotificationType: Records.TimerNotificationType; + /** RecordsConvertToV3Request records. */ + public records: Records.IRecordConvertToV3[]; - /** SharedRecord rotateOnExpiration. */ - public rotateOnExpiration: boolean; + /** RecordsConvertToV3Request clientTime. */ + public clientTime: (number|Long); /** - * Creates a new SharedRecord instance using the specified properties. + * Creates a new RecordsConvertToV3Request instance using the specified properties. * @param [properties] Properties to set - * @returns SharedRecord instance + * @returns RecordsConvertToV3Request instance */ - public static create(properties?: Records.ISharedRecord): Records.SharedRecord; + public static create(properties?: Records.IRecordsConvertToV3Request): Records.RecordsConvertToV3Request; /** - * Encodes the specified SharedRecord message. Does not implicitly {@link Records.SharedRecord.verify|verify} messages. - * @param message SharedRecord message or plain object to encode + * Encodes the specified RecordsConvertToV3Request message. 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 encode(message: Records.ISharedRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordsConvertToV3Request, 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 + * 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.ISharedRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordsConvertToV3Request, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SharedRecord message from the specified reader or buffer. + * Decodes a RecordsConvertToV3Request message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SharedRecord + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.SharedRecord; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsConvertToV3Request; /** - * Decodes a SharedRecord message from the specified reader or buffer, length delimited. + * Decodes a RecordsConvertToV3Request message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SharedRecord + * @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.SharedRecord; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsConvertToV3Request; /** - * Verifies a SharedRecord message. + * 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 SharedRecord message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsConvertToV3Request message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SharedRecord + * @returns RecordsConvertToV3Request */ - public static fromObject(object: { [k: string]: any }): Records.SharedRecord; + public static fromObject(object: { [k: string]: any }): Records.RecordsConvertToV3Request; /** - * Creates a plain object from a SharedRecord message. Also converts values to other types if specified. - * @param message SharedRecord + * Creates a plain object from a RecordsConvertToV3Request message. Also converts values to other types if specified. + * @param message RecordsConvertToV3Request * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.SharedRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordsConvertToV3Request, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SharedRecord to JSON. + * Converts this RecordsConvertToV3Request to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SharedRecord + * Gets the default type url for RecordsConvertToV3Request * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordShareUpdateResponse. */ - interface IRecordShareUpdateResponse { - - /** RecordShareUpdateResponse addSharedRecordStatus */ - addSharedRecordStatus?: (Records.ISharedRecordStatus[]|null); - - /** RecordShareUpdateResponse updateSharedRecordStatus */ - updateSharedRecordStatus?: (Records.ISharedRecordStatus[]|null); + /** Properties of a RecordsRemoveRequest. */ + interface IRecordsRemoveRequest { - /** RecordShareUpdateResponse removeSharedRecordStatus */ - removeSharedRecordStatus?: (Records.ISharedRecordStatus[]|null); + /** RecordsRemoveRequest records */ + records?: (Uint8Array[]|null); } - /** Represents a RecordShareUpdateResponse. */ - class RecordShareUpdateResponse implements IRecordShareUpdateResponse { + /** Represents a RecordsRemoveRequest. */ + class RecordsRemoveRequest implements IRecordsRemoveRequest { /** - * Constructs a new RecordShareUpdateResponse. + * Constructs a new RecordsRemoveRequest. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordShareUpdateResponse); - - /** RecordShareUpdateResponse addSharedRecordStatus. */ - public addSharedRecordStatus: Records.ISharedRecordStatus[]; - - /** RecordShareUpdateResponse updateSharedRecordStatus. */ - public updateSharedRecordStatus: Records.ISharedRecordStatus[]; + constructor(properties?: Records.IRecordsRemoveRequest); - /** RecordShareUpdateResponse removeSharedRecordStatus. */ - public removeSharedRecordStatus: Records.ISharedRecordStatus[]; + /** RecordsRemoveRequest records. */ + public records: Uint8Array[]; /** - * Creates a new RecordShareUpdateResponse instance using the specified properties. + * Creates a new RecordsRemoveRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RecordShareUpdateResponse instance + * @returns RecordsRemoveRequest instance */ - public static create(properties?: Records.IRecordShareUpdateResponse): Records.RecordShareUpdateResponse; + public static create(properties?: Records.IRecordsRemoveRequest): Records.RecordsRemoveRequest; /** - * Encodes the specified RecordShareUpdateResponse message. Does not implicitly {@link Records.RecordShareUpdateResponse.verify|verify} messages. - * @param message RecordShareUpdateResponse message or plain object to encode + * Encodes the specified RecordsRemoveRequest message. 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 encode(message: Records.IRecordShareUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordsRemoveRequest, 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 + * 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.IRecordShareUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordsRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordShareUpdateResponse message from the specified reader or buffer. + * Decodes a RecordsRemoveRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordShareUpdateResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordShareUpdateResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsRemoveRequest; /** - * Decodes a RecordShareUpdateResponse message from the specified reader or buffer, length delimited. + * Decodes a RecordsRemoveRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordShareUpdateResponse + * @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.RecordShareUpdateResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsRemoveRequest; /** - * Verifies a RecordShareUpdateResponse message. + * 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 RecordShareUpdateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsRemoveRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordShareUpdateResponse + * @returns RecordsRemoveRequest */ - public static fromObject(object: { [k: string]: any }): Records.RecordShareUpdateResponse; + public static fromObject(object: { [k: string]: any }): Records.RecordsRemoveRequest; /** - * Creates a plain object from a RecordShareUpdateResponse message. Also converts values to other types if specified. - * @param message RecordShareUpdateResponse + * Creates a plain object from a RecordsRemoveRequest message. Also converts values to other types if specified. + * @param message RecordsRemoveRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordShareUpdateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordsRemoveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordShareUpdateResponse to JSON. + * Converts this RecordsRemoveRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordShareUpdateResponse + * Gets the default type url for RecordsRemoveRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SharedRecordStatus. */ - interface ISharedRecordStatus { + /** Properties of a RecordRevert. */ + interface IRecordRevert { - /** SharedRecordStatus recordUid */ + /** RecordRevert recordUid */ recordUid?: (Uint8Array|null); - /** SharedRecordStatus status */ - status?: (string|null); - - /** SharedRecordStatus message */ - message?: (string|null); - - /** SharedRecordStatus username */ - username?: (string|null); + /** RecordRevert revertToRevision */ + revertToRevision?: (number|Long|null); } - /** Represents a SharedRecordStatus. */ - class SharedRecordStatus implements ISharedRecordStatus { + /** Represents a RecordRevert. */ + class RecordRevert implements IRecordRevert { /** - * Constructs a new SharedRecordStatus. + * Constructs a new RecordRevert. * @param [properties] Properties to set */ - constructor(properties?: Records.ISharedRecordStatus); + constructor(properties?: Records.IRecordRevert); - /** SharedRecordStatus recordUid. */ + /** RecordRevert recordUid. */ public recordUid: Uint8Array; - /** SharedRecordStatus status. */ - public status: string; - - /** SharedRecordStatus message. */ - public message: string; - - /** SharedRecordStatus username. */ - public username: string; + /** RecordRevert revertToRevision. */ + public revertToRevision: (number|Long); /** - * Creates a new SharedRecordStatus instance using the specified properties. + * Creates a new RecordRevert instance using the specified properties. * @param [properties] Properties to set - * @returns SharedRecordStatus instance + * @returns RecordRevert instance */ - public static create(properties?: Records.ISharedRecordStatus): Records.SharedRecordStatus; + public static create(properties?: Records.IRecordRevert): Records.RecordRevert; /** - * Encodes the specified SharedRecordStatus message. Does not implicitly {@link Records.SharedRecordStatus.verify|verify} messages. - * @param message SharedRecordStatus message or plain object to encode + * Encodes the specified RecordRevert message. 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 encode(message: Records.ISharedRecordStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordRevert, 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 + * 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.ISharedRecordStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordRevert, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SharedRecordStatus message from the specified reader or buffer. + * Decodes a RecordRevert message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SharedRecordStatus + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.SharedRecordStatus; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordRevert; /** - * Decodes a SharedRecordStatus message from the specified reader or buffer, length delimited. + * Decodes a RecordRevert message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SharedRecordStatus + * @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.SharedRecordStatus; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordRevert; /** - * Verifies a SharedRecordStatus message. + * 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 SharedRecordStatus message from a plain object. Also converts values to their respective internal types. + * Creates a RecordRevert message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SharedRecordStatus + * @returns RecordRevert */ - public static fromObject(object: { [k: string]: any }): Records.SharedRecordStatus; + public static fromObject(object: { [k: string]: any }): Records.RecordRevert; /** - * Creates a plain object from a SharedRecordStatus message. Also converts values to other types if specified. - * @param message SharedRecordStatus + * Creates a plain object from a RecordRevert message. Also converts values to other types if specified. + * @param message RecordRevert * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.SharedRecordStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordRevert, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SharedRecordStatus to JSON. + * Converts this RecordRevert to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SharedRecordStatus + * Gets the default type url for RecordRevert * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetRecordPermissionsRequest. */ - interface IGetRecordPermissionsRequest { - - /** GetRecordPermissionsRequest recordUids */ - recordUids?: (Uint8Array[]|null); + /** Properties of a RecordsRevertRequest. */ + interface IRecordsRevertRequest { - /** GetRecordPermissionsRequest isShareAdmin */ - isShareAdmin?: (boolean|null); + /** RecordsRevertRequest records */ + records?: (Records.IRecordRevert[]|null); } - /** Represents a GetRecordPermissionsRequest. */ - class GetRecordPermissionsRequest implements IGetRecordPermissionsRequest { + /** Represents a RecordsRevertRequest. */ + class RecordsRevertRequest implements IRecordsRevertRequest { /** - * Constructs a new GetRecordPermissionsRequest. + * Constructs a new RecordsRevertRequest. * @param [properties] Properties to set */ - constructor(properties?: Records.IGetRecordPermissionsRequest); - - /** GetRecordPermissionsRequest recordUids. */ - public recordUids: Uint8Array[]; + constructor(properties?: Records.IRecordsRevertRequest); - /** GetRecordPermissionsRequest isShareAdmin. */ - public isShareAdmin: boolean; + /** RecordsRevertRequest records. */ + public records: Records.IRecordRevert[]; /** - * Creates a new GetRecordPermissionsRequest instance using the specified properties. + * Creates a new RecordsRevertRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetRecordPermissionsRequest instance + * @returns RecordsRevertRequest instance */ - public static create(properties?: Records.IGetRecordPermissionsRequest): Records.GetRecordPermissionsRequest; + public static create(properties?: Records.IRecordsRevertRequest): Records.RecordsRevertRequest; /** - * Encodes the specified GetRecordPermissionsRequest message. Does not implicitly {@link Records.GetRecordPermissionsRequest.verify|verify} messages. - * @param message GetRecordPermissionsRequest message or plain object to encode + * Encodes the specified RecordsRevertRequest message. 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 encode(message: Records.IGetRecordPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordsRevertRequest, 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 + * 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.IGetRecordPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordsRevertRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetRecordPermissionsRequest message from the specified reader or buffer. + * Decodes a RecordsRevertRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetRecordPermissionsRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetRecordPermissionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsRevertRequest; /** - * Decodes a GetRecordPermissionsRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordsRevertRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetRecordPermissionsRequest + * @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.GetRecordPermissionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsRevertRequest; /** - * Verifies a GetRecordPermissionsRequest message. + * 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 GetRecordPermissionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsRevertRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetRecordPermissionsRequest + * @returns RecordsRevertRequest */ - public static fromObject(object: { [k: string]: any }): Records.GetRecordPermissionsRequest; + public static fromObject(object: { [k: string]: any }): Records.RecordsRevertRequest; /** - * Creates a plain object from a GetRecordPermissionsRequest message. Also converts values to other types if specified. - * @param message GetRecordPermissionsRequest + * Creates a plain object from a RecordsRevertRequest message. Also converts values to other types if specified. + * @param message RecordsRevertRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.GetRecordPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordsRevertRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetRecordPermissionsRequest to JSON. + * Converts this RecordsRevertRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetRecordPermissionsRequest + * Gets the default type url for RecordsRevertRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetRecordPermissionsResponse. */ - interface IGetRecordPermissionsResponse { - - /** GetRecordPermissionsResponse recordPermissions */ - recordPermissions?: (Records.IRecordPermission[]|null); + /** RecordModifyResult enum. */ + enum RecordModifyResult { + RS_SUCCESS = 0, + RS_OUT_OF_SYNC = 1, + RS_ACCESS_DENIED = 2, + RS_SHARE_DENIED = 3, + RS_RECORD_EXISTS = 4, + RS_OLD_RECORD_VERSION_TYPE = 5, + RS_NEW_RECORD_VERSION_TYPE = 6, + RS_FILES_NOT_MATCH = 7, + RS_RECORD_NOT_SHAREABLE = 8, + RS_ATTACHMENT_NOT_SHAREABLE = 9, + RS_FILE_LIMIT_REACHED = 10, + RS_SIZE_EXCEEDED_LIMIT = 11, + RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS = 12 } - /** Represents a GetRecordPermissionsResponse. */ - class GetRecordPermissionsResponse implements IGetRecordPermissionsResponse { + /** Properties of a RecordLinkError. */ + interface IRecordLinkError { - /** - * Constructs a new GetRecordPermissionsResponse. + /** RecordLinkError recordUid */ + recordUid?: (Uint8Array|null); + + /** RecordLinkError status */ + status?: (Records.RecordModifyResult|null); + + /** RecordLinkError message */ + message?: (string|null); + } + + /** Represents a RecordLinkError. */ + class RecordLinkError implements IRecordLinkError { + + /** + * Constructs a new RecordLinkError. * @param [properties] Properties to set */ - constructor(properties?: Records.IGetRecordPermissionsResponse); + constructor(properties?: Records.IRecordLinkError); - /** GetRecordPermissionsResponse recordPermissions. */ - public recordPermissions: Records.IRecordPermission[]; + /** RecordLinkError recordUid. */ + public recordUid: Uint8Array; + + /** RecordLinkError status. */ + public status: Records.RecordModifyResult; + + /** RecordLinkError message. */ + public message: string; /** - * Creates a new GetRecordPermissionsResponse instance using the specified properties. + * Creates a new RecordLinkError instance using the specified properties. * @param [properties] Properties to set - * @returns GetRecordPermissionsResponse instance + * @returns RecordLinkError instance */ - public static create(properties?: Records.IGetRecordPermissionsResponse): Records.GetRecordPermissionsResponse; + public static create(properties?: Records.IRecordLinkError): Records.RecordLinkError; /** - * Encodes the specified GetRecordPermissionsResponse message. Does not implicitly {@link Records.GetRecordPermissionsResponse.verify|verify} messages. - * @param message GetRecordPermissionsResponse message or plain object to encode + * Encodes the specified RecordLinkError message. 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 encode(message: Records.IGetRecordPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordLinkError, 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 + * 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.IGetRecordPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordLinkError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetRecordPermissionsResponse message from the specified reader or buffer. + * Decodes a RecordLinkError message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetRecordPermissionsResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetRecordPermissionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordLinkError; /** - * Decodes a GetRecordPermissionsResponse message from the specified reader or buffer, length delimited. + * Decodes a RecordLinkError message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetRecordPermissionsResponse + * @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.GetRecordPermissionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordLinkError; /** - * Verifies a GetRecordPermissionsResponse message. + * 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 GetRecordPermissionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RecordLinkError message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetRecordPermissionsResponse + * @returns RecordLinkError */ - public static fromObject(object: { [k: string]: any }): Records.GetRecordPermissionsResponse; + public static fromObject(object: { [k: string]: any }): Records.RecordLinkError; /** - * Creates a plain object from a GetRecordPermissionsResponse message. Also converts values to other types if specified. - * @param message GetRecordPermissionsResponse + * Creates a plain object from a RecordLinkError message. Also converts values to other types if specified. + * @param message RecordLinkError * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.GetRecordPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordLinkError, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetRecordPermissionsResponse to JSON. + * Converts this RecordLinkError to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetRecordPermissionsResponse + * Gets the default type url for RecordLinkError * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordPermission. */ - interface IRecordPermission { + /** Properties of a RecordModifyStatus. */ + interface IRecordModifyStatus { - /** RecordPermission recordUid */ + /** RecordModifyStatus recordUid */ recordUid?: (Uint8Array|null); - /** RecordPermission owner */ - owner?: (boolean|null); - - /** RecordPermission canEdit */ - canEdit?: (boolean|null); + /** RecordModifyStatus status */ + status?: (Records.RecordModifyResult|null); - /** RecordPermission canShare */ - canShare?: (boolean|null); + /** RecordModifyStatus message */ + message?: (string|null); - /** RecordPermission canTransfer */ - canTransfer?: (boolean|null); + /** RecordModifyStatus linkErrors */ + linkErrors?: (Records.IRecordLinkError[]|null); } - /** Represents a RecordPermission. */ - class RecordPermission implements IRecordPermission { + /** Represents a RecordModifyStatus. */ + class RecordModifyStatus implements IRecordModifyStatus { /** - * Constructs a new RecordPermission. + * Constructs a new RecordModifyStatus. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordPermission); + constructor(properties?: Records.IRecordModifyStatus); - /** RecordPermission recordUid. */ + /** RecordModifyStatus recordUid. */ public recordUid: Uint8Array; - /** RecordPermission owner. */ - public owner: boolean; - - /** RecordPermission canEdit. */ - public canEdit: boolean; + /** RecordModifyStatus status. */ + public status: Records.RecordModifyResult; - /** RecordPermission canShare. */ - public canShare: boolean; + /** RecordModifyStatus message. */ + public message: string; - /** RecordPermission canTransfer. */ - public canTransfer: boolean; + /** RecordModifyStatus linkErrors. */ + public linkErrors: Records.IRecordLinkError[]; /** - * Creates a new RecordPermission instance using the specified properties. + * Creates a new RecordModifyStatus instance using the specified properties. * @param [properties] Properties to set - * @returns RecordPermission instance + * @returns RecordModifyStatus instance */ - public static create(properties?: Records.IRecordPermission): Records.RecordPermission; + public static create(properties?: Records.IRecordModifyStatus): Records.RecordModifyStatus; /** - * Encodes the specified RecordPermission message. Does not implicitly {@link Records.RecordPermission.verify|verify} messages. - * @param message RecordPermission message or plain object to encode + * Encodes the specified RecordModifyStatus message. 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 encode(message: Records.IRecordPermission, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordModifyStatus, 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 + * 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.IRecordPermission, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordModifyStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordPermission message from the specified reader or buffer. + * Decodes a RecordModifyStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordPermission + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordPermission; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordModifyStatus; /** - * Decodes a RecordPermission message from the specified reader or buffer, length delimited. + * Decodes a RecordModifyStatus message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordPermission + * @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.RecordPermission; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordModifyStatus; /** - * Verifies a RecordPermission message. + * 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 RecordPermission message from a plain object. Also converts values to their respective internal types. + * Creates a RecordModifyStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordPermission + * @returns RecordModifyStatus */ - public static fromObject(object: { [k: string]: any }): Records.RecordPermission; + public static fromObject(object: { [k: string]: any }): Records.RecordModifyStatus; /** - * Creates a plain object from a RecordPermission message. Also converts values to other types if specified. - * @param message RecordPermission + * Creates a plain object from a RecordModifyStatus message. Also converts values to other types if specified. + * @param message RecordModifyStatus * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordPermission, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordModifyStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordPermission to JSON. + * Converts this RecordModifyStatus to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordPermission + * Gets the default type url for RecordModifyStatus * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetShareObjectsRequest. */ - interface IGetShareObjectsRequest { - - /** GetShareObjectsRequest startWith */ - startWith?: (string|null); - - /** GetShareObjectsRequest contains */ - contains?: (string|null); + /** Properties of a RecordsModifyResponse. */ + interface IRecordsModifyResponse { - /** GetShareObjectsRequest filtered */ - filtered?: (boolean|null); + /** RecordsModifyResponse records */ + records?: (Records.IRecordModifyStatus[]|null); - /** GetShareObjectsRequest sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + /** RecordsModifyResponse revision */ + revision?: (number|Long|null); } - /** Represents a GetShareObjectsRequest. */ - class GetShareObjectsRequest implements IGetShareObjectsRequest { + /** Represents a RecordsModifyResponse. */ + class RecordsModifyResponse implements IRecordsModifyResponse { /** - * Constructs a new GetShareObjectsRequest. + * Constructs a new RecordsModifyResponse. * @param [properties] Properties to set */ - constructor(properties?: Records.IGetShareObjectsRequest); - - /** GetShareObjectsRequest startWith. */ - public startWith: string; - - /** GetShareObjectsRequest contains. */ - public contains: string; + constructor(properties?: Records.IRecordsModifyResponse); - /** GetShareObjectsRequest filtered. */ - public filtered: boolean; + /** RecordsModifyResponse records. */ + public records: Records.IRecordModifyStatus[]; - /** GetShareObjectsRequest sharedFolderUid. */ - public sharedFolderUid: Uint8Array; + /** RecordsModifyResponse revision. */ + public revision: (number|Long); /** - * Creates a new GetShareObjectsRequest instance using the specified properties. + * Creates a new RecordsModifyResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetShareObjectsRequest instance + * @returns RecordsModifyResponse instance */ - public static create(properties?: Records.IGetShareObjectsRequest): Records.GetShareObjectsRequest; + public static create(properties?: Records.IRecordsModifyResponse): Records.RecordsModifyResponse; /** - * Encodes the specified GetShareObjectsRequest message. Does not implicitly {@link Records.GetShareObjectsRequest.verify|verify} messages. - * @param message GetShareObjectsRequest message or plain object to encode + * Encodes the specified RecordsModifyResponse message. 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 encode(message: Records.IGetShareObjectsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordsModifyResponse, 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 + * 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.IGetShareObjectsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordsModifyResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetShareObjectsRequest message from the specified reader or buffer. + * Decodes a RecordsModifyResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetShareObjectsRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetShareObjectsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsModifyResponse; /** - * Decodes a GetShareObjectsRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordsModifyResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetShareObjectsRequest + * @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.GetShareObjectsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsModifyResponse; /** - * Verifies a GetShareObjectsRequest message. + * 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 GetShareObjectsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsModifyResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetShareObjectsRequest + * @returns RecordsModifyResponse */ - public static fromObject(object: { [k: string]: any }): Records.GetShareObjectsRequest; + public static fromObject(object: { [k: string]: any }): Records.RecordsModifyResponse; /** - * Creates a plain object from a GetShareObjectsRequest message. Also converts values to other types if specified. - * @param message GetShareObjectsRequest + * Creates a plain object from a RecordsModifyResponse message. Also converts values to other types if specified. + * @param message RecordsModifyResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.GetShareObjectsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordsModifyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetShareObjectsRequest to JSON. + * Converts this RecordsModifyResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetShareObjectsRequest + * Gets the default type url for RecordsModifyResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetShareObjectsResponse. */ - interface IGetShareObjectsResponse { - - /** GetShareObjectsResponse shareRelationships */ - shareRelationships?: (Records.IShareUser[]|null); - - /** GetShareObjectsResponse shareFamilyUsers */ - shareFamilyUsers?: (Records.IShareUser[]|null); - - /** GetShareObjectsResponse shareEnterpriseUsers */ - shareEnterpriseUsers?: (Records.IShareUser[]|null); + /** Properties of a RecordAddAuditData. */ + interface IRecordAddAuditData { - /** GetShareObjectsResponse shareTeams */ - shareTeams?: (Records.IShareTeam[]|null); + /** RecordAddAuditData recordUid */ + recordUid?: (Uint8Array|null); - /** GetShareObjectsResponse shareMCTeams */ - shareMCTeams?: (Records.IShareTeam[]|null); + /** RecordAddAuditData revision */ + revision?: (number|Long|null); - /** GetShareObjectsResponse shareMCEnterpriseUsers */ - shareMCEnterpriseUsers?: (Records.IShareUser[]|null); + /** RecordAddAuditData data */ + data?: (Uint8Array|null); - /** GetShareObjectsResponse shareEnterpriseNames */ - shareEnterpriseNames?: (Records.IShareEnterprise[]|null); + /** RecordAddAuditData version */ + version?: (number|null); } - /** Represents a GetShareObjectsResponse. */ - class GetShareObjectsResponse implements IGetShareObjectsResponse { + /** Represents a RecordAddAuditData. */ + class RecordAddAuditData implements IRecordAddAuditData { /** - * Constructs a new GetShareObjectsResponse. + * Constructs a new RecordAddAuditData. * @param [properties] Properties to set */ - constructor(properties?: Records.IGetShareObjectsResponse); - - /** GetShareObjectsResponse shareRelationships. */ - public shareRelationships: Records.IShareUser[]; - - /** GetShareObjectsResponse shareFamilyUsers. */ - public shareFamilyUsers: Records.IShareUser[]; - - /** GetShareObjectsResponse shareEnterpriseUsers. */ - public shareEnterpriseUsers: Records.IShareUser[]; + constructor(properties?: Records.IRecordAddAuditData); - /** GetShareObjectsResponse shareTeams. */ - public shareTeams: Records.IShareTeam[]; + /** RecordAddAuditData recordUid. */ + public recordUid: Uint8Array; - /** GetShareObjectsResponse shareMCTeams. */ - public shareMCTeams: Records.IShareTeam[]; + /** RecordAddAuditData revision. */ + public revision: (number|Long); - /** GetShareObjectsResponse shareMCEnterpriseUsers. */ - public shareMCEnterpriseUsers: Records.IShareUser[]; + /** RecordAddAuditData data. */ + public data: Uint8Array; - /** GetShareObjectsResponse shareEnterpriseNames. */ - public shareEnterpriseNames: Records.IShareEnterprise[]; + /** RecordAddAuditData version. */ + public version: number; /** - * Creates a new GetShareObjectsResponse instance using the specified properties. + * Creates a new RecordAddAuditData instance using the specified properties. * @param [properties] Properties to set - * @returns GetShareObjectsResponse instance + * @returns RecordAddAuditData instance */ - public static create(properties?: Records.IGetShareObjectsResponse): Records.GetShareObjectsResponse; + public static create(properties?: Records.IRecordAddAuditData): Records.RecordAddAuditData; /** - * Encodes the specified GetShareObjectsResponse message. Does not implicitly {@link Records.GetShareObjectsResponse.verify|verify} messages. - * @param message GetShareObjectsResponse message or plain object to encode + * Encodes the specified RecordAddAuditData message. 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 encode(message: Records.IGetShareObjectsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordAddAuditData, 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 + * 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.IGetShareObjectsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordAddAuditData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetShareObjectsResponse message from the specified reader or buffer. + * Decodes a RecordAddAuditData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetShareObjectsResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetShareObjectsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordAddAuditData; /** - * Decodes a GetShareObjectsResponse message from the specified reader or buffer, length delimited. + * Decodes a RecordAddAuditData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetShareObjectsResponse + * @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.GetShareObjectsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordAddAuditData; /** - * Verifies a GetShareObjectsResponse message. + * 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 GetShareObjectsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RecordAddAuditData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetShareObjectsResponse + * @returns RecordAddAuditData */ - public static fromObject(object: { [k: string]: any }): Records.GetShareObjectsResponse; + public static fromObject(object: { [k: string]: any }): Records.RecordAddAuditData; /** - * Creates a plain object from a GetShareObjectsResponse message. Also converts values to other types if specified. - * @param message GetShareObjectsResponse + * Creates a plain object from a RecordAddAuditData message. Also converts values to other types if specified. + * @param message RecordAddAuditData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.GetShareObjectsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordAddAuditData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetShareObjectsResponse to JSON. + * Converts this RecordAddAuditData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetShareObjectsResponse + * Gets the default type url for RecordAddAuditData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ShareUser. */ - interface IShareUser { - - /** ShareUser username */ - username?: (string|null); - - /** ShareUser fullname */ - fullname?: (string|null); - - /** ShareUser enterpriseId */ - enterpriseId?: (number|null); - - /** ShareUser status */ - status?: (Records.ShareStatus|null); - - /** ShareUser isShareAdmin */ - isShareAdmin?: (boolean|null); + /** Properties of an AddAuditDataRequest. */ + interface IAddAuditDataRequest { - /** ShareUser isAdminOfSharedFolderOwner */ - isAdminOfSharedFolderOwner?: (boolean|null); + /** AddAuditDataRequest records */ + records?: (Records.IRecordAddAuditData[]|null); } - /** Represents a ShareUser. */ - class ShareUser implements IShareUser { + /** Represents an AddAuditDataRequest. */ + class AddAuditDataRequest implements IAddAuditDataRequest { /** - * Constructs a new ShareUser. + * Constructs a new AddAuditDataRequest. * @param [properties] Properties to set */ - constructor(properties?: Records.IShareUser); - - /** ShareUser username. */ - public username: string; - - /** ShareUser fullname. */ - public fullname: string; - - /** ShareUser enterpriseId. */ - public enterpriseId: number; - - /** ShareUser status. */ - public status: Records.ShareStatus; - - /** ShareUser isShareAdmin. */ - public isShareAdmin: boolean; + constructor(properties?: Records.IAddAuditDataRequest); - /** ShareUser isAdminOfSharedFolderOwner. */ - public isAdminOfSharedFolderOwner: boolean; + /** AddAuditDataRequest records. */ + public records: Records.IRecordAddAuditData[]; /** - * Creates a new ShareUser instance using the specified properties. + * Creates a new AddAuditDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ShareUser instance + * @returns AddAuditDataRequest instance */ - public static create(properties?: Records.IShareUser): Records.ShareUser; + public static create(properties?: Records.IAddAuditDataRequest): Records.AddAuditDataRequest; /** - * Encodes the specified ShareUser message. Does not implicitly {@link Records.ShareUser.verify|verify} messages. - * @param message ShareUser message or plain object to encode + * Encodes the specified AddAuditDataRequest message. 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 encode(message: Records.IShareUser, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IAddAuditDataRequest, 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 + * 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.IShareUser, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IAddAuditDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShareUser message from the specified reader or buffer. + * Decodes an AddAuditDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ShareUser + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.ShareUser; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.AddAuditDataRequest; /** - * Decodes a ShareUser message from the specified reader or buffer, length delimited. + * Decodes an AddAuditDataRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShareUser + * @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.ShareUser; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.AddAuditDataRequest; /** - * Verifies a ShareUser message. + * 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 a ShareUser message from a plain object. Also converts values to their respective internal types. + * Creates an AddAuditDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShareUser + * @returns AddAuditDataRequest */ - public static fromObject(object: { [k: string]: any }): Records.ShareUser; + public static fromObject(object: { [k: string]: any }): Records.AddAuditDataRequest; /** - * Creates a plain object from a ShareUser message. Also converts values to other types if specified. - * @param message ShareUser + * Creates a plain object from an AddAuditDataRequest message. Also converts values to other types if specified. + * @param message AddAuditDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.ShareUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.AddAuditDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShareUser to JSON. + * Converts this AddAuditDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShareUser + * Gets the default type url for AddAuditDataRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ShareTeam. */ - interface IShareTeam { + /** Properties of a File. */ + interface IFile { - /** ShareTeam teamname */ - teamname?: (string|null); + /** File recordUid */ + recordUid?: (Uint8Array|null); - /** ShareTeam enterpriseId */ - enterpriseId?: (number|null); + /** File recordKey */ + recordKey?: (Uint8Array|null); - /** ShareTeam teamUid */ - teamUid?: (Uint8Array|null); + /** File data */ + data?: (Uint8Array|null); + + /** File fileSize */ + fileSize?: (number|Long|null); + + /** File thumbSize */ + thumbSize?: (number|null); + + /** File isScript */ + isScript?: (boolean|null); } - /** Represents a ShareTeam. */ - class ShareTeam implements IShareTeam { + /** Represents a File. */ + class File implements IFile { /** - * Constructs a new ShareTeam. + * Constructs a new File. * @param [properties] Properties to set */ - constructor(properties?: Records.IShareTeam); + constructor(properties?: Records.IFile); - /** ShareTeam teamname. */ - public teamname: string; + /** File recordUid. */ + public recordUid: Uint8Array; - /** ShareTeam enterpriseId. */ - public enterpriseId: number; + /** File recordKey. */ + public recordKey: Uint8Array; - /** ShareTeam teamUid. */ - public teamUid: Uint8Array; + /** File data. */ + public data: Uint8Array; - /** - * Creates a new ShareTeam instance using the specified properties. + /** File fileSize. */ + public fileSize: (number|Long); + + /** File thumbSize. */ + public thumbSize: number; + + /** File isScript. */ + public isScript: boolean; + + /** + * Creates a new File instance using the specified properties. * @param [properties] Properties to set - * @returns ShareTeam instance + * @returns File instance */ - public static create(properties?: Records.IShareTeam): Records.ShareTeam; + public static create(properties?: Records.IFile): Records.File; /** - * Encodes the specified ShareTeam message. Does not implicitly {@link Records.ShareTeam.verify|verify} messages. - * @param message ShareTeam message or plain object to encode + * Encodes the specified File message. 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 encode(message: Records.IShareTeam, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IFile, 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 + * 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.IShareTeam, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IFile, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShareTeam message from the specified reader or buffer. + * Decodes a File message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ShareTeam + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.ShareTeam; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.File; /** - * Decodes a ShareTeam message from the specified reader or buffer, length delimited. + * Decodes a File message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShareTeam + * @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.ShareTeam; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.File; /** - * Verifies a ShareTeam message. + * 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 ShareTeam message from a plain object. Also converts values to their respective internal types. + * Creates a File message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShareTeam + * @returns File */ - public static fromObject(object: { [k: string]: any }): Records.ShareTeam; + public static fromObject(object: { [k: string]: any }): Records.File; /** - * Creates a plain object from a ShareTeam message. Also converts values to other types if specified. - * @param message ShareTeam + * Creates a plain object from a File message. Also converts values to other types if specified. + * @param message File * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.ShareTeam, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.File, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShareTeam to JSON. + * Converts this File to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShareTeam + * Gets the default type url for File * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ShareEnterprise. */ - interface IShareEnterprise { + /** Properties of a FilesAddRequest. */ + interface IFilesAddRequest { - /** ShareEnterprise enterprisename */ - enterprisename?: (string|null); + /** FilesAddRequest files */ + files?: (Records.IFile[]|null); - /** ShareEnterprise enterpriseId */ - enterpriseId?: (number|null); + /** FilesAddRequest clientTime */ + clientTime?: (number|Long|null); } - /** Represents a ShareEnterprise. */ - class ShareEnterprise implements IShareEnterprise { + /** Represents a FilesAddRequest. */ + class FilesAddRequest implements IFilesAddRequest { /** - * Constructs a new ShareEnterprise. + * Constructs a new FilesAddRequest. * @param [properties] Properties to set */ - constructor(properties?: Records.IShareEnterprise); + constructor(properties?: Records.IFilesAddRequest); - /** ShareEnterprise enterprisename. */ - public enterprisename: string; + /** FilesAddRequest files. */ + public files: Records.IFile[]; - /** ShareEnterprise enterpriseId. */ - public enterpriseId: number; + /** FilesAddRequest clientTime. */ + public clientTime: (number|Long); /** - * Creates a new ShareEnterprise instance using the specified properties. + * Creates a new FilesAddRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ShareEnterprise instance + * @returns FilesAddRequest instance */ - public static create(properties?: Records.IShareEnterprise): Records.ShareEnterprise; + public static create(properties?: Records.IFilesAddRequest): Records.FilesAddRequest; /** - * Encodes the specified ShareEnterprise message. Does not implicitly {@link Records.ShareEnterprise.verify|verify} messages. - * @param message ShareEnterprise message or plain object to encode + * Encodes the specified FilesAddRequest message. 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 encode(message: Records.IShareEnterprise, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IFilesAddRequest, 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 + * 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.IShareEnterprise, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IFilesAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShareEnterprise message from the specified reader or buffer. + * Decodes a FilesAddRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ShareEnterprise + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.ShareEnterprise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FilesAddRequest; /** - * Decodes a ShareEnterprise message from the specified reader or buffer, length delimited. + * Decodes a FilesAddRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShareEnterprise + * @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.ShareEnterprise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.FilesAddRequest; /** - * Verifies a ShareEnterprise message. + * 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 ShareEnterprise message from a plain object. Also converts values to their respective internal types. + * Creates a FilesAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShareEnterprise + * @returns FilesAddRequest */ - public static fromObject(object: { [k: string]: any }): Records.ShareEnterprise; + public static fromObject(object: { [k: string]: any }): Records.FilesAddRequest; /** - * Creates a plain object from a ShareEnterprise message. Also converts values to other types if specified. - * @param message ShareEnterprise + * Creates a plain object from a FilesAddRequest message. Also converts values to other types if specified. + * @param message FilesAddRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.ShareEnterprise, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.FilesAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShareEnterprise to JSON. + * Converts this FilesAddRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShareEnterprise + * Gets the default type url for FilesAddRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** ShareStatus enum. */ - enum ShareStatus { - ACTIVE = 0, - BLOCK = 1, - INVITED = 2 + /** FileAddResult enum. */ + enum FileAddResult { + FA_SUCCESS = 0, + FA_ERROR = 1 } - /** Properties of a RecordsOnwershipTransferRequest. */ - interface IRecordsOnwershipTransferRequest { + /** Properties of a FileAddStatus. */ + interface IFileAddStatus { - /** RecordsOnwershipTransferRequest transferRecords */ - transferRecords?: (Records.ITransferRecord[]|null); + /** FileAddStatus recordUid */ + recordUid?: (Uint8Array|null); + + /** FileAddStatus status */ + status?: (Records.FileAddResult|null); + + /** FileAddStatus url */ + url?: (string|null); + + /** FileAddStatus parameters */ + parameters?: (string|null); + + /** FileAddStatus thumbnailParameters */ + thumbnailParameters?: (string|null); + + /** FileAddStatus successStatusCode */ + successStatusCode?: (number|null); } - /** Represents a RecordsOnwershipTransferRequest. */ - class RecordsOnwershipTransferRequest implements IRecordsOnwershipTransferRequest { + /** Represents a FileAddStatus. */ + class FileAddStatus implements IFileAddStatus { /** - * Constructs a new RecordsOnwershipTransferRequest. + * Constructs a new FileAddStatus. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordsOnwershipTransferRequest); + constructor(properties?: Records.IFileAddStatus); - /** RecordsOnwershipTransferRequest transferRecords. */ - public transferRecords: Records.ITransferRecord[]; + /** FileAddStatus recordUid. */ + public recordUid: Uint8Array; + + /** FileAddStatus status. */ + public status: Records.FileAddResult; + + /** FileAddStatus url. */ + public url: string; + + /** FileAddStatus parameters. */ + public parameters: string; + + /** FileAddStatus thumbnailParameters. */ + public thumbnailParameters: string; + + /** FileAddStatus successStatusCode. */ + public successStatusCode: number; /** - * Creates a new RecordsOnwershipTransferRequest instance using the specified properties. + * Creates a new FileAddStatus instance using the specified properties. * @param [properties] Properties to set - * @returns RecordsOnwershipTransferRequest instance + * @returns FileAddStatus instance */ - public static create(properties?: Records.IRecordsOnwershipTransferRequest): Records.RecordsOnwershipTransferRequest; + public static create(properties?: Records.IFileAddStatus): Records.FileAddStatus; /** - * Encodes the specified RecordsOnwershipTransferRequest message. Does not implicitly {@link Records.RecordsOnwershipTransferRequest.verify|verify} messages. - * @param message RecordsOnwershipTransferRequest message or plain object to encode + * Encodes the specified FileAddStatus message. 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 encode(message: Records.IRecordsOnwershipTransferRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IFileAddStatus, 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 + * 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.IRecordsOnwershipTransferRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IFileAddStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordsOnwershipTransferRequest message from the specified reader or buffer. + * Decodes a FileAddStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordsOnwershipTransferRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsOnwershipTransferRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FileAddStatus; /** - * Decodes a RecordsOnwershipTransferRequest message from the specified reader or buffer, length delimited. + * Decodes a FileAddStatus message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordsOnwershipTransferRequest + * @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.RecordsOnwershipTransferRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.FileAddStatus; /** - * Verifies a RecordsOnwershipTransferRequest message. + * 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 RecordsOnwershipTransferRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FileAddStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordsOnwershipTransferRequest + * @returns FileAddStatus */ - public static fromObject(object: { [k: string]: any }): Records.RecordsOnwershipTransferRequest; + public static fromObject(object: { [k: string]: any }): Records.FileAddStatus; /** - * Creates a plain object from a RecordsOnwershipTransferRequest message. Also converts values to other types if specified. - * @param message RecordsOnwershipTransferRequest + * Creates a plain object from a FileAddStatus message. Also converts values to other types if specified. + * @param message FileAddStatus * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsOnwershipTransferRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.FileAddStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordsOnwershipTransferRequest to JSON. + * Converts this FileAddStatus to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordsOnwershipTransferRequest + * Gets the default type url for FileAddStatus * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TransferRecord. */ - interface ITransferRecord { - - /** TransferRecord username */ - username?: (string|null); - - /** TransferRecord recordUid */ - recordUid?: (Uint8Array|null); + /** Properties of a FilesAddResponse. */ + interface IFilesAddResponse { - /** TransferRecord recordKey */ - recordKey?: (Uint8Array|null); + /** FilesAddResponse files */ + files?: (Records.IFileAddStatus[]|null); - /** TransferRecord useEccKey */ - useEccKey?: (boolean|null); + /** FilesAddResponse revision */ + revision?: (number|Long|null); } - /** Represents a TransferRecord. */ - class TransferRecord implements ITransferRecord { + /** Represents a FilesAddResponse. */ + class FilesAddResponse implements IFilesAddResponse { /** - * Constructs a new TransferRecord. + * Constructs a new FilesAddResponse. * @param [properties] Properties to set */ - constructor(properties?: Records.ITransferRecord); - - /** TransferRecord username. */ - public username: string; - - /** TransferRecord recordUid. */ - public recordUid: Uint8Array; + constructor(properties?: Records.IFilesAddResponse); - /** TransferRecord recordKey. */ - public recordKey: Uint8Array; + /** FilesAddResponse files. */ + public files: Records.IFileAddStatus[]; - /** TransferRecord useEccKey. */ - public useEccKey: boolean; + /** FilesAddResponse revision. */ + public revision: (number|Long); /** - * Creates a new TransferRecord instance using the specified properties. + * Creates a new FilesAddResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TransferRecord instance + * @returns FilesAddResponse instance */ - public static create(properties?: Records.ITransferRecord): Records.TransferRecord; + public static create(properties?: Records.IFilesAddResponse): Records.FilesAddResponse; /** - * Encodes the specified TransferRecord message. Does not implicitly {@link Records.TransferRecord.verify|verify} messages. - * @param message TransferRecord message or plain object to encode + * Encodes the specified FilesAddResponse message. 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 encode(message: Records.ITransferRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IFilesAddResponse, 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 + * 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.ITransferRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IFilesAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TransferRecord message from the specified reader or buffer. + * Decodes a FilesAddResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TransferRecord + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TransferRecord; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FilesAddResponse; /** - * Decodes a TransferRecord message from the specified reader or buffer, length delimited. + * Decodes a FilesAddResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TransferRecord + * @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.TransferRecord; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.FilesAddResponse; /** - * Verifies a TransferRecord message. + * 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 TransferRecord message from a plain object. Also converts values to their respective internal types. + * Creates a FilesAddResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TransferRecord + * @returns FilesAddResponse */ - public static fromObject(object: { [k: string]: any }): Records.TransferRecord; + public static fromObject(object: { [k: string]: any }): Records.FilesAddResponse; /** - * Creates a plain object from a TransferRecord message. Also converts values to other types if specified. - * @param message TransferRecord + * Creates a plain object from a FilesAddResponse message. Also converts values to other types if specified. + * @param message FilesAddResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.TransferRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.FilesAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TransferRecord to JSON. + * Converts this FilesAddResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TransferRecord + * Gets the default type url for FilesAddResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordsOnwershipTransferResponse. */ - interface IRecordsOnwershipTransferResponse { + /** Properties of a FilesGetRequest. */ + interface IFilesGetRequest { - /** RecordsOnwershipTransferResponse transferRecordStatus */ - transferRecordStatus?: (Records.ITransferRecordStatus[]|null); + /** FilesGetRequest recordUids */ + recordUids?: (Uint8Array[]|null); + + /** FilesGetRequest forThumbnails */ + forThumbnails?: (boolean|null); + + /** FilesGetRequest emergencyAccessAccountOwner */ + emergencyAccessAccountOwner?: (string|null); } - /** Represents a RecordsOnwershipTransferResponse. */ - class RecordsOnwershipTransferResponse implements IRecordsOnwershipTransferResponse { + /** Represents a FilesGetRequest. */ + class FilesGetRequest implements IFilesGetRequest { /** - * Constructs a new RecordsOnwershipTransferResponse. + * Constructs a new FilesGetRequest. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordsOnwershipTransferResponse); + constructor(properties?: Records.IFilesGetRequest); - /** RecordsOnwershipTransferResponse transferRecordStatus. */ - public transferRecordStatus: Records.ITransferRecordStatus[]; + /** FilesGetRequest recordUids. */ + public recordUids: Uint8Array[]; + + /** FilesGetRequest forThumbnails. */ + public forThumbnails: boolean; + + /** FilesGetRequest emergencyAccessAccountOwner. */ + public emergencyAccessAccountOwner: string; /** - * Creates a new RecordsOnwershipTransferResponse instance using the specified properties. + * Creates a new FilesGetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RecordsOnwershipTransferResponse instance + * @returns FilesGetRequest instance */ - public static create(properties?: Records.IRecordsOnwershipTransferResponse): Records.RecordsOnwershipTransferResponse; + public static create(properties?: Records.IFilesGetRequest): Records.FilesGetRequest; /** - * Encodes the specified RecordsOnwershipTransferResponse message. Does not implicitly {@link Records.RecordsOnwershipTransferResponse.verify|verify} messages. - * @param message RecordsOnwershipTransferResponse message or plain object to encode + * Encodes the specified FilesGetRequest message. 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 encode(message: Records.IRecordsOnwershipTransferResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IFilesGetRequest, 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 + * 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.IRecordsOnwershipTransferResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IFilesGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordsOnwershipTransferResponse message from the specified reader or buffer. + * Decodes a FilesGetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordsOnwershipTransferResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsOnwershipTransferResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FilesGetRequest; /** - * Decodes a RecordsOnwershipTransferResponse message from the specified reader or buffer, length delimited. + * Decodes a FilesGetRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordsOnwershipTransferResponse + * @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.RecordsOnwershipTransferResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.FilesGetRequest; /** - * Verifies a RecordsOnwershipTransferResponse message. + * 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 RecordsOnwershipTransferResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FilesGetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordsOnwershipTransferResponse + * @returns FilesGetRequest */ - public static fromObject(object: { [k: string]: any }): Records.RecordsOnwershipTransferResponse; + public static fromObject(object: { [k: string]: any }): Records.FilesGetRequest; /** - * Creates a plain object from a RecordsOnwershipTransferResponse message. Also converts values to other types if specified. - * @param message RecordsOnwershipTransferResponse + * Creates a plain object from a FilesGetRequest message. Also converts values to other types if specified. + * @param message FilesGetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsOnwershipTransferResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.FilesGetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordsOnwershipTransferResponse to JSON. + * Converts this FilesGetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordsOnwershipTransferResponse + * Gets the default type url for FilesGetRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TransferRecordStatus. */ - interface ITransferRecordStatus { + /** FileGetResult enum. */ + enum FileGetResult { + FG_SUCCESS = 0, + FG_ERROR = 1, + FG_ACCESS_DENIED = 2 + } - /** TransferRecordStatus username */ - username?: (string|null); + /** Properties of a FileGetStatus. */ + interface IFileGetStatus { - /** TransferRecordStatus recordUid */ + /** FileGetStatus recordUid */ recordUid?: (Uint8Array|null); - /** TransferRecordStatus status */ - status?: (string|null); + /** FileGetStatus status */ + status?: (Records.FileGetResult|null); - /** TransferRecordStatus message */ - message?: (string|null); + /** FileGetStatus url */ + url?: (string|null); + + /** FileGetStatus successStatusCode */ + successStatusCode?: (number|null); + + /** FileGetStatus fileKeyType */ + fileKeyType?: (Records.RecordKeyType|null); } - /** Represents a TransferRecordStatus. */ - class TransferRecordStatus implements ITransferRecordStatus { + /** Represents a FileGetStatus. */ + class FileGetStatus implements IFileGetStatus { /** - * Constructs a new TransferRecordStatus. + * Constructs a new FileGetStatus. * @param [properties] Properties to set */ - constructor(properties?: Records.ITransferRecordStatus); - - /** TransferRecordStatus username. */ - public username: string; + constructor(properties?: Records.IFileGetStatus); - /** TransferRecordStatus recordUid. */ + /** FileGetStatus recordUid. */ public recordUid: Uint8Array; - /** TransferRecordStatus status. */ - public status: string; + /** FileGetStatus status. */ + public status: Records.FileGetResult; - /** TransferRecordStatus message. */ - public message: string; + /** FileGetStatus url. */ + public url: string; + + /** FileGetStatus successStatusCode. */ + public successStatusCode: number; + + /** FileGetStatus fileKeyType. */ + public fileKeyType: Records.RecordKeyType; /** - * Creates a new TransferRecordStatus instance using the specified properties. + * Creates a new FileGetStatus instance using the specified properties. * @param [properties] Properties to set - * @returns TransferRecordStatus instance + * @returns FileGetStatus instance */ - public static create(properties?: Records.ITransferRecordStatus): Records.TransferRecordStatus; + public static create(properties?: Records.IFileGetStatus): Records.FileGetStatus; /** - * Encodes the specified TransferRecordStatus message. Does not implicitly {@link Records.TransferRecordStatus.verify|verify} messages. - * @param message TransferRecordStatus message or plain object to encode + * Encodes the specified FileGetStatus message. 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 encode(message: Records.ITransferRecordStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IFileGetStatus, 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 + * 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.ITransferRecordStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IFileGetStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TransferRecordStatus message from the specified reader or buffer. + * Decodes a FileGetStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TransferRecordStatus + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TransferRecordStatus; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FileGetStatus; /** - * Decodes a TransferRecordStatus message from the specified reader or buffer, length delimited. + * Decodes a FileGetStatus message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TransferRecordStatus + * @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.TransferRecordStatus; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.FileGetStatus; /** - * Verifies a TransferRecordStatus message. + * 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 TransferRecordStatus message from a plain object. Also converts values to their respective internal types. + * Creates a FileGetStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TransferRecordStatus + * @returns FileGetStatus */ - public static fromObject(object: { [k: string]: any }): Records.TransferRecordStatus; + public static fromObject(object: { [k: string]: any }): Records.FileGetStatus; /** - * Creates a plain object from a TransferRecordStatus message. Also converts values to other types if specified. - * @param message TransferRecordStatus + * Creates a plain object from a FileGetStatus message. Also converts values to other types if specified. + * @param message FileGetStatus * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.TransferRecordStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.FileGetStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TransferRecordStatus to JSON. + * Converts this FileGetStatus to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TransferRecordStatus + * Gets the default type url for FileGetStatus * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordsUnshareRequest. */ - interface IRecordsUnshareRequest { - - /** RecordsUnshareRequest sharedFolders */ - sharedFolders?: (Records.IRecordsUnshareFolder[]|null); + /** Properties of a FilesGetResponse. */ + interface IFilesGetResponse { - /** RecordsUnshareRequest users */ - users?: (Records.IRecordsUnshareUser[]|null); + /** FilesGetResponse files */ + files?: (Records.IFileGetStatus[]|null); } - /** Represents a RecordsUnshareRequest. */ - class RecordsUnshareRequest implements IRecordsUnshareRequest { + /** Represents a FilesGetResponse. */ + class FilesGetResponse implements IFilesGetResponse { /** - * Constructs a new RecordsUnshareRequest. + * Constructs a new FilesGetResponse. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordsUnshareRequest); - - /** RecordsUnshareRequest sharedFolders. */ - public sharedFolders: Records.IRecordsUnshareFolder[]; + constructor(properties?: Records.IFilesGetResponse); - /** RecordsUnshareRequest users. */ - public users: Records.IRecordsUnshareUser[]; + /** FilesGetResponse files. */ + public files: Records.IFileGetStatus[]; /** - * Creates a new RecordsUnshareRequest instance using the specified properties. + * Creates a new FilesGetResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RecordsUnshareRequest instance + * @returns FilesGetResponse instance */ - public static create(properties?: Records.IRecordsUnshareRequest): Records.RecordsUnshareRequest; + public static create(properties?: Records.IFilesGetResponse): Records.FilesGetResponse; /** - * Encodes the specified RecordsUnshareRequest message. Does not implicitly {@link Records.RecordsUnshareRequest.verify|verify} messages. - * @param message RecordsUnshareRequest message or plain object to encode + * Encodes the specified FilesGetResponse message. 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 encode(message: Records.IRecordsUnshareRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IFilesGetResponse, 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 + * 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.IRecordsUnshareRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IFilesGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordsUnshareRequest message from the specified reader or buffer. + * Decodes a FilesGetResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordsUnshareRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FilesGetResponse; /** - * Decodes a RecordsUnshareRequest message from the specified reader or buffer, length delimited. + * Decodes a FilesGetResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordsUnshareRequest + * @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.RecordsUnshareRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.FilesGetResponse; /** - * Verifies a RecordsUnshareRequest message. + * 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 RecordsUnshareRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FilesGetResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordsUnshareRequest + * @returns FilesGetResponse */ - public static fromObject(object: { [k: string]: any }): Records.RecordsUnshareRequest; + public static fromObject(object: { [k: string]: any }): Records.FilesGetResponse; /** - * Creates a plain object from a RecordsUnshareRequest message. Also converts values to other types if specified. - * @param message RecordsUnshareRequest + * Creates a plain object from a FilesGetResponse message. Also converts values to other types if specified. + * @param message FilesGetResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsUnshareRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.FilesGetResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordsUnshareRequest to JSON. + * Converts this FilesGetResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordsUnshareRequest + * Gets the default type url for FilesGetResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordsUnshareResponse. */ - interface IRecordsUnshareResponse { + /** Properties of an ApplicationAddRequest. */ + interface IApplicationAddRequest { - /** RecordsUnshareResponse sharedFolders */ - sharedFolders?: (Records.IRecordsUnshareFolderStatus[]|null); + /** ApplicationAddRequest appUid */ + appUid?: (Uint8Array|null); - /** RecordsUnshareResponse users */ - users?: (Records.IRecordsUnshareUserStatus[]|null); + /** ApplicationAddRequest recordKey */ + recordKey?: (Uint8Array|null); + + /** ApplicationAddRequest clientModifiedTime */ + clientModifiedTime?: (number|Long|null); + + /** ApplicationAddRequest data */ + data?: (Uint8Array|null); + + /** ApplicationAddRequest audit */ + audit?: (Records.IRecordAudit|null); } - /** Represents a RecordsUnshareResponse. */ - class RecordsUnshareResponse implements IRecordsUnshareResponse { + /** Represents an ApplicationAddRequest. */ + class ApplicationAddRequest implements IApplicationAddRequest { /** - * Constructs a new RecordsUnshareResponse. + * Constructs a new ApplicationAddRequest. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordsUnshareResponse); + constructor(properties?: Records.IApplicationAddRequest); - /** RecordsUnshareResponse sharedFolders. */ - public sharedFolders: Records.IRecordsUnshareFolderStatus[]; + /** ApplicationAddRequest appUid. */ + public appUid: Uint8Array; - /** RecordsUnshareResponse users. */ - public users: Records.IRecordsUnshareUserStatus[]; + /** ApplicationAddRequest recordKey. */ + public recordKey: Uint8Array; + + /** ApplicationAddRequest clientModifiedTime. */ + public clientModifiedTime: (number|Long); + + /** ApplicationAddRequest data. */ + public data: Uint8Array; + + /** ApplicationAddRequest audit. */ + public audit?: (Records.IRecordAudit|null); /** - * Creates a new RecordsUnshareResponse instance using the specified properties. + * Creates a new ApplicationAddRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RecordsUnshareResponse instance + * @returns ApplicationAddRequest instance */ - public static create(properties?: Records.IRecordsUnshareResponse): Records.RecordsUnshareResponse; + public static create(properties?: Records.IApplicationAddRequest): Records.ApplicationAddRequest; /** - * Encodes the specified RecordsUnshareResponse message. Does not implicitly {@link Records.RecordsUnshareResponse.verify|verify} messages. - * @param message RecordsUnshareResponse message or plain object to encode + * Encodes the specified ApplicationAddRequest message. 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 encode(message: Records.IRecordsUnshareResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IApplicationAddRequest, 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 + * 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.IRecordsUnshareResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IApplicationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordsUnshareResponse message from the specified reader or buffer. + * Decodes an ApplicationAddRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordsUnshareResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.ApplicationAddRequest; /** - * Decodes a RecordsUnshareResponse message from the specified reader or buffer, length delimited. + * Decodes an ApplicationAddRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordsUnshareResponse + * @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.RecordsUnshareResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.ApplicationAddRequest; /** - * Verifies a RecordsUnshareResponse message. + * 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 a RecordsUnshareResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ApplicationAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordsUnshareResponse + * @returns ApplicationAddRequest */ - public static fromObject(object: { [k: string]: any }): Records.RecordsUnshareResponse; + public static fromObject(object: { [k: string]: any }): Records.ApplicationAddRequest; /** - * Creates a plain object from a RecordsUnshareResponse message. Also converts values to other types if specified. - * @param message RecordsUnshareResponse + * Creates a plain object from an ApplicationAddRequest message. Also converts values to other types if specified. + * @param message ApplicationAddRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsUnshareResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.ApplicationAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordsUnshareResponse to JSON. + * Converts this ApplicationAddRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordsUnshareResponse + * Gets the default type url for ApplicationAddRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordsUnshareFolder. */ - interface IRecordsUnshareFolder { + /** RecordDetailsInclude enum. */ + enum RecordDetailsInclude { + DATA_PLUS_SHARE = 0, + DATA_ONLY = 1, + SHARE_ONLY = 2 + } - /** RecordsUnshareFolder recordUid */ - recordUid?: (Uint8Array|null); + /** Properties of a GetRecordDataWithAccessInfoRequest. */ + interface IGetRecordDataWithAccessInfoRequest { - /** RecordsUnshareFolder sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + /** GetRecordDataWithAccessInfoRequest clientTime */ + clientTime?: (number|Long|null); + + /** GetRecordDataWithAccessInfoRequest recordUid */ + recordUid?: (Uint8Array[]|null); + + /** GetRecordDataWithAccessInfoRequest recordDetailsInclude */ + recordDetailsInclude?: (Records.RecordDetailsInclude|null); } - /** Represents a RecordsUnshareFolder. */ - class RecordsUnshareFolder implements IRecordsUnshareFolder { + /** Represents a GetRecordDataWithAccessInfoRequest. */ + class GetRecordDataWithAccessInfoRequest implements IGetRecordDataWithAccessInfoRequest { /** - * Constructs a new RecordsUnshareFolder. + * Constructs a new GetRecordDataWithAccessInfoRequest. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordsUnshareFolder); + constructor(properties?: Records.IGetRecordDataWithAccessInfoRequest); - /** RecordsUnshareFolder recordUid. */ - public recordUid: Uint8Array; + /** GetRecordDataWithAccessInfoRequest clientTime. */ + public clientTime: (number|Long); - /** RecordsUnshareFolder sharedFolderUid. */ - public sharedFolderUid: Uint8Array; + /** GetRecordDataWithAccessInfoRequest recordUid. */ + public recordUid: Uint8Array[]; + + /** GetRecordDataWithAccessInfoRequest recordDetailsInclude. */ + public recordDetailsInclude: Records.RecordDetailsInclude; /** - * Creates a new RecordsUnshareFolder instance using the specified properties. + * Creates a new GetRecordDataWithAccessInfoRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RecordsUnshareFolder instance + * @returns GetRecordDataWithAccessInfoRequest instance */ - public static create(properties?: Records.IRecordsUnshareFolder): Records.RecordsUnshareFolder; + public static create(properties?: Records.IGetRecordDataWithAccessInfoRequest): Records.GetRecordDataWithAccessInfoRequest; /** - * Encodes the specified RecordsUnshareFolder message. Does not implicitly {@link Records.RecordsUnshareFolder.verify|verify} messages. - * @param message RecordsUnshareFolder message or plain object to encode + * Encodes the specified GetRecordDataWithAccessInfoRequest message. 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 encode(message: Records.IRecordsUnshareFolder, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IGetRecordDataWithAccessInfoRequest, 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 + * 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.IRecordsUnshareFolder, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IGetRecordDataWithAccessInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordsUnshareFolder message from the specified reader or buffer. + * Decodes a GetRecordDataWithAccessInfoRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordsUnshareFolder + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareFolder; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetRecordDataWithAccessInfoRequest; /** - * Decodes a RecordsUnshareFolder message from the specified reader or buffer, length delimited. + * Decodes a GetRecordDataWithAccessInfoRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordsUnshareFolder + * @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.RecordsUnshareFolder; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.GetRecordDataWithAccessInfoRequest; /** - * Verifies a RecordsUnshareFolder message. + * 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 RecordsUnshareFolder message from a plain object. Also converts values to their respective internal types. + * Creates a GetRecordDataWithAccessInfoRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordsUnshareFolder + * @returns GetRecordDataWithAccessInfoRequest */ - public static fromObject(object: { [k: string]: any }): Records.RecordsUnshareFolder; + public static fromObject(object: { [k: string]: any }): Records.GetRecordDataWithAccessInfoRequest; /** - * Creates a plain object from a RecordsUnshareFolder message. Also converts values to other types if specified. - * @param message RecordsUnshareFolder + * Creates a plain object from a GetRecordDataWithAccessInfoRequest message. Also converts values to other types if specified. + * @param message GetRecordDataWithAccessInfoRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsUnshareFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.GetRecordDataWithAccessInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordsUnshareFolder to JSON. + * Converts this GetRecordDataWithAccessInfoRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordsUnshareFolder + * Gets the default type url for GetRecordDataWithAccessInfoRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordsUnshareUser. */ - interface IRecordsUnshareUser { + /** Properties of a UserPermission. */ + interface IUserPermission { - /** RecordsUnshareUser recordUid */ - recordUid?: (Uint8Array|null); + /** UserPermission username */ + username?: (string|null); - /** RecordsUnshareUser accountUid */ + /** UserPermission owner */ + owner?: (boolean|null); + + /** UserPermission shareAdmin */ + shareAdmin?: (boolean|null); + + /** UserPermission sharable */ + sharable?: (boolean|null); + + /** UserPermission editable */ + editable?: (boolean|null); + + /** UserPermission awaitingApproval */ + awaitingApproval?: (boolean|null); + + /** UserPermission expiration */ + expiration?: (number|Long|null); + + /** UserPermission accountUid */ accountUid?: (Uint8Array|null); + + /** UserPermission timerNotificationType */ + timerNotificationType?: (Records.TimerNotificationType|null); + + /** UserPermission rotateOnExpiration */ + rotateOnExpiration?: (boolean|null); } - /** Represents a RecordsUnshareUser. */ - class RecordsUnshareUser implements IRecordsUnshareUser { + /** Represents a UserPermission. */ + class UserPermission implements IUserPermission { /** - * Constructs a new RecordsUnshareUser. + * Constructs a new UserPermission. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordsUnshareUser); + constructor(properties?: Records.IUserPermission); - /** RecordsUnshareUser recordUid. */ - public recordUid: Uint8Array; + /** UserPermission username. */ + public username: string; - /** RecordsUnshareUser accountUid. */ + /** UserPermission owner. */ + public owner: boolean; + + /** UserPermission shareAdmin. */ + public shareAdmin: boolean; + + /** UserPermission sharable. */ + public sharable: boolean; + + /** UserPermission editable. */ + public editable: boolean; + + /** UserPermission awaitingApproval. */ + public awaitingApproval: boolean; + + /** UserPermission expiration. */ + public expiration: (number|Long); + + /** UserPermission accountUid. */ public accountUid: Uint8Array; + /** UserPermission timerNotificationType. */ + public timerNotificationType: Records.TimerNotificationType; + + /** UserPermission rotateOnExpiration. */ + public rotateOnExpiration: boolean; + /** - * Creates a new RecordsUnshareUser instance using the specified properties. + * Creates a new UserPermission instance using the specified properties. * @param [properties] Properties to set - * @returns RecordsUnshareUser instance + * @returns UserPermission instance */ - public static create(properties?: Records.IRecordsUnshareUser): Records.RecordsUnshareUser; + public static create(properties?: Records.IUserPermission): Records.UserPermission; /** - * Encodes the specified RecordsUnshareUser message. Does not implicitly {@link Records.RecordsUnshareUser.verify|verify} messages. - * @param message RecordsUnshareUser message or plain object to encode + * Encodes the specified UserPermission message. 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 encode(message: Records.IRecordsUnshareUser, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IUserPermission, 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 + * 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.IRecordsUnshareUser, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IUserPermission, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordsUnshareUser message from the specified reader or buffer. + * Decodes a UserPermission message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordsUnshareUser + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareUser; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.UserPermission; /** - * Decodes a RecordsUnshareUser message from the specified reader or buffer, length delimited. + * Decodes a UserPermission message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordsUnshareUser + * @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.RecordsUnshareUser; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.UserPermission; /** - * Verifies a RecordsUnshareUser message. + * 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 RecordsUnshareUser message from a plain object. Also converts values to their respective internal types. + * Creates a UserPermission message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordsUnshareUser + * @returns UserPermission */ - public static fromObject(object: { [k: string]: any }): Records.RecordsUnshareUser; + public static fromObject(object: { [k: string]: any }): Records.UserPermission; /** - * Creates a plain object from a RecordsUnshareUser message. Also converts values to other types if specified. - * @param message RecordsUnshareUser + * Creates a plain object from a UserPermission message. Also converts values to other types if specified. + * @param message UserPermission * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsUnshareUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.UserPermission, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordsUnshareUser to JSON. + * Converts this UserPermission to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordsUnshareUser + * Gets the default type url for UserPermission * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordsUnshareFolderStatus. */ - interface IRecordsUnshareFolderStatus { - - /** RecordsUnshareFolderStatus recordUid */ - recordUid?: (Uint8Array|null); + /** Properties of a SharedFolderPermission. */ + interface ISharedFolderPermission { - /** RecordsUnshareFolderStatus sharedFolderUid */ + /** SharedFolderPermission sharedFolderUid */ sharedFolderUid?: (Uint8Array|null); + + /** SharedFolderPermission resharable */ + resharable?: (boolean|null); + + /** SharedFolderPermission editable */ + editable?: (boolean|null); + + /** SharedFolderPermission revision */ + revision?: (number|Long|null); + + /** SharedFolderPermission expiration */ + expiration?: (number|Long|null); + + /** SharedFolderPermission timerNotificationType */ + timerNotificationType?: (Records.TimerNotificationType|null); + + /** SharedFolderPermission rotateOnExpiration */ + rotateOnExpiration?: (boolean|null); } - /** Represents a RecordsUnshareFolderStatus. */ - class RecordsUnshareFolderStatus implements IRecordsUnshareFolderStatus { + /** Represents a SharedFolderPermission. */ + class SharedFolderPermission implements ISharedFolderPermission { /** - * Constructs a new RecordsUnshareFolderStatus. + * Constructs a new SharedFolderPermission. * @param [properties] Properties to set */ - constructor(properties?: Records.IRecordsUnshareFolderStatus); - - /** RecordsUnshareFolderStatus recordUid. */ - public recordUid: Uint8Array; + constructor(properties?: Records.ISharedFolderPermission); - /** RecordsUnshareFolderStatus sharedFolderUid. */ + /** SharedFolderPermission sharedFolderUid. */ public sharedFolderUid: Uint8Array; + /** SharedFolderPermission resharable. */ + public resharable: boolean; + + /** SharedFolderPermission editable. */ + public editable: boolean; + + /** SharedFolderPermission revision. */ + public revision: (number|Long); + + /** SharedFolderPermission expiration. */ + public expiration: (number|Long); + + /** SharedFolderPermission timerNotificationType. */ + public timerNotificationType: Records.TimerNotificationType; + + /** SharedFolderPermission rotateOnExpiration. */ + public rotateOnExpiration: boolean; + /** - * Creates a new RecordsUnshareFolderStatus instance using the specified properties. + * Creates a new SharedFolderPermission instance using the specified properties. * @param [properties] Properties to set - * @returns RecordsUnshareFolderStatus instance + * @returns SharedFolderPermission instance */ - public static create(properties?: Records.IRecordsUnshareFolderStatus): Records.RecordsUnshareFolderStatus; + public static create(properties?: Records.ISharedFolderPermission): Records.SharedFolderPermission; /** - * Encodes the specified RecordsUnshareFolderStatus message. Does not implicitly {@link Records.RecordsUnshareFolderStatus.verify|verify} messages. - * @param message RecordsUnshareFolderStatus message or plain object to encode + * Encodes the specified SharedFolderPermission message. 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 encode(message: Records.IRecordsUnshareFolderStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.ISharedFolderPermission, 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 + * 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.IRecordsUnshareFolderStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.ISharedFolderPermission, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordsUnshareFolderStatus message from the specified reader or buffer. + * Decodes a SharedFolderPermission message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordsUnshareFolderStatus + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareFolderStatus; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.SharedFolderPermission; /** - * Decodes a RecordsUnshareFolderStatus message from the specified reader or buffer, length delimited. + * Decodes a SharedFolderPermission message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordsUnshareFolderStatus + * @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.RecordsUnshareFolderStatus; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.SharedFolderPermission; /** - * Verifies a RecordsUnshareFolderStatus message. + * 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 RecordsUnshareFolderStatus message from a plain object. Also converts values to their respective internal types. + * Creates a SharedFolderPermission message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordsUnshareFolderStatus + * @returns SharedFolderPermission */ - public static fromObject(object: { [k: string]: any }): Records.RecordsUnshareFolderStatus; + public static fromObject(object: { [k: string]: any }): Records.SharedFolderPermission; /** - * Creates a plain object from a RecordsUnshareFolderStatus message. Also converts values to other types if specified. - * @param message RecordsUnshareFolderStatus + * Creates a plain object from a SharedFolderPermission message. Also converts values to other types if specified. + * @param message SharedFolderPermission * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsUnshareFolderStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.SharedFolderPermission, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordsUnshareFolderStatus to JSON. + * Converts this SharedFolderPermission to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordsUnshareFolderStatus + * Gets the default type url for SharedFolderPermission * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordsUnshareUserStatus. */ - interface IRecordsUnshareUserStatus { + /** Properties of a RecordData. */ + interface IRecordData { - /** RecordsUnshareUserStatus recordUid */ - recordUid?: (Uint8Array|null); + /** RecordData revision */ + revision?: (number|Long|null); - /** RecordsUnshareUserStatus accountUid */ - accountUid?: (Uint8Array|null); - } + /** RecordData version */ + version?: (number|null); - /** Represents a RecordsUnshareUserStatus. */ - class RecordsUnshareUserStatus implements IRecordsUnshareUserStatus { + /** RecordData shared */ + shared?: (boolean|null); - /** - * Constructs a new RecordsUnshareUserStatus. - * @param [properties] Properties to set - */ - constructor(properties?: Records.IRecordsUnshareUserStatus); + /** RecordData encryptedRecordData */ + encryptedRecordData?: (string|null); - /** RecordsUnshareUserStatus recordUid. */ - public recordUid: Uint8Array; + /** RecordData encryptedExtraData */ + encryptedExtraData?: (string|null); - /** RecordsUnshareUserStatus accountUid. */ - public accountUid: Uint8Array; + /** RecordData clientModifiedTime */ + clientModifiedTime?: (number|Long|null); + + /** RecordData nonSharedData */ + nonSharedData?: (string|null); + + /** RecordData linkedRecordData */ + linkedRecordData?: (Records.IRecordData[]|null); + + /** RecordData fileId */ + fileId?: (Uint8Array[]|null); + + /** RecordData fileSize */ + fileSize?: (number|Long|null); + + /** RecordData thumbnailSize */ + thumbnailSize?: (number|Long|null); + + /** RecordData recordKeyType */ + recordKeyType?: (Records.RecordKeyType|null); + + /** RecordData recordKey */ + recordKey?: (Uint8Array|null); + + /** RecordData recordUid */ + recordUid?: (Uint8Array|null); + } + + /** Represents a RecordData. */ + class RecordData implements IRecordData { /** - * Creates a new RecordsUnshareUserStatus instance using the specified properties. + * Constructs a new RecordData. * @param [properties] Properties to set - * @returns RecordsUnshareUserStatus instance */ - public static create(properties?: Records.IRecordsUnshareUserStatus): Records.RecordsUnshareUserStatus; + constructor(properties?: Records.IRecordData); + + /** RecordData revision. */ + public revision: (number|Long); + + /** RecordData version. */ + public version: number; + + /** RecordData shared. */ + public shared: boolean; + + /** RecordData encryptedRecordData. */ + public encryptedRecordData: string; + + /** RecordData encryptedExtraData. */ + public encryptedExtraData: string; + + /** RecordData clientModifiedTime. */ + public clientModifiedTime: (number|Long); + + /** RecordData nonSharedData. */ + public nonSharedData: string; + + /** RecordData linkedRecordData. */ + public linkedRecordData: Records.IRecordData[]; + + /** RecordData fileId. */ + public fileId: Uint8Array[]; + + /** RecordData fileSize. */ + public fileSize: (number|Long); + + /** RecordData thumbnailSize. */ + public thumbnailSize: (number|Long); + + /** RecordData recordKeyType. */ + public recordKeyType: Records.RecordKeyType; + + /** RecordData recordKey. */ + public recordKey: Uint8Array; + + /** RecordData recordUid. */ + public recordUid: Uint8Array; /** - * Encodes the specified RecordsUnshareUserStatus message. Does not implicitly {@link Records.RecordsUnshareUserStatus.verify|verify} messages. - * @param message RecordsUnshareUserStatus message or plain object to encode + * Creates a new RecordData instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordData instance + */ + public static create(properties?: Records.IRecordData): Records.RecordData; + + /** + * Encodes the specified RecordData message. 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 encode(message: Records.IRecordsUnshareUserStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordData, 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 + * 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.IRecordsUnshareUserStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordsUnshareUserStatus message from the specified reader or buffer. + * Decodes a RecordData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordsUnshareUserStatus + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareUserStatus; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordData; /** - * Decodes a RecordsUnshareUserStatus message from the specified reader or buffer, length delimited. + * Decodes a RecordData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordsUnshareUserStatus + * @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.RecordsUnshareUserStatus; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordData; /** - * Verifies a RecordsUnshareUserStatus message. + * 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 RecordsUnshareUserStatus message from a plain object. Also converts values to their respective internal types. + * Creates a RecordData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordsUnshareUserStatus + * @returns RecordData */ - public static fromObject(object: { [k: string]: any }): Records.RecordsUnshareUserStatus; + public static fromObject(object: { [k: string]: any }): Records.RecordData; /** - * Creates a plain object from a RecordsUnshareUserStatus message. Also converts values to other types if specified. - * @param message RecordsUnshareUserStatus + * Creates a plain object from a RecordData message. Also converts values to other types if specified. + * @param message RecordData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsUnshareUserStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordsUnshareUserStatus to JSON. + * Converts this RecordData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordsUnshareUserStatus + * Gets the default type url for RecordData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** RecordTransactionType enum. */ - enum RecordTransactionType { - RTT_GENERAL = 0, - RTT_ROTATION = 1 - } + /** Properties of a RecordDataWithAccessInfo. */ + interface IRecordDataWithAccessInfo { - /** TimeLimitedAccessType enum. */ - enum TimeLimitedAccessType { - INVALID_TIME_LIMITED_ACCESS_TYPE = 0, - USER_ACCESS_TO_RECORD = 1, - USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER = 2, - RECORD_ACCESS_TO_SHAREDFOLDER = 3, - USER_ACCESS_TO_SHAREDFOLDER = 4, - TEAM_ACCESS_TO_SHAREDFOLDER = 5 - } + /** RecordDataWithAccessInfo recordUid */ + recordUid?: (Uint8Array|null); - /** TimerNotificationType enum. */ - enum TimerNotificationType { - NOTIFICATION_OFF = 0, - NOTIFY_OWNER = 1, - NOTIFY_PRIVILEGED_USERS = 2 - } + /** RecordDataWithAccessInfo recordData */ + recordData?: (Records.IRecordData|null); - /** Properties of a TimedAccessCallbackPayload. */ - interface ITimedAccessCallbackPayload { + /** RecordDataWithAccessInfo userPermission */ + userPermission?: (Records.IUserPermission[]|null); - /** TimedAccessCallbackPayload timeLimitedAccessType */ - timeLimitedAccessType?: (Records.TimeLimitedAccessType|null); + /** RecordDataWithAccessInfo sharedFolderPermission */ + sharedFolderPermission?: (Records.ISharedFolderPermission[]|null); } - /** Represents a TimedAccessCallbackPayload. */ - class TimedAccessCallbackPayload implements ITimedAccessCallbackPayload { + /** Represents a RecordDataWithAccessInfo. */ + class RecordDataWithAccessInfo implements IRecordDataWithAccessInfo { /** - * Constructs a new TimedAccessCallbackPayload. + * Constructs a new RecordDataWithAccessInfo. * @param [properties] Properties to set */ - constructor(properties?: Records.ITimedAccessCallbackPayload); + constructor(properties?: Records.IRecordDataWithAccessInfo); - /** TimedAccessCallbackPayload timeLimitedAccessType. */ - public timeLimitedAccessType: Records.TimeLimitedAccessType; + /** RecordDataWithAccessInfo recordUid. */ + public recordUid: Uint8Array; + + /** RecordDataWithAccessInfo recordData. */ + public recordData?: (Records.IRecordData|null); + + /** RecordDataWithAccessInfo userPermission. */ + public userPermission: Records.IUserPermission[]; + + /** RecordDataWithAccessInfo sharedFolderPermission. */ + public sharedFolderPermission: Records.ISharedFolderPermission[]; /** - * Creates a new TimedAccessCallbackPayload instance using the specified properties. + * Creates a new RecordDataWithAccessInfo instance using the specified properties. * @param [properties] Properties to set - * @returns TimedAccessCallbackPayload instance + * @returns RecordDataWithAccessInfo instance */ - public static create(properties?: Records.ITimedAccessCallbackPayload): Records.TimedAccessCallbackPayload; + public static create(properties?: Records.IRecordDataWithAccessInfo): Records.RecordDataWithAccessInfo; /** - * Encodes the specified TimedAccessCallbackPayload message. Does not implicitly {@link Records.TimedAccessCallbackPayload.verify|verify} messages. - * @param message TimedAccessCallbackPayload message or plain object to encode + * Encodes the specified RecordDataWithAccessInfo message. 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 encode(message: Records.ITimedAccessCallbackPayload, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordDataWithAccessInfo, 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 + * 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.ITimedAccessCallbackPayload, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordDataWithAccessInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TimedAccessCallbackPayload message from the specified reader or buffer. + * Decodes a RecordDataWithAccessInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TimedAccessCallbackPayload + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TimedAccessCallbackPayload; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordDataWithAccessInfo; /** - * Decodes a TimedAccessCallbackPayload message from the specified reader or buffer, length delimited. + * Decodes a RecordDataWithAccessInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TimedAccessCallbackPayload + * @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.TimedAccessCallbackPayload; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordDataWithAccessInfo; /** - * Verifies a TimedAccessCallbackPayload message. + * 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 TimedAccessCallbackPayload message from a plain object. Also converts values to their respective internal types. + * Creates a RecordDataWithAccessInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TimedAccessCallbackPayload + * @returns RecordDataWithAccessInfo */ - public static fromObject(object: { [k: string]: any }): Records.TimedAccessCallbackPayload; + public static fromObject(object: { [k: string]: any }): Records.RecordDataWithAccessInfo; /** - * Creates a plain object from a TimedAccessCallbackPayload message. Also converts values to other types if specified. - * @param message TimedAccessCallbackPayload + * Creates a plain object from a RecordDataWithAccessInfo message. Also converts values to other types if specified. + * @param message RecordDataWithAccessInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.TimedAccessCallbackPayload, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordDataWithAccessInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TimedAccessCallbackPayload to JSON. + * Converts this RecordDataWithAccessInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TimedAccessCallbackPayload + * Gets the default type url for RecordDataWithAccessInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TimeLimitedAccessRequest. */ - interface ITimeLimitedAccessRequest { - - /** TimeLimitedAccessRequest accountUid */ - accountUid?: (Uint8Array[]|null); - - /** TimeLimitedAccessRequest teamUid */ - teamUid?: (Uint8Array[]|null); - - /** TimeLimitedAccessRequest recordUid */ - recordUid?: (Uint8Array[]|null); - - /** TimeLimitedAccessRequest sharedObjectUid */ - sharedObjectUid?: (Uint8Array|null); - - /** TimeLimitedAccessRequest timeLimitedAccessType */ - timeLimitedAccessType?: (Records.TimeLimitedAccessType|null); + /** Properties of a GetRecordDataWithAccessInfoResponse. */ + interface IGetRecordDataWithAccessInfoResponse { - /** TimeLimitedAccessRequest expiration */ - expiration?: (number|Long|null); + /** GetRecordDataWithAccessInfoResponse recordDataWithAccessInfo */ + recordDataWithAccessInfo?: (Records.IRecordDataWithAccessInfo[]|null); - /** TimeLimitedAccessRequest timerNotificationType */ - timerNotificationType?: (Records.TimerNotificationType|null); + /** GetRecordDataWithAccessInfoResponse noPermissionRecordUid */ + noPermissionRecordUid?: (Uint8Array[]|null); } - /** Represents a TimeLimitedAccessRequest. */ - class TimeLimitedAccessRequest implements ITimeLimitedAccessRequest { + /** Represents a GetRecordDataWithAccessInfoResponse. */ + class GetRecordDataWithAccessInfoResponse implements IGetRecordDataWithAccessInfoResponse { /** - * Constructs a new TimeLimitedAccessRequest. + * Constructs a new GetRecordDataWithAccessInfoResponse. * @param [properties] Properties to set */ - constructor(properties?: Records.ITimeLimitedAccessRequest); - - /** TimeLimitedAccessRequest accountUid. */ - public accountUid: Uint8Array[]; - - /** TimeLimitedAccessRequest teamUid. */ - public teamUid: Uint8Array[]; - - /** TimeLimitedAccessRequest recordUid. */ - public recordUid: Uint8Array[]; - - /** TimeLimitedAccessRequest sharedObjectUid. */ - public sharedObjectUid: Uint8Array; - - /** TimeLimitedAccessRequest timeLimitedAccessType. */ - public timeLimitedAccessType: Records.TimeLimitedAccessType; + constructor(properties?: Records.IGetRecordDataWithAccessInfoResponse); - /** TimeLimitedAccessRequest expiration. */ - public expiration: (number|Long); + /** GetRecordDataWithAccessInfoResponse recordDataWithAccessInfo. */ + public recordDataWithAccessInfo: Records.IRecordDataWithAccessInfo[]; - /** TimeLimitedAccessRequest timerNotificationType. */ - public timerNotificationType: Records.TimerNotificationType; + /** GetRecordDataWithAccessInfoResponse noPermissionRecordUid. */ + public noPermissionRecordUid: Uint8Array[]; /** - * Creates a new TimeLimitedAccessRequest instance using the specified properties. + * Creates a new GetRecordDataWithAccessInfoResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TimeLimitedAccessRequest instance + * @returns GetRecordDataWithAccessInfoResponse instance */ - public static create(properties?: Records.ITimeLimitedAccessRequest): Records.TimeLimitedAccessRequest; + public static create(properties?: Records.IGetRecordDataWithAccessInfoResponse): Records.GetRecordDataWithAccessInfoResponse; /** - * Encodes the specified TimeLimitedAccessRequest message. Does not implicitly {@link Records.TimeLimitedAccessRequest.verify|verify} messages. - * @param message TimeLimitedAccessRequest message or plain object to encode + * Encodes the specified GetRecordDataWithAccessInfoResponse message. 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 encode(message: Records.ITimeLimitedAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IGetRecordDataWithAccessInfoResponse, 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 + * 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.ITimeLimitedAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IGetRecordDataWithAccessInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TimeLimitedAccessRequest message from the specified reader or buffer. + * Decodes a GetRecordDataWithAccessInfoResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TimeLimitedAccessRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TimeLimitedAccessRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetRecordDataWithAccessInfoResponse; /** - * Decodes a TimeLimitedAccessRequest message from the specified reader or buffer, length delimited. + * Decodes a GetRecordDataWithAccessInfoResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TimeLimitedAccessRequest + * @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.TimeLimitedAccessRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.GetRecordDataWithAccessInfoResponse; /** - * Verifies a TimeLimitedAccessRequest message. + * 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 TimeLimitedAccessRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetRecordDataWithAccessInfoResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TimeLimitedAccessRequest + * @returns GetRecordDataWithAccessInfoResponse */ - public static fromObject(object: { [k: string]: any }): Records.TimeLimitedAccessRequest; + public static fromObject(object: { [k: string]: any }): Records.GetRecordDataWithAccessInfoResponse; /** - * Creates a plain object from a TimeLimitedAccessRequest message. Also converts values to other types if specified. - * @param message TimeLimitedAccessRequest + * Creates a plain object from a GetRecordDataWithAccessInfoResponse message. Also converts values to other types if specified. + * @param message GetRecordDataWithAccessInfoResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.TimeLimitedAccessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.GetRecordDataWithAccessInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TimeLimitedAccessRequest to JSON. + * Converts this GetRecordDataWithAccessInfoResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TimeLimitedAccessRequest + * Gets the default type url for GetRecordDataWithAccessInfoResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TimeLimitedAccessStatus. */ - interface ITimeLimitedAccessStatus { + /** CheckShareAdminObjectType enum. */ + enum CheckShareAdminObjectType { + CHECK_SA_INVALID_TYPE = 0, + CHECK_SA_ON_SF = 1, + CHECK_SA_ON_RECORD = 2 + } - /** TimeLimitedAccessStatus uid */ + /** Properties of an IsObjectShareAdmin. */ + interface IIsObjectShareAdmin { + + /** IsObjectShareAdmin uid */ uid?: (Uint8Array|null); - /** TimeLimitedAccessStatus message */ - message?: (string|null); + /** IsObjectShareAdmin isAdmin */ + isAdmin?: (boolean|null); + + /** IsObjectShareAdmin objectType */ + objectType?: (Records.CheckShareAdminObjectType|null); } - /** Represents a TimeLimitedAccessStatus. */ - class TimeLimitedAccessStatus implements ITimeLimitedAccessStatus { + /** Represents an IsObjectShareAdmin. */ + class IsObjectShareAdmin implements IIsObjectShareAdmin { /** - * Constructs a new TimeLimitedAccessStatus. + * Constructs a new IsObjectShareAdmin. * @param [properties] Properties to set */ - constructor(properties?: Records.ITimeLimitedAccessStatus); + constructor(properties?: Records.IIsObjectShareAdmin); - /** TimeLimitedAccessStatus uid. */ + /** IsObjectShareAdmin uid. */ public uid: Uint8Array; - /** TimeLimitedAccessStatus message. */ - public message: string; + /** IsObjectShareAdmin isAdmin. */ + public isAdmin: boolean; + + /** IsObjectShareAdmin objectType. */ + public objectType: Records.CheckShareAdminObjectType; /** - * Creates a new TimeLimitedAccessStatus instance using the specified properties. + * Creates a new IsObjectShareAdmin instance using the specified properties. * @param [properties] Properties to set - * @returns TimeLimitedAccessStatus instance + * @returns IsObjectShareAdmin instance */ - public static create(properties?: Records.ITimeLimitedAccessStatus): Records.TimeLimitedAccessStatus; + public static create(properties?: Records.IIsObjectShareAdmin): Records.IsObjectShareAdmin; /** - * Encodes the specified TimeLimitedAccessStatus message. Does not implicitly {@link Records.TimeLimitedAccessStatus.verify|verify} messages. - * @param message TimeLimitedAccessStatus message or plain object to encode + * Encodes the specified IsObjectShareAdmin message. 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 encode(message: Records.ITimeLimitedAccessStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IIsObjectShareAdmin, 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 + * 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.ITimeLimitedAccessStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IIsObjectShareAdmin, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TimeLimitedAccessStatus message from the specified reader or buffer. + * Decodes an IsObjectShareAdmin message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TimeLimitedAccessStatus + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TimeLimitedAccessStatus; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.IsObjectShareAdmin; /** - * Decodes a TimeLimitedAccessStatus message from the specified reader or buffer, length delimited. + * Decodes an IsObjectShareAdmin message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TimeLimitedAccessStatus + * @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.TimeLimitedAccessStatus; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.IsObjectShareAdmin; /** - * Verifies a TimeLimitedAccessStatus message. + * 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 a TimeLimitedAccessStatus message from a plain object. Also converts values to their respective internal types. + * Creates an IsObjectShareAdmin message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TimeLimitedAccessStatus + * @returns IsObjectShareAdmin */ - public static fromObject(object: { [k: string]: any }): Records.TimeLimitedAccessStatus; + public static fromObject(object: { [k: string]: any }): Records.IsObjectShareAdmin; /** - * Creates a plain object from a TimeLimitedAccessStatus message. Also converts values to other types if specified. - * @param message TimeLimitedAccessStatus + * Creates a plain object from an IsObjectShareAdmin message. Also converts values to other types if specified. + * @param message IsObjectShareAdmin * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.TimeLimitedAccessStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.IsObjectShareAdmin, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TimeLimitedAccessStatus to JSON. + * Converts this IsObjectShareAdmin to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TimeLimitedAccessStatus + * Gets the default type url for IsObjectShareAdmin * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TimeLimitedAccessResponse. */ - interface ITimeLimitedAccessResponse { - - /** TimeLimitedAccessResponse revision */ - revision?: (number|Long|null); - - /** TimeLimitedAccessResponse userAccessStatus */ - userAccessStatus?: (Records.ITimeLimitedAccessStatus[]|null); - - /** TimeLimitedAccessResponse teamAccessStatus */ - teamAccessStatus?: (Records.ITimeLimitedAccessStatus[]|null); + /** Properties of an AmIShareAdmin. */ + interface IAmIShareAdmin { - /** TimeLimitedAccessResponse recordAccessStatus */ - recordAccessStatus?: (Records.ITimeLimitedAccessStatus[]|null); + /** AmIShareAdmin isObjectShareAdmin */ + isObjectShareAdmin?: (Records.IIsObjectShareAdmin[]|null); } - /** Represents a TimeLimitedAccessResponse. */ - class TimeLimitedAccessResponse implements ITimeLimitedAccessResponse { + /** Represents an AmIShareAdmin. */ + class AmIShareAdmin implements IAmIShareAdmin { /** - * Constructs a new TimeLimitedAccessResponse. + * Constructs a new AmIShareAdmin. * @param [properties] Properties to set */ - constructor(properties?: Records.ITimeLimitedAccessResponse); - - /** TimeLimitedAccessResponse revision. */ - public revision: (number|Long); - - /** TimeLimitedAccessResponse userAccessStatus. */ - public userAccessStatus: Records.ITimeLimitedAccessStatus[]; - - /** TimeLimitedAccessResponse teamAccessStatus. */ - public teamAccessStatus: Records.ITimeLimitedAccessStatus[]; + constructor(properties?: Records.IAmIShareAdmin); - /** TimeLimitedAccessResponse recordAccessStatus. */ - public recordAccessStatus: Records.ITimeLimitedAccessStatus[]; + /** AmIShareAdmin isObjectShareAdmin. */ + public isObjectShareAdmin: Records.IIsObjectShareAdmin[]; /** - * Creates a new TimeLimitedAccessResponse instance using the specified properties. + * Creates a new AmIShareAdmin instance using the specified properties. * @param [properties] Properties to set - * @returns TimeLimitedAccessResponse instance + * @returns AmIShareAdmin instance */ - public static create(properties?: Records.ITimeLimitedAccessResponse): Records.TimeLimitedAccessResponse; + public static create(properties?: Records.IAmIShareAdmin): Records.AmIShareAdmin; /** - * Encodes the specified TimeLimitedAccessResponse message. Does not implicitly {@link Records.TimeLimitedAccessResponse.verify|verify} messages. - * @param message TimeLimitedAccessResponse message or plain object to encode + * Encodes the specified AmIShareAdmin message. 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 encode(message: Records.ITimeLimitedAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IAmIShareAdmin, 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 + * 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.ITimeLimitedAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IAmIShareAdmin, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TimeLimitedAccessResponse message from the specified reader or buffer. + * Decodes an AmIShareAdmin message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TimeLimitedAccessResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TimeLimitedAccessResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.AmIShareAdmin; /** - * Decodes a TimeLimitedAccessResponse message from the specified reader or buffer, length delimited. + * Decodes an AmIShareAdmin message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TimeLimitedAccessResponse + * @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.TimeLimitedAccessResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.AmIShareAdmin; /** - * Verifies a TimeLimitedAccessResponse message. + * 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 a TimeLimitedAccessResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AmIShareAdmin message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TimeLimitedAccessResponse + * @returns AmIShareAdmin */ - public static fromObject(object: { [k: string]: any }): Records.TimeLimitedAccessResponse; + public static fromObject(object: { [k: string]: any }): Records.AmIShareAdmin; /** - * Creates a plain object from a TimeLimitedAccessResponse message. Also converts values to other types if specified. - * @param message TimeLimitedAccessResponse + * Creates a plain object from an AmIShareAdmin message. Also converts values to other types if specified. + * @param message AmIShareAdmin * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.TimeLimitedAccessResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.AmIShareAdmin, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TimeLimitedAccessResponse to JSON. + * Converts this AmIShareAdmin to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TimeLimitedAccessResponse + * Gets the default type url for AmIShareAdmin * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} -/** Namespace Push. */ -export namespace Push { + /** Properties of a RecordShareUpdateRequest. */ + interface IRecordShareUpdateRequest { - /** Properties of a UserRegistrationRequest. */ - interface IUserRegistrationRequest { + /** RecordShareUpdateRequest addSharedRecord */ + addSharedRecord?: (Records.ISharedRecord[]|null); - /** UserRegistrationRequest messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + /** RecordShareUpdateRequest updateSharedRecord */ + updateSharedRecord?: (Records.ISharedRecord[]|null); - /** UserRegistrationRequest userId */ - userId?: (number|null); + /** RecordShareUpdateRequest removeSharedRecord */ + removeSharedRecord?: (Records.ISharedRecord[]|null); - /** UserRegistrationRequest enterpriseId */ - enterpriseId?: (number|null); + /** RecordShareUpdateRequest pt */ + pt?: (string|null); } - /** Represents a UserRegistrationRequest. */ - class UserRegistrationRequest implements IUserRegistrationRequest { + /** Represents a RecordShareUpdateRequest. */ + class RecordShareUpdateRequest implements IRecordShareUpdateRequest { /** - * Constructs a new UserRegistrationRequest. + * Constructs a new RecordShareUpdateRequest. * @param [properties] Properties to set */ - constructor(properties?: Push.IUserRegistrationRequest); + constructor(properties?: Records.IRecordShareUpdateRequest); - /** UserRegistrationRequest messageSessionUid. */ - public messageSessionUid: Uint8Array; + /** RecordShareUpdateRequest addSharedRecord. */ + public addSharedRecord: Records.ISharedRecord[]; - /** UserRegistrationRequest userId. */ - public userId: number; + /** RecordShareUpdateRequest updateSharedRecord. */ + public updateSharedRecord: Records.ISharedRecord[]; - /** UserRegistrationRequest enterpriseId. */ - public enterpriseId: number; + /** RecordShareUpdateRequest removeSharedRecord. */ + public removeSharedRecord: Records.ISharedRecord[]; + + /** RecordShareUpdateRequest pt. */ + public pt: string; /** - * Creates a new UserRegistrationRequest instance using the specified properties. + * Creates a new RecordShareUpdateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UserRegistrationRequest instance + * @returns RecordShareUpdateRequest instance */ - public static create(properties?: Push.IUserRegistrationRequest): Push.UserRegistrationRequest; + public static create(properties?: Records.IRecordShareUpdateRequest): Records.RecordShareUpdateRequest; /** - * Encodes the specified UserRegistrationRequest message. Does not implicitly {@link Push.UserRegistrationRequest.verify|verify} messages. - * @param message UserRegistrationRequest message or plain object to encode + * Encodes the specified RecordShareUpdateRequest message. 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 encode(message: Push.IUserRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordShareUpdateRequest, 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 + * 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: Push.IUserRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordShareUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserRegistrationRequest message from the specified reader or buffer. + * Decodes a RecordShareUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserRegistrationRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.UserRegistrationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordShareUpdateRequest; /** - * Decodes a UserRegistrationRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordShareUpdateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UserRegistrationRequest + * @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)): Push.UserRegistrationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordShareUpdateRequest; /** - * Verifies a UserRegistrationRequest message. + * 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 UserRegistrationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordShareUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserRegistrationRequest + * @returns RecordShareUpdateRequest */ - public static fromObject(object: { [k: string]: any }): Push.UserRegistrationRequest; + public static fromObject(object: { [k: string]: any }): Records.RecordShareUpdateRequest; /** - * Creates a plain object from a UserRegistrationRequest message. Also converts values to other types if specified. - * @param message UserRegistrationRequest + * Creates a plain object from a RecordShareUpdateRequest message. Also converts values to other types if specified. + * @param message RecordShareUpdateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Push.UserRegistrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordShareUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserRegistrationRequest to JSON. + * Converts this RecordShareUpdateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UserRegistrationRequest + * Gets the default type url for RecordShareUpdateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** MessageType enum. */ - enum MessageType { - UNKNOWN = 0, - DNA = 1, - SSO = 2, - CHAT = 3, - USER = 4, - ENTERPRISE = 5, - KEEPER = 6, - SESSION = 7, - DEVICE = 8, - TOTP = 9 - } + /** Properties of a SharedRecord. */ + interface ISharedRecord { - /** Properties of a KAToPushServerRequest. */ - interface IKAToPushServerRequest { + /** SharedRecord toUsername */ + toUsername?: (string|null); - /** KAToPushServerRequest messageType */ - messageType?: (Push.MessageType|null); + /** SharedRecord recordUid */ + recordUid?: (Uint8Array|null); - /** KAToPushServerRequest message */ - message?: (string|null); + /** SharedRecord recordKey */ + recordKey?: (Uint8Array|null); - /** KAToPushServerRequest messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + /** SharedRecord sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); - /** KAToPushServerRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array[]|null); + /** SharedRecord teamUid */ + teamUid?: (Uint8Array|null); - /** KAToPushServerRequest userId */ - userId?: (number[]|null); + /** SharedRecord editable */ + editable?: (boolean|null); - /** KAToPushServerRequest enterpriseId */ - enterpriseId?: (number[]|null); + /** SharedRecord shareable */ + shareable?: (boolean|null); + + /** SharedRecord transfer */ + transfer?: (boolean|null); + + /** SharedRecord useEccKey */ + useEccKey?: (boolean|null); + + /** SharedRecord removeVaultData */ + removeVaultData?: (boolean|null); + + /** SharedRecord expiration */ + expiration?: (number|Long|null); + + /** SharedRecord timerNotificationType */ + timerNotificationType?: (Records.TimerNotificationType|null); + + /** SharedRecord rotateOnExpiration */ + rotateOnExpiration?: (boolean|null); } - /** Represents a KAToPushServerRequest. */ - class KAToPushServerRequest implements IKAToPushServerRequest { + /** Represents a SharedRecord. */ + class SharedRecord implements ISharedRecord { /** - * Constructs a new KAToPushServerRequest. + * Constructs a new SharedRecord. * @param [properties] Properties to set */ - constructor(properties?: Push.IKAToPushServerRequest); + constructor(properties?: Records.ISharedRecord); - /** KAToPushServerRequest messageType. */ - public messageType: Push.MessageType; + /** SharedRecord toUsername. */ + public toUsername: string; - /** KAToPushServerRequest message. */ - public message: string; + /** SharedRecord recordUid. */ + public recordUid: Uint8Array; - /** KAToPushServerRequest messageSessionUid. */ - public messageSessionUid: Uint8Array; + /** SharedRecord recordKey. */ + public recordKey: Uint8Array; - /** KAToPushServerRequest encryptedDeviceToken. */ - public encryptedDeviceToken: Uint8Array[]; + /** SharedRecord sharedFolderUid. */ + public sharedFolderUid: Uint8Array; - /** KAToPushServerRequest userId. */ - public userId: number[]; + /** SharedRecord teamUid. */ + public teamUid: Uint8Array; - /** KAToPushServerRequest enterpriseId. */ - public enterpriseId: number[]; + /** SharedRecord editable. */ + public editable: boolean; + + /** SharedRecord shareable. */ + public shareable: boolean; + + /** SharedRecord transfer. */ + public transfer: boolean; + + /** SharedRecord useEccKey. */ + public useEccKey: boolean; + + /** SharedRecord removeVaultData. */ + public removeVaultData: boolean; + + /** SharedRecord expiration. */ + public expiration: (number|Long); + + /** SharedRecord timerNotificationType. */ + public timerNotificationType: Records.TimerNotificationType; + + /** SharedRecord rotateOnExpiration. */ + public rotateOnExpiration: boolean; /** - * Creates a new KAToPushServerRequest instance using the specified properties. + * Creates a new SharedRecord instance using the specified properties. * @param [properties] Properties to set - * @returns KAToPushServerRequest instance + * @returns SharedRecord instance */ - public static create(properties?: Push.IKAToPushServerRequest): Push.KAToPushServerRequest; + public static create(properties?: Records.ISharedRecord): Records.SharedRecord; /** - * Encodes the specified KAToPushServerRequest message. Does not implicitly {@link Push.KAToPushServerRequest.verify|verify} messages. - * @param message KAToPushServerRequest message or plain object to encode + * Encodes the specified SharedRecord message. 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 encode(message: Push.IKAToPushServerRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.ISharedRecord, 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 + * 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: Push.IKAToPushServerRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.ISharedRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a KAToPushServerRequest message from the specified reader or buffer. + * Decodes a SharedRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns KAToPushServerRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.KAToPushServerRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.SharedRecord; /** - * Decodes a KAToPushServerRequest message from the specified reader or buffer, length delimited. + * Decodes a SharedRecord message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns KAToPushServerRequest + * @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)): Push.KAToPushServerRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.SharedRecord; /** - * Verifies a KAToPushServerRequest message. + * 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 KAToPushServerRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SharedRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns KAToPushServerRequest + * @returns SharedRecord */ - public static fromObject(object: { [k: string]: any }): Push.KAToPushServerRequest; + public static fromObject(object: { [k: string]: any }): Records.SharedRecord; /** - * Creates a plain object from a KAToPushServerRequest message. Also converts values to other types if specified. - * @param message KAToPushServerRequest + * Creates a plain object from a SharedRecord message. Also converts values to other types if specified. + * @param message SharedRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Push.KAToPushServerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.SharedRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this KAToPushServerRequest to JSON. + * Converts this SharedRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for KAToPushServerRequest + * Gets the default type url for SharedRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WssConnectionRequest. */ - interface IWssConnectionRequest { + /** Properties of a RecordShareUpdateResponse. */ + interface IRecordShareUpdateResponse { - /** WssConnectionRequest messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + /** RecordShareUpdateResponse addSharedRecordStatus */ + addSharedRecordStatus?: (Records.ISharedRecordStatus[]|null); - /** WssConnectionRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + /** RecordShareUpdateResponse updateSharedRecordStatus */ + updateSharedRecordStatus?: (Records.ISharedRecordStatus[]|null); - /** WssConnectionRequest deviceTimeStamp */ - deviceTimeStamp?: (number|Long|null); + /** RecordShareUpdateResponse removeSharedRecordStatus */ + removeSharedRecordStatus?: (Records.ISharedRecordStatus[]|null); } - /** Represents a WssConnectionRequest. */ - class WssConnectionRequest implements IWssConnectionRequest { + /** Represents a RecordShareUpdateResponse. */ + class RecordShareUpdateResponse implements IRecordShareUpdateResponse { /** - * Constructs a new WssConnectionRequest. + * Constructs a new RecordShareUpdateResponse. * @param [properties] Properties to set */ - constructor(properties?: Push.IWssConnectionRequest); + constructor(properties?: Records.IRecordShareUpdateResponse); - /** WssConnectionRequest messageSessionUid. */ - public messageSessionUid: Uint8Array; + /** RecordShareUpdateResponse addSharedRecordStatus. */ + public addSharedRecordStatus: Records.ISharedRecordStatus[]; - /** WssConnectionRequest encryptedDeviceToken. */ - public encryptedDeviceToken: Uint8Array; + /** RecordShareUpdateResponse updateSharedRecordStatus. */ + public updateSharedRecordStatus: Records.ISharedRecordStatus[]; - /** WssConnectionRequest deviceTimeStamp. */ - public deviceTimeStamp: (number|Long); + /** RecordShareUpdateResponse removeSharedRecordStatus. */ + public removeSharedRecordStatus: Records.ISharedRecordStatus[]; /** - * Creates a new WssConnectionRequest instance using the specified properties. + * Creates a new RecordShareUpdateResponse instance using the specified properties. * @param [properties] Properties to set - * @returns WssConnectionRequest instance + * @returns RecordShareUpdateResponse instance */ - public static create(properties?: Push.IWssConnectionRequest): Push.WssConnectionRequest; + public static create(properties?: Records.IRecordShareUpdateResponse): Records.RecordShareUpdateResponse; /** - * Encodes the specified WssConnectionRequest message. Does not implicitly {@link Push.WssConnectionRequest.verify|verify} messages. - * @param message WssConnectionRequest message or plain object to encode + * Encodes the specified RecordShareUpdateResponse message. 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 encode(message: Push.IWssConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordShareUpdateResponse, 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 + * 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: Push.IWssConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordShareUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WssConnectionRequest message from the specified reader or buffer. + * Decodes a RecordShareUpdateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WssConnectionRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.WssConnectionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordShareUpdateResponse; /** - * Decodes a WssConnectionRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordShareUpdateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WssConnectionRequest + * @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)): Push.WssConnectionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordShareUpdateResponse; /** - * Verifies a WssConnectionRequest message. + * 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 WssConnectionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordShareUpdateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WssConnectionRequest + * @returns RecordShareUpdateResponse */ - public static fromObject(object: { [k: string]: any }): Push.WssConnectionRequest; + public static fromObject(object: { [k: string]: any }): Records.RecordShareUpdateResponse; /** - * Creates a plain object from a WssConnectionRequest message. Also converts values to other types if specified. - * @param message WssConnectionRequest + * Creates a plain object from a RecordShareUpdateResponse message. Also converts values to other types if specified. + * @param message RecordShareUpdateResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Push.WssConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordShareUpdateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WssConnectionRequest to JSON. + * Converts this RecordShareUpdateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WssConnectionRequest + * Gets the default type url for RecordShareUpdateResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WssClientResponse. */ - interface IWssClientResponse { + /** Properties of a SharedRecordStatus. */ + interface ISharedRecordStatus { - /** WssClientResponse messageType */ - messageType?: (Push.MessageType|null); + /** SharedRecordStatus recordUid */ + recordUid?: (Uint8Array|null); - /** WssClientResponse message */ + /** SharedRecordStatus status */ + status?: (string|null); + + /** SharedRecordStatus message */ message?: (string|null); + + /** SharedRecordStatus username */ + username?: (string|null); } - /** Represents a WssClientResponse. */ - class WssClientResponse implements IWssClientResponse { + /** Represents a SharedRecordStatus. */ + class SharedRecordStatus implements ISharedRecordStatus { /** - * Constructs a new WssClientResponse. + * Constructs a new SharedRecordStatus. * @param [properties] Properties to set */ - constructor(properties?: Push.IWssClientResponse); + constructor(properties?: Records.ISharedRecordStatus); - /** WssClientResponse messageType. */ - public messageType: Push.MessageType; + /** SharedRecordStatus recordUid. */ + public recordUid: Uint8Array; - /** WssClientResponse message. */ + /** SharedRecordStatus status. */ + public status: string; + + /** SharedRecordStatus message. */ public message: string; + /** SharedRecordStatus username. */ + public username: string; + /** - * Creates a new WssClientResponse instance using the specified properties. + * Creates a new SharedRecordStatus instance using the specified properties. * @param [properties] Properties to set - * @returns WssClientResponse instance + * @returns SharedRecordStatus instance */ - public static create(properties?: Push.IWssClientResponse): Push.WssClientResponse; + public static create(properties?: Records.ISharedRecordStatus): Records.SharedRecordStatus; /** - * Encodes the specified WssClientResponse message. Does not implicitly {@link Push.WssClientResponse.verify|verify} messages. - * @param message WssClientResponse message or plain object to encode + * Encodes the specified SharedRecordStatus message. 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 encode(message: Push.IWssClientResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.ISharedRecordStatus, 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 + * 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: Push.IWssClientResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.ISharedRecordStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WssClientResponse message from the specified reader or buffer. + * Decodes a SharedRecordStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WssClientResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.WssClientResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.SharedRecordStatus; /** - * Decodes a WssClientResponse message from the specified reader or buffer, length delimited. + * Decodes a SharedRecordStatus message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WssClientResponse + * @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)): Push.WssClientResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.SharedRecordStatus; /** - * Verifies a WssClientResponse message. + * 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 WssClientResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SharedRecordStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WssClientResponse + * @returns SharedRecordStatus */ - public static fromObject(object: { [k: string]: any }): Push.WssClientResponse; + public static fromObject(object: { [k: string]: any }): Records.SharedRecordStatus; /** - * Creates a plain object from a WssClientResponse message. Also converts values to other types if specified. - * @param message WssClientResponse + * Creates a plain object from a SharedRecordStatus message. Also converts values to other types if specified. + * @param message SharedRecordStatus * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Push.WssClientResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.SharedRecordStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WssClientResponse to JSON. + * Converts this SharedRecordStatus to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WssClientResponse + * Gets the default type url for SharedRecordStatus * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PushServerDeviceRegistrationRequest. */ - interface IPushServerDeviceRegistrationRequest { - - /** PushServerDeviceRegistrationRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); - - /** PushServerDeviceRegistrationRequest pushToken */ - pushToken?: (string|null); + /** Properties of a GetRecordPermissionsRequest. */ + interface IGetRecordPermissionsRequest { - /** PushServerDeviceRegistrationRequest mobilePushPlatform */ - mobilePushPlatform?: (string|null); + /** GetRecordPermissionsRequest recordUids */ + recordUids?: (Uint8Array[]|null); - /** PushServerDeviceRegistrationRequest transmissionKey */ - transmissionKey?: (Uint8Array|null); + /** GetRecordPermissionsRequest isShareAdmin */ + isShareAdmin?: (boolean|null); } - /** Represents a PushServerDeviceRegistrationRequest. */ - class PushServerDeviceRegistrationRequest implements IPushServerDeviceRegistrationRequest { + /** Represents a GetRecordPermissionsRequest. */ + class GetRecordPermissionsRequest implements IGetRecordPermissionsRequest { /** - * Constructs a new PushServerDeviceRegistrationRequest. + * Constructs a new GetRecordPermissionsRequest. * @param [properties] Properties to set */ - constructor(properties?: Push.IPushServerDeviceRegistrationRequest); - - /** PushServerDeviceRegistrationRequest encryptedDeviceToken. */ - public encryptedDeviceToken: Uint8Array; - - /** PushServerDeviceRegistrationRequest pushToken. */ - public pushToken: string; + constructor(properties?: Records.IGetRecordPermissionsRequest); - /** PushServerDeviceRegistrationRequest mobilePushPlatform. */ - public mobilePushPlatform: string; + /** GetRecordPermissionsRequest recordUids. */ + public recordUids: Uint8Array[]; - /** PushServerDeviceRegistrationRequest transmissionKey. */ - public transmissionKey: Uint8Array; + /** GetRecordPermissionsRequest isShareAdmin. */ + public isShareAdmin: boolean; /** - * Creates a new PushServerDeviceRegistrationRequest instance using the specified properties. + * Creates a new GetRecordPermissionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PushServerDeviceRegistrationRequest instance + * @returns GetRecordPermissionsRequest instance */ - public static create(properties?: Push.IPushServerDeviceRegistrationRequest): Push.PushServerDeviceRegistrationRequest; + public static create(properties?: Records.IGetRecordPermissionsRequest): Records.GetRecordPermissionsRequest; /** - * Encodes the specified PushServerDeviceRegistrationRequest message. Does not implicitly {@link Push.PushServerDeviceRegistrationRequest.verify|verify} messages. - * @param message PushServerDeviceRegistrationRequest message or plain object to encode + * Encodes the specified GetRecordPermissionsRequest message. 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 encode(message: Push.IPushServerDeviceRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IGetRecordPermissionsRequest, 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 + * 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: Push.IPushServerDeviceRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IGetRecordPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PushServerDeviceRegistrationRequest message from the specified reader or buffer. + * Decodes a GetRecordPermissionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PushServerDeviceRegistrationRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.PushServerDeviceRegistrationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetRecordPermissionsRequest; /** - * Decodes a PushServerDeviceRegistrationRequest message from the specified reader or buffer, length delimited. + * Decodes a GetRecordPermissionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PushServerDeviceRegistrationRequest + * @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)): Push.PushServerDeviceRegistrationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.GetRecordPermissionsRequest; /** - * Verifies a PushServerDeviceRegistrationRequest message. + * 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 PushServerDeviceRegistrationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetRecordPermissionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PushServerDeviceRegistrationRequest + * @returns GetRecordPermissionsRequest */ - public static fromObject(object: { [k: string]: any }): Push.PushServerDeviceRegistrationRequest; + public static fromObject(object: { [k: string]: any }): Records.GetRecordPermissionsRequest; /** - * Creates a plain object from a PushServerDeviceRegistrationRequest message. Also converts values to other types if specified. - * @param message PushServerDeviceRegistrationRequest + * Creates a plain object from a GetRecordPermissionsRequest message. Also converts values to other types if specified. + * @param message GetRecordPermissionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Push.PushServerDeviceRegistrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.GetRecordPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PushServerDeviceRegistrationRequest to JSON. + * Converts this GetRecordPermissionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PushServerDeviceRegistrationRequest + * Gets the default type url for GetRecordPermissionsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SnsMessage. */ - interface ISnsMessage { - - /** SnsMessage messageType */ - messageType?: (Push.MessageType|null); + /** Properties of a GetRecordPermissionsResponse. */ + interface IGetRecordPermissionsResponse { - /** SnsMessage message */ - message?: (Uint8Array|null); + /** GetRecordPermissionsResponse recordPermissions */ + recordPermissions?: (Records.IRecordPermission[]|null); } - /** Represents a SnsMessage. */ - class SnsMessage implements ISnsMessage { + /** Represents a GetRecordPermissionsResponse. */ + class GetRecordPermissionsResponse implements IGetRecordPermissionsResponse { /** - * Constructs a new SnsMessage. + * Constructs a new GetRecordPermissionsResponse. * @param [properties] Properties to set */ - constructor(properties?: Push.ISnsMessage); - - /** SnsMessage messageType. */ - public messageType: Push.MessageType; + constructor(properties?: Records.IGetRecordPermissionsResponse); - /** SnsMessage message. */ - public message: Uint8Array; + /** GetRecordPermissionsResponse recordPermissions. */ + public recordPermissions: Records.IRecordPermission[]; /** - * Creates a new SnsMessage instance using the specified properties. + * Creates a new GetRecordPermissionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SnsMessage instance + * @returns GetRecordPermissionsResponse instance */ - public static create(properties?: Push.ISnsMessage): Push.SnsMessage; + public static create(properties?: Records.IGetRecordPermissionsResponse): Records.GetRecordPermissionsResponse; /** - * Encodes the specified SnsMessage message. Does not implicitly {@link Push.SnsMessage.verify|verify} messages. - * @param message SnsMessage message or plain object to encode + * Encodes the specified GetRecordPermissionsResponse message. 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 encode(message: Push.ISnsMessage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IGetRecordPermissionsResponse, 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 + * 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: Push.ISnsMessage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IGetRecordPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SnsMessage message from the specified reader or buffer. + * Decodes a GetRecordPermissionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SnsMessage + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.SnsMessage; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetRecordPermissionsResponse; /** - * Decodes a SnsMessage message from the specified reader or buffer, length delimited. + * Decodes a GetRecordPermissionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SnsMessage + * @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)): Push.SnsMessage; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.GetRecordPermissionsResponse; /** - * Verifies a SnsMessage message. + * 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 SnsMessage message from a plain object. Also converts values to their respective internal types. + * Creates a GetRecordPermissionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SnsMessage + * @returns GetRecordPermissionsResponse */ - public static fromObject(object: { [k: string]: any }): Push.SnsMessage; + public static fromObject(object: { [k: string]: any }): Records.GetRecordPermissionsResponse; /** - * Creates a plain object from a SnsMessage message. Also converts values to other types if specified. - * @param message SnsMessage + * Creates a plain object from a GetRecordPermissionsResponse message. Also converts values to other types if specified. + * @param message GetRecordPermissionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Push.SnsMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.GetRecordPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SnsMessage to JSON. + * Converts this GetRecordPermissionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SnsMessage + * Gets the default type url for GetRecordPermissionsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} -/** Namespace ServiceLogger. */ -export namespace ServiceLogger { + /** Properties of a RecordPermission. */ + interface IRecordPermission { - /** Properties of an IdRange. */ - interface IIdRange { + /** RecordPermission recordUid */ + recordUid?: (Uint8Array|null); - /** IdRange startingId */ - startingId?: (number|Long|null); + /** RecordPermission owner */ + owner?: (boolean|null); - /** IdRange endingId */ - endingId?: (number|Long|null); + /** RecordPermission canEdit */ + canEdit?: (boolean|null); + + /** RecordPermission canShare */ + canShare?: (boolean|null); + + /** RecordPermission canTransfer */ + canTransfer?: (boolean|null); } - /** Specifies the first and last IDs of a range of IDs so that a Request can ask for information about a range of IDs. */ - class IdRange implements IIdRange { + /** Represents a RecordPermission. */ + class RecordPermission implements IRecordPermission { /** - * Constructs a new IdRange. + * Constructs a new RecordPermission. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IIdRange); + constructor(properties?: Records.IRecordPermission); - /** IdRange startingId. */ - public startingId: (number|Long); + /** RecordPermission recordUid. */ + public recordUid: Uint8Array; - /** IdRange endingId. */ - public endingId: (number|Long); + /** RecordPermission owner. */ + public owner: boolean; + + /** RecordPermission canEdit. */ + public canEdit: boolean; + + /** RecordPermission canShare. */ + public canShare: boolean; + + /** RecordPermission canTransfer. */ + public canTransfer: boolean; /** - * Creates a new IdRange instance using the specified properties. + * Creates a new RecordPermission instance using the specified properties. * @param [properties] Properties to set - * @returns IdRange instance + * @returns RecordPermission instance */ - public static create(properties?: ServiceLogger.IIdRange): ServiceLogger.IdRange; + public static create(properties?: Records.IRecordPermission): Records.RecordPermission; /** - * Encodes the specified IdRange message. Does not implicitly {@link ServiceLogger.IdRange.verify|verify} messages. - * @param message IdRange message or plain object to encode + * Encodes the specified RecordPermission message. 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 encode(message: ServiceLogger.IIdRange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordPermission, 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 + * 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: ServiceLogger.IIdRange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordPermission, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IdRange message from the specified reader or buffer. + * Decodes a RecordPermission message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IdRange + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.IdRange; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordPermission; /** - * Decodes an IdRange message from the specified reader or buffer, length delimited. + * Decodes a RecordPermission message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IdRange + * @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)): ServiceLogger.IdRange; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordPermission; /** - * Verifies an IdRange message. + * 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 an IdRange message from a plain object. Also converts values to their respective internal types. + * Creates a RecordPermission message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IdRange + * @returns RecordPermission */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.IdRange; + public static fromObject(object: { [k: string]: any }): Records.RecordPermission; /** - * Creates a plain object from an IdRange message. Also converts values to other types if specified. - * @param message IdRange + * Creates a plain object from a RecordPermission message. Also converts values to other types if specified. + * @param message RecordPermission * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.IdRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordPermission, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IdRange to JSON. + * Converts this RecordPermission to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for IdRange + * Gets the default type url for RecordPermission * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceInfoSpecifier. */ - interface IServiceInfoSpecifier { + /** Properties of a GetShareObjectsRequest. */ + interface IGetShareObjectsRequest { - /** ServiceInfoSpecifier all */ - all?: (boolean|null); + /** GetShareObjectsRequest startWith */ + startWith?: (string|null); - /** ServiceInfoSpecifier serviceInfoId */ - serviceInfoId?: (number|Long|null); + /** GetShareObjectsRequest contains */ + contains?: (string|null); - /** ServiceInfoSpecifier name */ - name?: (string|null); + /** GetShareObjectsRequest filtered */ + filtered?: (boolean|null); + + /** GetShareObjectsRequest sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); } - /** Used in ServiceInfoRequest */ - class ServiceInfoSpecifier implements IServiceInfoSpecifier { + /** Represents a GetShareObjectsRequest. */ + class GetShareObjectsRequest implements IGetShareObjectsRequest { /** - * Constructs a new ServiceInfoSpecifier. + * Constructs a new GetShareObjectsRequest. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceInfoSpecifier); + constructor(properties?: Records.IGetShareObjectsRequest); - /** ServiceInfoSpecifier all. */ - public all: boolean; + /** GetShareObjectsRequest startWith. */ + public startWith: string; - /** ServiceInfoSpecifier serviceInfoId. */ - public serviceInfoId: (number|Long); + /** GetShareObjectsRequest contains. */ + public contains: string; - /** ServiceInfoSpecifier name. */ - public name: string; + /** GetShareObjectsRequest filtered. */ + public filtered: boolean; + + /** GetShareObjectsRequest sharedFolderUid. */ + public sharedFolderUid: Uint8Array; /** - * Creates a new ServiceInfoSpecifier instance using the specified properties. + * Creates a new GetShareObjectsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceInfoSpecifier instance + * @returns GetShareObjectsRequest instance */ - public static create(properties?: ServiceLogger.IServiceInfoSpecifier): ServiceLogger.ServiceInfoSpecifier; + public static create(properties?: Records.IGetShareObjectsRequest): Records.GetShareObjectsRequest; /** - * Encodes the specified ServiceInfoSpecifier message. Does not implicitly {@link ServiceLogger.ServiceInfoSpecifier.verify|verify} messages. - * @param message ServiceInfoSpecifier message or plain object to encode + * Encodes the specified GetShareObjectsRequest message. 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 encode(message: ServiceLogger.IServiceInfoSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IGetShareObjectsRequest, 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 + * 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: ServiceLogger.IServiceInfoSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IGetShareObjectsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceInfoSpecifier message from the specified reader or buffer. + * Decodes a GetShareObjectsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceInfoSpecifier + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceInfoSpecifier; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetShareObjectsRequest; /** - * Decodes a ServiceInfoSpecifier message from the specified reader or buffer, length delimited. + * Decodes a GetShareObjectsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceInfoSpecifier + * @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)): ServiceLogger.ServiceInfoSpecifier; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.GetShareObjectsRequest; /** - * Verifies a ServiceInfoSpecifier message. + * 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 ServiceInfoSpecifier message from a plain object. Also converts values to their respective internal types. + * Creates a GetShareObjectsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceInfoSpecifier + * @returns GetShareObjectsRequest */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceInfoSpecifier; + public static fromObject(object: { [k: string]: any }): Records.GetShareObjectsRequest; /** - * Creates a plain object from a ServiceInfoSpecifier message. Also converts values to other types if specified. - * @param message ServiceInfoSpecifier + * Creates a plain object from a GetShareObjectsRequest message. Also converts values to other types if specified. + * @param message GetShareObjectsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceInfoSpecifier, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.GetShareObjectsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceInfoSpecifier to JSON. + * Converts this GetShareObjectsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceInfoSpecifier + * Gets the default type url for GetShareObjectsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceInfoRequest. */ - interface IServiceInfoRequest { + /** Properties of a GetShareObjectsResponse. */ + interface IGetShareObjectsResponse { - /** ServiceInfoRequest serviceInfoSpecifier */ - serviceInfoSpecifier?: (ServiceLogger.IServiceInfoSpecifier[]|null); + /** GetShareObjectsResponse shareRelationships */ + shareRelationships?: (Records.IShareUser[]|null); + + /** GetShareObjectsResponse shareFamilyUsers */ + shareFamilyUsers?: (Records.IShareUser[]|null); + + /** GetShareObjectsResponse shareEnterpriseUsers */ + shareEnterpriseUsers?: (Records.IShareUser[]|null); + + /** GetShareObjectsResponse shareTeams */ + shareTeams?: (Records.IShareTeam[]|null); + + /** GetShareObjectsResponse shareMCTeams */ + shareMCTeams?: (Records.IShareTeam[]|null); + + /** GetShareObjectsResponse shareMCEnterpriseUsers */ + shareMCEnterpriseUsers?: (Records.IShareUser[]|null); + + /** GetShareObjectsResponse shareEnterpriseNames */ + shareEnterpriseNames?: (Records.IShareEnterprise[]|null); } - /** Request information about one or more services by ID or name, or retrieve all. */ - class ServiceInfoRequest implements IServiceInfoRequest { + /** Represents a GetShareObjectsResponse. */ + class GetShareObjectsResponse implements IGetShareObjectsResponse { /** - * Constructs a new ServiceInfoRequest. + * Constructs a new GetShareObjectsResponse. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceInfoRequest); + constructor(properties?: Records.IGetShareObjectsResponse); - /** ServiceInfoRequest serviceInfoSpecifier. */ - public serviceInfoSpecifier: ServiceLogger.IServiceInfoSpecifier[]; + /** GetShareObjectsResponse shareRelationships. */ + public shareRelationships: Records.IShareUser[]; + + /** GetShareObjectsResponse shareFamilyUsers. */ + public shareFamilyUsers: Records.IShareUser[]; + + /** GetShareObjectsResponse shareEnterpriseUsers. */ + public shareEnterpriseUsers: Records.IShareUser[]; + + /** GetShareObjectsResponse shareTeams. */ + public shareTeams: Records.IShareTeam[]; + + /** GetShareObjectsResponse shareMCTeams. */ + public shareMCTeams: Records.IShareTeam[]; + + /** GetShareObjectsResponse shareMCEnterpriseUsers. */ + public shareMCEnterpriseUsers: Records.IShareUser[]; + + /** GetShareObjectsResponse shareEnterpriseNames. */ + public shareEnterpriseNames: Records.IShareEnterprise[]; /** - * Creates a new ServiceInfoRequest instance using the specified properties. + * Creates a new GetShareObjectsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceInfoRequest instance + * @returns GetShareObjectsResponse instance */ - public static create(properties?: ServiceLogger.IServiceInfoRequest): ServiceLogger.ServiceInfoRequest; + public static create(properties?: Records.IGetShareObjectsResponse): Records.GetShareObjectsResponse; /** - * Encodes the specified ServiceInfoRequest message. Does not implicitly {@link ServiceLogger.ServiceInfoRequest.verify|verify} messages. - * @param message ServiceInfoRequest message or plain object to encode + * Encodes the specified GetShareObjectsResponse message. 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 encode(message: ServiceLogger.IServiceInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IGetShareObjectsResponse, 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 + * 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: ServiceLogger.IServiceInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IGetShareObjectsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceInfoRequest message from the specified reader or buffer. + * Decodes a GetShareObjectsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceInfoRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceInfoRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetShareObjectsResponse; /** - * Decodes a ServiceInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a GetShareObjectsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceInfoRequest + * @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)): ServiceLogger.ServiceInfoRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.GetShareObjectsResponse; /** - * Verifies a ServiceInfoRequest message. + * 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 ServiceInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetShareObjectsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceInfoRequest + * @returns GetShareObjectsResponse */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceInfoRequest; + public static fromObject(object: { [k: string]: any }): Records.GetShareObjectsResponse; /** - * Creates a plain object from a ServiceInfoRequest message. Also converts values to other types if specified. - * @param message ServiceInfoRequest + * Creates a plain object from a GetShareObjectsResponse message. Also converts values to other types if specified. + * @param message GetShareObjectsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.GetShareObjectsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceInfoRequest to JSON. + * Converts this GetShareObjectsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceInfoRequest + * Gets the default type url for GetShareObjectsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceInfoRecord. */ - interface IServiceInfoRecord { + /** Properties of a ShareUser. */ + interface IShareUser { - /** ServiceInfoRecord serviceInfoId */ - serviceInfoId?: (number|Long|null); + /** ShareUser username */ + username?: (string|null); - /** ServiceInfoRecord name */ - name?: (string|null); + /** ShareUser fullname */ + fullname?: (string|null); - /** ServiceInfoRecord deleteAfter */ - deleteAfter?: (number|null); + /** ShareUser enterpriseId */ + enterpriseId?: (number|null); - /** ServiceInfoRecord deleteAfterTimeUnits */ - deleteAfterTimeUnits?: (string|null); + /** ShareUser status */ + status?: (Records.ShareStatus|null); - /** ServiceInfoRecord isShortTermLogging */ - isShortTermLogging?: (boolean|null); + /** ShareUser isShareAdmin */ + isShareAdmin?: (boolean|null); + + /** ShareUser isAdminOfSharedFolderOwner */ + isAdminOfSharedFolderOwner?: (boolean|null); + + /** ShareUser userAccountUid */ + userAccountUid?: (Uint8Array|null); } - /** Used in ServiceInfoResponse */ - class ServiceInfoRecord implements IServiceInfoRecord { + /** Represents a ShareUser. */ + class ShareUser implements IShareUser { /** - * Constructs a new ServiceInfoRecord. + * Constructs a new ShareUser. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceInfoRecord); + constructor(properties?: Records.IShareUser); - /** ServiceInfoRecord serviceInfoId. */ - public serviceInfoId: (number|Long); + /** ShareUser username. */ + public username: string; - /** ServiceInfoRecord name. */ - public name: string; + /** ShareUser fullname. */ + public fullname: string; - /** ServiceInfoRecord deleteAfter. */ - public deleteAfter: number; + /** ShareUser enterpriseId. */ + public enterpriseId: number; - /** ServiceInfoRecord deleteAfterTimeUnits. */ - public deleteAfterTimeUnits: string; + /** ShareUser status. */ + public status: Records.ShareStatus; - /** ServiceInfoRecord isShortTermLogging. */ - public isShortTermLogging: boolean; + /** ShareUser isShareAdmin. */ + public isShareAdmin: boolean; + + /** ShareUser isAdminOfSharedFolderOwner. */ + public isAdminOfSharedFolderOwner: boolean; + + /** ShareUser userAccountUid. */ + public userAccountUid: Uint8Array; /** - * Creates a new ServiceInfoRecord instance using the specified properties. + * Creates a new ShareUser instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceInfoRecord instance + * @returns ShareUser instance */ - public static create(properties?: ServiceLogger.IServiceInfoRecord): ServiceLogger.ServiceInfoRecord; + public static create(properties?: Records.IShareUser): Records.ShareUser; /** - * Encodes the specified ServiceInfoRecord message. Does not implicitly {@link ServiceLogger.ServiceInfoRecord.verify|verify} messages. - * @param message ServiceInfoRecord message or plain object to encode + * Encodes the specified ShareUser message. 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 encode(message: ServiceLogger.IServiceInfoRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IShareUser, 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 + * 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: ServiceLogger.IServiceInfoRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IShareUser, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceInfoRecord message from the specified reader or buffer. + * Decodes a ShareUser message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceInfoRecord + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceInfoRecord; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.ShareUser; /** - * Decodes a ServiceInfoRecord message from the specified reader or buffer, length delimited. + * Decodes a ShareUser message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceInfoRecord + * @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)): ServiceLogger.ServiceInfoRecord; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.ShareUser; /** - * Verifies a ServiceInfoRecord message. + * 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 ServiceInfoRecord message from a plain object. Also converts values to their respective internal types. + * Creates a ShareUser message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceInfoRecord + * @returns ShareUser */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceInfoRecord; + public static fromObject(object: { [k: string]: any }): Records.ShareUser; /** - * Creates a plain object from a ServiceInfoRecord message. Also converts values to other types if specified. - * @param message ServiceInfoRecord + * Creates a plain object from a ShareUser message. Also converts values to other types if specified. + * @param message ShareUser * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceInfoRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.ShareUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceInfoRecord to JSON. + * Converts this ShareUser to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceInfoRecord + * Gets the default type url for ShareUser * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceInfoResponse. */ - interface IServiceInfoResponse { + /** Properties of a ShareTeam. */ + interface IShareTeam { - /** ServiceInfoResponse serviceInfoRecord */ - serviceInfoRecord?: (ServiceLogger.IServiceInfoRecord[]|null); + /** ShareTeam teamname */ + teamname?: (string|null); + + /** ShareTeam enterpriseId */ + enterpriseId?: (number|null); + + /** ShareTeam teamUid */ + teamUid?: (Uint8Array|null); } - /** Returns information about Services */ - class ServiceInfoResponse implements IServiceInfoResponse { + /** Represents a ShareTeam. */ + class ShareTeam implements IShareTeam { /** - * Constructs a new ServiceInfoResponse. + * Constructs a new ShareTeam. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceInfoResponse); + constructor(properties?: Records.IShareTeam); - /** ServiceInfoResponse serviceInfoRecord. */ - public serviceInfoRecord: ServiceLogger.IServiceInfoRecord[]; + /** ShareTeam teamname. */ + public teamname: string; + + /** ShareTeam enterpriseId. */ + public enterpriseId: number; + + /** ShareTeam teamUid. */ + public teamUid: Uint8Array; /** - * Creates a new ServiceInfoResponse instance using the specified properties. + * Creates a new ShareTeam instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceInfoResponse instance + * @returns ShareTeam instance */ - public static create(properties?: ServiceLogger.IServiceInfoResponse): ServiceLogger.ServiceInfoResponse; + public static create(properties?: Records.IShareTeam): Records.ShareTeam; /** - * Encodes the specified ServiceInfoResponse message. Does not implicitly {@link ServiceLogger.ServiceInfoResponse.verify|verify} messages. - * @param message ServiceInfoResponse message or plain object to encode + * Encodes the specified ShareTeam message. 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 encode(message: ServiceLogger.IServiceInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IShareTeam, 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 + * 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: ServiceLogger.IServiceInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IShareTeam, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceInfoResponse message from the specified reader or buffer. + * Decodes a ShareTeam message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceInfoResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceInfoResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.ShareTeam; /** - * Decodes a ServiceInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a ShareTeam message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceInfoResponse + * @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)): ServiceLogger.ServiceInfoResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.ShareTeam; /** - * Verifies a ServiceInfoResponse message. + * 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 ServiceInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ShareTeam message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceInfoResponse + * @returns ShareTeam */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceInfoResponse; + public static fromObject(object: { [k: string]: any }): Records.ShareTeam; /** - * Creates a plain object from a ServiceInfoResponse message. Also converts values to other types if specified. - * @param message ServiceInfoResponse + * Creates a plain object from a ShareTeam message. Also converts values to other types if specified. + * @param message ShareTeam * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.ShareTeam, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceInfoResponse to JSON. + * Converts this ShareTeam to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceInfoResponse + * Gets the default type url for ShareTeam * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceInfoUpdateRequest. */ - interface IServiceInfoUpdateRequest { + /** Properties of a ShareEnterprise. */ + interface IShareEnterprise { - /** ServiceInfoUpdateRequest serviceInfoRecord */ - serviceInfoRecord?: (ServiceLogger.IServiceInfoRecord[]|null); + /** ShareEnterprise enterprisename */ + enterprisename?: (string|null); + + /** ShareEnterprise enterpriseId */ + enterpriseId?: (number|null); } - /** Update one or more ServiceInfo records by their IDs */ - class ServiceInfoUpdateRequest implements IServiceInfoUpdateRequest { + /** Represents a ShareEnterprise. */ + class ShareEnterprise implements IShareEnterprise { /** - * Constructs a new ServiceInfoUpdateRequest. + * Constructs a new ShareEnterprise. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceInfoUpdateRequest); + constructor(properties?: Records.IShareEnterprise); - /** ServiceInfoUpdateRequest serviceInfoRecord. */ - public serviceInfoRecord: ServiceLogger.IServiceInfoRecord[]; + /** ShareEnterprise enterprisename. */ + public enterprisename: string; + + /** ShareEnterprise enterpriseId. */ + public enterpriseId: number; /** - * Creates a new ServiceInfoUpdateRequest instance using the specified properties. + * Creates a new ShareEnterprise instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceInfoUpdateRequest instance + * @returns ShareEnterprise instance */ - public static create(properties?: ServiceLogger.IServiceInfoUpdateRequest): ServiceLogger.ServiceInfoUpdateRequest; + public static create(properties?: Records.IShareEnterprise): Records.ShareEnterprise; /** - * Encodes the specified ServiceInfoUpdateRequest message. Does not implicitly {@link ServiceLogger.ServiceInfoUpdateRequest.verify|verify} messages. - * @param message ServiceInfoUpdateRequest message or plain object to encode + * Encodes the specified ShareEnterprise message. 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 encode(message: ServiceLogger.IServiceInfoUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IShareEnterprise, 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 + * 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: ServiceLogger.IServiceInfoUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IShareEnterprise, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceInfoUpdateRequest message from the specified reader or buffer. + * Decodes a ShareEnterprise message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceInfoUpdateRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceInfoUpdateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.ShareEnterprise; /** - * Decodes a ServiceInfoUpdateRequest message from the specified reader or buffer, length delimited. + * Decodes a ShareEnterprise message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceInfoUpdateRequest + * @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)): ServiceLogger.ServiceInfoUpdateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.ShareEnterprise; /** - * Verifies a ServiceInfoUpdateRequest message. + * 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 ServiceInfoUpdateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ShareEnterprise message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceInfoUpdateRequest + * @returns ShareEnterprise */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceInfoUpdateRequest; + public static fromObject(object: { [k: string]: any }): Records.ShareEnterprise; /** - * Creates a plain object from a ServiceInfoUpdateRequest message. Also converts values to other types if specified. - * @param message ServiceInfoUpdateRequest + * Creates a plain object from a ShareEnterprise message. Also converts values to other types if specified. + * @param message ShareEnterprise * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceInfoUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.ShareEnterprise, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceInfoUpdateRequest to JSON. + * Converts this ShareEnterprise to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceInfoUpdateRequest + * Gets the default type url for ShareEnterprise * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceRuleSpecifier. */ - interface IServiceRuleSpecifier { - - /** ServiceRuleSpecifier all */ - all?: (boolean|null); - - /** ServiceRuleSpecifier serviceRuleId */ - serviceRuleId?: (number|Long|null); + /** ShareStatus enum. */ + enum ShareStatus { + ACTIVE = 0, + BLOCK = 1, + INVITED = 2 + } - /** ServiceRuleSpecifier serviceInfoId */ - serviceInfoId?: (number|Long|null); + /** Properties of a RecordsOnwershipTransferRequest. */ + interface IRecordsOnwershipTransferRequest { - /** ServiceRuleSpecifier resourceIdRange */ - resourceIdRange?: (ServiceLogger.IIdRange[]|null); + /** RecordsOnwershipTransferRequest transferRecords */ + transferRecords?: (Records.ITransferRecord[]|null); } - /** Represents a ServiceRuleSpecifier. */ - class ServiceRuleSpecifier implements IServiceRuleSpecifier { + /** Represents a RecordsOnwershipTransferRequest. */ + class RecordsOnwershipTransferRequest implements IRecordsOnwershipTransferRequest { /** - * Constructs a new ServiceRuleSpecifier. + * Constructs a new RecordsOnwershipTransferRequest. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceRuleSpecifier); - - /** ServiceRuleSpecifier all. */ - public all: boolean; - - /** ServiceRuleSpecifier serviceRuleId. */ - public serviceRuleId: (number|Long); - - /** ServiceRuleSpecifier serviceInfoId. */ - public serviceInfoId: (number|Long); + constructor(properties?: Records.IRecordsOnwershipTransferRequest); - /** ServiceRuleSpecifier resourceIdRange. */ - public resourceIdRange: ServiceLogger.IIdRange[]; + /** RecordsOnwershipTransferRequest transferRecords. */ + public transferRecords: Records.ITransferRecord[]; /** - * Creates a new ServiceRuleSpecifier instance using the specified properties. + * Creates a new RecordsOnwershipTransferRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceRuleSpecifier instance + * @returns RecordsOnwershipTransferRequest instance */ - public static create(properties?: ServiceLogger.IServiceRuleSpecifier): ServiceLogger.ServiceRuleSpecifier; + public static create(properties?: Records.IRecordsOnwershipTransferRequest): Records.RecordsOnwershipTransferRequest; /** - * Encodes the specified ServiceRuleSpecifier message. Does not implicitly {@link ServiceLogger.ServiceRuleSpecifier.verify|verify} messages. - * @param message ServiceRuleSpecifier message or plain object to encode + * Encodes the specified RecordsOnwershipTransferRequest message. 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 encode(message: ServiceLogger.IServiceRuleSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordsOnwershipTransferRequest, 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 + * 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: ServiceLogger.IServiceRuleSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordsOnwershipTransferRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceRuleSpecifier message from the specified reader or buffer. + * Decodes a RecordsOnwershipTransferRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceRuleSpecifier + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceRuleSpecifier; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsOnwershipTransferRequest; /** - * Decodes a ServiceRuleSpecifier message from the specified reader or buffer, length delimited. + * Decodes a RecordsOnwershipTransferRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceRuleSpecifier + * @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)): ServiceLogger.ServiceRuleSpecifier; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsOnwershipTransferRequest; /** - * Verifies a ServiceRuleSpecifier message. + * 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 ServiceRuleSpecifier message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsOnwershipTransferRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceRuleSpecifier + * @returns RecordsOnwershipTransferRequest */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceRuleSpecifier; + public static fromObject(object: { [k: string]: any }): Records.RecordsOnwershipTransferRequest; /** - * Creates a plain object from a ServiceRuleSpecifier message. Also converts values to other types if specified. - * @param message ServiceRuleSpecifier + * Creates a plain object from a RecordsOnwershipTransferRequest message. Also converts values to other types if specified. + * @param message RecordsOnwershipTransferRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceRuleSpecifier, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordsOnwershipTransferRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceRuleSpecifier to JSON. + * Converts this RecordsOnwershipTransferRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceRuleSpecifier + * Gets the default type url for RecordsOnwershipTransferRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceRuleRequest. */ - interface IServiceRuleRequest { + /** Properties of a TransferRecord. */ + interface ITransferRecord { - /** ServiceRuleRequest serviceRuleSpecifier */ - serviceRuleSpecifier?: (ServiceLogger.IServiceRuleSpecifier[]|null); + /** TransferRecord username */ + username?: (string|null); + + /** TransferRecord recordUid */ + recordUid?: (Uint8Array|null); + + /** TransferRecord recordKey */ + recordKey?: (Uint8Array|null); + + /** TransferRecord useEccKey */ + useEccKey?: (boolean|null); } - /** Represents a ServiceRuleRequest. */ - class ServiceRuleRequest implements IServiceRuleRequest { + /** Represents a TransferRecord. */ + class TransferRecord implements ITransferRecord { /** - * Constructs a new ServiceRuleRequest. + * Constructs a new TransferRecord. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceRuleRequest); + constructor(properties?: Records.ITransferRecord); - /** ServiceRuleRequest serviceRuleSpecifier. */ - public serviceRuleSpecifier: ServiceLogger.IServiceRuleSpecifier[]; + /** TransferRecord username. */ + public username: string; + + /** TransferRecord recordUid. */ + public recordUid: Uint8Array; + + /** TransferRecord recordKey. */ + public recordKey: Uint8Array; + + /** TransferRecord useEccKey. */ + public useEccKey: boolean; /** - * Creates a new ServiceRuleRequest instance using the specified properties. + * Creates a new TransferRecord instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceRuleRequest instance + * @returns TransferRecord instance */ - public static create(properties?: ServiceLogger.IServiceRuleRequest): ServiceLogger.ServiceRuleRequest; + public static create(properties?: Records.ITransferRecord): Records.TransferRecord; /** - * Encodes the specified ServiceRuleRequest message. Does not implicitly {@link ServiceLogger.ServiceRuleRequest.verify|verify} messages. - * @param message ServiceRuleRequest message or plain object to encode + * Encodes the specified TransferRecord message. 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 encode(message: ServiceLogger.IServiceRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.ITransferRecord, 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 + * 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: ServiceLogger.IServiceRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.ITransferRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceRuleRequest message from the specified reader or buffer. + * Decodes a TransferRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceRuleRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceRuleRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TransferRecord; /** - * Decodes a ServiceRuleRequest message from the specified reader or buffer, length delimited. + * Decodes a TransferRecord message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceRuleRequest + * @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)): ServiceLogger.ServiceRuleRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.TransferRecord; /** - * Verifies a ServiceRuleRequest message. + * 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 ServiceRuleRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TransferRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceRuleRequest + * @returns TransferRecord */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceRuleRequest; + public static fromObject(object: { [k: string]: any }): Records.TransferRecord; /** - * Creates a plain object from a ServiceRuleRequest message. Also converts values to other types if specified. - * @param message ServiceRuleRequest + * Creates a plain object from a TransferRecord message. Also converts values to other types if specified. + * @param message TransferRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceRuleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.TransferRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceRuleRequest to JSON. + * Converts this TransferRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceRuleRequest + * Gets the default type url for TransferRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceRuleRecord. */ - interface IServiceRuleRecord { - - /** ServiceRuleRecord serviceRuleId */ - serviceRuleId?: (number|Long|null); - - /** ServiceRuleRecord serviceInfoId */ - serviceInfoId?: (number|Long|null); - - /** ServiceRuleRecord resourceId */ - resourceId?: (number|Long|null); - - /** ServiceRuleRecord isLoggingEnabled */ - isLoggingEnabled?: (boolean|null); - - /** ServiceRuleRecord logLevel */ - logLevel?: (string|null); - - /** ServiceRuleRecord ruleStart */ - ruleStart?: (string|null); - - /** ServiceRuleRecord ruleEnd */ - ruleEnd?: (string|null); + /** Properties of a RecordsOnwershipTransferResponse. */ + interface IRecordsOnwershipTransferResponse { - /** ServiceRuleRecord dateModified */ - dateModified?: (string|null); + /** RecordsOnwershipTransferResponse transferRecordStatus */ + transferRecordStatus?: (Records.ITransferRecordStatus[]|null); } - /** Represents a ServiceRuleRecord. */ - class ServiceRuleRecord implements IServiceRuleRecord { + /** Represents a RecordsOnwershipTransferResponse. */ + class RecordsOnwershipTransferResponse implements IRecordsOnwershipTransferResponse { /** - * Constructs a new ServiceRuleRecord. + * Constructs a new RecordsOnwershipTransferResponse. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceRuleRecord); - - /** ServiceRuleRecord serviceRuleId. */ - public serviceRuleId: (number|Long); - - /** ServiceRuleRecord serviceInfoId. */ - public serviceInfoId: (number|Long); - - /** ServiceRuleRecord resourceId. */ - public resourceId: (number|Long); - - /** ServiceRuleRecord isLoggingEnabled. */ - public isLoggingEnabled: boolean; - - /** ServiceRuleRecord logLevel. */ - public logLevel: string; - - /** ServiceRuleRecord ruleStart. */ - public ruleStart: string; - - /** ServiceRuleRecord ruleEnd. */ - public ruleEnd: string; + constructor(properties?: Records.IRecordsOnwershipTransferResponse); - /** ServiceRuleRecord dateModified. */ - public dateModified: string; + /** RecordsOnwershipTransferResponse transferRecordStatus. */ + public transferRecordStatus: Records.ITransferRecordStatus[]; /** - * Creates a new ServiceRuleRecord instance using the specified properties. + * Creates a new RecordsOnwershipTransferResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceRuleRecord instance + * @returns RecordsOnwershipTransferResponse instance */ - public static create(properties?: ServiceLogger.IServiceRuleRecord): ServiceLogger.ServiceRuleRecord; + public static create(properties?: Records.IRecordsOnwershipTransferResponse): Records.RecordsOnwershipTransferResponse; /** - * Encodes the specified ServiceRuleRecord message. Does not implicitly {@link ServiceLogger.ServiceRuleRecord.verify|verify} messages. - * @param message ServiceRuleRecord message or plain object to encode + * Encodes the specified RecordsOnwershipTransferResponse message. 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 encode(message: ServiceLogger.IServiceRuleRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordsOnwershipTransferResponse, 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 + * 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: ServiceLogger.IServiceRuleRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordsOnwershipTransferResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceRuleRecord message from the specified reader or buffer. + * Decodes a RecordsOnwershipTransferResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceRuleRecord + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceRuleRecord; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsOnwershipTransferResponse; /** - * Decodes a ServiceRuleRecord message from the specified reader or buffer, length delimited. + * Decodes a RecordsOnwershipTransferResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceRuleRecord + * @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)): ServiceLogger.ServiceRuleRecord; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsOnwershipTransferResponse; /** - * Verifies a ServiceRuleRecord message. + * 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 ServiceRuleRecord message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsOnwershipTransferResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceRuleRecord + * @returns RecordsOnwershipTransferResponse */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceRuleRecord; + public static fromObject(object: { [k: string]: any }): Records.RecordsOnwershipTransferResponse; /** - * Creates a plain object from a ServiceRuleRecord message. Also converts values to other types if specified. - * @param message ServiceRuleRecord + * Creates a plain object from a RecordsOnwershipTransferResponse message. Also converts values to other types if specified. + * @param message RecordsOnwershipTransferResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceRuleRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordsOnwershipTransferResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceRuleRecord to JSON. + * Converts this RecordsOnwershipTransferResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceRuleRecord + * Gets the default type url for RecordsOnwershipTransferResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceRuleResponse. */ - interface IServiceRuleResponse { + /** Properties of a TransferRecordStatus. */ + interface ITransferRecordStatus { - /** ServiceRuleResponse serviceRule */ - serviceRule?: (ServiceLogger.IServiceRuleRecord[]|null); + /** TransferRecordStatus username */ + username?: (string|null); + + /** TransferRecordStatus recordUid */ + recordUid?: (Uint8Array|null); + + /** TransferRecordStatus status */ + status?: (string|null); + + /** TransferRecordStatus message */ + message?: (string|null); } - /** Represents a ServiceRuleResponse. */ - class ServiceRuleResponse implements IServiceRuleResponse { + /** Represents a TransferRecordStatus. */ + class TransferRecordStatus implements ITransferRecordStatus { /** - * Constructs a new ServiceRuleResponse. + * Constructs a new TransferRecordStatus. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceRuleResponse); + constructor(properties?: Records.ITransferRecordStatus); - /** ServiceRuleResponse serviceRule. */ - public serviceRule: ServiceLogger.IServiceRuleRecord[]; + /** TransferRecordStatus username. */ + public username: string; + + /** TransferRecordStatus recordUid. */ + public recordUid: Uint8Array; + + /** TransferRecordStatus status. */ + public status: string; + + /** TransferRecordStatus message. */ + public message: string; /** - * Creates a new ServiceRuleResponse instance using the specified properties. + * Creates a new TransferRecordStatus instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceRuleResponse instance + * @returns TransferRecordStatus instance */ - public static create(properties?: ServiceLogger.IServiceRuleResponse): ServiceLogger.ServiceRuleResponse; + public static create(properties?: Records.ITransferRecordStatus): Records.TransferRecordStatus; /** - * Encodes the specified ServiceRuleResponse message. Does not implicitly {@link ServiceLogger.ServiceRuleResponse.verify|verify} messages. - * @param message ServiceRuleResponse message or plain object to encode + * Encodes the specified TransferRecordStatus message. 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 encode(message: ServiceLogger.IServiceRuleResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.ITransferRecordStatus, 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 + * 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: ServiceLogger.IServiceRuleResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.ITransferRecordStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceRuleResponse message from the specified reader or buffer. + * Decodes a TransferRecordStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceRuleResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceRuleResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TransferRecordStatus; /** - * Decodes a ServiceRuleResponse message from the specified reader or buffer, length delimited. + * Decodes a TransferRecordStatus message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceRuleResponse + * @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)): ServiceLogger.ServiceRuleResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.TransferRecordStatus; /** - * Verifies a ServiceRuleResponse message. + * 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 ServiceRuleResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TransferRecordStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceRuleResponse + * @returns TransferRecordStatus */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceRuleResponse; + public static fromObject(object: { [k: string]: any }): Records.TransferRecordStatus; /** - * Creates a plain object from a ServiceRuleResponse message. Also converts values to other types if specified. - * @param message ServiceRuleResponse + * Creates a plain object from a TransferRecordStatus message. Also converts values to other types if specified. + * @param message TransferRecordStatus * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceRuleResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.TransferRecordStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceRuleResponse to JSON. + * Converts this TransferRecordStatus to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceRuleResponse + * Gets the default type url for TransferRecordStatus * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceRuleUpdateRequest. */ - interface IServiceRuleUpdateRequest { + /** Properties of a RecordsUnshareRequest. */ + interface IRecordsUnshareRequest { - /** ServiceRuleUpdateRequest serviceRuleRecord */ - serviceRuleRecord?: (ServiceLogger.IServiceRuleRecord[]|null); + /** RecordsUnshareRequest sharedFolders */ + sharedFolders?: (Records.IRecordsUnshareFolder[]|null); + + /** RecordsUnshareRequest users */ + users?: (Records.IRecordsUnshareUser[]|null); } - /** Update one or more ServiceRule records by their IDs */ - class ServiceRuleUpdateRequest implements IServiceRuleUpdateRequest { + /** Represents a RecordsUnshareRequest. */ + class RecordsUnshareRequest implements IRecordsUnshareRequest { /** - * Constructs a new ServiceRuleUpdateRequest. + * Constructs a new RecordsUnshareRequest. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceRuleUpdateRequest); + constructor(properties?: Records.IRecordsUnshareRequest); - /** ServiceRuleUpdateRequest serviceRuleRecord. */ - public serviceRuleRecord: ServiceLogger.IServiceRuleRecord[]; + /** RecordsUnshareRequest sharedFolders. */ + public sharedFolders: Records.IRecordsUnshareFolder[]; + + /** RecordsUnshareRequest users. */ + public users: Records.IRecordsUnshareUser[]; /** - * Creates a new ServiceRuleUpdateRequest instance using the specified properties. + * Creates a new RecordsUnshareRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceRuleUpdateRequest instance + * @returns RecordsUnshareRequest instance */ - public static create(properties?: ServiceLogger.IServiceRuleUpdateRequest): ServiceLogger.ServiceRuleUpdateRequest; + public static create(properties?: Records.IRecordsUnshareRequest): Records.RecordsUnshareRequest; /** - * Encodes the specified ServiceRuleUpdateRequest message. Does not implicitly {@link ServiceLogger.ServiceRuleUpdateRequest.verify|verify} messages. - * @param message ServiceRuleUpdateRequest message or plain object to encode + * Encodes the specified RecordsUnshareRequest message. 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 encode(message: ServiceLogger.IServiceRuleUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordsUnshareRequest, 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 + * 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: ServiceLogger.IServiceRuleUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordsUnshareRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceRuleUpdateRequest message from the specified reader or buffer. + * Decodes a RecordsUnshareRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceRuleUpdateRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceRuleUpdateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareRequest; /** - * Decodes a ServiceRuleUpdateRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordsUnshareRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceRuleUpdateRequest + * @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)): ServiceLogger.ServiceRuleUpdateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsUnshareRequest; /** - * Verifies a ServiceRuleUpdateRequest message. + * 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 ServiceRuleUpdateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsUnshareRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceRuleUpdateRequest + * @returns RecordsUnshareRequest */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceRuleUpdateRequest; + public static fromObject(object: { [k: string]: any }): Records.RecordsUnshareRequest; /** - * Creates a plain object from a ServiceRuleUpdateRequest message. Also converts values to other types if specified. - * @param message ServiceRuleUpdateRequest + * Creates a plain object from a RecordsUnshareRequest message. Also converts values to other types if specified. + * @param message RecordsUnshareRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceRuleUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordsUnshareRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceRuleUpdateRequest to JSON. + * Converts this RecordsUnshareRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceRuleUpdateRequest + * Gets the default type url for RecordsUnshareRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceLogSpecifier. */ - interface IServiceLogSpecifier { - - /** ServiceLogSpecifier all */ - all?: (boolean|null); - - /** ServiceLogSpecifier serviceLogId */ - serviceLogId?: (number|Long|null); - - /** ServiceLogSpecifier serviceIdRange */ - serviceIdRange?: (ServiceLogger.IIdRange[]|null); - - /** ServiceLogSpecifier resourceIdRange */ - resourceIdRange?: (ServiceLogger.IIdRange[]|null); + /** Properties of a RecordsUnshareResponse. */ + interface IRecordsUnshareResponse { - /** ServiceLogSpecifier startDateTime */ - startDateTime?: (string|null); + /** RecordsUnshareResponse sharedFolders */ + sharedFolders?: (Records.IRecordsUnshareFolderStatus[]|null); - /** ServiceLogSpecifier endDateTime */ - endDateTime?: (string|null); + /** RecordsUnshareResponse users */ + users?: (Records.IRecordsUnshareUserStatus[]|null); } - /** Represents a ServiceLogSpecifier. */ - class ServiceLogSpecifier implements IServiceLogSpecifier { + /** Represents a RecordsUnshareResponse. */ + class RecordsUnshareResponse implements IRecordsUnshareResponse { /** - * Constructs a new ServiceLogSpecifier. + * Constructs a new RecordsUnshareResponse. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceLogSpecifier); - - /** ServiceLogSpecifier all. */ - public all: boolean; - - /** ServiceLogSpecifier serviceLogId. */ - public serviceLogId: (number|Long); - - /** ServiceLogSpecifier serviceIdRange. */ - public serviceIdRange: ServiceLogger.IIdRange[]; - - /** ServiceLogSpecifier resourceIdRange. */ - public resourceIdRange: ServiceLogger.IIdRange[]; + constructor(properties?: Records.IRecordsUnshareResponse); - /** ServiceLogSpecifier startDateTime. */ - public startDateTime: string; + /** RecordsUnshareResponse sharedFolders. */ + public sharedFolders: Records.IRecordsUnshareFolderStatus[]; - /** ServiceLogSpecifier endDateTime. */ - public endDateTime: string; + /** RecordsUnshareResponse users. */ + public users: Records.IRecordsUnshareUserStatus[]; /** - * Creates a new ServiceLogSpecifier instance using the specified properties. + * Creates a new RecordsUnshareResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceLogSpecifier instance + * @returns RecordsUnshareResponse instance */ - public static create(properties?: ServiceLogger.IServiceLogSpecifier): ServiceLogger.ServiceLogSpecifier; + public static create(properties?: Records.IRecordsUnshareResponse): Records.RecordsUnshareResponse; /** - * Encodes the specified ServiceLogSpecifier message. Does not implicitly {@link ServiceLogger.ServiceLogSpecifier.verify|verify} messages. - * @param message ServiceLogSpecifier message or plain object to encode + * Encodes the specified RecordsUnshareResponse message. 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 encode(message: ServiceLogger.IServiceLogSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordsUnshareResponse, 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 + * 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: ServiceLogger.IServiceLogSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordsUnshareResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceLogSpecifier message from the specified reader or buffer. + * Decodes a RecordsUnshareResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceLogSpecifier + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogSpecifier; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareResponse; /** - * Decodes a ServiceLogSpecifier message from the specified reader or buffer, length delimited. + * Decodes a RecordsUnshareResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceLogSpecifier + * @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)): ServiceLogger.ServiceLogSpecifier; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsUnshareResponse; /** - * Verifies a ServiceLogSpecifier message. + * 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 ServiceLogSpecifier message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsUnshareResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceLogSpecifier + * @returns RecordsUnshareResponse */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogSpecifier; + public static fromObject(object: { [k: string]: any }): Records.RecordsUnshareResponse; /** - * Creates a plain object from a ServiceLogSpecifier message. Also converts values to other types if specified. - * @param message ServiceLogSpecifier + * Creates a plain object from a RecordsUnshareResponse message. Also converts values to other types if specified. + * @param message RecordsUnshareResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceLogSpecifier, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordsUnshareResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceLogSpecifier to JSON. + * Converts this RecordsUnshareResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceLogSpecifier + * Gets the default type url for RecordsUnshareResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceLogGetRequest. */ - interface IServiceLogGetRequest { + /** Properties of a RecordsUnshareFolder. */ + interface IRecordsUnshareFolder { - /** ServiceLogGetRequest serviceLogSpecifier */ - serviceLogSpecifier?: (ServiceLogger.IServiceLogSpecifier[]|null); + /** RecordsUnshareFolder recordUid */ + recordUid?: (Uint8Array|null); + + /** RecordsUnshareFolder sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); } - /** Represents a ServiceLogGetRequest. */ - class ServiceLogGetRequest implements IServiceLogGetRequest { + /** Represents a RecordsUnshareFolder. */ + class RecordsUnshareFolder implements IRecordsUnshareFolder { /** - * Constructs a new ServiceLogGetRequest. + * Constructs a new RecordsUnshareFolder. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceLogGetRequest); + constructor(properties?: Records.IRecordsUnshareFolder); - /** ServiceLogGetRequest serviceLogSpecifier. */ - public serviceLogSpecifier: ServiceLogger.IServiceLogSpecifier[]; + /** RecordsUnshareFolder recordUid. */ + public recordUid: Uint8Array; + + /** RecordsUnshareFolder sharedFolderUid. */ + public sharedFolderUid: Uint8Array; /** - * Creates a new ServiceLogGetRequest instance using the specified properties. + * Creates a new RecordsUnshareFolder instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceLogGetRequest instance + * @returns RecordsUnshareFolder instance */ - public static create(properties?: ServiceLogger.IServiceLogGetRequest): ServiceLogger.ServiceLogGetRequest; + public static create(properties?: Records.IRecordsUnshareFolder): Records.RecordsUnshareFolder; /** - * Encodes the specified ServiceLogGetRequest message. Does not implicitly {@link ServiceLogger.ServiceLogGetRequest.verify|verify} messages. - * @param message ServiceLogGetRequest message or plain object to encode + * Encodes the specified RecordsUnshareFolder message. 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 encode(message: ServiceLogger.IServiceLogGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordsUnshareFolder, 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 + * 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: ServiceLogger.IServiceLogGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordsUnshareFolder, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceLogGetRequest message from the specified reader or buffer. + * Decodes a RecordsUnshareFolder message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceLogGetRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogGetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareFolder; /** - * Decodes a ServiceLogGetRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordsUnshareFolder message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceLogGetRequest + * @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)): ServiceLogger.ServiceLogGetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsUnshareFolder; /** - * Verifies a ServiceLogGetRequest message. + * 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 ServiceLogGetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsUnshareFolder message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceLogGetRequest + * @returns RecordsUnshareFolder */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogGetRequest; + public static fromObject(object: { [k: string]: any }): Records.RecordsUnshareFolder; /** - * Creates a plain object from a ServiceLogGetRequest message. Also converts values to other types if specified. - * @param message ServiceLogGetRequest + * Creates a plain object from a RecordsUnshareFolder message. Also converts values to other types if specified. + * @param message RecordsUnshareFolder * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceLogGetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordsUnshareFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceLogGetRequest to JSON. + * Converts this RecordsUnshareFolder to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceLogGetRequest + * Gets the default type url for RecordsUnshareFolder * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceLogRecord. */ - interface IServiceLogRecord { - - /** ServiceLogRecord serviceLogId */ - serviceLogId?: (number|Long|null); - - /** ServiceLogRecord serviceInfoId */ - serviceInfoId?: (number|Long|null); - - /** ServiceLogRecord resourceId */ - resourceId?: (number|Long|null); - - /** ServiceLogRecord logger */ - logger?: (string|null); - - /** ServiceLogRecord logLevel */ - logLevel?: (string|null); - - /** ServiceLogRecord message */ - message?: (string|null); + /** Properties of a RecordsUnshareUser. */ + interface IRecordsUnshareUser { - /** ServiceLogRecord exception */ - exception?: (string|null); + /** RecordsUnshareUser recordUid */ + recordUid?: (Uint8Array|null); - /** ServiceLogRecord dateCreated */ - dateCreated?: (string|null); + /** RecordsUnshareUser accountUid */ + accountUid?: (Uint8Array|null); } - /** Represents a ServiceLogRecord. */ - class ServiceLogRecord implements IServiceLogRecord { + /** Represents a RecordsUnshareUser. */ + class RecordsUnshareUser implements IRecordsUnshareUser { /** - * Constructs a new ServiceLogRecord. + * Constructs a new RecordsUnshareUser. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceLogRecord); - - /** ServiceLogRecord serviceLogId. */ - public serviceLogId: (number|Long); - - /** ServiceLogRecord serviceInfoId. */ - public serviceInfoId: (number|Long); - - /** ServiceLogRecord resourceId. */ - public resourceId: (number|Long); - - /** ServiceLogRecord logger. */ - public logger: string; - - /** ServiceLogRecord logLevel. */ - public logLevel: string; - - /** ServiceLogRecord message. */ - public message: string; + constructor(properties?: Records.IRecordsUnshareUser); - /** ServiceLogRecord exception. */ - public exception: string; + /** RecordsUnshareUser recordUid. */ + public recordUid: Uint8Array; - /** ServiceLogRecord dateCreated. */ - public dateCreated: string; + /** RecordsUnshareUser accountUid. */ + public accountUid: Uint8Array; /** - * Creates a new ServiceLogRecord instance using the specified properties. + * Creates a new RecordsUnshareUser instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceLogRecord instance + * @returns RecordsUnshareUser instance */ - public static create(properties?: ServiceLogger.IServiceLogRecord): ServiceLogger.ServiceLogRecord; + public static create(properties?: Records.IRecordsUnshareUser): Records.RecordsUnshareUser; /** - * Encodes the specified ServiceLogRecord message. Does not implicitly {@link ServiceLogger.ServiceLogRecord.verify|verify} messages. - * @param message ServiceLogRecord message or plain object to encode + * Encodes the specified RecordsUnshareUser message. 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 encode(message: ServiceLogger.IServiceLogRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordsUnshareUser, 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 + * 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: ServiceLogger.IServiceLogRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordsUnshareUser, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceLogRecord message from the specified reader or buffer. + * Decodes a RecordsUnshareUser message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceLogRecord + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogRecord; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareUser; /** - * Decodes a ServiceLogRecord message from the specified reader or buffer, length delimited. + * Decodes a RecordsUnshareUser message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceLogRecord + * @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)): ServiceLogger.ServiceLogRecord; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsUnshareUser; /** - * Verifies a ServiceLogRecord message. + * 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 ServiceLogRecord message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsUnshareUser message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceLogRecord + * @returns RecordsUnshareUser */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogRecord; + public static fromObject(object: { [k: string]: any }): Records.RecordsUnshareUser; /** - * Creates a plain object from a ServiceLogRecord message. Also converts values to other types if specified. - * @param message ServiceLogRecord + * Creates a plain object from a RecordsUnshareUser message. Also converts values to other types if specified. + * @param message RecordsUnshareUser * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceLogRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordsUnshareUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceLogRecord to JSON. + * Converts this RecordsUnshareUser to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceLogRecord + * Gets the default type url for RecordsUnshareUser * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceLogAddRequest. */ - interface IServiceLogAddRequest { + /** Properties of a RecordsUnshareFolderStatus. */ + interface IRecordsUnshareFolderStatus { - /** ServiceLogAddRequest entry */ - entry?: (ServiceLogger.IServiceLogRecord[]|null); + /** RecordsUnshareFolderStatus recordUid */ + recordUid?: (Uint8Array|null); + + /** RecordsUnshareFolderStatus sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); } - /** Represents a ServiceLogAddRequest. */ - class ServiceLogAddRequest implements IServiceLogAddRequest { + /** Represents a RecordsUnshareFolderStatus. */ + class RecordsUnshareFolderStatus implements IRecordsUnshareFolderStatus { /** - * Constructs a new ServiceLogAddRequest. + * Constructs a new RecordsUnshareFolderStatus. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceLogAddRequest); + constructor(properties?: Records.IRecordsUnshareFolderStatus); - /** ServiceLogAddRequest entry. */ - public entry: ServiceLogger.IServiceLogRecord[]; + /** RecordsUnshareFolderStatus recordUid. */ + public recordUid: Uint8Array; + + /** RecordsUnshareFolderStatus sharedFolderUid. */ + public sharedFolderUid: Uint8Array; /** - * Creates a new ServiceLogAddRequest instance using the specified properties. + * Creates a new RecordsUnshareFolderStatus instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceLogAddRequest instance + * @returns RecordsUnshareFolderStatus instance */ - public static create(properties?: ServiceLogger.IServiceLogAddRequest): ServiceLogger.ServiceLogAddRequest; + public static create(properties?: Records.IRecordsUnshareFolderStatus): Records.RecordsUnshareFolderStatus; /** - * Encodes the specified ServiceLogAddRequest message. Does not implicitly {@link ServiceLogger.ServiceLogAddRequest.verify|verify} messages. - * @param message ServiceLogAddRequest message or plain object to encode + * Encodes the specified RecordsUnshareFolderStatus message. 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 encode(message: ServiceLogger.IServiceLogAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordsUnshareFolderStatus, 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 + * 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: ServiceLogger.IServiceLogAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordsUnshareFolderStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceLogAddRequest message from the specified reader or buffer. + * Decodes a RecordsUnshareFolderStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceLogAddRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogAddRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareFolderStatus; /** - * Decodes a ServiceLogAddRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordsUnshareFolderStatus message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceLogAddRequest + * @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)): ServiceLogger.ServiceLogAddRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsUnshareFolderStatus; /** - * Verifies a ServiceLogAddRequest message. + * 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 ServiceLogAddRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsUnshareFolderStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceLogAddRequest + * @returns RecordsUnshareFolderStatus */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogAddRequest; + public static fromObject(object: { [k: string]: any }): Records.RecordsUnshareFolderStatus; /** - * Creates a plain object from a ServiceLogAddRequest message. Also converts values to other types if specified. - * @param message ServiceLogAddRequest + * Creates a plain object from a RecordsUnshareFolderStatus message. Also converts values to other types if specified. + * @param message RecordsUnshareFolderStatus * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceLogAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordsUnshareFolderStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceLogAddRequest to JSON. + * Converts this RecordsUnshareFolderStatus to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceLogAddRequest + * Gets the default type url for RecordsUnshareFolderStatus * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceLogResponse. */ - interface IServiceLogResponse { + /** Properties of a RecordsUnshareUserStatus. */ + interface IRecordsUnshareUserStatus { - /** ServiceLogResponse entry */ - entry?: (ServiceLogger.IServiceLogRecord[]|null); + /** RecordsUnshareUserStatus recordUid */ + recordUid?: (Uint8Array|null); + + /** RecordsUnshareUserStatus accountUid */ + accountUid?: (Uint8Array|null); } - /** Represents a ServiceLogResponse. */ - class ServiceLogResponse implements IServiceLogResponse { + /** Represents a RecordsUnshareUserStatus. */ + class RecordsUnshareUserStatus implements IRecordsUnshareUserStatus { /** - * Constructs a new ServiceLogResponse. + * Constructs a new RecordsUnshareUserStatus. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceLogResponse); + constructor(properties?: Records.IRecordsUnshareUserStatus); - /** ServiceLogResponse entry. */ - public entry: ServiceLogger.IServiceLogRecord[]; + /** RecordsUnshareUserStatus recordUid. */ + public recordUid: Uint8Array; + + /** RecordsUnshareUserStatus accountUid. */ + public accountUid: Uint8Array; /** - * Creates a new ServiceLogResponse instance using the specified properties. + * Creates a new RecordsUnshareUserStatus instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceLogResponse instance + * @returns RecordsUnshareUserStatus instance */ - public static create(properties?: ServiceLogger.IServiceLogResponse): ServiceLogger.ServiceLogResponse; + public static create(properties?: Records.IRecordsUnshareUserStatus): Records.RecordsUnshareUserStatus; /** - * Encodes the specified ServiceLogResponse message. Does not implicitly {@link ServiceLogger.ServiceLogResponse.verify|verify} messages. - * @param message ServiceLogResponse message or plain object to encode + * Encodes the specified RecordsUnshareUserStatus message. 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 encode(message: ServiceLogger.IServiceLogResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.IRecordsUnshareUserStatus, 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 + * 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: ServiceLogger.IServiceLogResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.IRecordsUnshareUserStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceLogResponse message from the specified reader or buffer. + * Decodes a RecordsUnshareUserStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceLogResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareUserStatus; /** - * Decodes a ServiceLogResponse message from the specified reader or buffer, length delimited. + * Decodes a RecordsUnshareUserStatus message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceLogResponse + * @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)): ServiceLogger.ServiceLogResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsUnshareUserStatus; /** - * Verifies a ServiceLogResponse message. + * 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 ServiceLogResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsUnshareUserStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceLogResponse + * @returns RecordsUnshareUserStatus */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogResponse; + public static fromObject(object: { [k: string]: any }): Records.RecordsUnshareUserStatus; /** - * Creates a plain object from a ServiceLogResponse message. Also converts values to other types if specified. - * @param message ServiceLogResponse + * Creates a plain object from a RecordsUnshareUserStatus message. Also converts values to other types if specified. + * @param message RecordsUnshareUserStatus * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceLogResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.RecordsUnshareUserStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceLogResponse to JSON. + * Converts this RecordsUnshareUserStatus to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceLogResponse + * Gets the default type url for RecordsUnshareUserStatus * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceLogClearRequest. */ - interface IServiceLogClearRequest { - - /** ServiceLogClearRequest useDefaults */ - useDefaults?: (boolean|null); + /** RecordTransactionType enum. */ + enum RecordTransactionType { + RTT_GENERAL = 0, + RTT_ROTATION = 1 + } - /** ServiceLogClearRequest serviceTypeId */ - serviceTypeId?: (number|Long|null); + /** TimeLimitedAccessType enum. */ + enum TimeLimitedAccessType { + INVALID_TIME_LIMITED_ACCESS_TYPE = 0, + USER_ACCESS_TO_RECORD = 1, + USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER = 2, + RECORD_ACCESS_TO_SHAREDFOLDER = 3, + USER_ACCESS_TO_SHAREDFOLDER = 4, + TEAM_ACCESS_TO_SHAREDFOLDER = 5, + RECORD_ACCESS_TO_FOLDER = 6, + USER_ACCESS_TO_FOLDER = 7, + TEAM_ACCESS_TO_FOLDER = 8, + USER_OR_TEAM_ACCESS_TO_FOLDER = 9 + } - /** ServiceLogClearRequest daysOld */ - daysOld?: (number|null); + /** TimerNotificationType enum. */ + enum TimerNotificationType { + NOTIFICATION_OFF = 0, + NOTIFY_OWNER = 1, + NOTIFY_PRIVILEGED_USERS = 2 + } - /** ServiceLogClearRequest hoursOld */ - hoursOld?: (number|null); + /** Properties of a TimedAccessCallbackPayload. */ + interface ITimedAccessCallbackPayload { - /** ServiceLogClearRequest resourceIdRange */ - resourceIdRange?: (ServiceLogger.IIdRange[]|null); + /** TimedAccessCallbackPayload timeLimitedAccessType */ + timeLimitedAccessType?: (Records.TimeLimitedAccessType|null); } - /** This is a request to clear the SSO Service Provider log */ - class ServiceLogClearRequest implements IServiceLogClearRequest { + /** Represents a TimedAccessCallbackPayload. */ + class TimedAccessCallbackPayload implements ITimedAccessCallbackPayload { /** - * Constructs a new ServiceLogClearRequest. + * Constructs a new TimedAccessCallbackPayload. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceLogClearRequest); - - /** ServiceLogClearRequest useDefaults. */ - public useDefaults: boolean; - - /** ServiceLogClearRequest serviceTypeId. */ - public serviceTypeId: (number|Long); - - /** ServiceLogClearRequest daysOld. */ - public daysOld: number; - - /** ServiceLogClearRequest hoursOld. */ - public hoursOld: number; + constructor(properties?: Records.ITimedAccessCallbackPayload); - /** ServiceLogClearRequest resourceIdRange. */ - public resourceIdRange: ServiceLogger.IIdRange[]; + /** TimedAccessCallbackPayload timeLimitedAccessType. */ + public timeLimitedAccessType: Records.TimeLimitedAccessType; /** - * Creates a new ServiceLogClearRequest instance using the specified properties. + * Creates a new TimedAccessCallbackPayload instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceLogClearRequest instance + * @returns TimedAccessCallbackPayload instance */ - public static create(properties?: ServiceLogger.IServiceLogClearRequest): ServiceLogger.ServiceLogClearRequest; + public static create(properties?: Records.ITimedAccessCallbackPayload): Records.TimedAccessCallbackPayload; /** - * Encodes the specified ServiceLogClearRequest message. Does not implicitly {@link ServiceLogger.ServiceLogClearRequest.verify|verify} messages. - * @param message ServiceLogClearRequest message or plain object to encode + * Encodes the specified TimedAccessCallbackPayload message. 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 encode(message: ServiceLogger.IServiceLogClearRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.ITimedAccessCallbackPayload, 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 + * 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: ServiceLogger.IServiceLogClearRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.ITimedAccessCallbackPayload, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceLogClearRequest message from the specified reader or buffer. + * Decodes a TimedAccessCallbackPayload message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceLogClearRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogClearRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TimedAccessCallbackPayload; /** - * Decodes a ServiceLogClearRequest message from the specified reader or buffer, length delimited. + * Decodes a TimedAccessCallbackPayload message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceLogClearRequest + * @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)): ServiceLogger.ServiceLogClearRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.TimedAccessCallbackPayload; /** - * Verifies a ServiceLogClearRequest message. + * 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 ServiceLogClearRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TimedAccessCallbackPayload message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceLogClearRequest + * @returns TimedAccessCallbackPayload */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogClearRequest; + public static fromObject(object: { [k: string]: any }): Records.TimedAccessCallbackPayload; /** - * Creates a plain object from a ServiceLogClearRequest message. Also converts values to other types if specified. - * @param message ServiceLogClearRequest + * Creates a plain object from a TimedAccessCallbackPayload message. Also converts values to other types if specified. + * @param message TimedAccessCallbackPayload * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceLogClearRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.TimedAccessCallbackPayload, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceLogClearRequest to JSON. + * Converts this TimedAccessCallbackPayload to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceLogClearRequest + * Gets the default type url for TimedAccessCallbackPayload * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceLogClearResponse. */ - interface IServiceLogClearResponse { + /** Properties of a TimeLimitedAccessRequest. */ + interface ITimeLimitedAccessRequest { - /** ServiceLogClearResponse serviceTypeId */ - serviceTypeId?: (number|Long|null); + /** TimeLimitedAccessRequest accountUid */ + accountUid?: (Uint8Array[]|null); - /** ServiceLogClearResponse serviceName */ - serviceName?: (string|null); + /** TimeLimitedAccessRequest teamUid */ + teamUid?: (Uint8Array[]|null); - /** ServiceLogClearResponse resourceIdRange */ - resourceIdRange?: (ServiceLogger.IIdRange[]|null); + /** TimeLimitedAccessRequest recordUid */ + recordUid?: (Uint8Array[]|null); - /** ServiceLogClearResponse numDeleted */ - numDeleted?: (number|null); + /** TimeLimitedAccessRequest sharedObjectUid */ + sharedObjectUid?: (Uint8Array|null); - /** ServiceLogClearResponse numRemaining */ - numRemaining?: (number|null); + /** TimeLimitedAccessRequest timeLimitedAccessType */ + timeLimitedAccessType?: (Records.TimeLimitedAccessType|null); + + /** TimeLimitedAccessRequest expiration */ + expiration?: (number|Long|null); + + /** TimeLimitedAccessRequest timerNotificationType */ + timerNotificationType?: (Records.TimerNotificationType|null); } - /** This is the response from the sso_log_clear command */ - class ServiceLogClearResponse implements IServiceLogClearResponse { + /** Represents a TimeLimitedAccessRequest. */ + class TimeLimitedAccessRequest implements ITimeLimitedAccessRequest { /** - * Constructs a new ServiceLogClearResponse. + * Constructs a new TimeLimitedAccessRequest. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceLogClearResponse); + constructor(properties?: Records.ITimeLimitedAccessRequest); - /** ServiceLogClearResponse serviceTypeId. */ - public serviceTypeId: (number|Long); + /** TimeLimitedAccessRequest accountUid. */ + public accountUid: Uint8Array[]; - /** ServiceLogClearResponse serviceName. */ - public serviceName: string; + /** TimeLimitedAccessRequest teamUid. */ + public teamUid: Uint8Array[]; - /** ServiceLogClearResponse resourceIdRange. */ - public resourceIdRange: ServiceLogger.IIdRange[]; + /** TimeLimitedAccessRequest recordUid. */ + public recordUid: Uint8Array[]; - /** ServiceLogClearResponse numDeleted. */ - public numDeleted: number; + /** TimeLimitedAccessRequest sharedObjectUid. */ + public sharedObjectUid: Uint8Array; - /** ServiceLogClearResponse numRemaining. */ - public numRemaining: number; + /** TimeLimitedAccessRequest timeLimitedAccessType. */ + public timeLimitedAccessType: Records.TimeLimitedAccessType; + + /** TimeLimitedAccessRequest expiration. */ + public expiration: (number|Long); + + /** TimeLimitedAccessRequest timerNotificationType. */ + public timerNotificationType: Records.TimerNotificationType; /** - * Creates a new ServiceLogClearResponse instance using the specified properties. + * Creates a new TimeLimitedAccessRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceLogClearResponse instance + * @returns TimeLimitedAccessRequest instance */ - public static create(properties?: ServiceLogger.IServiceLogClearResponse): ServiceLogger.ServiceLogClearResponse; + public static create(properties?: Records.ITimeLimitedAccessRequest): Records.TimeLimitedAccessRequest; /** - * Encodes the specified ServiceLogClearResponse message. Does not implicitly {@link ServiceLogger.ServiceLogClearResponse.verify|verify} messages. - * @param message ServiceLogClearResponse message or plain object to encode + * Encodes the specified TimeLimitedAccessRequest message. 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 encode(message: ServiceLogger.IServiceLogClearResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.ITimeLimitedAccessRequest, 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 + * 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: ServiceLogger.IServiceLogClearResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.ITimeLimitedAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceLogClearResponse message from the specified reader or buffer. + * Decodes a TimeLimitedAccessRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceLogClearResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogClearResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TimeLimitedAccessRequest; /** - * Decodes a ServiceLogClearResponse message from the specified reader or buffer, length delimited. + * Decodes a TimeLimitedAccessRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceLogClearResponse + * @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)): ServiceLogger.ServiceLogClearResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.TimeLimitedAccessRequest; /** - * Verifies a ServiceLogClearResponse message. + * 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 ServiceLogClearResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TimeLimitedAccessRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceLogClearResponse + * @returns TimeLimitedAccessRequest */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogClearResponse; + public static fromObject(object: { [k: string]: any }): Records.TimeLimitedAccessRequest; /** - * Creates a plain object from a ServiceLogClearResponse message. Also converts values to other types if specified. - * @param message ServiceLogClearResponse + * Creates a plain object from a TimeLimitedAccessRequest message. Also converts values to other types if specified. + * @param message TimeLimitedAccessRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceLogClearResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.TimeLimitedAccessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceLogClearResponse to JSON. + * Converts this TimeLimitedAccessRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceLogClearResponse + * Gets the default type url for TimeLimitedAccessRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} - -/** Namespace Vault. */ -export namespace Vault { - - /** CacheStatus enum. */ - enum CacheStatus { - KEEP = 0, - CLEAR = 1 - } - /** Properties of a SyncDownRequest. */ - interface ISyncDownRequest { + /** Properties of a TimeLimitedAccessStatus. */ + interface ITimeLimitedAccessStatus { - /** SyncDownRequest continuationToken */ - continuationToken?: (Uint8Array|null); + /** TimeLimitedAccessStatus uid */ + uid?: (Uint8Array|null); - /** SyncDownRequest dataVersion */ - dataVersion?: (number|null); + /** TimeLimitedAccessStatus message */ + message?: (string|null); } - /** Represents a SyncDownRequest. */ - class SyncDownRequest implements ISyncDownRequest { + /** Represents a TimeLimitedAccessStatus. */ + class TimeLimitedAccessStatus implements ITimeLimitedAccessStatus { /** - * Constructs a new SyncDownRequest. + * Constructs a new TimeLimitedAccessStatus. * @param [properties] Properties to set */ - constructor(properties?: Vault.ISyncDownRequest); + constructor(properties?: Records.ITimeLimitedAccessStatus); - /** SyncDownRequest continuationToken. */ - public continuationToken: Uint8Array; + /** TimeLimitedAccessStatus uid. */ + public uid: Uint8Array; - /** SyncDownRequest dataVersion. */ - public dataVersion: number; + /** TimeLimitedAccessStatus message. */ + public message: string; /** - * Creates a new SyncDownRequest instance using the specified properties. + * Creates a new TimeLimitedAccessStatus instance using the specified properties. * @param [properties] Properties to set - * @returns SyncDownRequest instance + * @returns TimeLimitedAccessStatus instance */ - public static create(properties?: Vault.ISyncDownRequest): Vault.SyncDownRequest; + public static create(properties?: Records.ITimeLimitedAccessStatus): Records.TimeLimitedAccessStatus; /** - * Encodes the specified SyncDownRequest message. Does not implicitly {@link Vault.SyncDownRequest.verify|verify} messages. - * @param message SyncDownRequest message or plain object to encode + * Encodes the specified TimeLimitedAccessStatus message. 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 encode(message: Vault.ISyncDownRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Records.ITimeLimitedAccessStatus, 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 + * 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: Vault.ISyncDownRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Records.ITimeLimitedAccessStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SyncDownRequest message from the specified reader or buffer. + * Decodes a TimeLimitedAccessStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SyncDownRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SyncDownRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TimeLimitedAccessStatus; /** - * Decodes a SyncDownRequest message from the specified reader or buffer, length delimited. + * Decodes a TimeLimitedAccessStatus message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SyncDownRequest + * @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)): Vault.SyncDownRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.TimeLimitedAccessStatus; /** - * Verifies a SyncDownRequest message. + * 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 SyncDownRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TimeLimitedAccessStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SyncDownRequest + * @returns TimeLimitedAccessStatus */ - public static fromObject(object: { [k: string]: any }): Vault.SyncDownRequest; + public static fromObject(object: { [k: string]: any }): Records.TimeLimitedAccessStatus; /** - * Creates a plain object from a SyncDownRequest message. Also converts values to other types if specified. - * @param message SyncDownRequest + * Creates a plain object from a TimeLimitedAccessStatus message. Also converts values to other types if specified. + * @param message TimeLimitedAccessStatus * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SyncDownRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Records.TimeLimitedAccessStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SyncDownRequest to JSON. + * Converts this TimeLimitedAccessStatus to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SyncDownRequest + * Gets the default type url for TimeLimitedAccessStatus * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SyncDownResponse. */ - interface ISyncDownResponse { + /** Properties of a TimeLimitedAccessResponse. */ + interface ITimeLimitedAccessResponse { - /** SyncDownResponse continuationToken */ - continuationToken?: (Uint8Array|null); + /** TimeLimitedAccessResponse revision */ + revision?: (number|Long|null); - /** SyncDownResponse hasMore */ - hasMore?: (boolean|null); + /** TimeLimitedAccessResponse userAccessStatus */ + userAccessStatus?: (Records.ITimeLimitedAccessStatus[]|null); - /** SyncDownResponse cacheStatus */ - cacheStatus?: (Vault.CacheStatus|null); + /** TimeLimitedAccessResponse teamAccessStatus */ + teamAccessStatus?: (Records.ITimeLimitedAccessStatus[]|null); - /** SyncDownResponse userFolders */ - userFolders?: (Vault.IUserFolder[]|null); + /** TimeLimitedAccessResponse recordAccessStatus */ + recordAccessStatus?: (Records.ITimeLimitedAccessStatus[]|null); + } - /** SyncDownResponse sharedFolders */ - sharedFolders?: (Vault.ISharedFolder[]|null); + /** Represents a TimeLimitedAccessResponse. */ + class TimeLimitedAccessResponse implements ITimeLimitedAccessResponse { - /** SyncDownResponse userFolderSharedFolders */ - userFolderSharedFolders?: (Vault.IUserFolderSharedFolder[]|null); + /** + * Constructs a new TimeLimitedAccessResponse. + * @param [properties] Properties to set + */ + constructor(properties?: Records.ITimeLimitedAccessResponse); - /** SyncDownResponse sharedFolderFolders */ - sharedFolderFolders?: (Vault.ISharedFolderFolder[]|null); + /** TimeLimitedAccessResponse revision. */ + public revision: (number|Long); - /** SyncDownResponse records */ - records?: (Vault.IRecord[]|null); + /** TimeLimitedAccessResponse userAccessStatus. */ + public userAccessStatus: Records.ITimeLimitedAccessStatus[]; - /** SyncDownResponse recordMetaData */ - recordMetaData?: (Vault.IRecordMetaData[]|null); + /** TimeLimitedAccessResponse teamAccessStatus. */ + public teamAccessStatus: Records.ITimeLimitedAccessStatus[]; - /** SyncDownResponse nonSharedData */ - nonSharedData?: (Vault.INonSharedData[]|null); + /** TimeLimitedAccessResponse recordAccessStatus. */ + public recordAccessStatus: Records.ITimeLimitedAccessStatus[]; - /** SyncDownResponse recordLinks */ - recordLinks?: (Vault.IRecordLink[]|null); + /** + * Creates a new TimeLimitedAccessResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TimeLimitedAccessResponse instance + */ + public static create(properties?: Records.ITimeLimitedAccessResponse): Records.TimeLimitedAccessResponse; - /** SyncDownResponse userFolderRecords */ - userFolderRecords?: (Vault.IUserFolderRecord[]|null); + /** + * Encodes the specified TimeLimitedAccessResponse message. 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 encode(message: Records.ITimeLimitedAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** SyncDownResponse sharedFolderRecords */ - sharedFolderRecords?: (Vault.ISharedFolderRecord[]|null); + /** + * 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; - /** SyncDownResponse sharedFolderFolderRecords */ - sharedFolderFolderRecords?: (Vault.ISharedFolderFolderRecord[]|null); + /** + * Decodes a TimeLimitedAccessResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TimeLimitedAccessResponse; - /** SyncDownResponse sharedFolderUsers */ - sharedFolderUsers?: (Vault.ISharedFolderUser[]|null); + /** + * 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; - /** SyncDownResponse sharedFolderTeams */ - sharedFolderTeams?: (Vault.ISharedFolderTeam[]|null); + /** + * 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); - /** SyncDownResponse recordAddAuditData */ - recordAddAuditData?: (Uint8Array[]|null); + /** + * Creates a TimeLimitedAccessResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TimeLimitedAccessResponse + */ + public static fromObject(object: { [k: string]: any }): Records.TimeLimitedAccessResponse; - /** SyncDownResponse teams */ - teams?: (Vault.ITeam[]|null); + /** + * Creates a plain object from a TimeLimitedAccessResponse message. Also converts values to other types if specified. + * @param message TimeLimitedAccessResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: Records.TimeLimitedAccessResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** SyncDownResponse sharingChanges */ - sharingChanges?: (Vault.ISharingChange[]|null); + /** + * Converts this TimeLimitedAccessResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** SyncDownResponse profile */ - profile?: (Vault.IProfile|null); + /** + * Gets the default type url for TimeLimitedAccessResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } +} - /** SyncDownResponse profilePic */ - profilePic?: (Vault.IProfilePic|null); +/** Namespace common. */ +export namespace common { - /** SyncDownResponse pendingTeamMembers */ - pendingTeamMembers?: (Vault.IPendingTeamMember[]|null); + /** Namespace tla. */ + namespace tla { - /** SyncDownResponse breachWatchRecords */ - breachWatchRecords?: (Vault.IBreachWatchRecord[]|null); + /** Properties of a TLAProperties. */ + interface ITLAProperties { - /** SyncDownResponse userAuths */ - userAuths?: (Vault.IUserAuth[]|null); + /** Expiration time (in milliseconds) for the user's access to the record. */ + expiration?: (number|Long|null); - /** SyncDownResponse breachWatchSecurityData */ - breachWatchSecurityData?: (Vault.IBreachWatchSecurityData[]|null); + /** + * Notification settings for access expiration events. + * Possible values: + * - NOTIFICATION_OFF = 0 + * - NOTIFY_OWNER = 1 + * - NOTIFY_PRIVILEGED_USERS = 2 + */ + timerNotificationType?: (common.tla.TimerNotificationType|null); - /** SyncDownResponse reusedPasswords */ - reusedPasswords?: (Vault.IReusedPasswords|null); + /** Indicates whether access should be rotated automatically when it expires. */ + rotateOnExpiration?: (boolean|null); + } - /** SyncDownResponse removedUserFolders */ - removedUserFolders?: (Uint8Array[]|null); + /** + * Properties related to time-limited access (TLA) for a record. + * Includes expiration settings, notification preferences, and rotation behavior. + */ + class TLAProperties implements ITLAProperties { - /** SyncDownResponse removedSharedFolders */ - removedSharedFolders?: (Uint8Array[]|null); + /** + * Constructs a new TLAProperties. + * @param [properties] Properties to set + */ + constructor(properties?: common.tla.ITLAProperties); - /** SyncDownResponse removedUserFolderSharedFolders */ - removedUserFolderSharedFolders?: (Vault.IUserFolderSharedFolder[]|null); + /** Expiration time (in milliseconds) for the user's access to the record. */ + public expiration: (number|Long); - /** SyncDownResponse removedSharedFolderFolders */ - removedSharedFolderFolders?: (Vault.ISharedFolderFolder[]|null); + /** + * Notification settings for access expiration events. + * Possible values: + * - NOTIFICATION_OFF = 0 + * - NOTIFY_OWNER = 1 + * - NOTIFY_PRIVILEGED_USERS = 2 + */ + public timerNotificationType: common.tla.TimerNotificationType; - /** SyncDownResponse removedRecords */ - removedRecords?: (Uint8Array[]|null); + /** Indicates whether access should be rotated automatically when it expires. */ + public rotateOnExpiration: boolean; - /** SyncDownResponse removedRecordLinks */ - removedRecordLinks?: (Vault.IRecordLink[]|null); + /** + * Creates a new TLAProperties instance using the specified properties. + * @param [properties] Properties to set + * @returns TLAProperties instance + */ + public static create(properties?: common.tla.ITLAProperties): common.tla.TLAProperties; - /** SyncDownResponse removedUserFolderRecords */ - removedUserFolderRecords?: (Vault.IUserFolderRecord[]|null); + /** + * Encodes the specified TLAProperties message. 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 encode(message: common.tla.ITLAProperties, writer?: $protobuf.Writer): $protobuf.Writer; - /** SyncDownResponse removedSharedFolderRecords */ - removedSharedFolderRecords?: (Vault.ISharedFolderRecord[]|null); + /** + * 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; - /** SyncDownResponse removedSharedFolderFolderRecords */ - removedSharedFolderFolderRecords?: (Vault.ISharedFolderFolderRecord[]|null); + /** + * Decodes a TLAProperties message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): common.tla.TLAProperties; - /** SyncDownResponse removedSharedFolderUsers */ - removedSharedFolderUsers?: (Vault.ISharedFolderUser[]|null); + /** + * 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; - /** SyncDownResponse removedSharedFolderTeams */ - removedSharedFolderTeams?: (Vault.ISharedFolderTeam[]|null); + /** + * 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); - /** SyncDownResponse removedTeams */ - removedTeams?: (Uint8Array[]|null); + /** + * Creates a TLAProperties message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TLAProperties + */ + public static fromObject(object: { [k: string]: any }): common.tla.TLAProperties; - /** SyncDownResponse ksmAppShares */ - ksmAppShares?: (Vault.IKsmChange[]|null); + /** + * Creates a plain object from a TLAProperties message. Also converts values to other types if specified. + * @param message TLAProperties + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: common.tla.TLAProperties, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** SyncDownResponse ksmAppClients */ - ksmAppClients?: (Vault.IKsmChange[]|null); + /** + * Converts this TLAProperties to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** SyncDownResponse shareInvitations */ - shareInvitations?: (Vault.IShareInvitation[]|null); + /** + * Gets the default type url for TLAProperties + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** SyncDownResponse diagnostics */ - diagnostics?: (Vault.ISyncDiagnostics|null); + /** Enum representing notification settings for access expiration events. */ + enum TimerNotificationType { + NOTIFICATION_OFF = 0, + NOTIFY_OWNER = 1, + NOTIFY_PRIVILEGED_USERS = 2 + } + } +} - /** SyncDownResponse recordRotations */ - recordRotations?: (Vault.IRecordRotation[]|null); +/** Namespace Push. */ +export namespace Push { - /** SyncDownResponse users */ - users?: (Vault.IUser[]|null); + /** Properties of a UserRegistrationRequest. */ + interface IUserRegistrationRequest { - /** SyncDownResponse removedUsers */ - removedUsers?: (Uint8Array[]|null); + /** UserRegistrationRequest messageSessionUid */ + messageSessionUid?: (Uint8Array|null); - /** SyncDownResponse securityScoreData */ - securityScoreData?: (Vault.ISecurityScoreData[]|null); + /** UserRegistrationRequest userId */ + userId?: (number|null); - /** SyncDownResponse notificationSync */ - notificationSync?: (NotificationCenter.INotificationWrapper[]|null); + /** UserRegistrationRequest enterpriseId */ + enterpriseId?: (number|null); } - /** Represents a SyncDownResponse. */ - class SyncDownResponse implements ISyncDownResponse { + /** Represents a UserRegistrationRequest. */ + class UserRegistrationRequest implements IUserRegistrationRequest { /** - * Constructs a new SyncDownResponse. + * Constructs a new UserRegistrationRequest. * @param [properties] Properties to set */ - constructor(properties?: Vault.ISyncDownResponse); - - /** SyncDownResponse continuationToken. */ - public continuationToken: Uint8Array; - - /** SyncDownResponse hasMore. */ - public hasMore: boolean; - - /** SyncDownResponse cacheStatus. */ - public cacheStatus: Vault.CacheStatus; - - /** SyncDownResponse userFolders. */ - public userFolders: Vault.IUserFolder[]; - - /** SyncDownResponse sharedFolders. */ - public sharedFolders: Vault.ISharedFolder[]; - - /** SyncDownResponse userFolderSharedFolders. */ - public userFolderSharedFolders: Vault.IUserFolderSharedFolder[]; - - /** SyncDownResponse sharedFolderFolders. */ - public sharedFolderFolders: Vault.ISharedFolderFolder[]; - - /** SyncDownResponse records. */ - public records: Vault.IRecord[]; - - /** SyncDownResponse recordMetaData. */ - public recordMetaData: Vault.IRecordMetaData[]; - - /** SyncDownResponse nonSharedData. */ - public nonSharedData: Vault.INonSharedData[]; - - /** SyncDownResponse recordLinks. */ - public recordLinks: Vault.IRecordLink[]; - - /** SyncDownResponse userFolderRecords. */ - public userFolderRecords: Vault.IUserFolderRecord[]; - - /** SyncDownResponse sharedFolderRecords. */ - public sharedFolderRecords: Vault.ISharedFolderRecord[]; - - /** SyncDownResponse sharedFolderFolderRecords. */ - public sharedFolderFolderRecords: Vault.ISharedFolderFolderRecord[]; - - /** SyncDownResponse sharedFolderUsers. */ - public sharedFolderUsers: Vault.ISharedFolderUser[]; - - /** SyncDownResponse sharedFolderTeams. */ - public sharedFolderTeams: Vault.ISharedFolderTeam[]; - - /** SyncDownResponse recordAddAuditData. */ - public recordAddAuditData: Uint8Array[]; - - /** SyncDownResponse teams. */ - public teams: Vault.ITeam[]; - - /** SyncDownResponse sharingChanges. */ - public sharingChanges: Vault.ISharingChange[]; - - /** SyncDownResponse profile. */ - public profile?: (Vault.IProfile|null); - - /** SyncDownResponse profilePic. */ - public profilePic?: (Vault.IProfilePic|null); - - /** SyncDownResponse pendingTeamMembers. */ - public pendingTeamMembers: Vault.IPendingTeamMember[]; - - /** SyncDownResponse breachWatchRecords. */ - public breachWatchRecords: Vault.IBreachWatchRecord[]; - - /** SyncDownResponse userAuths. */ - public userAuths: Vault.IUserAuth[]; - - /** SyncDownResponse breachWatchSecurityData. */ - public breachWatchSecurityData: Vault.IBreachWatchSecurityData[]; - - /** SyncDownResponse reusedPasswords. */ - public reusedPasswords?: (Vault.IReusedPasswords|null); - - /** SyncDownResponse removedUserFolders. */ - public removedUserFolders: Uint8Array[]; - - /** SyncDownResponse removedSharedFolders. */ - public removedSharedFolders: Uint8Array[]; - - /** SyncDownResponse removedUserFolderSharedFolders. */ - public removedUserFolderSharedFolders: Vault.IUserFolderSharedFolder[]; - - /** SyncDownResponse removedSharedFolderFolders. */ - public removedSharedFolderFolders: Vault.ISharedFolderFolder[]; - - /** SyncDownResponse removedRecords. */ - public removedRecords: Uint8Array[]; - - /** SyncDownResponse removedRecordLinks. */ - public removedRecordLinks: Vault.IRecordLink[]; - - /** SyncDownResponse removedUserFolderRecords. */ - public removedUserFolderRecords: Vault.IUserFolderRecord[]; - - /** SyncDownResponse removedSharedFolderRecords. */ - public removedSharedFolderRecords: Vault.ISharedFolderRecord[]; - - /** SyncDownResponse removedSharedFolderFolderRecords. */ - public removedSharedFolderFolderRecords: Vault.ISharedFolderFolderRecord[]; - - /** SyncDownResponse removedSharedFolderUsers. */ - public removedSharedFolderUsers: Vault.ISharedFolderUser[]; - - /** SyncDownResponse removedSharedFolderTeams. */ - public removedSharedFolderTeams: Vault.ISharedFolderTeam[]; - - /** SyncDownResponse removedTeams. */ - public removedTeams: Uint8Array[]; - - /** SyncDownResponse ksmAppShares. */ - public ksmAppShares: Vault.IKsmChange[]; - - /** SyncDownResponse ksmAppClients. */ - public ksmAppClients: Vault.IKsmChange[]; - - /** SyncDownResponse shareInvitations. */ - public shareInvitations: Vault.IShareInvitation[]; - - /** SyncDownResponse diagnostics. */ - public diagnostics?: (Vault.ISyncDiagnostics|null); - - /** SyncDownResponse recordRotations. */ - public recordRotations: Vault.IRecordRotation[]; - - /** SyncDownResponse users. */ - public users: Vault.IUser[]; + constructor(properties?: Push.IUserRegistrationRequest); - /** SyncDownResponse removedUsers. */ - public removedUsers: Uint8Array[]; + /** UserRegistrationRequest messageSessionUid. */ + public messageSessionUid: Uint8Array; - /** SyncDownResponse securityScoreData. */ - public securityScoreData: Vault.ISecurityScoreData[]; + /** UserRegistrationRequest userId. */ + public userId: number; - /** SyncDownResponse notificationSync. */ - public notificationSync: NotificationCenter.INotificationWrapper[]; + /** UserRegistrationRequest enterpriseId. */ + public enterpriseId: number; /** - * Creates a new SyncDownResponse instance using the specified properties. + * Creates a new UserRegistrationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SyncDownResponse instance + * @returns UserRegistrationRequest instance */ - public static create(properties?: Vault.ISyncDownResponse): Vault.SyncDownResponse; + public static create(properties?: Push.IUserRegistrationRequest): Push.UserRegistrationRequest; /** - * Encodes the specified SyncDownResponse message. Does not implicitly {@link Vault.SyncDownResponse.verify|verify} messages. - * @param message SyncDownResponse message or plain object to encode + * Encodes the specified UserRegistrationRequest message. 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 encode(message: Vault.ISyncDownResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Push.IUserRegistrationRequest, 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 + * 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: Vault.ISyncDownResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Push.IUserRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SyncDownResponse message from the specified reader or buffer. + * Decodes a UserRegistrationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SyncDownResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SyncDownResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.UserRegistrationRequest; /** - * Decodes a SyncDownResponse message from the specified reader or buffer, length delimited. + * Decodes a UserRegistrationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SyncDownResponse + * @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)): Vault.SyncDownResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Push.UserRegistrationRequest; /** - * Verifies a SyncDownResponse message. + * 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 SyncDownResponse message from a plain object. Also converts values to their respective internal types. + * Creates a UserRegistrationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SyncDownResponse + * @returns UserRegistrationRequest */ - public static fromObject(object: { [k: string]: any }): Vault.SyncDownResponse; + public static fromObject(object: { [k: string]: any }): Push.UserRegistrationRequest; /** - * Creates a plain object from a SyncDownResponse message. Also converts values to other types if specified. - * @param message SyncDownResponse + * Creates a plain object from a UserRegistrationRequest message. Also converts values to other types if specified. + * @param message UserRegistrationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SyncDownResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Push.UserRegistrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SyncDownResponse to JSON. + * Converts this UserRegistrationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SyncDownResponse + * Gets the default type url for UserRegistrationRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a UserFolder. */ - interface IUserFolder { + /** MessageType enum. */ + enum MessageType { + UNKNOWN = 0, + DNA = 1, + SSO = 2, + CHAT = 3, + USER = 4, + ENTERPRISE = 5, + KEEPER = 6, + SESSION = 7, + DEVICE = 8, + TOTP = 9 + } - /** UserFolder folderUid */ - folderUid?: (Uint8Array|null); + /** Properties of a KAToPushServerRequest. */ + interface IKAToPushServerRequest { - /** UserFolder parentUid */ - parentUid?: (Uint8Array|null); + /** KAToPushServerRequest messageType */ + messageType?: (Push.MessageType|null); - /** UserFolder userFolderKey */ - userFolderKey?: (Uint8Array|null); + /** KAToPushServerRequest message */ + message?: (string|null); - /** UserFolder keyType */ - keyType?: (Records.RecordKeyType|null); + /** KAToPushServerRequest messageSessionUid */ + messageSessionUid?: (Uint8Array|null); - /** UserFolder revision */ - revision?: (number|Long|null); + /** KAToPushServerRequest encryptedDeviceToken */ + encryptedDeviceToken?: (Uint8Array[]|null); - /** UserFolder data */ - data?: (Uint8Array|null); + /** KAToPushServerRequest userId */ + userId?: (number[]|null); + + /** KAToPushServerRequest enterpriseId */ + enterpriseId?: (number[]|null); } - /** Represents a UserFolder. */ - class UserFolder implements IUserFolder { + /** Represents a KAToPushServerRequest. */ + class KAToPushServerRequest implements IKAToPushServerRequest { /** - * Constructs a new UserFolder. + * Constructs a new KAToPushServerRequest. * @param [properties] Properties to set */ - constructor(properties?: Vault.IUserFolder); + constructor(properties?: Push.IKAToPushServerRequest); - /** UserFolder folderUid. */ - public folderUid: Uint8Array; + /** KAToPushServerRequest messageType. */ + public messageType: Push.MessageType; - /** UserFolder parentUid. */ - public parentUid: Uint8Array; + /** KAToPushServerRequest message. */ + public message: string; - /** UserFolder userFolderKey. */ - public userFolderKey: Uint8Array; + /** KAToPushServerRequest messageSessionUid. */ + public messageSessionUid: Uint8Array; - /** UserFolder keyType. */ - public keyType: Records.RecordKeyType; + /** KAToPushServerRequest encryptedDeviceToken. */ + public encryptedDeviceToken: Uint8Array[]; - /** UserFolder revision. */ - public revision: (number|Long); + /** KAToPushServerRequest userId. */ + public userId: number[]; - /** UserFolder data. */ - public data: Uint8Array; + /** KAToPushServerRequest enterpriseId. */ + public enterpriseId: number[]; /** - * Creates a new UserFolder instance using the specified properties. + * Creates a new KAToPushServerRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UserFolder instance + * @returns KAToPushServerRequest instance */ - public static create(properties?: Vault.IUserFolder): Vault.UserFolder; + public static create(properties?: Push.IKAToPushServerRequest): Push.KAToPushServerRequest; /** - * Encodes the specified UserFolder message. Does not implicitly {@link Vault.UserFolder.verify|verify} messages. - * @param message UserFolder message or plain object to encode + * Encodes the specified KAToPushServerRequest message. 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 encode(message: Vault.IUserFolder, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Push.IKAToPushServerRequest, 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 + * 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: Vault.IUserFolder, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Push.IKAToPushServerRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserFolder message from the specified reader or buffer. + * Decodes a KAToPushServerRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserFolder + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.UserFolder; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.KAToPushServerRequest; /** - * Decodes a UserFolder message from the specified reader or buffer, length delimited. + * Decodes a KAToPushServerRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UserFolder + * @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)): Vault.UserFolder; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Push.KAToPushServerRequest; /** - * Verifies a UserFolder message. + * 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 UserFolder message from a plain object. Also converts values to their respective internal types. + * Creates a KAToPushServerRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserFolder + * @returns KAToPushServerRequest */ - public static fromObject(object: { [k: string]: any }): Vault.UserFolder; + public static fromObject(object: { [k: string]: any }): Push.KAToPushServerRequest; /** - * Creates a plain object from a UserFolder message. Also converts values to other types if specified. - * @param message UserFolder + * Creates a plain object from a KAToPushServerRequest message. Also converts values to other types if specified. + * @param message KAToPushServerRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.UserFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Push.KAToPushServerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserFolder to JSON. + * Converts this KAToPushServerRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UserFolder + * Gets the default type url for KAToPushServerRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SharedFolder. */ - interface ISharedFolder { - - /** SharedFolder sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); - - /** SharedFolder revision */ - revision?: (number|Long|null); - - /** SharedFolder sharedFolderKey */ - sharedFolderKey?: (Uint8Array|null); - - /** SharedFolder keyType */ - keyType?: (Records.RecordKeyType|null); - - /** SharedFolder data */ - data?: (Uint8Array|null); - - /** SharedFolder defaultManageRecords */ - defaultManageRecords?: (boolean|null); - - /** SharedFolder defaultManageUsers */ - defaultManageUsers?: (boolean|null); - - /** SharedFolder defaultCanEdit */ - defaultCanEdit?: (boolean|null); - - /** SharedFolder defaultCanReshare */ - defaultCanReshare?: (boolean|null); - - /** SharedFolder cacheStatus */ - cacheStatus?: (Vault.CacheStatus|null); + /** Properties of a WssConnectionRequest. */ + interface IWssConnectionRequest { - /** SharedFolder owner */ - owner?: (string|null); + /** WssConnectionRequest messageSessionUid */ + messageSessionUid?: (Uint8Array|null); - /** SharedFolder ownerAccountUid */ - ownerAccountUid?: (Uint8Array|null); + /** WssConnectionRequest encryptedDeviceToken */ + encryptedDeviceToken?: (Uint8Array|null); - /** SharedFolder name */ - name?: (Uint8Array|null); + /** WssConnectionRequest deviceTimeStamp */ + deviceTimeStamp?: (number|Long|null); } - /** Represents a SharedFolder. */ - class SharedFolder implements ISharedFolder { + /** Represents a WssConnectionRequest. */ + class WssConnectionRequest implements IWssConnectionRequest { /** - * Constructs a new SharedFolder. + * Constructs a new WssConnectionRequest. * @param [properties] Properties to set */ - constructor(properties?: Vault.ISharedFolder); - - /** SharedFolder sharedFolderUid. */ - public sharedFolderUid: Uint8Array; - - /** SharedFolder revision. */ - public revision: (number|Long); - - /** SharedFolder sharedFolderKey. */ - public sharedFolderKey: Uint8Array; - - /** SharedFolder keyType. */ - public keyType: Records.RecordKeyType; - - /** SharedFolder data. */ - public data: Uint8Array; - - /** SharedFolder defaultManageRecords. */ - public defaultManageRecords: boolean; - - /** SharedFolder defaultManageUsers. */ - public defaultManageUsers: boolean; - - /** SharedFolder defaultCanEdit. */ - public defaultCanEdit: boolean; - - /** SharedFolder defaultCanReshare. */ - public defaultCanReshare: boolean; - - /** SharedFolder cacheStatus. */ - public cacheStatus: Vault.CacheStatus; + constructor(properties?: Push.IWssConnectionRequest); - /** SharedFolder owner. */ - public owner: string; + /** WssConnectionRequest messageSessionUid. */ + public messageSessionUid: Uint8Array; - /** SharedFolder ownerAccountUid. */ - public ownerAccountUid: Uint8Array; + /** WssConnectionRequest encryptedDeviceToken. */ + public encryptedDeviceToken: Uint8Array; - /** SharedFolder name. */ - public name: Uint8Array; + /** WssConnectionRequest deviceTimeStamp. */ + public deviceTimeStamp: (number|Long); /** - * Creates a new SharedFolder instance using the specified properties. + * Creates a new WssConnectionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SharedFolder instance + * @returns WssConnectionRequest instance */ - public static create(properties?: Vault.ISharedFolder): Vault.SharedFolder; + public static create(properties?: Push.IWssConnectionRequest): Push.WssConnectionRequest; /** - * Encodes the specified SharedFolder message. Does not implicitly {@link Vault.SharedFolder.verify|verify} messages. - * @param message SharedFolder message or plain object to encode + * Encodes the specified WssConnectionRequest message. 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 encode(message: Vault.ISharedFolder, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Push.IWssConnectionRequest, 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 + * 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: Vault.ISharedFolder, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Push.IWssConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SharedFolder message from the specified reader or buffer. + * Decodes a WssConnectionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SharedFolder + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolder; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.WssConnectionRequest; /** - * Decodes a SharedFolder message from the specified reader or buffer, length delimited. + * Decodes a WssConnectionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SharedFolder + * @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)): Vault.SharedFolder; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Push.WssConnectionRequest; /** - * Verifies a SharedFolder message. + * 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 SharedFolder message from a plain object. Also converts values to their respective internal types. + * Creates a WssConnectionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SharedFolder + * @returns WssConnectionRequest */ - public static fromObject(object: { [k: string]: any }): Vault.SharedFolder; + public static fromObject(object: { [k: string]: any }): Push.WssConnectionRequest; /** - * Creates a plain object from a SharedFolder message. Also converts values to other types if specified. - * @param message SharedFolder + * Creates a plain object from a WssConnectionRequest message. Also converts values to other types if specified. + * @param message WssConnectionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharedFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Push.WssConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SharedFolder to JSON. + * Converts this WssConnectionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SharedFolder + * Gets the default type url for WssConnectionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a UserFolderSharedFolder. */ - interface IUserFolderSharedFolder { - - /** UserFolderSharedFolder folderUid */ - folderUid?: (Uint8Array|null); + /** Properties of a WssClientResponse. */ + interface IWssClientResponse { - /** UserFolderSharedFolder sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + /** WssClientResponse messageType */ + messageType?: (Push.MessageType|null); - /** UserFolderSharedFolder revision */ - revision?: (number|Long|null); + /** WssClientResponse message */ + message?: (string|null); } - /** Represents a UserFolderSharedFolder. */ - class UserFolderSharedFolder implements IUserFolderSharedFolder { + /** Represents a WssClientResponse. */ + class WssClientResponse implements IWssClientResponse { /** - * Constructs a new UserFolderSharedFolder. + * Constructs a new WssClientResponse. * @param [properties] Properties to set */ - constructor(properties?: Vault.IUserFolderSharedFolder); + constructor(properties?: Push.IWssClientResponse); - /** UserFolderSharedFolder folderUid. */ - public folderUid: Uint8Array; + /** WssClientResponse messageType. */ + public messageType: Push.MessageType; - /** UserFolderSharedFolder sharedFolderUid. */ - public sharedFolderUid: Uint8Array; - - /** UserFolderSharedFolder revision. */ - public revision: (number|Long); + /** WssClientResponse message. */ + public message: string; /** - * Creates a new UserFolderSharedFolder instance using the specified properties. + * Creates a new WssClientResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UserFolderSharedFolder instance + * @returns WssClientResponse instance */ - public static create(properties?: Vault.IUserFolderSharedFolder): Vault.UserFolderSharedFolder; + public static create(properties?: Push.IWssClientResponse): Push.WssClientResponse; /** - * Encodes the specified UserFolderSharedFolder message. Does not implicitly {@link Vault.UserFolderSharedFolder.verify|verify} messages. - * @param message UserFolderSharedFolder message or plain object to encode + * Encodes the specified WssClientResponse message. 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 encode(message: Vault.IUserFolderSharedFolder, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Push.IWssClientResponse, 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 + * 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: Vault.IUserFolderSharedFolder, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Push.IWssClientResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserFolderSharedFolder message from the specified reader or buffer. + * Decodes a WssClientResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserFolderSharedFolder + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.UserFolderSharedFolder; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.WssClientResponse; /** - * Decodes a UserFolderSharedFolder message from the specified reader or buffer, length delimited. + * Decodes a WssClientResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UserFolderSharedFolder + * @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)): Vault.UserFolderSharedFolder; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Push.WssClientResponse; /** - * Verifies a UserFolderSharedFolder message. + * 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 UserFolderSharedFolder message from a plain object. Also converts values to their respective internal types. + * Creates a WssClientResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserFolderSharedFolder + * @returns WssClientResponse */ - public static fromObject(object: { [k: string]: any }): Vault.UserFolderSharedFolder; + public static fromObject(object: { [k: string]: any }): Push.WssClientResponse; /** - * Creates a plain object from a UserFolderSharedFolder message. Also converts values to other types if specified. - * @param message UserFolderSharedFolder + * Creates a plain object from a WssClientResponse message. Also converts values to other types if specified. + * @param message WssClientResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.UserFolderSharedFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Push.WssClientResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserFolderSharedFolder to JSON. + * Converts this WssClientResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UserFolderSharedFolder + * Gets the default type url for WssClientResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SharedFolderFolder. */ - interface ISharedFolderFolder { - - /** SharedFolderFolder sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); - - /** SharedFolderFolder folderUid */ - folderUid?: (Uint8Array|null); - - /** SharedFolderFolder parentUid */ - parentUid?: (Uint8Array|null); + /** Properties of a PushServerDeviceRegistrationRequest. */ + interface IPushServerDeviceRegistrationRequest { - /** SharedFolderFolder sharedFolderFolderKey */ - sharedFolderFolderKey?: (Uint8Array|null); + /** PushServerDeviceRegistrationRequest encryptedDeviceToken */ + encryptedDeviceToken?: (Uint8Array|null); - /** SharedFolderFolder keyType */ - keyType?: (Records.RecordKeyType|null); + /** PushServerDeviceRegistrationRequest pushToken */ + pushToken?: (string|null); - /** SharedFolderFolder revision */ - revision?: (number|Long|null); + /** PushServerDeviceRegistrationRequest mobilePushPlatform */ + mobilePushPlatform?: (string|null); - /** SharedFolderFolder data */ - data?: (Uint8Array|null); + /** PushServerDeviceRegistrationRequest transmissionKey */ + transmissionKey?: (Uint8Array|null); } - /** Represents a SharedFolderFolder. */ - class SharedFolderFolder implements ISharedFolderFolder { + /** Represents a PushServerDeviceRegistrationRequest. */ + class PushServerDeviceRegistrationRequest implements IPushServerDeviceRegistrationRequest { /** - * Constructs a new SharedFolderFolder. + * Constructs a new PushServerDeviceRegistrationRequest. * @param [properties] Properties to set */ - constructor(properties?: Vault.ISharedFolderFolder); - - /** SharedFolderFolder sharedFolderUid. */ - public sharedFolderUid: Uint8Array; - - /** SharedFolderFolder folderUid. */ - public folderUid: Uint8Array; - - /** SharedFolderFolder parentUid. */ - public parentUid: Uint8Array; + constructor(properties?: Push.IPushServerDeviceRegistrationRequest); - /** SharedFolderFolder sharedFolderFolderKey. */ - public sharedFolderFolderKey: Uint8Array; + /** PushServerDeviceRegistrationRequest encryptedDeviceToken. */ + public encryptedDeviceToken: Uint8Array; - /** SharedFolderFolder keyType. */ - public keyType: Records.RecordKeyType; + /** PushServerDeviceRegistrationRequest pushToken. */ + public pushToken: string; - /** SharedFolderFolder revision. */ - public revision: (number|Long); + /** PushServerDeviceRegistrationRequest mobilePushPlatform. */ + public mobilePushPlatform: string; - /** SharedFolderFolder data. */ - public data: Uint8Array; + /** PushServerDeviceRegistrationRequest transmissionKey. */ + public transmissionKey: Uint8Array; /** - * Creates a new SharedFolderFolder instance using the specified properties. + * Creates a new PushServerDeviceRegistrationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SharedFolderFolder instance + * @returns PushServerDeviceRegistrationRequest instance */ - public static create(properties?: Vault.ISharedFolderFolder): Vault.SharedFolderFolder; + public static create(properties?: Push.IPushServerDeviceRegistrationRequest): Push.PushServerDeviceRegistrationRequest; /** - * Encodes the specified SharedFolderFolder message. Does not implicitly {@link Vault.SharedFolderFolder.verify|verify} messages. - * @param message SharedFolderFolder message or plain object to encode + * Encodes the specified PushServerDeviceRegistrationRequest message. 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 encode(message: Vault.ISharedFolderFolder, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Push.IPushServerDeviceRegistrationRequest, 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 + * 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: Vault.ISharedFolderFolder, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Push.IPushServerDeviceRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SharedFolderFolder message from the specified reader or buffer. + * Decodes a PushServerDeviceRegistrationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SharedFolderFolder + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderFolder; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.PushServerDeviceRegistrationRequest; /** - * Decodes a SharedFolderFolder message from the specified reader or buffer, length delimited. + * Decodes a PushServerDeviceRegistrationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SharedFolderFolder + * @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)): Vault.SharedFolderFolder; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Push.PushServerDeviceRegistrationRequest; /** - * Verifies a SharedFolderFolder message. + * 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 SharedFolderFolder message from a plain object. Also converts values to their respective internal types. + * Creates a PushServerDeviceRegistrationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SharedFolderFolder + * @returns PushServerDeviceRegistrationRequest */ - public static fromObject(object: { [k: string]: any }): Vault.SharedFolderFolder; + public static fromObject(object: { [k: string]: any }): Push.PushServerDeviceRegistrationRequest; /** - * Creates a plain object from a SharedFolderFolder message. Also converts values to other types if specified. - * @param message SharedFolderFolder + * Creates a plain object from a PushServerDeviceRegistrationRequest message. Also converts values to other types if specified. + * @param message PushServerDeviceRegistrationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharedFolderFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Push.PushServerDeviceRegistrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SharedFolderFolder to JSON. + * Converts this PushServerDeviceRegistrationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SharedFolderFolder + * Gets the default type url for PushServerDeviceRegistrationRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SharedFolderKey. */ - interface ISharedFolderKey { - - /** SharedFolderKey sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + /** Properties of a SnsMessage. */ + interface ISnsMessage { - /** SharedFolderKey sharedFolderKey */ - sharedFolderKey?: (Uint8Array|null); + /** SnsMessage messageType */ + messageType?: (Push.MessageType|null); - /** SharedFolderKey keyType */ - keyType?: (Records.RecordKeyType|null); + /** SnsMessage message */ + message?: (Uint8Array|null); } - /** Represents a SharedFolderKey. */ - class SharedFolderKey implements ISharedFolderKey { + /** Represents a SnsMessage. */ + class SnsMessage implements ISnsMessage { /** - * Constructs a new SharedFolderKey. + * Constructs a new SnsMessage. * @param [properties] Properties to set */ - constructor(properties?: Vault.ISharedFolderKey); - - /** SharedFolderKey sharedFolderUid. */ - public sharedFolderUid: Uint8Array; + constructor(properties?: Push.ISnsMessage); - /** SharedFolderKey sharedFolderKey. */ - public sharedFolderKey: Uint8Array; + /** SnsMessage messageType. */ + public messageType: Push.MessageType; - /** SharedFolderKey keyType. */ - public keyType: Records.RecordKeyType; + /** SnsMessage message. */ + public message: Uint8Array; /** - * Creates a new SharedFolderKey instance using the specified properties. + * Creates a new SnsMessage instance using the specified properties. * @param [properties] Properties to set - * @returns SharedFolderKey instance + * @returns SnsMessage instance */ - public static create(properties?: Vault.ISharedFolderKey): Vault.SharedFolderKey; + public static create(properties?: Push.ISnsMessage): Push.SnsMessage; /** - * Encodes the specified SharedFolderKey message. Does not implicitly {@link Vault.SharedFolderKey.verify|verify} messages. - * @param message SharedFolderKey message or plain object to encode + * Encodes the specified SnsMessage message. 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 encode(message: Vault.ISharedFolderKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Push.ISnsMessage, 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 + * 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: Vault.ISharedFolderKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Push.ISnsMessage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SharedFolderKey message from the specified reader or buffer. + * Decodes a SnsMessage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SharedFolderKey + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderKey; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.SnsMessage; /** - * Decodes a SharedFolderKey message from the specified reader or buffer, length delimited. + * Decodes a SnsMessage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SharedFolderKey + * @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)): Vault.SharedFolderKey; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Push.SnsMessage; /** - * Verifies a SharedFolderKey message. + * 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 SharedFolderKey message from a plain object. Also converts values to their respective internal types. + * Creates a SnsMessage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SharedFolderKey + * @returns SnsMessage */ - public static fromObject(object: { [k: string]: any }): Vault.SharedFolderKey; + public static fromObject(object: { [k: string]: any }): Push.SnsMessage; /** - * Creates a plain object from a SharedFolderKey message. Also converts values to other types if specified. - * @param message SharedFolderKey + * Creates a plain object from a SnsMessage message. Also converts values to other types if specified. + * @param message SnsMessage * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharedFolderKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Push.SnsMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SharedFolderKey to JSON. + * Converts this SnsMessage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SharedFolderKey + * Gets the default type url for SnsMessage * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } +} - /** Properties of a Team. */ - interface ITeam { - - /** Team teamUid */ - teamUid?: (Uint8Array|null); - - /** Team name */ - name?: (string|null); - - /** Team teamKey */ - teamKey?: (Uint8Array|null); - - /** Team teamKeyType */ - teamKeyType?: (Records.RecordKeyType|null); - - /** Team teamPrivateKey */ - teamPrivateKey?: (Uint8Array|null); - - /** Team restrictEdit */ - restrictEdit?: (boolean|null); - - /** Team restrictShare */ - restrictShare?: (boolean|null); - - /** Team restrictView */ - restrictView?: (boolean|null); - - /** Team removedSharedFolders */ - removedSharedFolders?: (Uint8Array[]|null); +/** Namespace ServiceLogger. */ +export namespace ServiceLogger { - /** Team sharedFolderKeys */ - sharedFolderKeys?: (Vault.ISharedFolderKey[]|null); + /** Properties of an IdRange. */ + interface IIdRange { - /** Team teamEccPrivateKey */ - teamEccPrivateKey?: (Uint8Array|null); + /** IdRange startingId */ + startingId?: (number|Long|null); - /** Team teamEccPublicKey */ - teamEccPublicKey?: (Uint8Array|null); + /** IdRange endingId */ + endingId?: (number|Long|null); } - /** Represents a Team. */ - class Team implements ITeam { + /** Specifies the first and last IDs of a range of IDs so that a Request can ask for information about a range of IDs. */ + class IdRange implements IIdRange { /** - * Constructs a new Team. + * Constructs a new IdRange. * @param [properties] Properties to set */ - constructor(properties?: Vault.ITeam); - - /** Team teamUid. */ - public teamUid: Uint8Array; - - /** Team name. */ - public name: string; - - /** Team teamKey. */ - public teamKey: Uint8Array; - - /** Team teamKeyType. */ - public teamKeyType: Records.RecordKeyType; - - /** Team teamPrivateKey. */ - public teamPrivateKey: Uint8Array; - - /** Team restrictEdit. */ - public restrictEdit: boolean; - - /** Team restrictShare. */ - public restrictShare: boolean; - - /** Team restrictView. */ - public restrictView: boolean; - - /** Team removedSharedFolders. */ - public removedSharedFolders: Uint8Array[]; - - /** Team sharedFolderKeys. */ - public sharedFolderKeys: Vault.ISharedFolderKey[]; + constructor(properties?: ServiceLogger.IIdRange); - /** Team teamEccPrivateKey. */ - public teamEccPrivateKey: Uint8Array; + /** IdRange startingId. */ + public startingId: (number|Long); - /** Team teamEccPublicKey. */ - public teamEccPublicKey: Uint8Array; + /** IdRange endingId. */ + public endingId: (number|Long); /** - * Creates a new Team instance using the specified properties. + * Creates a new IdRange instance using the specified properties. * @param [properties] Properties to set - * @returns Team instance + * @returns IdRange instance */ - public static create(properties?: Vault.ITeam): Vault.Team; + public static create(properties?: ServiceLogger.IIdRange): ServiceLogger.IdRange; /** - * Encodes the specified Team message. Does not implicitly {@link Vault.Team.verify|verify} messages. - * @param message Team message or plain object to encode + * Encodes the specified IdRange message. 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 encode(message: Vault.ITeam, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IIdRange, 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 + * 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: Vault.ITeam, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ServiceLogger.IIdRange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Team message from the specified reader or buffer. + * Decodes an IdRange message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Team + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.Team; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.IdRange; /** - * Decodes a Team message from the specified reader or buffer, length delimited. + * Decodes an IdRange message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Team + * @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)): Vault.Team; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.IdRange; /** - * Verifies a Team message. + * 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 a Team message from a plain object. Also converts values to their respective internal types. + * Creates an IdRange message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Team + * @returns IdRange */ - public static fromObject(object: { [k: string]: any }): Vault.Team; + public static fromObject(object: { [k: string]: any }): ServiceLogger.IdRange; /** - * Creates a plain object from a Team message. Also converts values to other types if specified. - * @param message Team + * Creates a plain object from an IdRange message. Also converts values to other types if specified. + * @param message IdRange * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.Team, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.IdRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Team to JSON. + * Converts this IdRange to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Team + * Gets the default type url for IdRange * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Record. */ - interface IRecord { - - /** Record recordUid */ - recordUid?: (Uint8Array|null); - - /** Record revision */ - revision?: (number|Long|null); - - /** Record version */ - version?: (number|null); - - /** Record shared */ - shared?: (boolean|null); - - /** Record clientModifiedTime */ - clientModifiedTime?: (number|Long|null); - - /** Record data */ - data?: (Uint8Array|null); - - /** Record extra */ - extra?: (Uint8Array|null); + /** Properties of a ServiceInfoSpecifier. */ + interface IServiceInfoSpecifier { - /** Record udata */ - udata?: (string|null); + /** ServiceInfoSpecifier all */ + all?: (boolean|null); - /** Record fileSize */ - fileSize?: (number|Long|null); + /** ServiceInfoSpecifier serviceInfoId */ + serviceInfoId?: (number|Long|null); - /** Record thumbnailSize */ - thumbnailSize?: (number|Long|null); + /** ServiceInfoSpecifier name */ + name?: (string|null); } - /** Represents a Record. */ - class Record implements IRecord { + /** Used in ServiceInfoRequest */ + class ServiceInfoSpecifier implements IServiceInfoSpecifier { /** - * Constructs a new Record. + * Constructs a new ServiceInfoSpecifier. * @param [properties] Properties to set */ - constructor(properties?: Vault.IRecord); - - /** Record recordUid. */ - public recordUid: Uint8Array; - - /** Record revision. */ - public revision: (number|Long); - - /** Record version. */ - public version: number; - - /** Record shared. */ - public shared: boolean; - - /** Record clientModifiedTime. */ - public clientModifiedTime: (number|Long); - - /** Record data. */ - public data: Uint8Array; - - /** Record extra. */ - public extra: Uint8Array; + constructor(properties?: ServiceLogger.IServiceInfoSpecifier); - /** Record udata. */ - public udata: string; + /** ServiceInfoSpecifier all. */ + public all: boolean; - /** Record fileSize. */ - public fileSize: (number|Long); + /** ServiceInfoSpecifier serviceInfoId. */ + public serviceInfoId: (number|Long); - /** Record thumbnailSize. */ - public thumbnailSize: (number|Long); + /** ServiceInfoSpecifier name. */ + public name: string; /** - * Creates a new Record instance using the specified properties. + * Creates a new ServiceInfoSpecifier instance using the specified properties. * @param [properties] Properties to set - * @returns Record instance + * @returns ServiceInfoSpecifier instance */ - public static create(properties?: Vault.IRecord): Vault.Record; + public static create(properties?: ServiceLogger.IServiceInfoSpecifier): ServiceLogger.ServiceInfoSpecifier; /** - * Encodes the specified Record message. Does not implicitly {@link Vault.Record.verify|verify} messages. - * @param message Record message or plain object to encode + * Encodes the specified ServiceInfoSpecifier message. 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 encode(message: Vault.IRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceInfoSpecifier, 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 + * 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: Vault.IRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ServiceLogger.IServiceInfoSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Record message from the specified reader or buffer. + * Decodes a ServiceInfoSpecifier message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Record + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.Record; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceInfoSpecifier; /** - * Decodes a Record message from the specified reader or buffer, length delimited. + * Decodes a ServiceInfoSpecifier message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Record + * @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)): Vault.Record; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceInfoSpecifier; /** - * Verifies a Record message. + * 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 Record message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceInfoSpecifier message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Record + * @returns ServiceInfoSpecifier */ - public static fromObject(object: { [k: string]: any }): Vault.Record; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceInfoSpecifier; /** - * Creates a plain object from a Record message. Also converts values to other types if specified. - * @param message Record + * Creates a plain object from a ServiceInfoSpecifier message. Also converts values to other types if specified. + * @param message ServiceInfoSpecifier * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.Record, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceInfoSpecifier, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Record to JSON. + * Converts this ServiceInfoSpecifier to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Record + * Gets the default type url for ServiceInfoSpecifier * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordLink. */ - interface IRecordLink { + /** Properties of a ServiceInfoRequest. */ + interface IServiceInfoRequest { - /** RecordLink parentRecordUid */ - parentRecordUid?: (Uint8Array|null); - - /** RecordLink childRecordUid */ - childRecordUid?: (Uint8Array|null); - - /** RecordLink recordKey */ - recordKey?: (Uint8Array|null); - - /** RecordLink revision */ - revision?: (number|Long|null); + /** ServiceInfoRequest serviceInfoSpecifier */ + serviceInfoSpecifier?: (ServiceLogger.IServiceInfoSpecifier[]|null); } - /** Represents a RecordLink. */ - class RecordLink implements IRecordLink { + /** Request information about one or more services by ID or name, or retrieve all. */ + class ServiceInfoRequest implements IServiceInfoRequest { /** - * Constructs a new RecordLink. + * Constructs a new ServiceInfoRequest. * @param [properties] Properties to set */ - constructor(properties?: Vault.IRecordLink); - - /** RecordLink parentRecordUid. */ - public parentRecordUid: Uint8Array; - - /** RecordLink childRecordUid. */ - public childRecordUid: Uint8Array; - - /** RecordLink recordKey. */ - public recordKey: Uint8Array; + constructor(properties?: ServiceLogger.IServiceInfoRequest); - /** RecordLink revision. */ - public revision: (number|Long); + /** ServiceInfoRequest serviceInfoSpecifier. */ + public serviceInfoSpecifier: ServiceLogger.IServiceInfoSpecifier[]; /** - * Creates a new RecordLink instance using the specified properties. + * Creates a new ServiceInfoRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RecordLink instance + * @returns ServiceInfoRequest instance */ - public static create(properties?: Vault.IRecordLink): Vault.RecordLink; + public static create(properties?: ServiceLogger.IServiceInfoRequest): ServiceLogger.ServiceInfoRequest; /** - * Encodes the specified RecordLink message. Does not implicitly {@link Vault.RecordLink.verify|verify} messages. - * @param message RecordLink message or plain object to encode + * Encodes the specified ServiceInfoRequest message. 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 encode(message: Vault.IRecordLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceInfoRequest, 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 + * 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: Vault.IRecordLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ServiceLogger.IServiceInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordLink message from the specified reader or buffer. + * Decodes a ServiceInfoRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordLink + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.RecordLink; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceInfoRequest; /** - * Decodes a RecordLink message from the specified reader or buffer, length delimited. + * Decodes a ServiceInfoRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordLink + * @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)): Vault.RecordLink; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceInfoRequest; /** - * Verifies a RecordLink message. + * 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 RecordLink message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceInfoRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordLink + * @returns ServiceInfoRequest */ - public static fromObject(object: { [k: string]: any }): Vault.RecordLink; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceInfoRequest; /** - * Creates a plain object from a RecordLink message. Also converts values to other types if specified. - * @param message RecordLink + * Creates a plain object from a ServiceInfoRequest message. Also converts values to other types if specified. + * @param message ServiceInfoRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.RecordLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordLink to JSON. + * Converts this ServiceInfoRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordLink + * Gets the default type url for ServiceInfoRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a UserFolderRecord. */ - interface IUserFolderRecord { + /** Properties of a ServiceInfoRecord. */ + interface IServiceInfoRecord { - /** UserFolderRecord folderUid */ - folderUid?: (Uint8Array|null); + /** ServiceInfoRecord serviceInfoId */ + serviceInfoId?: (number|Long|null); - /** UserFolderRecord recordUid */ - recordUid?: (Uint8Array|null); + /** ServiceInfoRecord name */ + name?: (string|null); - /** UserFolderRecord revision */ - revision?: (number|Long|null); + /** ServiceInfoRecord deleteAfter */ + deleteAfter?: (number|null); + + /** ServiceInfoRecord deleteAfterTimeUnits */ + deleteAfterTimeUnits?: (string|null); + + /** ServiceInfoRecord isShortTermLogging */ + isShortTermLogging?: (boolean|null); } - /** Represents a UserFolderRecord. */ - class UserFolderRecord implements IUserFolderRecord { + /** Used in ServiceInfoResponse */ + class ServiceInfoRecord implements IServiceInfoRecord { /** - * Constructs a new UserFolderRecord. + * Constructs a new ServiceInfoRecord. * @param [properties] Properties to set */ - constructor(properties?: Vault.IUserFolderRecord); + constructor(properties?: ServiceLogger.IServiceInfoRecord); - /** UserFolderRecord folderUid. */ - public folderUid: Uint8Array; + /** ServiceInfoRecord serviceInfoId. */ + public serviceInfoId: (number|Long); - /** UserFolderRecord recordUid. */ - public recordUid: Uint8Array; + /** ServiceInfoRecord name. */ + public name: string; - /** UserFolderRecord revision. */ - public revision: (number|Long); + /** ServiceInfoRecord deleteAfter. */ + public deleteAfter: number; + + /** ServiceInfoRecord deleteAfterTimeUnits. */ + public deleteAfterTimeUnits: string; + + /** ServiceInfoRecord isShortTermLogging. */ + public isShortTermLogging: boolean; /** - * Creates a new UserFolderRecord instance using the specified properties. + * Creates a new ServiceInfoRecord instance using the specified properties. * @param [properties] Properties to set - * @returns UserFolderRecord instance + * @returns ServiceInfoRecord instance */ - public static create(properties?: Vault.IUserFolderRecord): Vault.UserFolderRecord; + public static create(properties?: ServiceLogger.IServiceInfoRecord): ServiceLogger.ServiceInfoRecord; /** - * Encodes the specified UserFolderRecord message. Does not implicitly {@link Vault.UserFolderRecord.verify|verify} messages. - * @param message UserFolderRecord message or plain object to encode + * Encodes the specified ServiceInfoRecord message. 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 encode(message: Vault.IUserFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceInfoRecord, 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 + * 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: Vault.IUserFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ServiceLogger.IServiceInfoRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserFolderRecord message from the specified reader or buffer. + * Decodes a ServiceInfoRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserFolderRecord + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.UserFolderRecord; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceInfoRecord; /** - * Decodes a UserFolderRecord message from the specified reader or buffer, length delimited. + * Decodes a ServiceInfoRecord message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UserFolderRecord + * @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)): Vault.UserFolderRecord; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceInfoRecord; /** - * Verifies a UserFolderRecord message. + * 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 UserFolderRecord message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceInfoRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserFolderRecord + * @returns ServiceInfoRecord */ - public static fromObject(object: { [k: string]: any }): Vault.UserFolderRecord; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceInfoRecord; /** - * Creates a plain object from a UserFolderRecord message. Also converts values to other types if specified. - * @param message UserFolderRecord + * Creates a plain object from a ServiceInfoRecord message. Also converts values to other types if specified. + * @param message ServiceInfoRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.UserFolderRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceInfoRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserFolderRecord to JSON. + * Converts this ServiceInfoRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UserFolderRecord + * Gets the default type url for ServiceInfoRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SharedFolderFolderRecord. */ - interface ISharedFolderFolderRecord { - - /** SharedFolderFolderRecord sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); - - /** SharedFolderFolderRecord folderUid */ - folderUid?: (Uint8Array|null); - - /** SharedFolderFolderRecord recordUid */ - recordUid?: (Uint8Array|null); + /** Properties of a ServiceInfoResponse. */ + interface IServiceInfoResponse { - /** SharedFolderFolderRecord revision */ - revision?: (number|Long|null); + /** ServiceInfoResponse serviceInfoRecord */ + serviceInfoRecord?: (ServiceLogger.IServiceInfoRecord[]|null); } - /** Represents a SharedFolderFolderRecord. */ - class SharedFolderFolderRecord implements ISharedFolderFolderRecord { + /** Returns information about Services */ + class ServiceInfoResponse implements IServiceInfoResponse { /** - * Constructs a new SharedFolderFolderRecord. + * Constructs a new ServiceInfoResponse. * @param [properties] Properties to set */ - constructor(properties?: Vault.ISharedFolderFolderRecord); - - /** SharedFolderFolderRecord sharedFolderUid. */ - public sharedFolderUid: Uint8Array; - - /** SharedFolderFolderRecord folderUid. */ - public folderUid: Uint8Array; - - /** SharedFolderFolderRecord recordUid. */ - public recordUid: Uint8Array; + constructor(properties?: ServiceLogger.IServiceInfoResponse); - /** SharedFolderFolderRecord revision. */ - public revision: (number|Long); + /** ServiceInfoResponse serviceInfoRecord. */ + public serviceInfoRecord: ServiceLogger.IServiceInfoRecord[]; /** - * Creates a new SharedFolderFolderRecord instance using the specified properties. + * Creates a new ServiceInfoResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SharedFolderFolderRecord instance + * @returns ServiceInfoResponse instance */ - public static create(properties?: Vault.ISharedFolderFolderRecord): Vault.SharedFolderFolderRecord; + public static create(properties?: ServiceLogger.IServiceInfoResponse): ServiceLogger.ServiceInfoResponse; /** - * Encodes the specified SharedFolderFolderRecord message. Does not implicitly {@link Vault.SharedFolderFolderRecord.verify|verify} messages. - * @param message SharedFolderFolderRecord message or plain object to encode + * Encodes the specified ServiceInfoResponse message. 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 encode(message: Vault.ISharedFolderFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceInfoResponse, 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 + * 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: Vault.ISharedFolderFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ServiceLogger.IServiceInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SharedFolderFolderRecord message from the specified reader or buffer. + * Decodes a ServiceInfoResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SharedFolderFolderRecord + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderFolderRecord; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceInfoResponse; /** - * Decodes a SharedFolderFolderRecord message from the specified reader or buffer, length delimited. + * Decodes a ServiceInfoResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SharedFolderFolderRecord + * @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)): Vault.SharedFolderFolderRecord; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceInfoResponse; /** - * Verifies a SharedFolderFolderRecord message. + * 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 SharedFolderFolderRecord message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceInfoResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SharedFolderFolderRecord + * @returns ServiceInfoResponse */ - public static fromObject(object: { [k: string]: any }): Vault.SharedFolderFolderRecord; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceInfoResponse; /** - * Creates a plain object from a SharedFolderFolderRecord message. Also converts values to other types if specified. - * @param message SharedFolderFolderRecord + * Creates a plain object from a ServiceInfoResponse message. Also converts values to other types if specified. + * @param message ServiceInfoResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharedFolderFolderRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SharedFolderFolderRecord to JSON. + * Converts this ServiceInfoResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SharedFolderFolderRecord + * Gets the default type url for ServiceInfoResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NonSharedData. */ - interface INonSharedData { - - /** NonSharedData recordUid */ - recordUid?: (Uint8Array|null); + /** Properties of a ServiceInfoUpdateRequest. */ + interface IServiceInfoUpdateRequest { - /** NonSharedData data */ - data?: (Uint8Array|null); + /** ServiceInfoUpdateRequest serviceInfoRecord */ + serviceInfoRecord?: (ServiceLogger.IServiceInfoRecord[]|null); } - /** Represents a NonSharedData. */ - class NonSharedData implements INonSharedData { + /** Update one or more ServiceInfo records by their IDs */ + class ServiceInfoUpdateRequest implements IServiceInfoUpdateRequest { /** - * Constructs a new NonSharedData. + * Constructs a new ServiceInfoUpdateRequest. * @param [properties] Properties to set */ - constructor(properties?: Vault.INonSharedData); - - /** NonSharedData recordUid. */ - public recordUid: Uint8Array; + constructor(properties?: ServiceLogger.IServiceInfoUpdateRequest); - /** NonSharedData data. */ - public data: Uint8Array; + /** ServiceInfoUpdateRequest serviceInfoRecord. */ + public serviceInfoRecord: ServiceLogger.IServiceInfoRecord[]; /** - * Creates a new NonSharedData instance using the specified properties. + * Creates a new ServiceInfoUpdateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NonSharedData instance + * @returns ServiceInfoUpdateRequest instance */ - public static create(properties?: Vault.INonSharedData): Vault.NonSharedData; + public static create(properties?: ServiceLogger.IServiceInfoUpdateRequest): ServiceLogger.ServiceInfoUpdateRequest; /** - * Encodes the specified NonSharedData message. Does not implicitly {@link Vault.NonSharedData.verify|verify} messages. - * @param message NonSharedData message or plain object to encode + * Encodes the specified ServiceInfoUpdateRequest message. 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 encode(message: Vault.INonSharedData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceInfoUpdateRequest, 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 + * 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: Vault.INonSharedData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ServiceLogger.IServiceInfoUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NonSharedData message from the specified reader or buffer. + * Decodes a ServiceInfoUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NonSharedData + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.NonSharedData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceInfoUpdateRequest; /** - * Decodes a NonSharedData message from the specified reader or buffer, length delimited. + * Decodes a ServiceInfoUpdateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NonSharedData + * @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)): Vault.NonSharedData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceInfoUpdateRequest; /** - * Verifies a NonSharedData message. + * 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 NonSharedData message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceInfoUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NonSharedData + * @returns ServiceInfoUpdateRequest */ - public static fromObject(object: { [k: string]: any }): Vault.NonSharedData; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceInfoUpdateRequest; /** - * Creates a plain object from a NonSharedData message. Also converts values to other types if specified. - * @param message NonSharedData + * Creates a plain object from a ServiceInfoUpdateRequest message. Also converts values to other types if specified. + * @param message ServiceInfoUpdateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.NonSharedData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceInfoUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NonSharedData to JSON. + * Converts this ServiceInfoUpdateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NonSharedData + * Gets the default type url for ServiceInfoUpdateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordMetaData. */ - interface IRecordMetaData { - - /** RecordMetaData recordUid */ - recordUid?: (Uint8Array|null); - - /** RecordMetaData owner */ - owner?: (boolean|null); - - /** RecordMetaData recordKey */ - recordKey?: (Uint8Array|null); - - /** RecordMetaData recordKeyType */ - recordKeyType?: (Records.RecordKeyType|null); - - /** RecordMetaData canShare */ - canShare?: (boolean|null); - - /** RecordMetaData canEdit */ - canEdit?: (boolean|null); + /** Properties of a ServiceRuleSpecifier. */ + interface IServiceRuleSpecifier { - /** RecordMetaData ownerAccountUid */ - ownerAccountUid?: (Uint8Array|null); + /** ServiceRuleSpecifier all */ + all?: (boolean|null); - /** RecordMetaData expiration */ - expiration?: (number|Long|null); + /** ServiceRuleSpecifier serviceRuleId */ + serviceRuleId?: (number|Long|null); - /** RecordMetaData expirationNotificationType */ - expirationNotificationType?: (Records.TimerNotificationType|null); + /** ServiceRuleSpecifier serviceInfoId */ + serviceInfoId?: (number|Long|null); - /** RecordMetaData ownerUsername */ - ownerUsername?: (string|null); + /** ServiceRuleSpecifier resourceIdRange */ + resourceIdRange?: (ServiceLogger.IIdRange[]|null); } - /** Represents a RecordMetaData. */ - class RecordMetaData implements IRecordMetaData { + /** Represents a ServiceRuleSpecifier. */ + class ServiceRuleSpecifier implements IServiceRuleSpecifier { /** - * Constructs a new RecordMetaData. + * Constructs a new ServiceRuleSpecifier. * @param [properties] Properties to set */ - constructor(properties?: Vault.IRecordMetaData); - - /** RecordMetaData recordUid. */ - public recordUid: Uint8Array; - - /** RecordMetaData owner. */ - public owner: boolean; - - /** RecordMetaData recordKey. */ - public recordKey: Uint8Array; - - /** RecordMetaData recordKeyType. */ - public recordKeyType: Records.RecordKeyType; - - /** RecordMetaData canShare. */ - public canShare: boolean; - - /** RecordMetaData canEdit. */ - public canEdit: boolean; + constructor(properties?: ServiceLogger.IServiceRuleSpecifier); - /** RecordMetaData ownerAccountUid. */ - public ownerAccountUid: Uint8Array; + /** ServiceRuleSpecifier all. */ + public all: boolean; - /** RecordMetaData expiration. */ - public expiration: (number|Long); + /** ServiceRuleSpecifier serviceRuleId. */ + public serviceRuleId: (number|Long); - /** RecordMetaData expirationNotificationType. */ - public expirationNotificationType: Records.TimerNotificationType; + /** ServiceRuleSpecifier serviceInfoId. */ + public serviceInfoId: (number|Long); - /** RecordMetaData ownerUsername. */ - public ownerUsername: string; + /** ServiceRuleSpecifier resourceIdRange. */ + public resourceIdRange: ServiceLogger.IIdRange[]; /** - * Creates a new RecordMetaData instance using the specified properties. + * Creates a new ServiceRuleSpecifier instance using the specified properties. * @param [properties] Properties to set - * @returns RecordMetaData instance + * @returns ServiceRuleSpecifier instance */ - public static create(properties?: Vault.IRecordMetaData): Vault.RecordMetaData; + public static create(properties?: ServiceLogger.IServiceRuleSpecifier): ServiceLogger.ServiceRuleSpecifier; /** - * Encodes the specified RecordMetaData message. Does not implicitly {@link Vault.RecordMetaData.verify|verify} messages. - * @param message RecordMetaData message or plain object to encode + * Encodes the specified ServiceRuleSpecifier message. 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 encode(message: Vault.IRecordMetaData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceRuleSpecifier, 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 + * 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: Vault.IRecordMetaData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ServiceLogger.IServiceRuleSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordMetaData message from the specified reader or buffer. + * Decodes a ServiceRuleSpecifier message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordMetaData + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.RecordMetaData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceRuleSpecifier; /** - * Decodes a RecordMetaData message from the specified reader or buffer, length delimited. + * Decodes a ServiceRuleSpecifier message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordMetaData + * @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)): Vault.RecordMetaData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceRuleSpecifier; /** - * Verifies a RecordMetaData message. + * 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 RecordMetaData message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceRuleSpecifier message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordMetaData + * @returns ServiceRuleSpecifier */ - public static fromObject(object: { [k: string]: any }): Vault.RecordMetaData; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceRuleSpecifier; /** - * Creates a plain object from a RecordMetaData message. Also converts values to other types if specified. - * @param message RecordMetaData + * Creates a plain object from a ServiceRuleSpecifier message. Also converts values to other types if specified. + * @param message ServiceRuleSpecifier * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.RecordMetaData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceRuleSpecifier, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordMetaData to JSON. + * Converts this ServiceRuleSpecifier to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordMetaData + * Gets the default type url for ServiceRuleSpecifier * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SharingChange. */ - interface ISharingChange { - - /** SharingChange recordUid */ - recordUid?: (Uint8Array|null); + /** Properties of a ServiceRuleRequest. */ + interface IServiceRuleRequest { - /** SharingChange shared */ - shared?: (boolean|null); + /** ServiceRuleRequest serviceRuleSpecifier */ + serviceRuleSpecifier?: (ServiceLogger.IServiceRuleSpecifier[]|null); } - /** Represents a SharingChange. */ - class SharingChange implements ISharingChange { + /** Represents a ServiceRuleRequest. */ + class ServiceRuleRequest implements IServiceRuleRequest { /** - * Constructs a new SharingChange. + * Constructs a new ServiceRuleRequest. * @param [properties] Properties to set */ - constructor(properties?: Vault.ISharingChange); - - /** SharingChange recordUid. */ - public recordUid: Uint8Array; + constructor(properties?: ServiceLogger.IServiceRuleRequest); - /** SharingChange shared. */ - public shared: boolean; + /** ServiceRuleRequest serviceRuleSpecifier. */ + public serviceRuleSpecifier: ServiceLogger.IServiceRuleSpecifier[]; /** - * Creates a new SharingChange instance using the specified properties. + * Creates a new ServiceRuleRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SharingChange instance + * @returns ServiceRuleRequest instance */ - public static create(properties?: Vault.ISharingChange): Vault.SharingChange; + public static create(properties?: ServiceLogger.IServiceRuleRequest): ServiceLogger.ServiceRuleRequest; /** - * Encodes the specified SharingChange message. Does not implicitly {@link Vault.SharingChange.verify|verify} messages. - * @param message SharingChange message or plain object to encode + * Encodes the specified ServiceRuleRequest message. 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 encode(message: Vault.ISharingChange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceRuleRequest, 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 + * 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: Vault.ISharingChange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ServiceLogger.IServiceRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SharingChange message from the specified reader or buffer. + * Decodes a ServiceRuleRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SharingChange + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharingChange; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceRuleRequest; /** - * Decodes a SharingChange message from the specified reader or buffer, length delimited. + * Decodes a ServiceRuleRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SharingChange + * @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)): Vault.SharingChange; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceRuleRequest; /** - * Verifies a SharingChange message. + * 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 SharingChange message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceRuleRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SharingChange + * @returns ServiceRuleRequest */ - public static fromObject(object: { [k: string]: any }): Vault.SharingChange; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceRuleRequest; /** - * Creates a plain object from a SharingChange message. Also converts values to other types if specified. - * @param message SharingChange + * Creates a plain object from a ServiceRuleRequest message. Also converts values to other types if specified. + * @param message ServiceRuleRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharingChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceRuleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SharingChange to JSON. + * Converts this ServiceRuleRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SharingChange + * Gets the default type url for ServiceRuleRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Profile. */ - interface IProfile { + /** Properties of a ServiceRuleRecord. */ + interface IServiceRuleRecord { - /** Profile data */ - data?: (Uint8Array|null); + /** ServiceRuleRecord serviceRuleId */ + serviceRuleId?: (number|Long|null); - /** Profile profileName */ - profileName?: (string|null); + /** ServiceRuleRecord serviceInfoId */ + serviceInfoId?: (number|Long|null); - /** Profile revision */ - revision?: (number|Long|null); + /** ServiceRuleRecord resourceId */ + resourceId?: (number|Long|null); + + /** ServiceRuleRecord isLoggingEnabled */ + isLoggingEnabled?: (boolean|null); + + /** ServiceRuleRecord logLevel */ + logLevel?: (string|null); + + /** ServiceRuleRecord ruleStart */ + ruleStart?: (string|null); + + /** ServiceRuleRecord ruleEnd */ + ruleEnd?: (string|null); + + /** ServiceRuleRecord dateModified */ + dateModified?: (string|null); } - /** Represents a Profile. */ - class Profile implements IProfile { + /** Represents a ServiceRuleRecord. */ + class ServiceRuleRecord implements IServiceRuleRecord { /** - * Constructs a new Profile. + * Constructs a new ServiceRuleRecord. * @param [properties] Properties to set */ - constructor(properties?: Vault.IProfile); + constructor(properties?: ServiceLogger.IServiceRuleRecord); - /** Profile data. */ - public data: Uint8Array; + /** ServiceRuleRecord serviceRuleId. */ + public serviceRuleId: (number|Long); - /** Profile profileName. */ - public profileName: string; + /** ServiceRuleRecord serviceInfoId. */ + public serviceInfoId: (number|Long); - /** Profile revision. */ - public revision: (number|Long); + /** ServiceRuleRecord resourceId. */ + public resourceId: (number|Long); + + /** ServiceRuleRecord isLoggingEnabled. */ + public isLoggingEnabled: boolean; + + /** ServiceRuleRecord logLevel. */ + public logLevel: string; + + /** ServiceRuleRecord ruleStart. */ + public ruleStart: string; + + /** ServiceRuleRecord ruleEnd. */ + public ruleEnd: string; + + /** ServiceRuleRecord dateModified. */ + public dateModified: string; /** - * Creates a new Profile instance using the specified properties. + * Creates a new ServiceRuleRecord instance using the specified properties. * @param [properties] Properties to set - * @returns Profile instance + * @returns ServiceRuleRecord instance */ - public static create(properties?: Vault.IProfile): Vault.Profile; + public static create(properties?: ServiceLogger.IServiceRuleRecord): ServiceLogger.ServiceRuleRecord; /** - * Encodes the specified Profile message. Does not implicitly {@link Vault.Profile.verify|verify} messages. - * @param message Profile message or plain object to encode + * Encodes the specified ServiceRuleRecord message. 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 encode(message: Vault.IProfile, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceRuleRecord, 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 + * 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: Vault.IProfile, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ServiceLogger.IServiceRuleRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Profile message from the specified reader or buffer. + * Decodes a ServiceRuleRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Profile + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.Profile; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceRuleRecord; /** - * Decodes a Profile message from the specified reader or buffer, length delimited. + * Decodes a ServiceRuleRecord message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Profile + * @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)): Vault.Profile; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceRuleRecord; /** - * Verifies a Profile message. + * 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 Profile message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceRuleRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Profile + * @returns ServiceRuleRecord */ - public static fromObject(object: { [k: string]: any }): Vault.Profile; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceRuleRecord; /** - * Creates a plain object from a Profile message. Also converts values to other types if specified. - * @param message Profile + * Creates a plain object from a ServiceRuleRecord message. Also converts values to other types if specified. + * @param message ServiceRuleRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.Profile, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceRuleRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Profile to JSON. + * Converts this ServiceRuleRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Profile + * Gets the default type url for ServiceRuleRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ProfilePic. */ - interface IProfilePic { - - /** ProfilePic url */ - url?: (string|null); + /** Properties of a ServiceRuleResponse. */ + interface IServiceRuleResponse { - /** ProfilePic revision */ - revision?: (number|Long|null); + /** ServiceRuleResponse serviceRule */ + serviceRule?: (ServiceLogger.IServiceRuleRecord[]|null); } - /** Represents a ProfilePic. */ - class ProfilePic implements IProfilePic { + /** Represents a ServiceRuleResponse. */ + class ServiceRuleResponse implements IServiceRuleResponse { /** - * Constructs a new ProfilePic. + * Constructs a new ServiceRuleResponse. * @param [properties] Properties to set */ - constructor(properties?: Vault.IProfilePic); - - /** ProfilePic url. */ - public url: string; + constructor(properties?: ServiceLogger.IServiceRuleResponse); - /** ProfilePic revision. */ - public revision: (number|Long); + /** ServiceRuleResponse serviceRule. */ + public serviceRule: ServiceLogger.IServiceRuleRecord[]; /** - * Creates a new ProfilePic instance using the specified properties. + * Creates a new ServiceRuleResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ProfilePic instance + * @returns ServiceRuleResponse instance */ - public static create(properties?: Vault.IProfilePic): Vault.ProfilePic; + public static create(properties?: ServiceLogger.IServiceRuleResponse): ServiceLogger.ServiceRuleResponse; /** - * Encodes the specified ProfilePic message. Does not implicitly {@link Vault.ProfilePic.verify|verify} messages. - * @param message ProfilePic message or plain object to encode + * Encodes the specified ServiceRuleResponse message. 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 encode(message: Vault.IProfilePic, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceRuleResponse, 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 + * 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: Vault.IProfilePic, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ServiceLogger.IServiceRuleResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ProfilePic message from the specified reader or buffer. + * Decodes a ServiceRuleResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ProfilePic + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.ProfilePic; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceRuleResponse; /** - * Decodes a ProfilePic message from the specified reader or buffer, length delimited. + * Decodes a ServiceRuleResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ProfilePic + * @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)): Vault.ProfilePic; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceRuleResponse; /** - * Verifies a ProfilePic message. + * 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 ProfilePic message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceRuleResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ProfilePic + * @returns ServiceRuleResponse */ - public static fromObject(object: { [k: string]: any }): Vault.ProfilePic; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceRuleResponse; /** - * Creates a plain object from a ProfilePic message. Also converts values to other types if specified. - * @param message ProfilePic + * Creates a plain object from a ServiceRuleResponse message. Also converts values to other types if specified. + * @param message ServiceRuleResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.ProfilePic, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceRuleResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ProfilePic to JSON. + * Converts this ServiceRuleResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ProfilePic + * Gets the default type url for ServiceRuleResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PendingTeamMember. */ - interface IPendingTeamMember { - - /** PendingTeamMember enterpriseUserId */ - enterpriseUserId?: (number|Long|null); - - /** PendingTeamMember userPublicKey */ - userPublicKey?: (Uint8Array|null); - - /** PendingTeamMember teamUids */ - teamUids?: (Uint8Array[]|null); + /** Properties of a ServiceRuleUpdateRequest. */ + interface IServiceRuleUpdateRequest { - /** PendingTeamMember userEccPublicKey */ - userEccPublicKey?: (Uint8Array|null); + /** ServiceRuleUpdateRequest serviceRuleRecord */ + serviceRuleRecord?: (ServiceLogger.IServiceRuleRecord[]|null); } - /** Represents a PendingTeamMember. */ - class PendingTeamMember implements IPendingTeamMember { + /** Update one or more ServiceRule records by their IDs */ + class ServiceRuleUpdateRequest implements IServiceRuleUpdateRequest { /** - * Constructs a new PendingTeamMember. + * Constructs a new ServiceRuleUpdateRequest. * @param [properties] Properties to set */ - constructor(properties?: Vault.IPendingTeamMember); - - /** PendingTeamMember enterpriseUserId. */ - public enterpriseUserId: (number|Long); - - /** PendingTeamMember userPublicKey. */ - public userPublicKey: Uint8Array; - - /** PendingTeamMember teamUids. */ - public teamUids: Uint8Array[]; + constructor(properties?: ServiceLogger.IServiceRuleUpdateRequest); - /** PendingTeamMember userEccPublicKey. */ - public userEccPublicKey: Uint8Array; + /** ServiceRuleUpdateRequest serviceRuleRecord. */ + public serviceRuleRecord: ServiceLogger.IServiceRuleRecord[]; /** - * Creates a new PendingTeamMember instance using the specified properties. + * Creates a new ServiceRuleUpdateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PendingTeamMember instance + * @returns ServiceRuleUpdateRequest instance */ - public static create(properties?: Vault.IPendingTeamMember): Vault.PendingTeamMember; + public static create(properties?: ServiceLogger.IServiceRuleUpdateRequest): ServiceLogger.ServiceRuleUpdateRequest; /** - * Encodes the specified PendingTeamMember message. Does not implicitly {@link Vault.PendingTeamMember.verify|verify} messages. - * @param message PendingTeamMember message or plain object to encode + * Encodes the specified ServiceRuleUpdateRequest message. 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 encode(message: Vault.IPendingTeamMember, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceRuleUpdateRequest, 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 + * 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: Vault.IPendingTeamMember, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ServiceLogger.IServiceRuleUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PendingTeamMember message from the specified reader or buffer. + * Decodes a ServiceRuleUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PendingTeamMember + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.PendingTeamMember; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceRuleUpdateRequest; /** - * Decodes a PendingTeamMember message from the specified reader or buffer, length delimited. + * Decodes a ServiceRuleUpdateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PendingTeamMember + * @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)): Vault.PendingTeamMember; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceRuleUpdateRequest; /** - * Verifies a PendingTeamMember message. + * 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 PendingTeamMember message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceRuleUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PendingTeamMember + * @returns ServiceRuleUpdateRequest */ - public static fromObject(object: { [k: string]: any }): Vault.PendingTeamMember; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceRuleUpdateRequest; /** - * Creates a plain object from a PendingTeamMember message. Also converts values to other types if specified. - * @param message PendingTeamMember + * Creates a plain object from a ServiceRuleUpdateRequest message. Also converts values to other types if specified. + * @param message ServiceRuleUpdateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.PendingTeamMember, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceRuleUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PendingTeamMember to JSON. + * Converts this ServiceRuleUpdateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PendingTeamMember + * Gets the default type url for ServiceRuleUpdateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BreachWatchRecord. */ - interface IBreachWatchRecord { + /** Properties of a ServiceLogSpecifier. */ + interface IServiceLogSpecifier { - /** BreachWatchRecord recordUid */ - recordUid?: (Uint8Array|null); + /** ServiceLogSpecifier all */ + all?: (boolean|null); - /** BreachWatchRecord data */ - data?: (Uint8Array|null); + /** ServiceLogSpecifier serviceLogId */ + serviceLogId?: (number|Long|null); - /** BreachWatchRecord type */ - type?: (BreachWatch.BreachWatchInfoType|null); + /** ServiceLogSpecifier serviceIdRange */ + serviceIdRange?: (ServiceLogger.IIdRange[]|null); - /** BreachWatchRecord scannedBy */ - scannedBy?: (string|null); + /** ServiceLogSpecifier resourceIdRange */ + resourceIdRange?: (ServiceLogger.IIdRange[]|null); - /** BreachWatchRecord revision */ - revision?: (number|Long|null); + /** ServiceLogSpecifier startDateTime */ + startDateTime?: (string|null); - /** BreachWatchRecord scannedByAccountUid */ - scannedByAccountUid?: (Uint8Array|null); + /** ServiceLogSpecifier endDateTime */ + endDateTime?: (string|null); } - /** Represents a BreachWatchRecord. */ - class BreachWatchRecord implements IBreachWatchRecord { + /** Represents a ServiceLogSpecifier. */ + class ServiceLogSpecifier implements IServiceLogSpecifier { /** - * Constructs a new BreachWatchRecord. + * Constructs a new ServiceLogSpecifier. * @param [properties] Properties to set */ - constructor(properties?: Vault.IBreachWatchRecord); + constructor(properties?: ServiceLogger.IServiceLogSpecifier); - /** BreachWatchRecord recordUid. */ - public recordUid: Uint8Array; + /** ServiceLogSpecifier all. */ + public all: boolean; - /** BreachWatchRecord data. */ - public data: Uint8Array; + /** ServiceLogSpecifier serviceLogId. */ + public serviceLogId: (number|Long); - /** BreachWatchRecord type. */ - public type: BreachWatch.BreachWatchInfoType; + /** ServiceLogSpecifier serviceIdRange. */ + public serviceIdRange: ServiceLogger.IIdRange[]; - /** BreachWatchRecord scannedBy. */ - public scannedBy: string; + /** ServiceLogSpecifier resourceIdRange. */ + public resourceIdRange: ServiceLogger.IIdRange[]; - /** BreachWatchRecord revision. */ - public revision: (number|Long); + /** ServiceLogSpecifier startDateTime. */ + public startDateTime: string; - /** BreachWatchRecord scannedByAccountUid. */ - public scannedByAccountUid: Uint8Array; + /** ServiceLogSpecifier endDateTime. */ + public endDateTime: string; /** - * Creates a new BreachWatchRecord instance using the specified properties. + * Creates a new ServiceLogSpecifier instance using the specified properties. * @param [properties] Properties to set - * @returns BreachWatchRecord instance + * @returns ServiceLogSpecifier instance */ - public static create(properties?: Vault.IBreachWatchRecord): Vault.BreachWatchRecord; + public static create(properties?: ServiceLogger.IServiceLogSpecifier): ServiceLogger.ServiceLogSpecifier; /** - * Encodes the specified BreachWatchRecord message. Does not implicitly {@link Vault.BreachWatchRecord.verify|verify} messages. - * @param message BreachWatchRecord message or plain object to encode + * Encodes the specified ServiceLogSpecifier message. 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 encode(message: Vault.IBreachWatchRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceLogSpecifier, 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 + * 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: Vault.IBreachWatchRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ServiceLogger.IServiceLogSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BreachWatchRecord message from the specified reader or buffer. + * Decodes a ServiceLogSpecifier message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BreachWatchRecord + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.BreachWatchRecord; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogSpecifier; /** - * Decodes a BreachWatchRecord message from the specified reader or buffer, length delimited. + * Decodes a ServiceLogSpecifier message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BreachWatchRecord + * @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)): Vault.BreachWatchRecord; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceLogSpecifier; /** - * Verifies a BreachWatchRecord message. + * 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 BreachWatchRecord message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceLogSpecifier message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BreachWatchRecord + * @returns ServiceLogSpecifier */ - public static fromObject(object: { [k: string]: any }): Vault.BreachWatchRecord; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogSpecifier; /** - * Creates a plain object from a BreachWatchRecord message. Also converts values to other types if specified. - * @param message BreachWatchRecord + * Creates a plain object from a ServiceLogSpecifier message. Also converts values to other types if specified. + * @param message ServiceLogSpecifier * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.BreachWatchRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceLogSpecifier, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BreachWatchRecord to JSON. + * Converts this ServiceLogSpecifier to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BreachWatchRecord + * Gets the default type url for ServiceLogSpecifier * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a UserAuth. */ - interface IUserAuth { - - /** UserAuth uid */ - uid?: (Uint8Array|null); - - /** UserAuth loginType */ - loginType?: (Authentication.LoginType|null); - - /** UserAuth deleted */ - deleted?: (boolean|null); - - /** UserAuth iterations */ - iterations?: (number|null); - - /** UserAuth salt */ - salt?: (Uint8Array|null); - - /** UserAuth encryptedClientKey */ - encryptedClientKey?: (Uint8Array|null); - - /** UserAuth revision */ - revision?: (number|Long|null); + /** Properties of a ServiceLogGetRequest. */ + interface IServiceLogGetRequest { - /** UserAuth name */ - name?: (string|null); + /** ServiceLogGetRequest serviceLogSpecifier */ + serviceLogSpecifier?: (ServiceLogger.IServiceLogSpecifier[]|null); } - /** Represents a UserAuth. */ - class UserAuth implements IUserAuth { + /** Represents a ServiceLogGetRequest. */ + class ServiceLogGetRequest implements IServiceLogGetRequest { /** - * Constructs a new UserAuth. + * Constructs a new ServiceLogGetRequest. * @param [properties] Properties to set */ - constructor(properties?: Vault.IUserAuth); - - /** UserAuth uid. */ - public uid: Uint8Array; - - /** UserAuth loginType. */ - public loginType: Authentication.LoginType; - - /** UserAuth deleted. */ - public deleted: boolean; - - /** UserAuth iterations. */ - public iterations: number; - - /** UserAuth salt. */ - public salt: Uint8Array; - - /** UserAuth encryptedClientKey. */ - public encryptedClientKey: Uint8Array; - - /** UserAuth revision. */ - public revision: (number|Long); + constructor(properties?: ServiceLogger.IServiceLogGetRequest); - /** UserAuth name. */ - public name: string; + /** ServiceLogGetRequest serviceLogSpecifier. */ + public serviceLogSpecifier: ServiceLogger.IServiceLogSpecifier[]; /** - * Creates a new UserAuth instance using the specified properties. + * Creates a new ServiceLogGetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UserAuth instance + * @returns ServiceLogGetRequest instance */ - public static create(properties?: Vault.IUserAuth): Vault.UserAuth; + public static create(properties?: ServiceLogger.IServiceLogGetRequest): ServiceLogger.ServiceLogGetRequest; /** - * Encodes the specified UserAuth message. Does not implicitly {@link Vault.UserAuth.verify|verify} messages. - * @param message UserAuth message or plain object to encode + * Encodes the specified ServiceLogGetRequest message. 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 encode(message: Vault.IUserAuth, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceLogGetRequest, 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 + * 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: Vault.IUserAuth, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ServiceLogger.IServiceLogGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserAuth message from the specified reader or buffer. + * Decodes a ServiceLogGetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserAuth + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.UserAuth; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogGetRequest; /** - * Decodes a UserAuth message from the specified reader or buffer, length delimited. + * Decodes a ServiceLogGetRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UserAuth + * @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)): Vault.UserAuth; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceLogGetRequest; /** - * Verifies a UserAuth message. + * 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 UserAuth message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceLogGetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserAuth + * @returns ServiceLogGetRequest */ - public static fromObject(object: { [k: string]: any }): Vault.UserAuth; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogGetRequest; /** - * Creates a plain object from a UserAuth message. Also converts values to other types if specified. - * @param message UserAuth - * @param [options] Conversion options + * Creates a plain object from a ServiceLogGetRequest message. Also converts values to other types if specified. + * @param message ServiceLogGetRequest + * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.UserAuth, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceLogGetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserAuth to JSON. + * Converts this ServiceLogGetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UserAuth + * Gets the default type url for ServiceLogGetRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BreachWatchSecurityData. */ - interface IBreachWatchSecurityData { + /** Properties of a ServiceLogRecord. */ + interface IServiceLogRecord { - /** BreachWatchSecurityData recordUid */ - recordUid?: (Uint8Array|null); + /** ServiceLogRecord serviceLogId */ + serviceLogId?: (number|Long|null); - /** BreachWatchSecurityData revision */ - revision?: (number|Long|null); + /** ServiceLogRecord serviceInfoId */ + serviceInfoId?: (number|Long|null); - /** BreachWatchSecurityData removed */ - removed?: (boolean|null); + /** ServiceLogRecord resourceId */ + resourceId?: (number|Long|null); + + /** ServiceLogRecord logger */ + logger?: (string|null); + + /** ServiceLogRecord logLevel */ + logLevel?: (string|null); + + /** ServiceLogRecord message */ + message?: (string|null); + + /** ServiceLogRecord exception */ + exception?: (string|null); + + /** ServiceLogRecord dateCreated */ + dateCreated?: (string|null); } - /** Represents a BreachWatchSecurityData. */ - class BreachWatchSecurityData implements IBreachWatchSecurityData { + /** Represents a ServiceLogRecord. */ + class ServiceLogRecord implements IServiceLogRecord { /** - * Constructs a new BreachWatchSecurityData. + * Constructs a new ServiceLogRecord. * @param [properties] Properties to set */ - constructor(properties?: Vault.IBreachWatchSecurityData); + constructor(properties?: ServiceLogger.IServiceLogRecord); - /** BreachWatchSecurityData recordUid. */ - public recordUid: Uint8Array; + /** ServiceLogRecord serviceLogId. */ + public serviceLogId: (number|Long); - /** BreachWatchSecurityData revision. */ - public revision: (number|Long); + /** ServiceLogRecord serviceInfoId. */ + public serviceInfoId: (number|Long); - /** BreachWatchSecurityData removed. */ - public removed: boolean; + /** ServiceLogRecord resourceId. */ + public resourceId: (number|Long); + + /** ServiceLogRecord logger. */ + public logger: string; + + /** ServiceLogRecord logLevel. */ + public logLevel: string; + + /** ServiceLogRecord message. */ + public message: string; + + /** ServiceLogRecord exception. */ + public exception: string; + + /** ServiceLogRecord dateCreated. */ + public dateCreated: string; /** - * Creates a new BreachWatchSecurityData instance using the specified properties. + * Creates a new ServiceLogRecord instance using the specified properties. * @param [properties] Properties to set - * @returns BreachWatchSecurityData instance + * @returns ServiceLogRecord instance */ - public static create(properties?: Vault.IBreachWatchSecurityData): Vault.BreachWatchSecurityData; + public static create(properties?: ServiceLogger.IServiceLogRecord): ServiceLogger.ServiceLogRecord; /** - * Encodes the specified BreachWatchSecurityData message. Does not implicitly {@link Vault.BreachWatchSecurityData.verify|verify} messages. - * @param message BreachWatchSecurityData message or plain object to encode + * Encodes the specified ServiceLogRecord message. 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 encode(message: Vault.IBreachWatchSecurityData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceLogRecord, 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 + * 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: Vault.IBreachWatchSecurityData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ServiceLogger.IServiceLogRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BreachWatchSecurityData message from the specified reader or buffer. + * Decodes a ServiceLogRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BreachWatchSecurityData + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.BreachWatchSecurityData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogRecord; /** - * Decodes a BreachWatchSecurityData message from the specified reader or buffer, length delimited. + * Decodes a ServiceLogRecord message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BreachWatchSecurityData + * @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)): Vault.BreachWatchSecurityData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceLogRecord; /** - * Verifies a BreachWatchSecurityData message. + * 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 BreachWatchSecurityData message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceLogRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BreachWatchSecurityData + * @returns ServiceLogRecord */ - public static fromObject(object: { [k: string]: any }): Vault.BreachWatchSecurityData; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogRecord; /** - * Creates a plain object from a BreachWatchSecurityData message. Also converts values to other types if specified. - * @param message BreachWatchSecurityData + * Creates a plain object from a ServiceLogRecord message. Also converts values to other types if specified. + * @param message ServiceLogRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.BreachWatchSecurityData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceLogRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BreachWatchSecurityData to JSON. + * Converts this ServiceLogRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BreachWatchSecurityData + * Gets the default type url for ServiceLogRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReusedPasswords. */ - interface IReusedPasswords { - - /** ReusedPasswords count */ - count?: (number|null); + /** Properties of a ServiceLogAddRequest. */ + interface IServiceLogAddRequest { - /** ReusedPasswords revision */ - revision?: (number|Long|null); + /** ServiceLogAddRequest entry */ + entry?: (ServiceLogger.IServiceLogRecord[]|null); } - /** Represents a ReusedPasswords. */ - class ReusedPasswords implements IReusedPasswords { + /** Represents a ServiceLogAddRequest. */ + class ServiceLogAddRequest implements IServiceLogAddRequest { /** - * Constructs a new ReusedPasswords. + * Constructs a new ServiceLogAddRequest. * @param [properties] Properties to set */ - constructor(properties?: Vault.IReusedPasswords); - - /** ReusedPasswords count. */ - public count: number; + constructor(properties?: ServiceLogger.IServiceLogAddRequest); - /** ReusedPasswords revision. */ - public revision: (number|Long); + /** ServiceLogAddRequest entry. */ + public entry: ServiceLogger.IServiceLogRecord[]; /** - * Creates a new ReusedPasswords instance using the specified properties. + * Creates a new ServiceLogAddRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReusedPasswords instance + * @returns ServiceLogAddRequest instance */ - public static create(properties?: Vault.IReusedPasswords): Vault.ReusedPasswords; + public static create(properties?: ServiceLogger.IServiceLogAddRequest): ServiceLogger.ServiceLogAddRequest; /** - * Encodes the specified ReusedPasswords message. Does not implicitly {@link Vault.ReusedPasswords.verify|verify} messages. - * @param message ReusedPasswords message or plain object to encode + * Encodes the specified ServiceLogAddRequest message. 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 encode(message: Vault.IReusedPasswords, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceLogAddRequest, 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 + * 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: Vault.IReusedPasswords, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ServiceLogger.IServiceLogAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReusedPasswords message from the specified reader or buffer. + * Decodes a ServiceLogAddRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReusedPasswords + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.ReusedPasswords; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogAddRequest; /** - * Decodes a ReusedPasswords message from the specified reader or buffer, length delimited. + * Decodes a ServiceLogAddRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReusedPasswords + * @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)): Vault.ReusedPasswords; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceLogAddRequest; /** - * Verifies a ReusedPasswords message. + * 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 ReusedPasswords message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceLogAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReusedPasswords + * @returns ServiceLogAddRequest */ - public static fromObject(object: { [k: string]: any }): Vault.ReusedPasswords; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogAddRequest; /** - * Creates a plain object from a ReusedPasswords message. Also converts values to other types if specified. - * @param message ReusedPasswords + * Creates a plain object from a ServiceLogAddRequest message. Also converts values to other types if specified. + * @param message ServiceLogAddRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.ReusedPasswords, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceLogAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReusedPasswords to JSON. + * Converts this ServiceLogAddRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReusedPasswords + * Gets the default type url for ServiceLogAddRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SharedFolderRecord. */ - interface ISharedFolderRecord { - - /** SharedFolderRecord sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); - - /** SharedFolderRecord recordUid */ - recordUid?: (Uint8Array|null); - - /** SharedFolderRecord recordKey */ - recordKey?: (Uint8Array|null); - - /** SharedFolderRecord canShare */ - canShare?: (boolean|null); - - /** SharedFolderRecord canEdit */ - canEdit?: (boolean|null); - - /** SharedFolderRecord ownerAccountUid */ - ownerAccountUid?: (Uint8Array|null); - - /** SharedFolderRecord expiration */ - expiration?: (number|Long|null); - - /** SharedFolderRecord owner */ - owner?: (boolean|null); - - /** SharedFolderRecord expirationNotificationType */ - expirationNotificationType?: (Records.TimerNotificationType|null); - - /** SharedFolderRecord ownerUsername */ - ownerUsername?: (string|null); + /** Properties of a ServiceLogResponse. */ + interface IServiceLogResponse { - /** SharedFolderRecord rotateOnExpiration */ - rotateOnExpiration?: (boolean|null); + /** ServiceLogResponse entry */ + entry?: (ServiceLogger.IServiceLogRecord[]|null); } - /** Represents a SharedFolderRecord. */ - class SharedFolderRecord implements ISharedFolderRecord { + /** Represents a ServiceLogResponse. */ + class ServiceLogResponse implements IServiceLogResponse { /** - * Constructs a new SharedFolderRecord. + * Constructs a new ServiceLogResponse. * @param [properties] Properties to set */ - constructor(properties?: Vault.ISharedFolderRecord); - - /** SharedFolderRecord sharedFolderUid. */ - public sharedFolderUid: Uint8Array; - - /** SharedFolderRecord recordUid. */ - public recordUid: Uint8Array; - - /** SharedFolderRecord recordKey. */ - public recordKey: Uint8Array; - - /** SharedFolderRecord canShare. */ - public canShare: boolean; - - /** SharedFolderRecord canEdit. */ - public canEdit: boolean; - - /** SharedFolderRecord ownerAccountUid. */ - public ownerAccountUid: Uint8Array; - - /** SharedFolderRecord expiration. */ - public expiration: (number|Long); - - /** SharedFolderRecord owner. */ - public owner: boolean; - - /** SharedFolderRecord expirationNotificationType. */ - public expirationNotificationType: Records.TimerNotificationType; - - /** SharedFolderRecord ownerUsername. */ - public ownerUsername: string; + constructor(properties?: ServiceLogger.IServiceLogResponse); - /** SharedFolderRecord rotateOnExpiration. */ - public rotateOnExpiration: boolean; + /** ServiceLogResponse entry. */ + public entry: ServiceLogger.IServiceLogRecord[]; /** - * Creates a new SharedFolderRecord instance using the specified properties. + * Creates a new ServiceLogResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SharedFolderRecord instance + * @returns ServiceLogResponse instance */ - public static create(properties?: Vault.ISharedFolderRecord): Vault.SharedFolderRecord; + public static create(properties?: ServiceLogger.IServiceLogResponse): ServiceLogger.ServiceLogResponse; /** - * Encodes the specified SharedFolderRecord message. Does not implicitly {@link Vault.SharedFolderRecord.verify|verify} messages. - * @param message SharedFolderRecord message or plain object to encode + * Encodes the specified ServiceLogResponse message. 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 encode(message: Vault.ISharedFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceLogResponse, 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 + * 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: Vault.ISharedFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ServiceLogger.IServiceLogResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SharedFolderRecord message from the specified reader or buffer. + * Decodes a ServiceLogResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SharedFolderRecord + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderRecord; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogResponse; /** - * Decodes a SharedFolderRecord message from the specified reader or buffer, length delimited. + * Decodes a ServiceLogResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SharedFolderRecord + * @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)): Vault.SharedFolderRecord; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceLogResponse; /** - * Verifies a SharedFolderRecord message. + * 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 SharedFolderRecord message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceLogResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SharedFolderRecord + * @returns ServiceLogResponse */ - public static fromObject(object: { [k: string]: any }): Vault.SharedFolderRecord; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogResponse; /** - * Creates a plain object from a SharedFolderRecord message. Also converts values to other types if specified. - * @param message SharedFolderRecord + * Creates a plain object from a ServiceLogResponse message. Also converts values to other types if specified. + * @param message ServiceLogResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharedFolderRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceLogResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SharedFolderRecord to JSON. + * Converts this ServiceLogResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SharedFolderRecord + * Gets the default type url for ServiceLogResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SharedFolderUser. */ - interface ISharedFolderUser { - - /** SharedFolderUser sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); - - /** SharedFolderUser username */ - username?: (string|null); - - /** SharedFolderUser manageRecords */ - manageRecords?: (boolean|null); + /** Properties of a ServiceLogClearRequest. */ + interface IServiceLogClearRequest { - /** SharedFolderUser manageUsers */ - manageUsers?: (boolean|null); + /** ServiceLogClearRequest useDefaults */ + useDefaults?: (boolean|null); - /** SharedFolderUser accountUid */ - accountUid?: (Uint8Array|null); + /** ServiceLogClearRequest serviceTypeId */ + serviceTypeId?: (number|Long|null); - /** SharedFolderUser expiration */ - expiration?: (number|Long|null); + /** ServiceLogClearRequest daysOld */ + daysOld?: (number|null); - /** SharedFolderUser expirationNotificationType */ - expirationNotificationType?: (Records.TimerNotificationType|null); + /** ServiceLogClearRequest hoursOld */ + hoursOld?: (number|null); - /** SharedFolderUser rotateOnExpiration */ - rotateOnExpiration?: (boolean|null); + /** ServiceLogClearRequest resourceIdRange */ + resourceIdRange?: (ServiceLogger.IIdRange[]|null); } - /** Represents a SharedFolderUser. */ - class SharedFolderUser implements ISharedFolderUser { + /** This is a request to clear the SSO Service Provider log */ + class ServiceLogClearRequest implements IServiceLogClearRequest { /** - * Constructs a new SharedFolderUser. + * Constructs a new ServiceLogClearRequest. * @param [properties] Properties to set */ - constructor(properties?: Vault.ISharedFolderUser); - - /** SharedFolderUser sharedFolderUid. */ - public sharedFolderUid: Uint8Array; - - /** SharedFolderUser username. */ - public username: string; - - /** SharedFolderUser manageRecords. */ - public manageRecords: boolean; + constructor(properties?: ServiceLogger.IServiceLogClearRequest); - /** SharedFolderUser manageUsers. */ - public manageUsers: boolean; + /** ServiceLogClearRequest useDefaults. */ + public useDefaults: boolean; - /** SharedFolderUser accountUid. */ - public accountUid: Uint8Array; + /** ServiceLogClearRequest serviceTypeId. */ + public serviceTypeId: (number|Long); - /** SharedFolderUser expiration. */ - public expiration: (number|Long); + /** ServiceLogClearRequest daysOld. */ + public daysOld: number; - /** SharedFolderUser expirationNotificationType. */ - public expirationNotificationType: Records.TimerNotificationType; + /** ServiceLogClearRequest hoursOld. */ + public hoursOld: number; - /** SharedFolderUser rotateOnExpiration. */ - public rotateOnExpiration: boolean; + /** ServiceLogClearRequest resourceIdRange. */ + public resourceIdRange: ServiceLogger.IIdRange[]; /** - * Creates a new SharedFolderUser instance using the specified properties. + * Creates a new ServiceLogClearRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SharedFolderUser instance + * @returns ServiceLogClearRequest instance */ - public static create(properties?: Vault.ISharedFolderUser): Vault.SharedFolderUser; + public static create(properties?: ServiceLogger.IServiceLogClearRequest): ServiceLogger.ServiceLogClearRequest; /** - * Encodes the specified SharedFolderUser message. Does not implicitly {@link Vault.SharedFolderUser.verify|verify} messages. - * @param message SharedFolderUser message or plain object to encode + * Encodes the specified ServiceLogClearRequest message. 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 encode(message: Vault.ISharedFolderUser, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceLogClearRequest, 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 + * 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: Vault.ISharedFolderUser, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ServiceLogger.IServiceLogClearRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SharedFolderUser message from the specified reader or buffer. + * Decodes a ServiceLogClearRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SharedFolderUser + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderUser; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogClearRequest; /** - * Decodes a SharedFolderUser message from the specified reader or buffer, length delimited. + * Decodes a ServiceLogClearRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SharedFolderUser + * @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)): Vault.SharedFolderUser; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceLogClearRequest; /** - * Verifies a SharedFolderUser message. + * 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 SharedFolderUser message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceLogClearRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SharedFolderUser + * @returns ServiceLogClearRequest */ - public static fromObject(object: { [k: string]: any }): Vault.SharedFolderUser; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogClearRequest; /** - * Creates a plain object from a SharedFolderUser message. Also converts values to other types if specified. - * @param message SharedFolderUser + * Creates a plain object from a ServiceLogClearRequest message. Also converts values to other types if specified. + * @param message ServiceLogClearRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharedFolderUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceLogClearRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SharedFolderUser to JSON. + * Converts this ServiceLogClearRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SharedFolderUser + * Gets the default type url for ServiceLogClearRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SharedFolderTeam. */ - interface ISharedFolderTeam { - - /** SharedFolderTeam sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); - - /** SharedFolderTeam teamUid */ - teamUid?: (Uint8Array|null); - - /** SharedFolderTeam name */ - name?: (string|null); + /** Properties of a ServiceLogClearResponse. */ + interface IServiceLogClearResponse { - /** SharedFolderTeam manageRecords */ - manageRecords?: (boolean|null); + /** ServiceLogClearResponse serviceTypeId */ + serviceTypeId?: (number|Long|null); - /** SharedFolderTeam manageUsers */ - manageUsers?: (boolean|null); + /** ServiceLogClearResponse serviceName */ + serviceName?: (string|null); - /** SharedFolderTeam expiration */ - expiration?: (number|Long|null); + /** ServiceLogClearResponse resourceIdRange */ + resourceIdRange?: (ServiceLogger.IIdRange[]|null); - /** SharedFolderTeam expirationNotificationType */ - expirationNotificationType?: (Records.TimerNotificationType|null); + /** ServiceLogClearResponse numDeleted */ + numDeleted?: (number|null); - /** SharedFolderTeam rotateOnExpiration */ - rotateOnExpiration?: (boolean|null); + /** ServiceLogClearResponse numRemaining */ + numRemaining?: (number|null); } - /** Represents a SharedFolderTeam. */ - class SharedFolderTeam implements ISharedFolderTeam { + /** This is the response from the sso_log_clear command */ + class ServiceLogClearResponse implements IServiceLogClearResponse { /** - * Constructs a new SharedFolderTeam. + * Constructs a new ServiceLogClearResponse. * @param [properties] Properties to set */ - constructor(properties?: Vault.ISharedFolderTeam); + constructor(properties?: ServiceLogger.IServiceLogClearResponse); - /** SharedFolderTeam sharedFolderUid. */ - public sharedFolderUid: Uint8Array; + /** ServiceLogClearResponse serviceTypeId. */ + public serviceTypeId: (number|Long); - /** SharedFolderTeam teamUid. */ - public teamUid: Uint8Array; + /** ServiceLogClearResponse serviceName. */ + public serviceName: string; - /** SharedFolderTeam name. */ - public name: string; + /** ServiceLogClearResponse resourceIdRange. */ + public resourceIdRange: ServiceLogger.IIdRange[]; - /** SharedFolderTeam manageRecords. */ - public manageRecords: boolean; + /** ServiceLogClearResponse numDeleted. */ + public numDeleted: number; - /** SharedFolderTeam manageUsers. */ - public manageUsers: boolean; + /** ServiceLogClearResponse numRemaining. */ + public numRemaining: number; - /** SharedFolderTeam expiration. */ - public expiration: (number|Long); - - /** SharedFolderTeam expirationNotificationType. */ - public expirationNotificationType: Records.TimerNotificationType; - - /** SharedFolderTeam rotateOnExpiration. */ - public rotateOnExpiration: boolean; - - /** - * Creates a new SharedFolderTeam instance using the specified properties. - * @param [properties] Properties to set - * @returns SharedFolderTeam instance - */ - public static create(properties?: Vault.ISharedFolderTeam): Vault.SharedFolderTeam; + /** + * Creates a new ServiceLogClearResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceLogClearResponse instance + */ + public static create(properties?: ServiceLogger.IServiceLogClearResponse): ServiceLogger.ServiceLogClearResponse; /** - * Encodes the specified SharedFolderTeam message. Does not implicitly {@link Vault.SharedFolderTeam.verify|verify} messages. - * @param message SharedFolderTeam message or plain object to encode + * Encodes the specified ServiceLogClearResponse message. 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 encode(message: Vault.ISharedFolderTeam, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceLogClearResponse, 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 + * 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: Vault.ISharedFolderTeam, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ServiceLogger.IServiceLogClearResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SharedFolderTeam message from the specified reader or buffer. + * Decodes a ServiceLogClearResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SharedFolderTeam + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderTeam; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogClearResponse; /** - * Decodes a SharedFolderTeam message from the specified reader or buffer, length delimited. + * Decodes a ServiceLogClearResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SharedFolderTeam + * @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)): Vault.SharedFolderTeam; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceLogClearResponse; /** - * Verifies a SharedFolderTeam message. + * 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 SharedFolderTeam message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceLogClearResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SharedFolderTeam + * @returns ServiceLogClearResponse */ - public static fromObject(object: { [k: string]: any }): Vault.SharedFolderTeam; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogClearResponse; /** - * Creates a plain object from a SharedFolderTeam message. Also converts values to other types if specified. - * @param message SharedFolderTeam + * Creates a plain object from a ServiceLogClearResponse message. Also converts values to other types if specified. + * @param message ServiceLogClearResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharedFolderTeam, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceLogClearResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SharedFolderTeam to JSON. + * Converts this ServiceLogClearResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SharedFolderTeam + * Gets the default type url for ServiceLogClearResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } +} - /** Properties of a KsmChange. */ - interface IKsmChange { +/** Namespace Vault. */ +export namespace Vault { - /** KsmChange appRecordUid */ - appRecordUid?: (Uint8Array|null); + /** CacheStatus enum. */ + enum CacheStatus { + KEEP = 0, + CLEAR = 1 + } - /** KsmChange detailId */ - detailId?: (Uint8Array|null); + /** Properties of a SyncDownRequest. */ + interface ISyncDownRequest { - /** KsmChange removed */ - removed?: (boolean|null); + /** SyncDownRequest continuationToken */ + continuationToken?: (Uint8Array|null); - /** KsmChange appClientType */ - appClientType?: (Enterprise.AppClientType|null); + /** SyncDownRequest dataVersion */ + dataVersion?: (number|null); - /** KsmChange expiration */ - expiration?: (number|Long|null); + /** SyncDownRequest debug */ + debug?: (boolean|null); } - /** Represents a KsmChange. */ - class KsmChange implements IKsmChange { + /** Represents a SyncDownRequest. */ + class SyncDownRequest implements ISyncDownRequest { /** - * Constructs a new KsmChange. + * Constructs a new SyncDownRequest. * @param [properties] Properties to set */ - constructor(properties?: Vault.IKsmChange); - - /** KsmChange appRecordUid. */ - public appRecordUid: Uint8Array; - - /** KsmChange detailId. */ - public detailId: Uint8Array; + constructor(properties?: Vault.ISyncDownRequest); - /** KsmChange removed. */ - public removed: boolean; + /** SyncDownRequest continuationToken. */ + public continuationToken: Uint8Array; - /** KsmChange appClientType. */ - public appClientType: Enterprise.AppClientType; + /** SyncDownRequest dataVersion. */ + public dataVersion: number; - /** KsmChange expiration. */ - public expiration: (number|Long); + /** SyncDownRequest debug. */ + public debug: boolean; /** - * Creates a new KsmChange instance using the specified properties. + * Creates a new SyncDownRequest instance using the specified properties. * @param [properties] Properties to set - * @returns KsmChange instance + * @returns SyncDownRequest instance */ - public static create(properties?: Vault.IKsmChange): Vault.KsmChange; + public static create(properties?: Vault.ISyncDownRequest): Vault.SyncDownRequest; /** - * Encodes the specified KsmChange message. Does not implicitly {@link Vault.KsmChange.verify|verify} messages. - * @param message KsmChange message or plain object to encode + * Encodes the specified SyncDownRequest message. 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 encode(message: Vault.IKsmChange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISyncDownRequest, 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 + * 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.IKsmChange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.ISyncDownRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a KsmChange message from the specified reader or buffer. + * Decodes a SyncDownRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns KsmChange + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.KsmChange; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SyncDownRequest; /** - * Decodes a KsmChange message from the specified reader or buffer, length delimited. + * Decodes a SyncDownRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns KsmChange + * @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.KsmChange; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SyncDownRequest; /** - * Verifies a KsmChange message. + * 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 KsmChange message from a plain object. Also converts values to their respective internal types. + * Creates a SyncDownRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns KsmChange + * @returns SyncDownRequest */ - public static fromObject(object: { [k: string]: any }): Vault.KsmChange; + public static fromObject(object: { [k: string]: any }): Vault.SyncDownRequest; /** - * Creates a plain object from a KsmChange message. Also converts values to other types if specified. - * @param message KsmChange + * Creates a plain object from a SyncDownRequest message. Also converts values to other types if specified. + * @param message SyncDownRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.KsmChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SyncDownRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this KsmChange to JSON. + * Converts this SyncDownRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for KsmChange + * Gets the default type url for SyncDownRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ShareInvitation. */ - interface IShareInvitation { + /** Properties of a SyncDownResponse. */ + interface ISyncDownResponse { - /** ShareInvitation username */ - username?: (string|null); + /** SyncDownResponse continuationToken */ + continuationToken?: (Uint8Array|null); + + /** SyncDownResponse hasMore */ + hasMore?: (boolean|null); + + /** SyncDownResponse cacheStatus */ + cacheStatus?: (Vault.CacheStatus|null); + + /** SyncDownResponse userFolders */ + userFolders?: (Vault.IUserFolder[]|null); + + /** SyncDownResponse sharedFolders */ + sharedFolders?: (Vault.ISharedFolder[]|null); + + /** SyncDownResponse userFolderSharedFolders */ + userFolderSharedFolders?: (Vault.IUserFolderSharedFolder[]|null); + + /** SyncDownResponse sharedFolderFolders */ + sharedFolderFolders?: (Vault.ISharedFolderFolder[]|null); + + /** SyncDownResponse records */ + records?: (Vault.IRecord[]|null); + + /** SyncDownResponse recordMetaData */ + recordMetaData?: (Vault.IRecordMetaData[]|null); + + /** SyncDownResponse nonSharedData */ + nonSharedData?: (Vault.INonSharedData[]|null); + + /** SyncDownResponse recordLinks */ + recordLinks?: (Vault.IRecordLink[]|null); + + /** SyncDownResponse userFolderRecords */ + userFolderRecords?: (Vault.IUserFolderRecord[]|null); + + /** SyncDownResponse sharedFolderRecords */ + sharedFolderRecords?: (Vault.ISharedFolderRecord[]|null); + + /** SyncDownResponse sharedFolderFolderRecords */ + sharedFolderFolderRecords?: (Vault.ISharedFolderFolderRecord[]|null); + + /** SyncDownResponse sharedFolderUsers */ + sharedFolderUsers?: (Vault.ISharedFolderUser[]|null); + + /** SyncDownResponse sharedFolderTeams */ + sharedFolderTeams?: (Vault.ISharedFolderTeam[]|null); + + /** SyncDownResponse recordAddAuditData */ + recordAddAuditData?: (Uint8Array[]|null); + + /** SyncDownResponse teams */ + teams?: (Vault.ITeam[]|null); + + /** SyncDownResponse sharingChanges */ + sharingChanges?: (Vault.ISharingChange[]|null); + + /** SyncDownResponse profile */ + profile?: (Vault.IProfile|null); + + /** SyncDownResponse profilePic */ + profilePic?: (Vault.IProfilePic|null); + + /** SyncDownResponse pendingTeamMembers */ + pendingTeamMembers?: (Vault.IPendingTeamMember[]|null); + + /** SyncDownResponse breachWatchRecords */ + breachWatchRecords?: (Vault.IBreachWatchRecord[]|null); + + /** SyncDownResponse userAuths */ + userAuths?: (Vault.IUserAuth[]|null); + + /** SyncDownResponse breachWatchSecurityData */ + breachWatchSecurityData?: (Vault.IBreachWatchSecurityData[]|null); + + /** SyncDownResponse reusedPasswords */ + reusedPasswords?: (Vault.IReusedPasswords|null); + + /** SyncDownResponse removedUserFolders */ + removedUserFolders?: (Uint8Array[]|null); + + /** SyncDownResponse removedSharedFolders */ + removedSharedFolders?: (Uint8Array[]|null); + + /** SyncDownResponse removedUserFolderSharedFolders */ + removedUserFolderSharedFolders?: (Vault.IUserFolderSharedFolder[]|null); + + /** SyncDownResponse removedSharedFolderFolders */ + removedSharedFolderFolders?: (Vault.ISharedFolderFolder[]|null); + + /** SyncDownResponse removedRecords */ + removedRecords?: (Uint8Array[]|null); + + /** SyncDownResponse removedRecordLinks */ + removedRecordLinks?: (Vault.IRecordLink[]|null); + + /** SyncDownResponse removedUserFolderRecords */ + removedUserFolderRecords?: (Vault.IUserFolderRecord[]|null); + + /** SyncDownResponse removedSharedFolderRecords */ + removedSharedFolderRecords?: (Vault.ISharedFolderRecord[]|null); + + /** SyncDownResponse removedSharedFolderFolderRecords */ + removedSharedFolderFolderRecords?: (Vault.ISharedFolderFolderRecord[]|null); + + /** SyncDownResponse removedSharedFolderUsers */ + removedSharedFolderUsers?: (Vault.ISharedFolderUser[]|null); + + /** SyncDownResponse removedSharedFolderTeams */ + removedSharedFolderTeams?: (Vault.ISharedFolderTeam[]|null); + + /** SyncDownResponse removedTeams */ + removedTeams?: (Uint8Array[]|null); + + /** SyncDownResponse ksmAppShares */ + ksmAppShares?: (Vault.IKsmChange[]|null); + + /** SyncDownResponse ksmAppClients */ + ksmAppClients?: (Vault.IKsmChange[]|null); + + /** SyncDownResponse shareInvitations */ + shareInvitations?: (Vault.IShareInvitation[]|null); + + /** SyncDownResponse diagnostics */ + diagnostics?: (Vault.ISyncDiagnostics|null); + + /** SyncDownResponse recordRotations */ + recordRotations?: (Vault.IRecordRotation[]|null); + + /** SyncDownResponse users */ + users?: (Vault.IUser[]|null); + + /** SyncDownResponse removedUsers */ + removedUsers?: (Uint8Array[]|null); + + /** SyncDownResponse securityScoreData */ + securityScoreData?: (Vault.ISecurityScoreData[]|null); + + /** SyncDownResponse notificationSync */ + notificationSync?: (NotificationCenter.INotificationWrapper[]|null); + + /** SyncDownResponse keeperDriveData */ + keeperDriveData?: (Vault.IKeeperDriveData|null); } - /** Represents a ShareInvitation. */ - class ShareInvitation implements IShareInvitation { + /** Represents a SyncDownResponse. */ + class SyncDownResponse implements ISyncDownResponse { /** - * Constructs a new ShareInvitation. + * Constructs a new SyncDownResponse. * @param [properties] Properties to set */ - constructor(properties?: Vault.IShareInvitation); + constructor(properties?: Vault.ISyncDownResponse); - /** ShareInvitation username. */ - public username: string; + /** SyncDownResponse continuationToken. */ + public continuationToken: Uint8Array; + + /** SyncDownResponse hasMore. */ + public hasMore: boolean; + + /** SyncDownResponse cacheStatus. */ + public cacheStatus: Vault.CacheStatus; + + /** SyncDownResponse userFolders. */ + public userFolders: Vault.IUserFolder[]; + + /** SyncDownResponse sharedFolders. */ + public sharedFolders: Vault.ISharedFolder[]; + + /** SyncDownResponse userFolderSharedFolders. */ + public userFolderSharedFolders: Vault.IUserFolderSharedFolder[]; + + /** SyncDownResponse sharedFolderFolders. */ + public sharedFolderFolders: Vault.ISharedFolderFolder[]; + + /** SyncDownResponse records. */ + public records: Vault.IRecord[]; + + /** SyncDownResponse recordMetaData. */ + public recordMetaData: Vault.IRecordMetaData[]; + + /** SyncDownResponse nonSharedData. */ + public nonSharedData: Vault.INonSharedData[]; + + /** SyncDownResponse recordLinks. */ + public recordLinks: Vault.IRecordLink[]; + + /** SyncDownResponse userFolderRecords. */ + public userFolderRecords: Vault.IUserFolderRecord[]; + + /** SyncDownResponse sharedFolderRecords. */ + public sharedFolderRecords: Vault.ISharedFolderRecord[]; + + /** SyncDownResponse sharedFolderFolderRecords. */ + public sharedFolderFolderRecords: Vault.ISharedFolderFolderRecord[]; + + /** SyncDownResponse sharedFolderUsers. */ + public sharedFolderUsers: Vault.ISharedFolderUser[]; + + /** SyncDownResponse sharedFolderTeams. */ + public sharedFolderTeams: Vault.ISharedFolderTeam[]; + + /** SyncDownResponse recordAddAuditData. */ + public recordAddAuditData: Uint8Array[]; + + /** SyncDownResponse teams. */ + public teams: Vault.ITeam[]; + + /** SyncDownResponse sharingChanges. */ + public sharingChanges: Vault.ISharingChange[]; + + /** SyncDownResponse profile. */ + public profile?: (Vault.IProfile|null); + + /** SyncDownResponse profilePic. */ + public profilePic?: (Vault.IProfilePic|null); + + /** SyncDownResponse pendingTeamMembers. */ + public pendingTeamMembers: Vault.IPendingTeamMember[]; + + /** SyncDownResponse breachWatchRecords. */ + public breachWatchRecords: Vault.IBreachWatchRecord[]; + + /** SyncDownResponse userAuths. */ + public userAuths: Vault.IUserAuth[]; + + /** SyncDownResponse breachWatchSecurityData. */ + public breachWatchSecurityData: Vault.IBreachWatchSecurityData[]; + + /** SyncDownResponse reusedPasswords. */ + public reusedPasswords?: (Vault.IReusedPasswords|null); + + /** SyncDownResponse removedUserFolders. */ + public removedUserFolders: Uint8Array[]; + + /** SyncDownResponse removedSharedFolders. */ + public removedSharedFolders: Uint8Array[]; + + /** SyncDownResponse removedUserFolderSharedFolders. */ + public removedUserFolderSharedFolders: Vault.IUserFolderSharedFolder[]; + + /** SyncDownResponse removedSharedFolderFolders. */ + public removedSharedFolderFolders: Vault.ISharedFolderFolder[]; + + /** SyncDownResponse removedRecords. */ + public removedRecords: Uint8Array[]; + + /** SyncDownResponse removedRecordLinks. */ + public removedRecordLinks: Vault.IRecordLink[]; + + /** SyncDownResponse removedUserFolderRecords. */ + public removedUserFolderRecords: Vault.IUserFolderRecord[]; + + /** SyncDownResponse removedSharedFolderRecords. */ + public removedSharedFolderRecords: Vault.ISharedFolderRecord[]; + + /** SyncDownResponse removedSharedFolderFolderRecords. */ + public removedSharedFolderFolderRecords: Vault.ISharedFolderFolderRecord[]; + + /** SyncDownResponse removedSharedFolderUsers. */ + public removedSharedFolderUsers: Vault.ISharedFolderUser[]; + + /** SyncDownResponse removedSharedFolderTeams. */ + public removedSharedFolderTeams: Vault.ISharedFolderTeam[]; + + /** SyncDownResponse removedTeams. */ + public removedTeams: Uint8Array[]; + + /** SyncDownResponse ksmAppShares. */ + public ksmAppShares: Vault.IKsmChange[]; + + /** SyncDownResponse ksmAppClients. */ + public ksmAppClients: Vault.IKsmChange[]; + + /** SyncDownResponse shareInvitations. */ + public shareInvitations: Vault.IShareInvitation[]; + + /** SyncDownResponse diagnostics. */ + public diagnostics?: (Vault.ISyncDiagnostics|null); + + /** SyncDownResponse recordRotations. */ + public recordRotations: Vault.IRecordRotation[]; + + /** SyncDownResponse users. */ + public users: Vault.IUser[]; + + /** SyncDownResponse removedUsers. */ + public removedUsers: Uint8Array[]; + + /** SyncDownResponse securityScoreData. */ + public securityScoreData: Vault.ISecurityScoreData[]; + + /** SyncDownResponse notificationSync. */ + public notificationSync: NotificationCenter.INotificationWrapper[]; + + /** SyncDownResponse keeperDriveData. */ + public keeperDriveData?: (Vault.IKeeperDriveData|null); /** - * Creates a new ShareInvitation instance using the specified properties. + * Creates a new SyncDownResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ShareInvitation instance + * @returns SyncDownResponse instance */ - public static create(properties?: Vault.IShareInvitation): Vault.ShareInvitation; + public static create(properties?: Vault.ISyncDownResponse): Vault.SyncDownResponse; /** - * Encodes the specified ShareInvitation message. Does not implicitly {@link Vault.ShareInvitation.verify|verify} messages. - * @param message ShareInvitation message or plain object to encode + * Encodes the specified SyncDownResponse message. 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 encode(message: Vault.IShareInvitation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISyncDownResponse, 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 + * 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.IShareInvitation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.ISyncDownResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShareInvitation message from the specified reader or buffer. + * Decodes a SyncDownResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ShareInvitation + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.ShareInvitation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SyncDownResponse; /** - * Decodes a ShareInvitation message from the specified reader or buffer, length delimited. + * Decodes a SyncDownResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShareInvitation + * @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.ShareInvitation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SyncDownResponse; /** - * Verifies a ShareInvitation message. + * 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 ShareInvitation message from a plain object. Also converts values to their respective internal types. + * Creates a SyncDownResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShareInvitation + * @returns SyncDownResponse */ - public static fromObject(object: { [k: string]: any }): Vault.ShareInvitation; + public static fromObject(object: { [k: string]: any }): Vault.SyncDownResponse; /** - * Creates a plain object from a ShareInvitation message. Also converts values to other types if specified. - * @param message ShareInvitation + * Creates a plain object from a SyncDownResponse message. Also converts values to other types if specified. + * @param message SyncDownResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.ShareInvitation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SyncDownResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShareInvitation to JSON. + * Converts this SyncDownResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShareInvitation + * Gets the default type url for SyncDownResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a User. */ - interface IUser { + /** Properties of a DriveRecord. */ + interface IDriveRecord { - /** User accountUid */ - accountUid?: (Uint8Array|null); + /** DriveRecord recordUid */ + recordUid?: (Uint8Array|null); - /** User username */ - username?: (string|null); - } + /** DriveRecord revision */ + revision?: (number|Long|null); - /** Represents a User. */ - class User implements IUser { + /** DriveRecord version */ + version?: (number|null); - /** - * Constructs a new User. + /** DriveRecord shared */ + shared?: (boolean|null); + + /** DriveRecord clientModifiedTime */ + clientModifiedTime?: (number|Long|null); + + /** DriveRecord fileSize */ + fileSize?: (number|Long|null); + + /** DriveRecord thumbnailSize */ + thumbnailSize?: (number|Long|null); + } + + /** Represents a DriveRecord. */ + class DriveRecord implements IDriveRecord { + + /** + * Constructs a new DriveRecord. * @param [properties] Properties to set */ - constructor(properties?: Vault.IUser); + constructor(properties?: Vault.IDriveRecord); - /** User accountUid. */ - public accountUid: Uint8Array; + /** DriveRecord recordUid. */ + public recordUid: Uint8Array; - /** User username. */ - public username: string; + /** DriveRecord revision. */ + public revision: (number|Long); + + /** DriveRecord version. */ + public version: number; + + /** DriveRecord shared. */ + public shared: boolean; + + /** DriveRecord clientModifiedTime. */ + public clientModifiedTime: (number|Long); + + /** DriveRecord fileSize. */ + public fileSize: (number|Long); + + /** DriveRecord thumbnailSize. */ + public thumbnailSize: (number|Long); /** - * Creates a new User instance using the specified properties. + * Creates a new DriveRecord instance using the specified properties. * @param [properties] Properties to set - * @returns User instance + * @returns DriveRecord instance */ - public static create(properties?: Vault.IUser): Vault.User; + public static create(properties?: Vault.IDriveRecord): Vault.DriveRecord; /** - * Encodes the specified User message. Does not implicitly {@link Vault.User.verify|verify} messages. - * @param message User message or plain object to encode + * Encodes the specified DriveRecord message. 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 encode(message: Vault.IUser, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IDriveRecord, 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 + * 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.IUser, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IDriveRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a User message from the specified reader or buffer. + * Decodes a DriveRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns User + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.User; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.DriveRecord; /** - * Decodes a User message from the specified reader or buffer, length delimited. + * Decodes a DriveRecord message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns User + * @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.User; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.DriveRecord; /** - * Verifies a User message. + * 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 User message from a plain object. Also converts values to their respective internal types. + * Creates a DriveRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns User + * @returns DriveRecord */ - public static fromObject(object: { [k: string]: any }): Vault.User; + public static fromObject(object: { [k: string]: any }): Vault.DriveRecord; /** - * Creates a plain object from a User message. Also converts values to other types if specified. - * @param message User + * Creates a plain object from a DriveRecord message. Also converts values to other types if specified. + * @param message DriveRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.User, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.DriveRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this User to JSON. + * Converts this DriveRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for User + * Gets the default type url for DriveRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SyncDiagnostics. */ - interface ISyncDiagnostics { - - /** SyncDiagnostics continuationToken */ - continuationToken?: (Uint8Array|null); - - /** SyncDiagnostics userId */ - userId?: (number|null); + /** Properties of a FolderSharingState. */ + interface IFolderSharingState { - /** SyncDiagnostics enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + /** FolderSharingState folderUid */ + folderUid?: (Uint8Array|null); - /** SyncDiagnostics syncedTo */ - syncedTo?: (number|Long|null); + /** FolderSharingState shared */ + shared?: (boolean|null); - /** SyncDiagnostics syncingTo */ - syncingTo?: (number|Long|null); + /** FolderSharingState count */ + count?: (number|null); } - /** Represents a SyncDiagnostics. */ - class SyncDiagnostics implements ISyncDiagnostics { + /** Represents a FolderSharingState. */ + class FolderSharingState implements IFolderSharingState { /** - * Constructs a new SyncDiagnostics. + * Constructs a new FolderSharingState. * @param [properties] Properties to set */ - constructor(properties?: Vault.ISyncDiagnostics); - - /** SyncDiagnostics continuationToken. */ - public continuationToken: Uint8Array; - - /** SyncDiagnostics userId. */ - public userId: number; + constructor(properties?: Vault.IFolderSharingState); - /** SyncDiagnostics enterpriseUserId. */ - public enterpriseUserId: (number|Long); + /** FolderSharingState folderUid. */ + public folderUid: Uint8Array; - /** SyncDiagnostics syncedTo. */ - public syncedTo: (number|Long); + /** FolderSharingState shared. */ + public shared: boolean; - /** SyncDiagnostics syncingTo. */ - public syncingTo: (number|Long); + /** FolderSharingState count. */ + public count: number; /** - * Creates a new SyncDiagnostics instance using the specified properties. + * Creates a new FolderSharingState instance using the specified properties. * @param [properties] Properties to set - * @returns SyncDiagnostics instance + * @returns FolderSharingState instance */ - public static create(properties?: Vault.ISyncDiagnostics): Vault.SyncDiagnostics; + public static create(properties?: Vault.IFolderSharingState): Vault.FolderSharingState; /** - * Encodes the specified SyncDiagnostics message. Does not implicitly {@link Vault.SyncDiagnostics.verify|verify} messages. - * @param message SyncDiagnostics message or plain object to encode + * Encodes the specified FolderSharingState message. 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 encode(message: Vault.ISyncDiagnostics, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IFolderSharingState, 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 + * 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.ISyncDiagnostics, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IFolderSharingState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SyncDiagnostics message from the specified reader or buffer. + * Decodes a FolderSharingState message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SyncDiagnostics + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SyncDiagnostics; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.FolderSharingState; /** - * Decodes a SyncDiagnostics message from the specified reader or buffer, length delimited. + * Decodes a FolderSharingState message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SyncDiagnostics + * @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.SyncDiagnostics; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.FolderSharingState; /** - * Verifies a SyncDiagnostics message. + * 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 SyncDiagnostics message from a plain object. Also converts values to their respective internal types. + * Creates a FolderSharingState message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SyncDiagnostics + * @returns FolderSharingState */ - public static fromObject(object: { [k: string]: any }): Vault.SyncDiagnostics; + public static fromObject(object: { [k: string]: any }): Vault.FolderSharingState; /** - * Creates a plain object from a SyncDiagnostics message. Also converts values to other types if specified. - * @param message SyncDiagnostics + * Creates a plain object from a FolderSharingState message. Also converts values to other types if specified. + * @param message FolderSharingState * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SyncDiagnostics, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.FolderSharingState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SyncDiagnostics to JSON. + * Converts this FolderSharingState to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SyncDiagnostics + * Gets the default type url for FolderSharingState * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** RecordRotationStatus enum. */ - enum RecordRotationStatus { - RRST_NOT_ROTATED = 0, - RRST_IN_PROGRESS = 1, - RRST_SUCCESS = 2, - RRST_FAILURE = 3 - } + /** Properties of a KeeperDriveData. */ + interface IKeeperDriveData { - /** Properties of a RecordRotation. */ - interface IRecordRotation { + /** KeeperDriveData folders */ + folders?: (Folder.IFolderData[]|null); - /** RecordRotation recordUid */ - recordUid?: (Uint8Array|null); + /** KeeperDriveData folderKeys */ + folderKeys?: (Folder.IFolderKey[]|null); - /** RecordRotation revision */ - revision?: (number|Long|null); + /** KeeperDriveData folderAccesses */ + folderAccesses?: (Folder.IFolderAccessData[]|null); - /** RecordRotation configurationUid */ - configurationUid?: (Uint8Array|null); + /** KeeperDriveData revokedFolderAccesses */ + revokedFolderAccesses?: (Folder.IRevokedAccess[]|null); - /** RecordRotation schedule */ - schedule?: (string|null); + /** KeeperDriveData deniedFolderAccesses */ + deniedFolderAccesses?: (Folder.IDeniedAccess[]|null); - /** RecordRotation pwdComplexity */ - pwdComplexity?: (Uint8Array|null); + /** KeeperDriveData recordData */ + recordData?: (Folder.IRecordData[]|null); - /** RecordRotation disabled */ - disabled?: (boolean|null); + /** KeeperDriveData nonSharedData */ + nonSharedData?: (Vault.INonSharedData[]|null); - /** RecordRotation resourceUid */ - resourceUid?: (Uint8Array|null); + /** KeeperDriveData recordAccesses */ + recordAccesses?: (Folder.IRecordAccessData[]|null); - /** RecordRotation lastRotation */ - lastRotation?: (number|Long|null); + /** KeeperDriveData revokedRecordAccesses */ + revokedRecordAccesses?: (record.v3.sharing.IRevokedAccess[]|null); - /** RecordRotation lastRotationStatus */ - lastRotationStatus?: (Vault.RecordRotationStatus|null); + /** KeeperDriveData recordSharingStates */ + recordSharingStates?: (record.v3.sharing.IRecordSharingState[]|null); + + /** KeeperDriveData recordLinks */ + recordLinks?: (Vault.IRecordLink[]|null); + + /** KeeperDriveData removedRecordLinks */ + removedRecordLinks?: (Vault.IRecordLink[]|null); + + /** KeeperDriveData breachWatchRecords */ + breachWatchRecords?: (Vault.IBreachWatchRecord[]|null); + + /** KeeperDriveData securityScoreData */ + securityScoreData?: (Vault.ISecurityScoreData[]|null); + + /** KeeperDriveData breachWatchSecurityData */ + breachWatchSecurityData?: (Vault.IBreachWatchSecurityData[]|null); + + /** KeeperDriveData removedFolders */ + removedFolders?: (Folder.IFolderRemoved[]|null); + + /** KeeperDriveData removedFolderRecords */ + removedFolderRecords?: (Records.IFolderRecordKey[]|null); + + /** KeeperDriveData folderRecords */ + folderRecords?: (Folder.IFolderRecord[]|null); + + /** KeeperDriveData recordRotationData */ + recordRotationData?: (Vault.IRecordRotation[]|null); + + /** KeeperDriveData records */ + records?: (Vault.IDriveRecord[]|null); + + /** KeeperDriveData folderSharingState */ + folderSharingState?: (Vault.IFolderSharingState[]|null); + + /** KeeperDriveData rawDagData */ + rawDagData?: (Dag.IDebugData[]|null); } - /** Represents a RecordRotation. */ - class RecordRotation implements IRecordRotation { + /** Represents a KeeperDriveData. */ + class KeeperDriveData implements IKeeperDriveData { /** - * Constructs a new RecordRotation. + * Constructs a new KeeperDriveData. * @param [properties] Properties to set */ - constructor(properties?: Vault.IRecordRotation); + constructor(properties?: Vault.IKeeperDriveData); - /** RecordRotation recordUid. */ - public recordUid: Uint8Array; + /** KeeperDriveData folders. */ + public folders: Folder.IFolderData[]; - /** RecordRotation revision. */ - public revision: (number|Long); + /** KeeperDriveData folderKeys. */ + public folderKeys: Folder.IFolderKey[]; - /** RecordRotation configurationUid. */ - public configurationUid: Uint8Array; + /** KeeperDriveData folderAccesses. */ + public folderAccesses: Folder.IFolderAccessData[]; - /** RecordRotation schedule. */ - public schedule: string; + /** KeeperDriveData revokedFolderAccesses. */ + public revokedFolderAccesses: Folder.IRevokedAccess[]; - /** RecordRotation pwdComplexity. */ - public pwdComplexity: Uint8Array; + /** KeeperDriveData deniedFolderAccesses. */ + public deniedFolderAccesses: Folder.IDeniedAccess[]; - /** RecordRotation disabled. */ - public disabled: boolean; + /** KeeperDriveData recordData. */ + public recordData: Folder.IRecordData[]; - /** RecordRotation resourceUid. */ - public resourceUid: Uint8Array; + /** KeeperDriveData nonSharedData. */ + public nonSharedData: Vault.INonSharedData[]; - /** RecordRotation lastRotation. */ - public lastRotation: (number|Long); + /** KeeperDriveData recordAccesses. */ + public recordAccesses: Folder.IRecordAccessData[]; - /** RecordRotation lastRotationStatus. */ - public lastRotationStatus: Vault.RecordRotationStatus; + /** KeeperDriveData revokedRecordAccesses. */ + public revokedRecordAccesses: record.v3.sharing.IRevokedAccess[]; + + /** KeeperDriveData recordSharingStates. */ + public recordSharingStates: record.v3.sharing.IRecordSharingState[]; + + /** KeeperDriveData recordLinks. */ + public recordLinks: Vault.IRecordLink[]; + + /** KeeperDriveData removedRecordLinks. */ + public removedRecordLinks: Vault.IRecordLink[]; + + /** KeeperDriveData breachWatchRecords. */ + public breachWatchRecords: Vault.IBreachWatchRecord[]; + + /** KeeperDriveData securityScoreData. */ + public securityScoreData: Vault.ISecurityScoreData[]; + + /** KeeperDriveData breachWatchSecurityData. */ + public breachWatchSecurityData: Vault.IBreachWatchSecurityData[]; + + /** KeeperDriveData removedFolders. */ + public removedFolders: Folder.IFolderRemoved[]; + + /** KeeperDriveData removedFolderRecords. */ + public removedFolderRecords: Records.IFolderRecordKey[]; + + /** KeeperDriveData folderRecords. */ + public folderRecords: Folder.IFolderRecord[]; + + /** KeeperDriveData recordRotationData. */ + public recordRotationData: Vault.IRecordRotation[]; + + /** KeeperDriveData records. */ + public records: Vault.IDriveRecord[]; + + /** KeeperDriveData folderSharingState. */ + public folderSharingState: Vault.IFolderSharingState[]; + + /** KeeperDriveData rawDagData. */ + public rawDagData: Dag.IDebugData[]; /** - * Creates a new RecordRotation instance using the specified properties. + * Creates a new KeeperDriveData instance using the specified properties. * @param [properties] Properties to set - * @returns RecordRotation instance + * @returns KeeperDriveData instance */ - public static create(properties?: Vault.IRecordRotation): Vault.RecordRotation; + public static create(properties?: Vault.IKeeperDriveData): Vault.KeeperDriveData; /** - * Encodes the specified RecordRotation message. Does not implicitly {@link Vault.RecordRotation.verify|verify} messages. - * @param message RecordRotation message or plain object to encode + * Encodes the specified KeeperDriveData message. 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 encode(message: Vault.IRecordRotation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IKeeperDriveData, 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 + * 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.IRecordRotation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IKeeperDriveData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordRotation message from the specified reader or buffer. + * Decodes a KeeperDriveData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordRotation + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.RecordRotation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.KeeperDriveData; /** - * Decodes a RecordRotation message from the specified reader or buffer, length delimited. + * Decodes a KeeperDriveData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecordRotation + * @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.RecordRotation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.KeeperDriveData; /** - * Verifies a RecordRotation message. + * 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 RecordRotation message from a plain object. Also converts values to their respective internal types. + * Creates a KeeperDriveData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordRotation + * @returns KeeperDriveData */ - public static fromObject(object: { [k: string]: any }): Vault.RecordRotation; + public static fromObject(object: { [k: string]: any }): Vault.KeeperDriveData; /** - * Creates a plain object from a RecordRotation message. Also converts values to other types if specified. - * @param message RecordRotation + * Creates a plain object from a KeeperDriveData message. Also converts values to other types if specified. + * @param message KeeperDriveData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.RecordRotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.KeeperDriveData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordRotation to JSON. + * Converts this KeeperDriveData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordRotation + * Gets the default type url for KeeperDriveData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SecurityScoreData. */ - interface ISecurityScoreData { + /** Properties of a UserFolder. */ + interface IUserFolder { - /** SecurityScoreData recordUid */ - recordUid?: (Uint8Array|null); + /** UserFolder folderUid */ + folderUid?: (Uint8Array|null); - /** SecurityScoreData data */ - data?: (Uint8Array|null); + /** UserFolder parentUid */ + parentUid?: (Uint8Array|null); - /** SecurityScoreData revision */ + /** UserFolder userFolderKey */ + userFolderKey?: (Uint8Array|null); + + /** UserFolder keyType */ + keyType?: (Records.RecordKeyType|null); + + /** UserFolder revision */ revision?: (number|Long|null); + + /** UserFolder data */ + data?: (Uint8Array|null); } - /** Represents a SecurityScoreData. */ - class SecurityScoreData implements ISecurityScoreData { + /** Represents a UserFolder. */ + class UserFolder implements IUserFolder { /** - * Constructs a new SecurityScoreData. + * Constructs a new UserFolder. * @param [properties] Properties to set */ - constructor(properties?: Vault.ISecurityScoreData); + constructor(properties?: Vault.IUserFolder); - /** SecurityScoreData recordUid. */ - public recordUid: Uint8Array; + /** UserFolder folderUid. */ + public folderUid: Uint8Array; - /** SecurityScoreData data. */ - public data: Uint8Array; + /** UserFolder parentUid. */ + public parentUid: Uint8Array; - /** SecurityScoreData revision. */ + /** UserFolder userFolderKey. */ + public userFolderKey: Uint8Array; + + /** UserFolder keyType. */ + public keyType: Records.RecordKeyType; + + /** UserFolder revision. */ public revision: (number|Long); + /** UserFolder data. */ + public data: Uint8Array; + /** - * Creates a new SecurityScoreData instance using the specified properties. + * Creates a new UserFolder instance using the specified properties. * @param [properties] Properties to set - * @returns SecurityScoreData instance + * @returns UserFolder instance */ - public static create(properties?: Vault.ISecurityScoreData): Vault.SecurityScoreData; + public static create(properties?: Vault.IUserFolder): Vault.UserFolder; /** - * Encodes the specified SecurityScoreData message. Does not implicitly {@link Vault.SecurityScoreData.verify|verify} messages. - * @param message SecurityScoreData message or plain object to encode + * Encodes the specified UserFolder message. 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 encode(message: Vault.ISecurityScoreData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IUserFolder, 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 + * 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.ISecurityScoreData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IUserFolder, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SecurityScoreData message from the specified reader or buffer. + * Decodes a UserFolder message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SecurityScoreData + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SecurityScoreData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.UserFolder; /** - * Decodes a SecurityScoreData message from the specified reader or buffer, length delimited. + * Decodes a UserFolder message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SecurityScoreData + * @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.SecurityScoreData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.UserFolder; /** - * Verifies a SecurityScoreData message. + * 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 SecurityScoreData message from a plain object. Also converts values to their respective internal types. + * Creates a UserFolder message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SecurityScoreData + * @returns UserFolder */ - public static fromObject(object: { [k: string]: any }): Vault.SecurityScoreData; + public static fromObject(object: { [k: string]: any }): Vault.UserFolder; /** - * Creates a plain object from a SecurityScoreData message. Also converts values to other types if specified. - * @param message SecurityScoreData + * Creates a plain object from a UserFolder message. Also converts values to other types if specified. + * @param message UserFolder * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SecurityScoreData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.UserFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SecurityScoreData to JSON. + * Converts this UserFolder to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SecurityScoreData + * Gets the default type url for UserFolder * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BreachWatchGetSyncDataRequest. */ - interface IBreachWatchGetSyncDataRequest { + /** Properties of a SharedFolder. */ + interface ISharedFolder { - /** BreachWatchGetSyncDataRequest recordUids */ - recordUids?: (Uint8Array[]|null); + /** SharedFolder sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); + + /** SharedFolder revision */ + revision?: (number|Long|null); + + /** SharedFolder sharedFolderKey */ + sharedFolderKey?: (Uint8Array|null); + + /** SharedFolder keyType */ + keyType?: (Records.RecordKeyType|null); + + /** SharedFolder data */ + data?: (Uint8Array|null); + + /** SharedFolder defaultManageRecords */ + defaultManageRecords?: (boolean|null); + + /** SharedFolder defaultManageUsers */ + defaultManageUsers?: (boolean|null); + + /** SharedFolder defaultCanEdit */ + defaultCanEdit?: (boolean|null); + + /** SharedFolder defaultCanReshare */ + defaultCanReshare?: (boolean|null); + + /** SharedFolder cacheStatus */ + cacheStatus?: (Vault.CacheStatus|null); + + /** SharedFolder owner */ + owner?: (string|null); + + /** SharedFolder ownerAccountUid */ + ownerAccountUid?: (Uint8Array|null); + + /** SharedFolder name */ + name?: (Uint8Array|null); } - /** Represents a BreachWatchGetSyncDataRequest. */ - class BreachWatchGetSyncDataRequest implements IBreachWatchGetSyncDataRequest { + /** Represents a SharedFolder. */ + class SharedFolder implements ISharedFolder { /** - * Constructs a new BreachWatchGetSyncDataRequest. + * Constructs a new SharedFolder. * @param [properties] Properties to set */ - constructor(properties?: Vault.IBreachWatchGetSyncDataRequest); + constructor(properties?: Vault.ISharedFolder); - /** BreachWatchGetSyncDataRequest recordUids. */ - public recordUids: Uint8Array[]; + /** SharedFolder sharedFolderUid. */ + public sharedFolderUid: Uint8Array; + + /** SharedFolder revision. */ + public revision: (number|Long); + + /** SharedFolder sharedFolderKey. */ + public sharedFolderKey: Uint8Array; + + /** SharedFolder keyType. */ + public keyType: Records.RecordKeyType; + + /** SharedFolder data. */ + public data: Uint8Array; + + /** SharedFolder defaultManageRecords. */ + public defaultManageRecords: boolean; + + /** SharedFolder defaultManageUsers. */ + public defaultManageUsers: boolean; + + /** SharedFolder defaultCanEdit. */ + public defaultCanEdit: boolean; + + /** SharedFolder defaultCanReshare. */ + public defaultCanReshare: boolean; + + /** SharedFolder cacheStatus. */ + public cacheStatus: Vault.CacheStatus; + + /** SharedFolder owner. */ + public owner: string; + + /** SharedFolder ownerAccountUid. */ + public ownerAccountUid: Uint8Array; + + /** SharedFolder name. */ + public name: Uint8Array; /** - * Creates a new BreachWatchGetSyncDataRequest instance using the specified properties. + * Creates a new SharedFolder instance using the specified properties. * @param [properties] Properties to set - * @returns BreachWatchGetSyncDataRequest instance + * @returns SharedFolder instance */ - public static create(properties?: Vault.IBreachWatchGetSyncDataRequest): Vault.BreachWatchGetSyncDataRequest; + public static create(properties?: Vault.ISharedFolder): Vault.SharedFolder; /** - * Encodes the specified BreachWatchGetSyncDataRequest message. Does not implicitly {@link Vault.BreachWatchGetSyncDataRequest.verify|verify} messages. - * @param message BreachWatchGetSyncDataRequest message or plain object to encode + * Encodes the specified SharedFolder message. 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 encode(message: Vault.IBreachWatchGetSyncDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISharedFolder, 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 + * 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.IBreachWatchGetSyncDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.ISharedFolder, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BreachWatchGetSyncDataRequest message from the specified reader or buffer. + * Decodes a SharedFolder message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BreachWatchGetSyncDataRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.BreachWatchGetSyncDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolder; /** - * Decodes a BreachWatchGetSyncDataRequest message from the specified reader or buffer, length delimited. + * Decodes a SharedFolder message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BreachWatchGetSyncDataRequest + * @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.BreachWatchGetSyncDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SharedFolder; /** - * Verifies a BreachWatchGetSyncDataRequest message. + * 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 BreachWatchGetSyncDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SharedFolder message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BreachWatchGetSyncDataRequest + * @returns SharedFolder */ - public static fromObject(object: { [k: string]: any }): Vault.BreachWatchGetSyncDataRequest; + public static fromObject(object: { [k: string]: any }): Vault.SharedFolder; /** - * Creates a plain object from a BreachWatchGetSyncDataRequest message. Also converts values to other types if specified. - * @param message BreachWatchGetSyncDataRequest + * Creates a plain object from a SharedFolder message. Also converts values to other types if specified. + * @param message SharedFolder * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.BreachWatchGetSyncDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SharedFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BreachWatchGetSyncDataRequest to JSON. + * Converts this SharedFolder to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BreachWatchGetSyncDataRequest + * Gets the default type url for SharedFolder * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BreachWatchGetSyncDataResponse. */ - interface IBreachWatchGetSyncDataResponse { + /** Properties of a UserFolderSharedFolder. */ + interface IUserFolderSharedFolder { - /** BreachWatchGetSyncDataResponse breachWatchRecords */ - breachWatchRecords?: (Vault.IBreachWatchRecord[]|null); + /** UserFolderSharedFolder folderUid */ + folderUid?: (Uint8Array|null); - /** BreachWatchGetSyncDataResponse breachWatchSecurityData */ - breachWatchSecurityData?: (Vault.IBreachWatchSecurityData[]|null); + /** UserFolderSharedFolder sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); - /** BreachWatchGetSyncDataResponse users */ - users?: (Vault.IUser[]|null); + /** UserFolderSharedFolder revision */ + revision?: (number|Long|null); } - /** Represents a BreachWatchGetSyncDataResponse. */ - class BreachWatchGetSyncDataResponse implements IBreachWatchGetSyncDataResponse { + /** Represents a UserFolderSharedFolder. */ + class UserFolderSharedFolder implements IUserFolderSharedFolder { /** - * Constructs a new BreachWatchGetSyncDataResponse. + * Constructs a new UserFolderSharedFolder. * @param [properties] Properties to set */ - constructor(properties?: Vault.IBreachWatchGetSyncDataResponse); + constructor(properties?: Vault.IUserFolderSharedFolder); - /** BreachWatchGetSyncDataResponse breachWatchRecords. */ - public breachWatchRecords: Vault.IBreachWatchRecord[]; + /** UserFolderSharedFolder folderUid. */ + public folderUid: Uint8Array; - /** BreachWatchGetSyncDataResponse breachWatchSecurityData. */ - public breachWatchSecurityData: Vault.IBreachWatchSecurityData[]; + /** UserFolderSharedFolder sharedFolderUid. */ + public sharedFolderUid: Uint8Array; - /** BreachWatchGetSyncDataResponse users. */ - public users: Vault.IUser[]; + /** UserFolderSharedFolder revision. */ + public revision: (number|Long); /** - * Creates a new BreachWatchGetSyncDataResponse instance using the specified properties. + * Creates a new UserFolderSharedFolder instance using the specified properties. * @param [properties] Properties to set - * @returns BreachWatchGetSyncDataResponse instance + * @returns UserFolderSharedFolder instance */ - public static create(properties?: Vault.IBreachWatchGetSyncDataResponse): Vault.BreachWatchGetSyncDataResponse; + public static create(properties?: Vault.IUserFolderSharedFolder): Vault.UserFolderSharedFolder; /** - * Encodes the specified BreachWatchGetSyncDataResponse message. Does not implicitly {@link Vault.BreachWatchGetSyncDataResponse.verify|verify} messages. - * @param message BreachWatchGetSyncDataResponse message or plain object to encode + * Encodes the specified UserFolderSharedFolder message. 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 encode(message: Vault.IBreachWatchGetSyncDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IUserFolderSharedFolder, 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 + * 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.IBreachWatchGetSyncDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IUserFolderSharedFolder, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BreachWatchGetSyncDataResponse message from the specified reader or buffer. + * Decodes a UserFolderSharedFolder message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BreachWatchGetSyncDataResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.BreachWatchGetSyncDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.UserFolderSharedFolder; /** - * Decodes a BreachWatchGetSyncDataResponse message from the specified reader or buffer, length delimited. + * Decodes a UserFolderSharedFolder message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BreachWatchGetSyncDataResponse + * @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.BreachWatchGetSyncDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.UserFolderSharedFolder; /** - * Verifies a BreachWatchGetSyncDataResponse message. + * 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 BreachWatchGetSyncDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates a UserFolderSharedFolder message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BreachWatchGetSyncDataResponse + * @returns UserFolderSharedFolder */ - public static fromObject(object: { [k: string]: any }): Vault.BreachWatchGetSyncDataResponse; + public static fromObject(object: { [k: string]: any }): Vault.UserFolderSharedFolder; /** - * Creates a plain object from a BreachWatchGetSyncDataResponse message. Also converts values to other types if specified. - * @param message BreachWatchGetSyncDataResponse + * Creates a plain object from a UserFolderSharedFolder message. Also converts values to other types if specified. + * @param message UserFolderSharedFolder * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.BreachWatchGetSyncDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.UserFolderSharedFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BreachWatchGetSyncDataResponse to JSON. + * Converts this UserFolderSharedFolder to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BreachWatchGetSyncDataResponse + * Gets the default type url for UserFolderSharedFolder * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetAccountUidMapResponse. */ - interface IGetAccountUidMapResponse { + /** Properties of a SharedFolderFolder. */ + interface ISharedFolderFolder { - /** GetAccountUidMapResponse users */ - users?: (Vault.IUser[]|null); + /** SharedFolderFolder sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); + + /** SharedFolderFolder folderUid */ + folderUid?: (Uint8Array|null); + + /** SharedFolderFolder parentUid */ + parentUid?: (Uint8Array|null); + + /** SharedFolderFolder sharedFolderFolderKey */ + sharedFolderFolderKey?: (Uint8Array|null); + + /** SharedFolderFolder keyType */ + keyType?: (Records.RecordKeyType|null); + + /** SharedFolderFolder revision */ + revision?: (number|Long|null); + + /** SharedFolderFolder data */ + data?: (Uint8Array|null); } - /** Represents a GetAccountUidMapResponse. */ - class GetAccountUidMapResponse implements IGetAccountUidMapResponse { + /** Represents a SharedFolderFolder. */ + class SharedFolderFolder implements ISharedFolderFolder { /** - * Constructs a new GetAccountUidMapResponse. + * Constructs a new SharedFolderFolder. * @param [properties] Properties to set */ - constructor(properties?: Vault.IGetAccountUidMapResponse); + constructor(properties?: Vault.ISharedFolderFolder); - /** GetAccountUidMapResponse users. */ - public users: Vault.IUser[]; + /** SharedFolderFolder sharedFolderUid. */ + public sharedFolderUid: Uint8Array; + + /** SharedFolderFolder folderUid. */ + public folderUid: Uint8Array; + + /** SharedFolderFolder parentUid. */ + public parentUid: Uint8Array; + + /** SharedFolderFolder sharedFolderFolderKey. */ + public sharedFolderFolderKey: Uint8Array; + + /** SharedFolderFolder keyType. */ + public keyType: Records.RecordKeyType; + + /** SharedFolderFolder revision. */ + public revision: (number|Long); + + /** SharedFolderFolder data. */ + public data: Uint8Array; /** - * Creates a new GetAccountUidMapResponse instance using the specified properties. + * Creates a new SharedFolderFolder instance using the specified properties. * @param [properties] Properties to set - * @returns GetAccountUidMapResponse instance + * @returns SharedFolderFolder instance */ - public static create(properties?: Vault.IGetAccountUidMapResponse): Vault.GetAccountUidMapResponse; + public static create(properties?: Vault.ISharedFolderFolder): Vault.SharedFolderFolder; /** - * Encodes the specified GetAccountUidMapResponse message. Does not implicitly {@link Vault.GetAccountUidMapResponse.verify|verify} messages. - * @param message GetAccountUidMapResponse message or plain object to encode + * Encodes the specified SharedFolderFolder message. 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 encode(message: Vault.IGetAccountUidMapResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISharedFolderFolder, 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 + * 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.IGetAccountUidMapResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.ISharedFolderFolder, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetAccountUidMapResponse message from the specified reader or buffer. + * Decodes a SharedFolderFolder message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetAccountUidMapResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.GetAccountUidMapResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderFolder; /** - * Decodes a GetAccountUidMapResponse message from the specified reader or buffer, length delimited. + * Decodes a SharedFolderFolder message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetAccountUidMapResponse + * @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.GetAccountUidMapResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SharedFolderFolder; /** - * Verifies a GetAccountUidMapResponse message. + * 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 GetAccountUidMapResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SharedFolderFolder message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetAccountUidMapResponse + * @returns SharedFolderFolder */ - public static fromObject(object: { [k: string]: any }): Vault.GetAccountUidMapResponse; + public static fromObject(object: { [k: string]: any }): Vault.SharedFolderFolder; /** - * Creates a plain object from a GetAccountUidMapResponse message. Also converts values to other types if specified. - * @param message GetAccountUidMapResponse + * Creates a plain object from a SharedFolderFolder message. Also converts values to other types if specified. + * @param message SharedFolderFolder * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.GetAccountUidMapResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SharedFolderFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetAccountUidMapResponse to JSON. + * Converts this SharedFolderFolder to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetAccountUidMapResponse + * Gets the default type url for SharedFolderFolder * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} - -/** Namespace NotificationCenter. */ -export namespace NotificationCenter { - - /** NotificationCategory enum. */ - enum NotificationCategory { - NC_UNSPECIFIED = 0, - NC_ACCOUNT = 1, - NC_SHARING = 2, - NC_ENTERPRISE = 3, - NC_SECURITY = 4, - NC_REQUEST = 5, - NC_SYSTEM = 6, - NC_PROMOTION = 7 - } - - /** NotificationType enum. */ - enum NotificationType { - NT_UNSPECIFIED = 0, - NT_ALERT = 1, - NT_DEVICE_APPROVAL = 2, - NT_MASTER_PASS_UPDATED = 3, - NT_SHARE_APPROVAL = 4, - NT_SHARE_APPROVAL_APPROVED = 5, - NT_SHARED = 6, - NT_TRANSFERRED = 7, - NT_LICENSE_LIMIT_REACHED = 8, - NT_APPROVAL_REQUEST = 9, - NT_APPROVED_RESPONSE = 10, - NT_DENIED_RESPONSE = 11, - NT_2FA_CONFIGURED = 12, - NT_SHARE_APPROVAL_DENIED = 13, - NT_DEVICE_APPROVAL_APPROVED = 14, - NT_DEVICE_APPROVAL_DENIED = 15, - NT_ACCOUNT_CREATED = 16, - NT_2FA_ENABLED = 17, - NT_2FA_DISABLED = 18, - NT_SECURITY_KEYS_ENABLED = 19, - NT_SECURITY_KEYS_DISABLED = 20 - } - - /** NotificationReadStatus enum. */ - enum NotificationReadStatus { - NRS_UNSPECIFIED = 0, - NRS_LAST = 1, - NRS_READ = 2, - NRS_UNREAD = 3 - } - /** NotificationApprovalStatus enum. */ - enum NotificationApprovalStatus { - NAS_UNSPECIFIED = 0, - NAS_APPROVED = 1, - NAS_DENIED = 2, - NAS_LOST_APPROVAL_RIGHTS = 3, - NAS_LOST_ACCESS = 4, - NAS_ESCALATED = 5 - } + /** Properties of a SharedFolderKey. */ + interface ISharedFolderKey { - /** Properties of an EncryptedData. */ - interface IEncryptedData { + /** SharedFolderKey sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); - /** EncryptedData version */ - version?: (number|null); + /** SharedFolderKey sharedFolderKey */ + sharedFolderKey?: (Uint8Array|null); - /** EncryptedData data */ - data?: (Uint8Array|null); + /** SharedFolderKey keyType */ + keyType?: (Records.RecordKeyType|null); } - /** Represents an EncryptedData. */ - class EncryptedData implements IEncryptedData { + /** Represents a SharedFolderKey. */ + class SharedFolderKey implements ISharedFolderKey { /** - * Constructs a new EncryptedData. + * Constructs a new SharedFolderKey. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.IEncryptedData); + constructor(properties?: Vault.ISharedFolderKey); - /** EncryptedData version. */ - public version: number; + /** SharedFolderKey sharedFolderUid. */ + public sharedFolderUid: Uint8Array; - /** EncryptedData data. */ - public data: Uint8Array; + /** SharedFolderKey sharedFolderKey. */ + public sharedFolderKey: Uint8Array; + + /** SharedFolderKey keyType. */ + public keyType: Records.RecordKeyType; /** - * Creates a new EncryptedData instance using the specified properties. + * Creates a new SharedFolderKey instance using the specified properties. * @param [properties] Properties to set - * @returns EncryptedData instance + * @returns SharedFolderKey instance */ - public static create(properties?: NotificationCenter.IEncryptedData): NotificationCenter.EncryptedData; + public static create(properties?: Vault.ISharedFolderKey): Vault.SharedFolderKey; /** - * Encodes the specified EncryptedData message. Does not implicitly {@link NotificationCenter.EncryptedData.verify|verify} messages. - * @param message EncryptedData message or plain object to encode + * Encodes the specified SharedFolderKey message. 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 encode(message: NotificationCenter.IEncryptedData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISharedFolderKey, 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 + * 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: NotificationCenter.IEncryptedData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.ISharedFolderKey, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EncryptedData message from the specified reader or buffer. + * Decodes a SharedFolderKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EncryptedData + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.EncryptedData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderKey; /** - * Decodes an EncryptedData message from the specified reader or buffer, length delimited. + * Decodes a SharedFolderKey message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EncryptedData + * @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)): NotificationCenter.EncryptedData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SharedFolderKey; /** - * Verifies an EncryptedData message. + * 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 an EncryptedData message from a plain object. Also converts values to their respective internal types. + * Creates a SharedFolderKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EncryptedData + * @returns SharedFolderKey */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.EncryptedData; + public static fromObject(object: { [k: string]: any }): Vault.SharedFolderKey; /** - * Creates a plain object from an EncryptedData message. Also converts values to other types if specified. - * @param message EncryptedData + * Creates a plain object from a SharedFolderKey message. Also converts values to other types if specified. + * @param message SharedFolderKey * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.EncryptedData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SharedFolderKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EncryptedData to JSON. + * Converts this SharedFolderKey to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EncryptedData + * Gets the default type url for SharedFolderKey * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NotificationParameter. */ - interface INotificationParameter { + /** Properties of a Team. */ + interface ITeam { - /** NotificationParameter key */ - key?: (string|null); + /** Team teamUid */ + teamUid?: (Uint8Array|null); - /** NotificationParameter data */ - data?: (Uint8Array|null); + /** Team name */ + name?: (string|null); + + /** Team teamKey */ + teamKey?: (Uint8Array|null); + + /** Team teamKeyType */ + teamKeyType?: (Records.RecordKeyType|null); + + /** Team teamPrivateKey */ + teamPrivateKey?: (Uint8Array|null); + + /** Team restrictEdit */ + restrictEdit?: (boolean|null); + + /** Team restrictShare */ + restrictShare?: (boolean|null); + + /** Team restrictView */ + restrictView?: (boolean|null); + + /** Team removedSharedFolders */ + removedSharedFolders?: (Uint8Array[]|null); + + /** Team sharedFolderKeys */ + sharedFolderKeys?: (Vault.ISharedFolderKey[]|null); + + /** Team teamEccPrivateKey */ + teamEccPrivateKey?: (Uint8Array|null); + + /** Team teamEccPublicKey */ + teamEccPublicKey?: (Uint8Array|null); } - /** Represents a NotificationParameter. */ - class NotificationParameter implements INotificationParameter { + /** Represents a Team. */ + class Team implements ITeam { /** - * Constructs a new NotificationParameter. + * Constructs a new Team. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.INotificationParameter); + constructor(properties?: Vault.ITeam); - /** NotificationParameter key. */ - public key: string; + /** Team teamUid. */ + public teamUid: Uint8Array; - /** NotificationParameter data. */ - public data: Uint8Array; + /** Team name. */ + public name: string; + + /** Team teamKey. */ + public teamKey: Uint8Array; + + /** Team teamKeyType. */ + public teamKeyType: Records.RecordKeyType; + + /** Team teamPrivateKey. */ + public teamPrivateKey: Uint8Array; + + /** Team restrictEdit. */ + public restrictEdit: boolean; + + /** Team restrictShare. */ + public restrictShare: boolean; + + /** Team restrictView. */ + public restrictView: boolean; + + /** Team removedSharedFolders. */ + public removedSharedFolders: Uint8Array[]; + + /** Team sharedFolderKeys. */ + public sharedFolderKeys: Vault.ISharedFolderKey[]; + + /** Team teamEccPrivateKey. */ + public teamEccPrivateKey: Uint8Array; + + /** Team teamEccPublicKey. */ + public teamEccPublicKey: Uint8Array; /** - * Creates a new NotificationParameter instance using the specified properties. + * Creates a new Team instance using the specified properties. * @param [properties] Properties to set - * @returns NotificationParameter instance + * @returns Team instance */ - public static create(properties?: NotificationCenter.INotificationParameter): NotificationCenter.NotificationParameter; + public static create(properties?: Vault.ITeam): Vault.Team; /** - * Encodes the specified NotificationParameter message. Does not implicitly {@link NotificationCenter.NotificationParameter.verify|verify} messages. - * @param message NotificationParameter message or plain object to encode + * Encodes the specified Team message. 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 encode(message: NotificationCenter.INotificationParameter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ITeam, 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 + * 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: NotificationCenter.INotificationParameter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.ITeam, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NotificationParameter message from the specified reader or buffer. + * Decodes a Team message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NotificationParameter + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationParameter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.Team; /** - * Decodes a NotificationParameter message from the specified reader or buffer, length delimited. + * Decodes a Team message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NotificationParameter + * @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)): NotificationCenter.NotificationParameter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.Team; /** - * Verifies a NotificationParameter message. + * 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 NotificationParameter message from a plain object. Also converts values to their respective internal types. + * Creates a Team message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NotificationParameter + * @returns Team */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationParameter; + public static fromObject(object: { [k: string]: any }): Vault.Team; /** - * Creates a plain object from a NotificationParameter message. Also converts values to other types if specified. - * @param message NotificationParameter + * Creates a plain object from a Team message. Also converts values to other types if specified. + * @param message Team * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationParameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.Team, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NotificationParameter to JSON. + * Converts this Team to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NotificationParameter + * Gets the default type url for Team * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Notification. */ - interface INotification { + /** Properties of a Record. */ + interface IRecord { - /** Notification type */ - type?: (NotificationCenter.NotificationType|null); + /** Record recordUid */ + recordUid?: (Uint8Array|null); - /** Notification category */ - category?: (NotificationCenter.NotificationCategory|null); + /** Record revision */ + revision?: (number|Long|null); - /** Notification sender */ - sender?: (GraphSync.IGraphSyncRef|null); + /** Record version */ + version?: (number|null); - /** Notification senderFullName */ - senderFullName?: (string|null); + /** Record shared */ + shared?: (boolean|null); - /** Notification encryptedData */ - encryptedData?: (NotificationCenter.IEncryptedData|null); + /** Record clientModifiedTime */ + clientModifiedTime?: (number|Long|null); - /** Notification refs */ - refs?: (GraphSync.IGraphSyncRef[]|null); + /** Record data */ + data?: (Uint8Array|null); - /** Notification categories */ - categories?: (NotificationCenter.NotificationCategory[]|null); + /** Record extra */ + extra?: (Uint8Array|null); - /** Notification parameters */ - parameters?: (NotificationCenter.INotificationParameter[]|null); + /** Record udata */ + udata?: (string|null); + + /** Record fileSize */ + fileSize?: (number|Long|null); + + /** Record thumbnailSize */ + thumbnailSize?: (number|Long|null); } - /** Represents a Notification. */ - class Notification implements INotification { + /** Represents a Record. */ + class Record implements IRecord { /** - * Constructs a new Notification. + * Constructs a new Record. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.INotification); + constructor(properties?: Vault.IRecord); - /** Notification type. */ - public type: NotificationCenter.NotificationType; + /** Record recordUid. */ + public recordUid: Uint8Array; - /** Notification category. */ - public category: NotificationCenter.NotificationCategory; + /** Record revision. */ + public revision: (number|Long); - /** Notification sender. */ - public sender?: (GraphSync.IGraphSyncRef|null); + /** Record version. */ + public version: number; - /** Notification senderFullName. */ - public senderFullName: string; + /** Record shared. */ + public shared: boolean; - /** Notification encryptedData. */ - public encryptedData?: (NotificationCenter.IEncryptedData|null); + /** Record clientModifiedTime. */ + public clientModifiedTime: (number|Long); - /** Notification refs. */ - public refs: GraphSync.IGraphSyncRef[]; + /** Record data. */ + public data: Uint8Array; - /** Notification categories. */ - public categories: NotificationCenter.NotificationCategory[]; + /** Record extra. */ + public extra: Uint8Array; - /** Notification parameters. */ - public parameters: NotificationCenter.INotificationParameter[]; + /** Record udata. */ + public udata: string; + + /** Record fileSize. */ + public fileSize: (number|Long); + + /** Record thumbnailSize. */ + public thumbnailSize: (number|Long); /** - * Creates a new Notification instance using the specified properties. + * Creates a new Record instance using the specified properties. * @param [properties] Properties to set - * @returns Notification instance + * @returns Record instance */ - public static create(properties?: NotificationCenter.INotification): NotificationCenter.Notification; + public static create(properties?: Vault.IRecord): Vault.Record; /** - * Encodes the specified Notification message. Does not implicitly {@link NotificationCenter.Notification.verify|verify} messages. - * @param message Notification message or plain object to encode + * Encodes the specified Record message. 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 encode(message: NotificationCenter.INotification, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IRecord, 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 + * 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: NotificationCenter.INotification, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Notification message from the specified reader or buffer. + * Decodes a Record message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Notification + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.Notification; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.Record; /** - * Decodes a Notification message from the specified reader or buffer, length delimited. + * Decodes a Record message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Notification + * @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)): NotificationCenter.Notification; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.Record; /** - * Verifies a Notification message. + * 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 Notification message from a plain object. Also converts values to their respective internal types. + * Creates a Record message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Notification + * @returns Record */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.Notification; + public static fromObject(object: { [k: string]: any }): Vault.Record; /** - * Creates a plain object from a Notification message. Also converts values to other types if specified. - * @param message Notification + * Creates a plain object from a Record message. Also converts values to other types if specified. + * @param message Record * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.Notification, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.Record, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Notification to JSON. + * Converts this Record to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Notification + * Gets the default type url for Record * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NotificationReadMark. */ - interface INotificationReadMark { + /** Properties of a RecordLink. */ + interface IRecordLink { - /** NotificationReadMark uid */ - uid?: (Uint8Array|null); + /** RecordLink parentRecordUid */ + parentRecordUid?: (Uint8Array|null); - /** NotificationReadMark notificationEdgeId */ - notificationEdgeId?: (number|Long|null); + /** RecordLink childRecordUid */ + childRecordUid?: (Uint8Array|null); - /** NotificationReadMark markEdgeId */ - markEdgeId?: (number|Long|null); + /** RecordLink recordKey */ + recordKey?: (Uint8Array|null); - /** NotificationReadMark readStatus */ - readStatus?: (NotificationCenter.NotificationReadStatus|null); + /** RecordLink revision */ + revision?: (number|Long|null); } - /** Represents a NotificationReadMark. */ - class NotificationReadMark implements INotificationReadMark { + /** Represents a RecordLink. */ + class RecordLink implements IRecordLink { /** - * Constructs a new NotificationReadMark. + * Constructs a new RecordLink. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.INotificationReadMark); + constructor(properties?: Vault.IRecordLink); - /** NotificationReadMark uid. */ - public uid: Uint8Array; + /** RecordLink parentRecordUid. */ + public parentRecordUid: Uint8Array; - /** NotificationReadMark notificationEdgeId. */ - public notificationEdgeId: (number|Long); + /** RecordLink childRecordUid. */ + public childRecordUid: Uint8Array; - /** NotificationReadMark markEdgeId. */ - public markEdgeId: (number|Long); + /** RecordLink recordKey. */ + public recordKey: Uint8Array; - /** NotificationReadMark readStatus. */ - public readStatus: NotificationCenter.NotificationReadStatus; + /** RecordLink revision. */ + public revision: (number|Long); /** - * Creates a new NotificationReadMark instance using the specified properties. + * Creates a new RecordLink instance using the specified properties. * @param [properties] Properties to set - * @returns NotificationReadMark instance + * @returns RecordLink instance */ - public static create(properties?: NotificationCenter.INotificationReadMark): NotificationCenter.NotificationReadMark; + public static create(properties?: Vault.IRecordLink): Vault.RecordLink; /** - * Encodes the specified NotificationReadMark message. Does not implicitly {@link NotificationCenter.NotificationReadMark.verify|verify} messages. - * @param message NotificationReadMark message or plain object to encode + * Encodes the specified RecordLink message. 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 encode(message: NotificationCenter.INotificationReadMark, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IRecordLink, 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 + * 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: NotificationCenter.INotificationReadMark, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IRecordLink, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NotificationReadMark message from the specified reader or buffer. + * Decodes a RecordLink message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NotificationReadMark + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationReadMark; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.RecordLink; /** - * Decodes a NotificationReadMark message from the specified reader or buffer, length delimited. + * Decodes a RecordLink message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NotificationReadMark + * @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)): NotificationCenter.NotificationReadMark; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.RecordLink; /** - * Verifies a NotificationReadMark message. + * 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 NotificationReadMark message from a plain object. Also converts values to their respective internal types. + * Creates a RecordLink message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NotificationReadMark + * @returns RecordLink */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationReadMark; + public static fromObject(object: { [k: string]: any }): Vault.RecordLink; /** - * Creates a plain object from a NotificationReadMark message. Also converts values to other types if specified. - * @param message NotificationReadMark + * Creates a plain object from a RecordLink message. Also converts values to other types if specified. + * @param message RecordLink * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationReadMark, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.RecordLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NotificationReadMark to JSON. + * Converts this RecordLink to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NotificationReadMark + * Gets the default type url for RecordLink * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NotificationContent. */ - interface INotificationContent { - - /** NotificationContent notification */ - notification?: (NotificationCenter.INotification|null); - - /** NotificationContent readStatus */ - readStatus?: (NotificationCenter.NotificationReadStatus|null); - - /** NotificationContent approvalStatus */ - approvalStatus?: (NotificationCenter.NotificationApprovalStatus|null); + /** Properties of a UserFolderRecord. */ + interface IUserFolderRecord { - /** NotificationContent trimmingPoint */ - trimmingPoint?: (boolean|null); + /** UserFolderRecord folderUid */ + folderUid?: (Uint8Array|null); - /** NotificationContent clientTypeIDs */ - clientTypeIDs?: (number[]|null); + /** UserFolderRecord recordUid */ + recordUid?: (Uint8Array|null); - /** NotificationContent deviceIDs */ - deviceIDs?: ((number|Long)[]|null); + /** UserFolderRecord revision */ + revision?: (number|Long|null); } - /** Represents a NotificationContent. */ - class NotificationContent implements INotificationContent { + /** Represents a UserFolderRecord. */ + class UserFolderRecord implements IUserFolderRecord { /** - * Constructs a new NotificationContent. + * Constructs a new UserFolderRecord. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.INotificationContent); - - /** NotificationContent notification. */ - public notification?: (NotificationCenter.INotification|null); - - /** NotificationContent readStatus. */ - public readStatus?: (NotificationCenter.NotificationReadStatus|null); - - /** NotificationContent approvalStatus. */ - public approvalStatus?: (NotificationCenter.NotificationApprovalStatus|null); - - /** NotificationContent trimmingPoint. */ - public trimmingPoint?: (boolean|null); + constructor(properties?: Vault.IUserFolderRecord); - /** NotificationContent clientTypeIDs. */ - public clientTypeIDs: number[]; + /** UserFolderRecord folderUid. */ + public folderUid: Uint8Array; - /** NotificationContent deviceIDs. */ - public deviceIDs: (number|Long)[]; + /** UserFolderRecord recordUid. */ + public recordUid: Uint8Array; - /** NotificationContent type. */ - public type?: ("notification"|"readStatus"|"approvalStatus"|"trimmingPoint"); + /** UserFolderRecord revision. */ + public revision: (number|Long); /** - * Creates a new NotificationContent instance using the specified properties. + * Creates a new UserFolderRecord instance using the specified properties. * @param [properties] Properties to set - * @returns NotificationContent instance + * @returns UserFolderRecord instance */ - public static create(properties?: NotificationCenter.INotificationContent): NotificationCenter.NotificationContent; + public static create(properties?: Vault.IUserFolderRecord): Vault.UserFolderRecord; /** - * Encodes the specified NotificationContent message. Does not implicitly {@link NotificationCenter.NotificationContent.verify|verify} messages. - * @param message NotificationContent message or plain object to encode + * Encodes the specified UserFolderRecord message. 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 encode(message: NotificationCenter.INotificationContent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IUserFolderRecord, 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 + * 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: NotificationCenter.INotificationContent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IUserFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NotificationContent message from the specified reader or buffer. + * Decodes a UserFolderRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NotificationContent + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationContent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.UserFolderRecord; /** - * Decodes a NotificationContent message from the specified reader or buffer, length delimited. + * Decodes a UserFolderRecord message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NotificationContent + * @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)): NotificationCenter.NotificationContent; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.UserFolderRecord; /** - * Verifies a NotificationContent message. + * 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 NotificationContent message from a plain object. Also converts values to their respective internal types. + * Creates a UserFolderRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NotificationContent + * @returns UserFolderRecord */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationContent; + public static fromObject(object: { [k: string]: any }): Vault.UserFolderRecord; /** - * Creates a plain object from a NotificationContent message. Also converts values to other types if specified. - * @param message NotificationContent + * Creates a plain object from a UserFolderRecord message. Also converts values to other types if specified. + * @param message UserFolderRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationContent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.UserFolderRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NotificationContent to JSON. + * Converts this UserFolderRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NotificationContent + * Gets the default type url for UserFolderRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NotificationWrapper. */ - interface INotificationWrapper { + /** Properties of a SharedFolderFolderRecord. */ + interface ISharedFolderFolderRecord { - /** NotificationWrapper uid */ - uid?: (Uint8Array|null); + /** SharedFolderFolderRecord sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); - /** NotificationWrapper content */ - content?: (NotificationCenter.INotificationContent|null); + /** SharedFolderFolderRecord folderUid */ + folderUid?: (Uint8Array|null); - /** NotificationWrapper timestamp */ - timestamp?: (number|Long|null); + /** SharedFolderFolderRecord recordUid */ + recordUid?: (Uint8Array|null); + + /** SharedFolderFolderRecord revision */ + revision?: (number|Long|null); } - /** Represents a NotificationWrapper. */ - class NotificationWrapper implements INotificationWrapper { + /** Represents a SharedFolderFolderRecord. */ + class SharedFolderFolderRecord implements ISharedFolderFolderRecord { /** - * Constructs a new NotificationWrapper. + * Constructs a new SharedFolderFolderRecord. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.INotificationWrapper); + constructor(properties?: Vault.ISharedFolderFolderRecord); - /** NotificationWrapper uid. */ - public uid: Uint8Array; + /** SharedFolderFolderRecord sharedFolderUid. */ + public sharedFolderUid: Uint8Array; - /** NotificationWrapper content. */ - public content?: (NotificationCenter.INotificationContent|null); + /** SharedFolderFolderRecord folderUid. */ + public folderUid: Uint8Array; - /** NotificationWrapper timestamp. */ - public timestamp: (number|Long); + /** SharedFolderFolderRecord recordUid. */ + public recordUid: Uint8Array; + + /** SharedFolderFolderRecord revision. */ + public revision: (number|Long); /** - * Creates a new NotificationWrapper instance using the specified properties. + * Creates a new SharedFolderFolderRecord instance using the specified properties. * @param [properties] Properties to set - * @returns NotificationWrapper instance + * @returns SharedFolderFolderRecord instance */ - public static create(properties?: NotificationCenter.INotificationWrapper): NotificationCenter.NotificationWrapper; + public static create(properties?: Vault.ISharedFolderFolderRecord): Vault.SharedFolderFolderRecord; /** - * Encodes the specified NotificationWrapper message. Does not implicitly {@link NotificationCenter.NotificationWrapper.verify|verify} messages. - * @param message NotificationWrapper message or plain object to encode + * Encodes the specified SharedFolderFolderRecord message. 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 encode(message: NotificationCenter.INotificationWrapper, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISharedFolderFolderRecord, 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 + * 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: NotificationCenter.INotificationWrapper, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.ISharedFolderFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NotificationWrapper message from the specified reader or buffer. + * Decodes a SharedFolderFolderRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NotificationWrapper + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationWrapper; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderFolderRecord; /** - * Decodes a NotificationWrapper message from the specified reader or buffer, length delimited. + * Decodes a SharedFolderFolderRecord message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NotificationWrapper + * @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)): NotificationCenter.NotificationWrapper; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SharedFolderFolderRecord; /** - * Verifies a NotificationWrapper message. + * 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 NotificationWrapper message from a plain object. Also converts values to their respective internal types. + * Creates a SharedFolderFolderRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NotificationWrapper + * @returns SharedFolderFolderRecord */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationWrapper; + public static fromObject(object: { [k: string]: any }): Vault.SharedFolderFolderRecord; /** - * Creates a plain object from a NotificationWrapper message. Also converts values to other types if specified. - * @param message NotificationWrapper + * Creates a plain object from a SharedFolderFolderRecord message. Also converts values to other types if specified. + * @param message SharedFolderFolderRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationWrapper, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SharedFolderFolderRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NotificationWrapper to JSON. + * Converts this SharedFolderFolderRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NotificationWrapper + * Gets the default type url for SharedFolderFolderRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NotificationSync. */ - interface INotificationSync { - - /** NotificationSync data */ - data?: (NotificationCenter.INotificationWrapper[]|null); + /** Properties of a NonSharedData. */ + interface INonSharedData { - /** NotificationSync syncPoint */ - syncPoint?: (number|Long|null); + /** NonSharedData recordUid */ + recordUid?: (Uint8Array|null); - /** NotificationSync hasMore */ - hasMore?: (boolean|null); + /** NonSharedData data */ + data?: (Uint8Array|null); } - /** Represents a NotificationSync. */ - class NotificationSync implements INotificationSync { + /** Represents a NonSharedData. */ + class NonSharedData implements INonSharedData { /** - * Constructs a new NotificationSync. + * Constructs a new NonSharedData. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.INotificationSync); - - /** NotificationSync data. */ - public data: NotificationCenter.INotificationWrapper[]; + constructor(properties?: Vault.INonSharedData); - /** NotificationSync syncPoint. */ - public syncPoint: (number|Long); + /** NonSharedData recordUid. */ + public recordUid: Uint8Array; - /** NotificationSync hasMore. */ - public hasMore: boolean; + /** NonSharedData data. */ + public data: Uint8Array; /** - * Creates a new NotificationSync instance using the specified properties. + * Creates a new NonSharedData instance using the specified properties. * @param [properties] Properties to set - * @returns NotificationSync instance + * @returns NonSharedData instance */ - public static create(properties?: NotificationCenter.INotificationSync): NotificationCenter.NotificationSync; + public static create(properties?: Vault.INonSharedData): Vault.NonSharedData; /** - * Encodes the specified NotificationSync message. Does not implicitly {@link NotificationCenter.NotificationSync.verify|verify} messages. - * @param message NotificationSync message or plain object to encode + * Encodes the specified NonSharedData message. 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 encode(message: NotificationCenter.INotificationSync, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.INonSharedData, 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 + * 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: NotificationCenter.INotificationSync, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.INonSharedData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NotificationSync message from the specified reader or buffer. + * Decodes a NonSharedData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NotificationSync + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationSync; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.NonSharedData; /** - * Decodes a NotificationSync message from the specified reader or buffer, length delimited. + * Decodes a NonSharedData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NotificationSync + * @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)): NotificationCenter.NotificationSync; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.NonSharedData; /** - * Verifies a NotificationSync message. + * 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 NotificationSync message from a plain object. Also converts values to their respective internal types. + * Creates a NonSharedData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NotificationSync + * @returns NonSharedData */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationSync; + public static fromObject(object: { [k: string]: any }): Vault.NonSharedData; /** - * Creates a plain object from a NotificationSync message. Also converts values to other types if specified. - * @param message NotificationSync + * Creates a plain object from a NonSharedData message. Also converts values to other types if specified. + * @param message NonSharedData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationSync, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.NonSharedData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NotificationSync to JSON. + * Converts this NonSharedData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NotificationSync + * Gets the default type url for NonSharedData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadStatusUpdate. */ - interface IReadStatusUpdate { + /** Properties of a RecordMetaData. */ + interface IRecordMetaData { - /** ReadStatusUpdate notificationUid */ - notificationUid?: (Uint8Array|null); + /** RecordMetaData recordUid */ + recordUid?: (Uint8Array|null); - /** ReadStatusUpdate status */ - status?: (NotificationCenter.NotificationReadStatus|null); + /** RecordMetaData owner */ + owner?: (boolean|null); + + /** RecordMetaData recordKey */ + recordKey?: (Uint8Array|null); + + /** RecordMetaData recordKeyType */ + recordKeyType?: (Records.RecordKeyType|null); + + /** RecordMetaData canShare */ + canShare?: (boolean|null); + + /** RecordMetaData canEdit */ + canEdit?: (boolean|null); + + /** RecordMetaData ownerAccountUid */ + ownerAccountUid?: (Uint8Array|null); + + /** RecordMetaData expiration */ + expiration?: (number|Long|null); + + /** RecordMetaData expirationNotificationType */ + expirationNotificationType?: (Records.TimerNotificationType|null); + + /** RecordMetaData ownerUsername */ + ownerUsername?: (string|null); } - /** Represents a ReadStatusUpdate. */ - class ReadStatusUpdate implements IReadStatusUpdate { + /** Represents a RecordMetaData. */ + class RecordMetaData implements IRecordMetaData { /** - * Constructs a new ReadStatusUpdate. + * Constructs a new RecordMetaData. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.IReadStatusUpdate); + constructor(properties?: Vault.IRecordMetaData); - /** ReadStatusUpdate notificationUid. */ - public notificationUid: Uint8Array; + /** RecordMetaData recordUid. */ + public recordUid: Uint8Array; - /** ReadStatusUpdate status. */ - public status: NotificationCenter.NotificationReadStatus; + /** RecordMetaData owner. */ + public owner: boolean; + + /** RecordMetaData recordKey. */ + public recordKey: Uint8Array; + + /** RecordMetaData recordKeyType. */ + public recordKeyType: Records.RecordKeyType; + + /** RecordMetaData canShare. */ + public canShare: boolean; + + /** RecordMetaData canEdit. */ + public canEdit: boolean; + + /** RecordMetaData ownerAccountUid. */ + public ownerAccountUid: Uint8Array; + + /** RecordMetaData expiration. */ + public expiration: (number|Long); + + /** RecordMetaData expirationNotificationType. */ + public expirationNotificationType: Records.TimerNotificationType; + + /** RecordMetaData ownerUsername. */ + public ownerUsername: string; /** - * Creates a new ReadStatusUpdate instance using the specified properties. + * Creates a new RecordMetaData instance using the specified properties. * @param [properties] Properties to set - * @returns ReadStatusUpdate instance + * @returns RecordMetaData instance */ - public static create(properties?: NotificationCenter.IReadStatusUpdate): NotificationCenter.ReadStatusUpdate; + public static create(properties?: Vault.IRecordMetaData): Vault.RecordMetaData; /** - * Encodes the specified ReadStatusUpdate message. Does not implicitly {@link NotificationCenter.ReadStatusUpdate.verify|verify} messages. - * @param message ReadStatusUpdate message or plain object to encode + * Encodes the specified RecordMetaData message. 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 encode(message: NotificationCenter.IReadStatusUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IRecordMetaData, 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 + * 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: NotificationCenter.IReadStatusUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IRecordMetaData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadStatusUpdate message from the specified reader or buffer. + * Decodes a RecordMetaData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadStatusUpdate + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.ReadStatusUpdate; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.RecordMetaData; /** - * Decodes a ReadStatusUpdate message from the specified reader or buffer, length delimited. + * Decodes a RecordMetaData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadStatusUpdate + * @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)): NotificationCenter.ReadStatusUpdate; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.RecordMetaData; /** - * Verifies a ReadStatusUpdate message. + * 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 ReadStatusUpdate message from a plain object. Also converts values to their respective internal types. + * Creates a RecordMetaData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadStatusUpdate + * @returns RecordMetaData */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.ReadStatusUpdate; + public static fromObject(object: { [k: string]: any }): Vault.RecordMetaData; /** - * Creates a plain object from a ReadStatusUpdate message. Also converts values to other types if specified. - * @param message ReadStatusUpdate + * Creates a plain object from a RecordMetaData message. Also converts values to other types if specified. + * @param message RecordMetaData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.ReadStatusUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.RecordMetaData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadStatusUpdate to JSON. + * Converts this RecordMetaData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadStatusUpdate + * Gets the default type url for RecordMetaData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ApprovalStatusUpdate. */ - interface IApprovalStatusUpdate { + /** Properties of a SharingChange. */ + interface ISharingChange { - /** ApprovalStatusUpdate notificationUid */ - notificationUid?: (Uint8Array|null); + /** SharingChange recordUid */ + recordUid?: (Uint8Array|null); - /** ApprovalStatusUpdate status */ - status?: (NotificationCenter.NotificationApprovalStatus|null); + /** SharingChange shared */ + shared?: (boolean|null); } - /** Represents an ApprovalStatusUpdate. */ - class ApprovalStatusUpdate implements IApprovalStatusUpdate { + /** Represents a SharingChange. */ + class SharingChange implements ISharingChange { /** - * Constructs a new ApprovalStatusUpdate. + * Constructs a new SharingChange. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.IApprovalStatusUpdate); + constructor(properties?: Vault.ISharingChange); - /** ApprovalStatusUpdate notificationUid. */ - public notificationUid: Uint8Array; + /** SharingChange recordUid. */ + public recordUid: Uint8Array; - /** ApprovalStatusUpdate status. */ - public status: NotificationCenter.NotificationApprovalStatus; + /** SharingChange shared. */ + public shared: boolean; /** - * Creates a new ApprovalStatusUpdate instance using the specified properties. + * Creates a new SharingChange instance using the specified properties. * @param [properties] Properties to set - * @returns ApprovalStatusUpdate instance + * @returns SharingChange instance */ - public static create(properties?: NotificationCenter.IApprovalStatusUpdate): NotificationCenter.ApprovalStatusUpdate; + public static create(properties?: Vault.ISharingChange): Vault.SharingChange; /** - * Encodes the specified ApprovalStatusUpdate message. Does not implicitly {@link NotificationCenter.ApprovalStatusUpdate.verify|verify} messages. - * @param message ApprovalStatusUpdate message or plain object to encode + * Encodes the specified SharingChange message. 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 encode(message: NotificationCenter.IApprovalStatusUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISharingChange, 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 + * 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: NotificationCenter.IApprovalStatusUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.ISharingChange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApprovalStatusUpdate message from the specified reader or buffer. + * Decodes a SharingChange message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ApprovalStatusUpdate + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.ApprovalStatusUpdate; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharingChange; /** - * Decodes an ApprovalStatusUpdate message from the specified reader or buffer, length delimited. + * Decodes a SharingChange message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ApprovalStatusUpdate + * @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)): NotificationCenter.ApprovalStatusUpdate; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SharingChange; /** - * Verifies an ApprovalStatusUpdate message. + * 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 an ApprovalStatusUpdate message from a plain object. Also converts values to their respective internal types. + * Creates a SharingChange message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApprovalStatusUpdate + * @returns SharingChange */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.ApprovalStatusUpdate; + public static fromObject(object: { [k: string]: any }): Vault.SharingChange; /** - * Creates a plain object from an ApprovalStatusUpdate message. Also converts values to other types if specified. - * @param message ApprovalStatusUpdate + * Creates a plain object from a SharingChange message. Also converts values to other types if specified. + * @param message SharingChange * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.ApprovalStatusUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SharingChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApprovalStatusUpdate to JSON. + * Converts this SharingChange to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ApprovalStatusUpdate + * Gets the default type url for SharingChange * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ProcessMarkReadEventsRequest. */ - interface IProcessMarkReadEventsRequest { + /** Properties of a Profile. */ + interface IProfile { - /** ProcessMarkReadEventsRequest readStatusUpdate */ - readStatusUpdate?: (NotificationCenter.IReadStatusUpdate[]|null); + /** Profile data */ + data?: (Uint8Array|null); + + /** Profile profileName */ + profileName?: (string|null); + + /** Profile revision */ + revision?: (number|Long|null); } - /** Represents a ProcessMarkReadEventsRequest. */ - class ProcessMarkReadEventsRequest implements IProcessMarkReadEventsRequest { + /** Represents a Profile. */ + class Profile implements IProfile { /** - * Constructs a new ProcessMarkReadEventsRequest. + * Constructs a new Profile. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.IProcessMarkReadEventsRequest); + constructor(properties?: Vault.IProfile); - /** ProcessMarkReadEventsRequest readStatusUpdate. */ - public readStatusUpdate: NotificationCenter.IReadStatusUpdate[]; + /** Profile data. */ + public data: Uint8Array; + + /** Profile profileName. */ + public profileName: string; + + /** Profile revision. */ + public revision: (number|Long); /** - * Creates a new ProcessMarkReadEventsRequest instance using the specified properties. + * Creates a new Profile instance using the specified properties. * @param [properties] Properties to set - * @returns ProcessMarkReadEventsRequest instance + * @returns Profile instance */ - public static create(properties?: NotificationCenter.IProcessMarkReadEventsRequest): NotificationCenter.ProcessMarkReadEventsRequest; + public static create(properties?: Vault.IProfile): Vault.Profile; /** - * Encodes the specified ProcessMarkReadEventsRequest message. Does not implicitly {@link NotificationCenter.ProcessMarkReadEventsRequest.verify|verify} messages. - * @param message ProcessMarkReadEventsRequest message or plain object to encode + * Encodes the specified Profile message. 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 encode(message: NotificationCenter.IProcessMarkReadEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IProfile, 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 + * 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: NotificationCenter.IProcessMarkReadEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IProfile, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ProcessMarkReadEventsRequest message from the specified reader or buffer. + * Decodes a Profile message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ProcessMarkReadEventsRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.ProcessMarkReadEventsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.Profile; /** - * Decodes a ProcessMarkReadEventsRequest message from the specified reader or buffer, length delimited. + * Decodes a Profile message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ProcessMarkReadEventsRequest + * @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)): NotificationCenter.ProcessMarkReadEventsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.Profile; /** - * Verifies a ProcessMarkReadEventsRequest message. + * 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 ProcessMarkReadEventsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Profile message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ProcessMarkReadEventsRequest + * @returns Profile */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.ProcessMarkReadEventsRequest; + public static fromObject(object: { [k: string]: any }): Vault.Profile; /** - * Creates a plain object from a ProcessMarkReadEventsRequest message. Also converts values to other types if specified. - * @param message ProcessMarkReadEventsRequest + * Creates a plain object from a Profile message. Also converts values to other types if specified. + * @param message Profile * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.ProcessMarkReadEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.Profile, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ProcessMarkReadEventsRequest to JSON. + * Converts this Profile to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ProcessMarkReadEventsRequest + * Gets the default type url for Profile * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NotificationSendRequest. */ - interface INotificationSendRequest { - - /** NotificationSendRequest recipients */ - recipients?: (GraphSync.IGraphSyncRef[]|null); - - /** NotificationSendRequest notification */ - notification?: (NotificationCenter.INotification|null); - - /** NotificationSendRequest clientTypeIDs */ - clientTypeIDs?: (number[]|null); + /** Properties of a ProfilePic. */ + interface IProfilePic { - /** NotificationSendRequest deviceIDs */ - deviceIDs?: ((number|Long)[]|null); + /** ProfilePic url */ + url?: (string|null); - /** NotificationSendRequest predefinedUid */ - predefinedUid?: (Uint8Array|null); + /** ProfilePic revision */ + revision?: (number|Long|null); } - /** Represents a NotificationSendRequest. */ - class NotificationSendRequest implements INotificationSendRequest { + /** Represents a ProfilePic. */ + class ProfilePic implements IProfilePic { /** - * Constructs a new NotificationSendRequest. + * Constructs a new ProfilePic. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.INotificationSendRequest); - - /** NotificationSendRequest recipients. */ - public recipients: GraphSync.IGraphSyncRef[]; - - /** NotificationSendRequest notification. */ - public notification?: (NotificationCenter.INotification|null); - - /** NotificationSendRequest clientTypeIDs. */ - public clientTypeIDs: number[]; - - /** NotificationSendRequest deviceIDs. */ - public deviceIDs: (number|Long)[]; + constructor(properties?: Vault.IProfilePic); - /** NotificationSendRequest predefinedUid. */ - public predefinedUid?: (Uint8Array|null); + /** ProfilePic url. */ + public url: string; - /** NotificationSendRequest _predefinedUid. */ - public _predefinedUid?: "predefinedUid"; + /** ProfilePic revision. */ + public revision: (number|Long); /** - * Creates a new NotificationSendRequest instance using the specified properties. + * Creates a new ProfilePic instance using the specified properties. * @param [properties] Properties to set - * @returns NotificationSendRequest instance + * @returns ProfilePic instance */ - public static create(properties?: NotificationCenter.INotificationSendRequest): NotificationCenter.NotificationSendRequest; + public static create(properties?: Vault.IProfilePic): Vault.ProfilePic; /** - * Encodes the specified NotificationSendRequest message. Does not implicitly {@link NotificationCenter.NotificationSendRequest.verify|verify} messages. - * @param message NotificationSendRequest message or plain object to encode + * Encodes the specified ProfilePic message. 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 encode(message: NotificationCenter.INotificationSendRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IProfilePic, 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 + * 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: NotificationCenter.INotificationSendRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IProfilePic, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NotificationSendRequest message from the specified reader or buffer. + * Decodes a ProfilePic message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NotificationSendRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationSendRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.ProfilePic; /** - * Decodes a NotificationSendRequest message from the specified reader or buffer, length delimited. + * Decodes a ProfilePic message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NotificationSendRequest + * @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)): NotificationCenter.NotificationSendRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.ProfilePic; /** - * Verifies a NotificationSendRequest message. + * 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 NotificationSendRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ProfilePic message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NotificationSendRequest + * @returns ProfilePic */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationSendRequest; + public static fromObject(object: { [k: string]: any }): Vault.ProfilePic; /** - * Creates a plain object from a NotificationSendRequest message. Also converts values to other types if specified. - * @param message NotificationSendRequest + * Creates a plain object from a ProfilePic message. Also converts values to other types if specified. + * @param message ProfilePic * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationSendRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.ProfilePic, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NotificationSendRequest to JSON. + * Converts this ProfilePic to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NotificationSendRequest + * Gets the default type url for ProfilePic * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NotificationsSendRequest. */ - interface INotificationsSendRequest { + /** Properties of a PendingTeamMember. */ + interface IPendingTeamMember { - /** NotificationsSendRequest notifications */ - notifications?: (NotificationCenter.INotificationSendRequest[]|null); + /** PendingTeamMember enterpriseUserId */ + enterpriseUserId?: (number|Long|null); + + /** PendingTeamMember userPublicKey */ + userPublicKey?: (Uint8Array|null); + + /** PendingTeamMember teamUids */ + teamUids?: (Uint8Array[]|null); + + /** PendingTeamMember userEccPublicKey */ + userEccPublicKey?: (Uint8Array|null); } - /** Represents a NotificationsSendRequest. */ - class NotificationsSendRequest implements INotificationsSendRequest { + /** Represents a PendingTeamMember. */ + class PendingTeamMember implements IPendingTeamMember { /** - * Constructs a new NotificationsSendRequest. + * Constructs a new PendingTeamMember. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.INotificationsSendRequest); + constructor(properties?: Vault.IPendingTeamMember); - /** NotificationsSendRequest notifications. */ - public notifications: NotificationCenter.INotificationSendRequest[]; + /** PendingTeamMember enterpriseUserId. */ + public enterpriseUserId: (number|Long); + + /** PendingTeamMember userPublicKey. */ + public userPublicKey: Uint8Array; + + /** PendingTeamMember teamUids. */ + public teamUids: Uint8Array[]; + + /** PendingTeamMember userEccPublicKey. */ + public userEccPublicKey: Uint8Array; /** - * Creates a new NotificationsSendRequest instance using the specified properties. + * Creates a new PendingTeamMember instance using the specified properties. * @param [properties] Properties to set - * @returns NotificationsSendRequest instance + * @returns PendingTeamMember instance */ - public static create(properties?: NotificationCenter.INotificationsSendRequest): NotificationCenter.NotificationsSendRequest; + public static create(properties?: Vault.IPendingTeamMember): Vault.PendingTeamMember; /** - * Encodes the specified NotificationsSendRequest message. Does not implicitly {@link NotificationCenter.NotificationsSendRequest.verify|verify} messages. - * @param message NotificationsSendRequest message or plain object to encode + * Encodes the specified PendingTeamMember message. 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 encode(message: NotificationCenter.INotificationsSendRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IPendingTeamMember, 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 + * 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: NotificationCenter.INotificationsSendRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IPendingTeamMember, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NotificationsSendRequest message from the specified reader or buffer. + * Decodes a PendingTeamMember message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NotificationsSendRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationsSendRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.PendingTeamMember; /** - * Decodes a NotificationsSendRequest message from the specified reader or buffer, length delimited. + * Decodes a PendingTeamMember message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NotificationsSendRequest + * @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)): NotificationCenter.NotificationsSendRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.PendingTeamMember; /** - * Verifies a NotificationsSendRequest message. + * 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 NotificationsSendRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PendingTeamMember message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NotificationsSendRequest + * @returns PendingTeamMember */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationsSendRequest; + public static fromObject(object: { [k: string]: any }): Vault.PendingTeamMember; /** - * Creates a plain object from a NotificationsSendRequest message. Also converts values to other types if specified. - * @param message NotificationsSendRequest + * Creates a plain object from a PendingTeamMember message. Also converts values to other types if specified. + * @param message PendingTeamMember * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationsSendRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.PendingTeamMember, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NotificationsSendRequest to JSON. + * Converts this PendingTeamMember to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NotificationsSendRequest + * Gets the default type url for PendingTeamMember * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NotificationSyncRequest. */ - interface INotificationSyncRequest { + /** Properties of a BreachWatchRecord. */ + interface IBreachWatchRecord { - /** NotificationSyncRequest syncPoint */ - syncPoint?: (number|Long|null); + /** BreachWatchRecord recordUid */ + recordUid?: (Uint8Array|null); + + /** BreachWatchRecord data */ + data?: (Uint8Array|null); + + /** BreachWatchRecord type */ + type?: (BreachWatch.BreachWatchInfoType|null); + + /** BreachWatchRecord scannedBy */ + scannedBy?: (string|null); + + /** BreachWatchRecord revision */ + revision?: (number|Long|null); + + /** BreachWatchRecord scannedByAccountUid */ + scannedByAccountUid?: (Uint8Array|null); } - /** Represents a NotificationSyncRequest. */ - class NotificationSyncRequest implements INotificationSyncRequest { + /** Represents a BreachWatchRecord. */ + class BreachWatchRecord implements IBreachWatchRecord { /** - * Constructs a new NotificationSyncRequest. + * Constructs a new BreachWatchRecord. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.INotificationSyncRequest); + constructor(properties?: Vault.IBreachWatchRecord); - /** NotificationSyncRequest syncPoint. */ - public syncPoint: (number|Long); + /** BreachWatchRecord recordUid. */ + public recordUid: Uint8Array; + + /** BreachWatchRecord data. */ + public data: Uint8Array; + + /** BreachWatchRecord type. */ + public type: BreachWatch.BreachWatchInfoType; + + /** BreachWatchRecord scannedBy. */ + public scannedBy: string; + + /** BreachWatchRecord revision. */ + public revision: (number|Long); + + /** BreachWatchRecord scannedByAccountUid. */ + public scannedByAccountUid: Uint8Array; /** - * Creates a new NotificationSyncRequest instance using the specified properties. + * Creates a new BreachWatchRecord instance using the specified properties. * @param [properties] Properties to set - * @returns NotificationSyncRequest instance + * @returns BreachWatchRecord instance */ - public static create(properties?: NotificationCenter.INotificationSyncRequest): NotificationCenter.NotificationSyncRequest; + public static create(properties?: Vault.IBreachWatchRecord): Vault.BreachWatchRecord; /** - * Encodes the specified NotificationSyncRequest message. Does not implicitly {@link NotificationCenter.NotificationSyncRequest.verify|verify} messages. - * @param message NotificationSyncRequest message or plain object to encode + * Encodes the specified BreachWatchRecord message. 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 encode(message: NotificationCenter.INotificationSyncRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IBreachWatchRecord, 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 + * 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: NotificationCenter.INotificationSyncRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IBreachWatchRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NotificationSyncRequest message from the specified reader or buffer. + * Decodes a BreachWatchRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NotificationSyncRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationSyncRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.BreachWatchRecord; /** - * Decodes a NotificationSyncRequest message from the specified reader or buffer, length delimited. + * Decodes a BreachWatchRecord message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NotificationSyncRequest + * @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)): NotificationCenter.NotificationSyncRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.BreachWatchRecord; /** - * Verifies a NotificationSyncRequest message. + * 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 NotificationSyncRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BreachWatchRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NotificationSyncRequest + * @returns BreachWatchRecord */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationSyncRequest; + public static fromObject(object: { [k: string]: any }): Vault.BreachWatchRecord; /** - * Creates a plain object from a NotificationSyncRequest message. Also converts values to other types if specified. - * @param message NotificationSyncRequest + * Creates a plain object from a BreachWatchRecord message. Also converts values to other types if specified. + * @param message BreachWatchRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationSyncRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.BreachWatchRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NotificationSyncRequest to JSON. + * Converts this BreachWatchRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NotificationSyncRequest + * Gets the default type url for BreachWatchRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NotificationsApprovalStatusUpdateRequest. */ - interface INotificationsApprovalStatusUpdateRequest { + /** Properties of a UserAuth. */ + interface IUserAuth { - /** NotificationsApprovalStatusUpdateRequest updates */ - updates?: (NotificationCenter.IApprovalStatusUpdate[]|null); - } + /** UserAuth uid */ + uid?: (Uint8Array|null); - /** Represents a NotificationsApprovalStatusUpdateRequest. */ - class NotificationsApprovalStatusUpdateRequest implements INotificationsApprovalStatusUpdateRequest { + /** UserAuth loginType */ + loginType?: (Authentication.LoginType|null); - /** - * Constructs a new NotificationsApprovalStatusUpdateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: NotificationCenter.INotificationsApprovalStatusUpdateRequest); + /** UserAuth deleted */ + deleted?: (boolean|null); + + /** UserAuth iterations */ + iterations?: (number|null); + + /** UserAuth salt */ + salt?: (Uint8Array|null); + + /** UserAuth encryptedClientKey */ + encryptedClientKey?: (Uint8Array|null); - /** NotificationsApprovalStatusUpdateRequest updates. */ - public updates: NotificationCenter.IApprovalStatusUpdate[]; + /** UserAuth revision */ + revision?: (number|Long|null); + + /** UserAuth name */ + name?: (string|null); + } + + /** Represents a UserAuth. */ + class UserAuth implements IUserAuth { /** - * Creates a new NotificationsApprovalStatusUpdateRequest instance using the specified properties. + * Constructs a new UserAuth. * @param [properties] Properties to set - * @returns NotificationsApprovalStatusUpdateRequest instance */ - public static create(properties?: NotificationCenter.INotificationsApprovalStatusUpdateRequest): NotificationCenter.NotificationsApprovalStatusUpdateRequest; + constructor(properties?: Vault.IUserAuth); - /** - * Encodes the specified NotificationsApprovalStatusUpdateRequest message. 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 encode(message: NotificationCenter.INotificationsApprovalStatusUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** UserAuth uid. */ + public uid: Uint8Array; - /** - * 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; + /** UserAuth loginType. */ + public loginType: Authentication.LoginType; + + /** UserAuth deleted. */ + public deleted: boolean; + + /** UserAuth iterations. */ + public iterations: number; + + /** UserAuth salt. */ + public salt: Uint8Array; + + /** UserAuth encryptedClientKey. */ + public encryptedClientKey: Uint8Array; + + /** UserAuth revision. */ + public revision: (number|Long); + + /** UserAuth name. */ + public name: string; /** - * Decodes a NotificationsApprovalStatusUpdateRequest message from the specified reader or buffer. + * Creates a new UserAuth instance using the specified properties. + * @param [properties] Properties to set + * @returns UserAuth instance + */ + public static create(properties?: Vault.IUserAuth): Vault.UserAuth; + + /** + * Encodes the specified UserAuth message. 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 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 * @param [length] Message length if known beforehand - * @returns NotificationsApprovalStatusUpdateRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationsApprovalStatusUpdateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.UserAuth; /** - * Decodes a NotificationsApprovalStatusUpdateRequest message from the specified reader or buffer, length delimited. + * Decodes a UserAuth message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NotificationsApprovalStatusUpdateRequest + * @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)): NotificationCenter.NotificationsApprovalStatusUpdateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.UserAuth; /** - * Verifies a NotificationsApprovalStatusUpdateRequest message. + * 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 NotificationsApprovalStatusUpdateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a UserAuth message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NotificationsApprovalStatusUpdateRequest + * @returns UserAuth */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationsApprovalStatusUpdateRequest; + public static fromObject(object: { [k: string]: any }): Vault.UserAuth; /** - * Creates a plain object from a NotificationsApprovalStatusUpdateRequest message. Also converts values to other types if specified. - * @param message NotificationsApprovalStatusUpdateRequest + * Creates a plain object from a UserAuth message. Also converts values to other types if specified. + * @param message UserAuth * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationsApprovalStatusUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.UserAuth, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NotificationsApprovalStatusUpdateRequest to JSON. + * Converts this UserAuth to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NotificationsApprovalStatusUpdateRequest + * Gets the default type url for UserAuth * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} - -/** Namespace GraphSync. */ -export namespace GraphSync { - - /** RefType enum. */ - enum RefType { - RFT_GENERAL = 0, - RFT_USER = 1, - RFT_DEVICE = 2, - RFT_REC = 3, - RFT_FOLDER = 4, - RFT_TEAM = 5, - RFT_ENTERPRISE = 6, - RFT_PAM_DIRECTORY = 7, - RFT_PAM_MACHINE = 8, - RFT_PAM_DATABASE = 9, - RFT_PAM_USER = 10, - RFT_PAM_NETWORK = 11, - RFT_PAM_BROWSER = 12, - RFT_CONNECTION = 13, - RFT_WORKFLOW = 14, - RFT_NOTIFICATION = 15, - RFT_USER_INFO = 16, - RFT_TEAM_INFO = 17, - RFT_ROLE = 18 - } - /** Properties of a GraphSyncRef. */ - interface IGraphSyncRef { + /** Properties of a BreachWatchSecurityData. */ + interface IBreachWatchSecurityData { - /** GraphSyncRef type */ - type?: (GraphSync.RefType|null); + /** BreachWatchSecurityData recordUid */ + recordUid?: (Uint8Array|null); - /** GraphSyncRef value */ - value?: (Uint8Array|null); + /** BreachWatchSecurityData revision */ + revision?: (number|Long|null); - /** GraphSyncRef name */ - name?: (string|null); + /** BreachWatchSecurityData removed */ + removed?: (boolean|null); } - /** Represents a GraphSyncRef. */ - class GraphSyncRef implements IGraphSyncRef { + /** Represents a BreachWatchSecurityData. */ + class BreachWatchSecurityData implements IBreachWatchSecurityData { /** - * Constructs a new GraphSyncRef. + * Constructs a new BreachWatchSecurityData. * @param [properties] Properties to set */ - constructor(properties?: GraphSync.IGraphSyncRef); + constructor(properties?: Vault.IBreachWatchSecurityData); - /** GraphSyncRef type. */ - public type: GraphSync.RefType; + /** BreachWatchSecurityData recordUid. */ + public recordUid: Uint8Array; - /** GraphSyncRef value. */ - public value: Uint8Array; + /** BreachWatchSecurityData revision. */ + public revision: (number|Long); - /** GraphSyncRef name. */ - public name: string; + /** BreachWatchSecurityData removed. */ + public removed: boolean; /** - * Creates a new GraphSyncRef instance using the specified properties. + * Creates a new BreachWatchSecurityData instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncRef instance + * @returns BreachWatchSecurityData instance */ - public static create(properties?: GraphSync.IGraphSyncRef): GraphSync.GraphSyncRef; + public static create(properties?: Vault.IBreachWatchSecurityData): Vault.BreachWatchSecurityData; /** - * Encodes the specified GraphSyncRef message. Does not implicitly {@link GraphSync.GraphSyncRef.verify|verify} messages. - * @param message GraphSyncRef message or plain object to encode + * Encodes the specified BreachWatchSecurityData message. 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 encode(message: GraphSync.IGraphSyncRef, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IBreachWatchSecurityData, 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 + * 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: GraphSync.IGraphSyncRef, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IBreachWatchSecurityData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncRef message from the specified reader or buffer. + * Decodes a BreachWatchSecurityData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncRef + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncRef; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.BreachWatchSecurityData; /** - * Decodes a GraphSyncRef message from the specified reader or buffer, length delimited. + * Decodes a BreachWatchSecurityData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GraphSyncRef + * @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)): GraphSync.GraphSyncRef; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.BreachWatchSecurityData; /** - * Verifies a GraphSyncRef message. + * 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 GraphSyncRef message from a plain object. Also converts values to their respective internal types. + * Creates a BreachWatchSecurityData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncRef + * @returns BreachWatchSecurityData */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncRef; + public static fromObject(object: { [k: string]: any }): Vault.BreachWatchSecurityData; /** - * Creates a plain object from a GraphSyncRef message. Also converts values to other types if specified. - * @param message GraphSyncRef + * Creates a plain object from a BreachWatchSecurityData message. Also converts values to other types if specified. + * @param message BreachWatchSecurityData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.BreachWatchSecurityData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncRef to JSON. + * Converts this BreachWatchSecurityData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncRef + * Gets the default type url for BreachWatchSecurityData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** GraphSyncDataType enum. */ - enum GraphSyncDataType { - GSE_DATA = 0, - GSE_KEY = 1, - GSE_LINK = 2, - GSE_ACL = 3, - GSE_DELETION = 4 - } - - /** GraphSyncActorType enum. */ - enum GraphSyncActorType { - GSA_USER = 0, - GSA_SERVICE = 1, - GSA_PAM_GATEWAY = 2 - } - - /** Properties of a GraphSyncActor. */ - interface IGraphSyncActor { - - /** GraphSyncActor type */ - type?: (GraphSync.GraphSyncActorType|null); - - /** GraphSyncActor id */ - id?: (Uint8Array|null); + /** Properties of a ReusedPasswords. */ + interface IReusedPasswords { - /** GraphSyncActor name */ - name?: (string|null); + /** ReusedPasswords count */ + count?: (number|null); - /** GraphSyncActor effectiveUserId */ - effectiveUserId?: (Uint8Array|null); + /** ReusedPasswords revision */ + revision?: (number|Long|null); } - /** Represents a GraphSyncActor. */ - class GraphSyncActor implements IGraphSyncActor { + /** Represents a ReusedPasswords. */ + class ReusedPasswords implements IReusedPasswords { /** - * Constructs a new GraphSyncActor. + * Constructs a new ReusedPasswords. * @param [properties] Properties to set */ - constructor(properties?: GraphSync.IGraphSyncActor); - - /** GraphSyncActor type. */ - public type: GraphSync.GraphSyncActorType; - - /** GraphSyncActor id. */ - public id: Uint8Array; + constructor(properties?: Vault.IReusedPasswords); - /** GraphSyncActor name. */ - public name: string; + /** ReusedPasswords count. */ + public count: number; - /** GraphSyncActor effectiveUserId. */ - public effectiveUserId: Uint8Array; + /** ReusedPasswords revision. */ + public revision: (number|Long); /** - * Creates a new GraphSyncActor instance using the specified properties. + * Creates a new ReusedPasswords instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncActor instance + * @returns ReusedPasswords instance */ - public static create(properties?: GraphSync.IGraphSyncActor): GraphSync.GraphSyncActor; + public static create(properties?: Vault.IReusedPasswords): Vault.ReusedPasswords; /** - * Encodes the specified GraphSyncActor message. Does not implicitly {@link GraphSync.GraphSyncActor.verify|verify} messages. - * @param message GraphSyncActor message or plain object to encode + * Encodes the specified ReusedPasswords message. 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 encode(message: GraphSync.IGraphSyncActor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IReusedPasswords, 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 + * 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: GraphSync.IGraphSyncActor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IReusedPasswords, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncActor message from the specified reader or buffer. + * Decodes a ReusedPasswords message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncActor + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncActor; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.ReusedPasswords; /** - * Decodes a GraphSyncActor message from the specified reader or buffer, length delimited. + * Decodes a ReusedPasswords message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GraphSyncActor + * @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)): GraphSync.GraphSyncActor; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.ReusedPasswords; /** - * Verifies a GraphSyncActor message. + * 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 GraphSyncActor message from a plain object. Also converts values to their respective internal types. + * Creates a ReusedPasswords message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncActor + * @returns ReusedPasswords */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncActor; + public static fromObject(object: { [k: string]: any }): Vault.ReusedPasswords; /** - * Creates a plain object from a GraphSyncActor message. Also converts values to other types if specified. - * @param message GraphSyncActor + * Creates a plain object from a ReusedPasswords message. Also converts values to other types if specified. + * @param message ReusedPasswords * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncActor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.ReusedPasswords, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncActor to JSON. + * Converts this ReusedPasswords to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncActor + * Gets the default type url for ReusedPasswords * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GraphSyncData. */ - interface IGraphSyncData { + /** Properties of a SharedFolderRecord. */ + interface ISharedFolderRecord { - /** GraphSyncData type */ - type?: (GraphSync.GraphSyncDataType|null); + /** SharedFolderRecord sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); - /** GraphSyncData ref */ - ref?: (GraphSync.IGraphSyncRef|null); + /** SharedFolderRecord recordUid */ + recordUid?: (Uint8Array|null); - /** GraphSyncData parentRef */ - parentRef?: (GraphSync.IGraphSyncRef|null); + /** SharedFolderRecord recordKey */ + recordKey?: (Uint8Array|null); - /** GraphSyncData content */ - content?: (Uint8Array|null); + /** SharedFolderRecord canShare */ + canShare?: (boolean|null); - /** GraphSyncData path */ - path?: (string|null); + /** SharedFolderRecord canEdit */ + canEdit?: (boolean|null); + + /** SharedFolderRecord ownerAccountUid */ + ownerAccountUid?: (Uint8Array|null); + + /** SharedFolderRecord expiration */ + expiration?: (number|Long|null); + + /** SharedFolderRecord owner */ + owner?: (boolean|null); + + /** SharedFolderRecord expirationNotificationType */ + expirationNotificationType?: (Records.TimerNotificationType|null); + + /** SharedFolderRecord ownerUsername */ + ownerUsername?: (string|null); + + /** SharedFolderRecord rotateOnExpiration */ + rotateOnExpiration?: (boolean|null); } - /** Represents a GraphSyncData. */ - class GraphSyncData implements IGraphSyncData { + /** Represents a SharedFolderRecord. */ + class SharedFolderRecord implements ISharedFolderRecord { /** - * Constructs a new GraphSyncData. + * Constructs a new SharedFolderRecord. * @param [properties] Properties to set */ - constructor(properties?: GraphSync.IGraphSyncData); + constructor(properties?: Vault.ISharedFolderRecord); - /** GraphSyncData type. */ - public type: GraphSync.GraphSyncDataType; + /** SharedFolderRecord sharedFolderUid. */ + public sharedFolderUid: Uint8Array; - /** GraphSyncData ref. */ - public ref?: (GraphSync.IGraphSyncRef|null); + /** SharedFolderRecord recordUid. */ + public recordUid: Uint8Array; - /** GraphSyncData parentRef. */ - public parentRef?: (GraphSync.IGraphSyncRef|null); + /** SharedFolderRecord recordKey. */ + public recordKey: Uint8Array; - /** GraphSyncData content. */ - public content: Uint8Array; + /** SharedFolderRecord canShare. */ + public canShare: boolean; - /** GraphSyncData path. */ - public path: string; + /** SharedFolderRecord canEdit. */ + public canEdit: boolean; + + /** SharedFolderRecord ownerAccountUid. */ + public ownerAccountUid: Uint8Array; + + /** SharedFolderRecord expiration. */ + public expiration: (number|Long); + + /** SharedFolderRecord owner. */ + public owner: boolean; + + /** SharedFolderRecord expirationNotificationType. */ + public expirationNotificationType: Records.TimerNotificationType; + + /** SharedFolderRecord ownerUsername. */ + public ownerUsername: string; + + /** SharedFolderRecord rotateOnExpiration. */ + public rotateOnExpiration: boolean; /** - * Creates a new GraphSyncData instance using the specified properties. + * Creates a new SharedFolderRecord instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncData instance + * @returns SharedFolderRecord instance */ - public static create(properties?: GraphSync.IGraphSyncData): GraphSync.GraphSyncData; + public static create(properties?: Vault.ISharedFolderRecord): Vault.SharedFolderRecord; /** - * Encodes the specified GraphSyncData message. Does not implicitly {@link GraphSync.GraphSyncData.verify|verify} messages. - * @param message GraphSyncData message or plain object to encode + * Encodes the specified SharedFolderRecord message. 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 encode(message: GraphSync.IGraphSyncData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISharedFolderRecord, 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 + * 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: GraphSync.IGraphSyncData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.ISharedFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncData message from the specified reader or buffer. + * Decodes a SharedFolderRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncData + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderRecord; /** - * Decodes a GraphSyncData message from the specified reader or buffer, length delimited. + * Decodes a SharedFolderRecord message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GraphSyncData + * @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)): GraphSync.GraphSyncData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SharedFolderRecord; /** - * Verifies a GraphSyncData message. + * 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 GraphSyncData message from a plain object. Also converts values to their respective internal types. + * Creates a SharedFolderRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncData + * @returns SharedFolderRecord */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncData; + public static fromObject(object: { [k: string]: any }): Vault.SharedFolderRecord; /** - * Creates a plain object from a GraphSyncData message. Also converts values to other types if specified. - * @param message GraphSyncData + * Creates a plain object from a SharedFolderRecord message. Also converts values to other types if specified. + * @param message SharedFolderRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SharedFolderRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncData to JSON. + * Converts this SharedFolderRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncData + * Gets the default type url for SharedFolderRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GraphSyncDataPlus. */ - interface IGraphSyncDataPlus { + /** Properties of a SharedFolderUser. */ + interface ISharedFolderUser { - /** GraphSyncDataPlus data */ - data?: (GraphSync.IGraphSyncData|null); + /** SharedFolderUser sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); - /** GraphSyncDataPlus timestamp */ - timestamp?: (number|Long|null); + /** SharedFolderUser username */ + username?: (string|null); - /** GraphSyncDataPlus actor */ - actor?: (GraphSync.IGraphSyncActor|null); + /** SharedFolderUser manageRecords */ + manageRecords?: (boolean|null); + + /** SharedFolderUser manageUsers */ + manageUsers?: (boolean|null); + + /** SharedFolderUser accountUid */ + accountUid?: (Uint8Array|null); + + /** SharedFolderUser expiration */ + expiration?: (number|Long|null); + + /** SharedFolderUser expirationNotificationType */ + expirationNotificationType?: (Records.TimerNotificationType|null); + + /** SharedFolderUser rotateOnExpiration */ + rotateOnExpiration?: (boolean|null); } - /** Represents a GraphSyncDataPlus. */ - class GraphSyncDataPlus implements IGraphSyncDataPlus { + /** Represents a SharedFolderUser. */ + class SharedFolderUser implements ISharedFolderUser { /** - * Constructs a new GraphSyncDataPlus. + * Constructs a new SharedFolderUser. * @param [properties] Properties to set */ - constructor(properties?: GraphSync.IGraphSyncDataPlus); + constructor(properties?: Vault.ISharedFolderUser); - /** GraphSyncDataPlus data. */ - public data?: (GraphSync.IGraphSyncData|null); + /** SharedFolderUser sharedFolderUid. */ + public sharedFolderUid: Uint8Array; - /** GraphSyncDataPlus timestamp. */ - public timestamp: (number|Long); + /** SharedFolderUser username. */ + public username: string; - /** GraphSyncDataPlus actor. */ - public actor?: (GraphSync.IGraphSyncActor|null); + /** SharedFolderUser manageRecords. */ + public manageRecords: boolean; + + /** SharedFolderUser manageUsers. */ + public manageUsers: boolean; + + /** SharedFolderUser accountUid. */ + public accountUid: Uint8Array; + + /** SharedFolderUser expiration. */ + public expiration: (number|Long); + + /** SharedFolderUser expirationNotificationType. */ + public expirationNotificationType: Records.TimerNotificationType; + + /** SharedFolderUser rotateOnExpiration. */ + public rotateOnExpiration: boolean; /** - * Creates a new GraphSyncDataPlus instance using the specified properties. + * Creates a new SharedFolderUser instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncDataPlus instance + * @returns SharedFolderUser instance */ - public static create(properties?: GraphSync.IGraphSyncDataPlus): GraphSync.GraphSyncDataPlus; + public static create(properties?: Vault.ISharedFolderUser): Vault.SharedFolderUser; /** - * Encodes the specified GraphSyncDataPlus message. Does not implicitly {@link GraphSync.GraphSyncDataPlus.verify|verify} messages. - * @param message GraphSyncDataPlus message or plain object to encode + * Encodes the specified SharedFolderUser message. 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 encode(message: GraphSync.IGraphSyncDataPlus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISharedFolderUser, 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 + * 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: GraphSync.IGraphSyncDataPlus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.ISharedFolderUser, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncDataPlus message from the specified reader or buffer. + * Decodes a SharedFolderUser message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncDataPlus + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncDataPlus; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderUser; /** - * Decodes a GraphSyncDataPlus message from the specified reader or buffer, length delimited. + * Decodes a SharedFolderUser message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GraphSyncDataPlus + * @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)): GraphSync.GraphSyncDataPlus; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SharedFolderUser; /** - * Verifies a GraphSyncDataPlus message. + * 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 GraphSyncDataPlus message from a plain object. Also converts values to their respective internal types. + * Creates a SharedFolderUser message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncDataPlus + * @returns SharedFolderUser */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncDataPlus; + public static fromObject(object: { [k: string]: any }): Vault.SharedFolderUser; /** - * Creates a plain object from a GraphSyncDataPlus message. Also converts values to other types if specified. - * @param message GraphSyncDataPlus + * Creates a plain object from a SharedFolderUser message. Also converts values to other types if specified. + * @param message SharedFolderUser * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncDataPlus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SharedFolderUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncDataPlus to JSON. + * Converts this SharedFolderUser to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncDataPlus + * Gets the default type url for SharedFolderUser * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GraphSyncQuery. */ - interface IGraphSyncQuery { + /** Properties of a SharedFolderTeam. */ + interface ISharedFolderTeam { - /** GraphSyncQuery streamId */ - streamId?: (Uint8Array|null); + /** SharedFolderTeam sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); - /** GraphSyncQuery origin */ - origin?: (Uint8Array|null); + /** SharedFolderTeam teamUid */ + teamUid?: (Uint8Array|null); - /** GraphSyncQuery syncPoint */ - syncPoint?: (number|Long|null); + /** SharedFolderTeam name */ + name?: (string|null); - /** GraphSyncQuery maxCount */ - maxCount?: (number|null); + /** SharedFolderTeam manageRecords */ + manageRecords?: (boolean|null); + + /** SharedFolderTeam manageUsers */ + manageUsers?: (boolean|null); + + /** SharedFolderTeam expiration */ + expiration?: (number|Long|null); + + /** SharedFolderTeam expirationNotificationType */ + expirationNotificationType?: (Records.TimerNotificationType|null); + + /** SharedFolderTeam rotateOnExpiration */ + rotateOnExpiration?: (boolean|null); } - /** Represents a GraphSyncQuery. */ - class GraphSyncQuery implements IGraphSyncQuery { + /** Represents a SharedFolderTeam. */ + class SharedFolderTeam implements ISharedFolderTeam { /** - * Constructs a new GraphSyncQuery. + * Constructs a new SharedFolderTeam. * @param [properties] Properties to set */ - constructor(properties?: GraphSync.IGraphSyncQuery); + constructor(properties?: Vault.ISharedFolderTeam); - /** GraphSyncQuery streamId. */ - public streamId: Uint8Array; + /** SharedFolderTeam sharedFolderUid. */ + public sharedFolderUid: Uint8Array; - /** GraphSyncQuery origin. */ - public origin: Uint8Array; + /** SharedFolderTeam teamUid. */ + public teamUid: Uint8Array; - /** GraphSyncQuery syncPoint. */ - public syncPoint: (number|Long); + /** SharedFolderTeam name. */ + public name: string; - /** GraphSyncQuery maxCount. */ - public maxCount: number; + /** SharedFolderTeam manageRecords. */ + public manageRecords: boolean; + + /** SharedFolderTeam manageUsers. */ + public manageUsers: boolean; + + /** SharedFolderTeam expiration. */ + public expiration: (number|Long); + + /** SharedFolderTeam expirationNotificationType. */ + public expirationNotificationType: Records.TimerNotificationType; + + /** SharedFolderTeam rotateOnExpiration. */ + public rotateOnExpiration: boolean; /** - * Creates a new GraphSyncQuery instance using the specified properties. + * Creates a new SharedFolderTeam instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncQuery instance + * @returns SharedFolderTeam instance */ - public static create(properties?: GraphSync.IGraphSyncQuery): GraphSync.GraphSyncQuery; + public static create(properties?: Vault.ISharedFolderTeam): Vault.SharedFolderTeam; /** - * Encodes the specified GraphSyncQuery message. Does not implicitly {@link GraphSync.GraphSyncQuery.verify|verify} messages. - * @param message GraphSyncQuery message or plain object to encode + * Encodes the specified SharedFolderTeam message. 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 encode(message: GraphSync.IGraphSyncQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISharedFolderTeam, 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 + * 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: GraphSync.IGraphSyncQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.ISharedFolderTeam, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncQuery message from the specified reader or buffer. + * Decodes a SharedFolderTeam message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncQuery + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncQuery; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderTeam; /** - * Decodes a GraphSyncQuery message from the specified reader or buffer, length delimited. + * Decodes a SharedFolderTeam message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GraphSyncQuery + * @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)): GraphSync.GraphSyncQuery; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SharedFolderTeam; /** - * Verifies a GraphSyncQuery message. + * 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 GraphSyncQuery message from a plain object. Also converts values to their respective internal types. + * Creates a SharedFolderTeam message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncQuery + * @returns SharedFolderTeam */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncQuery; + public static fromObject(object: { [k: string]: any }): Vault.SharedFolderTeam; /** - * Creates a plain object from a GraphSyncQuery message. Also converts values to other types if specified. - * @param message GraphSyncQuery + * Creates a plain object from a SharedFolderTeam message. Also converts values to other types if specified. + * @param message SharedFolderTeam * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SharedFolderTeam, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncQuery to JSON. + * Converts this SharedFolderTeam to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncQuery + * Gets the default type url for SharedFolderTeam * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GraphSyncResult. */ - interface IGraphSyncResult { + /** Properties of a KsmChange. */ + interface IKsmChange { - /** GraphSyncResult streamId */ - streamId?: (Uint8Array|null); + /** KsmChange appRecordUid */ + appRecordUid?: (Uint8Array|null); - /** GraphSyncResult syncPoint */ - syncPoint?: (number|Long|null); + /** KsmChange detailId */ + detailId?: (Uint8Array|null); - /** GraphSyncResult data */ - data?: (GraphSync.IGraphSyncDataPlus[]|null); + /** KsmChange removed */ + removed?: (boolean|null); - /** GraphSyncResult hasMore */ - hasMore?: (boolean|null); + /** KsmChange appClientType */ + appClientType?: (Enterprise.AppClientType|null); + + /** KsmChange expiration */ + expiration?: (number|Long|null); } - /** Represents a GraphSyncResult. */ - class GraphSyncResult implements IGraphSyncResult { + /** Represents a KsmChange. */ + class KsmChange implements IKsmChange { /** - * Constructs a new GraphSyncResult. + * Constructs a new KsmChange. * @param [properties] Properties to set */ - constructor(properties?: GraphSync.IGraphSyncResult); + constructor(properties?: Vault.IKsmChange); - /** GraphSyncResult streamId. */ - public streamId: Uint8Array; + /** KsmChange appRecordUid. */ + public appRecordUid: Uint8Array; - /** GraphSyncResult syncPoint. */ - public syncPoint: (number|Long); + /** KsmChange detailId. */ + public detailId: Uint8Array; - /** GraphSyncResult data. */ - public data: GraphSync.IGraphSyncDataPlus[]; + /** KsmChange removed. */ + public removed: boolean; - /** GraphSyncResult hasMore. */ - public hasMore: boolean; + /** KsmChange appClientType. */ + public appClientType: Enterprise.AppClientType; + + /** KsmChange expiration. */ + public expiration: (number|Long); /** - * Creates a new GraphSyncResult instance using the specified properties. + * Creates a new KsmChange instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncResult instance + * @returns KsmChange instance */ - public static create(properties?: GraphSync.IGraphSyncResult): GraphSync.GraphSyncResult; + public static create(properties?: Vault.IKsmChange): Vault.KsmChange; /** - * Encodes the specified GraphSyncResult message. Does not implicitly {@link GraphSync.GraphSyncResult.verify|verify} messages. - * @param message GraphSyncResult message or plain object to encode + * Encodes the specified KsmChange message. 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 encode(message: GraphSync.IGraphSyncResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IKsmChange, 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 + * 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: GraphSync.IGraphSyncResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IKsmChange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncResult message from the specified reader or buffer. + * Decodes a KsmChange message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncResult + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.KsmChange; /** - * Decodes a GraphSyncResult message from the specified reader or buffer, length delimited. + * Decodes a KsmChange message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GraphSyncResult + * @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)): GraphSync.GraphSyncResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.KsmChange; /** - * Verifies a GraphSyncResult message. + * 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 GraphSyncResult message from a plain object. Also converts values to their respective internal types. + * Creates a KsmChange message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncResult + * @returns KsmChange */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncResult; + public static fromObject(object: { [k: string]: any }): Vault.KsmChange; /** - * Creates a plain object from a GraphSyncResult message. Also converts values to other types if specified. - * @param message GraphSyncResult + * Creates a plain object from a KsmChange message. Also converts values to other types if specified. + * @param message KsmChange * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.KsmChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncResult to JSON. + * Converts this KsmChange to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncResult + * Gets the default type url for KsmChange * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GraphSyncMultiQuery. */ - interface IGraphSyncMultiQuery { + /** Properties of a ShareInvitation. */ + interface IShareInvitation { - /** GraphSyncMultiQuery queries */ - queries?: (GraphSync.IGraphSyncQuery[]|null); + /** ShareInvitation username */ + username?: (string|null); } - /** Represents a GraphSyncMultiQuery. */ - class GraphSyncMultiQuery implements IGraphSyncMultiQuery { + /** Represents a ShareInvitation. */ + class ShareInvitation implements IShareInvitation { /** - * Constructs a new GraphSyncMultiQuery. + * Constructs a new ShareInvitation. * @param [properties] Properties to set */ - constructor(properties?: GraphSync.IGraphSyncMultiQuery); + constructor(properties?: Vault.IShareInvitation); - /** GraphSyncMultiQuery queries. */ - public queries: GraphSync.IGraphSyncQuery[]; + /** ShareInvitation username. */ + public username: string; /** - * Creates a new GraphSyncMultiQuery instance using the specified properties. + * Creates a new ShareInvitation instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncMultiQuery instance + * @returns ShareInvitation instance */ - public static create(properties?: GraphSync.IGraphSyncMultiQuery): GraphSync.GraphSyncMultiQuery; + public static create(properties?: Vault.IShareInvitation): Vault.ShareInvitation; /** - * Encodes the specified GraphSyncMultiQuery message. Does not implicitly {@link GraphSync.GraphSyncMultiQuery.verify|verify} messages. - * @param message GraphSyncMultiQuery message or plain object to encode + * Encodes the specified ShareInvitation message. 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 encode(message: GraphSync.IGraphSyncMultiQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IShareInvitation, 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 + * 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: GraphSync.IGraphSyncMultiQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IShareInvitation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncMultiQuery message from the specified reader or buffer. + * Decodes a ShareInvitation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncMultiQuery + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncMultiQuery; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.ShareInvitation; /** - * Decodes a GraphSyncMultiQuery message from the specified reader or buffer, length delimited. + * Decodes a ShareInvitation message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GraphSyncMultiQuery + * @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)): GraphSync.GraphSyncMultiQuery; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.ShareInvitation; /** - * Verifies a GraphSyncMultiQuery message. + * 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 GraphSyncMultiQuery message from a plain object. Also converts values to their respective internal types. + * Creates a ShareInvitation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncMultiQuery + * @returns ShareInvitation */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncMultiQuery; + public static fromObject(object: { [k: string]: any }): Vault.ShareInvitation; /** - * Creates a plain object from a GraphSyncMultiQuery message. Also converts values to other types if specified. - * @param message GraphSyncMultiQuery + * Creates a plain object from a ShareInvitation message. Also converts values to other types if specified. + * @param message ShareInvitation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncMultiQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.ShareInvitation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncMultiQuery to JSON. + * Converts this ShareInvitation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncMultiQuery + * Gets the default type url for ShareInvitation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GraphSyncMultiResult. */ - interface IGraphSyncMultiResult { + /** Properties of a User. */ + interface IUser { - /** GraphSyncMultiResult results */ - results?: (GraphSync.IGraphSyncResult[]|null); + /** User accountUid */ + accountUid?: (Uint8Array|null); + + /** User username */ + username?: (string|null); } - /** Represents a GraphSyncMultiResult. */ - class GraphSyncMultiResult implements IGraphSyncMultiResult { + /** Represents a User. */ + class User implements IUser { /** - * Constructs a new GraphSyncMultiResult. + * Constructs a new User. * @param [properties] Properties to set */ - constructor(properties?: GraphSync.IGraphSyncMultiResult); + constructor(properties?: Vault.IUser); - /** GraphSyncMultiResult results. */ - public results: GraphSync.IGraphSyncResult[]; + /** User accountUid. */ + public accountUid: Uint8Array; + + /** User username. */ + public username: string; /** - * Creates a new GraphSyncMultiResult instance using the specified properties. + * Creates a new User instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncMultiResult instance + * @returns User instance */ - public static create(properties?: GraphSync.IGraphSyncMultiResult): GraphSync.GraphSyncMultiResult; + public static create(properties?: Vault.IUser): Vault.User; /** - * Encodes the specified GraphSyncMultiResult message. Does not implicitly {@link GraphSync.GraphSyncMultiResult.verify|verify} messages. - * @param message GraphSyncMultiResult message or plain object to encode + * Encodes the specified User message. 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 encode(message: GraphSync.IGraphSyncMultiResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IUser, 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 + * 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: GraphSync.IGraphSyncMultiResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IUser, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncMultiResult message from the specified reader or buffer. + * Decodes a User message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncMultiResult + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncMultiResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.User; /** - * Decodes a GraphSyncMultiResult message from the specified reader or buffer, length delimited. + * Decodes a User message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GraphSyncMultiResult + * @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)): GraphSync.GraphSyncMultiResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.User; /** - * Verifies a GraphSyncMultiResult message. + * 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 GraphSyncMultiResult message from a plain object. Also converts values to their respective internal types. + * Creates a User message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncMultiResult + * @returns User */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncMultiResult; + public static fromObject(object: { [k: string]: any }): Vault.User; /** - * Creates a plain object from a GraphSyncMultiResult message. Also converts values to other types if specified. - * @param message GraphSyncMultiResult + * Creates a plain object from a User message. Also converts values to other types if specified. + * @param message User * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncMultiResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.User, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncMultiResult to JSON. + * Converts this User to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncMultiResult + * Gets the default type url for User * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GraphSyncAddDataRequest. */ - interface IGraphSyncAddDataRequest { + /** Properties of a SyncDiagnostics. */ + interface ISyncDiagnostics { - /** GraphSyncAddDataRequest origin */ - origin?: (GraphSync.IGraphSyncRef|null); + /** SyncDiagnostics continuationToken */ + continuationToken?: (Uint8Array|null); - /** GraphSyncAddDataRequest data */ - data?: (GraphSync.IGraphSyncData[]|null); + /** SyncDiagnostics userId */ + userId?: (number|null); + + /** SyncDiagnostics enterpriseUserId */ + enterpriseUserId?: (number|Long|null); + + /** SyncDiagnostics syncedTo */ + syncedTo?: (number|Long|null); + + /** SyncDiagnostics syncingTo */ + syncingTo?: (number|Long|null); } - /** Represents a GraphSyncAddDataRequest. */ - class GraphSyncAddDataRequest implements IGraphSyncAddDataRequest { + /** Represents a SyncDiagnostics. */ + class SyncDiagnostics implements ISyncDiagnostics { /** - * Constructs a new GraphSyncAddDataRequest. + * Constructs a new SyncDiagnostics. * @param [properties] Properties to set */ - constructor(properties?: GraphSync.IGraphSyncAddDataRequest); + constructor(properties?: Vault.ISyncDiagnostics); - /** GraphSyncAddDataRequest origin. */ - public origin?: (GraphSync.IGraphSyncRef|null); + /** SyncDiagnostics continuationToken. */ + public continuationToken: Uint8Array; - /** GraphSyncAddDataRequest data. */ - public data: GraphSync.IGraphSyncData[]; + /** SyncDiagnostics userId. */ + public userId: number; + + /** SyncDiagnostics enterpriseUserId. */ + public enterpriseUserId: (number|Long); + + /** SyncDiagnostics syncedTo. */ + public syncedTo: (number|Long); + + /** SyncDiagnostics syncingTo. */ + public syncingTo: (number|Long); /** - * Creates a new GraphSyncAddDataRequest instance using the specified properties. + * Creates a new SyncDiagnostics instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncAddDataRequest instance + * @returns SyncDiagnostics instance */ - public static create(properties?: GraphSync.IGraphSyncAddDataRequest): GraphSync.GraphSyncAddDataRequest; + public static create(properties?: Vault.ISyncDiagnostics): Vault.SyncDiagnostics; /** - * Encodes the specified GraphSyncAddDataRequest message. Does not implicitly {@link GraphSync.GraphSyncAddDataRequest.verify|verify} messages. - * @param message GraphSyncAddDataRequest message or plain object to encode + * Encodes the specified SyncDiagnostics message. 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 encode(message: GraphSync.IGraphSyncAddDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISyncDiagnostics, 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 + * 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: GraphSync.IGraphSyncAddDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.ISyncDiagnostics, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncAddDataRequest message from the specified reader or buffer. + * Decodes a SyncDiagnostics message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncAddDataRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncAddDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SyncDiagnostics; /** - * Decodes a GraphSyncAddDataRequest message from the specified reader or buffer, length delimited. + * Decodes a SyncDiagnostics message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GraphSyncAddDataRequest + * @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)): GraphSync.GraphSyncAddDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SyncDiagnostics; /** - * Verifies a GraphSyncAddDataRequest message. + * 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 GraphSyncAddDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SyncDiagnostics message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncAddDataRequest + * @returns SyncDiagnostics */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncAddDataRequest; + public static fromObject(object: { [k: string]: any }): Vault.SyncDiagnostics; /** - * Creates a plain object from a GraphSyncAddDataRequest message. Also converts values to other types if specified. - * @param message GraphSyncAddDataRequest + * Creates a plain object from a SyncDiagnostics message. Also converts values to other types if specified. + * @param message SyncDiagnostics * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncAddDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SyncDiagnostics, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncAddDataRequest to JSON. + * Converts this SyncDiagnostics to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncAddDataRequest + * Gets the default type url for SyncDiagnostics * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GraphSyncLeafsQuery. */ - interface IGraphSyncLeafsQuery { - - /** GraphSyncLeafsQuery vertices */ - vertices?: (Uint8Array[]|null); + /** RecordRotationStatus enum. */ + enum RecordRotationStatus { + RRST_NOT_ROTATED = 0, + RRST_IN_PROGRESS = 1, + RRST_SUCCESS = 2, + RRST_FAILURE = 3 } - /** Represents a GraphSyncLeafsQuery. */ - class GraphSyncLeafsQuery implements IGraphSyncLeafsQuery { + /** Properties of a RecordRotation. */ + interface IRecordRotation { - /** - * Constructs a new GraphSyncLeafsQuery. - * @param [properties] Properties to set - */ - constructor(properties?: GraphSync.IGraphSyncLeafsQuery); + /** RecordRotation recordUid */ + recordUid?: (Uint8Array|null); - /** GraphSyncLeafsQuery vertices. */ - public vertices: Uint8Array[]; + /** RecordRotation revision */ + revision?: (number|Long|null); - /** - * Creates a new GraphSyncLeafsQuery instance using the specified properties. - * @param [properties] Properties to set - * @returns GraphSyncLeafsQuery instance - */ - public static create(properties?: GraphSync.IGraphSyncLeafsQuery): GraphSync.GraphSyncLeafsQuery; + /** RecordRotation configurationUid */ + configurationUid?: (Uint8Array|null); - /** - * Encodes the specified GraphSyncLeafsQuery message. Does not implicitly {@link GraphSync.GraphSyncLeafsQuery.verify|verify} messages. - * @param message GraphSyncLeafsQuery message or plain object to encode - * @param [writer] Writer to encode to + /** RecordRotation schedule */ + schedule?: (string|null); + + /** RecordRotation pwdComplexity */ + pwdComplexity?: (Uint8Array|null); + + /** RecordRotation disabled */ + disabled?: (boolean|null); + + /** RecordRotation resourceUid */ + resourceUid?: (Uint8Array|null); + + /** RecordRotation lastRotation */ + lastRotation?: (number|Long|null); + + /** RecordRotation lastRotationStatus */ + lastRotationStatus?: (Vault.RecordRotationStatus|null); + } + + /** Represents a RecordRotation. */ + class RecordRotation implements IRecordRotation { + + /** + * Constructs a new RecordRotation. + * @param [properties] Properties to set + */ + constructor(properties?: Vault.IRecordRotation); + + /** RecordRotation recordUid. */ + public recordUid: Uint8Array; + + /** RecordRotation revision. */ + public revision: (number|Long); + + /** RecordRotation configurationUid. */ + public configurationUid: Uint8Array; + + /** RecordRotation schedule. */ + public schedule: string; + + /** RecordRotation pwdComplexity. */ + public pwdComplexity: Uint8Array; + + /** RecordRotation disabled. */ + public disabled: boolean; + + /** RecordRotation resourceUid. */ + public resourceUid: Uint8Array; + + /** RecordRotation lastRotation. */ + public lastRotation: (number|Long); + + /** RecordRotation lastRotationStatus. */ + public lastRotationStatus: Vault.RecordRotationStatus; + + /** + * Creates a new RecordRotation instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordRotation instance + */ + public static create(properties?: Vault.IRecordRotation): Vault.RecordRotation; + + /** + * Encodes the specified RecordRotation message. 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 encode(message: GraphSync.IGraphSyncLeafsQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IRecordRotation, 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 + * 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: GraphSync.IGraphSyncLeafsQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IRecordRotation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncLeafsQuery message from the specified reader or buffer. + * Decodes a RecordRotation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncLeafsQuery + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncLeafsQuery; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.RecordRotation; /** - * Decodes a GraphSyncLeafsQuery message from the specified reader or buffer, length delimited. + * Decodes a RecordRotation message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GraphSyncLeafsQuery + * @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)): GraphSync.GraphSyncLeafsQuery; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.RecordRotation; /** - * Verifies a GraphSyncLeafsQuery message. + * 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 GraphSyncLeafsQuery message from a plain object. Also converts values to their respective internal types. + * Creates a RecordRotation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncLeafsQuery + * @returns RecordRotation */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncLeafsQuery; + public static fromObject(object: { [k: string]: any }): Vault.RecordRotation; /** - * Creates a plain object from a GraphSyncLeafsQuery message. Also converts values to other types if specified. - * @param message GraphSyncLeafsQuery + * Creates a plain object from a RecordRotation message. Also converts values to other types if specified. + * @param message RecordRotation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncLeafsQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.RecordRotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncLeafsQuery to JSON. + * Converts this RecordRotation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncLeafsQuery + * Gets the default type url for RecordRotation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GraphSyncRefsResult. */ - interface IGraphSyncRefsResult { + /** Properties of a SecurityScoreData. */ + interface ISecurityScoreData { - /** GraphSyncRefsResult refs */ - refs?: (GraphSync.IGraphSyncRef[]|null); + /** SecurityScoreData recordUid */ + recordUid?: (Uint8Array|null); + + /** SecurityScoreData data */ + data?: (Uint8Array|null); + + /** SecurityScoreData revision */ + revision?: (number|Long|null); } - /** Represents a GraphSyncRefsResult. */ - class GraphSyncRefsResult implements IGraphSyncRefsResult { + /** Represents a SecurityScoreData. */ + class SecurityScoreData implements ISecurityScoreData { /** - * Constructs a new GraphSyncRefsResult. + * Constructs a new SecurityScoreData. * @param [properties] Properties to set */ - constructor(properties?: GraphSync.IGraphSyncRefsResult); + constructor(properties?: Vault.ISecurityScoreData); - /** GraphSyncRefsResult refs. */ - public refs: GraphSync.IGraphSyncRef[]; + /** SecurityScoreData recordUid. */ + public recordUid: Uint8Array; + + /** SecurityScoreData data. */ + public data: Uint8Array; + + /** SecurityScoreData revision. */ + public revision: (number|Long); /** - * Creates a new GraphSyncRefsResult instance using the specified properties. + * Creates a new SecurityScoreData instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncRefsResult instance + * @returns SecurityScoreData instance */ - public static create(properties?: GraphSync.IGraphSyncRefsResult): GraphSync.GraphSyncRefsResult; + public static create(properties?: Vault.ISecurityScoreData): Vault.SecurityScoreData; /** - * Encodes the specified GraphSyncRefsResult message. Does not implicitly {@link GraphSync.GraphSyncRefsResult.verify|verify} messages. - * @param message GraphSyncRefsResult message or plain object to encode + * Encodes the specified SecurityScoreData message. 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 encode(message: GraphSync.IGraphSyncRefsResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISecurityScoreData, 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 + * 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: GraphSync.IGraphSyncRefsResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.ISecurityScoreData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncRefsResult message from the specified reader or buffer. + * Decodes a SecurityScoreData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncRefsResult + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncRefsResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SecurityScoreData; /** - * Decodes a GraphSyncRefsResult message from the specified reader or buffer, length delimited. + * Decodes a SecurityScoreData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GraphSyncRefsResult + * @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)): GraphSync.GraphSyncRefsResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SecurityScoreData; /** - * Verifies a GraphSyncRefsResult message. + * 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 GraphSyncRefsResult message from a plain object. Also converts values to their respective internal types. + * Creates a SecurityScoreData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncRefsResult + * @returns SecurityScoreData */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncRefsResult; + public static fromObject(object: { [k: string]: any }): Vault.SecurityScoreData; /** - * Creates a plain object from a GraphSyncRefsResult message. Also converts values to other types if specified. - * @param message GraphSyncRefsResult + * Creates a plain object from a SecurityScoreData message. Also converts values to other types if specified. + * @param message SecurityScoreData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncRefsResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SecurityScoreData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncRefsResult to JSON. + * Converts this SecurityScoreData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncRefsResult + * Gets the default type url for SecurityScoreData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} - -/** Namespace Upsell. */ -export namespace Upsell { - - /** Properties of an UpsellRequest. */ - interface IUpsellRequest { - - /** UpsellRequest email */ - email?: (string|null); - - /** UpsellRequest locale */ - locale?: (string|null); - /** UpsellRequest clientVersion */ - clientVersion?: (string|null); + /** Properties of a BreachWatchGetSyncDataRequest. */ + interface IBreachWatchGetSyncDataRequest { - /** UpsellRequest sessionToken */ - sessionToken?: (string|null); + /** BreachWatchGetSyncDataRequest recordUids */ + recordUids?: (Uint8Array[]|null); } - /** Represents an UpsellRequest. */ - class UpsellRequest implements IUpsellRequest { + /** Represents a BreachWatchGetSyncDataRequest. */ + class BreachWatchGetSyncDataRequest implements IBreachWatchGetSyncDataRequest { /** - * Constructs a new UpsellRequest. + * Constructs a new BreachWatchGetSyncDataRequest. * @param [properties] Properties to set */ - constructor(properties?: Upsell.IUpsellRequest); - - /** UpsellRequest email. */ - public email: string; - - /** UpsellRequest locale. */ - public locale: string; - - /** UpsellRequest clientVersion. */ - public clientVersion: string; + constructor(properties?: Vault.IBreachWatchGetSyncDataRequest); - /** UpsellRequest sessionToken. */ - public sessionToken: string; + /** BreachWatchGetSyncDataRequest recordUids. */ + public recordUids: Uint8Array[]; /** - * Creates a new UpsellRequest instance using the specified properties. + * Creates a new BreachWatchGetSyncDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpsellRequest instance + * @returns BreachWatchGetSyncDataRequest instance */ - public static create(properties?: Upsell.IUpsellRequest): Upsell.UpsellRequest; + public static create(properties?: Vault.IBreachWatchGetSyncDataRequest): Vault.BreachWatchGetSyncDataRequest; /** - * Encodes the specified UpsellRequest message. Does not implicitly {@link Upsell.UpsellRequest.verify|verify} messages. - * @param message UpsellRequest message or plain object to encode + * Encodes the specified BreachWatchGetSyncDataRequest message. 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 encode(message: Upsell.IUpsellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IBreachWatchGetSyncDataRequest, 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 + * 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: Upsell.IUpsellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IBreachWatchGetSyncDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpsellRequest message from the specified reader or buffer. + * Decodes a BreachWatchGetSyncDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpsellRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Upsell.UpsellRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.BreachWatchGetSyncDataRequest; /** - * Decodes an UpsellRequest message from the specified reader or buffer, length delimited. + * Decodes a BreachWatchGetSyncDataRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpsellRequest + * @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)): Upsell.UpsellRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.BreachWatchGetSyncDataRequest; /** - * Verifies an UpsellRequest message. + * 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 an UpsellRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BreachWatchGetSyncDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpsellRequest + * @returns BreachWatchGetSyncDataRequest */ - public static fromObject(object: { [k: string]: any }): Upsell.UpsellRequest; + public static fromObject(object: { [k: string]: any }): Vault.BreachWatchGetSyncDataRequest; /** - * Creates a plain object from an UpsellRequest message. Also converts values to other types if specified. - * @param message UpsellRequest + * Creates a plain object from a BreachWatchGetSyncDataRequest message. Also converts values to other types if specified. + * @param message BreachWatchGetSyncDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Upsell.UpsellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.BreachWatchGetSyncDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpsellRequest to JSON. + * Converts this BreachWatchGetSyncDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpsellRequest + * Gets the default type url for BreachWatchGetSyncDataRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpsellResponse. */ - interface IUpsellResponse { + /** Properties of a BreachWatchGetSyncDataResponse. */ + interface IBreachWatchGetSyncDataResponse { - /** UpsellResponse UpsellBanner */ - UpsellBanner?: (Upsell.IUpsellBanner[]|null); + /** BreachWatchGetSyncDataResponse breachWatchRecords */ + breachWatchRecords?: (Vault.IBreachWatchRecord[]|null); + + /** BreachWatchGetSyncDataResponse breachWatchSecurityData */ + breachWatchSecurityData?: (Vault.IBreachWatchSecurityData[]|null); + + /** BreachWatchGetSyncDataResponse users */ + users?: (Vault.IUser[]|null); } - /** Represents an UpsellResponse. */ - class UpsellResponse implements IUpsellResponse { + /** Represents a BreachWatchGetSyncDataResponse. */ + class BreachWatchGetSyncDataResponse implements IBreachWatchGetSyncDataResponse { /** - * Constructs a new UpsellResponse. + * Constructs a new BreachWatchGetSyncDataResponse. * @param [properties] Properties to set */ - constructor(properties?: Upsell.IUpsellResponse); + constructor(properties?: Vault.IBreachWatchGetSyncDataResponse); - /** UpsellResponse UpsellBanner. */ - public UpsellBanner: Upsell.IUpsellBanner[]; + /** BreachWatchGetSyncDataResponse breachWatchRecords. */ + public breachWatchRecords: Vault.IBreachWatchRecord[]; + + /** BreachWatchGetSyncDataResponse breachWatchSecurityData. */ + public breachWatchSecurityData: Vault.IBreachWatchSecurityData[]; + + /** BreachWatchGetSyncDataResponse users. */ + public users: Vault.IUser[]; /** - * Creates a new UpsellResponse instance using the specified properties. + * Creates a new BreachWatchGetSyncDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpsellResponse instance + * @returns BreachWatchGetSyncDataResponse instance */ - public static create(properties?: Upsell.IUpsellResponse): Upsell.UpsellResponse; + public static create(properties?: Vault.IBreachWatchGetSyncDataResponse): Vault.BreachWatchGetSyncDataResponse; /** - * Encodes the specified UpsellResponse message. Does not implicitly {@link Upsell.UpsellResponse.verify|verify} messages. - * @param message UpsellResponse message or plain object to encode + * Encodes the specified BreachWatchGetSyncDataResponse message. 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 encode(message: Upsell.IUpsellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IBreachWatchGetSyncDataResponse, 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 + * 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: Upsell.IUpsellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IBreachWatchGetSyncDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpsellResponse message from the specified reader or buffer. + * Decodes a BreachWatchGetSyncDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpsellResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Upsell.UpsellResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.BreachWatchGetSyncDataResponse; /** - * Decodes an UpsellResponse message from the specified reader or buffer, length delimited. + * Decodes a BreachWatchGetSyncDataResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpsellResponse + * @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)): Upsell.UpsellResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.BreachWatchGetSyncDataResponse; /** - * Verifies an UpsellResponse message. + * 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 an UpsellResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BreachWatchGetSyncDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpsellResponse + * @returns BreachWatchGetSyncDataResponse */ - public static fromObject(object: { [k: string]: any }): Upsell.UpsellResponse; + public static fromObject(object: { [k: string]: any }): Vault.BreachWatchGetSyncDataResponse; /** - * Creates a plain object from an UpsellResponse message. Also converts values to other types if specified. - * @param message UpsellResponse + * Creates a plain object from a BreachWatchGetSyncDataResponse message. Also converts values to other types if specified. + * @param message BreachWatchGetSyncDataResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Upsell.UpsellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.BreachWatchGetSyncDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpsellResponse to JSON. + * Converts this BreachWatchGetSyncDataResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpsellResponse + * Gets the default type url for BreachWatchGetSyncDataResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpsellBanner. */ - interface IUpsellBanner { - - /** UpsellBanner bannerId */ - bannerId?: (number|null); - - /** UpsellBanner bannerOkAction */ - bannerOkAction?: (string|null); - - /** UpsellBanner bannerOkButton */ - bannerOkButton?: (string|null); - - /** UpsellBanner bannerCancelAction */ - bannerCancelAction?: (string|null); - - /** UpsellBanner bannerCancelButton */ - bannerCancelButton?: (string|null); - - /** UpsellBanner bannerMessage */ - bannerMessage?: (string|null); + /** Properties of a GetAccountUidMapResponse. */ + interface IGetAccountUidMapResponse { - /** UpsellBanner locale */ - locale?: (string|null); + /** GetAccountUidMapResponse users */ + users?: (Vault.IUser[]|null); } - /** Represents an UpsellBanner. */ - class UpsellBanner implements IUpsellBanner { + /** Represents a GetAccountUidMapResponse. */ + class GetAccountUidMapResponse implements IGetAccountUidMapResponse { /** - * Constructs a new UpsellBanner. + * Constructs a new GetAccountUidMapResponse. * @param [properties] Properties to set */ - constructor(properties?: Upsell.IUpsellBanner); - - /** UpsellBanner bannerId. */ - public bannerId: number; - - /** UpsellBanner bannerOkAction. */ - public bannerOkAction: string; - - /** UpsellBanner bannerOkButton. */ - public bannerOkButton: string; - - /** UpsellBanner bannerCancelAction. */ - public bannerCancelAction: string; - - /** UpsellBanner bannerCancelButton. */ - public bannerCancelButton: string; - - /** UpsellBanner bannerMessage. */ - public bannerMessage: string; + constructor(properties?: Vault.IGetAccountUidMapResponse); - /** UpsellBanner locale. */ - public locale: string; + /** GetAccountUidMapResponse users. */ + public users: Vault.IUser[]; /** - * Creates a new UpsellBanner instance using the specified properties. + * Creates a new GetAccountUidMapResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpsellBanner instance + * @returns GetAccountUidMapResponse instance */ - public static create(properties?: Upsell.IUpsellBanner): Upsell.UpsellBanner; + public static create(properties?: Vault.IGetAccountUidMapResponse): Vault.GetAccountUidMapResponse; /** - * Encodes the specified UpsellBanner message. Does not implicitly {@link Upsell.UpsellBanner.verify|verify} messages. - * @param message UpsellBanner message or plain object to encode + * Encodes the specified GetAccountUidMapResponse message. 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 encode(message: Upsell.IUpsellBanner, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IGetAccountUidMapResponse, 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 + * 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: Upsell.IUpsellBanner, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Vault.IGetAccountUidMapResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpsellBanner message from the specified reader or buffer. + * Decodes a GetAccountUidMapResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpsellBanner + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Upsell.UpsellBanner; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.GetAccountUidMapResponse; /** - * Decodes an UpsellBanner message from the specified reader or buffer, length delimited. + * Decodes a GetAccountUidMapResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpsellBanner + * @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)): Upsell.UpsellBanner; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.GetAccountUidMapResponse; /** - * Verifies an UpsellBanner message. + * 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 an UpsellBanner message from a plain object. Also converts values to their respective internal types. + * Creates a GetAccountUidMapResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpsellBanner + * @returns GetAccountUidMapResponse */ - public static fromObject(object: { [k: string]: any }): Upsell.UpsellBanner; + public static fromObject(object: { [k: string]: any }): Vault.GetAccountUidMapResponse; /** - * Creates a plain object from an UpsellBanner message. Also converts values to other types if specified. - * @param message UpsellBanner + * Creates a plain object from a GetAccountUidMapResponse message. Also converts values to other types if specified. + * @param message GetAccountUidMapResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Upsell.UpsellBanner, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.GetAccountUidMapResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpsellBanner to JSON. + * Converts this GetAccountUidMapResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpsellBanner + * Gets the default type url for GetAccountUidMapResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - - /** ClientType enum. */ - enum ClientType { - DEFAULT_CLIENT_TYPE = 0, - ALL = 1, - ANDROID = 2, - IOS = 3, - MICROSOFT = 4, - WEBAPP = 5 - } - - /** ClientVersion enum. */ - enum ClientVersion { - DEFAULT_VERSION = 0, - SUPPORTS_ALL = 1, - BASEVERSION = 14, - ABOVERANGE = 15 - } } -/** Namespace BI. */ -export namespace BI { - - /** Currency enum. */ - enum Currency { - UNKNOWN = 0, - USD = 1, - GBP = 2, - JPY = 3, - EUR = 4, - AUD = 5, - CAD = 6 - } - - /** Properties of a ValidateSessionTokenRequest. */ - interface IValidateSessionTokenRequest { - - /** ValidateSessionTokenRequest encryptedSessionToken */ - encryptedSessionToken?: (Uint8Array|null); - - /** ValidateSessionTokenRequest returnMcEnterpiseIds */ - returnMcEnterpiseIds?: (boolean|null); +/** Namespace NotificationCenter. */ +export namespace NotificationCenter { - /** ValidateSessionTokenRequest ip */ - ip?: (string|null); + /** NotificationCategory enum. */ + enum NotificationCategory { + NC_UNSPECIFIED = 0, + NC_ACCOUNT = 1, + NC_SHARING = 2, + NC_ENTERPRISE = 3, + NC_SECURITY = 4, + NC_REQUEST = 5, + NC_SYSTEM = 6, + NC_PROMOTION = 7 } - /** Represents a ValidateSessionTokenRequest. */ - class ValidateSessionTokenRequest implements IValidateSessionTokenRequest { + /** NotificationType enum. */ + enum NotificationType { + NT_UNSPECIFIED = 0, + NT_ALERT = 1, + NT_DEVICE_APPROVAL = 2, + NT_MASTER_PASS_UPDATED = 3, + NT_SHARE_APPROVAL = 4, + NT_SHARE_APPROVAL_APPROVED = 5, + NT_SHARED = 6, + NT_TRANSFERRED = 7, + NT_LICENSE_LIMIT_REACHED = 8, + NT_APPROVAL_REQUEST = 9, + NT_APPROVED_RESPONSE = 10, + NT_DENIED_RESPONSE = 11, + NT_2FA_CONFIGURED = 12, + NT_SHARE_APPROVAL_DENIED = 13, + NT_DEVICE_APPROVAL_APPROVED = 14, + NT_DEVICE_APPROVAL_DENIED = 15, + NT_ACCOUNT_CREATED = 16, + NT_2FA_ENABLED = 17, + NT_2FA_DISABLED = 18, + NT_SECURITY_KEYS_ENABLED = 19, + NT_SECURITY_KEYS_DISABLED = 20, + NT_SSL_CERTIFICATE_EXPIRES_SOON = 21, + NT_SSL_CERTIFICATE_EXPIRED = 22 + } + + /** NotificationReadStatus enum. */ + enum NotificationReadStatus { + NRS_UNSPECIFIED = 0, + NRS_LAST = 1, + NRS_READ = 2, + NRS_UNREAD = 3 + } + + /** NotificationApprovalStatus enum. */ + enum NotificationApprovalStatus { + NAS_UNSPECIFIED = 0, + NAS_APPROVED = 1, + NAS_DENIED = 2, + NAS_LOST_APPROVAL_RIGHTS = 3, + NAS_LOST_ACCESS = 4 + } + + /** Properties of an EncryptedData. */ + interface IEncryptedData { + + /** EncryptedData version */ + version?: (number|null); + + /** EncryptedData data */ + data?: (Uint8Array|null); + } + + /** Represents an EncryptedData. */ + class EncryptedData implements IEncryptedData { /** - * Constructs a new ValidateSessionTokenRequest. + * Constructs a new EncryptedData. * @param [properties] Properties to set */ - constructor(properties?: BI.IValidateSessionTokenRequest); - - /** ValidateSessionTokenRequest encryptedSessionToken. */ - public encryptedSessionToken: Uint8Array; + constructor(properties?: NotificationCenter.IEncryptedData); - /** ValidateSessionTokenRequest returnMcEnterpiseIds. */ - public returnMcEnterpiseIds: boolean; + /** EncryptedData version. */ + public version: number; - /** ValidateSessionTokenRequest ip. */ - public ip: string; + /** EncryptedData data. */ + public data: Uint8Array; /** - * Creates a new ValidateSessionTokenRequest instance using the specified properties. + * Creates a new EncryptedData instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateSessionTokenRequest instance + * @returns EncryptedData instance */ - public static create(properties?: BI.IValidateSessionTokenRequest): BI.ValidateSessionTokenRequest; + public static create(properties?: NotificationCenter.IEncryptedData): NotificationCenter.EncryptedData; /** - * Encodes the specified ValidateSessionTokenRequest message. Does not implicitly {@link BI.ValidateSessionTokenRequest.verify|verify} messages. - * @param message ValidateSessionTokenRequest message or plain object to encode + * Encodes the specified EncryptedData message. 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 encode(message: BI.IValidateSessionTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.IEncryptedData, 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 + * 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: BI.IValidateSessionTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: NotificationCenter.IEncryptedData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateSessionTokenRequest message from the specified reader or buffer. + * Decodes an EncryptedData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateSessionTokenRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.ValidateSessionTokenRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.EncryptedData; /** - * Decodes a ValidateSessionTokenRequest message from the specified reader or buffer, length delimited. + * Decodes an EncryptedData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateSessionTokenRequest + * @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)): BI.ValidateSessionTokenRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.EncryptedData; /** - * Verifies a ValidateSessionTokenRequest message. + * 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 a ValidateSessionTokenRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EncryptedData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateSessionTokenRequest + * @returns EncryptedData */ - public static fromObject(object: { [k: string]: any }): BI.ValidateSessionTokenRequest; + public static fromObject(object: { [k: string]: any }): NotificationCenter.EncryptedData; /** - * Creates a plain object from a ValidateSessionTokenRequest message. Also converts values to other types if specified. - * @param message ValidateSessionTokenRequest + * Creates a plain object from an EncryptedData message. Also converts values to other types if specified. + * @param message EncryptedData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.ValidateSessionTokenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.EncryptedData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateSessionTokenRequest to JSON. + * Converts this EncryptedData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateSessionTokenRequest + * Gets the default type url for EncryptedData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ValidateSessionTokenResponse. */ - interface IValidateSessionTokenResponse { - - /** ValidateSessionTokenResponse username */ - username?: (string|null); - - /** ValidateSessionTokenResponse userId */ - userId?: (number|null); - - /** ValidateSessionTokenResponse enterpriseUserId */ - enterpriseUserId?: (number|Long|null); - - /** ValidateSessionTokenResponse status */ - status?: (BI.ValidateSessionTokenResponse.Status|null); - - /** ValidateSessionTokenResponse statusMessage */ - statusMessage?: (string|null); - - /** ValidateSessionTokenResponse mcEnterpriseIds */ - mcEnterpriseIds?: (number[]|null); + /** Properties of a NotificationParameter. */ + interface INotificationParameter { - /** ValidateSessionTokenResponse hasMSPPermission */ - hasMSPPermission?: (boolean|null); + /** NotificationParameter key */ + key?: (string|null); - /** ValidateSessionTokenResponse deletedMcEnterpriseIds */ - deletedMcEnterpriseIds?: (number[]|null); + /** NotificationParameter data */ + data?: (Uint8Array|null); } - /** Represents a ValidateSessionTokenResponse. */ - class ValidateSessionTokenResponse implements IValidateSessionTokenResponse { + /** Represents a NotificationParameter. */ + class NotificationParameter implements INotificationParameter { /** - * Constructs a new ValidateSessionTokenResponse. + * Constructs a new NotificationParameter. * @param [properties] Properties to set */ - constructor(properties?: BI.IValidateSessionTokenResponse); - - /** ValidateSessionTokenResponse username. */ - public username: string; - - /** ValidateSessionTokenResponse userId. */ - public userId: number; - - /** ValidateSessionTokenResponse enterpriseUserId. */ - public enterpriseUserId: (number|Long); - - /** ValidateSessionTokenResponse status. */ - public status: BI.ValidateSessionTokenResponse.Status; - - /** ValidateSessionTokenResponse statusMessage. */ - public statusMessage: string; - - /** ValidateSessionTokenResponse mcEnterpriseIds. */ - public mcEnterpriseIds: number[]; + constructor(properties?: NotificationCenter.INotificationParameter); - /** ValidateSessionTokenResponse hasMSPPermission. */ - public hasMSPPermission: boolean; + /** NotificationParameter key. */ + public key: string; - /** ValidateSessionTokenResponse deletedMcEnterpriseIds. */ - public deletedMcEnterpriseIds: number[]; + /** NotificationParameter data. */ + public data: Uint8Array; /** - * Creates a new ValidateSessionTokenResponse instance using the specified properties. + * Creates a new NotificationParameter instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateSessionTokenResponse instance + * @returns NotificationParameter instance */ - public static create(properties?: BI.IValidateSessionTokenResponse): BI.ValidateSessionTokenResponse; + public static create(properties?: NotificationCenter.INotificationParameter): NotificationCenter.NotificationParameter; /** - * Encodes the specified ValidateSessionTokenResponse message. Does not implicitly {@link BI.ValidateSessionTokenResponse.verify|verify} messages. - * @param message ValidateSessionTokenResponse message or plain object to encode + * Encodes the specified NotificationParameter message. 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 encode(message: BI.IValidateSessionTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.INotificationParameter, 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 + * 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: BI.IValidateSessionTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: NotificationCenter.INotificationParameter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateSessionTokenResponse message from the specified reader or buffer. + * Decodes a NotificationParameter message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateSessionTokenResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.ValidateSessionTokenResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationParameter; /** - * Decodes a ValidateSessionTokenResponse message from the specified reader or buffer, length delimited. + * Decodes a NotificationParameter message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateSessionTokenResponse + * @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)): BI.ValidateSessionTokenResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.NotificationParameter; /** - * Verifies a ValidateSessionTokenResponse message. + * 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 ValidateSessionTokenResponse message from a plain object. Also converts values to their respective internal types. + * Creates a NotificationParameter message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateSessionTokenResponse + * @returns NotificationParameter */ - public static fromObject(object: { [k: string]: any }): BI.ValidateSessionTokenResponse; + public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationParameter; /** - * Creates a plain object from a ValidateSessionTokenResponse message. Also converts values to other types if specified. - * @param message ValidateSessionTokenResponse + * Creates a plain object from a NotificationParameter message. Also converts values to other types if specified. + * @param message NotificationParameter * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.ValidateSessionTokenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.NotificationParameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateSessionTokenResponse to JSON. + * Converts this NotificationParameter to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateSessionTokenResponse + * Gets the default type url for NotificationParameter * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ValidateSessionTokenResponse { + /** Properties of a Notification. */ + interface INotification { - /** Status enum. */ - enum Status { - VALID = 0, - NOT_VALID = 1, - EXPIRED = 2, - IP_BLOCKED = 3, - INVALID_CLIENT_VERSION = 4 - } - } + /** Notification type */ + type?: (NotificationCenter.NotificationType|null); - /** Properties of a SubscriptionStatusRequest. */ - interface ISubscriptionStatusRequest { + /** Notification category */ + category?: (NotificationCenter.NotificationCategory|null); + + /** Notification sender */ + sender?: (GraphSync.IGraphSyncRef|null); + + /** Notification senderFullName */ + senderFullName?: (string|null); + + /** Notification encryptedData */ + encryptedData?: (NotificationCenter.IEncryptedData|null); + + /** Notification refs */ + refs?: (GraphSync.IGraphSyncRef[]|null); + + /** Notification categories */ + categories?: (NotificationCenter.NotificationCategory[]|null); + + /** Notification parameters */ + parameters?: (NotificationCenter.INotificationParameter[]|null); } - /** Represents a SubscriptionStatusRequest. */ - class SubscriptionStatusRequest implements ISubscriptionStatusRequest { + /** Represents a Notification. */ + class Notification implements INotification { /** - * Constructs a new SubscriptionStatusRequest. + * Constructs a new Notification. * @param [properties] Properties to set */ - constructor(properties?: BI.ISubscriptionStatusRequest); + constructor(properties?: NotificationCenter.INotification); + + /** Notification type. */ + public type: NotificationCenter.NotificationType; + + /** Notification category. */ + public category: NotificationCenter.NotificationCategory; + + /** Notification sender. */ + public sender?: (GraphSync.IGraphSyncRef|null); + + /** Notification senderFullName. */ + public senderFullName: string; + + /** Notification encryptedData. */ + public encryptedData?: (NotificationCenter.IEncryptedData|null); + + /** Notification refs. */ + public refs: GraphSync.IGraphSyncRef[]; + + /** Notification categories. */ + public categories: NotificationCenter.NotificationCategory[]; + + /** Notification parameters. */ + public parameters: NotificationCenter.INotificationParameter[]; /** - * Creates a new SubscriptionStatusRequest instance using the specified properties. + * Creates a new Notification instance using the specified properties. * @param [properties] Properties to set - * @returns SubscriptionStatusRequest instance + * @returns Notification instance */ - public static create(properties?: BI.ISubscriptionStatusRequest): BI.SubscriptionStatusRequest; + public static create(properties?: NotificationCenter.INotification): NotificationCenter.Notification; /** - * Encodes the specified SubscriptionStatusRequest message. Does not implicitly {@link BI.SubscriptionStatusRequest.verify|verify} messages. - * @param message SubscriptionStatusRequest message or plain object to encode + * Encodes the specified Notification message. 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 encode(message: BI.ISubscriptionStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.INotification, 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 + * 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: BI.ISubscriptionStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: NotificationCenter.INotification, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SubscriptionStatusRequest message from the specified reader or buffer. + * Decodes a Notification message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SubscriptionStatusRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionStatusRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.Notification; /** - * Decodes a SubscriptionStatusRequest message from the specified reader or buffer, length delimited. + * Decodes a Notification message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SubscriptionStatusRequest + * @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)): BI.SubscriptionStatusRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.Notification; /** - * Verifies a SubscriptionStatusRequest message. + * 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 SubscriptionStatusRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Notification message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SubscriptionStatusRequest + * @returns Notification */ - public static fromObject(object: { [k: string]: any }): BI.SubscriptionStatusRequest; + public static fromObject(object: { [k: string]: any }): NotificationCenter.Notification; /** - * Creates a plain object from a SubscriptionStatusRequest message. Also converts values to other types if specified. - * @param message SubscriptionStatusRequest + * Creates a plain object from a Notification message. Also converts values to other types if specified. + * @param message Notification * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.Notification, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SubscriptionStatusRequest to JSON. + * Converts this Notification to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SubscriptionStatusRequest + * Gets the default type url for Notification * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SubscriptionStatusResponse. */ - interface ISubscriptionStatusResponse { - - /** SubscriptionStatusResponse autoRenewal */ - autoRenewal?: (BI.IAutoRenewal|null); - - /** SubscriptionStatusResponse currentPaymentMethod */ - currentPaymentMethod?: (BI.IPaymentMethod|null); - - /** SubscriptionStatusResponse checkoutLink */ - checkoutLink?: (string|null); - - /** SubscriptionStatusResponse licenseCreateDate */ - licenseCreateDate?: (number|Long|null); - - /** SubscriptionStatusResponse isDistributor */ - isDistributor?: (boolean|null); - - /** SubscriptionStatusResponse isLegacyMsp */ - isLegacyMsp?: (boolean|null); - - /** SubscriptionStatusResponse licenseStats */ - licenseStats?: (BI.ILicenseStats[]|null); - - /** SubscriptionStatusResponse gradientStatus */ - gradientStatus?: (BI.GradientIntegrationStatus|null); + /** Properties of a NotificationReadMark. */ + interface INotificationReadMark { - /** SubscriptionStatusResponse hideTrialBanner */ - hideTrialBanner?: (boolean|null); + /** NotificationReadMark uid */ + uid?: (Uint8Array|null); - /** SubscriptionStatusResponse gradientLastSyncDate */ - gradientLastSyncDate?: (string|null); + /** NotificationReadMark notificationEdgeId */ + notificationEdgeId?: (number|Long|null); - /** SubscriptionStatusResponse gradientNextSyncDate */ - gradientNextSyncDate?: (string|null); + /** NotificationReadMark markEdgeId */ + markEdgeId?: (number|Long|null); - /** SubscriptionStatusResponse isGradientMappingPending */ - isGradientMappingPending?: (boolean|null); + /** NotificationReadMark readStatus */ + readStatus?: (NotificationCenter.NotificationReadStatus|null); } - /** Represents a SubscriptionStatusResponse. */ - class SubscriptionStatusResponse implements ISubscriptionStatusResponse { + /** Represents a NotificationReadMark. */ + class NotificationReadMark implements INotificationReadMark { /** - * Constructs a new SubscriptionStatusResponse. + * Constructs a new NotificationReadMark. * @param [properties] Properties to set */ - constructor(properties?: BI.ISubscriptionStatusResponse); - - /** SubscriptionStatusResponse autoRenewal. */ - public autoRenewal?: (BI.IAutoRenewal|null); - - /** SubscriptionStatusResponse currentPaymentMethod. */ - public currentPaymentMethod?: (BI.IPaymentMethod|null); - - /** SubscriptionStatusResponse checkoutLink. */ - public checkoutLink: string; - - /** SubscriptionStatusResponse licenseCreateDate. */ - public licenseCreateDate: (number|Long); - - /** SubscriptionStatusResponse isDistributor. */ - public isDistributor: boolean; - - /** SubscriptionStatusResponse isLegacyMsp. */ - public isLegacyMsp: boolean; - - /** SubscriptionStatusResponse licenseStats. */ - public licenseStats: BI.ILicenseStats[]; - - /** SubscriptionStatusResponse gradientStatus. */ - public gradientStatus: BI.GradientIntegrationStatus; + constructor(properties?: NotificationCenter.INotificationReadMark); - /** SubscriptionStatusResponse hideTrialBanner. */ - public hideTrialBanner: boolean; + /** NotificationReadMark uid. */ + public uid: Uint8Array; - /** SubscriptionStatusResponse gradientLastSyncDate. */ - public gradientLastSyncDate: string; + /** NotificationReadMark notificationEdgeId. */ + public notificationEdgeId: (number|Long); - /** SubscriptionStatusResponse gradientNextSyncDate. */ - public gradientNextSyncDate: string; + /** NotificationReadMark markEdgeId. */ + public markEdgeId: (number|Long); - /** SubscriptionStatusResponse isGradientMappingPending. */ - public isGradientMappingPending: boolean; + /** NotificationReadMark readStatus. */ + public readStatus: NotificationCenter.NotificationReadStatus; /** - * Creates a new SubscriptionStatusResponse instance using the specified properties. + * Creates a new NotificationReadMark instance using the specified properties. * @param [properties] Properties to set - * @returns SubscriptionStatusResponse instance + * @returns NotificationReadMark instance */ - public static create(properties?: BI.ISubscriptionStatusResponse): BI.SubscriptionStatusResponse; + public static create(properties?: NotificationCenter.INotificationReadMark): NotificationCenter.NotificationReadMark; /** - * Encodes the specified SubscriptionStatusResponse message. Does not implicitly {@link BI.SubscriptionStatusResponse.verify|verify} messages. - * @param message SubscriptionStatusResponse message or plain object to encode + * Encodes the specified NotificationReadMark message. 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 encode(message: BI.ISubscriptionStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.INotificationReadMark, 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 + * 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: BI.ISubscriptionStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: NotificationCenter.INotificationReadMark, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SubscriptionStatusResponse message from the specified reader or buffer. + * Decodes a NotificationReadMark message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SubscriptionStatusResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionStatusResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationReadMark; /** - * Decodes a SubscriptionStatusResponse message from the specified reader or buffer, length delimited. + * Decodes a NotificationReadMark message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SubscriptionStatusResponse + * @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)): BI.SubscriptionStatusResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.NotificationReadMark; /** - * Verifies a SubscriptionStatusResponse message. + * 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 SubscriptionStatusResponse message from a plain object. Also converts values to their respective internal types. + * Creates a NotificationReadMark message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SubscriptionStatusResponse + * @returns NotificationReadMark */ - public static fromObject(object: { [k: string]: any }): BI.SubscriptionStatusResponse; + public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationReadMark; /** - * Creates a plain object from a SubscriptionStatusResponse message. Also converts values to other types if specified. - * @param message SubscriptionStatusResponse + * Creates a plain object from a NotificationReadMark message. Also converts values to other types if specified. + * @param message NotificationReadMark * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.NotificationReadMark, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SubscriptionStatusResponse to JSON. + * Converts this NotificationReadMark to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SubscriptionStatusResponse + * Gets the default type url for NotificationReadMark * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a LicenseStats. */ - interface ILicenseStats { - - /** LicenseStats type */ - type?: (BI.LicenseStats.Type|null); + /** Properties of a NotificationContent. */ + interface INotificationContent { - /** LicenseStats available */ - available?: (number|null); + /** NotificationContent notification */ + notification?: (NotificationCenter.INotification|null); - /** LicenseStats used */ - used?: (number|null); - } + /** NotificationContent readStatus */ + readStatus?: (NotificationCenter.NotificationReadStatus|null); - /** Represents a LicenseStats. */ - class LicenseStats implements ILicenseStats { + /** NotificationContent approvalStatus */ + approvalStatus?: (NotificationCenter.NotificationApprovalStatus|null); - /** - * Constructs a new LicenseStats. - * @param [properties] Properties to set - */ - constructor(properties?: BI.ILicenseStats); + /** NotificationContent trimmingPoint */ + trimmingPoint?: (boolean|null); - /** LicenseStats type. */ - public type: BI.LicenseStats.Type; + /** NotificationContent clientTypeIDs */ + clientTypeIDs?: (number[]|null); - /** LicenseStats available. */ - public available: number; + /** NotificationContent deviceIDs */ + deviceIDs?: ((number|Long)[]|null); + } - /** LicenseStats used. */ - public used: number; + /** Represents a NotificationContent. */ + class NotificationContent implements INotificationContent { /** - * Creates a new LicenseStats instance using the specified properties. + * Constructs a new NotificationContent. * @param [properties] Properties to set - * @returns LicenseStats instance */ - public static create(properties?: BI.ILicenseStats): BI.LicenseStats; + constructor(properties?: NotificationCenter.INotificationContent); + + /** NotificationContent notification. */ + public notification?: (NotificationCenter.INotification|null); + + /** NotificationContent readStatus. */ + public readStatus?: (NotificationCenter.NotificationReadStatus|null); + + /** NotificationContent approvalStatus. */ + public approvalStatus?: (NotificationCenter.NotificationApprovalStatus|null); + + /** NotificationContent trimmingPoint. */ + public trimmingPoint?: (boolean|null); + + /** NotificationContent clientTypeIDs. */ + public clientTypeIDs: number[]; + + /** NotificationContent deviceIDs. */ + public deviceIDs: (number|Long)[]; + + /** NotificationContent type. */ + public type?: ("notification"|"readStatus"|"approvalStatus"|"trimmingPoint"); /** - * Encodes the specified LicenseStats message. Does not implicitly {@link BI.LicenseStats.verify|verify} messages. - * @param message LicenseStats message or plain object to encode + * Creates a new NotificationContent instance using the specified properties. + * @param [properties] Properties to set + * @returns NotificationContent instance + */ + public static create(properties?: NotificationCenter.INotificationContent): NotificationCenter.NotificationContent; + + /** + * Encodes the specified NotificationContent message. 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 encode(message: BI.ILicenseStats, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.INotificationContent, 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 + * 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: BI.ILicenseStats, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: NotificationCenter.INotificationContent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LicenseStats message from the specified reader or buffer. + * Decodes a NotificationContent message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LicenseStats + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.LicenseStats; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationContent; /** - * Decodes a LicenseStats message from the specified reader or buffer, length delimited. + * Decodes a NotificationContent message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LicenseStats + * @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)): BI.LicenseStats; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.NotificationContent; /** - * Verifies a LicenseStats message. + * 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 LicenseStats message from a plain object. Also converts values to their respective internal types. + * Creates a NotificationContent message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LicenseStats + * @returns NotificationContent */ - public static fromObject(object: { [k: string]: any }): BI.LicenseStats; + public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationContent; /** - * Creates a plain object from a LicenseStats message. Also converts values to other types if specified. - * @param message LicenseStats + * Creates a plain object from a NotificationContent message. Also converts values to other types if specified. + * @param message NotificationContent * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.LicenseStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.NotificationContent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LicenseStats to JSON. + * Converts this NotificationContent to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LicenseStats + * Gets the default type url for NotificationContent * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace LicenseStats { - - /** Type enum. */ - enum Type { - LICENSE_STAT_UNKNOWN = 0, - MSP_BASE = 1, - MC_BUSINESS = 2, - MC_BUSINESS_PLUS = 3, - MC_ENTERPRISE = 4, - MC_ENTERPRISE_PLUS = 5, - B2B_BUSINESS_STARTER = 6, - B2B_BUSINESS = 7, - B2B_ENTERPRISE = 8 - } - } - - /** Properties of an AutoRenewal. */ - interface IAutoRenewal { + /** Properties of a NotificationWrapper. */ + interface INotificationWrapper { - /** AutoRenewal nextOn */ - nextOn?: (number|Long|null); + /** NotificationWrapper uid */ + uid?: (Uint8Array|null); - /** AutoRenewal daysLeft */ - daysLeft?: (number|null); + /** NotificationWrapper content */ + content?: (NotificationCenter.INotificationContent|null); - /** AutoRenewal isTrial */ - isTrial?: (boolean|null); + /** NotificationWrapper timestamp */ + timestamp?: (number|Long|null); } - /** Represents an AutoRenewal. */ - class AutoRenewal implements IAutoRenewal { + /** Represents a NotificationWrapper. */ + class NotificationWrapper implements INotificationWrapper { /** - * Constructs a new AutoRenewal. + * Constructs a new NotificationWrapper. * @param [properties] Properties to set */ - constructor(properties?: BI.IAutoRenewal); + constructor(properties?: NotificationCenter.INotificationWrapper); - /** AutoRenewal nextOn. */ - public nextOn: (number|Long); + /** NotificationWrapper uid. */ + public uid: Uint8Array; - /** AutoRenewal daysLeft. */ - public daysLeft: number; + /** NotificationWrapper content. */ + public content?: (NotificationCenter.INotificationContent|null); - /** AutoRenewal isTrial. */ - public isTrial: boolean; + /** NotificationWrapper timestamp. */ + public timestamp: (number|Long); /** - * Creates a new AutoRenewal instance using the specified properties. + * Creates a new NotificationWrapper instance using the specified properties. * @param [properties] Properties to set - * @returns AutoRenewal instance + * @returns NotificationWrapper instance */ - public static create(properties?: BI.IAutoRenewal): BI.AutoRenewal; + public static create(properties?: NotificationCenter.INotificationWrapper): NotificationCenter.NotificationWrapper; /** - * Encodes the specified AutoRenewal message. Does not implicitly {@link BI.AutoRenewal.verify|verify} messages. - * @param message AutoRenewal message or plain object to encode + * Encodes the specified NotificationWrapper message. 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 encode(message: BI.IAutoRenewal, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.INotificationWrapper, 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 + * 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: BI.IAutoRenewal, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: NotificationCenter.INotificationWrapper, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoRenewal message from the specified reader or buffer. + * Decodes a NotificationWrapper message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoRenewal + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.AutoRenewal; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationWrapper; /** - * Decodes an AutoRenewal message from the specified reader or buffer, length delimited. + * Decodes a NotificationWrapper message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoRenewal + * @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)): BI.AutoRenewal; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.NotificationWrapper; /** - * Verifies an AutoRenewal message. + * 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 an AutoRenewal message from a plain object. Also converts values to their respective internal types. + * Creates a NotificationWrapper message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoRenewal + * @returns NotificationWrapper */ - public static fromObject(object: { [k: string]: any }): BI.AutoRenewal; + public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationWrapper; /** - * Creates a plain object from an AutoRenewal message. Also converts values to other types if specified. - * @param message AutoRenewal + * Creates a plain object from a NotificationWrapper message. Also converts values to other types if specified. + * @param message NotificationWrapper * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.AutoRenewal, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.NotificationWrapper, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoRenewal to JSON. + * Converts this NotificationWrapper to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoRenewal + * Gets the default type url for NotificationWrapper * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PaymentMethod. */ - interface IPaymentMethod { - - /** PaymentMethod type */ - type?: (BI.PaymentMethod.Type|null); - - /** PaymentMethod card */ - card?: (BI.PaymentMethod.ICard|null); - - /** PaymentMethod sepa */ - sepa?: (BI.PaymentMethod.ISepa|null); - - /** PaymentMethod paypal */ - paypal?: (BI.PaymentMethod.IPaypal|null); + /** Properties of a NotificationSync. */ + interface INotificationSync { - /** PaymentMethod failedBilling */ - failedBilling?: (boolean|null); + /** NotificationSync data */ + data?: (NotificationCenter.INotificationWrapper[]|null); - /** PaymentMethod vendor */ - vendor?: (BI.PaymentMethod.IVendor|null); + /** NotificationSync syncPoint */ + syncPoint?: (number|Long|null); - /** PaymentMethod purchaseOrder */ - purchaseOrder?: (BI.PaymentMethod.IPurchaseOrder|null); + /** NotificationSync hasMore */ + hasMore?: (boolean|null); } - /** Represents a PaymentMethod. */ - class PaymentMethod implements IPaymentMethod { + /** Represents a NotificationSync. */ + class NotificationSync implements INotificationSync { /** - * Constructs a new PaymentMethod. + * Constructs a new NotificationSync. * @param [properties] Properties to set */ - constructor(properties?: BI.IPaymentMethod); - - /** PaymentMethod type. */ - public type: BI.PaymentMethod.Type; - - /** PaymentMethod card. */ - public card?: (BI.PaymentMethod.ICard|null); - - /** PaymentMethod sepa. */ - public sepa?: (BI.PaymentMethod.ISepa|null); - - /** PaymentMethod paypal. */ - public paypal?: (BI.PaymentMethod.IPaypal|null); + constructor(properties?: NotificationCenter.INotificationSync); - /** PaymentMethod failedBilling. */ - public failedBilling: boolean; + /** NotificationSync data. */ + public data: NotificationCenter.INotificationWrapper[]; - /** PaymentMethod vendor. */ - public vendor?: (BI.PaymentMethod.IVendor|null); + /** NotificationSync syncPoint. */ + public syncPoint: (number|Long); - /** PaymentMethod purchaseOrder. */ - public purchaseOrder?: (BI.PaymentMethod.IPurchaseOrder|null); + /** NotificationSync hasMore. */ + public hasMore: boolean; /** - * Creates a new PaymentMethod instance using the specified properties. + * Creates a new NotificationSync instance using the specified properties. * @param [properties] Properties to set - * @returns PaymentMethod instance + * @returns NotificationSync instance */ - public static create(properties?: BI.IPaymentMethod): BI.PaymentMethod; + public static create(properties?: NotificationCenter.INotificationSync): NotificationCenter.NotificationSync; /** - * Encodes the specified PaymentMethod message. Does not implicitly {@link BI.PaymentMethod.verify|verify} messages. - * @param message PaymentMethod message or plain object to encode + * Encodes the specified NotificationSync message. 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 encode(message: BI.IPaymentMethod, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.INotificationSync, 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 + * 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: BI.IPaymentMethod, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: NotificationCenter.INotificationSync, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PaymentMethod message from the specified reader or buffer. + * Decodes a NotificationSync message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PaymentMethod + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.PaymentMethod; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationSync; /** - * Decodes a PaymentMethod message from the specified reader or buffer, length delimited. + * Decodes a NotificationSync message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PaymentMethod + * @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)): BI.PaymentMethod; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.NotificationSync; /** - * Verifies a PaymentMethod message. + * 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 PaymentMethod message from a plain object. Also converts values to their respective internal types. + * Creates a NotificationSync message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PaymentMethod + * @returns NotificationSync */ - public static fromObject(object: { [k: string]: any }): BI.PaymentMethod; + public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationSync; /** - * Creates a plain object from a PaymentMethod message. Also converts values to other types if specified. - * @param message PaymentMethod + * Creates a plain object from a NotificationSync message. Also converts values to other types if specified. + * @param message NotificationSync * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.PaymentMethod, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.NotificationSync, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PaymentMethod to JSON. + * Converts this NotificationSync to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PaymentMethod + * Gets the default type url for NotificationSync * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace PaymentMethod { + /** Properties of a ReadStatusUpdate. */ + interface IReadStatusUpdate { - /** Type enum. */ - enum Type { - CARD = 0, - SEPA = 1, - PAYPAL = 2, - NONE = 3, - VENDOR = 4, - PURCHASEORDER = 5 - } + /** ReadStatusUpdate notificationUid */ + notificationUid?: (Uint8Array|null); - /** Properties of a Card. */ - interface ICard { + /** ReadStatusUpdate status */ + status?: (NotificationCenter.NotificationReadStatus|null); + } - /** Card last4 */ - last4?: (string|null); + /** Represents a ReadStatusUpdate. */ + class ReadStatusUpdate implements IReadStatusUpdate { - /** Card brand */ - brand?: (string|null); - } + /** + * Constructs a new ReadStatusUpdate. + * @param [properties] Properties to set + */ + constructor(properties?: NotificationCenter.IReadStatusUpdate); - /** Represents a Card. */ - class Card implements ICard { + /** ReadStatusUpdate notificationUid. */ + public notificationUid: Uint8Array; - /** - * Constructs a new Card. - * @param [properties] Properties to set - */ - constructor(properties?: BI.PaymentMethod.ICard); + /** ReadStatusUpdate status. */ + public status: NotificationCenter.NotificationReadStatus; - /** Card last4. */ - public last4: string; + /** + * Creates a new ReadStatusUpdate instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadStatusUpdate instance + */ + public static create(properties?: NotificationCenter.IReadStatusUpdate): NotificationCenter.ReadStatusUpdate; - /** Card brand. */ - public brand: string; + /** + * Encodes the specified ReadStatusUpdate message. 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 encode(message: NotificationCenter.IReadStatusUpdate, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new Card instance using the specified properties. - * @param [properties] Properties to set - * @returns Card instance - */ - public static create(properties?: BI.PaymentMethod.ICard): BI.PaymentMethod.Card; + /** + * 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; - /** - * Encodes the specified Card message. 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 encode(message: BI.PaymentMethod.ICard, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ReadStatusUpdate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.ReadStatusUpdate; - /** - * 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 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; - /** - * Decodes a Card message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.PaymentMethod.Card; + /** + * 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); - /** - * 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; + /** + * Creates a ReadStatusUpdate message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadStatusUpdate + */ + public static fromObject(object: { [k: string]: any }): NotificationCenter.ReadStatusUpdate; - /** - * 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 plain object from a ReadStatusUpdate message. Also converts values to other types if specified. + * @param message ReadStatusUpdate + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: NotificationCenter.ReadStatusUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a Card message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Card - */ - public static fromObject(object: { [k: string]: any }): BI.PaymentMethod.Card; + /** + * Converts this ReadStatusUpdate to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a Card message. Also converts values to other types if specified. - * @param message Card - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: BI.PaymentMethod.Card, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for ReadStatusUpdate + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this Card to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of an ApprovalStatusUpdate. */ + interface IApprovalStatusUpdate { - /** - * Gets the default type url for Card - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ApprovalStatusUpdate notificationUid */ + notificationUid?: (Uint8Array|null); - /** Properties of a Sepa. */ - interface ISepa { + /** ApprovalStatusUpdate status */ + status?: (NotificationCenter.NotificationApprovalStatus|null); + } - /** Sepa last4 */ - last4?: (string|null); + /** Represents an ApprovalStatusUpdate. */ + class ApprovalStatusUpdate implements IApprovalStatusUpdate { - /** Sepa country */ - country?: (string|null); - } + /** + * Constructs a new ApprovalStatusUpdate. + * @param [properties] Properties to set + */ + constructor(properties?: NotificationCenter.IApprovalStatusUpdate); - /** Represents a Sepa. */ - class Sepa implements ISepa { + /** ApprovalStatusUpdate notificationUid. */ + public notificationUid: Uint8Array; - /** - * Constructs a new Sepa. - * @param [properties] Properties to set - */ - constructor(properties?: BI.PaymentMethod.ISepa); - - /** Sepa last4. */ - public last4: string; - - /** Sepa country. */ - public country: string; - - /** - * Creates a new Sepa instance using the specified properties. - * @param [properties] Properties to set - * @returns Sepa instance - */ - public static create(properties?: BI.PaymentMethod.ISepa): BI.PaymentMethod.Sepa; - - /** - * Encodes the specified Sepa message. 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 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 - * @param [length] Message length if known beforehand - * @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 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 - * @returns Sepa - */ - public static fromObject(object: { [k: string]: any }): BI.PaymentMethod.Sepa; - - /** - * Creates a plain object from a Sepa message. Also converts values to other types if specified. - * @param message Sepa - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: BI.PaymentMethod.Sepa, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Sepa to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Sepa - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Paypal. */ - interface IPaypal { - } - - /** Represents a Paypal. */ - class Paypal implements IPaypal { - - /** - * Constructs a new Paypal. - * @param [properties] Properties to set - */ - constructor(properties?: BI.PaymentMethod.IPaypal); - - /** - * Creates a new Paypal instance using the specified properties. - * @param [properties] Properties to set - * @returns Paypal instance - */ - public static create(properties?: BI.PaymentMethod.IPaypal): BI.PaymentMethod.Paypal; - - /** - * Encodes the specified Paypal message. 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 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 - * @param [length] Message length if known beforehand - * @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 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 - * @returns Paypal - */ - public static fromObject(object: { [k: string]: any }): BI.PaymentMethod.Paypal; - - /** - * Creates a plain object from a Paypal message. Also converts values to other types if specified. - * @param message Paypal - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: BI.PaymentMethod.Paypal, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Paypal to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Paypal - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Vendor. */ - interface IVendor { - - /** Vendor name */ - name?: (string|null); - } - - /** Represents a Vendor. */ - class Vendor implements IVendor { - - /** - * Constructs a new Vendor. - * @param [properties] Properties to set - */ - constructor(properties?: BI.PaymentMethod.IVendor); - - /** Vendor name. */ - public name: string; - - /** - * Creates a new Vendor instance using the specified properties. - * @param [properties] Properties to set - * @returns Vendor instance - */ - public static create(properties?: BI.PaymentMethod.IVendor): BI.PaymentMethod.Vendor; - - /** - * Encodes the specified Vendor message. 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 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 - * @param [length] Message length if known beforehand - * @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 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 - * @returns Vendor - */ - public static fromObject(object: { [k: string]: any }): BI.PaymentMethod.Vendor; - - /** - * Creates a plain object from a Vendor message. Also converts values to other types if specified. - * @param message Vendor - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: BI.PaymentMethod.Vendor, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Vendor to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Vendor - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PurchaseOrder. */ - interface IPurchaseOrder { - - /** PurchaseOrder name */ - name?: (string|null); - } - - /** Represents a PurchaseOrder. */ - class PurchaseOrder implements IPurchaseOrder { - - /** - * Constructs a new PurchaseOrder. - * @param [properties] Properties to set - */ - constructor(properties?: BI.PaymentMethod.IPurchaseOrder); - - /** PurchaseOrder name. */ - public name: string; - - /** - * Creates a new PurchaseOrder instance using the specified properties. - * @param [properties] Properties to set - * @returns PurchaseOrder instance - */ - public static create(properties?: BI.PaymentMethod.IPurchaseOrder): BI.PaymentMethod.PurchaseOrder; - - /** - * Encodes the specified PurchaseOrder message. 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 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 - * @param [length] Message length if known beforehand - * @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 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 - * @returns PurchaseOrder - */ - public static fromObject(object: { [k: string]: any }): BI.PaymentMethod.PurchaseOrder; - - /** - * Creates a plain object from a PurchaseOrder message. Also converts values to other types if specified. - * @param message PurchaseOrder - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: BI.PaymentMethod.PurchaseOrder, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PurchaseOrder to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PurchaseOrder - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a SubscriptionMspPricingRequest. */ - interface ISubscriptionMspPricingRequest { - } - - /** Represents a SubscriptionMspPricingRequest. */ - class SubscriptionMspPricingRequest implements ISubscriptionMspPricingRequest { - - /** - * Constructs a new SubscriptionMspPricingRequest. - * @param [properties] Properties to set - */ - constructor(properties?: BI.ISubscriptionMspPricingRequest); + /** ApprovalStatusUpdate status. */ + public status: NotificationCenter.NotificationApprovalStatus; /** - * Creates a new SubscriptionMspPricingRequest instance using the specified properties. + * Creates a new ApprovalStatusUpdate instance using the specified properties. * @param [properties] Properties to set - * @returns SubscriptionMspPricingRequest instance + * @returns ApprovalStatusUpdate instance */ - public static create(properties?: BI.ISubscriptionMspPricingRequest): BI.SubscriptionMspPricingRequest; + public static create(properties?: NotificationCenter.IApprovalStatusUpdate): NotificationCenter.ApprovalStatusUpdate; /** - * Encodes the specified SubscriptionMspPricingRequest message. Does not implicitly {@link BI.SubscriptionMspPricingRequest.verify|verify} messages. - * @param message SubscriptionMspPricingRequest message or plain object to encode + * Encodes the specified ApprovalStatusUpdate message. 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 encode(message: BI.ISubscriptionMspPricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.IApprovalStatusUpdate, 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 + * 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: BI.ISubscriptionMspPricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: NotificationCenter.IApprovalStatusUpdate, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SubscriptionMspPricingRequest message from the specified reader or buffer. + * Decodes an ApprovalStatusUpdate message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SubscriptionMspPricingRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionMspPricingRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.ApprovalStatusUpdate; /** - * Decodes a SubscriptionMspPricingRequest message from the specified reader or buffer, length delimited. + * Decodes an ApprovalStatusUpdate message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SubscriptionMspPricingRequest + * @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)): BI.SubscriptionMspPricingRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.ApprovalStatusUpdate; /** - * Verifies a SubscriptionMspPricingRequest message. + * 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 a SubscriptionMspPricingRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApprovalStatusUpdate message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SubscriptionMspPricingRequest + * @returns ApprovalStatusUpdate */ - public static fromObject(object: { [k: string]: any }): BI.SubscriptionMspPricingRequest; + public static fromObject(object: { [k: string]: any }): NotificationCenter.ApprovalStatusUpdate; /** - * Creates a plain object from a SubscriptionMspPricingRequest message. Also converts values to other types if specified. - * @param message SubscriptionMspPricingRequest + * Creates a plain object from an ApprovalStatusUpdate message. Also converts values to other types if specified. + * @param message ApprovalStatusUpdate * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionMspPricingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.ApprovalStatusUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SubscriptionMspPricingRequest to JSON. + * Converts this ApprovalStatusUpdate to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SubscriptionMspPricingRequest + * Gets the default type url for ApprovalStatusUpdate * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SubscriptionMspPricingResponse. */ - interface ISubscriptionMspPricingResponse { - - /** SubscriptionMspPricingResponse addons */ - addons?: (BI.IAddon[]|null); + /** Properties of a ProcessMarkReadEventsRequest. */ + interface IProcessMarkReadEventsRequest { - /** SubscriptionMspPricingResponse filePlans */ - filePlans?: (BI.IFilePlan[]|null); + /** ProcessMarkReadEventsRequest readStatusUpdate */ + readStatusUpdate?: (NotificationCenter.IReadStatusUpdate[]|null); } - /** Represents a SubscriptionMspPricingResponse. */ - class SubscriptionMspPricingResponse implements ISubscriptionMspPricingResponse { + /** Represents a ProcessMarkReadEventsRequest. */ + class ProcessMarkReadEventsRequest implements IProcessMarkReadEventsRequest { /** - * Constructs a new SubscriptionMspPricingResponse. + * Constructs a new ProcessMarkReadEventsRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.ISubscriptionMspPricingResponse); - - /** SubscriptionMspPricingResponse addons. */ - public addons: BI.IAddon[]; + constructor(properties?: NotificationCenter.IProcessMarkReadEventsRequest); - /** SubscriptionMspPricingResponse filePlans. */ - public filePlans: BI.IFilePlan[]; + /** ProcessMarkReadEventsRequest readStatusUpdate. */ + public readStatusUpdate: NotificationCenter.IReadStatusUpdate[]; /** - * Creates a new SubscriptionMspPricingResponse instance using the specified properties. + * Creates a new ProcessMarkReadEventsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SubscriptionMspPricingResponse instance + * @returns ProcessMarkReadEventsRequest instance */ - public static create(properties?: BI.ISubscriptionMspPricingResponse): BI.SubscriptionMspPricingResponse; + public static create(properties?: NotificationCenter.IProcessMarkReadEventsRequest): NotificationCenter.ProcessMarkReadEventsRequest; /** - * Encodes the specified SubscriptionMspPricingResponse message. Does not implicitly {@link BI.SubscriptionMspPricingResponse.verify|verify} messages. - * @param message SubscriptionMspPricingResponse message or plain object to encode + * Encodes the specified ProcessMarkReadEventsRequest message. 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 encode(message: BI.ISubscriptionMspPricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.IProcessMarkReadEventsRequest, 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 + * 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: BI.ISubscriptionMspPricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: NotificationCenter.IProcessMarkReadEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SubscriptionMspPricingResponse message from the specified reader or buffer. + * Decodes a ProcessMarkReadEventsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SubscriptionMspPricingResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionMspPricingResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.ProcessMarkReadEventsRequest; /** - * Decodes a SubscriptionMspPricingResponse message from the specified reader or buffer, length delimited. + * Decodes a ProcessMarkReadEventsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SubscriptionMspPricingResponse + * @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)): BI.SubscriptionMspPricingResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.ProcessMarkReadEventsRequest; /** - * Verifies a SubscriptionMspPricingResponse message. + * 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 SubscriptionMspPricingResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ProcessMarkReadEventsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SubscriptionMspPricingResponse + * @returns ProcessMarkReadEventsRequest */ - public static fromObject(object: { [k: string]: any }): BI.SubscriptionMspPricingResponse; + public static fromObject(object: { [k: string]: any }): NotificationCenter.ProcessMarkReadEventsRequest; /** - * Creates a plain object from a SubscriptionMspPricingResponse message. Also converts values to other types if specified. - * @param message SubscriptionMspPricingResponse + * Creates a plain object from a ProcessMarkReadEventsRequest message. Also converts values to other types if specified. + * @param message ProcessMarkReadEventsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionMspPricingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.ProcessMarkReadEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SubscriptionMspPricingResponse to JSON. + * Converts this ProcessMarkReadEventsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SubscriptionMspPricingResponse + * Gets the default type url for ProcessMarkReadEventsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SubscriptionMcPricingRequest. */ - interface ISubscriptionMcPricingRequest { - } + /** Properties of a NotificationSendRequest. */ + interface INotificationSendRequest { - /** Represents a SubscriptionMcPricingRequest. */ - class SubscriptionMcPricingRequest implements ISubscriptionMcPricingRequest { + /** NotificationSendRequest recipients */ + recipients?: (GraphSync.IGraphSyncRef[]|null); + + /** NotificationSendRequest notification */ + notification?: (NotificationCenter.INotification|null); + + /** NotificationSendRequest clientTypeIDs */ + clientTypeIDs?: (number[]|null); + + /** NotificationSendRequest deviceIDs */ + deviceIDs?: ((number|Long)[]|null); + + /** NotificationSendRequest predefinedUid */ + predefinedUid?: (Uint8Array|null); + } + + /** Represents a NotificationSendRequest. */ + class NotificationSendRequest implements INotificationSendRequest { /** - * Constructs a new SubscriptionMcPricingRequest. + * Constructs a new NotificationSendRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.ISubscriptionMcPricingRequest); + constructor(properties?: NotificationCenter.INotificationSendRequest); + + /** NotificationSendRequest recipients. */ + public recipients: GraphSync.IGraphSyncRef[]; + + /** NotificationSendRequest notification. */ + public notification?: (NotificationCenter.INotification|null); + + /** NotificationSendRequest clientTypeIDs. */ + public clientTypeIDs: number[]; + + /** NotificationSendRequest deviceIDs. */ + public deviceIDs: (number|Long)[]; + + /** NotificationSendRequest predefinedUid. */ + public predefinedUid?: (Uint8Array|null); + + /** NotificationSendRequest _predefinedUid. */ + public _predefinedUid?: "predefinedUid"; /** - * Creates a new SubscriptionMcPricingRequest instance using the specified properties. + * Creates a new NotificationSendRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SubscriptionMcPricingRequest instance + * @returns NotificationSendRequest instance */ - public static create(properties?: BI.ISubscriptionMcPricingRequest): BI.SubscriptionMcPricingRequest; + public static create(properties?: NotificationCenter.INotificationSendRequest): NotificationCenter.NotificationSendRequest; /** - * Encodes the specified SubscriptionMcPricingRequest message. Does not implicitly {@link BI.SubscriptionMcPricingRequest.verify|verify} messages. - * @param message SubscriptionMcPricingRequest message or plain object to encode + * Encodes the specified NotificationSendRequest message. 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 encode(message: BI.ISubscriptionMcPricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.INotificationSendRequest, 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 + * 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: BI.ISubscriptionMcPricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: NotificationCenter.INotificationSendRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SubscriptionMcPricingRequest message from the specified reader or buffer. + * Decodes a NotificationSendRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SubscriptionMcPricingRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionMcPricingRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationSendRequest; /** - * Decodes a SubscriptionMcPricingRequest message from the specified reader or buffer, length delimited. + * Decodes a NotificationSendRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SubscriptionMcPricingRequest + * @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)): BI.SubscriptionMcPricingRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.NotificationSendRequest; /** - * Verifies a SubscriptionMcPricingRequest message. + * 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 SubscriptionMcPricingRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NotificationSendRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SubscriptionMcPricingRequest + * @returns NotificationSendRequest */ - public static fromObject(object: { [k: string]: any }): BI.SubscriptionMcPricingRequest; + public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationSendRequest; /** - * Creates a plain object from a SubscriptionMcPricingRequest message. Also converts values to other types if specified. - * @param message SubscriptionMcPricingRequest + * Creates a plain object from a NotificationSendRequest message. Also converts values to other types if specified. + * @param message NotificationSendRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionMcPricingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.NotificationSendRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SubscriptionMcPricingRequest to JSON. + * Converts this NotificationSendRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SubscriptionMcPricingRequest + * Gets the default type url for NotificationSendRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SubscriptionMcPricingResponse. */ - interface ISubscriptionMcPricingResponse { - - /** SubscriptionMcPricingResponse basePlans */ - basePlans?: (BI.IBasePlan[]|null); - - /** SubscriptionMcPricingResponse addons */ - addons?: (BI.IAddon[]|null); + /** Properties of a NotificationsSendRequest. */ + interface INotificationsSendRequest { - /** SubscriptionMcPricingResponse filePlans */ - filePlans?: (BI.IFilePlan[]|null); + /** NotificationsSendRequest notifications */ + notifications?: (NotificationCenter.INotificationSendRequest[]|null); } - /** Represents a SubscriptionMcPricingResponse. */ - class SubscriptionMcPricingResponse implements ISubscriptionMcPricingResponse { + /** Represents a NotificationsSendRequest. */ + class NotificationsSendRequest implements INotificationsSendRequest { /** - * Constructs a new SubscriptionMcPricingResponse. + * Constructs a new NotificationsSendRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.ISubscriptionMcPricingResponse); - - /** SubscriptionMcPricingResponse basePlans. */ - public basePlans: BI.IBasePlan[]; - - /** SubscriptionMcPricingResponse addons. */ - public addons: BI.IAddon[]; + constructor(properties?: NotificationCenter.INotificationsSendRequest); - /** SubscriptionMcPricingResponse filePlans. */ - public filePlans: BI.IFilePlan[]; + /** NotificationsSendRequest notifications. */ + public notifications: NotificationCenter.INotificationSendRequest[]; /** - * Creates a new SubscriptionMcPricingResponse instance using the specified properties. + * Creates a new NotificationsSendRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SubscriptionMcPricingResponse instance + * @returns NotificationsSendRequest instance */ - public static create(properties?: BI.ISubscriptionMcPricingResponse): BI.SubscriptionMcPricingResponse; + public static create(properties?: NotificationCenter.INotificationsSendRequest): NotificationCenter.NotificationsSendRequest; /** - * Encodes the specified SubscriptionMcPricingResponse message. Does not implicitly {@link BI.SubscriptionMcPricingResponse.verify|verify} messages. - * @param message SubscriptionMcPricingResponse message or plain object to encode + * Encodes the specified NotificationsSendRequest message. 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 encode(message: BI.ISubscriptionMcPricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.INotificationsSendRequest, 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 + * 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: BI.ISubscriptionMcPricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: NotificationCenter.INotificationsSendRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SubscriptionMcPricingResponse message from the specified reader or buffer. + * Decodes a NotificationsSendRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SubscriptionMcPricingResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionMcPricingResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationsSendRequest; /** - * Decodes a SubscriptionMcPricingResponse message from the specified reader or buffer, length delimited. + * Decodes a NotificationsSendRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SubscriptionMcPricingResponse + * @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)): BI.SubscriptionMcPricingResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.NotificationsSendRequest; /** - * Verifies a SubscriptionMcPricingResponse message. + * 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 SubscriptionMcPricingResponse message from a plain object. Also converts values to their respective internal types. + * Creates a NotificationsSendRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SubscriptionMcPricingResponse + * @returns NotificationsSendRequest */ - public static fromObject(object: { [k: string]: any }): BI.SubscriptionMcPricingResponse; + public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationsSendRequest; /** - * Creates a plain object from a SubscriptionMcPricingResponse message. Also converts values to other types if specified. - * @param message SubscriptionMcPricingResponse + * Creates a plain object from a NotificationsSendRequest message. Also converts values to other types if specified. + * @param message NotificationsSendRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionMcPricingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.NotificationsSendRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SubscriptionMcPricingResponse to JSON. + * Converts this NotificationsSendRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SubscriptionMcPricingResponse + * Gets the default type url for NotificationsSendRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BasePlan. */ - interface IBasePlan { - - /** BasePlan id */ - id?: (number|null); + /** Properties of a NotificationSyncRequest. */ + interface INotificationSyncRequest { - /** BasePlan cost */ - cost?: (BI.ICost|null); + /** NotificationSyncRequest syncPoint */ + syncPoint?: (number|Long|null); } - /** Represents a BasePlan. */ - class BasePlan implements IBasePlan { + /** Represents a NotificationSyncRequest. */ + class NotificationSyncRequest implements INotificationSyncRequest { /** - * Constructs a new BasePlan. + * Constructs a new NotificationSyncRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IBasePlan); - - /** BasePlan id. */ - public id: number; + constructor(properties?: NotificationCenter.INotificationSyncRequest); - /** BasePlan cost. */ - public cost?: (BI.ICost|null); + /** NotificationSyncRequest syncPoint. */ + public syncPoint: (number|Long); /** - * Creates a new BasePlan instance using the specified properties. + * Creates a new NotificationSyncRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BasePlan instance + * @returns NotificationSyncRequest instance */ - public static create(properties?: BI.IBasePlan): BI.BasePlan; + public static create(properties?: NotificationCenter.INotificationSyncRequest): NotificationCenter.NotificationSyncRequest; /** - * Encodes the specified BasePlan message. Does not implicitly {@link BI.BasePlan.verify|verify} messages. - * @param message BasePlan message or plain object to encode + * Encodes the specified NotificationSyncRequest message. 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 encode(message: BI.IBasePlan, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.INotificationSyncRequest, 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 + * 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: BI.IBasePlan, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: NotificationCenter.INotificationSyncRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BasePlan message from the specified reader or buffer. + * Decodes a NotificationSyncRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BasePlan + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.BasePlan; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationSyncRequest; /** - * Decodes a BasePlan message from the specified reader or buffer, length delimited. + * Decodes a NotificationSyncRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BasePlan + * @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)): BI.BasePlan; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.NotificationSyncRequest; /** - * Verifies a BasePlan message. + * 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 BasePlan message from a plain object. Also converts values to their respective internal types. + * Creates a NotificationSyncRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BasePlan + * @returns NotificationSyncRequest */ - public static fromObject(object: { [k: string]: any }): BI.BasePlan; + public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationSyncRequest; /** - * Creates a plain object from a BasePlan message. Also converts values to other types if specified. - * @param message BasePlan + * Creates a plain object from a NotificationSyncRequest message. Also converts values to other types if specified. + * @param message NotificationSyncRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.BasePlan, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.NotificationSyncRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BasePlan to JSON. + * Converts this NotificationSyncRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BasePlan + * Gets the default type url for NotificationSyncRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Addon. */ - interface IAddon { - - /** Addon id */ - id?: (number|null); + /** Properties of a SentNotification. */ + interface ISentNotification { - /** Addon cost */ - cost?: (BI.ICost|null); + /** SentNotification user */ + user?: (number|null); - /** Addon amountConsumed */ - amountConsumed?: (number|Long|null); + /** SentNotification notificationUid */ + notificationUid?: (Uint8Array|null); } - /** Represents an Addon. */ - class Addon implements IAddon { + /** Represents a SentNotification. */ + class SentNotification implements ISentNotification { /** - * Constructs a new Addon. + * Constructs a new SentNotification. * @param [properties] Properties to set */ - constructor(properties?: BI.IAddon); - - /** Addon id. */ - public id: number; + constructor(properties?: NotificationCenter.ISentNotification); - /** Addon cost. */ - public cost?: (BI.ICost|null); + /** SentNotification user. */ + public user: number; - /** Addon amountConsumed. */ - public amountConsumed: (number|Long); + /** SentNotification notificationUid. */ + public notificationUid: Uint8Array; /** - * Creates a new Addon instance using the specified properties. + * Creates a new SentNotification instance using the specified properties. * @param [properties] Properties to set - * @returns Addon instance + * @returns SentNotification instance */ - public static create(properties?: BI.IAddon): BI.Addon; + public static create(properties?: NotificationCenter.ISentNotification): NotificationCenter.SentNotification; /** - * Encodes the specified Addon message. Does not implicitly {@link BI.Addon.verify|verify} messages. - * @param message Addon message or plain object to encode + * Encodes the specified SentNotification message. 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 encode(message: BI.IAddon, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.ISentNotification, 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 + * 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: BI.IAddon, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: NotificationCenter.ISentNotification, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Addon message from the specified reader or buffer. + * Decodes a SentNotification message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Addon + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.Addon; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.SentNotification; /** - * Decodes an Addon message from the specified reader or buffer, length delimited. + * Decodes a SentNotification message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Addon + * @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)): BI.Addon; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.SentNotification; /** - * Verifies an Addon message. + * 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 an Addon message from a plain object. Also converts values to their respective internal types. + * Creates a SentNotification message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Addon + * @returns SentNotification */ - public static fromObject(object: { [k: string]: any }): BI.Addon; + public static fromObject(object: { [k: string]: any }): NotificationCenter.SentNotification; /** - * Creates a plain object from an Addon message. Also converts values to other types if specified. - * @param message Addon + * Creates a plain object from a SentNotification message. Also converts values to other types if specified. + * @param message SentNotification * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.Addon, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.SentNotification, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Addon to JSON. + * Converts this SentNotification to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Addon + * Gets the default type url for SentNotification * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FilePlan. */ - interface IFilePlan { + /** Properties of a NotificationsApprovalStatusUpdateRequest. */ + interface INotificationsApprovalStatusUpdateRequest { - /** FilePlan id */ - id?: (number|null); + /** NotificationsApprovalStatusUpdateRequest status */ + status?: (NotificationCenter.NotificationApprovalStatus|null); - /** FilePlan cost */ - cost?: (BI.ICost|null); + /** NotificationsApprovalStatusUpdateRequest notifications */ + notifications?: (NotificationCenter.ISentNotification[]|null); } - /** Represents a FilePlan. */ - class FilePlan implements IFilePlan { + /** Represents a NotificationsApprovalStatusUpdateRequest. */ + class NotificationsApprovalStatusUpdateRequest implements INotificationsApprovalStatusUpdateRequest { /** - * Constructs a new FilePlan. + * Constructs a new NotificationsApprovalStatusUpdateRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IFilePlan); + constructor(properties?: NotificationCenter.INotificationsApprovalStatusUpdateRequest); - /** FilePlan id. */ - public id: number; + /** NotificationsApprovalStatusUpdateRequest status. */ + public status: NotificationCenter.NotificationApprovalStatus; - /** FilePlan cost. */ - public cost?: (BI.ICost|null); + /** NotificationsApprovalStatusUpdateRequest notifications. */ + public notifications: NotificationCenter.ISentNotification[]; /** - * Creates a new FilePlan instance using the specified properties. + * Creates a new NotificationsApprovalStatusUpdateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FilePlan instance + * @returns NotificationsApprovalStatusUpdateRequest instance */ - public static create(properties?: BI.IFilePlan): BI.FilePlan; + public static create(properties?: NotificationCenter.INotificationsApprovalStatusUpdateRequest): NotificationCenter.NotificationsApprovalStatusUpdateRequest; /** - * Encodes the specified FilePlan message. Does not implicitly {@link BI.FilePlan.verify|verify} messages. - * @param message FilePlan message or plain object to encode + * Encodes the specified NotificationsApprovalStatusUpdateRequest message. 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 encode(message: BI.IFilePlan, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.INotificationsApprovalStatusUpdateRequest, 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 + * 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: BI.IFilePlan, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: NotificationCenter.INotificationsApprovalStatusUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FilePlan message from the specified reader or buffer. + * Decodes a NotificationsApprovalStatusUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FilePlan + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.FilePlan; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationsApprovalStatusUpdateRequest; /** - * Decodes a FilePlan message from the specified reader or buffer, length delimited. + * Decodes a NotificationsApprovalStatusUpdateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FilePlan + * @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)): BI.FilePlan; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.NotificationsApprovalStatusUpdateRequest; /** - * Verifies a FilePlan message. + * 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 FilePlan message from a plain object. Also converts values to their respective internal types. + * Creates a NotificationsApprovalStatusUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FilePlan + * @returns NotificationsApprovalStatusUpdateRequest */ - public static fromObject(object: { [k: string]: any }): BI.FilePlan; + public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationsApprovalStatusUpdateRequest; /** - * Creates a plain object from a FilePlan message. Also converts values to other types if specified. - * @param message FilePlan + * Creates a plain object from a NotificationsApprovalStatusUpdateRequest message. Also converts values to other types if specified. + * @param message NotificationsApprovalStatusUpdateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.FilePlan, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.NotificationsApprovalStatusUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FilePlan to JSON. + * Converts this NotificationsApprovalStatusUpdateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FilePlan + * Gets the default type url for NotificationsApprovalStatusUpdateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } +} - /** Properties of a Cost. */ - interface ICost { +/** Namespace GraphSync. */ +export namespace GraphSync { - /** Cost amount */ - amount?: (number|null); + /** RefType enum. */ + enum RefType { + RFT_GENERAL = 0, + RFT_USER = 1, + RFT_DEVICE = 2, + RFT_REC = 3, + RFT_FOLDER = 4, + RFT_TEAM = 5, + RFT_ENTERPRISE = 6, + RFT_PAM_DIRECTORY = 7, + RFT_PAM_MACHINE = 8, + RFT_PAM_DATABASE = 9, + RFT_PAM_USER = 10, + RFT_PAM_NETWORK = 11, + RFT_PAM_BROWSER = 12, + RFT_CONNECTION = 13, + RFT_WORKFLOW = 14, + RFT_NOTIFICATION = 15, + RFT_USER_INFO = 16, + RFT_TEAM_INFO = 17, + RFT_ROLE = 18 + } - /** Cost amountPer */ - amountPer?: (BI.Cost.AmountPer|null); + /** Properties of a GraphSyncRef. */ + interface IGraphSyncRef { - /** Cost currency */ - currency?: (BI.Currency|null); + /** GraphSyncRef type */ + type?: (GraphSync.RefType|null); + + /** GraphSyncRef value */ + value?: (Uint8Array|null); + + /** GraphSyncRef name */ + name?: (string|null); } - /** Represents a Cost. */ - class Cost implements ICost { + /** Represents a GraphSyncRef. */ + class GraphSyncRef implements IGraphSyncRef { /** - * Constructs a new Cost. + * Constructs a new GraphSyncRef. * @param [properties] Properties to set */ - constructor(properties?: BI.ICost); + constructor(properties?: GraphSync.IGraphSyncRef); - /** Cost amount. */ - public amount: number; + /** GraphSyncRef type. */ + public type: GraphSync.RefType; - /** Cost amountPer. */ - public amountPer: BI.Cost.AmountPer; + /** GraphSyncRef value. */ + public value: Uint8Array; - /** Cost currency. */ - public currency: BI.Currency; + /** GraphSyncRef name. */ + public name: string; /** - * Creates a new Cost instance using the specified properties. + * Creates a new GraphSyncRef instance using the specified properties. * @param [properties] Properties to set - * @returns Cost instance + * @returns GraphSyncRef instance */ - public static create(properties?: BI.ICost): BI.Cost; + public static create(properties?: GraphSync.IGraphSyncRef): GraphSync.GraphSyncRef; /** - * Encodes the specified Cost message. Does not implicitly {@link BI.Cost.verify|verify} messages. - * @param message Cost message or plain object to encode + * Encodes the specified GraphSyncRef message. 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 encode(message: BI.ICost, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: GraphSync.IGraphSyncRef, 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 + * 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: BI.ICost, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: GraphSync.IGraphSyncRef, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Cost message from the specified reader or buffer. + * Decodes a GraphSyncRef message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Cost + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.Cost; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncRef; /** - * Decodes a Cost message from the specified reader or buffer, length delimited. + * Decodes a GraphSyncRef message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Cost + * @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)): BI.Cost; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncRef; /** - * Verifies a Cost message. + * 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 Cost message from a plain object. Also converts values to their respective internal types. + * Creates a GraphSyncRef message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Cost + * @returns GraphSyncRef */ - public static fromObject(object: { [k: string]: any }): BI.Cost; + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncRef; /** - * Creates a plain object from a Cost message. Also converts values to other types if specified. - * @param message Cost + * Creates a plain object from a GraphSyncRef message. Also converts values to other types if specified. + * @param message GraphSyncRef * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.Cost, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: GraphSync.GraphSyncRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Cost to JSON. + * Converts this GraphSyncRef to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Cost + * Gets the default type url for GraphSyncRef * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Cost { + /** GraphSyncDataType enum. */ + enum GraphSyncDataType { + GSE_DATA = 0, + GSE_KEY = 1, + GSE_LINK = 2, + GSE_ACL = 3, + GSE_DELETION = 4 + } - /** AmountPer enum. */ - enum AmountPer { - UNKNOWN = 0, - MONTH = 1, - USER_MONTH = 2, - USER_CONSUMED_MONTH = 3, - ENDPOINT_MONTH = 4, - USER_YEAR = 5, - USER_CONSUMED_YEAR = 6, - YEAR = 7, - ENDPOINT_YEAR = 8 - } + /** GraphSyncActorType enum. */ + enum GraphSyncActorType { + GSA_USER = 0, + GSA_SERVICE = 1, + GSA_PAM_GATEWAY = 2 } - /** Properties of an InvoiceSearchRequest. */ - interface IInvoiceSearchRequest { + /** Properties of a GraphSyncActor. */ + interface IGraphSyncActor { - /** InvoiceSearchRequest size */ - size?: (number|null); + /** GraphSyncActor type */ + type?: (GraphSync.GraphSyncActorType|null); - /** InvoiceSearchRequest startingAfterId */ - startingAfterId?: (number|null); + /** GraphSyncActor id */ + id?: (Uint8Array|null); - /** InvoiceSearchRequest allInvoicesUnfiltered */ - allInvoicesUnfiltered?: (boolean|null); + /** GraphSyncActor name */ + name?: (string|null); + + /** GraphSyncActor effectiveUserId */ + effectiveUserId?: (Uint8Array|null); } - /** Represents an InvoiceSearchRequest. */ - class InvoiceSearchRequest implements IInvoiceSearchRequest { + /** Represents a GraphSyncActor. */ + class GraphSyncActor implements IGraphSyncActor { /** - * Constructs a new InvoiceSearchRequest. + * Constructs a new GraphSyncActor. * @param [properties] Properties to set */ - constructor(properties?: BI.IInvoiceSearchRequest); + constructor(properties?: GraphSync.IGraphSyncActor); - /** InvoiceSearchRequest size. */ - public size: number; + /** GraphSyncActor type. */ + public type: GraphSync.GraphSyncActorType; - /** InvoiceSearchRequest startingAfterId. */ - public startingAfterId: number; + /** GraphSyncActor id. */ + public id: Uint8Array; - /** InvoiceSearchRequest allInvoicesUnfiltered. */ - public allInvoicesUnfiltered: boolean; + /** GraphSyncActor name. */ + public name: string; + + /** GraphSyncActor effectiveUserId. */ + public effectiveUserId: Uint8Array; /** - * Creates a new InvoiceSearchRequest instance using the specified properties. + * Creates a new GraphSyncActor instance using the specified properties. * @param [properties] Properties to set - * @returns InvoiceSearchRequest instance + * @returns GraphSyncActor instance */ - public static create(properties?: BI.IInvoiceSearchRequest): BI.InvoiceSearchRequest; + public static create(properties?: GraphSync.IGraphSyncActor): GraphSync.GraphSyncActor; /** - * Encodes the specified InvoiceSearchRequest message. Does not implicitly {@link BI.InvoiceSearchRequest.verify|verify} messages. - * @param message InvoiceSearchRequest message or plain object to encode + * Encodes the specified GraphSyncActor message. 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 encode(message: BI.IInvoiceSearchRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: GraphSync.IGraphSyncActor, 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 + * 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: BI.IInvoiceSearchRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: GraphSync.IGraphSyncActor, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InvoiceSearchRequest message from the specified reader or buffer. + * Decodes a GraphSyncActor message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InvoiceSearchRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.InvoiceSearchRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncActor; /** - * Decodes an InvoiceSearchRequest message from the specified reader or buffer, length delimited. + * Decodes a GraphSyncActor message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InvoiceSearchRequest + * @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)): BI.InvoiceSearchRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncActor; /** - * Verifies an InvoiceSearchRequest message. + * 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 an InvoiceSearchRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GraphSyncActor message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InvoiceSearchRequest + * @returns GraphSyncActor */ - public static fromObject(object: { [k: string]: any }): BI.InvoiceSearchRequest; + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncActor; /** - * Creates a plain object from an InvoiceSearchRequest message. Also converts values to other types if specified. - * @param message InvoiceSearchRequest + * Creates a plain object from a GraphSyncActor message. Also converts values to other types if specified. + * @param message GraphSyncActor * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.InvoiceSearchRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: GraphSync.GraphSyncActor, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InvoiceSearchRequest to JSON. + * Converts this GraphSyncActor to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InvoiceSearchRequest + * Gets the default type url for GraphSyncActor * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an InvoiceSearchResponse. */ - interface IInvoiceSearchResponse { + /** Properties of a GraphSyncData. */ + interface IGraphSyncData { - /** InvoiceSearchResponse invoices */ - invoices?: (BI.IInvoice[]|null); + /** GraphSyncData type */ + type?: (GraphSync.GraphSyncDataType|null); + + /** GraphSyncData ref */ + ref?: (GraphSync.IGraphSyncRef|null); + + /** GraphSyncData parentRef */ + parentRef?: (GraphSync.IGraphSyncRef|null); + + /** GraphSyncData content */ + content?: (Uint8Array|null); + + /** GraphSyncData path */ + path?: (string|null); } - /** Represents an InvoiceSearchResponse. */ - class InvoiceSearchResponse implements IInvoiceSearchResponse { + /** Represents a GraphSyncData. */ + class GraphSyncData implements IGraphSyncData { /** - * Constructs a new InvoiceSearchResponse. + * Constructs a new GraphSyncData. * @param [properties] Properties to set */ - constructor(properties?: BI.IInvoiceSearchResponse); + constructor(properties?: GraphSync.IGraphSyncData); - /** InvoiceSearchResponse invoices. */ - public invoices: BI.IInvoice[]; + /** GraphSyncData type. */ + public type: GraphSync.GraphSyncDataType; + + /** GraphSyncData ref. */ + public ref?: (GraphSync.IGraphSyncRef|null); + + /** GraphSyncData parentRef. */ + public parentRef?: (GraphSync.IGraphSyncRef|null); + + /** GraphSyncData content. */ + public content: Uint8Array; + + /** GraphSyncData path. */ + public path: string; /** - * Creates a new InvoiceSearchResponse instance using the specified properties. + * Creates a new GraphSyncData instance using the specified properties. * @param [properties] Properties to set - * @returns InvoiceSearchResponse instance + * @returns GraphSyncData instance */ - public static create(properties?: BI.IInvoiceSearchResponse): BI.InvoiceSearchResponse; + public static create(properties?: GraphSync.IGraphSyncData): GraphSync.GraphSyncData; /** - * Encodes the specified InvoiceSearchResponse message. Does not implicitly {@link BI.InvoiceSearchResponse.verify|verify} messages. - * @param message InvoiceSearchResponse message or plain object to encode + * Encodes the specified GraphSyncData message. 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 encode(message: BI.IInvoiceSearchResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: GraphSync.IGraphSyncData, 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 + * 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: BI.IInvoiceSearchResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: GraphSync.IGraphSyncData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InvoiceSearchResponse message from the specified reader or buffer. + * Decodes a GraphSyncData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InvoiceSearchResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.InvoiceSearchResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncData; /** - * Decodes an InvoiceSearchResponse message from the specified reader or buffer, length delimited. + * Decodes a GraphSyncData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InvoiceSearchResponse + * @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)): BI.InvoiceSearchResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncData; /** - * Verifies an InvoiceSearchResponse message. + * 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 an InvoiceSearchResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GraphSyncData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InvoiceSearchResponse + * @returns GraphSyncData */ - public static fromObject(object: { [k: string]: any }): BI.InvoiceSearchResponse; + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncData; /** - * Creates a plain object from an InvoiceSearchResponse message. Also converts values to other types if specified. - * @param message InvoiceSearchResponse + * Creates a plain object from a GraphSyncData message. Also converts values to other types if specified. + * @param message GraphSyncData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.InvoiceSearchResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: GraphSync.GraphSyncData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InvoiceSearchResponse to JSON. + * Converts this GraphSyncData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InvoiceSearchResponse + * Gets the default type url for GraphSyncData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Invoice. */ - interface IInvoice { - - /** Invoice id */ - id?: (number|null); - - /** Invoice invoiceNumber */ - invoiceNumber?: (string|null); - - /** Invoice invoiceDate */ - invoiceDate?: (number|Long|null); + /** Properties of a GraphSyncDataPlus. */ + interface IGraphSyncDataPlus { - /** Invoice licenseCount */ - licenseCount?: (number|null); + /** GraphSyncDataPlus data */ + data?: (GraphSync.IGraphSyncData|null); - /** Invoice totalCost */ - totalCost?: (BI.Invoice.ICost|null); + /** GraphSyncDataPlus timestamp */ + timestamp?: (number|Long|null); - /** Invoice invoiceType */ - invoiceType?: (BI.Invoice.Type|null); + /** GraphSyncDataPlus actor */ + actor?: (GraphSync.IGraphSyncActor|null); } - /** Represents an Invoice. */ - class Invoice implements IInvoice { + /** Represents a GraphSyncDataPlus. */ + class GraphSyncDataPlus implements IGraphSyncDataPlus { /** - * Constructs a new Invoice. + * Constructs a new GraphSyncDataPlus. * @param [properties] Properties to set */ - constructor(properties?: BI.IInvoice); - - /** Invoice id. */ - public id: number; - - /** Invoice invoiceNumber. */ - public invoiceNumber: string; - - /** Invoice invoiceDate. */ - public invoiceDate: (number|Long); + constructor(properties?: GraphSync.IGraphSyncDataPlus); - /** Invoice licenseCount. */ - public licenseCount: number; + /** GraphSyncDataPlus data. */ + public data?: (GraphSync.IGraphSyncData|null); - /** Invoice totalCost. */ - public totalCost?: (BI.Invoice.ICost|null); + /** GraphSyncDataPlus timestamp. */ + public timestamp: (number|Long); - /** Invoice invoiceType. */ - public invoiceType: BI.Invoice.Type; + /** GraphSyncDataPlus actor. */ + public actor?: (GraphSync.IGraphSyncActor|null); /** - * Creates a new Invoice instance using the specified properties. + * Creates a new GraphSyncDataPlus instance using the specified properties. * @param [properties] Properties to set - * @returns Invoice instance + * @returns GraphSyncDataPlus instance */ - public static create(properties?: BI.IInvoice): BI.Invoice; + public static create(properties?: GraphSync.IGraphSyncDataPlus): GraphSync.GraphSyncDataPlus; /** - * Encodes the specified Invoice message. Does not implicitly {@link BI.Invoice.verify|verify} messages. - * @param message Invoice message or plain object to encode + * Encodes the specified GraphSyncDataPlus message. 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 encode(message: BI.IInvoice, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: GraphSync.IGraphSyncDataPlus, 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 + * 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: BI.IInvoice, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: GraphSync.IGraphSyncDataPlus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Invoice message from the specified reader or buffer. + * Decodes a GraphSyncDataPlus message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Invoice + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.Invoice; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncDataPlus; /** - * Decodes an Invoice message from the specified reader or buffer, length delimited. + * Decodes a GraphSyncDataPlus message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Invoice + * @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)): BI.Invoice; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncDataPlus; /** - * Verifies an Invoice message. + * 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 an Invoice message from a plain object. Also converts values to their respective internal types. + * Creates a GraphSyncDataPlus message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Invoice + * @returns GraphSyncDataPlus */ - public static fromObject(object: { [k: string]: any }): BI.Invoice; + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncDataPlus; /** - * Creates a plain object from an Invoice message. Also converts values to other types if specified. - * @param message Invoice + * Creates a plain object from a GraphSyncDataPlus message. Also converts values to other types if specified. + * @param message GraphSyncDataPlus * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.Invoice, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: GraphSync.GraphSyncDataPlus, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Invoice to JSON. + * Converts this GraphSyncDataPlus to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Invoice + * Gets the default type url for GraphSyncDataPlus * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Invoice { - - /** Properties of a Cost. */ - interface ICost { - - /** Cost amount */ - amount?: (number|null); - - /** Cost currency */ - currency?: (BI.Currency|null); - } - - /** Represents a Cost. */ - class Cost implements ICost { - - /** - * Constructs a new Cost. - * @param [properties] Properties to set - */ - constructor(properties?: BI.Invoice.ICost); - - /** Cost amount. */ - public amount: number; - - /** Cost currency. */ - public currency: BI.Currency; - - /** - * Creates a new Cost instance using the specified properties. - * @param [properties] Properties to set - * @returns Cost instance - */ - public static create(properties?: BI.Invoice.ICost): BI.Invoice.Cost; - - /** - * Encodes the specified Cost message. 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 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 - * @param [length] Message length if known beforehand - * @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 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 - * @returns Cost - */ - public static fromObject(object: { [k: string]: any }): BI.Invoice.Cost; - - /** - * Creates a plain object from a Cost message. Also converts values to other types if specified. - * @param message Cost - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: BI.Invoice.Cost, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a GraphSyncQuery. */ + interface IGraphSyncQuery { - /** - * Converts this Cost to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** GraphSyncQuery streamId */ + streamId?: (Uint8Array|null); - /** - * Gets the default type url for Cost - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** GraphSyncQuery origin */ + origin?: (Uint8Array|null); - /** Type enum. */ - enum Type { - UNKNOWN = 0, - NEW = 1, - RENEWAL = 2, - UPGRADE = 3, - RESTORE = 4, - ASSOCIATION = 5, - OVERAGE = 6 - } - } + /** GraphSyncQuery syncPoint */ + syncPoint?: (number|Long|null); - /** Properties of a VaultInvoicesListRequest. */ - interface IVaultInvoicesListRequest { + /** GraphSyncQuery maxCount */ + maxCount?: (number|null); } - /** Represents a VaultInvoicesListRequest. */ - class VaultInvoicesListRequest implements IVaultInvoicesListRequest { + /** Represents a GraphSyncQuery. */ + class GraphSyncQuery implements IGraphSyncQuery { /** - * Constructs a new VaultInvoicesListRequest. + * Constructs a new GraphSyncQuery. * @param [properties] Properties to set */ - constructor(properties?: BI.IVaultInvoicesListRequest); + constructor(properties?: GraphSync.IGraphSyncQuery); + + /** GraphSyncQuery streamId. */ + public streamId: Uint8Array; + + /** GraphSyncQuery origin. */ + public origin: Uint8Array; + + /** GraphSyncQuery syncPoint. */ + public syncPoint: (number|Long); + + /** GraphSyncQuery maxCount. */ + public maxCount: number; /** - * Creates a new VaultInvoicesListRequest instance using the specified properties. + * Creates a new GraphSyncQuery instance using the specified properties. * @param [properties] Properties to set - * @returns VaultInvoicesListRequest instance + * @returns GraphSyncQuery instance */ - public static create(properties?: BI.IVaultInvoicesListRequest): BI.VaultInvoicesListRequest; + public static create(properties?: GraphSync.IGraphSyncQuery): GraphSync.GraphSyncQuery; /** - * Encodes the specified VaultInvoicesListRequest message. Does not implicitly {@link BI.VaultInvoicesListRequest.verify|verify} messages. - * @param message VaultInvoicesListRequest message or plain object to encode + * Encodes the specified GraphSyncQuery message. 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 encode(message: BI.IVaultInvoicesListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: GraphSync.IGraphSyncQuery, 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 + * 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: BI.IVaultInvoicesListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: GraphSync.IGraphSyncQuery, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VaultInvoicesListRequest message from the specified reader or buffer. + * Decodes a GraphSyncQuery message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VaultInvoicesListRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.VaultInvoicesListRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncQuery; /** - * Decodes a VaultInvoicesListRequest message from the specified reader or buffer, length delimited. + * Decodes a GraphSyncQuery message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VaultInvoicesListRequest + * @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)): BI.VaultInvoicesListRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncQuery; /** - * Verifies a VaultInvoicesListRequest message. + * 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 VaultInvoicesListRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GraphSyncQuery message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VaultInvoicesListRequest + * @returns GraphSyncQuery */ - public static fromObject(object: { [k: string]: any }): BI.VaultInvoicesListRequest; + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncQuery; /** - * Creates a plain object from a VaultInvoicesListRequest message. Also converts values to other types if specified. - * @param message VaultInvoicesListRequest + * Creates a plain object from a GraphSyncQuery message. Also converts values to other types if specified. + * @param message GraphSyncQuery * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.VaultInvoicesListRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: GraphSync.GraphSyncQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VaultInvoicesListRequest to JSON. + * Converts this GraphSyncQuery to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VaultInvoicesListRequest + * Gets the default type url for GraphSyncQuery * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VaultInvoicesListResponse. */ - interface IVaultInvoicesListResponse { + /** Properties of a GraphSyncResult. */ + interface IGraphSyncResult { - /** VaultInvoicesListResponse invoices */ - invoices?: (BI.IVaultInvoice[]|null); + /** GraphSyncResult streamId */ + streamId?: (Uint8Array|null); + + /** GraphSyncResult syncPoint */ + syncPoint?: (number|Long|null); + + /** GraphSyncResult data */ + data?: (GraphSync.IGraphSyncDataPlus[]|null); + + /** GraphSyncResult hasMore */ + hasMore?: (boolean|null); } - /** Represents a VaultInvoicesListResponse. */ - class VaultInvoicesListResponse implements IVaultInvoicesListResponse { + /** Represents a GraphSyncResult. */ + class GraphSyncResult implements IGraphSyncResult { /** - * Constructs a new VaultInvoicesListResponse. + * Constructs a new GraphSyncResult. * @param [properties] Properties to set */ - constructor(properties?: BI.IVaultInvoicesListResponse); + constructor(properties?: GraphSync.IGraphSyncResult); - /** VaultInvoicesListResponse invoices. */ - public invoices: BI.IVaultInvoice[]; + /** GraphSyncResult streamId. */ + public streamId: Uint8Array; + + /** GraphSyncResult syncPoint. */ + public syncPoint: (number|Long); + + /** GraphSyncResult data. */ + public data: GraphSync.IGraphSyncDataPlus[]; + + /** GraphSyncResult hasMore. */ + public hasMore: boolean; /** - * Creates a new VaultInvoicesListResponse instance using the specified properties. + * Creates a new GraphSyncResult instance using the specified properties. * @param [properties] Properties to set - * @returns VaultInvoicesListResponse instance + * @returns GraphSyncResult instance */ - public static create(properties?: BI.IVaultInvoicesListResponse): BI.VaultInvoicesListResponse; + public static create(properties?: GraphSync.IGraphSyncResult): GraphSync.GraphSyncResult; /** - * Encodes the specified VaultInvoicesListResponse message. Does not implicitly {@link BI.VaultInvoicesListResponse.verify|verify} messages. - * @param message VaultInvoicesListResponse message or plain object to encode + * Encodes the specified GraphSyncResult message. 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 encode(message: BI.IVaultInvoicesListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: GraphSync.IGraphSyncResult, 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 + * 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: BI.IVaultInvoicesListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: GraphSync.IGraphSyncResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VaultInvoicesListResponse message from the specified reader or buffer. + * Decodes a GraphSyncResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VaultInvoicesListResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.VaultInvoicesListResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncResult; /** - * Decodes a VaultInvoicesListResponse message from the specified reader or buffer, length delimited. + * Decodes a GraphSyncResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VaultInvoicesListResponse + * @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)): BI.VaultInvoicesListResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncResult; /** - * Verifies a VaultInvoicesListResponse message. + * 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 VaultInvoicesListResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GraphSyncResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VaultInvoicesListResponse + * @returns GraphSyncResult */ - public static fromObject(object: { [k: string]: any }): BI.VaultInvoicesListResponse; + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncResult; /** - * Creates a plain object from a VaultInvoicesListResponse message. Also converts values to other types if specified. - * @param message VaultInvoicesListResponse + * Creates a plain object from a GraphSyncResult message. Also converts values to other types if specified. + * @param message GraphSyncResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.VaultInvoicesListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: GraphSync.GraphSyncResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VaultInvoicesListResponse to JSON. + * Converts this GraphSyncResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VaultInvoicesListResponse + * Gets the default type url for GraphSyncResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VaultInvoice. */ - interface IVaultInvoice { - - /** VaultInvoice id */ - id?: (number|null); - - /** VaultInvoice invoiceNumber */ - invoiceNumber?: (string|null); - - /** VaultInvoice dateCreated */ - dateCreated?: (number|Long|null); - - /** VaultInvoice total */ - total?: (BI.Invoice.ICost|null); + /** Properties of a GraphSyncMultiQuery. */ + interface IGraphSyncMultiQuery { - /** VaultInvoice purchaseType */ - purchaseType?: (BI.Invoice.Type|null); + /** GraphSyncMultiQuery queries */ + queries?: (GraphSync.IGraphSyncQuery[]|null); } - /** Represents a VaultInvoice. */ - class VaultInvoice implements IVaultInvoice { + /** Represents a GraphSyncMultiQuery. */ + class GraphSyncMultiQuery implements IGraphSyncMultiQuery { /** - * Constructs a new VaultInvoice. + * Constructs a new GraphSyncMultiQuery. * @param [properties] Properties to set */ - constructor(properties?: BI.IVaultInvoice); - - /** VaultInvoice id. */ - public id: number; - - /** VaultInvoice invoiceNumber. */ - public invoiceNumber: string; - - /** VaultInvoice dateCreated. */ - public dateCreated: (number|Long); - - /** VaultInvoice total. */ - public total?: (BI.Invoice.ICost|null); + constructor(properties?: GraphSync.IGraphSyncMultiQuery); - /** VaultInvoice purchaseType. */ - public purchaseType: BI.Invoice.Type; + /** GraphSyncMultiQuery queries. */ + public queries: GraphSync.IGraphSyncQuery[]; /** - * Creates a new VaultInvoice instance using the specified properties. + * Creates a new GraphSyncMultiQuery instance using the specified properties. * @param [properties] Properties to set - * @returns VaultInvoice instance + * @returns GraphSyncMultiQuery instance */ - public static create(properties?: BI.IVaultInvoice): BI.VaultInvoice; + public static create(properties?: GraphSync.IGraphSyncMultiQuery): GraphSync.GraphSyncMultiQuery; /** - * Encodes the specified VaultInvoice message. Does not implicitly {@link BI.VaultInvoice.verify|verify} messages. - * @param message VaultInvoice message or plain object to encode + * Encodes the specified GraphSyncMultiQuery message. 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 encode(message: BI.IVaultInvoice, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: GraphSync.IGraphSyncMultiQuery, 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 + * 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: BI.IVaultInvoice, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: GraphSync.IGraphSyncMultiQuery, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VaultInvoice message from the specified reader or buffer. + * Decodes a GraphSyncMultiQuery message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VaultInvoice + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.VaultInvoice; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncMultiQuery; /** - * Decodes a VaultInvoice message from the specified reader or buffer, length delimited. + * Decodes a GraphSyncMultiQuery message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VaultInvoice + * @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)): BI.VaultInvoice; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncMultiQuery; /** - * Verifies a VaultInvoice message. + * 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 VaultInvoice message from a plain object. Also converts values to their respective internal types. + * Creates a GraphSyncMultiQuery message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VaultInvoice + * @returns GraphSyncMultiQuery */ - public static fromObject(object: { [k: string]: any }): BI.VaultInvoice; + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncMultiQuery; /** - * Creates a plain object from a VaultInvoice message. Also converts values to other types if specified. - * @param message VaultInvoice + * Creates a plain object from a GraphSyncMultiQuery message. Also converts values to other types if specified. + * @param message GraphSyncMultiQuery * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.VaultInvoice, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: GraphSync.GraphSyncMultiQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VaultInvoice to JSON. + * Converts this GraphSyncMultiQuery to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VaultInvoice + * Gets the default type url for GraphSyncMultiQuery * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an InvoiceDownloadRequest. */ - interface IInvoiceDownloadRequest { + /** Properties of a GraphSyncMultiResult. */ + interface IGraphSyncMultiResult { - /** InvoiceDownloadRequest invoiceNumber */ - invoiceNumber?: (string|null); + /** GraphSyncMultiResult results */ + results?: (GraphSync.IGraphSyncResult[]|null); } - /** Represents an InvoiceDownloadRequest. */ - class InvoiceDownloadRequest implements IInvoiceDownloadRequest { + /** Represents a GraphSyncMultiResult. */ + class GraphSyncMultiResult implements IGraphSyncMultiResult { /** - * Constructs a new InvoiceDownloadRequest. + * Constructs a new GraphSyncMultiResult. * @param [properties] Properties to set */ - constructor(properties?: BI.IInvoiceDownloadRequest); + constructor(properties?: GraphSync.IGraphSyncMultiResult); - /** InvoiceDownloadRequest invoiceNumber. */ - public invoiceNumber: string; + /** GraphSyncMultiResult results. */ + public results: GraphSync.IGraphSyncResult[]; /** - * Creates a new InvoiceDownloadRequest instance using the specified properties. + * Creates a new GraphSyncMultiResult instance using the specified properties. * @param [properties] Properties to set - * @returns InvoiceDownloadRequest instance + * @returns GraphSyncMultiResult instance */ - public static create(properties?: BI.IInvoiceDownloadRequest): BI.InvoiceDownloadRequest; + public static create(properties?: GraphSync.IGraphSyncMultiResult): GraphSync.GraphSyncMultiResult; /** - * Encodes the specified InvoiceDownloadRequest message. Does not implicitly {@link BI.InvoiceDownloadRequest.verify|verify} messages. - * @param message InvoiceDownloadRequest message or plain object to encode + * Encodes the specified GraphSyncMultiResult message. 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 encode(message: BI.IInvoiceDownloadRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: GraphSync.IGraphSyncMultiResult, 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 + * 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: BI.IInvoiceDownloadRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: GraphSync.IGraphSyncMultiResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InvoiceDownloadRequest message from the specified reader or buffer. + * Decodes a GraphSyncMultiResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InvoiceDownloadRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.InvoiceDownloadRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncMultiResult; /** - * Decodes an InvoiceDownloadRequest message from the specified reader or buffer, length delimited. + * Decodes a GraphSyncMultiResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InvoiceDownloadRequest + * @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)): BI.InvoiceDownloadRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncMultiResult; /** - * Verifies an InvoiceDownloadRequest message. + * 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 an InvoiceDownloadRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GraphSyncMultiResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InvoiceDownloadRequest + * @returns GraphSyncMultiResult */ - public static fromObject(object: { [k: string]: any }): BI.InvoiceDownloadRequest; + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncMultiResult; /** - * Creates a plain object from an InvoiceDownloadRequest message. Also converts values to other types if specified. - * @param message InvoiceDownloadRequest + * Creates a plain object from a GraphSyncMultiResult message. Also converts values to other types if specified. + * @param message GraphSyncMultiResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.InvoiceDownloadRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: GraphSync.GraphSyncMultiResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InvoiceDownloadRequest to JSON. + * Converts this GraphSyncMultiResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InvoiceDownloadRequest + * Gets the default type url for GraphSyncMultiResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an InvoiceDownloadResponse. */ - interface IInvoiceDownloadResponse { + /** Properties of a GraphSyncAddDataRequest. */ + interface IGraphSyncAddDataRequest { - /** InvoiceDownloadResponse link */ - link?: (string|null); + /** GraphSyncAddDataRequest origin */ + origin?: (GraphSync.IGraphSyncRef|null); - /** InvoiceDownloadResponse fileName */ - fileName?: (string|null); + /** GraphSyncAddDataRequest data */ + data?: (GraphSync.IGraphSyncData[]|null); } - /** Represents an InvoiceDownloadResponse. */ - class InvoiceDownloadResponse implements IInvoiceDownloadResponse { + /** Represents a GraphSyncAddDataRequest. */ + class GraphSyncAddDataRequest implements IGraphSyncAddDataRequest { /** - * Constructs a new InvoiceDownloadResponse. + * Constructs a new GraphSyncAddDataRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IInvoiceDownloadResponse); + constructor(properties?: GraphSync.IGraphSyncAddDataRequest); - /** InvoiceDownloadResponse link. */ - public link: string; + /** GraphSyncAddDataRequest origin. */ + public origin?: (GraphSync.IGraphSyncRef|null); - /** InvoiceDownloadResponse fileName. */ - public fileName: string; + /** GraphSyncAddDataRequest data. */ + public data: GraphSync.IGraphSyncData[]; /** - * Creates a new InvoiceDownloadResponse instance using the specified properties. + * Creates a new GraphSyncAddDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns InvoiceDownloadResponse instance + * @returns GraphSyncAddDataRequest instance */ - public static create(properties?: BI.IInvoiceDownloadResponse): BI.InvoiceDownloadResponse; + public static create(properties?: GraphSync.IGraphSyncAddDataRequest): GraphSync.GraphSyncAddDataRequest; /** - * Encodes the specified InvoiceDownloadResponse message. Does not implicitly {@link BI.InvoiceDownloadResponse.verify|verify} messages. - * @param message InvoiceDownloadResponse message or plain object to encode + * Encodes the specified GraphSyncAddDataRequest message. 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 encode(message: BI.IInvoiceDownloadResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: GraphSync.IGraphSyncAddDataRequest, 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 + * 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: BI.IInvoiceDownloadResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: GraphSync.IGraphSyncAddDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InvoiceDownloadResponse message from the specified reader or buffer. + * Decodes a GraphSyncAddDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InvoiceDownloadResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.InvoiceDownloadResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncAddDataRequest; /** - * Decodes an InvoiceDownloadResponse message from the specified reader or buffer, length delimited. + * Decodes a GraphSyncAddDataRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InvoiceDownloadResponse + * @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)): BI.InvoiceDownloadResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncAddDataRequest; /** - * Verifies an InvoiceDownloadResponse message. + * 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 an InvoiceDownloadResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GraphSyncAddDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InvoiceDownloadResponse + * @returns GraphSyncAddDataRequest */ - public static fromObject(object: { [k: string]: any }): BI.InvoiceDownloadResponse; + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncAddDataRequest; /** - * Creates a plain object from an InvoiceDownloadResponse message. Also converts values to other types if specified. - * @param message InvoiceDownloadResponse + * Creates a plain object from a GraphSyncAddDataRequest message. Also converts values to other types if specified. + * @param message GraphSyncAddDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.InvoiceDownloadResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: GraphSync.GraphSyncAddDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InvoiceDownloadResponse to JSON. + * Converts this GraphSyncAddDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InvoiceDownloadResponse + * Gets the default type url for GraphSyncAddDataRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VaultInvoiceDownloadLinkRequest. */ - interface IVaultInvoiceDownloadLinkRequest { + /** Properties of a GraphSyncLeafsQuery. */ + interface IGraphSyncLeafsQuery { - /** VaultInvoiceDownloadLinkRequest invoiceNumber */ - invoiceNumber?: (string|null); + /** GraphSyncLeafsQuery vertices */ + vertices?: (Uint8Array[]|null); } - /** Represents a VaultInvoiceDownloadLinkRequest. */ - class VaultInvoiceDownloadLinkRequest implements IVaultInvoiceDownloadLinkRequest { + /** Represents a GraphSyncLeafsQuery. */ + class GraphSyncLeafsQuery implements IGraphSyncLeafsQuery { /** - * Constructs a new VaultInvoiceDownloadLinkRequest. + * Constructs a new GraphSyncLeafsQuery. * @param [properties] Properties to set */ - constructor(properties?: BI.IVaultInvoiceDownloadLinkRequest); + constructor(properties?: GraphSync.IGraphSyncLeafsQuery); - /** VaultInvoiceDownloadLinkRequest invoiceNumber. */ - public invoiceNumber: string; + /** GraphSyncLeafsQuery vertices. */ + public vertices: Uint8Array[]; /** - * Creates a new VaultInvoiceDownloadLinkRequest instance using the specified properties. + * Creates a new GraphSyncLeafsQuery instance using the specified properties. * @param [properties] Properties to set - * @returns VaultInvoiceDownloadLinkRequest instance + * @returns GraphSyncLeafsQuery instance */ - public static create(properties?: BI.IVaultInvoiceDownloadLinkRequest): BI.VaultInvoiceDownloadLinkRequest; + public static create(properties?: GraphSync.IGraphSyncLeafsQuery): GraphSync.GraphSyncLeafsQuery; /** - * Encodes the specified VaultInvoiceDownloadLinkRequest message. Does not implicitly {@link BI.VaultInvoiceDownloadLinkRequest.verify|verify} messages. - * @param message VaultInvoiceDownloadLinkRequest message or plain object to encode + * Encodes the specified GraphSyncLeafsQuery message. 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 encode(message: BI.IVaultInvoiceDownloadLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: GraphSync.IGraphSyncLeafsQuery, 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 + * 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: BI.IVaultInvoiceDownloadLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: GraphSync.IGraphSyncLeafsQuery, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VaultInvoiceDownloadLinkRequest message from the specified reader or buffer. + * Decodes a GraphSyncLeafsQuery message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VaultInvoiceDownloadLinkRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.VaultInvoiceDownloadLinkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncLeafsQuery; /** - * Decodes a VaultInvoiceDownloadLinkRequest message from the specified reader or buffer, length delimited. + * Decodes a GraphSyncLeafsQuery message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VaultInvoiceDownloadLinkRequest + * @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)): BI.VaultInvoiceDownloadLinkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncLeafsQuery; /** - * Verifies a VaultInvoiceDownloadLinkRequest message. + * 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 VaultInvoiceDownloadLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GraphSyncLeafsQuery message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VaultInvoiceDownloadLinkRequest + * @returns GraphSyncLeafsQuery */ - public static fromObject(object: { [k: string]: any }): BI.VaultInvoiceDownloadLinkRequest; + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncLeafsQuery; /** - * Creates a plain object from a VaultInvoiceDownloadLinkRequest message. Also converts values to other types if specified. - * @param message VaultInvoiceDownloadLinkRequest + * Creates a plain object from a GraphSyncLeafsQuery message. Also converts values to other types if specified. + * @param message GraphSyncLeafsQuery * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.VaultInvoiceDownloadLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: GraphSync.GraphSyncLeafsQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VaultInvoiceDownloadLinkRequest to JSON. + * Converts this GraphSyncLeafsQuery to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VaultInvoiceDownloadLinkRequest + * Gets the default type url for GraphSyncLeafsQuery * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VaultInvoiceDownloadLinkResponse. */ - interface IVaultInvoiceDownloadLinkResponse { - - /** VaultInvoiceDownloadLinkResponse link */ - link?: (string|null); + /** Properties of a GraphSyncRefsResult. */ + interface IGraphSyncRefsResult { - /** VaultInvoiceDownloadLinkResponse fileName */ - fileName?: (string|null); + /** GraphSyncRefsResult refs */ + refs?: (GraphSync.IGraphSyncRef[]|null); } - /** Represents a VaultInvoiceDownloadLinkResponse. */ - class VaultInvoiceDownloadLinkResponse implements IVaultInvoiceDownloadLinkResponse { + /** Represents a GraphSyncRefsResult. */ + class GraphSyncRefsResult implements IGraphSyncRefsResult { /** - * Constructs a new VaultInvoiceDownloadLinkResponse. + * Constructs a new GraphSyncRefsResult. * @param [properties] Properties to set */ - constructor(properties?: BI.IVaultInvoiceDownloadLinkResponse); - - /** VaultInvoiceDownloadLinkResponse link. */ - public link: string; + constructor(properties?: GraphSync.IGraphSyncRefsResult); - /** VaultInvoiceDownloadLinkResponse fileName. */ - public fileName: string; + /** GraphSyncRefsResult refs. */ + public refs: GraphSync.IGraphSyncRef[]; /** - * Creates a new VaultInvoiceDownloadLinkResponse instance using the specified properties. + * Creates a new GraphSyncRefsResult instance using the specified properties. * @param [properties] Properties to set - * @returns VaultInvoiceDownloadLinkResponse instance + * @returns GraphSyncRefsResult instance */ - public static create(properties?: BI.IVaultInvoiceDownloadLinkResponse): BI.VaultInvoiceDownloadLinkResponse; + public static create(properties?: GraphSync.IGraphSyncRefsResult): GraphSync.GraphSyncRefsResult; /** - * Encodes the specified VaultInvoiceDownloadLinkResponse message. Does not implicitly {@link BI.VaultInvoiceDownloadLinkResponse.verify|verify} messages. - * @param message VaultInvoiceDownloadLinkResponse message or plain object to encode + * Encodes the specified GraphSyncRefsResult message. 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 encode(message: BI.IVaultInvoiceDownloadLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: GraphSync.IGraphSyncRefsResult, 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 + * 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: BI.IVaultInvoiceDownloadLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: GraphSync.IGraphSyncRefsResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VaultInvoiceDownloadLinkResponse message from the specified reader or buffer. + * Decodes a GraphSyncRefsResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VaultInvoiceDownloadLinkResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.VaultInvoiceDownloadLinkResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncRefsResult; /** - * Decodes a VaultInvoiceDownloadLinkResponse message from the specified reader or buffer, length delimited. + * Decodes a GraphSyncRefsResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VaultInvoiceDownloadLinkResponse + * @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)): BI.VaultInvoiceDownloadLinkResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncRefsResult; /** - * Verifies a VaultInvoiceDownloadLinkResponse message. + * 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 VaultInvoiceDownloadLinkResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GraphSyncRefsResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VaultInvoiceDownloadLinkResponse + * @returns GraphSyncRefsResult */ - public static fromObject(object: { [k: string]: any }): BI.VaultInvoiceDownloadLinkResponse; + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncRefsResult; /** - * Creates a plain object from a VaultInvoiceDownloadLinkResponse message. Also converts values to other types if specified. - * @param message VaultInvoiceDownloadLinkResponse + * Creates a plain object from a GraphSyncRefsResult message. Also converts values to other types if specified. + * @param message GraphSyncRefsResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.VaultInvoiceDownloadLinkResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: GraphSync.GraphSyncRefsResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VaultInvoiceDownloadLinkResponse to JSON. + * Converts this GraphSyncRefsResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VaultInvoiceDownloadLinkResponse + * Gets the default type url for GraphSyncRefsResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } +} - /** Properties of a ReportingDailySnapshotRequest. */ - interface IReportingDailySnapshotRequest { +/** Namespace Dag. */ +export namespace Dag { - /** ReportingDailySnapshotRequest month */ - month?: (number|null); + /** RefType enum. */ + enum RefType { + GENERAL = 0, + USER = 1, + DEVICE = 2, + REC = 3, + FOLDER = 4, + TEAM = 5, + ENTERPRISE = 6, + PAM_DIRECTORY = 7, + PAM_MACHINE = 8, + PAM_USER = 9 + } + + /** DataType enum. */ + enum DataType { + DATA = 0, + KEY = 1, + LINK = 2, + ACL = 3, + DELETION = 4, + DENIAL = 5, + UNDENIAL = 6 + } - /** ReportingDailySnapshotRequest year */ - year?: (number|null); + /** Properties of a Ref. */ + interface IRef { + + /** Ref type */ + type?: (Dag.RefType|null); + + /** Ref value */ + value?: (Uint8Array|null); + + /** Ref name */ + name?: (string|null); } - /** Represents a ReportingDailySnapshotRequest. */ - class ReportingDailySnapshotRequest implements IReportingDailySnapshotRequest { + /** Represents a Ref. */ + class Ref implements IRef { /** - * Constructs a new ReportingDailySnapshotRequest. + * Constructs a new Ref. * @param [properties] Properties to set */ - constructor(properties?: BI.IReportingDailySnapshotRequest); + constructor(properties?: Dag.IRef); - /** ReportingDailySnapshotRequest month. */ - public month: number; + /** Ref type. */ + public type: Dag.RefType; - /** ReportingDailySnapshotRequest year. */ - public year: number; + /** Ref value. */ + public value: Uint8Array; + + /** Ref name. */ + public name: string; /** - * Creates a new ReportingDailySnapshotRequest instance using the specified properties. + * Creates a new Ref instance using the specified properties. * @param [properties] Properties to set - * @returns ReportingDailySnapshotRequest instance + * @returns Ref instance */ - public static create(properties?: BI.IReportingDailySnapshotRequest): BI.ReportingDailySnapshotRequest; + public static create(properties?: Dag.IRef): Dag.Ref; /** - * Encodes the specified ReportingDailySnapshotRequest message. Does not implicitly {@link BI.ReportingDailySnapshotRequest.verify|verify} messages. - * @param message ReportingDailySnapshotRequest message or plain object to encode + * Encodes the specified Ref message. 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 encode(message: BI.IReportingDailySnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Dag.IRef, 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 + * 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: BI.IReportingDailySnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Dag.IRef, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReportingDailySnapshotRequest message from the specified reader or buffer. + * Decodes a Ref message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReportingDailySnapshotRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.ReportingDailySnapshotRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Dag.Ref; /** - * Decodes a ReportingDailySnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a Ref message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReportingDailySnapshotRequest + * @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)): BI.ReportingDailySnapshotRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Dag.Ref; /** - * Verifies a ReportingDailySnapshotRequest message. + * 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 ReportingDailySnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Ref message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReportingDailySnapshotRequest + * @returns Ref */ - public static fromObject(object: { [k: string]: any }): BI.ReportingDailySnapshotRequest; + public static fromObject(object: { [k: string]: any }): Dag.Ref; /** - * Creates a plain object from a ReportingDailySnapshotRequest message. Also converts values to other types if specified. - * @param message ReportingDailySnapshotRequest + * Creates a plain object from a Ref message. Also converts values to other types if specified. + * @param message Ref * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.ReportingDailySnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Dag.Ref, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReportingDailySnapshotRequest to JSON. + * Converts this Ref to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReportingDailySnapshotRequest + * Gets the default type url for Ref * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReportingDailySnapshotResponse. */ - interface IReportingDailySnapshotResponse { + /** Properties of a Data. */ + interface IData { - /** ReportingDailySnapshotResponse records */ - records?: (BI.ISnapshotRecord[]|null); + /** Data dataType */ + dataType?: (Dag.DataType|null); - /** ReportingDailySnapshotResponse mcEnterprises */ - mcEnterprises?: (BI.ISnapshotMcEnterprise[]|null); + /** Data ref */ + ref?: (Dag.IRef|null); + + /** Data parentRef */ + parentRef?: (Dag.IRef|null); + + /** Data content */ + content?: (Uint8Array|null); + + /** Data path */ + path?: (string|null); } - /** Represents a ReportingDailySnapshotResponse. */ - class ReportingDailySnapshotResponse implements IReportingDailySnapshotResponse { + /** Represents a Data. */ + class Data implements IData { /** - * Constructs a new ReportingDailySnapshotResponse. + * Constructs a new Data. * @param [properties] Properties to set */ - constructor(properties?: BI.IReportingDailySnapshotResponse); + constructor(properties?: Dag.IData); - /** ReportingDailySnapshotResponse records. */ - public records: BI.ISnapshotRecord[]; + /** Data dataType. */ + public dataType: Dag.DataType; - /** ReportingDailySnapshotResponse mcEnterprises. */ - public mcEnterprises: BI.ISnapshotMcEnterprise[]; + /** Data ref. */ + public ref?: (Dag.IRef|null); + + /** Data parentRef. */ + public parentRef?: (Dag.IRef|null); + + /** Data content. */ + public content: Uint8Array; + + /** Data path. */ + public path: string; /** - * Creates a new ReportingDailySnapshotResponse instance using the specified properties. + * Creates a new Data instance using the specified properties. * @param [properties] Properties to set - * @returns ReportingDailySnapshotResponse instance + * @returns Data instance */ - public static create(properties?: BI.IReportingDailySnapshotResponse): BI.ReportingDailySnapshotResponse; + public static create(properties?: Dag.IData): Dag.Data; /** - * Encodes the specified ReportingDailySnapshotResponse message. Does not implicitly {@link BI.ReportingDailySnapshotResponse.verify|verify} messages. - * @param message ReportingDailySnapshotResponse message or plain object to encode + * Encodes the specified Data message. 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 encode(message: BI.IReportingDailySnapshotResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Dag.IData, 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 + * 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: BI.IReportingDailySnapshotResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Dag.IData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReportingDailySnapshotResponse message from the specified reader or buffer. + * Decodes a Data message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReportingDailySnapshotResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.ReportingDailySnapshotResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Dag.Data; /** - * Decodes a ReportingDailySnapshotResponse message from the specified reader or buffer, length delimited. + * Decodes a Data message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReportingDailySnapshotResponse + * @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)): BI.ReportingDailySnapshotResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Dag.Data; /** - * Verifies a ReportingDailySnapshotResponse message. + * 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 ReportingDailySnapshotResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Data message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReportingDailySnapshotResponse + * @returns Data */ - public static fromObject(object: { [k: string]: any }): BI.ReportingDailySnapshotResponse; + public static fromObject(object: { [k: string]: any }): Dag.Data; /** - * Creates a plain object from a ReportingDailySnapshotResponse message. Also converts values to other types if specified. - * @param message ReportingDailySnapshotResponse + * Creates a plain object from a Data message. Also converts values to other types if specified. + * @param message Data * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.ReportingDailySnapshotResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Dag.Data, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReportingDailySnapshotResponse to JSON. + * Converts this Data to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReportingDailySnapshotResponse + * Gets the default type url for Data * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SnapshotRecord. */ - interface ISnapshotRecord { + /** Properties of a SyncData. */ + interface ISyncData { - /** SnapshotRecord date */ - date?: (number|Long|null); + /** SyncData data */ + data?: (Dag.IData[]|null); - /** SnapshotRecord mcEnterpriseId */ - mcEnterpriseId?: (number|null); + /** SyncData syncPoint */ + syncPoint?: (number|Long|null); - /** SnapshotRecord maxLicenseCount */ - maxLicenseCount?: (number|null); + /** SyncData hasMore */ + hasMore?: (boolean|null); + } - /** SnapshotRecord maxFilePlanTypeId */ - maxFilePlanTypeId?: (number|null); + /** Represents a SyncData. */ + class SyncData implements ISyncData { - /** SnapshotRecord maxBasePlanId */ - maxBasePlanId?: (number|null); + /** + * Constructs a new SyncData. + * @param [properties] Properties to set + */ + constructor(properties?: Dag.ISyncData); - /** SnapshotRecord addons */ - addons?: (BI.SnapshotRecord.IAddon[]|null); + /** SyncData data. */ + public data: Dag.IData[]; + + /** SyncData syncPoint. */ + public syncPoint: (number|Long); + + /** SyncData hasMore. */ + public hasMore: boolean; + + /** + * Creates a new SyncData instance using the specified properties. + * @param [properties] Properties to set + * @returns SyncData instance + */ + public static create(properties?: Dag.ISyncData): Dag.SyncData; + + /** + * Encodes the specified SyncData message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns SyncData + */ + public static fromObject(object: { [k: string]: any }): Dag.SyncData; + + /** + * Creates a plain object from a SyncData message. Also converts values to other types if specified. + * @param message SyncData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: Dag.SyncData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SyncData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SyncData + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a SnapshotRecord. */ - class SnapshotRecord implements ISnapshotRecord { + /** Properties of a DebugData. */ + interface IDebugData { + + /** DebugData dataType */ + dataType?: (string|null); + + /** DebugData path */ + path?: (string|null); + + /** DebugData ref */ + ref?: (Dag.IDebugRefInfo|null); + + /** DebugData parentRef */ + parentRef?: (Dag.IDebugRefInfo|null); + } + + /** Represents a DebugData. */ + class DebugData implements IDebugData { /** - * Constructs a new SnapshotRecord. + * Constructs a new DebugData. * @param [properties] Properties to set */ - constructor(properties?: BI.ISnapshotRecord); + constructor(properties?: Dag.IDebugData); - /** SnapshotRecord date. */ - public date: (number|Long); + /** DebugData dataType. */ + public dataType: string; - /** SnapshotRecord mcEnterpriseId. */ - public mcEnterpriseId: number; + /** DebugData path. */ + public path: string; - /** SnapshotRecord maxLicenseCount. */ - public maxLicenseCount: number; + /** DebugData ref. */ + public ref?: (Dag.IDebugRefInfo|null); - /** SnapshotRecord maxFilePlanTypeId. */ - public maxFilePlanTypeId: number; + /** DebugData parentRef. */ + public parentRef?: (Dag.IDebugRefInfo|null); - /** SnapshotRecord maxBasePlanId. */ - public maxBasePlanId: number; + /** + * Creates a new DebugData instance using the specified properties. + * @param [properties] Properties to set + * @returns DebugData instance + */ + public static create(properties?: Dag.IDebugData): Dag.DebugData; - /** SnapshotRecord addons. */ - public addons: BI.SnapshotRecord.IAddon[]; + /** + * Encodes the specified DebugData message. 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 encode(message: Dag.IDebugData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Creates a new SnapshotRecord instance using the specified properties. + * 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns DebugData + */ + public static fromObject(object: { [k: string]: any }): Dag.DebugData; + + /** + * Creates a plain object from a DebugData message. Also converts values to other types if specified. + * @param message DebugData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: Dag.DebugData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DebugData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DebugData + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DebugRefInfo. */ + interface IDebugRefInfo { + + /** DebugRefInfo refType */ + refType?: (string|null); + + /** DebugRefInfo value */ + value?: (Uint8Array|null); + } + + /** Represents a DebugRefInfo. */ + class DebugRefInfo implements IDebugRefInfo { + + /** + * Constructs a new DebugRefInfo. * @param [properties] Properties to set - * @returns SnapshotRecord instance */ - public static create(properties?: BI.ISnapshotRecord): BI.SnapshotRecord; + constructor(properties?: Dag.IDebugRefInfo); + + /** DebugRefInfo refType. */ + public refType: string; + + /** DebugRefInfo value. */ + public value: Uint8Array; /** - * Encodes the specified SnapshotRecord message. Does not implicitly {@link BI.SnapshotRecord.verify|verify} messages. - * @param message SnapshotRecord message or plain object to encode + * Creates a new DebugRefInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns DebugRefInfo instance + */ + public static create(properties?: Dag.IDebugRefInfo): Dag.DebugRefInfo; + + /** + * Encodes the specified DebugRefInfo message. 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 encode(message: BI.ISnapshotRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Dag.IDebugRefInfo, 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 + * 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: BI.ISnapshotRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Dag.IDebugRefInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SnapshotRecord message from the specified reader or buffer. + * Decodes a DebugRefInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SnapshotRecord + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SnapshotRecord; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Dag.DebugRefInfo; /** - * Decodes a SnapshotRecord message from the specified reader or buffer, length delimited. + * Decodes a DebugRefInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SnapshotRecord + * @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)): BI.SnapshotRecord; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Dag.DebugRefInfo; /** - * Verifies a SnapshotRecord message. + * 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 SnapshotRecord message from a plain object. Also converts values to their respective internal types. + * Creates a DebugRefInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SnapshotRecord + * @returns DebugRefInfo */ - public static fromObject(object: { [k: string]: any }): BI.SnapshotRecord; + public static fromObject(object: { [k: string]: any }): Dag.DebugRefInfo; /** - * Creates a plain object from a SnapshotRecord message. Also converts values to other types if specified. - * @param message SnapshotRecord + * Creates a plain object from a DebugRefInfo message. Also converts values to other types if specified. + * @param message DebugRefInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SnapshotRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Dag.DebugRefInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SnapshotRecord to JSON. + * Converts this DebugRefInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SnapshotRecord + * Gets the default type url for DebugRefInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } +} - namespace SnapshotRecord { +/** Namespace record. */ +export namespace record { + + /** Namespace v3. */ + namespace v3 { + + /** Namespace sharing. */ + namespace sharing { + + /** Represents a RecordSharingService */ + class RecordSharingService extends $protobuf.rpc.Service { + + /** + * Constructs a new RecordSharingService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new RecordSharingService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RecordSharingService; + + /** + * Manage direct sharing of records: grant, update and revoke user access to + * records in the same request + * @param request Request message or plain object + * @param callback Node-style callback called with the error, if any, and Response + */ + public shareRecord(request: record.v3.sharing.IRequest, callback: record.v3.sharing.RecordSharingService.ShareRecordCallback): void; + + /** + * Manage direct sharing of records: grant, update and revoke user access to + * records in the same request + * @param request Request message or plain object + * @returns Promise + */ + public shareRecord(request: record.v3.sharing.IRequest): Promise; + } + + namespace RecordSharingService { + + /** + * Callback as used by {@link record.v3.sharing.RecordSharingService#shareRecord}. + * @param error Error, if any + * @param [response] Response + */ + type ShareRecordCallback = (error: (Error|null), response?: record.v3.sharing.Response) => void; + } + + /** Properties of a Request. */ + interface IRequest { + + /** + * add new permissions to a list of existing records + * corresponds to creating new records shares, directly with "someone", whether a team or a specific user + */ + createSharingPermissions?: (record.v3.sharing.IPermissions[]|null); + + /** update existing permissions of a list of existing records shared with a team or a user */ + updateSharingPermissions?: (record.v3.sharing.IPermissions[]|null); + + /** + * remove all sharing permissions from existing records + * specified records that were previously shared with "someone" (user or team) directly will be "unshared" + */ + revokeSharingPermissions?: (record.v3.sharing.IPermissions[]|null); + + /** A string that is sent back in the push notification to identify the user who initiated the push (device id) */ + echo?: (string|null); + } - /** Properties of an Addon. */ - interface IAddon { + /** + * Represents a request encapsulating new, updated and deleted record sharing permissions. + * References: + * https://keeper.atlassian.net/wiki/spaces/FEAT/pages/1540653191/Shared+Subfolder+Permissions+aka+best+project+ever + * https://keeper.atlassian.net/wiki/spaces/KA/pages/2520711174/records_share_update+v3 + */ + class Request implements IRequest { + + /** + * Constructs a new Request. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.sharing.IRequest); + + /** + * add new permissions to a list of existing records + * corresponds to creating new records shares, directly with "someone", whether a team or a specific user + */ + public createSharingPermissions: record.v3.sharing.IPermissions[]; + + /** update existing permissions of a list of existing records shared with a team or a user */ + public updateSharingPermissions: record.v3.sharing.IPermissions[]; + + /** + * remove all sharing permissions from existing records + * specified records that were previously shared with "someone" (user or team) directly will be "unshared" + */ + public revokeSharingPermissions: record.v3.sharing.IPermissions[]; + + /** A string that is sent back in the push notification to identify the user who initiated the push (device id) */ + public echo: string; + + /** + * Creates a new Request instance using the specified properties. + * @param [properties] Properties to set + * @returns Request instance + */ + public static create(properties?: record.v3.sharing.IRequest): record.v3.sharing.Request; + + /** + * Encodes the specified Request message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns Request + */ + public static fromObject(object: { [k: string]: any }): record.v3.sharing.Request; + + /** + * Creates a plain object from a Request message. Also converts values to other types if specified. + * @param message Request + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.sharing.Request, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Request to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Request + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Permissions. */ + interface IPermissions { + + /** The uid of the recipient the record is shared with. Must be either a team uid or a user uid. */ + recipientUid?: (Uint8Array|null); + + /** Identifier of the record being shared or whose sharing permissions are being updated/removed */ + recordUid?: (Uint8Array|null); + + /** The record key encrypted with the recipient's public key (see. @username) */ + recordKey?: (Uint8Array|null); + + /** Use ECIES algorithm instead of RSA to share to the recipient's public ECC key (see. @username) */ + useEccKey?: (boolean|null); + + /** + * The set of record permissions granted to the recipient (@username). + * Permissions apply in the context of the specified folder. + */ + rules?: (Folder.IRecordAccessData|null); + } + + /** Represents a Permissions. */ + class Permissions implements IPermissions { + + /** + * Constructs a new Permissions. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.sharing.IPermissions); + + /** The uid of the recipient the record is shared with. Must be either a team uid or a user uid. */ + public recipientUid: Uint8Array; + + /** Identifier of the record being shared or whose sharing permissions are being updated/removed */ + public recordUid: Uint8Array; + + /** The record key encrypted with the recipient's public key (see. @username) */ + public recordKey: Uint8Array; + + /** Use ECIES algorithm instead of RSA to share to the recipient's public ECC key (see. @username) */ + public useEccKey: boolean; + + /** + * The set of record permissions granted to the recipient (@username). + * Permissions apply in the context of the specified folder. + */ + public rules?: (Folder.IRecordAccessData|null); + + /** + * Creates a new Permissions instance using the specified properties. + * @param [properties] Properties to set + * @returns Permissions instance + */ + public static create(properties?: record.v3.sharing.IPermissions): record.v3.sharing.Permissions; + + /** + * Encodes the specified Permissions message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns Permissions + */ + public static fromObject(object: { [k: string]: any }): record.v3.sharing.Permissions; + + /** + * Creates a plain object from a Permissions message. Also converts values to other types if specified. + * @param message Permissions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.sharing.Permissions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Permissions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Permissions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Response. */ + interface IResponse { + + /** The list of the respective sharing status of the newly shared records */ + createdSharingStatus?: (record.v3.sharing.IStatus[]|null); + + /** The list of the respective sharing status of the updated shared records */ + updatedSharingStatus?: (record.v3.sharing.IStatus[]|null); + + /** The list of the respective sharing status of records that have been "unshared" */ + revokedSharingStatus?: (record.v3.sharing.IStatus[]|null); + } + + /** Represents a Response. */ + class Response implements IResponse { + + /** + * Constructs a new Response. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.sharing.IResponse); + + /** The list of the respective sharing status of the newly shared records */ + public createdSharingStatus: record.v3.sharing.IStatus[]; + + /** The list of the respective sharing status of the updated shared records */ + public updatedSharingStatus: record.v3.sharing.IStatus[]; + + /** The list of the respective sharing status of records that have been "unshared" */ + public revokedSharingStatus: record.v3.sharing.IStatus[]; + + /** + * Creates a new Response instance using the specified properties. + * @param [properties] Properties to set + * @returns Response instance + */ + public static create(properties?: record.v3.sharing.IResponse): record.v3.sharing.Response; + + /** + * Encodes the specified Response message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns Response + */ + public static fromObject(object: { [k: string]: any }): record.v3.sharing.Response; + + /** + * Creates a plain object from a Response message. Also converts values to other types if specified. + * @param message Response + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.sharing.Response, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Response to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Response + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Status. */ + interface IStatus { + + /** Identifier of the record being shared or whose sharing permissions are being updated/removed */ + recordUid?: (Uint8Array|null); + + /** Status of the request (success or error) */ + status?: (record.v3.sharing.SharingStatus|null); + + /** Translatable, human-readable message */ + message?: (string|null); + + /** XOR(userUid, teamUid); the recipient the record was shared with */ + recipientUid?: (Uint8Array|null); + } + + /** Represents a Status. */ + class Status implements IStatus { + + /** + * Constructs a new Status. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.sharing.IStatus); + + /** Identifier of the record being shared or whose sharing permissions are being updated/removed */ + public recordUid: Uint8Array; + + /** Status of the request (success or error) */ + public status: record.v3.sharing.SharingStatus; + + /** Translatable, human-readable message */ + public message: string; + + /** XOR(userUid, teamUid); the recipient the record was shared with */ + public recipientUid: Uint8Array; + + /** + * Creates a new Status instance using the specified properties. + * @param [properties] Properties to set + * @returns Status instance + */ + public static create(properties?: record.v3.sharing.IStatus): record.v3.sharing.Status; + + /** + * Encodes the specified Status message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns Status + */ + public static fromObject(object: { [k: string]: any }): record.v3.sharing.Status; + + /** + * Creates a plain object from a Status message. Also converts values to other types if specified. + * @param message Status + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.sharing.Status, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Status to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Status + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** SharingStatus enum. */ + enum SharingStatus { + SUCCESS = 0, + PENDING_ACCEPT = 1, + USER_NOT_FOUND = 2, + ALREADY_SHARED = 3, + NOT_ALLOWED_TO_SHARE = 4, + ACCESS_DENIED = 5, + NOT_ALLOWED_TO_SET_PERMISSIONS = 6 + } + + /** Properties of a RevokedAccess. */ + interface IRevokedAccess { + + /** the uid of the record whose access have been revoked */ + recordUid?: (Uint8Array|null); + + /** the uid of actor whose access has been revoked. represents a User (an account) */ + actorUid?: (Uint8Array|null); + } + + /** Represents a RevokedAccess. */ + class RevokedAccess implements IRevokedAccess { + + /** + * Constructs a new RevokedAccess. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.sharing.IRevokedAccess); + + /** the uid of the record whose access have been revoked */ + public recordUid: Uint8Array; + + /** the uid of actor whose access has been revoked. represents a User (an account) */ + public actorUid: Uint8Array; + + /** + * Creates a new RevokedAccess instance using the specified properties. + * @param [properties] Properties to set + * @returns RevokedAccess instance + */ + public static create(properties?: record.v3.sharing.IRevokedAccess): record.v3.sharing.RevokedAccess; + + /** + * Encodes the specified RevokedAccess message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns RevokedAccess + */ + public static fromObject(object: { [k: string]: any }): record.v3.sharing.RevokedAccess; + + /** + * Creates a plain object from a RevokedAccess message. Also converts values to other types if specified. + * @param message RevokedAccess + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.sharing.RevokedAccess, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RevokedAccess to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RevokedAccess + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RecordSharingState. */ + interface IRecordSharingState { + + /** The UID of the record this sharing state relates to. */ + recordUid?: (Uint8Array|null); + + /** True if the record is directly shared with non-owner actors. */ + isDirectlyShared?: (boolean|null); + + /** True if the record is indirectly shared via folder access with non-owner actors. */ + isIndirectlyShared?: (boolean|null); + + /** Synthetic convenience property: {@code isDirectlyShared || isIndirectlyShared}. */ + isShared?: (boolean|null); + } - /** Addon maxAddonId */ - maxAddonId?: (number|null); + /** + * Represents the sharing state of a single record. + * + *

This message captures whether a record is shared either directly (via explicit grants) + * or indirectly (via folder access). It includes a computed convenience field + * {@code isShared}, which is true if the record is shared through either mechanism. + * + *

This message is typically stored in a DAG edge and used by clients during sync + */ + class RecordSharingState implements IRecordSharingState { + + /** + * Constructs a new RecordSharingState. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.sharing.IRecordSharingState); + + /** The UID of the record this sharing state relates to. */ + public recordUid: Uint8Array; + + /** True if the record is directly shared with non-owner actors. */ + public isDirectlyShared: boolean; + + /** True if the record is indirectly shared via folder access with non-owner actors. */ + public isIndirectlyShared: boolean; + + /** Synthetic convenience property: {@code isDirectlyShared || isIndirectlyShared}. */ + public isShared: boolean; + + /** + * Creates a new RecordSharingState instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordSharingState instance + */ + public static create(properties?: record.v3.sharing.IRecordSharingState): record.v3.sharing.RecordSharingState; + + /** + * Encodes the specified RecordSharingState message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns RecordSharingState + */ + public static fromObject(object: { [k: string]: any }): record.v3.sharing.RecordSharingState; + + /** + * Creates a plain object from a RecordSharingState message. Also converts values to other types if specified. + * @param message RecordSharingState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.sharing.RecordSharingState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecordSharingState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecordSharingState + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** Addon units */ - units?: (number|Long|null); + /** Properties of a RecordsAddRequest. */ + interface IRecordsAddRequest { + + /** RecordsAddRequest records */ + records?: (record.v3.IRecordAdd[]|null); + + /** RecordsAddRequest clientTime */ + clientTime?: (number|Long|null); + + /** RecordsAddRequest securityDataKeyType */ + securityDataKeyType?: (Records.RecordKeyType|null); } - /** Represents an Addon. */ - class Addon implements IAddon { + /** Represents a RecordsAddRequest. */ + class RecordsAddRequest implements IRecordsAddRequest { /** - * Constructs a new Addon. + * Constructs a new RecordsAddRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.SnapshotRecord.IAddon); + constructor(properties?: record.v3.IRecordsAddRequest); - /** Addon maxAddonId. */ - public maxAddonId: number; + /** RecordsAddRequest records. */ + public records: record.v3.IRecordAdd[]; - /** Addon units. */ - public units: (number|Long); + /** RecordsAddRequest clientTime. */ + public clientTime: (number|Long); + + /** RecordsAddRequest securityDataKeyType. */ + public securityDataKeyType: Records.RecordKeyType; /** - * Creates a new Addon instance using the specified properties. + * Creates a new RecordsAddRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Addon instance + * @returns RecordsAddRequest instance */ - public static create(properties?: BI.SnapshotRecord.IAddon): BI.SnapshotRecord.Addon; + public static create(properties?: record.v3.IRecordsAddRequest): record.v3.RecordsAddRequest; /** - * Encodes the specified Addon message. Does not implicitly {@link BI.SnapshotRecord.Addon.verify|verify} messages. - * @param message Addon message or plain object to encode + * Encodes the specified RecordsAddRequest message. Does not implicitly {@link record.v3.RecordsAddRequest.verify|verify} messages. + * @param message RecordsAddRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.SnapshotRecord.IAddon, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: record.v3.IRecordsAddRequest, 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 + * 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: BI.SnapshotRecord.IAddon, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: record.v3.IRecordsAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Addon message from the specified reader or buffer. + * Decodes a RecordsAddRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Addon + * @returns RecordsAddRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SnapshotRecord.Addon; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): record.v3.RecordsAddRequest; /** - * Decodes an Addon message from the specified reader or buffer, length delimited. + * Decodes a RecordsAddRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Addon + * @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)): BI.SnapshotRecord.Addon; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): record.v3.RecordsAddRequest; /** - * Verifies an Addon message. + * 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 an Addon message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Addon + * @returns RecordsAddRequest */ - public static fromObject(object: { [k: string]: any }): BI.SnapshotRecord.Addon; + public static fromObject(object: { [k: string]: any }): record.v3.RecordsAddRequest; /** - * Creates a plain object from an Addon message. Also converts values to other types if specified. - * @param message Addon + * Creates a plain object from a RecordsAddRequest message. Also converts values to other types if specified. + * @param message RecordsAddRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SnapshotRecord.Addon, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: record.v3.RecordsAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Addon to JSON. + * Converts this RecordsAddRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Addon + * Gets the default type url for RecordsAddRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RecordAdd. */ + interface IRecordAdd { + + /** RecordAdd recordUid */ + recordUid?: (Uint8Array|null); + + /** RecordAdd recordKey */ + recordKey?: (Uint8Array|null); + + /** RecordAdd recordKeyType */ + recordKeyType?: (Folder.EncryptedKeyType|null); + + /** + * Record creates in root folder is encrypted by user key. + * Record creates in non-root folder is encrypted by folder key. + */ + recordKeyEncryptedBy?: (Folder.FolderKeyEncryptionType|null); + + /** RecordAdd clientModifiedTime */ + clientModifiedTime?: (number|Long|null); + + /** RecordAdd data */ + data?: (Uint8Array|null); + + /** RecordAdd nonSharedData */ + nonSharedData?: (Uint8Array|null); + + /** RecordAdd folderUid */ + folderUid?: (Uint8Array|null); + + /** RecordAdd recordLinks */ + recordLinks?: (Records.IRecordLink[]|null); + + /** RecordAdd audit */ + audit?: (Records.IRecordAudit|null); + + /** RecordAdd securityData */ + securityData?: (Records.ISecurityData|null); + + /** RecordAdd securityScoreData */ + securityScoreData?: (Records.ISecurityScoreData|null); + } + + /** Represents a RecordAdd. */ + class RecordAdd implements IRecordAdd { + + /** + * Constructs a new RecordAdd. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.IRecordAdd); + + /** RecordAdd recordUid. */ + public recordUid: Uint8Array; + + /** RecordAdd recordKey. */ + public recordKey: Uint8Array; + + /** RecordAdd recordKeyType. */ + public recordKeyType: Folder.EncryptedKeyType; + + /** + * Record creates in root folder is encrypted by user key. + * Record creates in non-root folder is encrypted by folder key. + */ + public recordKeyEncryptedBy: Folder.FolderKeyEncryptionType; + + /** RecordAdd clientModifiedTime. */ + public clientModifiedTime: (number|Long); + + /** RecordAdd data. */ + public data: Uint8Array; + + /** RecordAdd nonSharedData. */ + public nonSharedData: Uint8Array; + + /** RecordAdd folderUid. */ + public folderUid: Uint8Array; + + /** RecordAdd recordLinks. */ + public recordLinks: Records.IRecordLink[]; + + /** RecordAdd audit. */ + public audit?: (Records.IRecordAudit|null); + + /** RecordAdd securityData. */ + public securityData?: (Records.ISecurityData|null); + + /** RecordAdd securityScoreData. */ + public securityScoreData?: (Records.ISecurityScoreData|null); + + /** + * Creates a new RecordAdd instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordAdd instance + */ + public static create(properties?: record.v3.IRecordAdd): record.v3.RecordAdd; + + /** + * Encodes the specified RecordAdd message. Does not implicitly {@link record.v3.RecordAdd.verify|verify} messages. + * @param message RecordAdd message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: record.v3.IRecordAdd, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RecordAdd message, length delimited. Does not implicitly {@link record.v3.RecordAdd.verify|verify} messages. + * @param message RecordAdd message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: record.v3.IRecordAdd, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RecordAdd message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecordAdd + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): record.v3.RecordAdd; + + /** + * Decodes a RecordAdd message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RecordAdd + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): record.v3.RecordAdd; + + /** + * Verifies a RecordAdd message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RecordAdd message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecordAdd + */ + public static fromObject(object: { [k: string]: any }): record.v3.RecordAdd; + + /** + * Creates a plain object from a RecordAdd message. Also converts values to other types if specified. + * @param message RecordAdd + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.RecordAdd, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecordAdd to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecordAdd * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } } +} - /** Properties of a SnapshotMcEnterprise. */ - interface ISnapshotMcEnterprise { +/** Namespace Upsell. */ +export namespace Upsell { - /** SnapshotMcEnterprise id */ - id?: (number|null); + /** Properties of an UpsellRequest. */ + interface IUpsellRequest { - /** SnapshotMcEnterprise name */ - name?: (string|null); + /** UpsellRequest email */ + email?: (string|null); + + /** UpsellRequest locale */ + locale?: (string|null); + + /** UpsellRequest clientVersion */ + clientVersion?: (string|null); + + /** UpsellRequest sessionToken */ + sessionToken?: (string|null); } - /** Represents a SnapshotMcEnterprise. */ - class SnapshotMcEnterprise implements ISnapshotMcEnterprise { + /** Represents an UpsellRequest. */ + class UpsellRequest implements IUpsellRequest { /** - * Constructs a new SnapshotMcEnterprise. + * Constructs a new UpsellRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.ISnapshotMcEnterprise); + constructor(properties?: Upsell.IUpsellRequest); - /** SnapshotMcEnterprise id. */ - public id: number; + /** UpsellRequest email. */ + public email: string; - /** SnapshotMcEnterprise name. */ - public name: string; + /** UpsellRequest locale. */ + public locale: string; + + /** UpsellRequest clientVersion. */ + public clientVersion: string; + + /** UpsellRequest sessionToken. */ + public sessionToken: string; /** - * Creates a new SnapshotMcEnterprise instance using the specified properties. + * Creates a new UpsellRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SnapshotMcEnterprise instance + * @returns UpsellRequest instance */ - public static create(properties?: BI.ISnapshotMcEnterprise): BI.SnapshotMcEnterprise; + public static create(properties?: Upsell.IUpsellRequest): Upsell.UpsellRequest; /** - * Encodes the specified SnapshotMcEnterprise message. Does not implicitly {@link BI.SnapshotMcEnterprise.verify|verify} messages. - * @param message SnapshotMcEnterprise message or plain object to encode + * Encodes the specified UpsellRequest message. 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 encode(message: BI.ISnapshotMcEnterprise, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Upsell.IUpsellRequest, 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 + * 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: BI.ISnapshotMcEnterprise, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Upsell.IUpsellRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SnapshotMcEnterprise message from the specified reader or buffer. + * Decodes an UpsellRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SnapshotMcEnterprise + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SnapshotMcEnterprise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Upsell.UpsellRequest; /** - * Decodes a SnapshotMcEnterprise message from the specified reader or buffer, length delimited. + * Decodes an UpsellRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SnapshotMcEnterprise + * @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)): BI.SnapshotMcEnterprise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Upsell.UpsellRequest; /** - * Verifies a SnapshotMcEnterprise message. + * 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 a SnapshotMcEnterprise message from a plain object. Also converts values to their respective internal types. + * Creates an UpsellRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SnapshotMcEnterprise + * @returns UpsellRequest */ - public static fromObject(object: { [k: string]: any }): BI.SnapshotMcEnterprise; + public static fromObject(object: { [k: string]: any }): Upsell.UpsellRequest; /** - * Creates a plain object from a SnapshotMcEnterprise message. Also converts values to other types if specified. - * @param message SnapshotMcEnterprise + * Creates a plain object from an UpsellRequest message. Also converts values to other types if specified. + * @param message UpsellRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SnapshotMcEnterprise, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Upsell.UpsellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SnapshotMcEnterprise to JSON. + * Converts this UpsellRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SnapshotMcEnterprise + * Gets the default type url for UpsellRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MappingAddonsRequest. */ - interface IMappingAddonsRequest { + /** Properties of an UpsellResponse. */ + interface IUpsellResponse { + + /** UpsellResponse UpsellBanner */ + UpsellBanner?: (Upsell.IUpsellBanner[]|null); } - /** Represents a MappingAddonsRequest. */ - class MappingAddonsRequest implements IMappingAddonsRequest { + /** Represents an UpsellResponse. */ + class UpsellResponse implements IUpsellResponse { /** - * Constructs a new MappingAddonsRequest. + * Constructs a new UpsellResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IMappingAddonsRequest); + constructor(properties?: Upsell.IUpsellResponse); + + /** UpsellResponse UpsellBanner. */ + public UpsellBanner: Upsell.IUpsellBanner[]; /** - * Creates a new MappingAddonsRequest instance using the specified properties. + * Creates a new UpsellResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MappingAddonsRequest instance + * @returns UpsellResponse instance */ - public static create(properties?: BI.IMappingAddonsRequest): BI.MappingAddonsRequest; + public static create(properties?: Upsell.IUpsellResponse): Upsell.UpsellResponse; /** - * Encodes the specified MappingAddonsRequest message. Does not implicitly {@link BI.MappingAddonsRequest.verify|verify} messages. - * @param message MappingAddonsRequest message or plain object to encode + * Encodes the specified UpsellResponse message. 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 encode(message: BI.IMappingAddonsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Upsell.IUpsellResponse, 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 + * 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: BI.IMappingAddonsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Upsell.IUpsellResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MappingAddonsRequest message from the specified reader or buffer. + * Decodes an UpsellResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MappingAddonsRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.MappingAddonsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Upsell.UpsellResponse; /** - * Decodes a MappingAddonsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpsellResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MappingAddonsRequest + * @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)): BI.MappingAddonsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Upsell.UpsellResponse; /** - * Verifies a MappingAddonsRequest message. + * 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 a MappingAddonsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpsellResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MappingAddonsRequest + * @returns UpsellResponse */ - public static fromObject(object: { [k: string]: any }): BI.MappingAddonsRequest; + public static fromObject(object: { [k: string]: any }): Upsell.UpsellResponse; /** - * Creates a plain object from a MappingAddonsRequest message. Also converts values to other types if specified. - * @param message MappingAddonsRequest + * Creates a plain object from an UpsellResponse message. Also converts values to other types if specified. + * @param message UpsellResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.MappingAddonsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Upsell.UpsellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MappingAddonsRequest to JSON. + * Converts this UpsellResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MappingAddonsRequest + * Gets the default type url for UpsellResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MappingAddonsResponse. */ - interface IMappingAddonsResponse { + /** Properties of an UpsellBanner. */ + interface IUpsellBanner { - /** MappingAddonsResponse addons */ - addons?: (BI.IMappingItem[]|null); + /** UpsellBanner bannerId */ + bannerId?: (number|null); - /** MappingAddonsResponse filePlans */ - filePlans?: (BI.IMappingItem[]|null); - } + /** UpsellBanner bannerOkAction */ + bannerOkAction?: (string|null); - /** Represents a MappingAddonsResponse. */ - class MappingAddonsResponse implements IMappingAddonsResponse { + /** UpsellBanner bannerOkButton */ + bannerOkButton?: (string|null); - /** - * Constructs a new MappingAddonsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: BI.IMappingAddonsResponse); + /** UpsellBanner bannerCancelAction */ + bannerCancelAction?: (string|null); - /** MappingAddonsResponse addons. */ - public addons: BI.IMappingItem[]; + /** UpsellBanner bannerCancelButton */ + bannerCancelButton?: (string|null); - /** MappingAddonsResponse filePlans. */ - public filePlans: BI.IMappingItem[]; + /** UpsellBanner bannerMessage */ + bannerMessage?: (string|null); + + /** UpsellBanner locale */ + locale?: (string|null); + } + + /** Represents an UpsellBanner. */ + class UpsellBanner implements IUpsellBanner { /** - * Creates a new MappingAddonsResponse instance using the specified properties. + * Constructs a new UpsellBanner. * @param [properties] Properties to set - * @returns MappingAddonsResponse instance */ - public static create(properties?: BI.IMappingAddonsResponse): BI.MappingAddonsResponse; + constructor(properties?: Upsell.IUpsellBanner); + + /** UpsellBanner bannerId. */ + public bannerId: number; + + /** UpsellBanner bannerOkAction. */ + public bannerOkAction: string; + + /** UpsellBanner bannerOkButton. */ + public bannerOkButton: string; + + /** UpsellBanner bannerCancelAction. */ + public bannerCancelAction: string; + + /** UpsellBanner bannerCancelButton. */ + public bannerCancelButton: string; + + /** UpsellBanner bannerMessage. */ + public bannerMessage: string; + + /** UpsellBanner locale. */ + public locale: string; /** - * Encodes the specified MappingAddonsResponse message. Does not implicitly {@link BI.MappingAddonsResponse.verify|verify} messages. - * @param message MappingAddonsResponse message or plain object to encode + * Creates a new UpsellBanner instance using the specified properties. + * @param [properties] Properties to set + * @returns UpsellBanner instance + */ + public static create(properties?: Upsell.IUpsellBanner): Upsell.UpsellBanner; + + /** + * Encodes the specified UpsellBanner message. 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 encode(message: BI.IMappingAddonsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Upsell.IUpsellBanner, 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 + * 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: BI.IMappingAddonsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Upsell.IUpsellBanner, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MappingAddonsResponse message from the specified reader or buffer. + * Decodes an UpsellBanner message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MappingAddonsResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.MappingAddonsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Upsell.UpsellBanner; /** - * Decodes a MappingAddonsResponse message from the specified reader or buffer, length delimited. + * Decodes an UpsellBanner message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MappingAddonsResponse + * @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)): BI.MappingAddonsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Upsell.UpsellBanner; /** - * Verifies a MappingAddonsResponse message. + * 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 a MappingAddonsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpsellBanner message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MappingAddonsResponse + * @returns UpsellBanner */ - public static fromObject(object: { [k: string]: any }): BI.MappingAddonsResponse; + public static fromObject(object: { [k: string]: any }): Upsell.UpsellBanner; /** - * Creates a plain object from a MappingAddonsResponse message. Also converts values to other types if specified. - * @param message MappingAddonsResponse + * Creates a plain object from an UpsellBanner message. Also converts values to other types if specified. + * @param message UpsellBanner * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.MappingAddonsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Upsell.UpsellBanner, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MappingAddonsResponse to JSON. + * Converts this UpsellBanner to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MappingAddonsResponse + * Gets the default type url for UpsellBanner * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MappingItem. */ - interface IMappingItem { + /** ClientType enum. */ + enum ClientType { + DEFAULT_CLIENT_TYPE = 0, + ALL = 1, + ANDROID = 2, + IOS = 3, + MICROSOFT = 4, + WEBAPP = 5 + } - /** MappingItem id */ - id?: (number|null); + /** ClientVersion enum. */ + enum ClientVersion { + DEFAULT_VERSION = 0, + SUPPORTS_ALL = 1, + BASEVERSION = 14, + ABOVERANGE = 15 + } +} - /** MappingItem name */ - name?: (string|null); +/** Namespace BI. */ +export namespace BI { + + /** Currency enum. */ + enum Currency { + UNKNOWN = 0, + USD = 1, + GBP = 2, + JPY = 3, + EUR = 4, + AUD = 5, + CAD = 6 } - /** Represents a MappingItem. */ - class MappingItem implements IMappingItem { + /** Properties of a ValidateSessionTokenRequest. */ + interface IValidateSessionTokenRequest { + + /** ValidateSessionTokenRequest encryptedSessionToken */ + encryptedSessionToken?: (Uint8Array|null); + + /** ValidateSessionTokenRequest returnMcEnterpiseIds */ + returnMcEnterpiseIds?: (boolean|null); + + /** ValidateSessionTokenRequest ip */ + ip?: (string|null); + } + + /** Represents a ValidateSessionTokenRequest. */ + class ValidateSessionTokenRequest implements IValidateSessionTokenRequest { /** - * Constructs a new MappingItem. + * Constructs a new ValidateSessionTokenRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IMappingItem); + constructor(properties?: BI.IValidateSessionTokenRequest); - /** MappingItem id. */ - public id: number; + /** ValidateSessionTokenRequest encryptedSessionToken. */ + public encryptedSessionToken: Uint8Array; - /** MappingItem name. */ - public name: string; + /** ValidateSessionTokenRequest returnMcEnterpiseIds. */ + public returnMcEnterpiseIds: boolean; + + /** ValidateSessionTokenRequest ip. */ + public ip: string; /** - * Creates a new MappingItem instance using the specified properties. + * Creates a new ValidateSessionTokenRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MappingItem instance + * @returns ValidateSessionTokenRequest instance */ - public static create(properties?: BI.IMappingItem): BI.MappingItem; + public static create(properties?: BI.IValidateSessionTokenRequest): BI.ValidateSessionTokenRequest; /** - * Encodes the specified MappingItem message. Does not implicitly {@link BI.MappingItem.verify|verify} messages. - * @param message MappingItem message or plain object to encode + * Encodes the specified ValidateSessionTokenRequest message. 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 encode(message: BI.IMappingItem, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IValidateSessionTokenRequest, 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 + * 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.IMappingItem, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.IValidateSessionTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MappingItem message from the specified reader or buffer. + * Decodes a ValidateSessionTokenRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MappingItem + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.MappingItem; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.ValidateSessionTokenRequest; /** - * Decodes a MappingItem message from the specified reader or buffer, length delimited. + * Decodes a ValidateSessionTokenRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MappingItem + * @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.MappingItem; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.ValidateSessionTokenRequest; /** - * Verifies a MappingItem message. + * 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 MappingItem message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateSessionTokenRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MappingItem + * @returns ValidateSessionTokenRequest */ - public static fromObject(object: { [k: string]: any }): BI.MappingItem; + public static fromObject(object: { [k: string]: any }): BI.ValidateSessionTokenRequest; /** - * Creates a plain object from a MappingItem message. Also converts values to other types if specified. - * @param message MappingItem + * Creates a plain object from a ValidateSessionTokenRequest message. Also converts values to other types if specified. + * @param message ValidateSessionTokenRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.MappingItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.ValidateSessionTokenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MappingItem to JSON. + * Converts this ValidateSessionTokenRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MappingItem + * Gets the default type url for ValidateSessionTokenRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GradientValidateKeyRequest. */ - interface IGradientValidateKeyRequest { + /** Properties of a ValidateSessionTokenResponse. */ + interface IValidateSessionTokenResponse { - /** GradientValidateKeyRequest gradientKey */ - gradientKey?: (string|null); + /** ValidateSessionTokenResponse username */ + username?: (string|null); + + /** ValidateSessionTokenResponse userId */ + userId?: (number|null); + + /** ValidateSessionTokenResponse enterpriseUserId */ + enterpriseUserId?: (number|Long|null); + + /** ValidateSessionTokenResponse status */ + status?: (BI.ValidateSessionTokenResponse.Status|null); + + /** ValidateSessionTokenResponse statusMessage */ + statusMessage?: (string|null); + + /** ValidateSessionTokenResponse mcEnterpriseIds */ + mcEnterpriseIds?: (number[]|null); + + /** ValidateSessionTokenResponse hasMSPPermission */ + hasMSPPermission?: (boolean|null); + + /** ValidateSessionTokenResponse deletedMcEnterpriseIds */ + deletedMcEnterpriseIds?: (number[]|null); } - /** Represents a GradientValidateKeyRequest. */ - class GradientValidateKeyRequest implements IGradientValidateKeyRequest { + /** Represents a ValidateSessionTokenResponse. */ + class ValidateSessionTokenResponse implements IValidateSessionTokenResponse { /** - * Constructs a new GradientValidateKeyRequest. + * Constructs a new ValidateSessionTokenResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IGradientValidateKeyRequest); + constructor(properties?: BI.IValidateSessionTokenResponse); - /** GradientValidateKeyRequest gradientKey. */ - public gradientKey: string; + /** ValidateSessionTokenResponse username. */ + public username: string; + + /** ValidateSessionTokenResponse userId. */ + public userId: number; + + /** ValidateSessionTokenResponse enterpriseUserId. */ + public enterpriseUserId: (number|Long); + + /** ValidateSessionTokenResponse status. */ + public status: BI.ValidateSessionTokenResponse.Status; + + /** ValidateSessionTokenResponse statusMessage. */ + public statusMessage: string; + + /** ValidateSessionTokenResponse mcEnterpriseIds. */ + public mcEnterpriseIds: number[]; + + /** ValidateSessionTokenResponse hasMSPPermission. */ + public hasMSPPermission: boolean; + + /** ValidateSessionTokenResponse deletedMcEnterpriseIds. */ + public deletedMcEnterpriseIds: number[]; /** - * Creates a new GradientValidateKeyRequest instance using the specified properties. + * Creates a new ValidateSessionTokenResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GradientValidateKeyRequest instance + * @returns ValidateSessionTokenResponse instance */ - public static create(properties?: BI.IGradientValidateKeyRequest): BI.GradientValidateKeyRequest; + public static create(properties?: BI.IValidateSessionTokenResponse): BI.ValidateSessionTokenResponse; /** - * Encodes the specified GradientValidateKeyRequest message. Does not implicitly {@link BI.GradientValidateKeyRequest.verify|verify} messages. - * @param message GradientValidateKeyRequest message or plain object to encode + * Encodes the specified ValidateSessionTokenResponse message. 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 encode(message: BI.IGradientValidateKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IValidateSessionTokenResponse, 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 + * 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.IGradientValidateKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.IValidateSessionTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GradientValidateKeyRequest message from the specified reader or buffer. + * Decodes a ValidateSessionTokenResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GradientValidateKeyRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientValidateKeyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.ValidateSessionTokenResponse; /** - * Decodes a GradientValidateKeyRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidateSessionTokenResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GradientValidateKeyRequest + * @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.GradientValidateKeyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.ValidateSessionTokenResponse; /** - * Verifies a GradientValidateKeyRequest message. + * 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 GradientValidateKeyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateSessionTokenResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GradientValidateKeyRequest + * @returns ValidateSessionTokenResponse */ - public static fromObject(object: { [k: string]: any }): BI.GradientValidateKeyRequest; + public static fromObject(object: { [k: string]: any }): BI.ValidateSessionTokenResponse; /** - * Creates a plain object from a GradientValidateKeyRequest message. Also converts values to other types if specified. - * @param message GradientValidateKeyRequest + * Creates a plain object from a ValidateSessionTokenResponse message. Also converts values to other types if specified. + * @param message ValidateSessionTokenResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientValidateKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.ValidateSessionTokenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GradientValidateKeyRequest to JSON. + * Converts this ValidateSessionTokenResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GradientValidateKeyRequest + * Gets the default type url for ValidateSessionTokenResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GradientValidateKeyResponse. */ - interface IGradientValidateKeyResponse { + namespace ValidateSessionTokenResponse { - /** GradientValidateKeyResponse success */ - success?: (boolean|null); + /** Status enum. */ + enum Status { + VALID = 0, + NOT_VALID = 1, + EXPIRED = 2, + IP_BLOCKED = 3, + INVALID_CLIENT_VERSION = 4 + } + } - /** GradientValidateKeyResponse message */ - message?: (string|null); + /** Properties of a SubscriptionStatusRequest. */ + interface ISubscriptionStatusRequest { } - /** Represents a GradientValidateKeyResponse. */ - class GradientValidateKeyResponse implements IGradientValidateKeyResponse { + /** Represents a SubscriptionStatusRequest. */ + class SubscriptionStatusRequest implements ISubscriptionStatusRequest { /** - * Constructs a new GradientValidateKeyResponse. + * Constructs a new SubscriptionStatusRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IGradientValidateKeyResponse); - - /** GradientValidateKeyResponse success. */ - public success: boolean; - - /** GradientValidateKeyResponse message. */ - public message: string; + constructor(properties?: BI.ISubscriptionStatusRequest); /** - * Creates a new GradientValidateKeyResponse instance using the specified properties. + * Creates a new SubscriptionStatusRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GradientValidateKeyResponse instance + * @returns SubscriptionStatusRequest instance */ - public static create(properties?: BI.IGradientValidateKeyResponse): BI.GradientValidateKeyResponse; + public static create(properties?: BI.ISubscriptionStatusRequest): BI.SubscriptionStatusRequest; /** - * Encodes the specified GradientValidateKeyResponse message. Does not implicitly {@link BI.GradientValidateKeyResponse.verify|verify} messages. - * @param message GradientValidateKeyResponse message or plain object to encode + * Encodes the specified SubscriptionStatusRequest message. 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 encode(message: BI.IGradientValidateKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.ISubscriptionStatusRequest, 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 + * 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.IGradientValidateKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.ISubscriptionStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GradientValidateKeyResponse message from the specified reader or buffer. + * Decodes a SubscriptionStatusRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GradientValidateKeyResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientValidateKeyResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionStatusRequest; /** - * Decodes a GradientValidateKeyResponse message from the specified reader or buffer, length delimited. + * Decodes a SubscriptionStatusRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GradientValidateKeyResponse + * @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.GradientValidateKeyResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SubscriptionStatusRequest; /** - * Verifies a GradientValidateKeyResponse message. + * 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 GradientValidateKeyResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SubscriptionStatusRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GradientValidateKeyResponse + * @returns SubscriptionStatusRequest */ - public static fromObject(object: { [k: string]: any }): BI.GradientValidateKeyResponse; + public static fromObject(object: { [k: string]: any }): BI.SubscriptionStatusRequest; /** - * Creates a plain object from a GradientValidateKeyResponse message. Also converts values to other types if specified. - * @param message GradientValidateKeyResponse + * Creates a plain object from a SubscriptionStatusRequest message. Also converts values to other types if specified. + * @param message SubscriptionStatusRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientValidateKeyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.SubscriptionStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GradientValidateKeyResponse to JSON. + * Converts this SubscriptionStatusRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GradientValidateKeyResponse + * Gets the default type url for SubscriptionStatusRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GradientSaveRequest. */ - interface IGradientSaveRequest { + /** Properties of a SubscriptionStatusResponse. */ + interface ISubscriptionStatusResponse { - /** GradientSaveRequest gradientKey */ - gradientKey?: (string|null); + /** SubscriptionStatusResponse autoRenewal */ + autoRenewal?: (BI.IAutoRenewal|null); - /** GradientSaveRequest enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + /** SubscriptionStatusResponse currentPaymentMethod */ + currentPaymentMethod?: (BI.IPaymentMethod|null); + + /** SubscriptionStatusResponse checkoutLink */ + checkoutLink?: (string|null); + + /** SubscriptionStatusResponse licenseCreateDate */ + licenseCreateDate?: (number|Long|null); + + /** SubscriptionStatusResponse isDistributor */ + isDistributor?: (boolean|null); + + /** SubscriptionStatusResponse isLegacyMsp */ + isLegacyMsp?: (boolean|null); + + /** SubscriptionStatusResponse licenseStats */ + licenseStats?: (BI.ILicenseStats[]|null); + + /** SubscriptionStatusResponse gradientStatus */ + gradientStatus?: (BI.GradientIntegrationStatus|null); + + /** SubscriptionStatusResponse hideTrialBanner */ + hideTrialBanner?: (boolean|null); + + /** SubscriptionStatusResponse gradientLastSyncDate */ + gradientLastSyncDate?: (string|null); + + /** SubscriptionStatusResponse gradientNextSyncDate */ + gradientNextSyncDate?: (string|null); + + /** SubscriptionStatusResponse isGradientMappingPending */ + isGradientMappingPending?: (boolean|null); } - /** Represents a GradientSaveRequest. */ - class GradientSaveRequest implements IGradientSaveRequest { + /** Represents a SubscriptionStatusResponse. */ + class SubscriptionStatusResponse implements ISubscriptionStatusResponse { /** - * Constructs a new GradientSaveRequest. + * Constructs a new SubscriptionStatusResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IGradientSaveRequest); + constructor(properties?: BI.ISubscriptionStatusResponse); - /** GradientSaveRequest gradientKey. */ - public gradientKey: string; + /** SubscriptionStatusResponse autoRenewal. */ + public autoRenewal?: (BI.IAutoRenewal|null); - /** GradientSaveRequest enterpriseUserId. */ - public enterpriseUserId: (number|Long); + /** SubscriptionStatusResponse currentPaymentMethod. */ + public currentPaymentMethod?: (BI.IPaymentMethod|null); + + /** SubscriptionStatusResponse checkoutLink. */ + public checkoutLink: string; + + /** SubscriptionStatusResponse licenseCreateDate. */ + public licenseCreateDate: (number|Long); + + /** SubscriptionStatusResponse isDistributor. */ + public isDistributor: boolean; + + /** SubscriptionStatusResponse isLegacyMsp. */ + public isLegacyMsp: boolean; + + /** SubscriptionStatusResponse licenseStats. */ + public licenseStats: BI.ILicenseStats[]; + + /** SubscriptionStatusResponse gradientStatus. */ + public gradientStatus: BI.GradientIntegrationStatus; + + /** SubscriptionStatusResponse hideTrialBanner. */ + public hideTrialBanner: boolean; + + /** SubscriptionStatusResponse gradientLastSyncDate. */ + public gradientLastSyncDate: string; + + /** SubscriptionStatusResponse gradientNextSyncDate. */ + public gradientNextSyncDate: string; + + /** SubscriptionStatusResponse isGradientMappingPending. */ + public isGradientMappingPending: boolean; /** - * Creates a new GradientSaveRequest instance using the specified properties. + * Creates a new SubscriptionStatusResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GradientSaveRequest instance + * @returns SubscriptionStatusResponse instance */ - public static create(properties?: BI.IGradientSaveRequest): BI.GradientSaveRequest; + public static create(properties?: BI.ISubscriptionStatusResponse): BI.SubscriptionStatusResponse; /** - * Encodes the specified GradientSaveRequest message. Does not implicitly {@link BI.GradientSaveRequest.verify|verify} messages. - * @param message GradientSaveRequest message or plain object to encode + * Encodes the specified SubscriptionStatusResponse message. 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 encode(message: BI.IGradientSaveRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.ISubscriptionStatusResponse, 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 + * 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.IGradientSaveRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.ISubscriptionStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GradientSaveRequest message from the specified reader or buffer. + * Decodes a SubscriptionStatusResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GradientSaveRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientSaveRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionStatusResponse; /** - * Decodes a GradientSaveRequest message from the specified reader or buffer, length delimited. + * Decodes a SubscriptionStatusResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GradientSaveRequest + * @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.GradientSaveRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SubscriptionStatusResponse; /** - * Verifies a GradientSaveRequest message. + * 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 GradientSaveRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SubscriptionStatusResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GradientSaveRequest + * @returns SubscriptionStatusResponse */ - public static fromObject(object: { [k: string]: any }): BI.GradientSaveRequest; + public static fromObject(object: { [k: string]: any }): BI.SubscriptionStatusResponse; /** - * Creates a plain object from a GradientSaveRequest message. Also converts values to other types if specified. - * @param message GradientSaveRequest + * Creates a plain object from a SubscriptionStatusResponse message. Also converts values to other types if specified. + * @param message SubscriptionStatusResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientSaveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.SubscriptionStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GradientSaveRequest to JSON. + * Converts this SubscriptionStatusResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GradientSaveRequest + * Gets the default type url for SubscriptionStatusResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GradientSaveResponse. */ - interface IGradientSaveResponse { + /** Properties of a LicenseStats. */ + interface ILicenseStats { - /** GradientSaveResponse success */ - success?: (boolean|null); + /** LicenseStats type */ + type?: (BI.LicenseStats.Type|null); - /** GradientSaveResponse status */ - status?: (BI.GradientIntegrationStatus|null); + /** LicenseStats available */ + available?: (number|null); - /** GradientSaveResponse message */ - message?: (string|null); + /** LicenseStats used */ + used?: (number|null); } - /** Represents a GradientSaveResponse. */ - class GradientSaveResponse implements IGradientSaveResponse { + /** Represents a LicenseStats. */ + class LicenseStats implements ILicenseStats { /** - * Constructs a new GradientSaveResponse. + * Constructs a new LicenseStats. * @param [properties] Properties to set */ - constructor(properties?: BI.IGradientSaveResponse); + constructor(properties?: BI.ILicenseStats); - /** GradientSaveResponse success. */ - public success: boolean; + /** LicenseStats type. */ + public type: BI.LicenseStats.Type; - /** GradientSaveResponse status. */ - public status: BI.GradientIntegrationStatus; + /** LicenseStats available. */ + public available: number; - /** GradientSaveResponse message. */ - public message: string; + /** LicenseStats used. */ + public used: number; /** - * Creates a new GradientSaveResponse instance using the specified properties. + * Creates a new LicenseStats instance using the specified properties. * @param [properties] Properties to set - * @returns GradientSaveResponse instance + * @returns LicenseStats instance */ - public static create(properties?: BI.IGradientSaveResponse): BI.GradientSaveResponse; + public static create(properties?: BI.ILicenseStats): BI.LicenseStats; /** - * Encodes the specified GradientSaveResponse message. Does not implicitly {@link BI.GradientSaveResponse.verify|verify} messages. - * @param message GradientSaveResponse message or plain object to encode + * Encodes the specified LicenseStats message. 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 encode(message: BI.IGradientSaveResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.ILicenseStats, 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 + * 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.IGradientSaveResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.ILicenseStats, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GradientSaveResponse message from the specified reader or buffer. + * Decodes a LicenseStats message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GradientSaveResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientSaveResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.LicenseStats; /** - * Decodes a GradientSaveResponse message from the specified reader or buffer, length delimited. + * Decodes a LicenseStats message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GradientSaveResponse + * @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.GradientSaveResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.LicenseStats; /** - * Verifies a GradientSaveResponse message. + * 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 GradientSaveResponse message from a plain object. Also converts values to their respective internal types. + * Creates a LicenseStats message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GradientSaveResponse + * @returns LicenseStats */ - public static fromObject(object: { [k: string]: any }): BI.GradientSaveResponse; + public static fromObject(object: { [k: string]: any }): BI.LicenseStats; /** - * Creates a plain object from a GradientSaveResponse message. Also converts values to other types if specified. - * @param message GradientSaveResponse + * Creates a plain object from a LicenseStats message. Also converts values to other types if specified. + * @param message LicenseStats * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientSaveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.LicenseStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GradientSaveResponse to JSON. + * Converts this LicenseStats to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GradientSaveResponse + * Gets the default type url for LicenseStats * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GradientRemoveRequest. */ - interface IGradientRemoveRequest { + namespace LicenseStats { - /** GradientRemoveRequest enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + /** Type enum. */ + enum Type { + LICENSE_STAT_UNKNOWN = 0, + MSP_BASE = 1, + MC_BUSINESS = 2, + MC_BUSINESS_PLUS = 3, + MC_ENTERPRISE = 4, + MC_ENTERPRISE_PLUS = 5, + B2B_BUSINESS_STARTER = 6, + B2B_BUSINESS = 7, + B2B_ENTERPRISE = 8 + } } - /** Represents a GradientRemoveRequest. */ - class GradientRemoveRequest implements IGradientRemoveRequest { + /** Properties of an AutoRenewal. */ + interface IAutoRenewal { + + /** AutoRenewal nextOn */ + nextOn?: (number|Long|null); + + /** AutoRenewal daysLeft */ + daysLeft?: (number|null); + + /** AutoRenewal isTrial */ + isTrial?: (boolean|null); + } + + /** Represents an AutoRenewal. */ + class AutoRenewal implements IAutoRenewal { /** - * Constructs a new GradientRemoveRequest. + * Constructs a new AutoRenewal. * @param [properties] Properties to set */ - constructor(properties?: BI.IGradientRemoveRequest); + constructor(properties?: BI.IAutoRenewal); - /** GradientRemoveRequest enterpriseUserId. */ - public enterpriseUserId: (number|Long); + /** AutoRenewal nextOn. */ + public nextOn: (number|Long); + + /** AutoRenewal daysLeft. */ + public daysLeft: number; + + /** AutoRenewal isTrial. */ + public isTrial: boolean; /** - * Creates a new GradientRemoveRequest instance using the specified properties. + * Creates a new AutoRenewal instance using the specified properties. * @param [properties] Properties to set - * @returns GradientRemoveRequest instance + * @returns AutoRenewal instance */ - public static create(properties?: BI.IGradientRemoveRequest): BI.GradientRemoveRequest; + public static create(properties?: BI.IAutoRenewal): BI.AutoRenewal; /** - * Encodes the specified GradientRemoveRequest message. Does not implicitly {@link BI.GradientRemoveRequest.verify|verify} messages. - * @param message GradientRemoveRequest message or plain object to encode + * Encodes the specified AutoRenewal message. 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 encode(message: BI.IGradientRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IAutoRenewal, 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 + * 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.IGradientRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.IAutoRenewal, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GradientRemoveRequest message from the specified reader or buffer. + * Decodes an AutoRenewal message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GradientRemoveRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientRemoveRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.AutoRenewal; /** - * Decodes a GradientRemoveRequest message from the specified reader or buffer, length delimited. + * Decodes an AutoRenewal message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GradientRemoveRequest + * @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.GradientRemoveRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.AutoRenewal; /** - * Verifies a GradientRemoveRequest message. + * 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 a GradientRemoveRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AutoRenewal message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GradientRemoveRequest + * @returns AutoRenewal */ - public static fromObject(object: { [k: string]: any }): BI.GradientRemoveRequest; + public static fromObject(object: { [k: string]: any }): BI.AutoRenewal; /** - * Creates a plain object from a GradientRemoveRequest message. Also converts values to other types if specified. - * @param message GradientRemoveRequest + * Creates a plain object from an AutoRenewal message. Also converts values to other types if specified. + * @param message AutoRenewal * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientRemoveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.AutoRenewal, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GradientRemoveRequest to JSON. + * Converts this AutoRenewal to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GradientRemoveRequest + * Gets the default type url for AutoRenewal * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GradientRemoveResponse. */ - interface IGradientRemoveResponse { + /** Properties of a PaymentMethod. */ + interface IPaymentMethod { - /** GradientRemoveResponse success */ - success?: (boolean|null); + /** PaymentMethod type */ + type?: (BI.PaymentMethod.Type|null); - /** GradientRemoveResponse message */ - message?: (string|null); + /** PaymentMethod card */ + card?: (BI.PaymentMethod.ICard|null); + + /** PaymentMethod sepa */ + sepa?: (BI.PaymentMethod.ISepa|null); + + /** PaymentMethod paypal */ + paypal?: (BI.PaymentMethod.IPaypal|null); + + /** PaymentMethod failedBilling */ + failedBilling?: (boolean|null); + + /** PaymentMethod vendor */ + vendor?: (BI.PaymentMethod.IVendor|null); + + /** PaymentMethod purchaseOrder */ + purchaseOrder?: (BI.PaymentMethod.IPurchaseOrder|null); } - /** Represents a GradientRemoveResponse. */ - class GradientRemoveResponse implements IGradientRemoveResponse { + /** Represents a PaymentMethod. */ + class PaymentMethod implements IPaymentMethod { /** - * Constructs a new GradientRemoveResponse. + * Constructs a new PaymentMethod. * @param [properties] Properties to set */ - constructor(properties?: BI.IGradientRemoveResponse); + constructor(properties?: BI.IPaymentMethod); - /** GradientRemoveResponse success. */ - public success: boolean; + /** PaymentMethod type. */ + public type: BI.PaymentMethod.Type; - /** GradientRemoveResponse message. */ - public message: string; + /** PaymentMethod card. */ + public card?: (BI.PaymentMethod.ICard|null); + + /** PaymentMethod sepa. */ + public sepa?: (BI.PaymentMethod.ISepa|null); + + /** PaymentMethod paypal. */ + public paypal?: (BI.PaymentMethod.IPaypal|null); + + /** PaymentMethod failedBilling. */ + public failedBilling: boolean; + + /** PaymentMethod vendor. */ + public vendor?: (BI.PaymentMethod.IVendor|null); + + /** PaymentMethod purchaseOrder. */ + public purchaseOrder?: (BI.PaymentMethod.IPurchaseOrder|null); /** - * Creates a new GradientRemoveResponse instance using the specified properties. + * Creates a new PaymentMethod instance using the specified properties. * @param [properties] Properties to set - * @returns GradientRemoveResponse instance + * @returns PaymentMethod instance */ - public static create(properties?: BI.IGradientRemoveResponse): BI.GradientRemoveResponse; + public static create(properties?: BI.IPaymentMethod): BI.PaymentMethod; /** - * Encodes the specified GradientRemoveResponse message. Does not implicitly {@link BI.GradientRemoveResponse.verify|verify} messages. - * @param message GradientRemoveResponse message or plain object to encode + * Encodes the specified PaymentMethod message. 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 encode(message: BI.IGradientRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IPaymentMethod, 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 + * 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.IGradientRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.IPaymentMethod, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GradientRemoveResponse message from the specified reader or buffer. + * Decodes a PaymentMethod message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GradientRemoveResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientRemoveResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.PaymentMethod; /** - * Decodes a GradientRemoveResponse message from the specified reader or buffer, length delimited. + * Decodes a PaymentMethod message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GradientRemoveResponse + * @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.GradientRemoveResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.PaymentMethod; /** - * Verifies a GradientRemoveResponse message. + * 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 GradientRemoveResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PaymentMethod message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GradientRemoveResponse + * @returns PaymentMethod */ - public static fromObject(object: { [k: string]: any }): BI.GradientRemoveResponse; + public static fromObject(object: { [k: string]: any }): BI.PaymentMethod; /** - * Creates a plain object from a GradientRemoveResponse message. Also converts values to other types if specified. - * @param message GradientRemoveResponse + * Creates a plain object from a PaymentMethod message. Also converts values to other types if specified. + * @param message PaymentMethod * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientRemoveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.PaymentMethod, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GradientRemoveResponse to JSON. + * Converts this PaymentMethod to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GradientRemoveResponse + * Gets the default type url for PaymentMethod * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GradientSyncRequest. */ - interface IGradientSyncRequest { - - /** GradientSyncRequest enterpriseUserId */ - enterpriseUserId?: (number|Long|null); - } + namespace PaymentMethod { - /** Represents a GradientSyncRequest. */ - class GradientSyncRequest implements IGradientSyncRequest { + /** Type enum. */ + enum Type { + CARD = 0, + SEPA = 1, + PAYPAL = 2, + NONE = 3, + VENDOR = 4, + PURCHASEORDER = 5 + } - /** - * Constructs a new GradientSyncRequest. - * @param [properties] Properties to set - */ - constructor(properties?: BI.IGradientSyncRequest); + /** Properties of a Card. */ + interface ICard { - /** GradientSyncRequest enterpriseUserId. */ - public enterpriseUserId: (number|Long); + /** Card last4 */ + last4?: (string|null); - /** - * Creates a new GradientSyncRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GradientSyncRequest instance - */ - public static create(properties?: BI.IGradientSyncRequest): BI.GradientSyncRequest; + /** Card brand */ + brand?: (string|null); + } - /** - * Encodes the specified GradientSyncRequest message. 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 encode(message: BI.IGradientSyncRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a Card. */ + class Card implements ICard { - /** - * 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; + /** + * Constructs a new Card. + * @param [properties] Properties to set + */ + constructor(properties?: BI.PaymentMethod.ICard); - /** - * Decodes a GradientSyncRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientSyncRequest; + /** Card last4. */ + public last4: string; - /** - * 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; + /** Card brand. */ + public brand: string; - /** - * 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 new Card instance using the specified properties. + * @param [properties] Properties to set + * @returns Card instance + */ + public static create(properties?: BI.PaymentMethod.ICard): BI.PaymentMethod.Card; - /** - * Creates a GradientSyncRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GradientSyncRequest - */ - public static fromObject(object: { [k: string]: any }): BI.GradientSyncRequest; + /** + * Encodes the specified Card message. 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 encode(message: BI.PaymentMethod.ICard, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a GradientSyncRequest message. Also converts values to other types if specified. - * @param message GradientSyncRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: BI.GradientSyncRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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; - /** - * Converts this GradientSyncRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a Card message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.PaymentMethod.Card; - /** - * Gets the default type url for GradientSyncRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * 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; - /** Properties of a GradientSyncResponse. */ - interface IGradientSyncResponse { + /** + * 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); - /** GradientSyncResponse success */ - success?: (boolean|null); + /** + * Creates a Card message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Card + */ + public static fromObject(object: { [k: string]: any }): BI.PaymentMethod.Card; - /** GradientSyncResponse status */ - status?: (BI.GradientIntegrationStatus|null); + /** + * Creates a plain object from a Card message. Also converts values to other types if specified. + * @param message Card + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.PaymentMethod.Card, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** GradientSyncResponse message */ - message?: (string|null); - } + /** + * Converts this Card to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a GradientSyncResponse. */ - class GradientSyncResponse implements IGradientSyncResponse { + /** + * Gets the default type url for Card + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new GradientSyncResponse. - * @param [properties] Properties to set - */ - constructor(properties?: BI.IGradientSyncResponse); + /** Properties of a Sepa. */ + interface ISepa { - /** GradientSyncResponse success. */ - public success: boolean; + /** Sepa last4 */ + last4?: (string|null); - /** GradientSyncResponse status. */ - public status: BI.GradientIntegrationStatus; + /** Sepa country */ + country?: (string|null); + } - /** GradientSyncResponse message. */ - public message: string; + /** Represents a Sepa. */ + class Sepa implements ISepa { - /** - * Creates a new GradientSyncResponse instance using the specified properties. + /** + * Constructs a new Sepa. + * @param [properties] Properties to set + */ + constructor(properties?: BI.PaymentMethod.ISepa); + + /** Sepa last4. */ + public last4: string; + + /** Sepa country. */ + public country: string; + + /** + * Creates a new Sepa instance using the specified properties. + * @param [properties] Properties to set + * @returns Sepa instance + */ + public static create(properties?: BI.PaymentMethod.ISepa): BI.PaymentMethod.Sepa; + + /** + * Encodes the specified Sepa message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns Sepa + */ + public static fromObject(object: { [k: string]: any }): BI.PaymentMethod.Sepa; + + /** + * Creates a plain object from a Sepa message. Also converts values to other types if specified. + * @param message Sepa + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.PaymentMethod.Sepa, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Sepa to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Sepa + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Paypal. */ + interface IPaypal { + } + + /** Represents a Paypal. */ + class Paypal implements IPaypal { + + /** + * Constructs a new Paypal. + * @param [properties] Properties to set + */ + constructor(properties?: BI.PaymentMethod.IPaypal); + + /** + * Creates a new Paypal instance using the specified properties. + * @param [properties] Properties to set + * @returns Paypal instance + */ + public static create(properties?: BI.PaymentMethod.IPaypal): BI.PaymentMethod.Paypal; + + /** + * Encodes the specified Paypal message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns Paypal + */ + public static fromObject(object: { [k: string]: any }): BI.PaymentMethod.Paypal; + + /** + * Creates a plain object from a Paypal message. Also converts values to other types if specified. + * @param message Paypal + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.PaymentMethod.Paypal, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Paypal to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Paypal + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Vendor. */ + interface IVendor { + + /** Vendor name */ + name?: (string|null); + } + + /** Represents a Vendor. */ + class Vendor implements IVendor { + + /** + * Constructs a new Vendor. + * @param [properties] Properties to set + */ + constructor(properties?: BI.PaymentMethod.IVendor); + + /** Vendor name. */ + public name: string; + + /** + * Creates a new Vendor instance using the specified properties. + * @param [properties] Properties to set + * @returns Vendor instance + */ + public static create(properties?: BI.PaymentMethod.IVendor): BI.PaymentMethod.Vendor; + + /** + * Encodes the specified Vendor message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns Vendor + */ + public static fromObject(object: { [k: string]: any }): BI.PaymentMethod.Vendor; + + /** + * Creates a plain object from a Vendor message. Also converts values to other types if specified. + * @param message Vendor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.PaymentMethod.Vendor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Vendor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Vendor + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PurchaseOrder. */ + interface IPurchaseOrder { + + /** PurchaseOrder name */ + name?: (string|null); + } + + /** Represents a PurchaseOrder. */ + class PurchaseOrder implements IPurchaseOrder { + + /** + * Constructs a new PurchaseOrder. + * @param [properties] Properties to set + */ + constructor(properties?: BI.PaymentMethod.IPurchaseOrder); + + /** PurchaseOrder name. */ + public name: string; + + /** + * Creates a new PurchaseOrder instance using the specified properties. + * @param [properties] Properties to set + * @returns PurchaseOrder instance + */ + public static create(properties?: BI.PaymentMethod.IPurchaseOrder): BI.PaymentMethod.PurchaseOrder; + + /** + * Encodes the specified PurchaseOrder message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns PurchaseOrder + */ + public static fromObject(object: { [k: string]: any }): BI.PaymentMethod.PurchaseOrder; + + /** + * Creates a plain object from a PurchaseOrder message. Also converts values to other types if specified. + * @param message PurchaseOrder + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.PaymentMethod.PurchaseOrder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PurchaseOrder to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PurchaseOrder + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a SubscriptionMspPricingRequest. */ + interface ISubscriptionMspPricingRequest { + } + + /** Represents a SubscriptionMspPricingRequest. */ + class SubscriptionMspPricingRequest implements ISubscriptionMspPricingRequest { + + /** + * Constructs a new SubscriptionMspPricingRequest. * @param [properties] Properties to set - * @returns GradientSyncResponse instance */ - public static create(properties?: BI.IGradientSyncResponse): BI.GradientSyncResponse; + constructor(properties?: BI.ISubscriptionMspPricingRequest); /** - * Encodes the specified GradientSyncResponse message. Does not implicitly {@link BI.GradientSyncResponse.verify|verify} messages. - * @param message GradientSyncResponse message or plain object to encode + * Creates a new SubscriptionMspPricingRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SubscriptionMspPricingRequest instance + */ + public static create(properties?: BI.ISubscriptionMspPricingRequest): BI.SubscriptionMspPricingRequest; + + /** + * Encodes the specified SubscriptionMspPricingRequest message. 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 encode(message: BI.IGradientSyncResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.ISubscriptionMspPricingRequest, 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 + * 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.IGradientSyncResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.ISubscriptionMspPricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GradientSyncResponse message from the specified reader or buffer. + * Decodes a SubscriptionMspPricingRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GradientSyncResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientSyncResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionMspPricingRequest; /** - * Decodes a GradientSyncResponse message from the specified reader or buffer, length delimited. + * Decodes a SubscriptionMspPricingRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GradientSyncResponse + * @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.GradientSyncResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SubscriptionMspPricingRequest; /** - * Verifies a GradientSyncResponse message. + * 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 GradientSyncResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SubscriptionMspPricingRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GradientSyncResponse + * @returns SubscriptionMspPricingRequest */ - public static fromObject(object: { [k: string]: any }): BI.GradientSyncResponse; + public static fromObject(object: { [k: string]: any }): BI.SubscriptionMspPricingRequest; /** - * Creates a plain object from a GradientSyncResponse message. Also converts values to other types if specified. - * @param message GradientSyncResponse + * Creates a plain object from a SubscriptionMspPricingRequest message. Also converts values to other types if specified. + * @param message SubscriptionMspPricingRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientSyncResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.SubscriptionMspPricingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GradientSyncResponse to JSON. + * Converts this SubscriptionMspPricingRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GradientSyncResponse + * Gets the default type url for SubscriptionMspPricingRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** GradientIntegrationStatus enum. */ - enum GradientIntegrationStatus { - NOTCONNECTED = 0, - PENDING = 1, - CONNECTED = 2, - NONE = 3 - } - - /** Properties of a NetPromoterScoreSurveySubmissionRequest. */ - interface INetPromoterScoreSurveySubmissionRequest { + /** Properties of a SubscriptionMspPricingResponse. */ + interface ISubscriptionMspPricingResponse { - /** NetPromoterScoreSurveySubmissionRequest surveyScore */ - surveyScore?: (number|null); + /** SubscriptionMspPricingResponse addons */ + addons?: (BI.IAddon[]|null); - /** NetPromoterScoreSurveySubmissionRequest notes */ - notes?: (string|null); + /** SubscriptionMspPricingResponse filePlans */ + filePlans?: (BI.IFilePlan[]|null); } - /** Represents a NetPromoterScoreSurveySubmissionRequest. */ - class NetPromoterScoreSurveySubmissionRequest implements INetPromoterScoreSurveySubmissionRequest { + /** Represents a SubscriptionMspPricingResponse. */ + class SubscriptionMspPricingResponse implements ISubscriptionMspPricingResponse { /** - * Constructs a new NetPromoterScoreSurveySubmissionRequest. + * Constructs a new SubscriptionMspPricingResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.INetPromoterScoreSurveySubmissionRequest); + constructor(properties?: BI.ISubscriptionMspPricingResponse); - /** NetPromoterScoreSurveySubmissionRequest surveyScore. */ - public surveyScore: number; + /** SubscriptionMspPricingResponse addons. */ + public addons: BI.IAddon[]; - /** NetPromoterScoreSurveySubmissionRequest notes. */ - public notes: string; + /** SubscriptionMspPricingResponse filePlans. */ + public filePlans: BI.IFilePlan[]; /** - * Creates a new NetPromoterScoreSurveySubmissionRequest instance using the specified properties. + * Creates a new SubscriptionMspPricingResponse instance using the specified properties. * @param [properties] Properties to set - * @returns NetPromoterScoreSurveySubmissionRequest instance + * @returns SubscriptionMspPricingResponse instance */ - public static create(properties?: BI.INetPromoterScoreSurveySubmissionRequest): BI.NetPromoterScoreSurveySubmissionRequest; + public static create(properties?: BI.ISubscriptionMspPricingResponse): BI.SubscriptionMspPricingResponse; /** - * Encodes the specified NetPromoterScoreSurveySubmissionRequest message. Does not implicitly {@link BI.NetPromoterScoreSurveySubmissionRequest.verify|verify} messages. - * @param message NetPromoterScoreSurveySubmissionRequest message or plain object to encode + * Encodes the specified SubscriptionMspPricingResponse message. 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 encode(message: BI.INetPromoterScoreSurveySubmissionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.ISubscriptionMspPricingResponse, 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 + * 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.INetPromoterScoreSurveySubmissionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.ISubscriptionMspPricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NetPromoterScoreSurveySubmissionRequest message from the specified reader or buffer. + * Decodes a SubscriptionMspPricingResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NetPromoterScoreSurveySubmissionRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NetPromoterScoreSurveySubmissionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionMspPricingResponse; /** - * Decodes a NetPromoterScoreSurveySubmissionRequest message from the specified reader or buffer, length delimited. + * Decodes a SubscriptionMspPricingResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NetPromoterScoreSurveySubmissionRequest + * @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.NetPromoterScoreSurveySubmissionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SubscriptionMspPricingResponse; /** - * Verifies a NetPromoterScoreSurveySubmissionRequest message. + * 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 NetPromoterScoreSurveySubmissionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SubscriptionMspPricingResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NetPromoterScoreSurveySubmissionRequest + * @returns SubscriptionMspPricingResponse */ - public static fromObject(object: { [k: string]: any }): BI.NetPromoterScoreSurveySubmissionRequest; + public static fromObject(object: { [k: string]: any }): BI.SubscriptionMspPricingResponse; /** - * Creates a plain object from a NetPromoterScoreSurveySubmissionRequest message. Also converts values to other types if specified. - * @param message NetPromoterScoreSurveySubmissionRequest + * Creates a plain object from a SubscriptionMspPricingResponse message. Also converts values to other types if specified. + * @param message SubscriptionMspPricingResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NetPromoterScoreSurveySubmissionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.SubscriptionMspPricingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NetPromoterScoreSurveySubmissionRequest to JSON. + * Converts this SubscriptionMspPricingResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NetPromoterScoreSurveySubmissionRequest + * Gets the default type url for SubscriptionMspPricingResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NetPromoterScoreSurveySubmissionResponse. */ - interface INetPromoterScoreSurveySubmissionResponse { + /** Properties of a SubscriptionMcPricingRequest. */ + interface ISubscriptionMcPricingRequest { } - /** Represents a NetPromoterScoreSurveySubmissionResponse. */ - class NetPromoterScoreSurveySubmissionResponse implements INetPromoterScoreSurveySubmissionResponse { + /** Represents a SubscriptionMcPricingRequest. */ + class SubscriptionMcPricingRequest implements ISubscriptionMcPricingRequest { /** - * Constructs a new NetPromoterScoreSurveySubmissionResponse. + * Constructs a new SubscriptionMcPricingRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.INetPromoterScoreSurveySubmissionResponse); + constructor(properties?: BI.ISubscriptionMcPricingRequest); /** - * Creates a new NetPromoterScoreSurveySubmissionResponse instance using the specified properties. + * Creates a new SubscriptionMcPricingRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NetPromoterScoreSurveySubmissionResponse instance + * @returns SubscriptionMcPricingRequest instance */ - public static create(properties?: BI.INetPromoterScoreSurveySubmissionResponse): BI.NetPromoterScoreSurveySubmissionResponse; + public static create(properties?: BI.ISubscriptionMcPricingRequest): BI.SubscriptionMcPricingRequest; /** - * Encodes the specified NetPromoterScoreSurveySubmissionResponse message. Does not implicitly {@link BI.NetPromoterScoreSurveySubmissionResponse.verify|verify} messages. - * @param message NetPromoterScoreSurveySubmissionResponse message or plain object to encode + * Encodes the specified SubscriptionMcPricingRequest message. 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 encode(message: BI.INetPromoterScoreSurveySubmissionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.ISubscriptionMcPricingRequest, 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 + * 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.INetPromoterScoreSurveySubmissionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.ISubscriptionMcPricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NetPromoterScoreSurveySubmissionResponse message from the specified reader or buffer. + * Decodes a SubscriptionMcPricingRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NetPromoterScoreSurveySubmissionResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NetPromoterScoreSurveySubmissionResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionMcPricingRequest; /** - * Decodes a NetPromoterScoreSurveySubmissionResponse message from the specified reader or buffer, length delimited. + * Decodes a SubscriptionMcPricingRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NetPromoterScoreSurveySubmissionResponse + * @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.NetPromoterScoreSurveySubmissionResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SubscriptionMcPricingRequest; /** - * Verifies a NetPromoterScoreSurveySubmissionResponse message. + * 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 NetPromoterScoreSurveySubmissionResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SubscriptionMcPricingRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NetPromoterScoreSurveySubmissionResponse + * @returns SubscriptionMcPricingRequest */ - public static fromObject(object: { [k: string]: any }): BI.NetPromoterScoreSurveySubmissionResponse; + public static fromObject(object: { [k: string]: any }): BI.SubscriptionMcPricingRequest; /** - * Creates a plain object from a NetPromoterScoreSurveySubmissionResponse message. Also converts values to other types if specified. - * @param message NetPromoterScoreSurveySubmissionResponse + * Creates a plain object from a SubscriptionMcPricingRequest message. Also converts values to other types if specified. + * @param message SubscriptionMcPricingRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NetPromoterScoreSurveySubmissionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.SubscriptionMcPricingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NetPromoterScoreSurveySubmissionResponse to JSON. + * Converts this SubscriptionMcPricingRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NetPromoterScoreSurveySubmissionResponse + * Gets the default type url for SubscriptionMcPricingRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NetPromoterScorePopupScheduleRequest. */ - interface INetPromoterScorePopupScheduleRequest { + /** Properties of a SubscriptionMcPricingResponse. */ + interface ISubscriptionMcPricingResponse { + + /** SubscriptionMcPricingResponse basePlans */ + basePlans?: (BI.IBasePlan[]|null); + + /** SubscriptionMcPricingResponse addons */ + addons?: (BI.IAddon[]|null); + + /** SubscriptionMcPricingResponse filePlans */ + filePlans?: (BI.IFilePlan[]|null); } - /** Represents a NetPromoterScorePopupScheduleRequest. */ - class NetPromoterScorePopupScheduleRequest implements INetPromoterScorePopupScheduleRequest { + /** Represents a SubscriptionMcPricingResponse. */ + class SubscriptionMcPricingResponse implements ISubscriptionMcPricingResponse { /** - * Constructs a new NetPromoterScorePopupScheduleRequest. + * Constructs a new SubscriptionMcPricingResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.INetPromoterScorePopupScheduleRequest); + constructor(properties?: BI.ISubscriptionMcPricingResponse); + + /** SubscriptionMcPricingResponse basePlans. */ + public basePlans: BI.IBasePlan[]; + + /** SubscriptionMcPricingResponse addons. */ + public addons: BI.IAddon[]; + + /** SubscriptionMcPricingResponse filePlans. */ + public filePlans: BI.IFilePlan[]; /** - * Creates a new NetPromoterScorePopupScheduleRequest instance using the specified properties. + * Creates a new SubscriptionMcPricingResponse instance using the specified properties. * @param [properties] Properties to set - * @returns NetPromoterScorePopupScheduleRequest instance + * @returns SubscriptionMcPricingResponse instance */ - public static create(properties?: BI.INetPromoterScorePopupScheduleRequest): BI.NetPromoterScorePopupScheduleRequest; + public static create(properties?: BI.ISubscriptionMcPricingResponse): BI.SubscriptionMcPricingResponse; /** - * Encodes the specified NetPromoterScorePopupScheduleRequest message. Does not implicitly {@link BI.NetPromoterScorePopupScheduleRequest.verify|verify} messages. - * @param message NetPromoterScorePopupScheduleRequest message or plain object to encode + * Encodes the specified SubscriptionMcPricingResponse message. 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 encode(message: BI.INetPromoterScorePopupScheduleRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.ISubscriptionMcPricingResponse, 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 + * 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.INetPromoterScorePopupScheduleRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.ISubscriptionMcPricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NetPromoterScorePopupScheduleRequest message from the specified reader or buffer. + * Decodes a SubscriptionMcPricingResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NetPromoterScorePopupScheduleRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NetPromoterScorePopupScheduleRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionMcPricingResponse; /** - * Decodes a NetPromoterScorePopupScheduleRequest message from the specified reader or buffer, length delimited. + * Decodes a SubscriptionMcPricingResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NetPromoterScorePopupScheduleRequest + * @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.NetPromoterScorePopupScheduleRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SubscriptionMcPricingResponse; /** - * Verifies a NetPromoterScorePopupScheduleRequest message. + * 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 NetPromoterScorePopupScheduleRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SubscriptionMcPricingResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NetPromoterScorePopupScheduleRequest + * @returns SubscriptionMcPricingResponse */ - public static fromObject(object: { [k: string]: any }): BI.NetPromoterScorePopupScheduleRequest; + public static fromObject(object: { [k: string]: any }): BI.SubscriptionMcPricingResponse; /** - * Creates a plain object from a NetPromoterScorePopupScheduleRequest message. Also converts values to other types if specified. - * @param message NetPromoterScorePopupScheduleRequest + * Creates a plain object from a SubscriptionMcPricingResponse message. Also converts values to other types if specified. + * @param message SubscriptionMcPricingResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NetPromoterScorePopupScheduleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.SubscriptionMcPricingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NetPromoterScorePopupScheduleRequest to JSON. + * Converts this SubscriptionMcPricingResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NetPromoterScorePopupScheduleRequest + * Gets the default type url for SubscriptionMcPricingResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NetPromoterScorePopupScheduleResponse. */ - interface INetPromoterScorePopupScheduleResponse { + /** Properties of a BasePlan. */ + interface IBasePlan { - /** NetPromoterScorePopupScheduleResponse showPopup */ - showPopup?: (boolean|null); + /** BasePlan id */ + id?: (number|null); + + /** BasePlan cost */ + cost?: (BI.ICost|null); } - /** Represents a NetPromoterScorePopupScheduleResponse. */ - class NetPromoterScorePopupScheduleResponse implements INetPromoterScorePopupScheduleResponse { + /** Represents a BasePlan. */ + class BasePlan implements IBasePlan { /** - * Constructs a new NetPromoterScorePopupScheduleResponse. + * Constructs a new BasePlan. * @param [properties] Properties to set */ - constructor(properties?: BI.INetPromoterScorePopupScheduleResponse); + constructor(properties?: BI.IBasePlan); - /** NetPromoterScorePopupScheduleResponse showPopup. */ - public showPopup: boolean; + /** BasePlan id. */ + public id: number; + + /** BasePlan cost. */ + public cost?: (BI.ICost|null); /** - * Creates a new NetPromoterScorePopupScheduleResponse instance using the specified properties. + * Creates a new BasePlan instance using the specified properties. * @param [properties] Properties to set - * @returns NetPromoterScorePopupScheduleResponse instance + * @returns BasePlan instance */ - public static create(properties?: BI.INetPromoterScorePopupScheduleResponse): BI.NetPromoterScorePopupScheduleResponse; + public static create(properties?: BI.IBasePlan): BI.BasePlan; /** - * Encodes the specified NetPromoterScorePopupScheduleResponse message. Does not implicitly {@link BI.NetPromoterScorePopupScheduleResponse.verify|verify} messages. - * @param message NetPromoterScorePopupScheduleResponse message or plain object to encode + * Encodes the specified BasePlan message. 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 encode(message: BI.INetPromoterScorePopupScheduleResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IBasePlan, 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 + * 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.INetPromoterScorePopupScheduleResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.IBasePlan, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NetPromoterScorePopupScheduleResponse message from the specified reader or buffer. + * Decodes a BasePlan message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NetPromoterScorePopupScheduleResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NetPromoterScorePopupScheduleResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.BasePlan; /** - * Decodes a NetPromoterScorePopupScheduleResponse message from the specified reader or buffer, length delimited. + * Decodes a BasePlan message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NetPromoterScorePopupScheduleResponse + * @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.NetPromoterScorePopupScheduleResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.BasePlan; /** - * Verifies a NetPromoterScorePopupScheduleResponse message. + * 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 NetPromoterScorePopupScheduleResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BasePlan message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NetPromoterScorePopupScheduleResponse + * @returns BasePlan */ - public static fromObject(object: { [k: string]: any }): BI.NetPromoterScorePopupScheduleResponse; + public static fromObject(object: { [k: string]: any }): BI.BasePlan; /** - * Creates a plain object from a NetPromoterScorePopupScheduleResponse message. Also converts values to other types if specified. - * @param message NetPromoterScorePopupScheduleResponse + * Creates a plain object from a BasePlan message. Also converts values to other types if specified. + * @param message BasePlan * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NetPromoterScorePopupScheduleResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.BasePlan, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NetPromoterScorePopupScheduleResponse to JSON. + * Converts this BasePlan to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NetPromoterScorePopupScheduleResponse + * Gets the default type url for BasePlan * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NetPromoterScorePopupDismissalRequest. */ - interface INetPromoterScorePopupDismissalRequest { + /** Properties of an Addon. */ + interface IAddon { + + /** Addon id */ + id?: (number|null); + + /** Addon cost */ + cost?: (BI.ICost|null); + + /** Addon amountConsumed */ + amountConsumed?: (number|Long|null); } - /** Represents a NetPromoterScorePopupDismissalRequest. */ - class NetPromoterScorePopupDismissalRequest implements INetPromoterScorePopupDismissalRequest { + /** Represents an Addon. */ + class Addon implements IAddon { /** - * Constructs a new NetPromoterScorePopupDismissalRequest. + * Constructs a new Addon. * @param [properties] Properties to set */ - constructor(properties?: BI.INetPromoterScorePopupDismissalRequest); + constructor(properties?: BI.IAddon); + + /** Addon id. */ + public id: number; + + /** Addon cost. */ + public cost?: (BI.ICost|null); + + /** Addon amountConsumed. */ + public amountConsumed: (number|Long); /** - * Creates a new NetPromoterScorePopupDismissalRequest instance using the specified properties. + * Creates a new Addon instance using the specified properties. * @param [properties] Properties to set - * @returns NetPromoterScorePopupDismissalRequest instance + * @returns Addon instance */ - public static create(properties?: BI.INetPromoterScorePopupDismissalRequest): BI.NetPromoterScorePopupDismissalRequest; + public static create(properties?: BI.IAddon): BI.Addon; /** - * Encodes the specified NetPromoterScorePopupDismissalRequest message. Does not implicitly {@link BI.NetPromoterScorePopupDismissalRequest.verify|verify} messages. - * @param message NetPromoterScorePopupDismissalRequest message or plain object to encode + * Encodes the specified Addon message. 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 encode(message: BI.INetPromoterScorePopupDismissalRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IAddon, 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 + * 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.INetPromoterScorePopupDismissalRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.IAddon, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NetPromoterScorePopupDismissalRequest message from the specified reader or buffer. + * Decodes an Addon message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NetPromoterScorePopupDismissalRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NetPromoterScorePopupDismissalRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.Addon; /** - * Decodes a NetPromoterScorePopupDismissalRequest message from the specified reader or buffer, length delimited. + * Decodes an Addon message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NetPromoterScorePopupDismissalRequest + * @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.NetPromoterScorePopupDismissalRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.Addon; /** - * Verifies a NetPromoterScorePopupDismissalRequest message. + * 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 a NetPromoterScorePopupDismissalRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Addon message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NetPromoterScorePopupDismissalRequest + * @returns Addon */ - public static fromObject(object: { [k: string]: any }): BI.NetPromoterScorePopupDismissalRequest; + public static fromObject(object: { [k: string]: any }): BI.Addon; /** - * Creates a plain object from a NetPromoterScorePopupDismissalRequest message. Also converts values to other types if specified. - * @param message NetPromoterScorePopupDismissalRequest + * Creates a plain object from an Addon message. Also converts values to other types if specified. + * @param message Addon * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NetPromoterScorePopupDismissalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.Addon, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NetPromoterScorePopupDismissalRequest to JSON. + * Converts this Addon to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NetPromoterScorePopupDismissalRequest + * Gets the default type url for Addon * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NetPromoterScorePopupDismissalResponse. */ - interface INetPromoterScorePopupDismissalResponse { + /** Properties of a FilePlan. */ + interface IFilePlan { + + /** FilePlan id */ + id?: (number|null); + + /** FilePlan cost */ + cost?: (BI.ICost|null); } - /** Represents a NetPromoterScorePopupDismissalResponse. */ - class NetPromoterScorePopupDismissalResponse implements INetPromoterScorePopupDismissalResponse { + /** Represents a FilePlan. */ + class FilePlan implements IFilePlan { /** - * Constructs a new NetPromoterScorePopupDismissalResponse. + * Constructs a new FilePlan. * @param [properties] Properties to set */ - constructor(properties?: BI.INetPromoterScorePopupDismissalResponse); + constructor(properties?: BI.IFilePlan); + + /** FilePlan id. */ + public id: number; + + /** FilePlan cost. */ + public cost?: (BI.ICost|null); /** - * Creates a new NetPromoterScorePopupDismissalResponse instance using the specified properties. + * Creates a new FilePlan instance using the specified properties. * @param [properties] Properties to set - * @returns NetPromoterScorePopupDismissalResponse instance + * @returns FilePlan instance */ - public static create(properties?: BI.INetPromoterScorePopupDismissalResponse): BI.NetPromoterScorePopupDismissalResponse; + public static create(properties?: BI.IFilePlan): BI.FilePlan; /** - * Encodes the specified NetPromoterScorePopupDismissalResponse message. Does not implicitly {@link BI.NetPromoterScorePopupDismissalResponse.verify|verify} messages. - * @param message NetPromoterScorePopupDismissalResponse message or plain object to encode + * Encodes the specified FilePlan message. 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 encode(message: BI.INetPromoterScorePopupDismissalResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IFilePlan, 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 + * 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.INetPromoterScorePopupDismissalResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.IFilePlan, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NetPromoterScorePopupDismissalResponse message from the specified reader or buffer. + * Decodes a FilePlan message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NetPromoterScorePopupDismissalResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NetPromoterScorePopupDismissalResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.FilePlan; /** - * Decodes a NetPromoterScorePopupDismissalResponse message from the specified reader or buffer, length delimited. + * Decodes a FilePlan message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NetPromoterScorePopupDismissalResponse + * @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.NetPromoterScorePopupDismissalResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.FilePlan; /** - * Verifies a NetPromoterScorePopupDismissalResponse message. + * 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 NetPromoterScorePopupDismissalResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FilePlan message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NetPromoterScorePopupDismissalResponse + * @returns FilePlan */ - public static fromObject(object: { [k: string]: any }): BI.NetPromoterScorePopupDismissalResponse; + public static fromObject(object: { [k: string]: any }): BI.FilePlan; /** - * Creates a plain object from a NetPromoterScorePopupDismissalResponse message. Also converts values to other types if specified. - * @param message NetPromoterScorePopupDismissalResponse + * Creates a plain object from a FilePlan message. Also converts values to other types if specified. + * @param message FilePlan * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NetPromoterScorePopupDismissalResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.FilePlan, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NetPromoterScorePopupDismissalResponse to JSON. + * Converts this FilePlan to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NetPromoterScorePopupDismissalResponse + * Gets the default type url for FilePlan * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a KCMLicenseRequest. */ - interface IKCMLicenseRequest { + /** Properties of a Cost. */ + interface ICost { - /** KCMLicenseRequest enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + /** Cost amount */ + amount?: (number|null); + + /** Cost amountPer */ + amountPer?: (BI.Cost.AmountPer|null); + + /** Cost currency */ + currency?: (BI.Currency|null); } - /** Represents a KCMLicenseRequest. */ - class KCMLicenseRequest implements IKCMLicenseRequest { + /** Represents a Cost. */ + class Cost implements ICost { /** - * Constructs a new KCMLicenseRequest. + * Constructs a new Cost. * @param [properties] Properties to set */ - constructor(properties?: BI.IKCMLicenseRequest); + constructor(properties?: BI.ICost); - /** KCMLicenseRequest enterpriseUserId. */ - public enterpriseUserId: (number|Long); + /** Cost amount. */ + public amount: number; + + /** Cost amountPer. */ + public amountPer: BI.Cost.AmountPer; + + /** Cost currency. */ + public currency: BI.Currency; /** - * Creates a new KCMLicenseRequest instance using the specified properties. + * Creates a new Cost instance using the specified properties. * @param [properties] Properties to set - * @returns KCMLicenseRequest instance + * @returns Cost instance */ - public static create(properties?: BI.IKCMLicenseRequest): BI.KCMLicenseRequest; + public static create(properties?: BI.ICost): BI.Cost; /** - * Encodes the specified KCMLicenseRequest message. Does not implicitly {@link BI.KCMLicenseRequest.verify|verify} messages. - * @param message KCMLicenseRequest message or plain object to encode + * Encodes the specified Cost message. 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 encode(message: BI.IKCMLicenseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.ICost, 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 + * 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.IKCMLicenseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.ICost, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a KCMLicenseRequest message from the specified reader or buffer. + * Decodes a Cost message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns KCMLicenseRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.KCMLicenseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.Cost; /** - * Decodes a KCMLicenseRequest message from the specified reader or buffer, length delimited. + * Decodes a Cost message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns KCMLicenseRequest + * @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.KCMLicenseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.Cost; /** - * Verifies a KCMLicenseRequest message. + * 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 KCMLicenseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Cost message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns KCMLicenseRequest + * @returns Cost */ - public static fromObject(object: { [k: string]: any }): BI.KCMLicenseRequest; + public static fromObject(object: { [k: string]: any }): BI.Cost; /** - * Creates a plain object from a KCMLicenseRequest message. Also converts values to other types if specified. - * @param message KCMLicenseRequest + * Creates a plain object from a Cost message. Also converts values to other types if specified. + * @param message Cost * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.KCMLicenseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.Cost, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this KCMLicenseRequest to JSON. + * Converts this Cost to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for KCMLicenseRequest + * Gets the default type url for Cost * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a KCMLicenseResponse. */ - interface IKCMLicenseResponse { + namespace Cost { - /** KCMLicenseResponse message */ - message?: (string|null); + /** AmountPer enum. */ + enum AmountPer { + UNKNOWN = 0, + MONTH = 1, + USER_MONTH = 2, + USER_CONSUMED_MONTH = 3, + ENDPOINT_MONTH = 4, + USER_YEAR = 5, + USER_CONSUMED_YEAR = 6, + YEAR = 7, + ENDPOINT_YEAR = 8 + } } - /** Represents a KCMLicenseResponse. */ - class KCMLicenseResponse implements IKCMLicenseResponse { + /** Properties of an InvoiceSearchRequest. */ + interface IInvoiceSearchRequest { + + /** InvoiceSearchRequest size */ + size?: (number|null); + + /** InvoiceSearchRequest startingAfterId */ + startingAfterId?: (number|null); + + /** InvoiceSearchRequest allInvoicesUnfiltered */ + allInvoicesUnfiltered?: (boolean|null); + } + + /** Represents an InvoiceSearchRequest. */ + class InvoiceSearchRequest implements IInvoiceSearchRequest { /** - * Constructs a new KCMLicenseResponse. + * Constructs a new InvoiceSearchRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IKCMLicenseResponse); + constructor(properties?: BI.IInvoiceSearchRequest); - /** KCMLicenseResponse message. */ - public message: string; + /** InvoiceSearchRequest size. */ + public size: number; + + /** InvoiceSearchRequest startingAfterId. */ + public startingAfterId: number; + + /** InvoiceSearchRequest allInvoicesUnfiltered. */ + public allInvoicesUnfiltered: boolean; /** - * Creates a new KCMLicenseResponse instance using the specified properties. + * Creates a new InvoiceSearchRequest instance using the specified properties. * @param [properties] Properties to set - * @returns KCMLicenseResponse instance + * @returns InvoiceSearchRequest instance */ - public static create(properties?: BI.IKCMLicenseResponse): BI.KCMLicenseResponse; + public static create(properties?: BI.IInvoiceSearchRequest): BI.InvoiceSearchRequest; /** - * Encodes the specified KCMLicenseResponse message. Does not implicitly {@link BI.KCMLicenseResponse.verify|verify} messages. - * @param message KCMLicenseResponse message or plain object to encode + * Encodes the specified InvoiceSearchRequest message. 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 encode(message: BI.IKCMLicenseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IInvoiceSearchRequest, 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 + * 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.IKCMLicenseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.IInvoiceSearchRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a KCMLicenseResponse message from the specified reader or buffer. + * Decodes an InvoiceSearchRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns KCMLicenseResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.KCMLicenseResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.InvoiceSearchRequest; /** - * Decodes a KCMLicenseResponse message from the specified reader or buffer, length delimited. + * Decodes an InvoiceSearchRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns KCMLicenseResponse + * @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.KCMLicenseResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.InvoiceSearchRequest; /** - * Verifies a KCMLicenseResponse message. + * 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 a KCMLicenseResponse message from a plain object. Also converts values to their respective internal types. + * Creates an InvoiceSearchRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns KCMLicenseResponse + * @returns InvoiceSearchRequest */ - public static fromObject(object: { [k: string]: any }): BI.KCMLicenseResponse; + public static fromObject(object: { [k: string]: any }): BI.InvoiceSearchRequest; /** - * Creates a plain object from a KCMLicenseResponse message. Also converts values to other types if specified. - * @param message KCMLicenseResponse + * Creates a plain object from an InvoiceSearchRequest message. Also converts values to other types if specified. + * @param message InvoiceSearchRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.KCMLicenseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.InvoiceSearchRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this KCMLicenseResponse to JSON. + * Converts this InvoiceSearchRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for KCMLicenseResponse + * Gets the default type url for InvoiceSearchRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** EventType enum. */ - enum EventType { - UNKNOWN_TRACKING_EVENT_TYPE = 0, - TRACKING_POPUP_DISPLAYED = 1, - TRACKING_POPUP_ACCEPTED = 2, - TRACKING_POPUP_DISMISSED = 3, - TRACKING_POPUP_PAID = 4, - TRACKING_PUSH_CLICKED = 5, - CONSOLE_ACTION = 6, - VAULT_ACTION = 7 - } - - /** Properties of an EventRequest. */ - interface IEventRequest { - - /** EventRequest eventType */ - eventType?: (BI.EventType|null); - - /** EventRequest eventValue */ - eventValue?: (string|null); - - /** EventRequest eventTime */ - eventTime?: (number|Long|null); + /** Properties of an InvoiceSearchResponse. */ + interface IInvoiceSearchResponse { - /** EventRequest attributes */ - attributes?: (google.protobuf.IStruct|null); + /** InvoiceSearchResponse invoices */ + invoices?: (BI.IInvoice[]|null); } - /** Represents an EventRequest. */ - class EventRequest implements IEventRequest { + /** Represents an InvoiceSearchResponse. */ + class InvoiceSearchResponse implements IInvoiceSearchResponse { /** - * Constructs a new EventRequest. + * Constructs a new InvoiceSearchResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IEventRequest); - - /** EventRequest eventType. */ - public eventType: BI.EventType; - - /** EventRequest eventValue. */ - public eventValue: string; - - /** EventRequest eventTime. */ - public eventTime: (number|Long); + constructor(properties?: BI.IInvoiceSearchResponse); - /** EventRequest attributes. */ - public attributes?: (google.protobuf.IStruct|null); + /** InvoiceSearchResponse invoices. */ + public invoices: BI.IInvoice[]; /** - * Creates a new EventRequest instance using the specified properties. + * Creates a new InvoiceSearchResponse instance using the specified properties. * @param [properties] Properties to set - * @returns EventRequest instance + * @returns InvoiceSearchResponse instance */ - public static create(properties?: BI.IEventRequest): BI.EventRequest; + public static create(properties?: BI.IInvoiceSearchResponse): BI.InvoiceSearchResponse; /** - * Encodes the specified EventRequest message. Does not implicitly {@link BI.EventRequest.verify|verify} messages. - * @param message EventRequest message or plain object to encode + * Encodes the specified InvoiceSearchResponse message. 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 encode(message: BI.IEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IInvoiceSearchResponse, 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 + * 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.IEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.IInvoiceSearchResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EventRequest message from the specified reader or buffer. + * Decodes an InvoiceSearchResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EventRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.EventRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.InvoiceSearchResponse; /** - * Decodes an EventRequest message from the specified reader or buffer, length delimited. + * Decodes an InvoiceSearchResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EventRequest + * @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.EventRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.InvoiceSearchResponse; /** - * Verifies an EventRequest message. + * 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 EventRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InvoiceSearchResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EventRequest + * @returns InvoiceSearchResponse */ - public static fromObject(object: { [k: string]: any }): BI.EventRequest; + public static fromObject(object: { [k: string]: any }): BI.InvoiceSearchResponse; /** - * Creates a plain object from an EventRequest message. Also converts values to other types if specified. - * @param message EventRequest + * Creates a plain object from an InvoiceSearchResponse message. Also converts values to other types if specified. + * @param message InvoiceSearchResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.EventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.InvoiceSearchResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EventRequest to JSON. + * Converts this InvoiceSearchResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EventRequest + * Gets the default type url for InvoiceSearchResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EventsRequest. */ - interface IEventsRequest { + /** Properties of an Invoice. */ + interface IInvoice { - /** EventsRequest event */ - event?: (BI.IEventRequest[]|null); + /** Invoice id */ + id?: (number|null); + + /** Invoice invoiceNumber */ + invoiceNumber?: (string|null); + + /** Invoice invoiceDate */ + invoiceDate?: (number|Long|null); + + /** Invoice licenseCount */ + licenseCount?: (number|null); + + /** Invoice totalCost */ + totalCost?: (BI.Invoice.ICost|null); + + /** Invoice invoiceType */ + invoiceType?: (BI.Invoice.Type|null); } - /** Represents an EventsRequest. */ - class EventsRequest implements IEventsRequest { + /** Represents an Invoice. */ + class Invoice implements IInvoice { /** - * Constructs a new EventsRequest. + * Constructs a new Invoice. * @param [properties] Properties to set */ - constructor(properties?: BI.IEventsRequest); + constructor(properties?: BI.IInvoice); - /** EventsRequest event. */ - public event: BI.IEventRequest[]; + /** Invoice id. */ + public id: number; + + /** Invoice invoiceNumber. */ + public invoiceNumber: string; + + /** Invoice invoiceDate. */ + public invoiceDate: (number|Long); + + /** Invoice licenseCount. */ + public licenseCount: number; + + /** Invoice totalCost. */ + public totalCost?: (BI.Invoice.ICost|null); + + /** Invoice invoiceType. */ + public invoiceType: BI.Invoice.Type; /** - * Creates a new EventsRequest instance using the specified properties. + * Creates a new Invoice instance using the specified properties. * @param [properties] Properties to set - * @returns EventsRequest instance + * @returns Invoice instance */ - public static create(properties?: BI.IEventsRequest): BI.EventsRequest; + public static create(properties?: BI.IInvoice): BI.Invoice; /** - * Encodes the specified EventsRequest message. Does not implicitly {@link BI.EventsRequest.verify|verify} messages. - * @param message EventsRequest message or plain object to encode + * Encodes the specified Invoice message. 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 encode(message: BI.IEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IInvoice, 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 + * 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.IEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.IInvoice, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EventsRequest message from the specified reader or buffer. + * Decodes an Invoice message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EventsRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.EventsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.Invoice; /** - * Decodes an EventsRequest message from the specified reader or buffer, length delimited. + * Decodes an Invoice message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EventsRequest + * @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.EventsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.Invoice; /** - * Verifies an EventsRequest message. + * 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 EventsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Invoice message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EventsRequest + * @returns Invoice */ - public static fromObject(object: { [k: string]: any }): BI.EventsRequest; + public static fromObject(object: { [k: string]: any }): BI.Invoice; /** - * Creates a plain object from an EventsRequest message. Also converts values to other types if specified. - * @param message EventsRequest + * Creates a plain object from an Invoice message. Also converts values to other types if specified. + * @param message Invoice * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.EventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.Invoice, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EventsRequest to JSON. + * Converts this Invoice to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EventsRequest + * Gets the default type url for Invoice * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EventResponse. */ - interface IEventResponse { + namespace Invoice { - /** EventResponse index */ - index?: (number|null); + /** Properties of a Cost. */ + interface ICost { - /** EventResponse status */ - status?: (boolean|null); + /** Cost amount */ + amount?: (number|null); + + /** Cost currency */ + currency?: (BI.Currency|null); + } + + /** Represents a Cost. */ + class Cost implements ICost { + + /** + * Constructs a new Cost. + * @param [properties] Properties to set + */ + constructor(properties?: BI.Invoice.ICost); + + /** Cost amount. */ + public amount: number; + + /** Cost currency. */ + public currency: BI.Currency; + + /** + * Creates a new Cost instance using the specified properties. + * @param [properties] Properties to set + * @returns Cost instance + */ + public static create(properties?: BI.Invoice.ICost): BI.Invoice.Cost; + + /** + * Encodes the specified Cost message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns Cost + */ + public static fromObject(object: { [k: string]: any }): BI.Invoice.Cost; + + /** + * Creates a plain object from a Cost message. Also converts values to other types if specified. + * @param message Cost + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.Invoice.Cost, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Cost to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Cost + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Type enum. */ + enum Type { + UNKNOWN = 0, + NEW = 1, + RENEWAL = 2, + UPGRADE = 3, + RESTORE = 4, + ASSOCIATION = 5, + OVERAGE = 6 + } } - /** Represents an EventResponse. */ - class EventResponse implements IEventResponse { + /** Properties of a VaultInvoicesListRequest. */ + interface IVaultInvoicesListRequest { + } + + /** Represents a VaultInvoicesListRequest. */ + class VaultInvoicesListRequest implements IVaultInvoicesListRequest { /** - * Constructs a new EventResponse. + * Constructs a new VaultInvoicesListRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IEventResponse); - - /** EventResponse index. */ - public index: number; - - /** EventResponse status. */ - public status: boolean; + constructor(properties?: BI.IVaultInvoicesListRequest); /** - * Creates a new EventResponse instance using the specified properties. + * Creates a new VaultInvoicesListRequest instance using the specified properties. * @param [properties] Properties to set - * @returns EventResponse instance + * @returns VaultInvoicesListRequest instance */ - public static create(properties?: BI.IEventResponse): BI.EventResponse; + public static create(properties?: BI.IVaultInvoicesListRequest): BI.VaultInvoicesListRequest; /** - * Encodes the specified EventResponse message. Does not implicitly {@link BI.EventResponse.verify|verify} messages. - * @param message EventResponse message or plain object to encode + * Encodes the specified VaultInvoicesListRequest message. 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 encode(message: BI.IEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IVaultInvoicesListRequest, 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 + * 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.IEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.IVaultInvoicesListRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EventResponse message from the specified reader or buffer. + * Decodes a VaultInvoicesListRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EventResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.EventResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.VaultInvoicesListRequest; /** - * Decodes an EventResponse message from the specified reader or buffer, length delimited. + * Decodes a VaultInvoicesListRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EventResponse + * @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.EventResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.VaultInvoicesListRequest; /** - * Verifies an EventResponse message. + * 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 an EventResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VaultInvoicesListRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EventResponse + * @returns VaultInvoicesListRequest */ - public static fromObject(object: { [k: string]: any }): BI.EventResponse; + public static fromObject(object: { [k: string]: any }): BI.VaultInvoicesListRequest; /** - * Creates a plain object from an EventResponse message. Also converts values to other types if specified. - * @param message EventResponse + * Creates a plain object from a VaultInvoicesListRequest message. Also converts values to other types if specified. + * @param message VaultInvoicesListRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.EventResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.VaultInvoicesListRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EventResponse to JSON. + * Converts this VaultInvoicesListRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EventResponse + * Gets the default type url for VaultInvoicesListRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EventsResponse. */ - interface IEventsResponse { + /** Properties of a VaultInvoicesListResponse. */ + interface IVaultInvoicesListResponse { - /** EventsResponse response */ - response?: (BI.IEventResponse[]|null); + /** VaultInvoicesListResponse invoices */ + invoices?: (BI.IVaultInvoice[]|null); } - /** Represents an EventsResponse. */ - class EventsResponse implements IEventsResponse { + /** Represents a VaultInvoicesListResponse. */ + class VaultInvoicesListResponse implements IVaultInvoicesListResponse { /** - * Constructs a new EventsResponse. + * Constructs a new VaultInvoicesListResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IEventsResponse); + constructor(properties?: BI.IVaultInvoicesListResponse); - /** EventsResponse response. */ - public response: BI.IEventResponse[]; + /** VaultInvoicesListResponse invoices. */ + public invoices: BI.IVaultInvoice[]; /** - * Creates a new EventsResponse instance using the specified properties. + * Creates a new VaultInvoicesListResponse instance using the specified properties. * @param [properties] Properties to set - * @returns EventsResponse instance + * @returns VaultInvoicesListResponse instance */ - public static create(properties?: BI.IEventsResponse): BI.EventsResponse; + public static create(properties?: BI.IVaultInvoicesListResponse): BI.VaultInvoicesListResponse; /** - * Encodes the specified EventsResponse message. Does not implicitly {@link BI.EventsResponse.verify|verify} messages. - * @param message EventsResponse message or plain object to encode + * Encodes the specified VaultInvoicesListResponse message. 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 encode(message: BI.IEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IVaultInvoicesListResponse, 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 + * 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.IEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.IVaultInvoicesListResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EventsResponse message from the specified reader or buffer. + * Decodes a VaultInvoicesListResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EventsResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.EventsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.VaultInvoicesListResponse; /** - * Decodes an EventsResponse message from the specified reader or buffer, length delimited. + * Decodes a VaultInvoicesListResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EventsResponse + * @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.EventsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.VaultInvoicesListResponse; /** - * Verifies an EventsResponse message. + * 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 an EventsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VaultInvoicesListResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EventsResponse + * @returns VaultInvoicesListResponse */ - public static fromObject(object: { [k: string]: any }): BI.EventsResponse; + public static fromObject(object: { [k: string]: any }): BI.VaultInvoicesListResponse; /** - * Creates a plain object from an EventsResponse message. Also converts values to other types if specified. - * @param message EventsResponse + * Creates a plain object from a VaultInvoicesListResponse message. Also converts values to other types if specified. + * @param message VaultInvoicesListResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.EventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.VaultInvoicesListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EventsResponse to JSON. + * Converts this VaultInvoicesListResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EventsResponse + * Gets the default type url for VaultInvoicesListResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CustomerCaptureRequest. */ - interface ICustomerCaptureRequest { - - /** CustomerCaptureRequest pageUrl */ - pageUrl?: (string|null); + /** Properties of a VaultInvoice. */ + interface IVaultInvoice { - /** CustomerCaptureRequest tree */ - tree?: (string|null); + /** VaultInvoice id */ + id?: (number|null); - /** CustomerCaptureRequest hash */ - hash?: (string|null); + /** VaultInvoice invoiceNumber */ + invoiceNumber?: (string|null); - /** CustomerCaptureRequest image */ - image?: (string|null); + /** VaultInvoice dateCreated */ + dateCreated?: (number|Long|null); - /** CustomerCaptureRequest pageLoadTime */ - pageLoadTime?: (string|null); + /** VaultInvoice total */ + total?: (BI.Invoice.ICost|null); - /** CustomerCaptureRequest keyId */ - keyId?: (string|null); + /** VaultInvoice purchaseType */ + purchaseType?: (BI.Invoice.Type|null); + } - /** CustomerCaptureRequest test */ - test?: (boolean|null); - - /** CustomerCaptureRequest issueType */ - issueType?: (string|null); - - /** CustomerCaptureRequest notes */ - notes?: (string|null); - } - - /** Represents a CustomerCaptureRequest. */ - class CustomerCaptureRequest implements ICustomerCaptureRequest { + /** Represents a VaultInvoice. */ + class VaultInvoice implements IVaultInvoice { /** - * Constructs a new CustomerCaptureRequest. + * Constructs a new VaultInvoice. * @param [properties] Properties to set */ - constructor(properties?: BI.ICustomerCaptureRequest); - - /** CustomerCaptureRequest pageUrl. */ - public pageUrl: string; - - /** CustomerCaptureRequest tree. */ - public tree: string; - - /** CustomerCaptureRequest hash. */ - public hash: string; - - /** CustomerCaptureRequest image. */ - public image: string; + constructor(properties?: BI.IVaultInvoice); - /** CustomerCaptureRequest pageLoadTime. */ - public pageLoadTime: string; + /** VaultInvoice id. */ + public id: number; - /** CustomerCaptureRequest keyId. */ - public keyId: string; + /** VaultInvoice invoiceNumber. */ + public invoiceNumber: string; - /** CustomerCaptureRequest test. */ - public test: boolean; + /** VaultInvoice dateCreated. */ + public dateCreated: (number|Long); - /** CustomerCaptureRequest issueType. */ - public issueType: string; + /** VaultInvoice total. */ + public total?: (BI.Invoice.ICost|null); - /** CustomerCaptureRequest notes. */ - public notes: string; + /** VaultInvoice purchaseType. */ + public purchaseType: BI.Invoice.Type; /** - * Creates a new CustomerCaptureRequest instance using the specified properties. + * Creates a new VaultInvoice instance using the specified properties. * @param [properties] Properties to set - * @returns CustomerCaptureRequest instance + * @returns VaultInvoice instance */ - public static create(properties?: BI.ICustomerCaptureRequest): BI.CustomerCaptureRequest; + public static create(properties?: BI.IVaultInvoice): BI.VaultInvoice; /** - * Encodes the specified CustomerCaptureRequest message. Does not implicitly {@link BI.CustomerCaptureRequest.verify|verify} messages. - * @param message CustomerCaptureRequest message or plain object to encode + * Encodes the specified VaultInvoice message. 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 encode(message: BI.ICustomerCaptureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IVaultInvoice, 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 + * 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.ICustomerCaptureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.IVaultInvoice, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CustomerCaptureRequest message from the specified reader or buffer. + * Decodes a VaultInvoice message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CustomerCaptureRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.CustomerCaptureRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.VaultInvoice; /** - * Decodes a CustomerCaptureRequest message from the specified reader or buffer, length delimited. + * Decodes a VaultInvoice message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CustomerCaptureRequest + * @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.CustomerCaptureRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.VaultInvoice; /** - * Verifies a CustomerCaptureRequest message. + * 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 CustomerCaptureRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VaultInvoice message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CustomerCaptureRequest + * @returns VaultInvoice */ - public static fromObject(object: { [k: string]: any }): BI.CustomerCaptureRequest; + public static fromObject(object: { [k: string]: any }): BI.VaultInvoice; /** - * Creates a plain object from a CustomerCaptureRequest message. Also converts values to other types if specified. - * @param message CustomerCaptureRequest + * Creates a plain object from a VaultInvoice message. Also converts values to other types if specified. + * @param message VaultInvoice * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.CustomerCaptureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.VaultInvoice, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CustomerCaptureRequest to JSON. + * Converts this VaultInvoice to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CustomerCaptureRequest + * Gets the default type url for VaultInvoice * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CustomerCaptureResponse. */ - interface ICustomerCaptureResponse { + /** Properties of an InvoiceDownloadRequest. */ + interface IInvoiceDownloadRequest { + + /** InvoiceDownloadRequest invoiceNumber */ + invoiceNumber?: (string|null); } - /** Represents a CustomerCaptureResponse. */ - class CustomerCaptureResponse implements ICustomerCaptureResponse { + /** Represents an InvoiceDownloadRequest. */ + class InvoiceDownloadRequest implements IInvoiceDownloadRequest { /** - * Constructs a new CustomerCaptureResponse. + * Constructs a new InvoiceDownloadRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.ICustomerCaptureResponse); + constructor(properties?: BI.IInvoiceDownloadRequest); + + /** InvoiceDownloadRequest invoiceNumber. */ + public invoiceNumber: string; /** - * Creates a new CustomerCaptureResponse instance using the specified properties. + * Creates a new InvoiceDownloadRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CustomerCaptureResponse instance + * @returns InvoiceDownloadRequest instance */ - public static create(properties?: BI.ICustomerCaptureResponse): BI.CustomerCaptureResponse; + public static create(properties?: BI.IInvoiceDownloadRequest): BI.InvoiceDownloadRequest; /** - * Encodes the specified CustomerCaptureResponse message. Does not implicitly {@link BI.CustomerCaptureResponse.verify|verify} messages. - * @param message CustomerCaptureResponse message or plain object to encode + * Encodes the specified InvoiceDownloadRequest message. 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 encode(message: BI.ICustomerCaptureResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IInvoiceDownloadRequest, 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 + * 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.ICustomerCaptureResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.IInvoiceDownloadRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CustomerCaptureResponse message from the specified reader or buffer. + * Decodes an InvoiceDownloadRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CustomerCaptureResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.CustomerCaptureResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.InvoiceDownloadRequest; /** - * Decodes a CustomerCaptureResponse message from the specified reader or buffer, length delimited. + * Decodes an InvoiceDownloadRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CustomerCaptureResponse + * @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.CustomerCaptureResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.InvoiceDownloadRequest; /** - * Verifies a CustomerCaptureResponse message. + * 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 a CustomerCaptureResponse message from a plain object. Also converts values to their respective internal types. + * Creates an InvoiceDownloadRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CustomerCaptureResponse + * @returns InvoiceDownloadRequest */ - public static fromObject(object: { [k: string]: any }): BI.CustomerCaptureResponse; + public static fromObject(object: { [k: string]: any }): BI.InvoiceDownloadRequest; /** - * Creates a plain object from a CustomerCaptureResponse message. Also converts values to other types if specified. - * @param message CustomerCaptureResponse + * Creates a plain object from an InvoiceDownloadRequest message. Also converts values to other types if specified. + * @param message InvoiceDownloadRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.CustomerCaptureResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.InvoiceDownloadRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CustomerCaptureResponse to JSON. + * Converts this InvoiceDownloadRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CustomerCaptureResponse + * Gets the default type url for InvoiceDownloadRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** PurchaseProductType enum. */ - enum PurchaseProductType { - upgradeToEnterprise = 0, - addUsers = 1, - addStorage = 2, - addAudit = 3, - addBreachWatch = 4, - addCompliance = 5, - addChat = 6, - addPAM = 7, - addSilverSupport = 8, - addPlatinumSupport = 9, - addKEPM = 10 - } - - /** Properties of an Error. */ - interface IError { - - /** Error code */ - code?: (string|null); + /** Properties of an InvoiceDownloadResponse. */ + interface IInvoiceDownloadResponse { - /** Error message */ - message?: (string|null); + /** InvoiceDownloadResponse link */ + link?: (string|null); - /** Error extras */ - extras?: ({ [k: string]: string }|null); + /** InvoiceDownloadResponse fileName */ + fileName?: (string|null); } - /** Represents an Error. */ - class Error implements IError { + /** Represents an InvoiceDownloadResponse. */ + class InvoiceDownloadResponse implements IInvoiceDownloadResponse { /** - * Constructs a new Error. + * Constructs a new InvoiceDownloadResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IError); - - /** Error code. */ - public code: string; + constructor(properties?: BI.IInvoiceDownloadResponse); - /** Error message. */ - public message: string; + /** InvoiceDownloadResponse link. */ + public link: string; - /** Error extras. */ - public extras: { [k: string]: string }; + /** InvoiceDownloadResponse fileName. */ + public fileName: string; /** - * Creates a new Error instance using the specified properties. + * Creates a new InvoiceDownloadResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Error instance + * @returns InvoiceDownloadResponse instance */ - public static create(properties?: BI.IError): BI.Error; + public static create(properties?: BI.IInvoiceDownloadResponse): BI.InvoiceDownloadResponse; /** - * Encodes the specified Error message. Does not implicitly {@link BI.Error.verify|verify} messages. - * @param message Error message or plain object to encode + * Encodes the specified InvoiceDownloadResponse message. 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 encode(message: BI.IError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IInvoiceDownloadResponse, 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 + * 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.IError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.IInvoiceDownloadResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Error message from the specified reader or buffer. + * Decodes an InvoiceDownloadResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Error + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.Error; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.InvoiceDownloadResponse; /** - * Decodes an Error message from the specified reader or buffer, length delimited. + * Decodes an InvoiceDownloadResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Error + * @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.Error; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.InvoiceDownloadResponse; /** - * Verifies an Error message. + * 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 Error message from a plain object. Also converts values to their respective internal types. + * Creates an InvoiceDownloadResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Error + * @returns InvoiceDownloadResponse */ - public static fromObject(object: { [k: string]: any }): BI.Error; + public static fromObject(object: { [k: string]: any }): BI.InvoiceDownloadResponse; /** - * Creates a plain object from an Error message. Also converts values to other types if specified. - * @param message Error + * Creates a plain object from an InvoiceDownloadResponse message. Also converts values to other types if specified. + * @param message InvoiceDownloadResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.Error, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.InvoiceDownloadResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Error to JSON. + * Converts this InvoiceDownloadResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Error + * Gets the default type url for InvoiceDownloadResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a QuotePurchase. */ - interface IQuotePurchase { - - /** QuotePurchase quoteTotal */ - quoteTotal?: (number|null); - - /** QuotePurchase includedTax */ - includedTax?: (boolean|null); - - /** QuotePurchase includedOtherAddons */ - includedOtherAddons?: (boolean|null); - - /** QuotePurchase taxAmount */ - taxAmount?: (number|null); - - /** QuotePurchase taxLabel */ - taxLabel?: (string|null); + /** Properties of a VaultInvoiceDownloadLinkRequest. */ + interface IVaultInvoiceDownloadLinkRequest { - /** QuotePurchase purchaseIdentifier */ - purchaseIdentifier?: (string|null); + /** VaultInvoiceDownloadLinkRequest invoiceNumber */ + invoiceNumber?: (string|null); } - /** Represents a QuotePurchase. */ - class QuotePurchase implements IQuotePurchase { + /** Represents a VaultInvoiceDownloadLinkRequest. */ + class VaultInvoiceDownloadLinkRequest implements IVaultInvoiceDownloadLinkRequest { /** - * Constructs a new QuotePurchase. + * Constructs a new VaultInvoiceDownloadLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IQuotePurchase); - - /** QuotePurchase quoteTotal. */ - public quoteTotal: number; - - /** QuotePurchase includedTax. */ - public includedTax: boolean; - - /** QuotePurchase includedOtherAddons. */ - public includedOtherAddons: boolean; - - /** QuotePurchase taxAmount. */ - public taxAmount: number; - - /** QuotePurchase taxLabel. */ - public taxLabel: string; + constructor(properties?: BI.IVaultInvoiceDownloadLinkRequest); - /** QuotePurchase purchaseIdentifier. */ - public purchaseIdentifier: string; + /** VaultInvoiceDownloadLinkRequest invoiceNumber. */ + public invoiceNumber: string; /** - * Creates a new QuotePurchase instance using the specified properties. + * Creates a new VaultInvoiceDownloadLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QuotePurchase instance + * @returns VaultInvoiceDownloadLinkRequest instance */ - public static create(properties?: BI.IQuotePurchase): BI.QuotePurchase; + public static create(properties?: BI.IVaultInvoiceDownloadLinkRequest): BI.VaultInvoiceDownloadLinkRequest; /** - * Encodes the specified QuotePurchase message. Does not implicitly {@link BI.QuotePurchase.verify|verify} messages. - * @param message QuotePurchase message or plain object to encode + * Encodes the specified VaultInvoiceDownloadLinkRequest message. 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 encode(message: BI.IQuotePurchase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IVaultInvoiceDownloadLinkRequest, 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 + * 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.IQuotePurchase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.IVaultInvoiceDownloadLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QuotePurchase message from the specified reader or buffer. + * Decodes a VaultInvoiceDownloadLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QuotePurchase + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.QuotePurchase; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.VaultInvoiceDownloadLinkRequest; /** - * Decodes a QuotePurchase message from the specified reader or buffer, length delimited. + * Decodes a VaultInvoiceDownloadLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QuotePurchase + * @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.QuotePurchase; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.VaultInvoiceDownloadLinkRequest; /** - * Verifies a QuotePurchase message. + * 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 QuotePurchase message from a plain object. Also converts values to their respective internal types. + * Creates a VaultInvoiceDownloadLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QuotePurchase + * @returns VaultInvoiceDownloadLinkRequest */ - public static fromObject(object: { [k: string]: any }): BI.QuotePurchase; + public static fromObject(object: { [k: string]: any }): BI.VaultInvoiceDownloadLinkRequest; /** - * Creates a plain object from a QuotePurchase message. Also converts values to other types if specified. - * @param message QuotePurchase + * Creates a plain object from a VaultInvoiceDownloadLinkRequest message. Also converts values to other types if specified. + * @param message VaultInvoiceDownloadLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.QuotePurchase, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.VaultInvoiceDownloadLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QuotePurchase to JSON. + * Converts this VaultInvoiceDownloadLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for QuotePurchase + * Gets the default type url for VaultInvoiceDownloadLinkRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PurchaseOptions. */ - interface IPurchaseOptions { + /** Properties of a VaultInvoiceDownloadLinkResponse. */ + interface IVaultInvoiceDownloadLinkResponse { - /** PurchaseOptions inConsole */ - inConsole?: (boolean|null); + /** VaultInvoiceDownloadLinkResponse link */ + link?: (string|null); - /** PurchaseOptions externalCheckout */ - externalCheckout?: (boolean|null); + /** VaultInvoiceDownloadLinkResponse fileName */ + fileName?: (string|null); } - /** Represents a PurchaseOptions. */ - class PurchaseOptions implements IPurchaseOptions { + /** Represents a VaultInvoiceDownloadLinkResponse. */ + class VaultInvoiceDownloadLinkResponse implements IVaultInvoiceDownloadLinkResponse { /** - * Constructs a new PurchaseOptions. + * Constructs a new VaultInvoiceDownloadLinkResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IPurchaseOptions); - - /** PurchaseOptions inConsole. */ - public inConsole?: (boolean|null); - - /** PurchaseOptions externalCheckout. */ - public externalCheckout?: (boolean|null); + constructor(properties?: BI.IVaultInvoiceDownloadLinkResponse); - /** PurchaseOptions _inConsole. */ - public _inConsole?: "inConsole"; + /** VaultInvoiceDownloadLinkResponse link. */ + public link: string; - /** PurchaseOptions _externalCheckout. */ - public _externalCheckout?: "externalCheckout"; + /** VaultInvoiceDownloadLinkResponse fileName. */ + public fileName: string; /** - * Creates a new PurchaseOptions instance using the specified properties. + * Creates a new VaultInvoiceDownloadLinkResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PurchaseOptions instance + * @returns VaultInvoiceDownloadLinkResponse instance */ - public static create(properties?: BI.IPurchaseOptions): BI.PurchaseOptions; + public static create(properties?: BI.IVaultInvoiceDownloadLinkResponse): BI.VaultInvoiceDownloadLinkResponse; /** - * Encodes the specified PurchaseOptions message. Does not implicitly {@link BI.PurchaseOptions.verify|verify} messages. - * @param message PurchaseOptions message or plain object to encode + * Encodes the specified VaultInvoiceDownloadLinkResponse message. 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 encode(message: BI.IPurchaseOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IVaultInvoiceDownloadLinkResponse, 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 + * 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.IPurchaseOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: BI.IVaultInvoiceDownloadLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurchaseOptions message from the specified reader or buffer. + * Decodes a VaultInvoiceDownloadLinkResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurchaseOptions + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.PurchaseOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.VaultInvoiceDownloadLinkResponse; /** - * Decodes a PurchaseOptions message from the specified reader or buffer, length delimited. + * Decodes a VaultInvoiceDownloadLinkResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurchaseOptions + * @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.PurchaseOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.VaultInvoiceDownloadLinkResponse; /** - * Verifies a PurchaseOptions message. + * 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 PurchaseOptions message from a plain object. Also converts values to their respective internal types. + * Creates a VaultInvoiceDownloadLinkResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurchaseOptions + * @returns VaultInvoiceDownloadLinkResponse */ - public static fromObject(object: { [k: string]: any }): BI.PurchaseOptions; + public static fromObject(object: { [k: string]: any }): BI.VaultInvoiceDownloadLinkResponse; /** - * Creates a plain object from a PurchaseOptions message. Also converts values to other types if specified. - * @param message PurchaseOptions + * Creates a plain object from a VaultInvoiceDownloadLinkResponse message. Also converts values to other types if specified. + * @param message VaultInvoiceDownloadLinkResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.PurchaseOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.VaultInvoiceDownloadLinkResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurchaseOptions to JSON. + * Converts this VaultInvoiceDownloadLinkResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PurchaseOptions + * Gets the default type url for VaultInvoiceDownloadLinkResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AddonPurchaseOptions. */ - interface IAddonPurchaseOptions { - - /** AddonPurchaseOptions storage */ - storage?: (BI.IPurchaseOptions|null); - - /** AddonPurchaseOptions audit */ - audit?: (BI.IPurchaseOptions|null); - - /** AddonPurchaseOptions breachwatch */ - breachwatch?: (BI.IPurchaseOptions|null); - - /** AddonPurchaseOptions chat */ - chat?: (BI.IPurchaseOptions|null); - - /** AddonPurchaseOptions compliance */ - compliance?: (BI.IPurchaseOptions|null); - - /** AddonPurchaseOptions professionalServicesSilver */ - professionalServicesSilver?: (BI.IPurchaseOptions|null); - - /** AddonPurchaseOptions professionalServicesPlatinum */ - professionalServicesPlatinum?: (BI.IPurchaseOptions|null); - - /** AddonPurchaseOptions pam */ - pam?: (BI.IPurchaseOptions|null); - - /** AddonPurchaseOptions epm */ - epm?: (BI.IPurchaseOptions|null); - - /** AddonPurchaseOptions secretsManager */ - secretsManager?: (BI.IPurchaseOptions|null); + /** Properties of a ReportingDailySnapshotRequest. */ + interface IReportingDailySnapshotRequest { - /** AddonPurchaseOptions connectionManager */ - connectionManager?: (BI.IPurchaseOptions|null); + /** ReportingDailySnapshotRequest month */ + month?: (number|null); - /** AddonPurchaseOptions remoteBrowserIsolation */ - remoteBrowserIsolation?: (BI.IPurchaseOptions|null); + /** ReportingDailySnapshotRequest year */ + year?: (number|null); } - /** Represents an AddonPurchaseOptions. */ - class AddonPurchaseOptions implements IAddonPurchaseOptions { + /** Represents a ReportingDailySnapshotRequest. */ + class ReportingDailySnapshotRequest implements IReportingDailySnapshotRequest { /** - * Constructs a new AddonPurchaseOptions. + * Constructs a new ReportingDailySnapshotRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IAddonPurchaseOptions); - - /** AddonPurchaseOptions storage. */ - public storage?: (BI.IPurchaseOptions|null); + constructor(properties?: BI.IReportingDailySnapshotRequest); - /** AddonPurchaseOptions audit. */ - public audit?: (BI.IPurchaseOptions|null); + /** ReportingDailySnapshotRequest month. */ + public month: number; - /** AddonPurchaseOptions breachwatch. */ - public breachwatch?: (BI.IPurchaseOptions|null); + /** ReportingDailySnapshotRequest year. */ + public year: number; - /** AddonPurchaseOptions chat. */ - public chat?: (BI.IPurchaseOptions|null); + /** + * Creates a new ReportingDailySnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReportingDailySnapshotRequest instance + */ + public static create(properties?: BI.IReportingDailySnapshotRequest): BI.ReportingDailySnapshotRequest; - /** AddonPurchaseOptions compliance. */ - public compliance?: (BI.IPurchaseOptions|null); + /** + * Encodes the specified ReportingDailySnapshotRequest message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns ReportingDailySnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): BI.ReportingDailySnapshotRequest; + + /** + * Creates a plain object from a ReportingDailySnapshotRequest message. Also converts values to other types if specified. + * @param message ReportingDailySnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.ReportingDailySnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReportingDailySnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReportingDailySnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReportingDailySnapshotResponse. */ + interface IReportingDailySnapshotResponse { + + /** ReportingDailySnapshotResponse records */ + records?: (BI.ISnapshotRecord[]|null); + + /** ReportingDailySnapshotResponse mcEnterprises */ + mcEnterprises?: (BI.ISnapshotMcEnterprise[]|null); + } + + /** Represents a ReportingDailySnapshotResponse. */ + class ReportingDailySnapshotResponse implements IReportingDailySnapshotResponse { + + /** + * Constructs a new ReportingDailySnapshotResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IReportingDailySnapshotResponse); + + /** ReportingDailySnapshotResponse records. */ + public records: BI.ISnapshotRecord[]; + + /** ReportingDailySnapshotResponse mcEnterprises. */ + public mcEnterprises: BI.ISnapshotMcEnterprise[]; + + /** + * Creates a new ReportingDailySnapshotResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReportingDailySnapshotResponse instance + */ + public static create(properties?: BI.IReportingDailySnapshotResponse): BI.ReportingDailySnapshotResponse; + + /** + * Encodes the specified ReportingDailySnapshotResponse message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns ReportingDailySnapshotResponse + */ + public static fromObject(object: { [k: string]: any }): BI.ReportingDailySnapshotResponse; + + /** + * Creates a plain object from a ReportingDailySnapshotResponse message. Also converts values to other types if specified. + * @param message ReportingDailySnapshotResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.ReportingDailySnapshotResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReportingDailySnapshotResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReportingDailySnapshotResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SnapshotRecord. */ + interface ISnapshotRecord { + + /** SnapshotRecord date */ + date?: (number|Long|null); + + /** SnapshotRecord mcEnterpriseId */ + mcEnterpriseId?: (number|null); + + /** SnapshotRecord maxLicenseCount */ + maxLicenseCount?: (number|null); + + /** SnapshotRecord maxFilePlanTypeId */ + maxFilePlanTypeId?: (number|null); + + /** SnapshotRecord maxBasePlanId */ + maxBasePlanId?: (number|null); + + /** SnapshotRecord addons */ + addons?: (BI.SnapshotRecord.IAddon[]|null); + } + + /** Represents a SnapshotRecord. */ + class SnapshotRecord implements ISnapshotRecord { + + /** + * Constructs a new SnapshotRecord. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ISnapshotRecord); + + /** SnapshotRecord date. */ + public date: (number|Long); + + /** SnapshotRecord mcEnterpriseId. */ + public mcEnterpriseId: number; + + /** SnapshotRecord maxLicenseCount. */ + public maxLicenseCount: number; + + /** SnapshotRecord maxFilePlanTypeId. */ + public maxFilePlanTypeId: number; + + /** SnapshotRecord maxBasePlanId. */ + public maxBasePlanId: number; + + /** SnapshotRecord addons. */ + public addons: BI.SnapshotRecord.IAddon[]; + + /** + * Creates a new SnapshotRecord instance using the specified properties. + * @param [properties] Properties to set + * @returns SnapshotRecord instance + */ + public static create(properties?: BI.ISnapshotRecord): BI.SnapshotRecord; + + /** + * Encodes the specified SnapshotRecord message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns SnapshotRecord + */ + public static fromObject(object: { [k: string]: any }): BI.SnapshotRecord; + + /** + * Creates a plain object from a SnapshotRecord message. Also converts values to other types if specified. + * @param message SnapshotRecord + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.SnapshotRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SnapshotRecord to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SnapshotRecord + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace SnapshotRecord { + + /** Properties of an Addon. */ + interface IAddon { + + /** Addon maxAddonId */ + maxAddonId?: (number|null); + + /** Addon units */ + units?: (number|Long|null); + } + + /** Represents an Addon. */ + class Addon implements IAddon { + + /** + * Constructs a new Addon. + * @param [properties] Properties to set + */ + constructor(properties?: BI.SnapshotRecord.IAddon); + + /** Addon maxAddonId. */ + public maxAddonId: number; + + /** Addon units. */ + public units: (number|Long); + + /** + * Creates a new Addon instance using the specified properties. + * @param [properties] Properties to set + * @returns Addon instance + */ + public static create(properties?: BI.SnapshotRecord.IAddon): BI.SnapshotRecord.Addon; + + /** + * Encodes the specified Addon message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns Addon + */ + public static fromObject(object: { [k: string]: any }): BI.SnapshotRecord.Addon; + + /** + * Creates a plain object from an Addon message. Also converts values to other types if specified. + * @param message Addon + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.SnapshotRecord.Addon, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Addon to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Addon + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a SnapshotMcEnterprise. */ + interface ISnapshotMcEnterprise { + + /** SnapshotMcEnterprise id */ + id?: (number|null); + + /** SnapshotMcEnterprise name */ + name?: (string|null); + } + + /** Represents a SnapshotMcEnterprise. */ + class SnapshotMcEnterprise implements ISnapshotMcEnterprise { + + /** + * Constructs a new SnapshotMcEnterprise. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ISnapshotMcEnterprise); + + /** SnapshotMcEnterprise id. */ + public id: number; + + /** SnapshotMcEnterprise name. */ + public name: string; + + /** + * Creates a new SnapshotMcEnterprise instance using the specified properties. + * @param [properties] Properties to set + * @returns SnapshotMcEnterprise instance + */ + public static create(properties?: BI.ISnapshotMcEnterprise): BI.SnapshotMcEnterprise; + + /** + * Encodes the specified SnapshotMcEnterprise message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns SnapshotMcEnterprise + */ + public static fromObject(object: { [k: string]: any }): BI.SnapshotMcEnterprise; + + /** + * Creates a plain object from a SnapshotMcEnterprise message. Also converts values to other types if specified. + * @param message SnapshotMcEnterprise + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.SnapshotMcEnterprise, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SnapshotMcEnterprise to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SnapshotMcEnterprise + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MappingAddonsRequest. */ + interface IMappingAddonsRequest { + } + + /** Represents a MappingAddonsRequest. */ + class MappingAddonsRequest implements IMappingAddonsRequest { + + /** + * Constructs a new MappingAddonsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IMappingAddonsRequest); + + /** + * Creates a new MappingAddonsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MappingAddonsRequest instance + */ + public static create(properties?: BI.IMappingAddonsRequest): BI.MappingAddonsRequest; + + /** + * Encodes the specified MappingAddonsRequest message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns MappingAddonsRequest + */ + public static fromObject(object: { [k: string]: any }): BI.MappingAddonsRequest; + + /** + * Creates a plain object from a MappingAddonsRequest message. Also converts values to other types if specified. + * @param message MappingAddonsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.MappingAddonsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MappingAddonsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MappingAddonsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MappingAddonsResponse. */ + interface IMappingAddonsResponse { + + /** MappingAddonsResponse addons */ + addons?: (BI.IMappingItem[]|null); + + /** MappingAddonsResponse filePlans */ + filePlans?: (BI.IMappingItem[]|null); + } + + /** Represents a MappingAddonsResponse. */ + class MappingAddonsResponse implements IMappingAddonsResponse { + + /** + * Constructs a new MappingAddonsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IMappingAddonsResponse); + + /** MappingAddonsResponse addons. */ + public addons: BI.IMappingItem[]; + + /** MappingAddonsResponse filePlans. */ + public filePlans: BI.IMappingItem[]; + + /** + * Creates a new MappingAddonsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MappingAddonsResponse instance + */ + public static create(properties?: BI.IMappingAddonsResponse): BI.MappingAddonsResponse; + + /** + * Encodes the specified MappingAddonsResponse message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns MappingAddonsResponse + */ + public static fromObject(object: { [k: string]: any }): BI.MappingAddonsResponse; + + /** + * Creates a plain object from a MappingAddonsResponse message. Also converts values to other types if specified. + * @param message MappingAddonsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.MappingAddonsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MappingAddonsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MappingAddonsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MappingItem. */ + interface IMappingItem { + + /** MappingItem id */ + id?: (number|null); + + /** MappingItem name */ + name?: (string|null); + } + + /** Represents a MappingItem. */ + class MappingItem implements IMappingItem { + + /** + * Constructs a new MappingItem. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IMappingItem); + + /** MappingItem id. */ + public id: number; + + /** MappingItem name. */ + public name: string; + + /** + * Creates a new MappingItem instance using the specified properties. + * @param [properties] Properties to set + * @returns MappingItem instance + */ + public static create(properties?: BI.IMappingItem): BI.MappingItem; + + /** + * Encodes the specified MappingItem message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns MappingItem + */ + public static fromObject(object: { [k: string]: any }): BI.MappingItem; + + /** + * Creates a plain object from a MappingItem message. Also converts values to other types if specified. + * @param message MappingItem + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.MappingItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MappingItem to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MappingItem + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GradientValidateKeyRequest. */ + interface IGradientValidateKeyRequest { + + /** GradientValidateKeyRequest gradientKey */ + gradientKey?: (string|null); + } + + /** Represents a GradientValidateKeyRequest. */ + class GradientValidateKeyRequest implements IGradientValidateKeyRequest { + + /** + * Constructs a new GradientValidateKeyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IGradientValidateKeyRequest); + + /** GradientValidateKeyRequest gradientKey. */ + public gradientKey: string; + + /** + * Creates a new GradientValidateKeyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GradientValidateKeyRequest instance + */ + public static create(properties?: BI.IGradientValidateKeyRequest): BI.GradientValidateKeyRequest; + + /** + * Encodes the specified GradientValidateKeyRequest message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns GradientValidateKeyRequest + */ + public static fromObject(object: { [k: string]: any }): BI.GradientValidateKeyRequest; + + /** + * Creates a plain object from a GradientValidateKeyRequest message. Also converts values to other types if specified. + * @param message GradientValidateKeyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.GradientValidateKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GradientValidateKeyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GradientValidateKeyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GradientValidateKeyResponse. */ + interface IGradientValidateKeyResponse { + + /** GradientValidateKeyResponse success */ + success?: (boolean|null); + + /** GradientValidateKeyResponse message */ + message?: (string|null); + } + + /** Represents a GradientValidateKeyResponse. */ + class GradientValidateKeyResponse implements IGradientValidateKeyResponse { + + /** + * Constructs a new GradientValidateKeyResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IGradientValidateKeyResponse); + + /** GradientValidateKeyResponse success. */ + public success: boolean; + + /** GradientValidateKeyResponse message. */ + public message: string; + + /** + * Creates a new GradientValidateKeyResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GradientValidateKeyResponse instance + */ + public static create(properties?: BI.IGradientValidateKeyResponse): BI.GradientValidateKeyResponse; + + /** + * Encodes the specified GradientValidateKeyResponse message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns GradientValidateKeyResponse + */ + public static fromObject(object: { [k: string]: any }): BI.GradientValidateKeyResponse; + + /** + * Creates a plain object from a GradientValidateKeyResponse message. Also converts values to other types if specified. + * @param message GradientValidateKeyResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.GradientValidateKeyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GradientValidateKeyResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GradientValidateKeyResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GradientSaveRequest. */ + interface IGradientSaveRequest { + + /** GradientSaveRequest gradientKey */ + gradientKey?: (string|null); + + /** GradientSaveRequest enterpriseUserId */ + enterpriseUserId?: (number|Long|null); + } + + /** Represents a GradientSaveRequest. */ + class GradientSaveRequest implements IGradientSaveRequest { + + /** + * Constructs a new GradientSaveRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IGradientSaveRequest); + + /** GradientSaveRequest gradientKey. */ + public gradientKey: string; + + /** GradientSaveRequest enterpriseUserId. */ + public enterpriseUserId: (number|Long); + + /** + * Creates a new GradientSaveRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GradientSaveRequest instance + */ + public static create(properties?: BI.IGradientSaveRequest): BI.GradientSaveRequest; + + /** + * Encodes the specified GradientSaveRequest message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns GradientSaveRequest + */ + public static fromObject(object: { [k: string]: any }): BI.GradientSaveRequest; + + /** + * Creates a plain object from a GradientSaveRequest message. Also converts values to other types if specified. + * @param message GradientSaveRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.GradientSaveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GradientSaveRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GradientSaveRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GradientSaveResponse. */ + interface IGradientSaveResponse { + + /** GradientSaveResponse success */ + success?: (boolean|null); + + /** GradientSaveResponse status */ + status?: (BI.GradientIntegrationStatus|null); + + /** GradientSaveResponse message */ + message?: (string|null); + } + + /** Represents a GradientSaveResponse. */ + class GradientSaveResponse implements IGradientSaveResponse { + + /** + * Constructs a new GradientSaveResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IGradientSaveResponse); + + /** GradientSaveResponse success. */ + public success: boolean; + + /** GradientSaveResponse status. */ + public status: BI.GradientIntegrationStatus; + + /** GradientSaveResponse message. */ + public message: string; + + /** + * Creates a new GradientSaveResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GradientSaveResponse instance + */ + public static create(properties?: BI.IGradientSaveResponse): BI.GradientSaveResponse; + + /** + * Encodes the specified GradientSaveResponse message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns GradientSaveResponse + */ + public static fromObject(object: { [k: string]: any }): BI.GradientSaveResponse; + + /** + * Creates a plain object from a GradientSaveResponse message. Also converts values to other types if specified. + * @param message GradientSaveResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.GradientSaveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GradientSaveResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GradientSaveResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GradientRemoveRequest. */ + interface IGradientRemoveRequest { + + /** GradientRemoveRequest enterpriseUserId */ + enterpriseUserId?: (number|Long|null); + } + + /** Represents a GradientRemoveRequest. */ + class GradientRemoveRequest implements IGradientRemoveRequest { + + /** + * Constructs a new GradientRemoveRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IGradientRemoveRequest); + + /** GradientRemoveRequest enterpriseUserId. */ + public enterpriseUserId: (number|Long); + + /** + * Creates a new GradientRemoveRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GradientRemoveRequest instance + */ + public static create(properties?: BI.IGradientRemoveRequest): BI.GradientRemoveRequest; + + /** + * Encodes the specified GradientRemoveRequest message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns GradientRemoveRequest + */ + public static fromObject(object: { [k: string]: any }): BI.GradientRemoveRequest; + + /** + * Creates a plain object from a GradientRemoveRequest message. Also converts values to other types if specified. + * @param message GradientRemoveRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.GradientRemoveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GradientRemoveRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GradientRemoveRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GradientRemoveResponse. */ + interface IGradientRemoveResponse { + + /** GradientRemoveResponse success */ + success?: (boolean|null); + + /** GradientRemoveResponse message */ + message?: (string|null); + } + + /** Represents a GradientRemoveResponse. */ + class GradientRemoveResponse implements IGradientRemoveResponse { + + /** + * Constructs a new GradientRemoveResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IGradientRemoveResponse); + + /** GradientRemoveResponse success. */ + public success: boolean; + + /** GradientRemoveResponse message. */ + public message: string; + + /** + * Creates a new GradientRemoveResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GradientRemoveResponse instance + */ + public static create(properties?: BI.IGradientRemoveResponse): BI.GradientRemoveResponse; + + /** + * Encodes the specified GradientRemoveResponse message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns GradientRemoveResponse + */ + public static fromObject(object: { [k: string]: any }): BI.GradientRemoveResponse; + + /** + * Creates a plain object from a GradientRemoveResponse message. Also converts values to other types if specified. + * @param message GradientRemoveResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.GradientRemoveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GradientRemoveResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GradientRemoveResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GradientSyncRequest. */ + interface IGradientSyncRequest { + + /** GradientSyncRequest enterpriseUserId */ + enterpriseUserId?: (number|Long|null); + } + + /** Represents a GradientSyncRequest. */ + class GradientSyncRequest implements IGradientSyncRequest { + + /** + * Constructs a new GradientSyncRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IGradientSyncRequest); + + /** GradientSyncRequest enterpriseUserId. */ + public enterpriseUserId: (number|Long); + + /** + * Creates a new GradientSyncRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GradientSyncRequest instance + */ + public static create(properties?: BI.IGradientSyncRequest): BI.GradientSyncRequest; + + /** + * Encodes the specified GradientSyncRequest message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns GradientSyncRequest + */ + public static fromObject(object: { [k: string]: any }): BI.GradientSyncRequest; + + /** + * Creates a plain object from a GradientSyncRequest message. Also converts values to other types if specified. + * @param message GradientSyncRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.GradientSyncRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GradientSyncRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GradientSyncRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GradientSyncResponse. */ + interface IGradientSyncResponse { + + /** GradientSyncResponse success */ + success?: (boolean|null); + + /** GradientSyncResponse status */ + status?: (BI.GradientIntegrationStatus|null); + + /** GradientSyncResponse message */ + message?: (string|null); + } + + /** Represents a GradientSyncResponse. */ + class GradientSyncResponse implements IGradientSyncResponse { + + /** + * Constructs a new GradientSyncResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IGradientSyncResponse); + + /** GradientSyncResponse success. */ + public success: boolean; + + /** GradientSyncResponse status. */ + public status: BI.GradientIntegrationStatus; + + /** GradientSyncResponse message. */ + public message: string; + + /** + * Creates a new GradientSyncResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GradientSyncResponse instance + */ + public static create(properties?: BI.IGradientSyncResponse): BI.GradientSyncResponse; + + /** + * Encodes the specified GradientSyncResponse message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns GradientSyncResponse + */ + public static fromObject(object: { [k: string]: any }): BI.GradientSyncResponse; + + /** + * Creates a plain object from a GradientSyncResponse message. Also converts values to other types if specified. + * @param message GradientSyncResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.GradientSyncResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GradientSyncResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GradientSyncResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** GradientIntegrationStatus enum. */ + enum GradientIntegrationStatus { + NOTCONNECTED = 0, + PENDING = 1, + CONNECTED = 2, + NONE = 3 + } + + /** Properties of a NetPromoterScoreSurveySubmissionRequest. */ + interface INetPromoterScoreSurveySubmissionRequest { + + /** NetPromoterScoreSurveySubmissionRequest surveyScore */ + surveyScore?: (number|null); + + /** NetPromoterScoreSurveySubmissionRequest notes */ + notes?: (string|null); + } + + /** Represents a NetPromoterScoreSurveySubmissionRequest. */ + class NetPromoterScoreSurveySubmissionRequest implements INetPromoterScoreSurveySubmissionRequest { + + /** + * Constructs a new NetPromoterScoreSurveySubmissionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.INetPromoterScoreSurveySubmissionRequest); + + /** NetPromoterScoreSurveySubmissionRequest surveyScore. */ + public surveyScore: number; + + /** NetPromoterScoreSurveySubmissionRequest notes. */ + public notes: string; + + /** + * Creates a new NetPromoterScoreSurveySubmissionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NetPromoterScoreSurveySubmissionRequest instance + */ + public static create(properties?: BI.INetPromoterScoreSurveySubmissionRequest): BI.NetPromoterScoreSurveySubmissionRequest; + + /** + * Encodes the specified NetPromoterScoreSurveySubmissionRequest message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns NetPromoterScoreSurveySubmissionRequest + */ + public static fromObject(object: { [k: string]: any }): BI.NetPromoterScoreSurveySubmissionRequest; + + /** + * Creates a plain object from a NetPromoterScoreSurveySubmissionRequest message. Also converts values to other types if specified. + * @param message NetPromoterScoreSurveySubmissionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.NetPromoterScoreSurveySubmissionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetPromoterScoreSurveySubmissionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetPromoterScoreSurveySubmissionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a NetPromoterScoreSurveySubmissionResponse. */ + interface INetPromoterScoreSurveySubmissionResponse { + } + + /** Represents a NetPromoterScoreSurveySubmissionResponse. */ + class NetPromoterScoreSurveySubmissionResponse implements INetPromoterScoreSurveySubmissionResponse { + + /** + * Constructs a new NetPromoterScoreSurveySubmissionResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.INetPromoterScoreSurveySubmissionResponse); + + /** + * Creates a new NetPromoterScoreSurveySubmissionResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns NetPromoterScoreSurveySubmissionResponse instance + */ + public static create(properties?: BI.INetPromoterScoreSurveySubmissionResponse): BI.NetPromoterScoreSurveySubmissionResponse; + + /** + * Encodes the specified NetPromoterScoreSurveySubmissionResponse message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns NetPromoterScoreSurveySubmissionResponse + */ + public static fromObject(object: { [k: string]: any }): BI.NetPromoterScoreSurveySubmissionResponse; + + /** + * Creates a plain object from a NetPromoterScoreSurveySubmissionResponse message. Also converts values to other types if specified. + * @param message NetPromoterScoreSurveySubmissionResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.NetPromoterScoreSurveySubmissionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetPromoterScoreSurveySubmissionResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetPromoterScoreSurveySubmissionResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a NetPromoterScorePopupScheduleRequest. */ + interface INetPromoterScorePopupScheduleRequest { + } + + /** Represents a NetPromoterScorePopupScheduleRequest. */ + class NetPromoterScorePopupScheduleRequest implements INetPromoterScorePopupScheduleRequest { + + /** + * Constructs a new NetPromoterScorePopupScheduleRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.INetPromoterScorePopupScheduleRequest); + + /** + * Creates a new NetPromoterScorePopupScheduleRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NetPromoterScorePopupScheduleRequest instance + */ + public static create(properties?: BI.INetPromoterScorePopupScheduleRequest): BI.NetPromoterScorePopupScheduleRequest; + + /** + * Encodes the specified NetPromoterScorePopupScheduleRequest message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns NetPromoterScorePopupScheduleRequest + */ + public static fromObject(object: { [k: string]: any }): BI.NetPromoterScorePopupScheduleRequest; + + /** + * Creates a plain object from a NetPromoterScorePopupScheduleRequest message. Also converts values to other types if specified. + * @param message NetPromoterScorePopupScheduleRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.NetPromoterScorePopupScheduleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetPromoterScorePopupScheduleRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetPromoterScorePopupScheduleRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a NetPromoterScorePopupScheduleResponse. */ + interface INetPromoterScorePopupScheduleResponse { + + /** NetPromoterScorePopupScheduleResponse showPopup */ + showPopup?: (boolean|null); + } + + /** Represents a NetPromoterScorePopupScheduleResponse. */ + class NetPromoterScorePopupScheduleResponse implements INetPromoterScorePopupScheduleResponse { + + /** + * Constructs a new NetPromoterScorePopupScheduleResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.INetPromoterScorePopupScheduleResponse); + + /** NetPromoterScorePopupScheduleResponse showPopup. */ + public showPopup: boolean; + + /** + * Creates a new NetPromoterScorePopupScheduleResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns NetPromoterScorePopupScheduleResponse instance + */ + public static create(properties?: BI.INetPromoterScorePopupScheduleResponse): BI.NetPromoterScorePopupScheduleResponse; + + /** + * Encodes the specified NetPromoterScorePopupScheduleResponse message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns NetPromoterScorePopupScheduleResponse + */ + public static fromObject(object: { [k: string]: any }): BI.NetPromoterScorePopupScheduleResponse; + + /** + * Creates a plain object from a NetPromoterScorePopupScheduleResponse message. Also converts values to other types if specified. + * @param message NetPromoterScorePopupScheduleResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.NetPromoterScorePopupScheduleResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetPromoterScorePopupScheduleResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetPromoterScorePopupScheduleResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a NetPromoterScorePopupDismissalRequest. */ + interface INetPromoterScorePopupDismissalRequest { + } + + /** Represents a NetPromoterScorePopupDismissalRequest. */ + class NetPromoterScorePopupDismissalRequest implements INetPromoterScorePopupDismissalRequest { + + /** + * Constructs a new NetPromoterScorePopupDismissalRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.INetPromoterScorePopupDismissalRequest); + + /** + * Creates a new NetPromoterScorePopupDismissalRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NetPromoterScorePopupDismissalRequest instance + */ + public static create(properties?: BI.INetPromoterScorePopupDismissalRequest): BI.NetPromoterScorePopupDismissalRequest; + + /** + * Encodes the specified NetPromoterScorePopupDismissalRequest message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns NetPromoterScorePopupDismissalRequest + */ + public static fromObject(object: { [k: string]: any }): BI.NetPromoterScorePopupDismissalRequest; + + /** + * Creates a plain object from a NetPromoterScorePopupDismissalRequest message. Also converts values to other types if specified. + * @param message NetPromoterScorePopupDismissalRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.NetPromoterScorePopupDismissalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetPromoterScorePopupDismissalRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetPromoterScorePopupDismissalRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a NetPromoterScorePopupDismissalResponse. */ + interface INetPromoterScorePopupDismissalResponse { + } + + /** Represents a NetPromoterScorePopupDismissalResponse. */ + class NetPromoterScorePopupDismissalResponse implements INetPromoterScorePopupDismissalResponse { + + /** + * Constructs a new NetPromoterScorePopupDismissalResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.INetPromoterScorePopupDismissalResponse); + + /** + * Creates a new NetPromoterScorePopupDismissalResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns NetPromoterScorePopupDismissalResponse instance + */ + public static create(properties?: BI.INetPromoterScorePopupDismissalResponse): BI.NetPromoterScorePopupDismissalResponse; + + /** + * Encodes the specified NetPromoterScorePopupDismissalResponse message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns NetPromoterScorePopupDismissalResponse + */ + public static fromObject(object: { [k: string]: any }): BI.NetPromoterScorePopupDismissalResponse; + + /** + * Creates a plain object from a NetPromoterScorePopupDismissalResponse message. Also converts values to other types if specified. + * @param message NetPromoterScorePopupDismissalResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.NetPromoterScorePopupDismissalResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetPromoterScorePopupDismissalResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetPromoterScorePopupDismissalResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a KCMLicenseRequest. */ + interface IKCMLicenseRequest { + + /** KCMLicenseRequest enterpriseUserId */ + enterpriseUserId?: (number|Long|null); + } + + /** Represents a KCMLicenseRequest. */ + class KCMLicenseRequest implements IKCMLicenseRequest { + + /** + * Constructs a new KCMLicenseRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IKCMLicenseRequest); + + /** KCMLicenseRequest enterpriseUserId. */ + public enterpriseUserId: (number|Long); + + /** + * Creates a new KCMLicenseRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns KCMLicenseRequest instance + */ + public static create(properties?: BI.IKCMLicenseRequest): BI.KCMLicenseRequest; + + /** + * Encodes the specified KCMLicenseRequest message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns KCMLicenseRequest + */ + public static fromObject(object: { [k: string]: any }): BI.KCMLicenseRequest; + + /** + * Creates a plain object from a KCMLicenseRequest message. Also converts values to other types if specified. + * @param message KCMLicenseRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.KCMLicenseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this KCMLicenseRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for KCMLicenseRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a KCMLicenseResponse. */ + interface IKCMLicenseResponse { + + /** KCMLicenseResponse message */ + message?: (string|null); + } + + /** Represents a KCMLicenseResponse. */ + class KCMLicenseResponse implements IKCMLicenseResponse { + + /** + * Constructs a new KCMLicenseResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IKCMLicenseResponse); + + /** KCMLicenseResponse message. */ + public message: string; + + /** + * Creates a new KCMLicenseResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns KCMLicenseResponse instance + */ + public static create(properties?: BI.IKCMLicenseResponse): BI.KCMLicenseResponse; + + /** + * Encodes the specified KCMLicenseResponse message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns KCMLicenseResponse + */ + public static fromObject(object: { [k: string]: any }): BI.KCMLicenseResponse; + + /** + * Creates a plain object from a KCMLicenseResponse message. Also converts values to other types if specified. + * @param message KCMLicenseResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.KCMLicenseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this KCMLicenseResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for KCMLicenseResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** EventType enum. */ + enum EventType { + UNKNOWN_TRACKING_EVENT_TYPE = 0, + TRACKING_POPUP_DISPLAYED = 1, + TRACKING_POPUP_ACCEPTED = 2, + TRACKING_POPUP_DISMISSED = 3, + TRACKING_POPUP_PAID = 4, + TRACKING_PUSH_CLICKED = 5, + CONSOLE_ACTION = 6, + VAULT_ACTION = 7 + } + + /** Properties of an EventRequest. */ + interface IEventRequest { + + /** EventRequest eventType */ + eventType?: (BI.EventType|null); + + /** EventRequest eventValue */ + eventValue?: (string|null); + + /** EventRequest eventTime */ + eventTime?: (number|Long|null); + + /** EventRequest attributes */ + attributes?: (google.protobuf.IStruct|null); + } + + /** Represents an EventRequest. */ + class EventRequest implements IEventRequest { + + /** + * Constructs a new EventRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IEventRequest); + + /** EventRequest eventType. */ + public eventType: BI.EventType; + + /** EventRequest eventValue. */ + public eventValue: string; + + /** EventRequest eventTime. */ + public eventTime: (number|Long); + + /** EventRequest attributes. */ + public attributes?: (google.protobuf.IStruct|null); + + /** + * Creates a new EventRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns EventRequest instance + */ + public static create(properties?: BI.IEventRequest): BI.EventRequest; + + /** + * Encodes the specified EventRequest message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns EventRequest + */ + public static fromObject(object: { [k: string]: any }): BI.EventRequest; + + /** + * Creates a plain object from an EventRequest message. Also converts values to other types if specified. + * @param message EventRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.EventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EventRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EventRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EventsRequest. */ + interface IEventsRequest { + + /** EventsRequest event */ + event?: (BI.IEventRequest[]|null); + } + + /** Represents an EventsRequest. */ + class EventsRequest implements IEventsRequest { + + /** + * Constructs a new EventsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IEventsRequest); + + /** EventsRequest event. */ + public event: BI.IEventRequest[]; + + /** + * Creates a new EventsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns EventsRequest instance + */ + public static create(properties?: BI.IEventsRequest): BI.EventsRequest; + + /** + * Encodes the specified EventsRequest message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns EventsRequest + */ + public static fromObject(object: { [k: string]: any }): BI.EventsRequest; + + /** + * Creates a plain object from an EventsRequest message. Also converts values to other types if specified. + * @param message EventsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.EventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EventsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EventsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EventResponse. */ + interface IEventResponse { + + /** EventResponse index */ + index?: (number|null); + + /** EventResponse status */ + status?: (boolean|null); + } + + /** Represents an EventResponse. */ + class EventResponse implements IEventResponse { + + /** + * Constructs a new EventResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IEventResponse); + + /** EventResponse index. */ + public index: number; + + /** EventResponse status. */ + public status: boolean; + + /** + * Creates a new EventResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns EventResponse instance + */ + public static create(properties?: BI.IEventResponse): BI.EventResponse; + + /** + * Encodes the specified EventResponse message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns EventResponse + */ + public static fromObject(object: { [k: string]: any }): BI.EventResponse; + + /** + * Creates a plain object from an EventResponse message. Also converts values to other types if specified. + * @param message EventResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.EventResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EventResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EventResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EventsResponse. */ + interface IEventsResponse { + + /** EventsResponse response */ + response?: (BI.IEventResponse[]|null); + } + + /** Represents an EventsResponse. */ + class EventsResponse implements IEventsResponse { + + /** + * Constructs a new EventsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IEventsResponse); + + /** EventsResponse response. */ + public response: BI.IEventResponse[]; + + /** + * Creates a new EventsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns EventsResponse instance + */ + public static create(properties?: BI.IEventsResponse): BI.EventsResponse; + + /** + * Encodes the specified EventsResponse message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns EventsResponse + */ + public static fromObject(object: { [k: string]: any }): BI.EventsResponse; + + /** + * Creates a plain object from an EventsResponse message. Also converts values to other types if specified. + * @param message EventsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.EventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EventsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EventsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CustomerCaptureRequest. */ + interface ICustomerCaptureRequest { + + /** CustomerCaptureRequest pageUrl */ + pageUrl?: (string|null); + + /** CustomerCaptureRequest tree */ + tree?: (string|null); + + /** CustomerCaptureRequest hash */ + hash?: (string|null); + + /** CustomerCaptureRequest image */ + image?: (string|null); + + /** CustomerCaptureRequest pageLoadTime */ + pageLoadTime?: (string|null); + + /** CustomerCaptureRequest keyId */ + keyId?: (string|null); + + /** CustomerCaptureRequest test */ + test?: (boolean|null); + + /** CustomerCaptureRequest issueType */ + issueType?: (string|null); + + /** CustomerCaptureRequest notes */ + notes?: (string|null); + } + + /** Represents a CustomerCaptureRequest. */ + class CustomerCaptureRequest implements ICustomerCaptureRequest { + + /** + * Constructs a new CustomerCaptureRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ICustomerCaptureRequest); + + /** CustomerCaptureRequest pageUrl. */ + public pageUrl: string; + + /** CustomerCaptureRequest tree. */ + public tree: string; + + /** CustomerCaptureRequest hash. */ + public hash: string; + + /** CustomerCaptureRequest image. */ + public image: string; + + /** CustomerCaptureRequest pageLoadTime. */ + public pageLoadTime: string; + + /** CustomerCaptureRequest keyId. */ + public keyId: string; + + /** CustomerCaptureRequest test. */ + public test: boolean; + + /** CustomerCaptureRequest issueType. */ + public issueType: string; + + /** CustomerCaptureRequest notes. */ + public notes: string; + + /** + * Creates a new CustomerCaptureRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomerCaptureRequest instance + */ + public static create(properties?: BI.ICustomerCaptureRequest): BI.CustomerCaptureRequest; + + /** + * Encodes the specified CustomerCaptureRequest message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns CustomerCaptureRequest + */ + public static fromObject(object: { [k: string]: any }): BI.CustomerCaptureRequest; + + /** + * Creates a plain object from a CustomerCaptureRequest message. Also converts values to other types if specified. + * @param message CustomerCaptureRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.CustomerCaptureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CustomerCaptureRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CustomerCaptureRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CustomerCaptureResponse. */ + interface ICustomerCaptureResponse { + } + + /** Represents a CustomerCaptureResponse. */ + class CustomerCaptureResponse implements ICustomerCaptureResponse { + + /** + * Constructs a new CustomerCaptureResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ICustomerCaptureResponse); + + /** + * Creates a new CustomerCaptureResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomerCaptureResponse instance + */ + public static create(properties?: BI.ICustomerCaptureResponse): BI.CustomerCaptureResponse; + + /** + * Encodes the specified CustomerCaptureResponse message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns CustomerCaptureResponse + */ + public static fromObject(object: { [k: string]: any }): BI.CustomerCaptureResponse; + + /** + * Creates a plain object from a CustomerCaptureResponse message. Also converts values to other types if specified. + * @param message CustomerCaptureResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.CustomerCaptureResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CustomerCaptureResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CustomerCaptureResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** PurchaseProductType enum. */ + enum PurchaseProductType { + upgradeToEnterprise = 0, + addUsers = 1, + addStorage = 2, + addAudit = 3, + addBreachWatch = 4, + addCompliance = 5, + addChat = 6, + addPAM = 7, + addSilverSupport = 8, + addPlatinumSupport = 9, + addKEPM = 10 + } + + /** Properties of an Error. */ + interface IError { + + /** Error code */ + code?: (string|null); + + /** Error message */ + message?: (string|null); + + /** Error extras */ + extras?: ({ [k: string]: string }|null); + } + + /** Represents an Error. */ + class Error implements IError { + + /** + * Constructs a new Error. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IError); + + /** Error code. */ + public code: string; + + /** Error message. */ + public message: string; + + /** Error extras. */ + public extras: { [k: string]: string }; + + /** + * Creates a new Error instance using the specified properties. + * @param [properties] Properties to set + * @returns Error instance + */ + public static create(properties?: BI.IError): BI.Error; + + /** + * Encodes the specified Error message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns Error + */ + public static fromObject(object: { [k: string]: any }): BI.Error; + + /** + * Creates a plain object from an Error message. Also converts values to other types if specified. + * @param message Error + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.Error, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Error to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Error + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QuotePurchase. */ + interface IQuotePurchase { + + /** QuotePurchase quoteTotal */ + quoteTotal?: (number|null); + + /** QuotePurchase includedTax */ + includedTax?: (boolean|null); + + /** QuotePurchase includedOtherAddons */ + includedOtherAddons?: (boolean|null); + + /** QuotePurchase taxAmount */ + taxAmount?: (number|null); + + /** QuotePurchase taxLabel */ + taxLabel?: (string|null); + + /** QuotePurchase purchaseIdentifier */ + purchaseIdentifier?: (string|null); + } + + /** Represents a QuotePurchase. */ + class QuotePurchase implements IQuotePurchase { + + /** + * Constructs a new QuotePurchase. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IQuotePurchase); + + /** QuotePurchase quoteTotal. */ + public quoteTotal: number; + + /** QuotePurchase includedTax. */ + public includedTax: boolean; + + /** QuotePurchase includedOtherAddons. */ + public includedOtherAddons: boolean; + + /** QuotePurchase taxAmount. */ + public taxAmount: number; + + /** QuotePurchase taxLabel. */ + public taxLabel: string; + + /** QuotePurchase purchaseIdentifier. */ + public purchaseIdentifier: string; + + /** + * Creates a new QuotePurchase instance using the specified properties. + * @param [properties] Properties to set + * @returns QuotePurchase instance + */ + public static create(properties?: BI.IQuotePurchase): BI.QuotePurchase; + + /** + * Encodes the specified QuotePurchase message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns QuotePurchase + */ + public static fromObject(object: { [k: string]: any }): BI.QuotePurchase; + + /** + * Creates a plain object from a QuotePurchase message. Also converts values to other types if specified. + * @param message QuotePurchase + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.QuotePurchase, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QuotePurchase to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QuotePurchase + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PurchaseOptions. */ + interface IPurchaseOptions { + + /** PurchaseOptions inConsole */ + inConsole?: (boolean|null); + + /** PurchaseOptions externalCheckout */ + externalCheckout?: (boolean|null); + } + + /** Represents a PurchaseOptions. */ + class PurchaseOptions implements IPurchaseOptions { + + /** + * Constructs a new PurchaseOptions. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IPurchaseOptions); + + /** PurchaseOptions inConsole. */ + public inConsole?: (boolean|null); + + /** PurchaseOptions externalCheckout. */ + public externalCheckout?: (boolean|null); + + /** PurchaseOptions _inConsole. */ + public _inConsole?: "inConsole"; + + /** PurchaseOptions _externalCheckout. */ + public _externalCheckout?: "externalCheckout"; + + /** + * Creates a new PurchaseOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns PurchaseOptions instance + */ + public static create(properties?: BI.IPurchaseOptions): BI.PurchaseOptions; + + /** + * Encodes the specified PurchaseOptions message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns PurchaseOptions + */ + public static fromObject(object: { [k: string]: any }): BI.PurchaseOptions; + + /** + * Creates a plain object from a PurchaseOptions message. Also converts values to other types if specified. + * @param message PurchaseOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.PurchaseOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PurchaseOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PurchaseOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AddonPurchaseOptions. */ + interface IAddonPurchaseOptions { + + /** AddonPurchaseOptions storage */ + storage?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions audit */ + audit?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions breachwatch */ + breachwatch?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions chat */ + chat?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions compliance */ + compliance?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions professionalServicesSilver */ + professionalServicesSilver?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions professionalServicesPlatinum */ + professionalServicesPlatinum?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions pam */ + pam?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions epm */ + epm?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions secretsManager */ + secretsManager?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions connectionManager */ + connectionManager?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions remoteBrowserIsolation */ + remoteBrowserIsolation?: (BI.IPurchaseOptions|null); + } + + /** Represents an AddonPurchaseOptions. */ + class AddonPurchaseOptions implements IAddonPurchaseOptions { + + /** + * Constructs a new AddonPurchaseOptions. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IAddonPurchaseOptions); + + /** AddonPurchaseOptions storage. */ + public storage?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions audit. */ + public audit?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions breachwatch. */ + public breachwatch?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions chat. */ + public chat?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions compliance. */ + public compliance?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions professionalServicesSilver. */ + public professionalServicesSilver?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions professionalServicesPlatinum. */ + public professionalServicesPlatinum?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions pam. */ + public pam?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions epm. */ + public epm?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions secretsManager. */ + public secretsManager?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions connectionManager. */ + public connectionManager?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions remoteBrowserIsolation. */ + public remoteBrowserIsolation?: (BI.IPurchaseOptions|null); + + /** AddonPurchaseOptions _storage. */ + public _storage?: "storage"; + + /** AddonPurchaseOptions _audit. */ + public _audit?: "audit"; + + /** AddonPurchaseOptions _breachwatch. */ + public _breachwatch?: "breachwatch"; + + /** AddonPurchaseOptions _chat. */ + public _chat?: "chat"; + + /** AddonPurchaseOptions _compliance. */ + public _compliance?: "compliance"; + + /** AddonPurchaseOptions _professionalServicesSilver. */ + public _professionalServicesSilver?: "professionalServicesSilver"; + + /** AddonPurchaseOptions _professionalServicesPlatinum. */ + public _professionalServicesPlatinum?: "professionalServicesPlatinum"; + + /** AddonPurchaseOptions _pam. */ + public _pam?: "pam"; + + /** AddonPurchaseOptions _epm. */ + public _epm?: "epm"; + + /** AddonPurchaseOptions _secretsManager. */ + public _secretsManager?: "secretsManager"; + + /** AddonPurchaseOptions _connectionManager. */ + public _connectionManager?: "connectionManager"; + + /** AddonPurchaseOptions _remoteBrowserIsolation. */ + public _remoteBrowserIsolation?: "remoteBrowserIsolation"; + + /** + * Creates a new AddonPurchaseOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns AddonPurchaseOptions instance + */ + public static create(properties?: BI.IAddonPurchaseOptions): BI.AddonPurchaseOptions; + + /** + * Encodes the specified AddonPurchaseOptions message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns AddonPurchaseOptions + */ + public static fromObject(object: { [k: string]: any }): BI.AddonPurchaseOptions; + + /** + * Creates a plain object from an AddonPurchaseOptions message. Also converts values to other types if specified. + * @param message AddonPurchaseOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.AddonPurchaseOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AddonPurchaseOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AddonPurchaseOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AvailablePurchaseOptions. */ + interface IAvailablePurchaseOptions { + + /** AvailablePurchaseOptions basePlan */ + basePlan?: (BI.IPurchaseOptions|null); + + /** AvailablePurchaseOptions users */ + users?: (BI.IPurchaseOptions|null); + + /** AvailablePurchaseOptions addons */ + addons?: (BI.IAddonPurchaseOptions|null); + } + + /** Represents an AvailablePurchaseOptions. */ + class AvailablePurchaseOptions implements IAvailablePurchaseOptions { + + /** + * Constructs a new AvailablePurchaseOptions. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IAvailablePurchaseOptions); + + /** AvailablePurchaseOptions basePlan. */ + public basePlan?: (BI.IPurchaseOptions|null); + + /** AvailablePurchaseOptions users. */ + public users?: (BI.IPurchaseOptions|null); + + /** AvailablePurchaseOptions addons. */ + public addons?: (BI.IAddonPurchaseOptions|null); + + /** + * Creates a new AvailablePurchaseOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns AvailablePurchaseOptions instance + */ + public static create(properties?: BI.IAvailablePurchaseOptions): BI.AvailablePurchaseOptions; + + /** + * Encodes the specified AvailablePurchaseOptions message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns AvailablePurchaseOptions + */ + public static fromObject(object: { [k: string]: any }): BI.AvailablePurchaseOptions; + + /** + * Creates a plain object from an AvailablePurchaseOptions message. Also converts values to other types if specified. + * @param message AvailablePurchaseOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.AvailablePurchaseOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AvailablePurchaseOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AvailablePurchaseOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpgradeLicenseStatusRequest. */ + interface IUpgradeLicenseStatusRequest { + } + + /** Represents an UpgradeLicenseStatusRequest. */ + class UpgradeLicenseStatusRequest implements IUpgradeLicenseStatusRequest { + + /** + * Constructs a new UpgradeLicenseStatusRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IUpgradeLicenseStatusRequest); + + /** + * Creates a new UpgradeLicenseStatusRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpgradeLicenseStatusRequest instance + */ + public static create(properties?: BI.IUpgradeLicenseStatusRequest): BI.UpgradeLicenseStatusRequest; + + /** + * Encodes the specified UpgradeLicenseStatusRequest message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns UpgradeLicenseStatusRequest + */ + public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseStatusRequest; + + /** + * Creates a plain object from an UpgradeLicenseStatusRequest message. Also converts values to other types if specified. + * @param message UpgradeLicenseStatusRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.UpgradeLicenseStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpgradeLicenseStatusRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpgradeLicenseStatusRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpgradeLicenseStatusResponse. */ + interface IUpgradeLicenseStatusResponse { + + /** UpgradeLicenseStatusResponse allowPurchaseFromConsole */ + allowPurchaseFromConsole?: (boolean|null); + + /** UpgradeLicenseStatusResponse purchaseOptions */ + purchaseOptions?: (BI.IAvailablePurchaseOptions|null); + + /** UpgradeLicenseStatusResponse error */ + error?: (BI.IError|null); + } + + /** Represents an UpgradeLicenseStatusResponse. */ + class UpgradeLicenseStatusResponse implements IUpgradeLicenseStatusResponse { + + /** + * Constructs a new UpgradeLicenseStatusResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IUpgradeLicenseStatusResponse); + + /** UpgradeLicenseStatusResponse allowPurchaseFromConsole. */ + public allowPurchaseFromConsole: boolean; + + /** UpgradeLicenseStatusResponse purchaseOptions. */ + public purchaseOptions?: (BI.IAvailablePurchaseOptions|null); + + /** UpgradeLicenseStatusResponse error. */ + public error?: (BI.IError|null); + + /** + * Creates a new UpgradeLicenseStatusResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UpgradeLicenseStatusResponse instance + */ + public static create(properties?: BI.IUpgradeLicenseStatusResponse): BI.UpgradeLicenseStatusResponse; + + /** + * Encodes the specified UpgradeLicenseStatusResponse message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns UpgradeLicenseStatusResponse + */ + public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseStatusResponse; + + /** + * Creates a plain object from an UpgradeLicenseStatusResponse message. Also converts values to other types if specified. + * @param message UpgradeLicenseStatusResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.UpgradeLicenseStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpgradeLicenseStatusResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpgradeLicenseStatusResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpgradeLicenseQuotePurchaseRequest. */ + interface IUpgradeLicenseQuotePurchaseRequest { + + /** UpgradeLicenseQuotePurchaseRequest productType */ + productType?: (BI.PurchaseProductType|null); + + /** UpgradeLicenseQuotePurchaseRequest quantity */ + quantity?: (number|null); + + /** UpgradeLicenseQuotePurchaseRequest tier */ + tier?: (number|null); + } + + /** Represents an UpgradeLicenseQuotePurchaseRequest. */ + class UpgradeLicenseQuotePurchaseRequest implements IUpgradeLicenseQuotePurchaseRequest { + + /** + * Constructs a new UpgradeLicenseQuotePurchaseRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IUpgradeLicenseQuotePurchaseRequest); + + /** UpgradeLicenseQuotePurchaseRequest productType. */ + public productType: BI.PurchaseProductType; + + /** UpgradeLicenseQuotePurchaseRequest quantity. */ + public quantity: number; + + /** UpgradeLicenseQuotePurchaseRequest tier. */ + public tier: number; + + /** + * Creates a new UpgradeLicenseQuotePurchaseRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpgradeLicenseQuotePurchaseRequest instance + */ + public static create(properties?: BI.IUpgradeLicenseQuotePurchaseRequest): BI.UpgradeLicenseQuotePurchaseRequest; + + /** + * Encodes the specified UpgradeLicenseQuotePurchaseRequest message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns UpgradeLicenseQuotePurchaseRequest + */ + public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseQuotePurchaseRequest; + + /** + * Creates a plain object from an UpgradeLicenseQuotePurchaseRequest message. Also converts values to other types if specified. + * @param message UpgradeLicenseQuotePurchaseRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.UpgradeLicenseQuotePurchaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpgradeLicenseQuotePurchaseRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpgradeLicenseQuotePurchaseRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpgradeLicenseQuotePurchaseResponse. */ + interface IUpgradeLicenseQuotePurchaseResponse { + + /** UpgradeLicenseQuotePurchaseResponse success */ + success?: (boolean|null); + + /** UpgradeLicenseQuotePurchaseResponse quotePurchase */ + quotePurchase?: (BI.IQuotePurchase|null); + + /** UpgradeLicenseQuotePurchaseResponse viewSummaryLink */ + viewSummaryLink?: (string|null); + + /** UpgradeLicenseQuotePurchaseResponse error */ + error?: (BI.IError|null); + } + + /** Represents an UpgradeLicenseQuotePurchaseResponse. */ + class UpgradeLicenseQuotePurchaseResponse implements IUpgradeLicenseQuotePurchaseResponse { + + /** + * Constructs a new UpgradeLicenseQuotePurchaseResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IUpgradeLicenseQuotePurchaseResponse); + + /** UpgradeLicenseQuotePurchaseResponse success. */ + public success: boolean; + + /** UpgradeLicenseQuotePurchaseResponse quotePurchase. */ + public quotePurchase?: (BI.IQuotePurchase|null); + + /** UpgradeLicenseQuotePurchaseResponse viewSummaryLink. */ + public viewSummaryLink: string; + + /** UpgradeLicenseQuotePurchaseResponse error. */ + public error?: (BI.IError|null); + + /** + * Creates a new UpgradeLicenseQuotePurchaseResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UpgradeLicenseQuotePurchaseResponse instance + */ + public static create(properties?: BI.IUpgradeLicenseQuotePurchaseResponse): BI.UpgradeLicenseQuotePurchaseResponse; + + /** + * Encodes the specified UpgradeLicenseQuotePurchaseResponse message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns UpgradeLicenseQuotePurchaseResponse + */ + public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseQuotePurchaseResponse; + + /** + * Creates a plain object from an UpgradeLicenseQuotePurchaseResponse message. Also converts values to other types if specified. + * @param message UpgradeLicenseQuotePurchaseResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.UpgradeLicenseQuotePurchaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpgradeLicenseQuotePurchaseResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpgradeLicenseQuotePurchaseResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpgradeLicenseCompletePurchaseRequest. */ + interface IUpgradeLicenseCompletePurchaseRequest { + + /** UpgradeLicenseCompletePurchaseRequest productType */ + productType?: (BI.PurchaseProductType|null); + + /** UpgradeLicenseCompletePurchaseRequest quantity */ + quantity?: (number|null); + + /** UpgradeLicenseCompletePurchaseRequest quotePurchase */ + quotePurchase?: (BI.IQuotePurchase|null); + + /** UpgradeLicenseCompletePurchaseRequest tier */ + tier?: (number|null); + } + + /** Represents an UpgradeLicenseCompletePurchaseRequest. */ + class UpgradeLicenseCompletePurchaseRequest implements IUpgradeLicenseCompletePurchaseRequest { + + /** + * Constructs a new UpgradeLicenseCompletePurchaseRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IUpgradeLicenseCompletePurchaseRequest); + + /** UpgradeLicenseCompletePurchaseRequest productType. */ + public productType: BI.PurchaseProductType; + + /** UpgradeLicenseCompletePurchaseRequest quantity. */ + public quantity: number; + + /** UpgradeLicenseCompletePurchaseRequest quotePurchase. */ + public quotePurchase?: (BI.IQuotePurchase|null); + + /** UpgradeLicenseCompletePurchaseRequest tier. */ + public tier: number; + + /** + * Creates a new UpgradeLicenseCompletePurchaseRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpgradeLicenseCompletePurchaseRequest instance + */ + public static create(properties?: BI.IUpgradeLicenseCompletePurchaseRequest): BI.UpgradeLicenseCompletePurchaseRequest; + + /** + * Encodes the specified UpgradeLicenseCompletePurchaseRequest message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns UpgradeLicenseCompletePurchaseRequest + */ + public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseCompletePurchaseRequest; + + /** + * Creates a plain object from an UpgradeLicenseCompletePurchaseRequest message. Also converts values to other types if specified. + * @param message UpgradeLicenseCompletePurchaseRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.UpgradeLicenseCompletePurchaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpgradeLicenseCompletePurchaseRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpgradeLicenseCompletePurchaseRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpgradeLicenseCompletePurchaseResponse. */ + interface IUpgradeLicenseCompletePurchaseResponse { + + /** UpgradeLicenseCompletePurchaseResponse success */ + success?: (boolean|null); + + /** UpgradeLicenseCompletePurchaseResponse invoiceNumber */ + invoiceNumber?: (string|null); + + /** UpgradeLicenseCompletePurchaseResponse error */ + error?: (BI.IError|null); + + /** UpgradeLicenseCompletePurchaseResponse quotePurchase */ + quotePurchase?: (BI.IQuotePurchase|null); + } + + /** Represents an UpgradeLicenseCompletePurchaseResponse. */ + class UpgradeLicenseCompletePurchaseResponse implements IUpgradeLicenseCompletePurchaseResponse { + + /** + * Constructs a new UpgradeLicenseCompletePurchaseResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IUpgradeLicenseCompletePurchaseResponse); + + /** UpgradeLicenseCompletePurchaseResponse success. */ + public success: boolean; + + /** UpgradeLicenseCompletePurchaseResponse invoiceNumber. */ + public invoiceNumber: string; + + /** UpgradeLicenseCompletePurchaseResponse error. */ + public error?: (BI.IError|null); + + /** UpgradeLicenseCompletePurchaseResponse quotePurchase. */ + public quotePurchase?: (BI.IQuotePurchase|null); + + /** + * Creates a new UpgradeLicenseCompletePurchaseResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UpgradeLicenseCompletePurchaseResponse instance + */ + public static create(properties?: BI.IUpgradeLicenseCompletePurchaseResponse): BI.UpgradeLicenseCompletePurchaseResponse; + + /** + * Encodes the specified UpgradeLicenseCompletePurchaseResponse message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns UpgradeLicenseCompletePurchaseResponse + */ + public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseCompletePurchaseResponse; + + /** + * Creates a plain object from an UpgradeLicenseCompletePurchaseResponse message. Also converts values to other types if specified. + * @param message UpgradeLicenseCompletePurchaseResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.UpgradeLicenseCompletePurchaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpgradeLicenseCompletePurchaseResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpgradeLicenseCompletePurchaseResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EnterpriseBasePlan. */ + interface IEnterpriseBasePlan { + + /** EnterpriseBasePlan baseplanVersion */ + baseplanVersion?: (BI.EnterpriseBasePlan.EnterpriseBasePlanVersion|null); + + /** EnterpriseBasePlan cost */ + cost?: (BI.ICost|null); + } + + /** Represents an EnterpriseBasePlan. */ + class EnterpriseBasePlan implements IEnterpriseBasePlan { + + /** + * Constructs a new EnterpriseBasePlan. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IEnterpriseBasePlan); + + /** EnterpriseBasePlan baseplanVersion. */ + public baseplanVersion: BI.EnterpriseBasePlan.EnterpriseBasePlanVersion; + + /** EnterpriseBasePlan cost. */ + public cost?: (BI.ICost|null); + + /** + * Creates a new EnterpriseBasePlan instance using the specified properties. + * @param [properties] Properties to set + * @returns EnterpriseBasePlan instance + */ + public static create(properties?: BI.IEnterpriseBasePlan): BI.EnterpriseBasePlan; + + /** + * Encodes the specified EnterpriseBasePlan message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns EnterpriseBasePlan + */ + public static fromObject(object: { [k: string]: any }): BI.EnterpriseBasePlan; + + /** + * Creates a plain object from an EnterpriseBasePlan message. Also converts values to other types if specified. + * @param message EnterpriseBasePlan + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.EnterpriseBasePlan, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnterpriseBasePlan to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnterpriseBasePlan + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace EnterpriseBasePlan { + + /** EnterpriseBasePlanVersion enum. */ + enum EnterpriseBasePlanVersion { + UNKNOWN = 0, + BUSINESS_STARTER = 1, + BUSINESS = 2, + ENTERPRISE = 3 + } + } + + /** Properties of a SubscriptionEnterprisePricingRequest. */ + interface ISubscriptionEnterprisePricingRequest { + } + + /** Represents a SubscriptionEnterprisePricingRequest. */ + class SubscriptionEnterprisePricingRequest implements ISubscriptionEnterprisePricingRequest { + + /** + * Constructs a new SubscriptionEnterprisePricingRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ISubscriptionEnterprisePricingRequest); + + /** + * Creates a new SubscriptionEnterprisePricingRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SubscriptionEnterprisePricingRequest instance + */ + public static create(properties?: BI.ISubscriptionEnterprisePricingRequest): BI.SubscriptionEnterprisePricingRequest; + + /** + * Encodes the specified SubscriptionEnterprisePricingRequest message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns SubscriptionEnterprisePricingRequest + */ + public static fromObject(object: { [k: string]: any }): BI.SubscriptionEnterprisePricingRequest; + + /** + * Creates a plain object from a SubscriptionEnterprisePricingRequest message. Also converts values to other types if specified. + * @param message SubscriptionEnterprisePricingRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.SubscriptionEnterprisePricingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SubscriptionEnterprisePricingRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SubscriptionEnterprisePricingRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SubscriptionEnterprisePricingResponse. */ + interface ISubscriptionEnterprisePricingResponse { + + /** SubscriptionEnterprisePricingResponse basePlans */ + basePlans?: (BI.IEnterpriseBasePlan[]|null); + + /** SubscriptionEnterprisePricingResponse addons */ + addons?: (BI.IAddon[]|null); + + /** SubscriptionEnterprisePricingResponse filePlans */ + filePlans?: (BI.IFilePlan[]|null); + } + + /** Represents a SubscriptionEnterprisePricingResponse. */ + class SubscriptionEnterprisePricingResponse implements ISubscriptionEnterprisePricingResponse { + + /** + * Constructs a new SubscriptionEnterprisePricingResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ISubscriptionEnterprisePricingResponse); + + /** SubscriptionEnterprisePricingResponse basePlans. */ + public basePlans: BI.IEnterpriseBasePlan[]; + + /** SubscriptionEnterprisePricingResponse addons. */ + public addons: BI.IAddon[]; + + /** SubscriptionEnterprisePricingResponse filePlans. */ + public filePlans: BI.IFilePlan[]; + + /** + * Creates a new SubscriptionEnterprisePricingResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SubscriptionEnterprisePricingResponse instance + */ + public static create(properties?: BI.ISubscriptionEnterprisePricingResponse): BI.SubscriptionEnterprisePricingResponse; + + /** + * Encodes the specified SubscriptionEnterprisePricingResponse message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns SubscriptionEnterprisePricingResponse + */ + public static fromObject(object: { [k: string]: any }): BI.SubscriptionEnterprisePricingResponse; + + /** + * Creates a plain object from a SubscriptionEnterprisePricingResponse message. Also converts values to other types if specified. + * @param message SubscriptionEnterprisePricingResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.SubscriptionEnterprisePricingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SubscriptionEnterprisePricingResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SubscriptionEnterprisePricingResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** IdentifierType enum. */ + enum IdentifierType { + UNKNOWN_IDENTIFIER_TYPE = 0, + IOS_ID = 1, + ANDROID_GOOGLE_PLAY_ID = 2, + ANDROID_APP_SET_ID = 3, + ANDROID_ID = 4, + AMAZON_ADVERTISING_ID = 5, + OPEN_ADVERTISING_ID = 6, + SINGULAR_DEVICE_ID = 7, + CLIENT_DEFINED_ID = 8 + } + + /** Properties of a SingularDeviceIdentifier. */ + interface ISingularDeviceIdentifier { + + /** SingularDeviceIdentifier id */ + id?: (string|null); + + /** SingularDeviceIdentifier idType */ + idType?: (BI.IdentifierType|null); + } + + /** Represents a SingularDeviceIdentifier. */ + class SingularDeviceIdentifier implements ISingularDeviceIdentifier { + + /** + * Constructs a new SingularDeviceIdentifier. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ISingularDeviceIdentifier); + + /** SingularDeviceIdentifier id. */ + public id: string; + + /** SingularDeviceIdentifier idType. */ + public idType: BI.IdentifierType; + + /** + * Creates a new SingularDeviceIdentifier instance using the specified properties. + * @param [properties] Properties to set + * @returns SingularDeviceIdentifier instance + */ + public static create(properties?: BI.ISingularDeviceIdentifier): BI.SingularDeviceIdentifier; + + /** + * Encodes the specified SingularDeviceIdentifier message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns SingularDeviceIdentifier + */ + public static fromObject(object: { [k: string]: any }): BI.SingularDeviceIdentifier; + + /** + * Creates a plain object from a SingularDeviceIdentifier message. Also converts values to other types if specified. + * @param message SingularDeviceIdentifier + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.SingularDeviceIdentifier, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SingularDeviceIdentifier to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SingularDeviceIdentifier + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SingularSharedData. */ + interface ISingularSharedData { + + /** SingularSharedData platform */ + platform?: (string|null); + + /** SingularSharedData osVersion */ + osVersion?: (string|null); + + /** SingularSharedData make */ + make?: (string|null); + + /** SingularSharedData model */ + model?: (string|null); + + /** SingularSharedData locale */ + locale?: (string|null); + + /** SingularSharedData build */ + build?: (string|null); + + /** SingularSharedData appIdentifier */ + appIdentifier?: (string|null); + + /** SingularSharedData attAuthorizationStatus */ + attAuthorizationStatus?: (number|null); + } + + /** Represents a SingularSharedData. */ + class SingularSharedData implements ISingularSharedData { + + /** + * Constructs a new SingularSharedData. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ISingularSharedData); + + /** SingularSharedData platform. */ + public platform: string; + + /** SingularSharedData osVersion. */ + public osVersion: string; + + /** SingularSharedData make. */ + public make: string; + + /** SingularSharedData model. */ + public model: string; + + /** SingularSharedData locale. */ + public locale: string; + + /** SingularSharedData build. */ + public build: string; + + /** SingularSharedData appIdentifier. */ + public appIdentifier: string; + + /** SingularSharedData attAuthorizationStatus. */ + public attAuthorizationStatus: number; + + /** + * Creates a new SingularSharedData instance using the specified properties. + * @param [properties] Properties to set + * @returns SingularSharedData instance + */ + public static create(properties?: BI.ISingularSharedData): BI.SingularSharedData; + + /** + * Encodes the specified SingularSharedData message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns SingularSharedData + */ + public static fromObject(object: { [k: string]: any }): BI.SingularSharedData; + + /** + * Creates a plain object from a SingularSharedData message. Also converts values to other types if specified. + * @param message SingularSharedData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.SingularSharedData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SingularSharedData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SingularSharedData + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SingularSessionRequest. */ + interface ISingularSessionRequest { + + /** SingularSessionRequest deviceIdentifiers */ + deviceIdentifiers?: (BI.ISingularDeviceIdentifier[]|null); + + /** SingularSessionRequest sharedData */ + sharedData?: (BI.ISingularSharedData|null); + + /** SingularSessionRequest applicationVersion */ + applicationVersion?: (string|null); + + /** SingularSessionRequest install */ + install?: (boolean|null); + + /** SingularSessionRequest installTime */ + installTime?: (number|Long|null); + + /** SingularSessionRequest updateTime */ + updateTime?: (number|Long|null); + + /** SingularSessionRequest installSource */ + installSource?: (string|null); + + /** SingularSessionRequest installReceipt */ + installReceipt?: (string|null); + + /** SingularSessionRequest openuri */ + openuri?: (string|null); + + /** SingularSessionRequest ddlEnabled */ + ddlEnabled?: (boolean|null); + + /** SingularSessionRequest singularLinkResolveRequired */ + singularLinkResolveRequired?: (boolean|null); + + /** SingularSessionRequest installRef */ + installRef?: (string|null); + + /** SingularSessionRequest metaRef */ + metaRef?: (string|null); + + /** SingularSessionRequest attributionToken */ + attributionToken?: (string|null); + } + + /** Represents a SingularSessionRequest. */ + class SingularSessionRequest implements ISingularSessionRequest { + + /** + * Constructs a new SingularSessionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ISingularSessionRequest); + + /** SingularSessionRequest deviceIdentifiers. */ + public deviceIdentifiers: BI.ISingularDeviceIdentifier[]; + + /** SingularSessionRequest sharedData. */ + public sharedData?: (BI.ISingularSharedData|null); + + /** SingularSessionRequest applicationVersion. */ + public applicationVersion: string; + + /** SingularSessionRequest install. */ + public install: boolean; + + /** SingularSessionRequest installTime. */ + public installTime: (number|Long); + + /** SingularSessionRequest updateTime. */ + public updateTime: (number|Long); + + /** SingularSessionRequest installSource. */ + public installSource: string; + + /** SingularSessionRequest installReceipt. */ + public installReceipt: string; + + /** SingularSessionRequest openuri. */ + public openuri: string; + + /** SingularSessionRequest ddlEnabled. */ + public ddlEnabled: boolean; + + /** SingularSessionRequest singularLinkResolveRequired. */ + public singularLinkResolveRequired: boolean; + + /** SingularSessionRequest installRef. */ + public installRef: string; + + /** SingularSessionRequest metaRef. */ + public metaRef: string; + + /** SingularSessionRequest attributionToken. */ + public attributionToken: string; + + /** + * Creates a new SingularSessionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SingularSessionRequest instance + */ + public static create(properties?: BI.ISingularSessionRequest): BI.SingularSessionRequest; + + /** + * Encodes the specified SingularSessionRequest message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns SingularSessionRequest + */ + public static fromObject(object: { [k: string]: any }): BI.SingularSessionRequest; + + /** + * Creates a plain object from a SingularSessionRequest message. Also converts values to other types if specified. + * @param message SingularSessionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.SingularSessionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SingularSessionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SingularSessionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SingularEventRequest. */ + interface ISingularEventRequest { + + /** SingularEventRequest deviceIdentifiers */ + deviceIdentifiers?: (BI.ISingularDeviceIdentifier[]|null); + + /** SingularEventRequest sharedData */ + sharedData?: (BI.ISingularSharedData|null); + + /** SingularEventRequest eventName */ + eventName?: (string|null); + } + + /** Represents a SingularEventRequest. */ + class SingularEventRequest implements ISingularEventRequest { + + /** + * Constructs a new SingularEventRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ISingularEventRequest); + + /** SingularEventRequest deviceIdentifiers. */ + public deviceIdentifiers: BI.ISingularDeviceIdentifier[]; + + /** SingularEventRequest sharedData. */ + public sharedData?: (BI.ISingularSharedData|null); + + /** SingularEventRequest eventName. */ + public eventName: string; + + /** + * Creates a new SingularEventRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SingularEventRequest instance + */ + public static create(properties?: BI.ISingularEventRequest): BI.SingularEventRequest; + + /** + * Encodes the specified SingularEventRequest message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns SingularEventRequest + */ + public static fromObject(object: { [k: string]: any }): BI.SingularEventRequest; + + /** + * Creates a plain object from a SingularEventRequest message. Also converts values to other types if specified. + * @param message SingularEventRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.SingularEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SingularEventRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SingularEventRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ActivePamCountRequest. */ + interface IActivePamCountRequest { + + /** ActivePamCountRequest enterpriseId */ + enterpriseId?: (number|null); + } + + /** Represents an ActivePamCountRequest. */ + class ActivePamCountRequest implements IActivePamCountRequest { + + /** + * Constructs a new ActivePamCountRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IActivePamCountRequest); + + /** ActivePamCountRequest enterpriseId. */ + public enterpriseId: number; + + /** + * Creates a new ActivePamCountRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ActivePamCountRequest instance + */ + public static create(properties?: BI.IActivePamCountRequest): BI.ActivePamCountRequest; + + /** + * Encodes the specified ActivePamCountRequest message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns ActivePamCountRequest + */ + public static fromObject(object: { [k: string]: any }): BI.ActivePamCountRequest; + + /** + * Creates a plain object from an ActivePamCountRequest message. Also converts values to other types if specified. + * @param message ActivePamCountRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.ActivePamCountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ActivePamCountRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ActivePamCountRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ActivePamCountResponse. */ + interface IActivePamCountResponse { + + /** ActivePamCountResponse pamCount */ + pamCount?: (number|null); + } + + /** Represents an ActivePamCountResponse. */ + class ActivePamCountResponse implements IActivePamCountResponse { + + /** + * Constructs a new ActivePamCountResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IActivePamCountResponse); + + /** ActivePamCountResponse pamCount. */ + public pamCount: number; + + /** + * Creates a new ActivePamCountResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ActivePamCountResponse instance + */ + public static create(properties?: BI.IActivePamCountResponse): BI.ActivePamCountResponse; + + /** + * Encodes the specified ActivePamCountResponse message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns ActivePamCountResponse + */ + public static fromObject(object: { [k: string]: any }): BI.ActivePamCountResponse; + + /** + * Creates a plain object from an ActivePamCountResponse message. Also converts values to other types if specified. + * @param message ActivePamCountResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.ActivePamCountResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ActivePamCountResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ActivePamCountResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } +} + +/** Namespace google. */ +export namespace google { + + /** Namespace api. */ + namespace api { + + /** Properties of a Http. */ + interface IHttp { + + /** Http rules */ + rules?: (google.api.IHttpRule[]|null); + } + + /** Represents a Http. */ + class Http implements IHttp { + + /** + * Constructs a new Http. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttp); + + /** Http rules. */ + public rules: google.api.IHttpRule[]; + + /** + * Creates a new Http instance using the specified properties. + * @param [properties] Properties to set + * @returns Http instance + */ + public static create(properties?: google.api.IHttp): google.api.Http; + + /** + * Encodes the specified Http message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns Http + */ + public static fromObject(object: { [k: string]: any }): google.api.Http; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @param message Http + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Http to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Http + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a HttpRule. */ + interface IHttpRule { + + /** HttpRule get */ + get?: (string|null); + + /** HttpRule put */ + put?: (string|null); + + /** HttpRule post */ + post?: (string|null); + + /** HttpRule delete */ + "delete"?: (string|null); + + /** HttpRule patch */ + patch?: (string|null); + + /** HttpRule custom */ + custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule selector */ + selector?: (string|null); + + /** HttpRule body */ + body?: (string|null); + + /** HttpRule additionalBindings */ + additionalBindings?: (google.api.IHttpRule[]|null); + } + + /** Represents a HttpRule. */ + class HttpRule implements IHttpRule { + + /** + * Constructs a new HttpRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttpRule); + + /** HttpRule get. */ + public get?: (string|null); + + /** HttpRule put. */ + public put?: (string|null); + + /** HttpRule post. */ + public post?: (string|null); + + /** HttpRule delete. */ + public delete?: (string|null); + + /** HttpRule patch. */ + public patch?: (string|null); + + /** HttpRule custom. */ + public custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule selector. */ + public selector: string; + + /** HttpRule body. */ + public body: string; + + /** HttpRule additionalBindings. */ + public additionalBindings: google.api.IHttpRule[]; + + /** HttpRule pattern. */ + public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); + + /** + * Creates a new HttpRule instance using the specified properties. + * @param [properties] Properties to set + * @returns HttpRule instance + */ + public static create(properties?: google.api.IHttpRule): google.api.HttpRule; + + /** + * Encodes the specified HttpRule message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns HttpRule + */ + public static fromObject(object: { [k: string]: any }): google.api.HttpRule; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @param message HttpRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HttpRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HttpRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CustomHttpPattern. */ + interface ICustomHttpPattern { + + /** CustomHttpPattern kind */ + kind?: (string|null); + + /** CustomHttpPattern path */ + path?: (string|null); + } + + /** Represents a CustomHttpPattern. */ + class CustomHttpPattern implements ICustomHttpPattern { + + /** + * Constructs a new CustomHttpPattern. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.ICustomHttpPattern); + + /** CustomHttpPattern kind. */ + public kind: string; + + /** CustomHttpPattern path. */ + public path: string; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomHttpPattern instance + */ + public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; + + /** + * Encodes the specified CustomHttpPattern message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns CustomHttpPattern + */ + public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @param message CustomHttpPattern + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CustomHttpPattern to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CustomHttpPattern + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Namespace protobuf. */ + namespace protobuf { + + /** Properties of a FileDescriptorSet. */ + interface IFileDescriptorSet { + + /** FileDescriptorSet file */ + file?: (google.protobuf.IFileDescriptorProto[]|null); + } + + /** Represents a FileDescriptorSet. */ + class FileDescriptorSet implements IFileDescriptorSet { + + /** + * Constructs a new FileDescriptorSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorSet); + + /** FileDescriptorSet file. */ + public file: google.protobuf.IFileDescriptorProto[]; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorSet instance + */ + public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; + + /** + * Encodes the specified FileDescriptorSet message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns FileDescriptorSet + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; + + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @param message FileDescriptorSet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileDescriptorSet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileDescriptorSet + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { + + /** FileDescriptorProto name */ + name?: (string|null); + + /** FileDescriptorProto package */ + "package"?: (string|null); + + /** FileDescriptorProto dependency */ + dependency?: (string[]|null); + + /** FileDescriptorProto publicDependency */ + publicDependency?: (number[]|null); + + /** FileDescriptorProto weakDependency */ + weakDependency?: (number[]|null); + + /** FileDescriptorProto messageType */ + messageType?: (google.protobuf.IDescriptorProto[]|null); + + /** FileDescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** FileDescriptorProto service */ + service?: (google.protobuf.IServiceDescriptorProto[]|null); + + /** FileDescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** FileDescriptorProto options */ + options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo */ + sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax */ + syntax?: (string|null); + } + + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { + + /** + * Constructs a new FileDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorProto); + + /** FileDescriptorProto name. */ + public name: string; + + /** FileDescriptorProto package. */ + public package: string; + + /** FileDescriptorProto dependency. */ + public dependency: string[]; + + /** FileDescriptorProto publicDependency. */ + public publicDependency: number[]; + + /** FileDescriptorProto weakDependency. */ + public weakDependency: number[]; + + /** FileDescriptorProto messageType. */ + public messageType: google.protobuf.IDescriptorProto[]; + + /** FileDescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** FileDescriptorProto service. */ + public service: google.protobuf.IServiceDescriptorProto[]; + + /** FileDescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** FileDescriptorProto options. */ + public options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo. */ + public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax. */ + public syntax: string; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; + + /** + * Encodes the specified FileDescriptorProto message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns FileDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; + + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @param message FileDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DescriptorProto. */ + interface IDescriptorProto { + + /** DescriptorProto name */ + name?: (string|null); + + /** DescriptorProto field */ + field?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto nestedType */ + nestedType?: (google.protobuf.IDescriptorProto[]|null); + + /** DescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** DescriptorProto extensionRange */ + extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); + + /** DescriptorProto oneofDecl */ + oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); + + /** DescriptorProto options */ + options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange */ + reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); + + /** DescriptorProto reservedName */ + reservedName?: (string[]|null); + } + + /** Represents a DescriptorProto. */ + class DescriptorProto implements IDescriptorProto { + + /** + * Constructs a new DescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDescriptorProto); + + /** DescriptorProto name. */ + public name: string; + + /** DescriptorProto field. */ + public field: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto nestedType. */ + public nestedType: google.protobuf.IDescriptorProto[]; + + /** DescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** DescriptorProto extensionRange. */ + public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; + + /** DescriptorProto oneofDecl. */ + public oneofDecl: google.protobuf.IOneofDescriptorProto[]; + + /** DescriptorProto options. */ + public options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange. */ + public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; + + /** DescriptorProto reservedName. */ + public reservedName: string[]; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns DescriptorProto instance + */ + public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; + + /** + * Encodes the specified DescriptorProto message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns DescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; + + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @param message DescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace DescriptorProto { + + /** Properties of an ExtensionRange. */ + interface IExtensionRange { + + /** ExtensionRange start */ + start?: (number|null); + + /** ExtensionRange end */ + end?: (number|null); + } + + /** Represents an ExtensionRange. */ + class ExtensionRange implements IExtensionRange { + + /** + * Constructs a new ExtensionRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); + + /** ExtensionRange start. */ + public start: number; + + /** ExtensionRange end. */ + public end: number; + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Encodes the specified ExtensionRange message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns ExtensionRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @param message ExtensionRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExtensionRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExtensionRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReservedRange. */ + interface IReservedRange { + + /** ReservedRange start */ + start?: (number|null); + + /** ReservedRange end */ + end?: (number|null); + } + + /** Represents a ReservedRange. */ + class ReservedRange implements IReservedRange { + + /** + * Constructs a new ReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); + + /** ReservedRange start. */ + public start: number; + + /** ReservedRange end. */ + public end: number; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservedRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Encodes the specified ReservedRange message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns ReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @param message ReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservedRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a FieldDescriptorProto. */ + interface IFieldDescriptorProto { + + /** FieldDescriptorProto name */ + name?: (string|null); + + /** FieldDescriptorProto number */ + number?: (number|null); + + /** FieldDescriptorProto label */ + label?: (google.protobuf.FieldDescriptorProto.Label|null); + + /** FieldDescriptorProto type */ + type?: (google.protobuf.FieldDescriptorProto.Type|null); + + /** FieldDescriptorProto typeName */ + typeName?: (string|null); + + /** FieldDescriptorProto extendee */ + extendee?: (string|null); + + /** FieldDescriptorProto defaultValue */ + defaultValue?: (string|null); + + /** FieldDescriptorProto oneofIndex */ + oneofIndex?: (number|null); + + /** FieldDescriptorProto jsonName */ + jsonName?: (string|null); + + /** FieldDescriptorProto options */ + options?: (google.protobuf.IFieldOptions|null); + } + + /** Represents a FieldDescriptorProto. */ + class FieldDescriptorProto implements IFieldDescriptorProto { + + /** + * Constructs a new FieldDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldDescriptorProto); + + /** FieldDescriptorProto name. */ + public name: string; + + /** FieldDescriptorProto number. */ + public number: number; + + /** FieldDescriptorProto label. */ + public label: google.protobuf.FieldDescriptorProto.Label; + + /** FieldDescriptorProto type. */ + public type: google.protobuf.FieldDescriptorProto.Type; + + /** FieldDescriptorProto typeName. */ + public typeName: string; + + /** FieldDescriptorProto extendee. */ + public extendee: string; + + /** FieldDescriptorProto defaultValue. */ + public defaultValue: string; + + /** FieldDescriptorProto oneofIndex. */ + public oneofIndex: number; + + /** FieldDescriptorProto jsonName. */ + public jsonName: string; + + /** FieldDescriptorProto options. */ + public options?: (google.protobuf.IFieldOptions|null); + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; + + /** + * Encodes the specified FieldDescriptorProto message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns FieldDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @param message FieldDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FieldDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FieldDescriptorProto { + + /** Type enum. */ + enum Type { + TYPE_DOUBLE = 1, + TYPE_FLOAT = 2, + TYPE_INT64 = 3, + TYPE_UINT64 = 4, + TYPE_INT32 = 5, + TYPE_FIXED64 = 6, + TYPE_FIXED32 = 7, + TYPE_BOOL = 8, + TYPE_STRING = 9, + TYPE_GROUP = 10, + TYPE_MESSAGE = 11, + TYPE_BYTES = 12, + TYPE_UINT32 = 13, + TYPE_ENUM = 14, + TYPE_SFIXED32 = 15, + TYPE_SFIXED64 = 16, + TYPE_SINT32 = 17, + TYPE_SINT64 = 18 + } + + /** Label enum. */ + enum Label { + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3 + } + } + + /** Properties of an OneofDescriptorProto. */ + interface IOneofDescriptorProto { + + /** OneofDescriptorProto name */ + name?: (string|null); + + /** OneofDescriptorProto options */ + options?: (google.protobuf.IOneofOptions|null); + } + + /** Represents an OneofDescriptorProto. */ + class OneofDescriptorProto implements IOneofDescriptorProto { + + /** + * Constructs a new OneofDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofDescriptorProto); + + /** OneofDescriptorProto name. */ + public name: string; + + /** OneofDescriptorProto options. */ + public options?: (google.protobuf.IOneofOptions|null); + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofDescriptorProto instance + */ + public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; + + /** + * Encodes the specified OneofDescriptorProto message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns OneofDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; + + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @param message OneofDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OneofDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OneofDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EnumDescriptorProto. */ + interface IEnumDescriptorProto { + + /** EnumDescriptorProto name */ + name?: (string|null); + + /** EnumDescriptorProto value */ + value?: (google.protobuf.IEnumValueDescriptorProto[]|null); + + /** EnumDescriptorProto options */ + options?: (google.protobuf.IEnumOptions|null); + } + + /** Represents an EnumDescriptorProto. */ + class EnumDescriptorProto implements IEnumDescriptorProto { + + /** + * Constructs a new EnumDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumDescriptorProto); + + /** EnumDescriptorProto name. */ + public name: string; + + /** EnumDescriptorProto value. */ + public value: google.protobuf.IEnumValueDescriptorProto[]; + + /** EnumDescriptorProto options. */ + public options?: (google.protobuf.IEnumOptions|null); + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; + + /** + * Encodes the specified EnumDescriptorProto message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns EnumDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; + + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @param message EnumDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EnumValueDescriptorProto. */ + interface IEnumValueDescriptorProto { + + /** EnumValueDescriptorProto name */ + name?: (string|null); + + /** EnumValueDescriptorProto number */ + number?: (number|null); + + /** EnumValueDescriptorProto options */ + options?: (google.protobuf.IEnumValueOptions|null); + } + + /** Represents an EnumValueDescriptorProto. */ + class EnumValueDescriptorProto implements IEnumValueDescriptorProto { + + /** + * Constructs a new EnumValueDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueDescriptorProto); + + /** EnumValueDescriptorProto name. */ + public name: string; + + /** EnumValueDescriptorProto number. */ + public number: number; + + /** EnumValueDescriptorProto options. */ + public options?: (google.protobuf.IEnumValueOptions|null); + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; + + /** + * Encodes the specified EnumValueDescriptorProto message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns EnumValueDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; + + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @param message EnumValueDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumValueDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumValueDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ServiceDescriptorProto. */ + interface IServiceDescriptorProto { + + /** ServiceDescriptorProto name */ + name?: (string|null); + + /** ServiceDescriptorProto method */ + method?: (google.protobuf.IMethodDescriptorProto[]|null); + + /** ServiceDescriptorProto options */ + options?: (google.protobuf.IServiceOptions|null); + } + + /** Represents a ServiceDescriptorProto. */ + class ServiceDescriptorProto implements IServiceDescriptorProto { + + /** + * Constructs a new ServiceDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceDescriptorProto); + + /** ServiceDescriptorProto name. */ + public name: string; + + /** ServiceDescriptorProto method. */ + public method: google.protobuf.IMethodDescriptorProto[]; + + /** ServiceDescriptorProto options. */ + public options?: (google.protobuf.IServiceOptions|null); + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceDescriptorProto instance + */ + public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; + + /** + * Encodes the specified ServiceDescriptorProto message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns ServiceDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; + + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @param message ServiceDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServiceDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ServiceDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MethodDescriptorProto. */ + interface IMethodDescriptorProto { + + /** MethodDescriptorProto name */ + name?: (string|null); + + /** MethodDescriptorProto inputType */ + inputType?: (string|null); + + /** MethodDescriptorProto outputType */ + outputType?: (string|null); + + /** MethodDescriptorProto options */ + options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming */ + clientStreaming?: (boolean|null); + + /** MethodDescriptorProto serverStreaming */ + serverStreaming?: (boolean|null); + } + + /** Represents a MethodDescriptorProto. */ + class MethodDescriptorProto implements IMethodDescriptorProto { + + /** + * Constructs a new MethodDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodDescriptorProto); + + /** MethodDescriptorProto name. */ + public name: string; + + /** MethodDescriptorProto inputType. */ + public inputType: string; + + /** MethodDescriptorProto outputType. */ + public outputType: string; + + /** MethodDescriptorProto options. */ + public options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming. */ + public clientStreaming: boolean; + + /** MethodDescriptorProto serverStreaming. */ + public serverStreaming: boolean; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodDescriptorProto instance + */ + public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; + + /** + * Encodes the specified MethodDescriptorProto message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns MethodDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; + + /** + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @param message MethodDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MethodDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MethodDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FileOptions. */ + interface IFileOptions { + + /** FileOptions javaPackage */ + javaPackage?: (string|null); + + /** FileOptions javaOuterClassname */ + javaOuterClassname?: (string|null); + + /** FileOptions javaMultipleFiles */ + javaMultipleFiles?: (boolean|null); + + /** FileOptions javaGenerateEqualsAndHash */ + javaGenerateEqualsAndHash?: (boolean|null); + + /** FileOptions javaStringCheckUtf8 */ + javaStringCheckUtf8?: (boolean|null); + + /** FileOptions optimizeFor */ + optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|null); + + /** FileOptions goPackage */ + goPackage?: (string|null); + + /** FileOptions ccGenericServices */ + ccGenericServices?: (boolean|null); + + /** FileOptions javaGenericServices */ + javaGenericServices?: (boolean|null); + + /** FileOptions pyGenericServices */ + pyGenericServices?: (boolean|null); + + /** FileOptions deprecated */ + deprecated?: (boolean|null); + + /** FileOptions ccEnableArenas */ + ccEnableArenas?: (boolean|null); + + /** FileOptions objcClassPrefix */ + objcClassPrefix?: (string|null); + + /** FileOptions csharpNamespace */ + csharpNamespace?: (string|null); + + /** FileOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { + + /** + * Constructs a new FileOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileOptions); + + /** FileOptions javaPackage. */ + public javaPackage: string; + + /** FileOptions javaOuterClassname. */ + public javaOuterClassname: string; + + /** FileOptions javaMultipleFiles. */ + public javaMultipleFiles: boolean; + + /** FileOptions javaGenerateEqualsAndHash. */ + public javaGenerateEqualsAndHash: boolean; + + /** FileOptions javaStringCheckUtf8. */ + public javaStringCheckUtf8: boolean; + + /** FileOptions optimizeFor. */ + public optimizeFor: google.protobuf.FileOptions.OptimizeMode; + + /** FileOptions goPackage. */ + public goPackage: string; + + /** FileOptions ccGenericServices. */ + public ccGenericServices: boolean; + + /** FileOptions javaGenericServices. */ + public javaGenericServices: boolean; + + /** FileOptions pyGenericServices. */ + public pyGenericServices: boolean; + + /** FileOptions deprecated. */ + public deprecated: boolean; + + /** FileOptions ccEnableArenas. */ + public ccEnableArenas: boolean; + + /** FileOptions objcClassPrefix. */ + public objcClassPrefix: string; + + /** FileOptions csharpNamespace. */ + public csharpNamespace: string; + + /** FileOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FileOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FileOptions instance + */ + public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; + + /** + * Encodes the specified FileOptions message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns FileOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; + + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @param message FileOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FileOptions { + + /** OptimizeMode enum. */ + enum OptimizeMode { + SPEED = 1, + CODE_SIZE = 2, + LITE_RUNTIME = 3 + } + } + + /** Properties of a MessageOptions. */ + interface IMessageOptions { + + /** MessageOptions messageSetWireFormat */ + messageSetWireFormat?: (boolean|null); + + /** MessageOptions noStandardDescriptorAccessor */ + noStandardDescriptorAccessor?: (boolean|null); + + /** MessageOptions deprecated */ + deprecated?: (boolean|null); + + /** MessageOptions mapEntry */ + mapEntry?: (boolean|null); + + /** MessageOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { + + /** + * Constructs a new MessageOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMessageOptions); + + /** MessageOptions messageSetWireFormat. */ + public messageSetWireFormat: boolean; + + /** MessageOptions noStandardDescriptorAccessor. */ + public noStandardDescriptorAccessor: boolean; + + /** MessageOptions deprecated. */ + public deprecated: boolean; + + /** MessageOptions mapEntry. */ + public mapEntry: boolean; + + /** MessageOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageOptions instance + */ + public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; + + /** + * Encodes the specified MessageOptions message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns MessageOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; + + /** + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @param message MessageOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MessageOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MessageOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FieldOptions. */ + interface IFieldOptions { + + /** FieldOptions ctype */ + ctype?: (google.protobuf.FieldOptions.CType|null); + + /** FieldOptions packed */ + packed?: (boolean|null); + + /** FieldOptions jstype */ + jstype?: (google.protobuf.FieldOptions.JSType|null); + + /** FieldOptions lazy */ + lazy?: (boolean|null); + + /** FieldOptions deprecated */ + deprecated?: (boolean|null); + + /** FieldOptions weak */ + weak?: (boolean|null); + + /** FieldOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { + + /** + * Constructs a new FieldOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldOptions); + + /** FieldOptions ctype. */ + public ctype: google.protobuf.FieldOptions.CType; + + /** FieldOptions packed. */ + public packed: boolean; + + /** FieldOptions jstype. */ + public jstype: google.protobuf.FieldOptions.JSType; + + /** FieldOptions lazy. */ + public lazy: boolean; + + /** FieldOptions deprecated. */ + public deprecated: boolean; + + /** FieldOptions weak. */ + public weak: boolean; + + /** FieldOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldOptions instance + */ + public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; + + /** + * Encodes the specified FieldOptions message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns FieldOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; + + /** + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @param message FieldOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FieldOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FieldOptions { + + /** CType enum. */ + enum CType { + STRING = 0, + CORD = 1, + STRING_PIECE = 2 + } + + /** JSType enum. */ + enum JSType { + JS_NORMAL = 0, + JS_STRING = 1, + JS_NUMBER = 2 + } + } + + /** Properties of an OneofOptions. */ + interface IOneofOptions { + + /** OneofOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an OneofOptions. */ + class OneofOptions implements IOneofOptions { + + /** + * Constructs a new OneofOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofOptions); + + /** OneofOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofOptions instance + */ + public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; + + /** + * Encodes the specified OneofOptions message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns OneofOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; + + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @param message OneofOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OneofOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OneofOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EnumOptions. */ + interface IEnumOptions { + + /** EnumOptions allowAlias */ + allowAlias?: (boolean|null); + + /** EnumOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { + + /** + * Constructs a new EnumOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumOptions); + + /** EnumOptions allowAlias. */ + public allowAlias: boolean; + + /** EnumOptions deprecated. */ + public deprecated: boolean; + + /** EnumOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumOptions instance + */ + public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; + + /** + * Encodes the specified EnumOptions message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns EnumOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; + + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @param message EnumOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EnumValueOptions. */ + interface IEnumValueOptions { + + /** EnumValueOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumValueOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { + + /** + * Constructs a new EnumValueOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueOptions); + + /** EnumValueOptions deprecated. */ + public deprecated: boolean; + + /** EnumValueOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueOptions instance + */ + public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; + + /** + * Encodes the specified EnumValueOptions message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns EnumValueOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; + + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @param message EnumValueOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumValueOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumValueOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ServiceOptions. */ + interface IServiceOptions { + + /** ServiceOptions deprecated */ + deprecated?: (boolean|null); + + /** ServiceOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a ServiceOptions. */ + class ServiceOptions implements IServiceOptions { + + /** + * Constructs a new ServiceOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceOptions); + + /** ServiceOptions deprecated. */ + public deprecated: boolean; + + /** ServiceOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceOptions instance + */ + public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; + + /** + * Encodes the specified ServiceOptions message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns ServiceOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; + + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @param message ServiceOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServiceOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ServiceOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MethodOptions. */ + interface IMethodOptions { + + /** MethodOptions deprecated */ + deprecated?: (boolean|null); + + /** MethodOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** MethodOptions .google.api.http */ + ".google.api.http"?: (google.api.IHttpRule|null); + } + + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { + + /** + * Constructs a new MethodOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodOptions); + + /** MethodOptions deprecated. */ + public deprecated: boolean; + + /** MethodOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodOptions instance + */ + public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; + + /** + * Encodes the specified MethodOptions message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns MethodOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; - /** AddonPurchaseOptions professionalServicesSilver. */ - public professionalServicesSilver?: (BI.IPurchaseOptions|null); + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @param message MethodOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** AddonPurchaseOptions professionalServicesPlatinum. */ - public professionalServicesPlatinum?: (BI.IPurchaseOptions|null); + /** + * Converts this MethodOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** AddonPurchaseOptions pam. */ - public pam?: (BI.IPurchaseOptions|null); + /** + * Gets the default type url for MethodOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { + + /** UninterpretedOption name */ + name?: (google.protobuf.UninterpretedOption.INamePart[]|null); + + /** UninterpretedOption identifierValue */ + identifierValue?: (string|null); + + /** UninterpretedOption positiveIntValue */ + positiveIntValue?: (number|Long|null); + + /** UninterpretedOption negativeIntValue */ + negativeIntValue?: (number|Long|null); + + /** UninterpretedOption doubleValue */ + doubleValue?: (number|null); + + /** UninterpretedOption stringValue */ + stringValue?: (Uint8Array|null); + + /** UninterpretedOption aggregateValue */ + aggregateValue?: (string|null); + } + + /** Represents an UninterpretedOption. */ + class UninterpretedOption implements IUninterpretedOption { + + /** + * Constructs a new UninterpretedOption. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUninterpretedOption); + + /** UninterpretedOption name. */ + public name: google.protobuf.UninterpretedOption.INamePart[]; + + /** UninterpretedOption identifierValue. */ + public identifierValue: string; + + /** UninterpretedOption positiveIntValue. */ + public positiveIntValue: (number|Long); + + /** UninterpretedOption negativeIntValue. */ + public negativeIntValue: (number|Long); + + /** UninterpretedOption doubleValue. */ + public doubleValue: number; + + /** UninterpretedOption stringValue. */ + public stringValue: Uint8Array; + + /** UninterpretedOption aggregateValue. */ + public aggregateValue: string; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @param [properties] Properties to set + * @returns UninterpretedOption instance + */ + public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; + + /** + * Encodes the specified UninterpretedOption message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns UninterpretedOption + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; + + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @param message UninterpretedOption + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UninterpretedOption to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UninterpretedOption + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace UninterpretedOption { + + /** Properties of a NamePart. */ + interface INamePart { + + /** NamePart namePart */ + namePart: string; + + /** NamePart isExtension */ + isExtension: boolean; + } + + /** Represents a NamePart. */ + class NamePart implements INamePart { + + /** + * Constructs a new NamePart. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.UninterpretedOption.INamePart); + + /** NamePart namePart. */ + public namePart: string; + + /** NamePart isExtension. */ + public isExtension: boolean; + + /** + * Creates a new NamePart instance using the specified properties. + * @param [properties] Properties to set + * @returns NamePart instance + */ + public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; + + /** + * Encodes the specified NamePart message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns NamePart + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @param message NamePart + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NamePart to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NamePart + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a SourceCodeInfo. */ + interface ISourceCodeInfo { + + /** SourceCodeInfo location */ + location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); + } + + /** Represents a SourceCodeInfo. */ + class SourceCodeInfo implements ISourceCodeInfo { + + /** + * Constructs a new SourceCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ISourceCodeInfo); + + /** SourceCodeInfo location. */ + public location: google.protobuf.SourceCodeInfo.ILocation[]; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceCodeInfo instance + */ + public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; + + /** + * Encodes the specified SourceCodeInfo message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns SourceCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; + + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @param message SourceCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SourceCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SourceCodeInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace SourceCodeInfo { + + /** Properties of a Location. */ + interface ILocation { + + /** Location path */ + path?: (number[]|null); + + /** Location span */ + span?: (number[]|null); + + /** Location leadingComments */ + leadingComments?: (string|null); + + /** Location trailingComments */ + trailingComments?: (string|null); + + /** Location leadingDetachedComments */ + leadingDetachedComments?: (string[]|null); + } + + /** Represents a Location. */ + class Location implements ILocation { + + /** + * Constructs a new Location. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); + + /** Location path. */ + public path: number[]; + + /** Location span. */ + public span: number[]; + + /** Location leadingComments. */ + public leadingComments: string; + + /** Location trailingComments. */ + public trailingComments: string; + + /** Location leadingDetachedComments. */ + public leadingDetachedComments: string[]; + + /** + * Creates a new Location instance using the specified properties. + * @param [properties] Properties to set + * @returns Location instance + */ + public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; + + /** + * Encodes the specified Location message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns Location + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @param message Location + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Location to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Location + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a GeneratedCodeInfo. */ + interface IGeneratedCodeInfo { + + /** GeneratedCodeInfo annotation */ + annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); + } + + /** Represents a GeneratedCodeInfo. */ + class GeneratedCodeInfo implements IGeneratedCodeInfo { + + /** + * Constructs a new GeneratedCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IGeneratedCodeInfo); + + /** GeneratedCodeInfo annotation. */ + public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns GeneratedCodeInfo instance + */ + public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; + + /** + * Encodes the specified GeneratedCodeInfo message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns GeneratedCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; + + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @param message GeneratedCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GeneratedCodeInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace GeneratedCodeInfo { + + /** Properties of an Annotation. */ + interface IAnnotation { + + /** Annotation path */ + path?: (number[]|null); + + /** Annotation sourceFile */ + sourceFile?: (string|null); + + /** Annotation begin */ + begin?: (number|null); + + /** Annotation end */ + end?: (number|null); + } + + /** Represents an Annotation. */ + class Annotation implements IAnnotation { + + /** + * Constructs a new Annotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + + /** Annotation path. */ + public path: number[]; + + /** Annotation sourceFile. */ + public sourceFile: string; + + /** Annotation begin. */ + public begin: number; + + /** Annotation end. */ + public end: number; + + /** + * Creates a new Annotation instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotation instance + */ + public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Encodes the specified Annotation message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns Annotation + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @param message Annotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Annotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Annotation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a Struct. */ + interface IStruct { + + /** Struct fields */ + fields?: ({ [k: string]: google.protobuf.IValue }|null); + } + + /** Represents a Struct. */ + class Struct implements IStruct { + + /** + * Constructs a new Struct. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IStruct); + + /** Struct fields. */ + public fields: { [k: string]: google.protobuf.IValue }; + + /** + * Creates a new Struct instance using the specified properties. + * @param [properties] Properties to set + * @returns Struct instance + */ + public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct; + + /** + * Encodes the specified Struct message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns Struct + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Struct; + + /** + * Creates a plain object from a Struct message. Also converts values to other types if specified. + * @param message Struct + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Struct to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Struct + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Value. */ + interface IValue { + + /** Value nullValue */ + nullValue?: (google.protobuf.NullValue|null); + + /** Value numberValue */ + numberValue?: (number|null); + + /** Value stringValue */ + stringValue?: (string|null); + + /** Value boolValue */ + boolValue?: (boolean|null); + + /** Value structValue */ + structValue?: (google.protobuf.IStruct|null); + + /** Value listValue */ + listValue?: (google.protobuf.IListValue|null); + } + + /** Represents a Value. */ + class Value implements IValue { + + /** + * Constructs a new Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IValue); + + /** Value nullValue. */ + public nullValue?: (google.protobuf.NullValue|null); + + /** Value numberValue. */ + public numberValue?: (number|null); + + /** Value stringValue. */ + public stringValue?: (string|null); + + /** Value boolValue. */ + public boolValue?: (boolean|null); + + /** Value structValue. */ + public structValue?: (google.protobuf.IStruct|null); + + /** Value listValue. */ + public listValue?: (google.protobuf.IListValue|null); + + /** Value kind. */ + public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"); + + /** + * Creates a new Value instance using the specified properties. + * @param [properties] Properties to set + * @returns Value instance + */ + public static create(properties?: google.protobuf.IValue): google.protobuf.Value; + + /** + * Encodes the specified Value message. 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 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 + * @param [length] Message length if known beforehand + * @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 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 + * @returns Value + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Value; + + /** + * Creates a plain object from a Value message. Also converts values to other types if specified. + * @param message Value + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Value to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Value + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** NullValue enum. */ + enum NullValue { + NULL_VALUE = 0 + } + + /** Properties of a ListValue. */ + interface IListValue { + + /** ListValue values */ + values?: (google.protobuf.IValue[]|null); + } + + /** Represents a ListValue. */ + class ListValue implements IListValue { + + /** + * Constructs a new ListValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IListValue); + + /** ListValue values. */ + public values: google.protobuf.IValue[]; + + /** + * Creates a new ListValue instance using the specified properties. + * @param [properties] Properties to set + * @returns ListValue instance + */ + public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue; + + /** + * Encodes the specified ListValue message. 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 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 + * @param [length] Message length if known beforehand + * @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 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; - /** AddonPurchaseOptions epm. */ - public epm?: (BI.IPurchaseOptions|null); + /** + * 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); - /** AddonPurchaseOptions secretsManager. */ - public secretsManager?: (BI.IPurchaseOptions|null); + /** + * Creates a ListValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListValue + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue; - /** AddonPurchaseOptions connectionManager. */ - public connectionManager?: (BI.IPurchaseOptions|null); + /** + * Creates a plain object from a ListValue message. Also converts values to other types if specified. + * @param message ListValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** AddonPurchaseOptions remoteBrowserIsolation. */ - public remoteBrowserIsolation?: (BI.IPurchaseOptions|null); + /** + * Converts this ListValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** AddonPurchaseOptions _storage. */ - public _storage?: "storage"; + /** + * Gets the default type url for ListValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } +} - /** AddonPurchaseOptions _audit. */ - public _audit?: "audit"; +/** Namespace Router. */ +export namespace Router { - /** AddonPurchaseOptions _breachwatch. */ - public _breachwatch?: "breachwatch"; + /** RouterResponseCode enum. */ + enum RouterResponseCode { + RRC_OK = 0, + RRC_GENERAL_ERROR = 1, + RRC_NOT_ALLOWED = 2, + RRC_BAD_REQUEST = 3, + RRC_TIMEOUT = 4, + RRC_BAD_STATE = 5, + RRC_CONTROLLER_DOWN = 6, + RRC_WRONG_INSTANCE = 7, + RRC_NOT_ALLOWED_ENFORCEMENT_NOT_ENABLED = 8, + RRC_NOT_ALLOWED_PAM_CONFIG_FEATURES_NOT_ENABLED = 9 + } - /** AddonPurchaseOptions _chat. */ - public _chat?: "chat"; + /** Properties of a RouterResponse. */ + interface IRouterResponse { - /** AddonPurchaseOptions _compliance. */ - public _compliance?: "compliance"; + /** RouterResponse responseCode */ + responseCode?: (Router.RouterResponseCode|null); - /** AddonPurchaseOptions _professionalServicesSilver. */ - public _professionalServicesSilver?: "professionalServicesSilver"; + /** RouterResponse errorMessage */ + errorMessage?: (string|null); - /** AddonPurchaseOptions _professionalServicesPlatinum. */ - public _professionalServicesPlatinum?: "professionalServicesPlatinum"; + /** RouterResponse encryptedPayload */ + encryptedPayload?: (Uint8Array|null); + } - /** AddonPurchaseOptions _pam. */ - public _pam?: "pam"; + /** Represents a RouterResponse. */ + class RouterResponse implements IRouterResponse { - /** AddonPurchaseOptions _epm. */ - public _epm?: "epm"; + /** + * Constructs a new RouterResponse. + * @param [properties] Properties to set + */ + constructor(properties?: Router.IRouterResponse); - /** AddonPurchaseOptions _secretsManager. */ - public _secretsManager?: "secretsManager"; + /** RouterResponse responseCode. */ + public responseCode: Router.RouterResponseCode; - /** AddonPurchaseOptions _connectionManager. */ - public _connectionManager?: "connectionManager"; + /** RouterResponse errorMessage. */ + public errorMessage: string; - /** AddonPurchaseOptions _remoteBrowserIsolation. */ - public _remoteBrowserIsolation?: "remoteBrowserIsolation"; + /** RouterResponse encryptedPayload. */ + public encryptedPayload: Uint8Array; /** - * Creates a new AddonPurchaseOptions instance using the specified properties. + * Creates a new RouterResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AddonPurchaseOptions instance + * @returns RouterResponse instance */ - public static create(properties?: BI.IAddonPurchaseOptions): BI.AddonPurchaseOptions; + public static create(properties?: Router.IRouterResponse): Router.RouterResponse; /** - * Encodes the specified AddonPurchaseOptions message. Does not implicitly {@link BI.AddonPurchaseOptions.verify|verify} messages. - * @param message AddonPurchaseOptions message or plain object to encode + * Encodes the specified RouterResponse message. 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 encode(message: BI.IAddonPurchaseOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterResponse, 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 + * 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: BI.IAddonPurchaseOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IRouterResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddonPurchaseOptions message from the specified reader or buffer. + * Decodes a RouterResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddonPurchaseOptions + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.AddonPurchaseOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterResponse; /** - * Decodes an AddonPurchaseOptions message from the specified reader or buffer, length delimited. + * Decodes a RouterResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddonPurchaseOptions + * @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)): BI.AddonPurchaseOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.RouterResponse; /** - * Verifies an AddonPurchaseOptions message. + * 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 an AddonPurchaseOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RouterResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddonPurchaseOptions + * @returns RouterResponse */ - public static fromObject(object: { [k: string]: any }): BI.AddonPurchaseOptions; + public static fromObject(object: { [k: string]: any }): Router.RouterResponse; /** - * Creates a plain object from an AddonPurchaseOptions message. Also converts values to other types if specified. - * @param message AddonPurchaseOptions + * Creates a plain object from a RouterResponse message. Also converts values to other types if specified. + * @param message RouterResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.AddonPurchaseOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddonPurchaseOptions to JSON. + * Converts this RouterResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddonPurchaseOptions + * Gets the default type url for RouterResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AvailablePurchaseOptions. */ - interface IAvailablePurchaseOptions { + /** Properties of a RouterControllerMessage. */ + interface IRouterControllerMessage { - /** AvailablePurchaseOptions basePlan */ - basePlan?: (BI.IPurchaseOptions|null); + /** RouterControllerMessage messageType */ + messageType?: (PAM.ControllerMessageType|null); - /** AvailablePurchaseOptions users */ - users?: (BI.IPurchaseOptions|null); + /** RouterControllerMessage messageUid */ + messageUid?: (Uint8Array|null); - /** AvailablePurchaseOptions addons */ - addons?: (BI.IAddonPurchaseOptions|null); + /** RouterControllerMessage controllerUid */ + controllerUid?: (Uint8Array|null); + + /** RouterControllerMessage streamResponse */ + streamResponse?: (boolean|null); + + /** RouterControllerMessage payload */ + payload?: (Uint8Array|null); + + /** RouterControllerMessage timeout */ + timeout?: (number|null); } - /** Represents an AvailablePurchaseOptions. */ - class AvailablePurchaseOptions implements IAvailablePurchaseOptions { + /** Represents a RouterControllerMessage. */ + class RouterControllerMessage implements IRouterControllerMessage { /** - * Constructs a new AvailablePurchaseOptions. + * Constructs a new RouterControllerMessage. * @param [properties] Properties to set */ - constructor(properties?: BI.IAvailablePurchaseOptions); + constructor(properties?: Router.IRouterControllerMessage); - /** AvailablePurchaseOptions basePlan. */ - public basePlan?: (BI.IPurchaseOptions|null); + /** RouterControllerMessage messageType. */ + public messageType: PAM.ControllerMessageType; - /** AvailablePurchaseOptions users. */ - public users?: (BI.IPurchaseOptions|null); + /** RouterControllerMessage messageUid. */ + public messageUid: Uint8Array; - /** AvailablePurchaseOptions addons. */ - public addons?: (BI.IAddonPurchaseOptions|null); + /** RouterControllerMessage controllerUid. */ + public controllerUid: Uint8Array; + + /** RouterControllerMessage streamResponse. */ + public streamResponse: boolean; + + /** RouterControllerMessage payload. */ + public payload: Uint8Array; + + /** RouterControllerMessage timeout. */ + public timeout: number; /** - * Creates a new AvailablePurchaseOptions instance using the specified properties. + * Creates a new RouterControllerMessage instance using the specified properties. * @param [properties] Properties to set - * @returns AvailablePurchaseOptions instance + * @returns RouterControllerMessage instance */ - public static create(properties?: BI.IAvailablePurchaseOptions): BI.AvailablePurchaseOptions; + public static create(properties?: Router.IRouterControllerMessage): Router.RouterControllerMessage; /** - * Encodes the specified AvailablePurchaseOptions message. Does not implicitly {@link BI.AvailablePurchaseOptions.verify|verify} messages. - * @param message AvailablePurchaseOptions message or plain object to encode + * Encodes the specified RouterControllerMessage message. 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 encode(message: BI.IAvailablePurchaseOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterControllerMessage, 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 + * 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: BI.IAvailablePurchaseOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IRouterControllerMessage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AvailablePurchaseOptions message from the specified reader or buffer. + * Decodes a RouterControllerMessage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AvailablePurchaseOptions + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.AvailablePurchaseOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterControllerMessage; /** - * Decodes an AvailablePurchaseOptions message from the specified reader or buffer, length delimited. + * Decodes a RouterControllerMessage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AvailablePurchaseOptions + * @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)): BI.AvailablePurchaseOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.RouterControllerMessage; /** - * Verifies an AvailablePurchaseOptions message. + * 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 an AvailablePurchaseOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RouterControllerMessage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AvailablePurchaseOptions + * @returns RouterControllerMessage */ - public static fromObject(object: { [k: string]: any }): BI.AvailablePurchaseOptions; + public static fromObject(object: { [k: string]: any }): Router.RouterControllerMessage; /** - * Creates a plain object from an AvailablePurchaseOptions message. Also converts values to other types if specified. - * @param message AvailablePurchaseOptions + * Creates a plain object from a RouterControllerMessage message. Also converts values to other types if specified. + * @param message RouterControllerMessage * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.AvailablePurchaseOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterControllerMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AvailablePurchaseOptions to JSON. + * Converts this RouterControllerMessage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AvailablePurchaseOptions + * Gets the default type url for RouterControllerMessage * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpgradeLicenseStatusRequest. */ - interface IUpgradeLicenseStatusRequest { + /** Properties of a RouterUserAuth. */ + interface IRouterUserAuth { + + /** RouterUserAuth transmissionKey */ + transmissionKey?: (Uint8Array|null); + + /** RouterUserAuth sessionToken */ + sessionToken?: (Uint8Array|null); + + /** RouterUserAuth userId */ + userId?: (number|null); + + /** RouterUserAuth enterpriseUserId */ + enterpriseUserId?: (number|Long|null); + + /** RouterUserAuth deviceName */ + deviceName?: (string|null); + + /** RouterUserAuth deviceToken */ + deviceToken?: (Uint8Array|null); + + /** RouterUserAuth clientVersionId */ + clientVersionId?: (number|null); + + /** RouterUserAuth needUsername */ + needUsername?: (boolean|null); + + /** RouterUserAuth username */ + username?: (string|null); + + /** RouterUserAuth mspEnterpriseId */ + mspEnterpriseId?: (number|null); + + /** RouterUserAuth isPedmAdmin */ + isPedmAdmin?: (boolean|null); + + /** RouterUserAuth mcEnterpriseId */ + mcEnterpriseId?: (number|null); } - /** Represents an UpgradeLicenseStatusRequest. */ - class UpgradeLicenseStatusRequest implements IUpgradeLicenseStatusRequest { + /** Represents a RouterUserAuth. */ + class RouterUserAuth implements IRouterUserAuth { /** - * Constructs a new UpgradeLicenseStatusRequest. + * Constructs a new RouterUserAuth. * @param [properties] Properties to set */ - constructor(properties?: BI.IUpgradeLicenseStatusRequest); + constructor(properties?: Router.IRouterUserAuth); + + /** RouterUserAuth transmissionKey. */ + public transmissionKey: Uint8Array; + + /** RouterUserAuth sessionToken. */ + public sessionToken: Uint8Array; + + /** RouterUserAuth userId. */ + public userId: number; + + /** RouterUserAuth enterpriseUserId. */ + public enterpriseUserId: (number|Long); + + /** RouterUserAuth deviceName. */ + public deviceName: string; + + /** RouterUserAuth deviceToken. */ + public deviceToken: Uint8Array; + + /** RouterUserAuth clientVersionId. */ + public clientVersionId: number; + + /** RouterUserAuth needUsername. */ + public needUsername: boolean; + + /** RouterUserAuth username. */ + public username: string; + + /** RouterUserAuth mspEnterpriseId. */ + public mspEnterpriseId: number; + + /** RouterUserAuth isPedmAdmin. */ + public isPedmAdmin: boolean; + + /** RouterUserAuth mcEnterpriseId. */ + public mcEnterpriseId: number; /** - * Creates a new UpgradeLicenseStatusRequest instance using the specified properties. + * Creates a new RouterUserAuth instance using the specified properties. * @param [properties] Properties to set - * @returns UpgradeLicenseStatusRequest instance + * @returns RouterUserAuth instance */ - public static create(properties?: BI.IUpgradeLicenseStatusRequest): BI.UpgradeLicenseStatusRequest; + public static create(properties?: Router.IRouterUserAuth): Router.RouterUserAuth; /** - * Encodes the specified UpgradeLicenseStatusRequest message. Does not implicitly {@link BI.UpgradeLicenseStatusRequest.verify|verify} messages. - * @param message UpgradeLicenseStatusRequest message or plain object to encode + * Encodes the specified RouterUserAuth message. 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 encode(message: BI.IUpgradeLicenseStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterUserAuth, 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 + * 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: BI.IUpgradeLicenseStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IRouterUserAuth, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpgradeLicenseStatusRequest message from the specified reader or buffer. + * Decodes a RouterUserAuth message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpgradeLicenseStatusRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.UpgradeLicenseStatusRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterUserAuth; /** - * Decodes an UpgradeLicenseStatusRequest message from the specified reader or buffer, length delimited. + * Decodes a RouterUserAuth message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpgradeLicenseStatusRequest + * @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)): BI.UpgradeLicenseStatusRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.RouterUserAuth; /** - * Verifies an UpgradeLicenseStatusRequest message. + * 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 an UpgradeLicenseStatusRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RouterUserAuth message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpgradeLicenseStatusRequest + * @returns RouterUserAuth */ - public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseStatusRequest; + public static fromObject(object: { [k: string]: any }): Router.RouterUserAuth; /** - * Creates a plain object from an UpgradeLicenseStatusRequest message. Also converts values to other types if specified. - * @param message UpgradeLicenseStatusRequest + * Creates a plain object from a RouterUserAuth message. Also converts values to other types if specified. + * @param message RouterUserAuth * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.UpgradeLicenseStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterUserAuth, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpgradeLicenseStatusRequest to JSON. + * Converts this RouterUserAuth to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpgradeLicenseStatusRequest + * Gets the default type url for RouterUserAuth * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpgradeLicenseStatusResponse. */ - interface IUpgradeLicenseStatusResponse { + /** Properties of a RouterDeviceAuth. */ + interface IRouterDeviceAuth { - /** UpgradeLicenseStatusResponse allowPurchaseFromConsole */ - allowPurchaseFromConsole?: (boolean|null); + /** RouterDeviceAuth clientId */ + clientId?: (string|null); - /** UpgradeLicenseStatusResponse purchaseOptions */ - purchaseOptions?: (BI.IAvailablePurchaseOptions|null); + /** RouterDeviceAuth clientVersion */ + clientVersion?: (string|null); - /** UpgradeLicenseStatusResponse error */ - error?: (BI.IError|null); + /** RouterDeviceAuth signature */ + signature?: (Uint8Array|null); + + /** RouterDeviceAuth enterpriseId */ + enterpriseId?: (number|null); + + /** RouterDeviceAuth nodeId */ + nodeId?: (number|Long|null); + + /** RouterDeviceAuth deviceName */ + deviceName?: (string|null); + + /** RouterDeviceAuth deviceToken */ + deviceToken?: (Uint8Array|null); + + /** RouterDeviceAuth controllerName */ + controllerName?: (string|null); + + /** RouterDeviceAuth controllerUid */ + controllerUid?: (Uint8Array|null); + + /** RouterDeviceAuth ownerUser */ + ownerUser?: (string|null); + + /** RouterDeviceAuth challenge */ + challenge?: (string|null); + + /** RouterDeviceAuth ownerId */ + ownerId?: (number|null); + + /** RouterDeviceAuth maxInstanceCount */ + maxInstanceCount?: (number|null); } - /** Represents an UpgradeLicenseStatusResponse. */ - class UpgradeLicenseStatusResponse implements IUpgradeLicenseStatusResponse { + /** Represents a RouterDeviceAuth. */ + class RouterDeviceAuth implements IRouterDeviceAuth { /** - * Constructs a new UpgradeLicenseStatusResponse. + * Constructs a new RouterDeviceAuth. * @param [properties] Properties to set */ - constructor(properties?: BI.IUpgradeLicenseStatusResponse); + constructor(properties?: Router.IRouterDeviceAuth); - /** UpgradeLicenseStatusResponse allowPurchaseFromConsole. */ - public allowPurchaseFromConsole: boolean; + /** RouterDeviceAuth clientId. */ + public clientId: string; - /** UpgradeLicenseStatusResponse purchaseOptions. */ - public purchaseOptions?: (BI.IAvailablePurchaseOptions|null); + /** RouterDeviceAuth clientVersion. */ + public clientVersion: string; - /** UpgradeLicenseStatusResponse error. */ - public error?: (BI.IError|null); + /** RouterDeviceAuth signature. */ + public signature: Uint8Array; + + /** RouterDeviceAuth enterpriseId. */ + public enterpriseId: number; + + /** RouterDeviceAuth nodeId. */ + public nodeId: (number|Long); + + /** RouterDeviceAuth deviceName. */ + public deviceName: string; + + /** RouterDeviceAuth deviceToken. */ + public deviceToken: Uint8Array; + + /** RouterDeviceAuth controllerName. */ + public controllerName: string; + + /** RouterDeviceAuth controllerUid. */ + public controllerUid: Uint8Array; + + /** RouterDeviceAuth ownerUser. */ + public ownerUser: string; + + /** RouterDeviceAuth challenge. */ + public challenge: string; + + /** RouterDeviceAuth ownerId. */ + public ownerId: number; + + /** RouterDeviceAuth maxInstanceCount. */ + public maxInstanceCount: number; /** - * Creates a new UpgradeLicenseStatusResponse instance using the specified properties. + * Creates a new RouterDeviceAuth instance using the specified properties. * @param [properties] Properties to set - * @returns UpgradeLicenseStatusResponse instance + * @returns RouterDeviceAuth instance */ - public static create(properties?: BI.IUpgradeLicenseStatusResponse): BI.UpgradeLicenseStatusResponse; + public static create(properties?: Router.IRouterDeviceAuth): Router.RouterDeviceAuth; /** - * Encodes the specified UpgradeLicenseStatusResponse message. Does not implicitly {@link BI.UpgradeLicenseStatusResponse.verify|verify} messages. - * @param message UpgradeLicenseStatusResponse message or plain object to encode + * Encodes the specified RouterDeviceAuth message. 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 encode(message: BI.IUpgradeLicenseStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterDeviceAuth, 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 + * 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: BI.IUpgradeLicenseStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IRouterDeviceAuth, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpgradeLicenseStatusResponse message from the specified reader or buffer. + * Decodes a RouterDeviceAuth message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpgradeLicenseStatusResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.UpgradeLicenseStatusResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterDeviceAuth; /** - * Decodes an UpgradeLicenseStatusResponse message from the specified reader or buffer, length delimited. + * Decodes a RouterDeviceAuth message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpgradeLicenseStatusResponse + * @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)): BI.UpgradeLicenseStatusResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.RouterDeviceAuth; /** - * Verifies an UpgradeLicenseStatusResponse message. + * 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 an UpgradeLicenseStatusResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RouterDeviceAuth message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpgradeLicenseStatusResponse + * @returns RouterDeviceAuth */ - public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseStatusResponse; + public static fromObject(object: { [k: string]: any }): Router.RouterDeviceAuth; /** - * Creates a plain object from an UpgradeLicenseStatusResponse message. Also converts values to other types if specified. - * @param message UpgradeLicenseStatusResponse + * Creates a plain object from a RouterDeviceAuth message. Also converts values to other types if specified. + * @param message RouterDeviceAuth * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.UpgradeLicenseStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterDeviceAuth, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpgradeLicenseStatusResponse to JSON. + * Converts this RouterDeviceAuth to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpgradeLicenseStatusResponse + * Gets the default type url for RouterDeviceAuth * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpgradeLicenseQuotePurchaseRequest. */ - interface IUpgradeLicenseQuotePurchaseRequest { + /** Properties of a RouterRecordRotation. */ + interface IRouterRecordRotation { - /** UpgradeLicenseQuotePurchaseRequest productType */ - productType?: (BI.PurchaseProductType|null); + /** RouterRecordRotation recordUid */ + recordUid?: (Uint8Array|null); - /** UpgradeLicenseQuotePurchaseRequest quantity */ - quantity?: (number|null); + /** RouterRecordRotation configurationUid */ + configurationUid?: (Uint8Array|null); - /** UpgradeLicenseQuotePurchaseRequest tier */ - tier?: (number|null); + /** RouterRecordRotation controllerUid */ + controllerUid?: (Uint8Array|null); + + /** RouterRecordRotation resourceUid */ + resourceUid?: (Uint8Array|null); + + /** RouterRecordRotation noSchedule */ + noSchedule?: (boolean|null); } - /** Represents an UpgradeLicenseQuotePurchaseRequest. */ - class UpgradeLicenseQuotePurchaseRequest implements IUpgradeLicenseQuotePurchaseRequest { + /** Represents a RouterRecordRotation. */ + class RouterRecordRotation implements IRouterRecordRotation { /** - * Constructs a new UpgradeLicenseQuotePurchaseRequest. + * Constructs a new RouterRecordRotation. * @param [properties] Properties to set */ - constructor(properties?: BI.IUpgradeLicenseQuotePurchaseRequest); + constructor(properties?: Router.IRouterRecordRotation); - /** UpgradeLicenseQuotePurchaseRequest productType. */ - public productType: BI.PurchaseProductType; + /** RouterRecordRotation recordUid. */ + public recordUid: Uint8Array; - /** UpgradeLicenseQuotePurchaseRequest quantity. */ - public quantity: number; + /** RouterRecordRotation configurationUid. */ + public configurationUid: Uint8Array; - /** UpgradeLicenseQuotePurchaseRequest tier. */ - public tier: number; + /** RouterRecordRotation controllerUid. */ + public controllerUid: Uint8Array; + + /** RouterRecordRotation resourceUid. */ + public resourceUid: Uint8Array; + + /** RouterRecordRotation noSchedule. */ + public noSchedule: boolean; /** - * Creates a new UpgradeLicenseQuotePurchaseRequest instance using the specified properties. + * Creates a new RouterRecordRotation instance using the specified properties. * @param [properties] Properties to set - * @returns UpgradeLicenseQuotePurchaseRequest instance + * @returns RouterRecordRotation instance */ - public static create(properties?: BI.IUpgradeLicenseQuotePurchaseRequest): BI.UpgradeLicenseQuotePurchaseRequest; + public static create(properties?: Router.IRouterRecordRotation): Router.RouterRecordRotation; /** - * Encodes the specified UpgradeLicenseQuotePurchaseRequest message. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseRequest.verify|verify} messages. - * @param message UpgradeLicenseQuotePurchaseRequest message or plain object to encode + * Encodes the specified RouterRecordRotation message. 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 encode(message: BI.IUpgradeLicenseQuotePurchaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterRecordRotation, 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 + * 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: BI.IUpgradeLicenseQuotePurchaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IRouterRecordRotation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpgradeLicenseQuotePurchaseRequest message from the specified reader or buffer. + * Decodes a RouterRecordRotation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpgradeLicenseQuotePurchaseRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.UpgradeLicenseQuotePurchaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRecordRotation; /** - * Decodes an UpgradeLicenseQuotePurchaseRequest message from the specified reader or buffer, length delimited. + * Decodes a RouterRecordRotation message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpgradeLicenseQuotePurchaseRequest + * @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)): BI.UpgradeLicenseQuotePurchaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.RouterRecordRotation; /** - * Verifies an UpgradeLicenseQuotePurchaseRequest message. + * 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 an UpgradeLicenseQuotePurchaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RouterRecordRotation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpgradeLicenseQuotePurchaseRequest + * @returns RouterRecordRotation */ - public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseQuotePurchaseRequest; + public static fromObject(object: { [k: string]: any }): Router.RouterRecordRotation; /** - * Creates a plain object from an UpgradeLicenseQuotePurchaseRequest message. Also converts values to other types if specified. - * @param message UpgradeLicenseQuotePurchaseRequest + * Creates a plain object from a RouterRecordRotation message. Also converts values to other types if specified. + * @param message RouterRecordRotation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.UpgradeLicenseQuotePurchaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterRecordRotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpgradeLicenseQuotePurchaseRequest to JSON. + * Converts this RouterRecordRotation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpgradeLicenseQuotePurchaseRequest + * Gets the default type url for RouterRecordRotation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpgradeLicenseQuotePurchaseResponse. */ - interface IUpgradeLicenseQuotePurchaseResponse { - - /** UpgradeLicenseQuotePurchaseResponse success */ - success?: (boolean|null); - - /** UpgradeLicenseQuotePurchaseResponse quotePurchase */ - quotePurchase?: (BI.IQuotePurchase|null); + /** Properties of a RouterRecordRotationsRequest. */ + interface IRouterRecordRotationsRequest { - /** UpgradeLicenseQuotePurchaseResponse viewSummaryLink */ - viewSummaryLink?: (string|null); + /** RouterRecordRotationsRequest enterpriseId */ + enterpriseId?: (number|null); - /** UpgradeLicenseQuotePurchaseResponse error */ - error?: (BI.IError|null); + /** RouterRecordRotationsRequest records */ + records?: (Uint8Array[]|null); } - /** Represents an UpgradeLicenseQuotePurchaseResponse. */ - class UpgradeLicenseQuotePurchaseResponse implements IUpgradeLicenseQuotePurchaseResponse { + /** Represents a RouterRecordRotationsRequest. */ + class RouterRecordRotationsRequest implements IRouterRecordRotationsRequest { /** - * Constructs a new UpgradeLicenseQuotePurchaseResponse. + * Constructs a new RouterRecordRotationsRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IUpgradeLicenseQuotePurchaseResponse); - - /** UpgradeLicenseQuotePurchaseResponse success. */ - public success: boolean; - - /** UpgradeLicenseQuotePurchaseResponse quotePurchase. */ - public quotePurchase?: (BI.IQuotePurchase|null); + constructor(properties?: Router.IRouterRecordRotationsRequest); - /** UpgradeLicenseQuotePurchaseResponse viewSummaryLink. */ - public viewSummaryLink: string; + /** RouterRecordRotationsRequest enterpriseId. */ + public enterpriseId: number; - /** UpgradeLicenseQuotePurchaseResponse error. */ - public error?: (BI.IError|null); + /** RouterRecordRotationsRequest records. */ + public records: Uint8Array[]; /** - * Creates a new UpgradeLicenseQuotePurchaseResponse instance using the specified properties. + * Creates a new RouterRecordRotationsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpgradeLicenseQuotePurchaseResponse instance + * @returns RouterRecordRotationsRequest instance */ - public static create(properties?: BI.IUpgradeLicenseQuotePurchaseResponse): BI.UpgradeLicenseQuotePurchaseResponse; + public static create(properties?: Router.IRouterRecordRotationsRequest): Router.RouterRecordRotationsRequest; /** - * Encodes the specified UpgradeLicenseQuotePurchaseResponse message. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseResponse.verify|verify} messages. - * @param message UpgradeLicenseQuotePurchaseResponse message or plain object to encode + * Encodes the specified RouterRecordRotationsRequest message. 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 encode(message: BI.IUpgradeLicenseQuotePurchaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterRecordRotationsRequest, 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 + * 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: BI.IUpgradeLicenseQuotePurchaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IRouterRecordRotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpgradeLicenseQuotePurchaseResponse message from the specified reader or buffer. + * Decodes a RouterRecordRotationsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpgradeLicenseQuotePurchaseResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.UpgradeLicenseQuotePurchaseResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRecordRotationsRequest; /** - * Decodes an UpgradeLicenseQuotePurchaseResponse message from the specified reader or buffer, length delimited. + * Decodes a RouterRecordRotationsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpgradeLicenseQuotePurchaseResponse + * @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)): BI.UpgradeLicenseQuotePurchaseResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.RouterRecordRotationsRequest; /** - * Verifies an UpgradeLicenseQuotePurchaseResponse message. + * 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 an UpgradeLicenseQuotePurchaseResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RouterRecordRotationsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpgradeLicenseQuotePurchaseResponse + * @returns RouterRecordRotationsRequest */ - public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseQuotePurchaseResponse; + public static fromObject(object: { [k: string]: any }): Router.RouterRecordRotationsRequest; /** - * Creates a plain object from an UpgradeLicenseQuotePurchaseResponse message. Also converts values to other types if specified. - * @param message UpgradeLicenseQuotePurchaseResponse + * Creates a plain object from a RouterRecordRotationsRequest message. Also converts values to other types if specified. + * @param message RouterRecordRotationsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.UpgradeLicenseQuotePurchaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterRecordRotationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpgradeLicenseQuotePurchaseResponse to JSON. + * Converts this RouterRecordRotationsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpgradeLicenseQuotePurchaseResponse + * Gets the default type url for RouterRecordRotationsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpgradeLicenseCompletePurchaseRequest. */ - interface IUpgradeLicenseCompletePurchaseRequest { - - /** UpgradeLicenseCompletePurchaseRequest productType */ - productType?: (BI.PurchaseProductType|null); - - /** UpgradeLicenseCompletePurchaseRequest quantity */ - quantity?: (number|null); + /** Properties of a RouterRecordRotationsResponse. */ + interface IRouterRecordRotationsResponse { - /** UpgradeLicenseCompletePurchaseRequest quotePurchase */ - quotePurchase?: (BI.IQuotePurchase|null); + /** RouterRecordRotationsResponse rotations */ + rotations?: (Router.IRouterRecordRotation[]|null); - /** UpgradeLicenseCompletePurchaseRequest tier */ - tier?: (number|null); + /** RouterRecordRotationsResponse hasMore */ + hasMore?: (boolean|null); } - /** Represents an UpgradeLicenseCompletePurchaseRequest. */ - class UpgradeLicenseCompletePurchaseRequest implements IUpgradeLicenseCompletePurchaseRequest { + /** Represents a RouterRecordRotationsResponse. */ + class RouterRecordRotationsResponse implements IRouterRecordRotationsResponse { /** - * Constructs a new UpgradeLicenseCompletePurchaseRequest. + * Constructs a new RouterRecordRotationsResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IUpgradeLicenseCompletePurchaseRequest); - - /** UpgradeLicenseCompletePurchaseRequest productType. */ - public productType: BI.PurchaseProductType; - - /** UpgradeLicenseCompletePurchaseRequest quantity. */ - public quantity: number; + constructor(properties?: Router.IRouterRecordRotationsResponse); - /** UpgradeLicenseCompletePurchaseRequest quotePurchase. */ - public quotePurchase?: (BI.IQuotePurchase|null); + /** RouterRecordRotationsResponse rotations. */ + public rotations: Router.IRouterRecordRotation[]; - /** UpgradeLicenseCompletePurchaseRequest tier. */ - public tier: number; + /** RouterRecordRotationsResponse hasMore. */ + public hasMore: boolean; /** - * Creates a new UpgradeLicenseCompletePurchaseRequest instance using the specified properties. + * Creates a new RouterRecordRotationsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpgradeLicenseCompletePurchaseRequest instance + * @returns RouterRecordRotationsResponse instance */ - public static create(properties?: BI.IUpgradeLicenseCompletePurchaseRequest): BI.UpgradeLicenseCompletePurchaseRequest; + public static create(properties?: Router.IRouterRecordRotationsResponse): Router.RouterRecordRotationsResponse; /** - * Encodes the specified UpgradeLicenseCompletePurchaseRequest message. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseRequest.verify|verify} messages. - * @param message UpgradeLicenseCompletePurchaseRequest message or plain object to encode + * Encodes the specified RouterRecordRotationsResponse message. 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 encode(message: BI.IUpgradeLicenseCompletePurchaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterRecordRotationsResponse, 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 + * 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: BI.IUpgradeLicenseCompletePurchaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IRouterRecordRotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpgradeLicenseCompletePurchaseRequest message from the specified reader or buffer. + * Decodes a RouterRecordRotationsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpgradeLicenseCompletePurchaseRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.UpgradeLicenseCompletePurchaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRecordRotationsResponse; /** - * Decodes an UpgradeLicenseCompletePurchaseRequest message from the specified reader or buffer, length delimited. + * Decodes a RouterRecordRotationsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpgradeLicenseCompletePurchaseRequest + * @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)): BI.UpgradeLicenseCompletePurchaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.RouterRecordRotationsResponse; /** - * Verifies an UpgradeLicenseCompletePurchaseRequest message. + * 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 an UpgradeLicenseCompletePurchaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RouterRecordRotationsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpgradeLicenseCompletePurchaseRequest + * @returns RouterRecordRotationsResponse */ - public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseCompletePurchaseRequest; + public static fromObject(object: { [k: string]: any }): Router.RouterRecordRotationsResponse; /** - * Creates a plain object from an UpgradeLicenseCompletePurchaseRequest message. Also converts values to other types if specified. - * @param message UpgradeLicenseCompletePurchaseRequest + * Creates a plain object from a RouterRecordRotationsResponse message. Also converts values to other types if specified. + * @param message RouterRecordRotationsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.UpgradeLicenseCompletePurchaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterRecordRotationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpgradeLicenseCompletePurchaseRequest to JSON. + * Converts this RouterRecordRotationsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpgradeLicenseCompletePurchaseRequest + * Gets the default type url for RouterRecordRotationsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpgradeLicenseCompletePurchaseResponse. */ - interface IUpgradeLicenseCompletePurchaseResponse { + /** RouterRotationStatus enum. */ + enum RouterRotationStatus { + RRS_ONLINE = 0, + RRS_NO_ROTATION = 1, + RRS_NO_CONTROLLER = 2, + RRS_CONTROLLER_DOWN = 3 + } - /** UpgradeLicenseCompletePurchaseResponse success */ - success?: (boolean|null); + /** Properties of a RouterRotationInfo. */ + interface IRouterRotationInfo { - /** UpgradeLicenseCompletePurchaseResponse invoiceNumber */ - invoiceNumber?: (string|null); + /** RouterRotationInfo status */ + status?: (Router.RouterRotationStatus|null); - /** UpgradeLicenseCompletePurchaseResponse error */ - error?: (BI.IError|null); + /** RouterRotationInfo configurationUid */ + configurationUid?: (Uint8Array|null); - /** UpgradeLicenseCompletePurchaseResponse quotePurchase */ - quotePurchase?: (BI.IQuotePurchase|null); + /** RouterRotationInfo resourceUid */ + resourceUid?: (Uint8Array|null); + + /** RouterRotationInfo nodeId */ + nodeId?: (number|Long|null); + + /** RouterRotationInfo controllerUid */ + controllerUid?: (Uint8Array|null); + + /** RouterRotationInfo controllerName */ + controllerName?: (string|null); + + /** RouterRotationInfo scriptName */ + scriptName?: (string|null); + + /** RouterRotationInfo pwdComplexity */ + pwdComplexity?: (string|null); + + /** RouterRotationInfo disabled */ + disabled?: (boolean|null); } - /** Represents an UpgradeLicenseCompletePurchaseResponse. */ - class UpgradeLicenseCompletePurchaseResponse implements IUpgradeLicenseCompletePurchaseResponse { + /** Represents a RouterRotationInfo. */ + class RouterRotationInfo implements IRouterRotationInfo { /** - * Constructs a new UpgradeLicenseCompletePurchaseResponse. + * Constructs a new RouterRotationInfo. * @param [properties] Properties to set */ - constructor(properties?: BI.IUpgradeLicenseCompletePurchaseResponse); + constructor(properties?: Router.IRouterRotationInfo); - /** UpgradeLicenseCompletePurchaseResponse success. */ - public success: boolean; + /** RouterRotationInfo status. */ + public status: Router.RouterRotationStatus; - /** UpgradeLicenseCompletePurchaseResponse invoiceNumber. */ - public invoiceNumber: string; + /** RouterRotationInfo configurationUid. */ + public configurationUid: Uint8Array; - /** UpgradeLicenseCompletePurchaseResponse error. */ - public error?: (BI.IError|null); + /** RouterRotationInfo resourceUid. */ + public resourceUid: Uint8Array; - /** UpgradeLicenseCompletePurchaseResponse quotePurchase. */ - public quotePurchase?: (BI.IQuotePurchase|null); + /** RouterRotationInfo nodeId. */ + public nodeId: (number|Long); + + /** RouterRotationInfo controllerUid. */ + public controllerUid: Uint8Array; + + /** RouterRotationInfo controllerName. */ + public controllerName: string; + + /** RouterRotationInfo scriptName. */ + public scriptName: string; + + /** RouterRotationInfo pwdComplexity. */ + public pwdComplexity: string; + + /** RouterRotationInfo disabled. */ + public disabled: boolean; /** - * Creates a new UpgradeLicenseCompletePurchaseResponse instance using the specified properties. + * Creates a new RouterRotationInfo instance using the specified properties. * @param [properties] Properties to set - * @returns UpgradeLicenseCompletePurchaseResponse instance + * @returns RouterRotationInfo instance */ - public static create(properties?: BI.IUpgradeLicenseCompletePurchaseResponse): BI.UpgradeLicenseCompletePurchaseResponse; + public static create(properties?: Router.IRouterRotationInfo): Router.RouterRotationInfo; /** - * Encodes the specified UpgradeLicenseCompletePurchaseResponse message. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseResponse.verify|verify} messages. - * @param message UpgradeLicenseCompletePurchaseResponse message or plain object to encode + * Encodes the specified RouterRotationInfo message. 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 encode(message: BI.IUpgradeLicenseCompletePurchaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterRotationInfo, 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 + * 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: BI.IUpgradeLicenseCompletePurchaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IRouterRotationInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpgradeLicenseCompletePurchaseResponse message from the specified reader or buffer. + * Decodes a RouterRotationInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpgradeLicenseCompletePurchaseResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.UpgradeLicenseCompletePurchaseResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRotationInfo; /** - * Decodes an UpgradeLicenseCompletePurchaseResponse message from the specified reader or buffer, length delimited. + * Decodes a RouterRotationInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpgradeLicenseCompletePurchaseResponse + * @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)): BI.UpgradeLicenseCompletePurchaseResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.RouterRotationInfo; /** - * Verifies an UpgradeLicenseCompletePurchaseResponse message. + * 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 an UpgradeLicenseCompletePurchaseResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RouterRotationInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpgradeLicenseCompletePurchaseResponse + * @returns RouterRotationInfo */ - public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseCompletePurchaseResponse; + public static fromObject(object: { [k: string]: any }): Router.RouterRotationInfo; /** - * Creates a plain object from an UpgradeLicenseCompletePurchaseResponse message. Also converts values to other types if specified. - * @param message UpgradeLicenseCompletePurchaseResponse + * Creates a plain object from a RouterRotationInfo message. Also converts values to other types if specified. + * @param message RouterRotationInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.UpgradeLicenseCompletePurchaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterRotationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpgradeLicenseCompletePurchaseResponse to JSON. + * Converts this RouterRotationInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpgradeLicenseCompletePurchaseResponse + * Gets the default type url for RouterRotationInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EnterpriseBasePlan. */ - interface IEnterpriseBasePlan { + /** Properties of a RouterRecordRotationRequest. */ + interface IRouterRecordRotationRequest { - /** EnterpriseBasePlan baseplanVersion */ - baseplanVersion?: (BI.EnterpriseBasePlan.EnterpriseBasePlanVersion|null); + /** RouterRecordRotationRequest recordUid */ + recordUid?: (Uint8Array|null); - /** EnterpriseBasePlan cost */ - cost?: (BI.ICost|null); + /** RouterRecordRotationRequest revision */ + revision?: (number|Long|null); + + /** RouterRecordRotationRequest configurationUid */ + configurationUid?: (Uint8Array|null); + + /** RouterRecordRotationRequest resourceUid */ + resourceUid?: (Uint8Array|null); + + /** RouterRecordRotationRequest schedule */ + schedule?: (string|null); + + /** RouterRecordRotationRequest enterpriseUserId */ + enterpriseUserId?: (number|Long|null); + + /** RouterRecordRotationRequest pwdComplexity */ + pwdComplexity?: (Uint8Array|null); + + /** RouterRecordRotationRequest disabled */ + disabled?: (boolean|null); + + /** RouterRecordRotationRequest remoteAddress */ + remoteAddress?: (string|null); + + /** RouterRecordRotationRequest clientVersionId */ + clientVersionId?: (number|null); + + /** RouterRecordRotationRequest noop */ + noop?: (boolean|null); + + /** RouterRecordRotationRequest saasConfiguration */ + saasConfiguration?: (Uint8Array|null); } - /** Represents an EnterpriseBasePlan. */ - class EnterpriseBasePlan implements IEnterpriseBasePlan { + /** Represents a RouterRecordRotationRequest. */ + class RouterRecordRotationRequest implements IRouterRecordRotationRequest { /** - * Constructs a new EnterpriseBasePlan. + * Constructs a new RouterRecordRotationRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IEnterpriseBasePlan); + constructor(properties?: Router.IRouterRecordRotationRequest); - /** EnterpriseBasePlan baseplanVersion. */ - public baseplanVersion: BI.EnterpriseBasePlan.EnterpriseBasePlanVersion; + /** RouterRecordRotationRequest recordUid. */ + public recordUid: Uint8Array; + + /** RouterRecordRotationRequest revision. */ + public revision: (number|Long); + + /** RouterRecordRotationRequest configurationUid. */ + public configurationUid: Uint8Array; + + /** RouterRecordRotationRequest resourceUid. */ + public resourceUid: Uint8Array; + + /** RouterRecordRotationRequest schedule. */ + public schedule: string; + + /** RouterRecordRotationRequest enterpriseUserId. */ + public enterpriseUserId: (number|Long); + + /** RouterRecordRotationRequest pwdComplexity. */ + public pwdComplexity: Uint8Array; + + /** RouterRecordRotationRequest disabled. */ + public disabled: boolean; + + /** RouterRecordRotationRequest remoteAddress. */ + public remoteAddress: string; + + /** RouterRecordRotationRequest clientVersionId. */ + public clientVersionId: number; + + /** RouterRecordRotationRequest noop. */ + public noop: boolean; + + /** RouterRecordRotationRequest saasConfiguration. */ + public saasConfiguration?: (Uint8Array|null); - /** EnterpriseBasePlan cost. */ - public cost?: (BI.ICost|null); + /** RouterRecordRotationRequest _saasConfiguration. */ + public _saasConfiguration?: "saasConfiguration"; /** - * Creates a new EnterpriseBasePlan instance using the specified properties. + * Creates a new RouterRecordRotationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns EnterpriseBasePlan instance + * @returns RouterRecordRotationRequest instance */ - public static create(properties?: BI.IEnterpriseBasePlan): BI.EnterpriseBasePlan; + public static create(properties?: Router.IRouterRecordRotationRequest): Router.RouterRecordRotationRequest; /** - * Encodes the specified EnterpriseBasePlan message. Does not implicitly {@link BI.EnterpriseBasePlan.verify|verify} messages. - * @param message EnterpriseBasePlan message or plain object to encode + * Encodes the specified RouterRecordRotationRequest message. 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 encode(message: BI.IEnterpriseBasePlan, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterRecordRotationRequest, 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 + * 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: BI.IEnterpriseBasePlan, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IRouterRecordRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnterpriseBasePlan message from the specified reader or buffer. + * Decodes a RouterRecordRotationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnterpriseBasePlan + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.EnterpriseBasePlan; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRecordRotationRequest; /** - * Decodes an EnterpriseBasePlan message from the specified reader or buffer, length delimited. + * Decodes a RouterRecordRotationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnterpriseBasePlan + * @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)): BI.EnterpriseBasePlan; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.RouterRecordRotationRequest; /** - * Verifies an EnterpriseBasePlan message. + * 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 an EnterpriseBasePlan message from a plain object. Also converts values to their respective internal types. + * Creates a RouterRecordRotationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnterpriseBasePlan + * @returns RouterRecordRotationRequest */ - public static fromObject(object: { [k: string]: any }): BI.EnterpriseBasePlan; + public static fromObject(object: { [k: string]: any }): Router.RouterRecordRotationRequest; /** - * Creates a plain object from an EnterpriseBasePlan message. Also converts values to other types if specified. - * @param message EnterpriseBasePlan + * Creates a plain object from a RouterRecordRotationRequest message. Also converts values to other types if specified. + * @param message RouterRecordRotationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.EnterpriseBasePlan, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterRecordRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnterpriseBasePlan to JSON. + * Converts this RouterRecordRotationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EnterpriseBasePlan + * Gets the default type url for RouterRecordRotationRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace EnterpriseBasePlan { + /** Properties of a UserRecordAccessRequest. */ + interface IUserRecordAccessRequest { - /** EnterpriseBasePlanVersion enum. */ - enum EnterpriseBasePlanVersion { - UNKNOWN = 0, - BUSINESS_STARTER = 1, - BUSINESS = 2, - ENTERPRISE = 3 - } - } + /** UserRecordAccessRequest userId */ + userId?: (number|null); - /** Properties of a SubscriptionEnterprisePricingRequest. */ - interface ISubscriptionEnterprisePricingRequest { + /** UserRecordAccessRequest recordUid */ + recordUid?: (Uint8Array|null); } - /** Represents a SubscriptionEnterprisePricingRequest. */ - class SubscriptionEnterprisePricingRequest implements ISubscriptionEnterprisePricingRequest { + /** Represents a UserRecordAccessRequest. */ + class UserRecordAccessRequest implements IUserRecordAccessRequest { /** - * Constructs a new SubscriptionEnterprisePricingRequest. + * Constructs a new UserRecordAccessRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.ISubscriptionEnterprisePricingRequest); + constructor(properties?: Router.IUserRecordAccessRequest); + + /** UserRecordAccessRequest userId. */ + public userId: number; + + /** UserRecordAccessRequest recordUid. */ + public recordUid: Uint8Array; /** - * Creates a new SubscriptionEnterprisePricingRequest instance using the specified properties. + * Creates a new UserRecordAccessRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SubscriptionEnterprisePricingRequest instance + * @returns UserRecordAccessRequest instance */ - public static create(properties?: BI.ISubscriptionEnterprisePricingRequest): BI.SubscriptionEnterprisePricingRequest; + public static create(properties?: Router.IUserRecordAccessRequest): Router.UserRecordAccessRequest; /** - * Encodes the specified SubscriptionEnterprisePricingRequest message. Does not implicitly {@link BI.SubscriptionEnterprisePricingRequest.verify|verify} messages. - * @param message SubscriptionEnterprisePricingRequest message or plain object to encode + * Encodes the specified UserRecordAccessRequest message. 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 encode(message: BI.ISubscriptionEnterprisePricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IUserRecordAccessRequest, 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 + * 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: BI.ISubscriptionEnterprisePricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IUserRecordAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SubscriptionEnterprisePricingRequest message from the specified reader or buffer. + * Decodes a UserRecordAccessRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SubscriptionEnterprisePricingRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionEnterprisePricingRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserRecordAccessRequest; /** - * Decodes a SubscriptionEnterprisePricingRequest message from the specified reader or buffer, length delimited. + * Decodes a UserRecordAccessRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SubscriptionEnterprisePricingRequest + * @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)): BI.SubscriptionEnterprisePricingRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.UserRecordAccessRequest; /** - * Verifies a SubscriptionEnterprisePricingRequest message. + * 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 SubscriptionEnterprisePricingRequest message from a plain object. Also converts values to their respective internal types. + * Creates a UserRecordAccessRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SubscriptionEnterprisePricingRequest + * @returns UserRecordAccessRequest */ - public static fromObject(object: { [k: string]: any }): BI.SubscriptionEnterprisePricingRequest; + public static fromObject(object: { [k: string]: any }): Router.UserRecordAccessRequest; /** - * Creates a plain object from a SubscriptionEnterprisePricingRequest message. Also converts values to other types if specified. - * @param message SubscriptionEnterprisePricingRequest + * Creates a plain object from a UserRecordAccessRequest message. Also converts values to other types if specified. + * @param message UserRecordAccessRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionEnterprisePricingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.UserRecordAccessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SubscriptionEnterprisePricingRequest to JSON. + * Converts this UserRecordAccessRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SubscriptionEnterprisePricingRequest + * Gets the default type url for UserRecordAccessRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SubscriptionEnterprisePricingResponse. */ - interface ISubscriptionEnterprisePricingResponse { + /** UserRecordAccessLevel enum. */ + enum UserRecordAccessLevel { + RRAL_NONE = 0, + RRAL_READ = 1, + RRAL_SHARE = 2, + RRAL_EDIT = 3, + RRAL_EDIT_AND_SHARE = 4, + RRAL_OWNER = 5 + } - /** SubscriptionEnterprisePricingResponse basePlans */ - basePlans?: (BI.IEnterpriseBasePlan[]|null); + /** Properties of a UserRecordAccessResponse. */ + interface IUserRecordAccessResponse { - /** SubscriptionEnterprisePricingResponse addons */ - addons?: (BI.IAddon[]|null); + /** UserRecordAccessResponse recordUid */ + recordUid?: (Uint8Array|null); - /** SubscriptionEnterprisePricingResponse filePlans */ - filePlans?: (BI.IFilePlan[]|null); + /** UserRecordAccessResponse accessLevel */ + accessLevel?: (Router.UserRecordAccessLevel|null); } - /** Represents a SubscriptionEnterprisePricingResponse. */ - class SubscriptionEnterprisePricingResponse implements ISubscriptionEnterprisePricingResponse { + /** Represents a UserRecordAccessResponse. */ + class UserRecordAccessResponse implements IUserRecordAccessResponse { /** - * Constructs a new SubscriptionEnterprisePricingResponse. + * Constructs a new UserRecordAccessResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.ISubscriptionEnterprisePricingResponse); - - /** SubscriptionEnterprisePricingResponse basePlans. */ - public basePlans: BI.IEnterpriseBasePlan[]; + constructor(properties?: Router.IUserRecordAccessResponse); - /** SubscriptionEnterprisePricingResponse addons. */ - public addons: BI.IAddon[]; + /** UserRecordAccessResponse recordUid. */ + public recordUid: Uint8Array; - /** SubscriptionEnterprisePricingResponse filePlans. */ - public filePlans: BI.IFilePlan[]; + /** UserRecordAccessResponse accessLevel. */ + public accessLevel: Router.UserRecordAccessLevel; /** - * Creates a new SubscriptionEnterprisePricingResponse instance using the specified properties. + * Creates a new UserRecordAccessResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SubscriptionEnterprisePricingResponse instance + * @returns UserRecordAccessResponse instance */ - public static create(properties?: BI.ISubscriptionEnterprisePricingResponse): BI.SubscriptionEnterprisePricingResponse; + public static create(properties?: Router.IUserRecordAccessResponse): Router.UserRecordAccessResponse; /** - * Encodes the specified SubscriptionEnterprisePricingResponse message. Does not implicitly {@link BI.SubscriptionEnterprisePricingResponse.verify|verify} messages. - * @param message SubscriptionEnterprisePricingResponse message or plain object to encode + * Encodes the specified UserRecordAccessResponse message. 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 encode(message: BI.ISubscriptionEnterprisePricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IUserRecordAccessResponse, 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 + * 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: BI.ISubscriptionEnterprisePricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IUserRecordAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SubscriptionEnterprisePricingResponse message from the specified reader or buffer. + * Decodes a UserRecordAccessResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SubscriptionEnterprisePricingResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionEnterprisePricingResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserRecordAccessResponse; /** - * Decodes a SubscriptionEnterprisePricingResponse message from the specified reader or buffer, length delimited. + * Decodes a UserRecordAccessResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SubscriptionEnterprisePricingResponse + * @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)): BI.SubscriptionEnterprisePricingResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.UserRecordAccessResponse; /** - * Verifies a SubscriptionEnterprisePricingResponse message. + * 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 SubscriptionEnterprisePricingResponse message from a plain object. Also converts values to their respective internal types. + * Creates a UserRecordAccessResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SubscriptionEnterprisePricingResponse + * @returns UserRecordAccessResponse */ - public static fromObject(object: { [k: string]: any }): BI.SubscriptionEnterprisePricingResponse; + public static fromObject(object: { [k: string]: any }): Router.UserRecordAccessResponse; /** - * Creates a plain object from a SubscriptionEnterprisePricingResponse message. Also converts values to other types if specified. - * @param message SubscriptionEnterprisePricingResponse + * Creates a plain object from a UserRecordAccessResponse message. Also converts values to other types if specified. + * @param message UserRecordAccessResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionEnterprisePricingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.UserRecordAccessResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SubscriptionEnterprisePricingResponse to JSON. + * Converts this UserRecordAccessResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SubscriptionEnterprisePricingResponse + * Gets the default type url for UserRecordAccessResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** IdentifierType enum. */ - enum IdentifierType { - UNKNOWN_IDENTIFIER_TYPE = 0, - IOS_ID = 1, - ANDROID_GOOGLE_PLAY_ID = 2, - ANDROID_APP_SET_ID = 3, - ANDROID_ID = 4, - AMAZON_ADVERTISING_ID = 5, - OPEN_ADVERTISING_ID = 6, - SINGULAR_DEVICE_ID = 7, - CLIENT_DEFINED_ID = 8 - } - - /** Properties of a SingularDeviceIdentifier. */ - interface ISingularDeviceIdentifier { - - /** SingularDeviceIdentifier id */ - id?: (string|null); + /** Properties of a UserRecordAccessRequests. */ + interface IUserRecordAccessRequests { - /** SingularDeviceIdentifier idType */ - idType?: (BI.IdentifierType|null); + /** UserRecordAccessRequests requests */ + requests?: (Router.IUserRecordAccessRequest[]|null); } - /** Represents a SingularDeviceIdentifier. */ - class SingularDeviceIdentifier implements ISingularDeviceIdentifier { + /** Represents a UserRecordAccessRequests. */ + class UserRecordAccessRequests implements IUserRecordAccessRequests { /** - * Constructs a new SingularDeviceIdentifier. + * Constructs a new UserRecordAccessRequests. * @param [properties] Properties to set */ - constructor(properties?: BI.ISingularDeviceIdentifier); - - /** SingularDeviceIdentifier id. */ - public id: string; + constructor(properties?: Router.IUserRecordAccessRequests); - /** SingularDeviceIdentifier idType. */ - public idType: BI.IdentifierType; + /** UserRecordAccessRequests requests. */ + public requests: Router.IUserRecordAccessRequest[]; /** - * Creates a new SingularDeviceIdentifier instance using the specified properties. + * Creates a new UserRecordAccessRequests instance using the specified properties. * @param [properties] Properties to set - * @returns SingularDeviceIdentifier instance + * @returns UserRecordAccessRequests instance */ - public static create(properties?: BI.ISingularDeviceIdentifier): BI.SingularDeviceIdentifier; + public static create(properties?: Router.IUserRecordAccessRequests): Router.UserRecordAccessRequests; /** - * Encodes the specified SingularDeviceIdentifier message. Does not implicitly {@link BI.SingularDeviceIdentifier.verify|verify} messages. - * @param message SingularDeviceIdentifier message or plain object to encode + * Encodes the specified UserRecordAccessRequests message. 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 encode(message: BI.ISingularDeviceIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IUserRecordAccessRequests, 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 + * 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: BI.ISingularDeviceIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IUserRecordAccessRequests, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SingularDeviceIdentifier message from the specified reader or buffer. + * Decodes a UserRecordAccessRequests message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SingularDeviceIdentifier + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SingularDeviceIdentifier; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserRecordAccessRequests; /** - * Decodes a SingularDeviceIdentifier message from the specified reader or buffer, length delimited. + * Decodes a UserRecordAccessRequests message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SingularDeviceIdentifier + * @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)): BI.SingularDeviceIdentifier; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.UserRecordAccessRequests; /** - * Verifies a SingularDeviceIdentifier message. + * 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 SingularDeviceIdentifier message from a plain object. Also converts values to their respective internal types. + * Creates a UserRecordAccessRequests message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SingularDeviceIdentifier + * @returns UserRecordAccessRequests */ - public static fromObject(object: { [k: string]: any }): BI.SingularDeviceIdentifier; + public static fromObject(object: { [k: string]: any }): Router.UserRecordAccessRequests; /** - * Creates a plain object from a SingularDeviceIdentifier message. Also converts values to other types if specified. - * @param message SingularDeviceIdentifier + * Creates a plain object from a UserRecordAccessRequests message. Also converts values to other types if specified. + * @param message UserRecordAccessRequests * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SingularDeviceIdentifier, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.UserRecordAccessRequests, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SingularDeviceIdentifier to JSON. + * Converts this UserRecordAccessRequests to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SingularDeviceIdentifier + * Gets the default type url for UserRecordAccessRequests * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SingularSharedData. */ - interface ISingularSharedData { - - /** SingularSharedData platform */ - platform?: (string|null); - - /** SingularSharedData osVersion */ - osVersion?: (string|null); - - /** SingularSharedData make */ - make?: (string|null); - - /** SingularSharedData model */ - model?: (string|null); - - /** SingularSharedData locale */ - locale?: (string|null); - - /** SingularSharedData build */ - build?: (string|null); - - /** SingularSharedData appIdentifier */ - appIdentifier?: (string|null); + /** Properties of a UserRecordAccessResponses. */ + interface IUserRecordAccessResponses { - /** SingularSharedData attAuthorizationStatus */ - attAuthorizationStatus?: (number|null); + /** UserRecordAccessResponses responses */ + responses?: (Router.IUserRecordAccessResponse[]|null); } - /** Represents a SingularSharedData. */ - class SingularSharedData implements ISingularSharedData { + /** Represents a UserRecordAccessResponses. */ + class UserRecordAccessResponses implements IUserRecordAccessResponses { /** - * Constructs a new SingularSharedData. + * Constructs a new UserRecordAccessResponses. * @param [properties] Properties to set */ - constructor(properties?: BI.ISingularSharedData); - - /** SingularSharedData platform. */ - public platform: string; - - /** SingularSharedData osVersion. */ - public osVersion: string; - - /** SingularSharedData make. */ - public make: string; - - /** SingularSharedData model. */ - public model: string; - - /** SingularSharedData locale. */ - public locale: string; - - /** SingularSharedData build. */ - public build: string; - - /** SingularSharedData appIdentifier. */ - public appIdentifier: string; + constructor(properties?: Router.IUserRecordAccessResponses); - /** SingularSharedData attAuthorizationStatus. */ - public attAuthorizationStatus: number; + /** UserRecordAccessResponses responses. */ + public responses: Router.IUserRecordAccessResponse[]; /** - * Creates a new SingularSharedData instance using the specified properties. + * Creates a new UserRecordAccessResponses instance using the specified properties. * @param [properties] Properties to set - * @returns SingularSharedData instance + * @returns UserRecordAccessResponses instance */ - public static create(properties?: BI.ISingularSharedData): BI.SingularSharedData; + public static create(properties?: Router.IUserRecordAccessResponses): Router.UserRecordAccessResponses; /** - * Encodes the specified SingularSharedData message. Does not implicitly {@link BI.SingularSharedData.verify|verify} messages. - * @param message SingularSharedData message or plain object to encode + * Encodes the specified UserRecordAccessResponses message. 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 encode(message: BI.ISingularSharedData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IUserRecordAccessResponses, 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 + * 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: BI.ISingularSharedData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IUserRecordAccessResponses, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SingularSharedData message from the specified reader or buffer. + * Decodes a UserRecordAccessResponses message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SingularSharedData + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SingularSharedData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserRecordAccessResponses; /** - * Decodes a SingularSharedData message from the specified reader or buffer, length delimited. + * Decodes a UserRecordAccessResponses message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SingularSharedData + * @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)): BI.SingularSharedData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.UserRecordAccessResponses; /** - * Verifies a SingularSharedData message. + * 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 SingularSharedData message from a plain object. Also converts values to their respective internal types. + * Creates a UserRecordAccessResponses message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SingularSharedData + * @returns UserRecordAccessResponses */ - public static fromObject(object: { [k: string]: any }): BI.SingularSharedData; + public static fromObject(object: { [k: string]: any }): Router.UserRecordAccessResponses; /** - * Creates a plain object from a SingularSharedData message. Also converts values to other types if specified. - * @param message SingularSharedData + * Creates a plain object from a UserRecordAccessResponses message. Also converts values to other types if specified. + * @param message UserRecordAccessResponses * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SingularSharedData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.UserRecordAccessResponses, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SingularSharedData to JSON. + * Converts this UserRecordAccessResponses to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SingularSharedData + * Gets the default type url for UserRecordAccessResponses * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SingularSessionRequest. */ - interface ISingularSessionRequest { - - /** SingularSessionRequest deviceIdentifiers */ - deviceIdentifiers?: (BI.ISingularDeviceIdentifier[]|null); - - /** SingularSessionRequest sharedData */ - sharedData?: (BI.ISingularSharedData|null); + /** Properties of a RotationSchedule. */ + interface IRotationSchedule { - /** SingularSessionRequest applicationVersion */ - applicationVersion?: (string|null); + /** RotationSchedule recordUid */ + recordUid?: (Uint8Array|null); - /** SingularSessionRequest install */ - install?: (boolean|null); + /** RotationSchedule schedule */ + schedule?: (string|null); + } - /** SingularSessionRequest installTime */ - installTime?: (number|Long|null); + /** Represents a RotationSchedule. */ + class RotationSchedule implements IRotationSchedule { - /** SingularSessionRequest updateTime */ - updateTime?: (number|Long|null); + /** + * Constructs a new RotationSchedule. + * @param [properties] Properties to set + */ + constructor(properties?: Router.IRotationSchedule); - /** SingularSessionRequest installSource */ - installSource?: (string|null); + /** RotationSchedule recordUid. */ + public recordUid: Uint8Array; - /** SingularSessionRequest installReceipt */ - installReceipt?: (string|null); + /** RotationSchedule schedule. */ + public schedule: string; - /** SingularSessionRequest openuri */ - openuri?: (string|null); + /** + * Creates a new RotationSchedule instance using the specified properties. + * @param [properties] Properties to set + * @returns RotationSchedule instance + */ + public static create(properties?: Router.IRotationSchedule): Router.RotationSchedule; - /** SingularSessionRequest ddlEnabled */ - ddlEnabled?: (boolean|null); + /** + * Encodes the specified RotationSchedule message. 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 encode(message: Router.IRotationSchedule, writer?: $protobuf.Writer): $protobuf.Writer; - /** SingularSessionRequest singularLinkResolveRequired */ - singularLinkResolveRequired?: (boolean|null); + /** + * 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; - /** SingularSessionRequest installRef */ - installRef?: (string|null); + /** + * Decodes a RotationSchedule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RotationSchedule; - /** SingularSessionRequest metaRef */ - metaRef?: (string|null); + /** + * 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; - /** SingularSessionRequest attributionToken */ - attributionToken?: (string|null); - } + /** + * 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); - /** Represents a SingularSessionRequest. */ - class SingularSessionRequest implements ISingularSessionRequest { + /** + * Creates a RotationSchedule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RotationSchedule + */ + public static fromObject(object: { [k: string]: any }): Router.RotationSchedule; /** - * Constructs a new SingularSessionRequest. - * @param [properties] Properties to set + * Creates a plain object from a RotationSchedule message. Also converts values to other types if specified. + * @param message RotationSchedule + * @param [options] Conversion options + * @returns Plain object */ - constructor(properties?: BI.ISingularSessionRequest); + public static toObject(message: Router.RotationSchedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** SingularSessionRequest deviceIdentifiers. */ - public deviceIdentifiers: BI.ISingularDeviceIdentifier[]; + /** + * Converts this RotationSchedule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** SingularSessionRequest sharedData. */ - public sharedData?: (BI.ISingularSharedData|null); + /** + * Gets the default type url for RotationSchedule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** SingularSessionRequest applicationVersion. */ - public applicationVersion: string; + /** ServiceType enum. */ + enum ServiceType { + UNSPECIFIED = 0, + KA = 1, + BI = 2 + } - /** SingularSessionRequest install. */ - public install: boolean; + /** Properties of an ApiCallbackRequest. */ + interface IApiCallbackRequest { - /** SingularSessionRequest installTime. */ - public installTime: (number|Long); + /** ApiCallbackRequest resourceUid */ + resourceUid?: (Uint8Array|null); - /** SingularSessionRequest updateTime. */ - public updateTime: (number|Long); + /** ApiCallbackRequest schedules */ + schedules?: (Router.IApiCallbackSchedule[]|null); - /** SingularSessionRequest installSource. */ - public installSource: string; + /** ApiCallbackRequest url */ + url?: (string|null); - /** SingularSessionRequest installReceipt. */ - public installReceipt: string; + /** ApiCallbackRequest serviceType */ + serviceType?: (Router.ServiceType|null); + } - /** SingularSessionRequest openuri. */ - public openuri: string; + /** Represents an ApiCallbackRequest. */ + class ApiCallbackRequest implements IApiCallbackRequest { - /** SingularSessionRequest ddlEnabled. */ - public ddlEnabled: boolean; + /** + * Constructs a new ApiCallbackRequest. + * @param [properties] Properties to set + */ + constructor(properties?: Router.IApiCallbackRequest); - /** SingularSessionRequest singularLinkResolveRequired. */ - public singularLinkResolveRequired: boolean; + /** ApiCallbackRequest resourceUid. */ + public resourceUid: Uint8Array; - /** SingularSessionRequest installRef. */ - public installRef: string; + /** ApiCallbackRequest schedules. */ + public schedules: Router.IApiCallbackSchedule[]; - /** SingularSessionRequest metaRef. */ - public metaRef: string; + /** ApiCallbackRequest url. */ + public url: string; - /** SingularSessionRequest attributionToken. */ - public attributionToken: string; + /** ApiCallbackRequest serviceType. */ + public serviceType: Router.ServiceType; /** - * Creates a new SingularSessionRequest instance using the specified properties. + * Creates a new ApiCallbackRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SingularSessionRequest instance + * @returns ApiCallbackRequest instance */ - public static create(properties?: BI.ISingularSessionRequest): BI.SingularSessionRequest; + public static create(properties?: Router.IApiCallbackRequest): Router.ApiCallbackRequest; /** - * Encodes the specified SingularSessionRequest message. Does not implicitly {@link BI.SingularSessionRequest.verify|verify} messages. - * @param message SingularSessionRequest message or plain object to encode + * Encodes the specified ApiCallbackRequest message. 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 encode(message: BI.ISingularSessionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IApiCallbackRequest, 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 + * 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: BI.ISingularSessionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IApiCallbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SingularSessionRequest message from the specified reader or buffer. + * Decodes an ApiCallbackRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SingularSessionRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SingularSessionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ApiCallbackRequest; /** - * Decodes a SingularSessionRequest message from the specified reader or buffer, length delimited. + * Decodes an ApiCallbackRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SingularSessionRequest + * @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)): BI.SingularSessionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.ApiCallbackRequest; /** - * Verifies a SingularSessionRequest message. + * 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 a SingularSessionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApiCallbackRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SingularSessionRequest + * @returns ApiCallbackRequest */ - public static fromObject(object: { [k: string]: any }): BI.SingularSessionRequest; + public static fromObject(object: { [k: string]: any }): Router.ApiCallbackRequest; /** - * Creates a plain object from a SingularSessionRequest message. Also converts values to other types if specified. - * @param message SingularSessionRequest + * Creates a plain object from an ApiCallbackRequest message. Also converts values to other types if specified. + * @param message ApiCallbackRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SingularSessionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.ApiCallbackRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SingularSessionRequest to JSON. + * Converts this ApiCallbackRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SingularSessionRequest + * Gets the default type url for ApiCallbackRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SingularEventRequest. */ - interface ISingularEventRequest { - - /** SingularEventRequest deviceIdentifiers */ - deviceIdentifiers?: (BI.ISingularDeviceIdentifier[]|null); + /** Properties of an ApiCallbackSchedule. */ + interface IApiCallbackSchedule { - /** SingularEventRequest sharedData */ - sharedData?: (BI.ISingularSharedData|null); + /** ApiCallbackSchedule schedule */ + schedule?: (string|null); - /** SingularEventRequest eventName */ - eventName?: (string|null); + /** ApiCallbackSchedule data */ + data?: (Uint8Array|null); } - /** Represents a SingularEventRequest. */ - class SingularEventRequest implements ISingularEventRequest { + /** Represents an ApiCallbackSchedule. */ + class ApiCallbackSchedule implements IApiCallbackSchedule { /** - * Constructs a new SingularEventRequest. + * Constructs a new ApiCallbackSchedule. * @param [properties] Properties to set */ - constructor(properties?: BI.ISingularEventRequest); - - /** SingularEventRequest deviceIdentifiers. */ - public deviceIdentifiers: BI.ISingularDeviceIdentifier[]; + constructor(properties?: Router.IApiCallbackSchedule); - /** SingularEventRequest sharedData. */ - public sharedData?: (BI.ISingularSharedData|null); + /** ApiCallbackSchedule schedule. */ + public schedule: string; - /** SingularEventRequest eventName. */ - public eventName: string; + /** ApiCallbackSchedule data. */ + public data: Uint8Array; /** - * Creates a new SingularEventRequest instance using the specified properties. + * Creates a new ApiCallbackSchedule instance using the specified properties. * @param [properties] Properties to set - * @returns SingularEventRequest instance + * @returns ApiCallbackSchedule instance */ - public static create(properties?: BI.ISingularEventRequest): BI.SingularEventRequest; + public static create(properties?: Router.IApiCallbackSchedule): Router.ApiCallbackSchedule; /** - * Encodes the specified SingularEventRequest message. Does not implicitly {@link BI.SingularEventRequest.verify|verify} messages. - * @param message SingularEventRequest message or plain object to encode + * Encodes the specified ApiCallbackSchedule message. 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 encode(message: BI.ISingularEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IApiCallbackSchedule, 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 + * 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: BI.ISingularEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IApiCallbackSchedule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SingularEventRequest message from the specified reader or buffer. + * Decodes an ApiCallbackSchedule message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SingularEventRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SingularEventRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ApiCallbackSchedule; /** - * Decodes a SingularEventRequest message from the specified reader or buffer, length delimited. + * Decodes an ApiCallbackSchedule message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SingularEventRequest + * @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)): BI.SingularEventRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.ApiCallbackSchedule; /** - * Verifies a SingularEventRequest message. + * 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 a SingularEventRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApiCallbackSchedule message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SingularEventRequest + * @returns ApiCallbackSchedule */ - public static fromObject(object: { [k: string]: any }): BI.SingularEventRequest; + public static fromObject(object: { [k: string]: any }): Router.ApiCallbackSchedule; /** - * Creates a plain object from a SingularEventRequest message. Also converts values to other types if specified. - * @param message SingularEventRequest + * Creates a plain object from an ApiCallbackSchedule message. Also converts values to other types if specified. + * @param message ApiCallbackSchedule * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SingularEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.ApiCallbackSchedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SingularEventRequest to JSON. + * Converts this ApiCallbackSchedule to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SingularEventRequest + * Gets the default type url for ApiCallbackSchedule * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ActivePamCountRequest. */ - interface IActivePamCountRequest { + /** Properties of a RouterScheduledActions. */ + interface IRouterScheduledActions { - /** ActivePamCountRequest enterpriseId */ - enterpriseId?: (number|null); + /** RouterScheduledActions schedule */ + schedule?: (string|null); + + /** RouterScheduledActions resourceUids */ + resourceUids?: (Uint8Array[]|null); } - /** Represents an ActivePamCountRequest. */ - class ActivePamCountRequest implements IActivePamCountRequest { + /** Represents a RouterScheduledActions. */ + class RouterScheduledActions implements IRouterScheduledActions { /** - * Constructs a new ActivePamCountRequest. + * Constructs a new RouterScheduledActions. * @param [properties] Properties to set */ - constructor(properties?: BI.IActivePamCountRequest); + constructor(properties?: Router.IRouterScheduledActions); - /** ActivePamCountRequest enterpriseId. */ - public enterpriseId: number; + /** RouterScheduledActions schedule. */ + public schedule: string; + + /** RouterScheduledActions resourceUids. */ + public resourceUids: Uint8Array[]; /** - * Creates a new ActivePamCountRequest instance using the specified properties. + * Creates a new RouterScheduledActions instance using the specified properties. * @param [properties] Properties to set - * @returns ActivePamCountRequest instance + * @returns RouterScheduledActions instance */ - public static create(properties?: BI.IActivePamCountRequest): BI.ActivePamCountRequest; + public static create(properties?: Router.IRouterScheduledActions): Router.RouterScheduledActions; /** - * Encodes the specified ActivePamCountRequest message. Does not implicitly {@link BI.ActivePamCountRequest.verify|verify} messages. - * @param message ActivePamCountRequest message or plain object to encode + * Encodes the specified RouterScheduledActions message. 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 encode(message: BI.IActivePamCountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterScheduledActions, 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 + * 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: BI.IActivePamCountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IRouterScheduledActions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ActivePamCountRequest message from the specified reader or buffer. + * Decodes a RouterScheduledActions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ActivePamCountRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.ActivePamCountRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterScheduledActions; /** - * Decodes an ActivePamCountRequest message from the specified reader or buffer, length delimited. + * Decodes a RouterScheduledActions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ActivePamCountRequest + * @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)): BI.ActivePamCountRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.RouterScheduledActions; /** - * Verifies an ActivePamCountRequest message. + * 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 an ActivePamCountRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RouterScheduledActions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ActivePamCountRequest + * @returns RouterScheduledActions */ - public static fromObject(object: { [k: string]: any }): BI.ActivePamCountRequest; + public static fromObject(object: { [k: string]: any }): Router.RouterScheduledActions; /** - * Creates a plain object from an ActivePamCountRequest message. Also converts values to other types if specified. - * @param message ActivePamCountRequest + * Creates a plain object from a RouterScheduledActions message. Also converts values to other types if specified. + * @param message RouterScheduledActions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.ActivePamCountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterScheduledActions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ActivePamCountRequest to JSON. + * Converts this RouterScheduledActions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ActivePamCountRequest + * Gets the default type url for RouterScheduledActions * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ActivePamCountResponse. */ - interface IActivePamCountResponse { + /** Properties of a RouterRecordsRotationRequest. */ + interface IRouterRecordsRotationRequest { - /** ActivePamCountResponse pamCount */ - pamCount?: (number|null); + /** RouterRecordsRotationRequest rotationSchedules */ + rotationSchedules?: (Router.IRouterScheduledActions[]|null); } - /** Represents an ActivePamCountResponse. */ - class ActivePamCountResponse implements IActivePamCountResponse { + /** Represents a RouterRecordsRotationRequest. */ + class RouterRecordsRotationRequest implements IRouterRecordsRotationRequest { /** - * Constructs a new ActivePamCountResponse. + * Constructs a new RouterRecordsRotationRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IActivePamCountResponse); + constructor(properties?: Router.IRouterRecordsRotationRequest); - /** ActivePamCountResponse pamCount. */ - public pamCount: number; + /** RouterRecordsRotationRequest rotationSchedules. */ + public rotationSchedules: Router.IRouterScheduledActions[]; /** - * Creates a new ActivePamCountResponse instance using the specified properties. + * Creates a new RouterRecordsRotationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ActivePamCountResponse instance + * @returns RouterRecordsRotationRequest instance */ - public static create(properties?: BI.IActivePamCountResponse): BI.ActivePamCountResponse; + public static create(properties?: Router.IRouterRecordsRotationRequest): Router.RouterRecordsRotationRequest; /** - * Encodes the specified ActivePamCountResponse message. Does not implicitly {@link BI.ActivePamCountResponse.verify|verify} messages. - * @param message ActivePamCountResponse message or plain object to encode + * Encodes the specified RouterRecordsRotationRequest message. 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 encode(message: BI.IActivePamCountResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterRecordsRotationRequest, 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 + * 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: BI.IActivePamCountResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IRouterRecordsRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ActivePamCountResponse message from the specified reader or buffer. + * Decodes a RouterRecordsRotationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ActivePamCountResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.ActivePamCountResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRecordsRotationRequest; /** - * Decodes an ActivePamCountResponse message from the specified reader or buffer, length delimited. + * Decodes a RouterRecordsRotationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ActivePamCountResponse + * @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)): BI.ActivePamCountResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.RouterRecordsRotationRequest; /** - * Verifies an ActivePamCountResponse message. + * 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 an ActivePamCountResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RouterRecordsRotationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ActivePamCountResponse + * @returns RouterRecordsRotationRequest */ - public static fromObject(object: { [k: string]: any }): BI.ActivePamCountResponse; + public static fromObject(object: { [k: string]: any }): Router.RouterRecordsRotationRequest; /** - * Creates a plain object from an ActivePamCountResponse message. Also converts values to other types if specified. - * @param message ActivePamCountResponse + * Creates a plain object from a RouterRecordsRotationRequest message. Also converts values to other types if specified. + * @param message RouterRecordsRotationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.ActivePamCountResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterRecordsRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ActivePamCountResponse to JSON. + * Converts this RouterRecordsRotationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ActivePamCountResponse + * Gets the default type url for RouterRecordsRotationRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} - -/** Namespace google. */ -export namespace google { - - /** Namespace protobuf. */ - namespace protobuf { - - /** Properties of a Struct. */ - interface IStruct { - - /** Struct fields */ - fields?: ({ [k: string]: google.protobuf.IValue }|null); - } - - /** Represents a Struct. */ - class Struct implements IStruct { - - /** - * Constructs a new Struct. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IStruct); - /** Struct fields. */ - public fields: { [k: string]: google.protobuf.IValue }; - - /** - * Creates a new Struct instance using the specified properties. - * @param [properties] Properties to set - * @returns Struct instance - */ - public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct; - - /** - * Encodes the specified Struct message. 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 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 - * @param [length] Message length if known beforehand - * @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 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 - * @returns Struct - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Struct; - - /** - * Creates a plain object from a Struct message. Also converts values to other types if specified. - * @param message Struct - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Struct to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Struct - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Value. */ - interface IValue { - - /** Value nullValue */ - nullValue?: (google.protobuf.NullValue|null); - - /** Value numberValue */ - numberValue?: (number|null); - - /** Value stringValue */ - stringValue?: (string|null); - - /** Value boolValue */ - boolValue?: (boolean|null); - - /** Value structValue */ - structValue?: (google.protobuf.IStruct|null); - - /** Value listValue */ - listValue?: (google.protobuf.IListValue|null); - } + /** Properties of a ConnectionParameters. */ + interface IConnectionParameters { - /** Represents a Value. */ - class Value implements IValue { + /** ConnectionParameters connectionUid */ + connectionUid?: (Uint8Array|null); - /** - * Constructs a new Value. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IValue); + /** ConnectionParameters recordUid */ + recordUid?: (Uint8Array|null); - /** Value nullValue. */ - public nullValue?: (google.protobuf.NullValue|null); + /** ConnectionParameters userId */ + userId?: (number|null); - /** Value numberValue. */ - public numberValue?: (number|null); + /** ConnectionParameters controllerUid */ + controllerUid?: (Uint8Array|null); - /** Value stringValue. */ - public stringValue?: (string|null); + /** ConnectionParameters credentialsRecordUid */ + credentialsRecordUid?: (Uint8Array|null); + } - /** Value boolValue. */ - public boolValue?: (boolean|null); + /** Represents a ConnectionParameters. */ + class ConnectionParameters implements IConnectionParameters { - /** Value structValue. */ - public structValue?: (google.protobuf.IStruct|null); + /** + * Constructs a new ConnectionParameters. + * @param [properties] Properties to set + */ + constructor(properties?: Router.IConnectionParameters); - /** Value listValue. */ - public listValue?: (google.protobuf.IListValue|null); + /** ConnectionParameters connectionUid. */ + public connectionUid: Uint8Array; - /** Value kind. */ - public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"); + /** ConnectionParameters recordUid. */ + public recordUid: Uint8Array; - /** - * Creates a new Value instance using the specified properties. - * @param [properties] Properties to set - * @returns Value instance - */ - public static create(properties?: google.protobuf.IValue): google.protobuf.Value; + /** ConnectionParameters userId. */ + public userId: number; - /** - * Encodes the specified Value message. 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 encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConnectionParameters controllerUid. */ + public controllerUid: Uint8Array; - /** - * 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; + /** ConnectionParameters credentialsRecordUid. */ + public credentialsRecordUid: Uint8Array; - /** - * Decodes a Value message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Value; + /** + * Creates a new ConnectionParameters instance using the specified properties. + * @param [properties] Properties to set + * @returns ConnectionParameters instance + */ + public static create(properties?: Router.IConnectionParameters): Router.ConnectionParameters; - /** - * 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; + /** + * Encodes the specified ConnectionParameters message. 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 encode(message: Router.IConnectionParameters, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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); + /** + * 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; - /** - * Creates a Value message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Value - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Value; + /** + * Decodes a ConnectionParameters message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ConnectionParameters; - /** - * Creates a plain object from a Value message. Also converts values to other types if specified. - * @param message Value - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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; - /** - * Converts this Value to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * 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); - /** - * Gets the default type url for Value - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a ConnectionParameters message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConnectionParameters + */ + public static fromObject(object: { [k: string]: any }): Router.ConnectionParameters; - /** NullValue enum. */ - enum NullValue { - NULL_VALUE = 0 - } + /** + * Creates a plain object from a ConnectionParameters message. Also converts values to other types if specified. + * @param message ConnectionParameters + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: Router.ConnectionParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a ListValue. */ - interface IListValue { + /** + * Converts this ConnectionParameters to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ListValue values */ - values?: (google.protobuf.IValue[]|null); - } + /** + * Gets the default type url for ConnectionParameters + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Represents a ListValue. */ - class ListValue implements IListValue { + /** Properties of a ValidateConnectionsRequest. */ + interface IValidateConnectionsRequest { - /** - * Constructs a new ListValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IListValue); + /** ValidateConnectionsRequest connections */ + connections?: (Router.IConnectionParameters[]|null); + } - /** ListValue values. */ - public values: google.protobuf.IValue[]; + /** Represents a ValidateConnectionsRequest. */ + class ValidateConnectionsRequest implements IValidateConnectionsRequest { - /** - * Creates a new ListValue instance using the specified properties. - * @param [properties] Properties to set - * @returns ListValue instance - */ - public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue; + /** + * Constructs a new ValidateConnectionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: Router.IValidateConnectionsRequest); - /** - * Encodes the specified ListValue message. 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 encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer; + /** ValidateConnectionsRequest connections. */ + public connections: Router.IConnectionParameters[]; - /** - * 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; + /** + * Creates a new ValidateConnectionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateConnectionsRequest instance + */ + public static create(properties?: Router.IValidateConnectionsRequest): Router.ValidateConnectionsRequest; - /** - * Decodes a ListValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ListValue; + /** + * Encodes the specified ValidateConnectionsRequest message. 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 encode(message: Router.IValidateConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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; + /** + * 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; - /** - * 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); + /** + * Decodes a ValidateConnectionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ValidateConnectionsRequest; - /** - * Creates a ListValue message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListValue - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue; + /** + * 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; - /** - * Creates a plain object from a ListValue message. Also converts values to other types if specified. - * @param message ListValue - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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); - /** - * Converts this ListValue to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a ValidateConnectionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateConnectionsRequest + */ + public static fromObject(object: { [k: string]: any }): Router.ValidateConnectionsRequest; - /** - * Gets the default type url for ListValue - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } -} + /** + * Creates a plain object from a ValidateConnectionsRequest message. Also converts values to other types if specified. + * @param message ValidateConnectionsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: Router.ValidateConnectionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; -/** Namespace Router. */ -export namespace Router { + /** + * Converts this ValidateConnectionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** RouterResponseCode enum. */ - enum RouterResponseCode { - RRC_OK = 0, - RRC_GENERAL_ERROR = 1, - RRC_NOT_ALLOWED = 2, - RRC_BAD_REQUEST = 3, - RRC_TIMEOUT = 4, - RRC_BAD_STATE = 5, - RRC_CONTROLLER_DOWN = 6, - RRC_WRONG_INSTANCE = 7, - RRC_NOT_ALLOWED_ENFORCEMENT_NOT_ENABLED = 8, - RRC_NOT_ALLOWED_PAM_CONFIG_FEATURES_NOT_ENABLED = 9 + /** + * Gets the default type url for ValidateConnectionsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RouterResponse. */ - interface IRouterResponse { + /** Properties of a ConnectionValidationFailure. */ + interface IConnectionValidationFailure { - /** RouterResponse responseCode */ - responseCode?: (Router.RouterResponseCode|null); + /** ConnectionValidationFailure connectionUid */ + connectionUid?: (Uint8Array|null); - /** RouterResponse errorMessage */ + /** ConnectionValidationFailure errorMessage */ errorMessage?: (string|null); - - /** RouterResponse encryptedPayload */ - encryptedPayload?: (Uint8Array|null); } - /** Represents a RouterResponse. */ - class RouterResponse implements IRouterResponse { + /** Represents a ConnectionValidationFailure. */ + class ConnectionValidationFailure implements IConnectionValidationFailure { /** - * Constructs a new RouterResponse. + * Constructs a new ConnectionValidationFailure. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouterResponse); + constructor(properties?: Router.IConnectionValidationFailure); - /** RouterResponse responseCode. */ - public responseCode: Router.RouterResponseCode; + /** ConnectionValidationFailure connectionUid. */ + public connectionUid: Uint8Array; - /** RouterResponse errorMessage. */ + /** ConnectionValidationFailure errorMessage. */ public errorMessage: string; - /** RouterResponse encryptedPayload. */ - public encryptedPayload: Uint8Array; - /** - * Creates a new RouterResponse instance using the specified properties. + * Creates a new ConnectionValidationFailure instance using the specified properties. * @param [properties] Properties to set - * @returns RouterResponse instance + * @returns ConnectionValidationFailure instance */ - public static create(properties?: Router.IRouterResponse): Router.RouterResponse; + public static create(properties?: Router.IConnectionValidationFailure): Router.ConnectionValidationFailure; /** - * Encodes the specified RouterResponse message. Does not implicitly {@link Router.RouterResponse.verify|verify} messages. - * @param message RouterResponse message or plain object to encode + * Encodes the specified ConnectionValidationFailure message. 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 encode(message: Router.IRouterResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IConnectionValidationFailure, 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 + * 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.IRouterResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IConnectionValidationFailure, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RouterResponse message from the specified reader or buffer. + * Decodes a ConnectionValidationFailure message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RouterResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ConnectionValidationFailure; /** - * Decodes a RouterResponse message from the specified reader or buffer, length delimited. + * Decodes a ConnectionValidationFailure message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RouterResponse + * @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.RouterResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.ConnectionValidationFailure; /** - * Verifies a RouterResponse message. + * 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 RouterResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ConnectionValidationFailure message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RouterResponse + * @returns ConnectionValidationFailure */ - public static fromObject(object: { [k: string]: any }): Router.RouterResponse; + public static fromObject(object: { [k: string]: any }): Router.ConnectionValidationFailure; /** - * Creates a plain object from a RouterResponse message. Also converts values to other types if specified. - * @param message RouterResponse + * Creates a plain object from a ConnectionValidationFailure message. Also converts values to other types if specified. + * @param message ConnectionValidationFailure * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.RouterResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.ConnectionValidationFailure, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RouterResponse to JSON. + * Converts this ConnectionValidationFailure to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RouterResponse + * Gets the default type url for ConnectionValidationFailure * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RouterControllerMessage. */ - interface IRouterControllerMessage { - - /** RouterControllerMessage messageType */ - messageType?: (PAM.ControllerMessageType|null); - - /** RouterControllerMessage messageUid */ - messageUid?: (Uint8Array|null); - - /** RouterControllerMessage controllerUid */ - controllerUid?: (Uint8Array|null); - - /** RouterControllerMessage streamResponse */ - streamResponse?: (boolean|null); - - /** RouterControllerMessage payload */ - payload?: (Uint8Array|null); + /** Properties of a ValidateConnectionsResponse. */ + interface IValidateConnectionsResponse { - /** RouterControllerMessage timeout */ - timeout?: (number|null); + /** ValidateConnectionsResponse failedConnections */ + failedConnections?: (Router.IConnectionValidationFailure[]|null); } - /** Represents a RouterControllerMessage. */ - class RouterControllerMessage implements IRouterControllerMessage { + /** Represents a ValidateConnectionsResponse. */ + class ValidateConnectionsResponse implements IValidateConnectionsResponse { /** - * Constructs a new RouterControllerMessage. + * Constructs a new ValidateConnectionsResponse. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouterControllerMessage); - - /** RouterControllerMessage messageType. */ - public messageType: PAM.ControllerMessageType; - - /** RouterControllerMessage messageUid. */ - public messageUid: Uint8Array; - - /** RouterControllerMessage controllerUid. */ - public controllerUid: Uint8Array; - - /** RouterControllerMessage streamResponse. */ - public streamResponse: boolean; - - /** RouterControllerMessage payload. */ - public payload: Uint8Array; + constructor(properties?: Router.IValidateConnectionsResponse); - /** RouterControllerMessage timeout. */ - public timeout: number; + /** ValidateConnectionsResponse failedConnections. */ + public failedConnections: Router.IConnectionValidationFailure[]; /** - * Creates a new RouterControllerMessage instance using the specified properties. + * Creates a new ValidateConnectionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RouterControllerMessage instance + * @returns ValidateConnectionsResponse instance */ - public static create(properties?: Router.IRouterControllerMessage): Router.RouterControllerMessage; + public static create(properties?: Router.IValidateConnectionsResponse): Router.ValidateConnectionsResponse; /** - * Encodes the specified RouterControllerMessage message. Does not implicitly {@link Router.RouterControllerMessage.verify|verify} messages. - * @param message RouterControllerMessage message or plain object to encode + * Encodes the specified ValidateConnectionsResponse message. 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 encode(message: Router.IRouterControllerMessage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IValidateConnectionsResponse, 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 + * 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.IRouterControllerMessage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IValidateConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RouterControllerMessage message from the specified reader or buffer. + * Decodes a ValidateConnectionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RouterControllerMessage + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterControllerMessage; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ValidateConnectionsResponse; /** - * Decodes a RouterControllerMessage message from the specified reader or buffer, length delimited. + * Decodes a ValidateConnectionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RouterControllerMessage + * @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.RouterControllerMessage; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.ValidateConnectionsResponse; /** - * Verifies a RouterControllerMessage message. + * 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 RouterControllerMessage message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateConnectionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RouterControllerMessage + * @returns ValidateConnectionsResponse */ - public static fromObject(object: { [k: string]: any }): Router.RouterControllerMessage; + public static fromObject(object: { [k: string]: any }): Router.ValidateConnectionsResponse; /** - * Creates a plain object from a RouterControllerMessage message. Also converts values to other types if specified. - * @param message RouterControllerMessage + * Creates a plain object from a ValidateConnectionsResponse message. Also converts values to other types if specified. + * @param message ValidateConnectionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.RouterControllerMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.ValidateConnectionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RouterControllerMessage to JSON. + * Converts this ValidateConnectionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RouterControllerMessage + * Gets the default type url for ValidateConnectionsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RouterUserAuth. */ - interface IRouterUserAuth { - - /** RouterUserAuth transmissionKey */ - transmissionKey?: (Uint8Array|null); - - /** RouterUserAuth sessionToken */ - sessionToken?: (Uint8Array|null); - - /** RouterUserAuth userId */ - userId?: (number|null); + /** Properties of a GetEnforcementRequest. */ + interface IGetEnforcementRequest { - /** RouterUserAuth enterpriseUserId */ + /** GetEnforcementRequest enterpriseUserId */ enterpriseUserId?: (number|Long|null); - - /** RouterUserAuth deviceName */ - deviceName?: (string|null); - - /** RouterUserAuth deviceToken */ - deviceToken?: (Uint8Array|null); - - /** RouterUserAuth clientVersionId */ - clientVersionId?: (number|null); - - /** RouterUserAuth needUsername */ - needUsername?: (boolean|null); - - /** RouterUserAuth username */ - username?: (string|null); - - /** RouterUserAuth mspEnterpriseId */ - mspEnterpriseId?: (number|null); - - /** RouterUserAuth isPedmAdmin */ - isPedmAdmin?: (boolean|null); - - /** RouterUserAuth mcEnterpriseId */ - mcEnterpriseId?: (number|null); } - /** Represents a RouterUserAuth. */ - class RouterUserAuth implements IRouterUserAuth { + /** Represents a GetEnforcementRequest. */ + class GetEnforcementRequest implements IGetEnforcementRequest { /** - * Constructs a new RouterUserAuth. + * Constructs a new GetEnforcementRequest. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouterUserAuth); - - /** RouterUserAuth transmissionKey. */ - public transmissionKey: Uint8Array; - - /** RouterUserAuth sessionToken. */ - public sessionToken: Uint8Array; - - /** RouterUserAuth userId. */ - public userId: number; + constructor(properties?: Router.IGetEnforcementRequest); - /** RouterUserAuth enterpriseUserId. */ + /** GetEnforcementRequest enterpriseUserId. */ public enterpriseUserId: (number|Long); - /** RouterUserAuth deviceName. */ - public deviceName: string; - - /** RouterUserAuth deviceToken. */ - public deviceToken: Uint8Array; - - /** RouterUserAuth clientVersionId. */ - public clientVersionId: number; - - /** RouterUserAuth needUsername. */ - public needUsername: boolean; - - /** RouterUserAuth username. */ - public username: string; - - /** RouterUserAuth mspEnterpriseId. */ - public mspEnterpriseId: number; - - /** RouterUserAuth isPedmAdmin. */ - public isPedmAdmin: boolean; - - /** RouterUserAuth mcEnterpriseId. */ - public mcEnterpriseId: number; - /** - * Creates a new RouterUserAuth instance using the specified properties. + * Creates a new GetEnforcementRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RouterUserAuth instance + * @returns GetEnforcementRequest instance */ - public static create(properties?: Router.IRouterUserAuth): Router.RouterUserAuth; + public static create(properties?: Router.IGetEnforcementRequest): Router.GetEnforcementRequest; /** - * Encodes the specified RouterUserAuth message. Does not implicitly {@link Router.RouterUserAuth.verify|verify} messages. - * @param message RouterUserAuth message or plain object to encode + * Encodes the specified GetEnforcementRequest message. 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 encode(message: Router.IRouterUserAuth, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IGetEnforcementRequest, 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 + * 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.IRouterUserAuth, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IGetEnforcementRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RouterUserAuth message from the specified reader or buffer. + * Decodes a GetEnforcementRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RouterUserAuth + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterUserAuth; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.GetEnforcementRequest; /** - * Decodes a RouterUserAuth message from the specified reader or buffer, length delimited. + * Decodes a GetEnforcementRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RouterUserAuth + * @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.RouterUserAuth; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.GetEnforcementRequest; /** - * Verifies a RouterUserAuth message. + * 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 RouterUserAuth message from a plain object. Also converts values to their respective internal types. + * Creates a GetEnforcementRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RouterUserAuth + * @returns GetEnforcementRequest */ - public static fromObject(object: { [k: string]: any }): Router.RouterUserAuth; + public static fromObject(object: { [k: string]: any }): Router.GetEnforcementRequest; /** - * Creates a plain object from a RouterUserAuth message. Also converts values to other types if specified. - * @param message RouterUserAuth + * Creates a plain object from a GetEnforcementRequest message. Also converts values to other types if specified. + * @param message GetEnforcementRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.RouterUserAuth, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.GetEnforcementRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RouterUserAuth to JSON. + * Converts this GetEnforcementRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RouterUserAuth + * Gets the default type url for GetEnforcementRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RouterDeviceAuth. */ - interface IRouterDeviceAuth { - - /** RouterDeviceAuth clientId */ - clientId?: (string|null); - - /** RouterDeviceAuth clientVersion */ - clientVersion?: (string|null); - - /** RouterDeviceAuth signature */ - signature?: (Uint8Array|null); - - /** RouterDeviceAuth enterpriseId */ - enterpriseId?: (number|null); - - /** RouterDeviceAuth nodeId */ - nodeId?: (number|Long|null); - - /** RouterDeviceAuth deviceName */ - deviceName?: (string|null); - - /** RouterDeviceAuth deviceToken */ - deviceToken?: (Uint8Array|null); - - /** RouterDeviceAuth controllerName */ - controllerName?: (string|null); - - /** RouterDeviceAuth controllerUid */ - controllerUid?: (Uint8Array|null); - - /** RouterDeviceAuth ownerUser */ - ownerUser?: (string|null); - - /** RouterDeviceAuth challenge */ - challenge?: (string|null); + /** Properties of an EnforcementType. */ + interface IEnforcementType { - /** RouterDeviceAuth ownerId */ - ownerId?: (number|null); + /** EnforcementType enforcementTypeId */ + enforcementTypeId?: (number|null); - /** RouterDeviceAuth maxInstanceCount */ - maxInstanceCount?: (number|null); + /** EnforcementType value */ + value?: (string|null); } - /** Represents a RouterDeviceAuth. */ - class RouterDeviceAuth implements IRouterDeviceAuth { + /** Represents an EnforcementType. */ + class EnforcementType implements IEnforcementType { /** - * Constructs a new RouterDeviceAuth. + * Constructs a new EnforcementType. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouterDeviceAuth); - - /** RouterDeviceAuth clientId. */ - public clientId: string; - - /** RouterDeviceAuth clientVersion. */ - public clientVersion: string; - - /** RouterDeviceAuth signature. */ - public signature: Uint8Array; - - /** RouterDeviceAuth enterpriseId. */ - public enterpriseId: number; - - /** RouterDeviceAuth nodeId. */ - public nodeId: (number|Long); - - /** RouterDeviceAuth deviceName. */ - public deviceName: string; - - /** RouterDeviceAuth deviceToken. */ - public deviceToken: Uint8Array; - - /** RouterDeviceAuth controllerName. */ - public controllerName: string; - - /** RouterDeviceAuth controllerUid. */ - public controllerUid: Uint8Array; - - /** RouterDeviceAuth ownerUser. */ - public ownerUser: string; - - /** RouterDeviceAuth challenge. */ - public challenge: string; + constructor(properties?: Router.IEnforcementType); - /** RouterDeviceAuth ownerId. */ - public ownerId: number; + /** EnforcementType enforcementTypeId. */ + public enforcementTypeId: number; - /** RouterDeviceAuth maxInstanceCount. */ - public maxInstanceCount: number; + /** EnforcementType value. */ + public value: string; /** - * Creates a new RouterDeviceAuth instance using the specified properties. + * Creates a new EnforcementType instance using the specified properties. * @param [properties] Properties to set - * @returns RouterDeviceAuth instance + * @returns EnforcementType instance */ - public static create(properties?: Router.IRouterDeviceAuth): Router.RouterDeviceAuth; + public static create(properties?: Router.IEnforcementType): Router.EnforcementType; /** - * Encodes the specified RouterDeviceAuth message. Does not implicitly {@link Router.RouterDeviceAuth.verify|verify} messages. - * @param message RouterDeviceAuth message or plain object to encode + * Encodes the specified EnforcementType message. 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 encode(message: Router.IRouterDeviceAuth, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IEnforcementType, 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 + * 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.IRouterDeviceAuth, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IEnforcementType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RouterDeviceAuth message from the specified reader or buffer. + * Decodes an EnforcementType message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RouterDeviceAuth + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterDeviceAuth; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.EnforcementType; /** - * Decodes a RouterDeviceAuth message from the specified reader or buffer, length delimited. + * Decodes an EnforcementType message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RouterDeviceAuth + * @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.RouterDeviceAuth; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.EnforcementType; /** - * Verifies a RouterDeviceAuth message. + * 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 a RouterDeviceAuth message from a plain object. Also converts values to their respective internal types. + * Creates an EnforcementType message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RouterDeviceAuth + * @returns EnforcementType */ - public static fromObject(object: { [k: string]: any }): Router.RouterDeviceAuth; + public static fromObject(object: { [k: string]: any }): Router.EnforcementType; /** - * Creates a plain object from a RouterDeviceAuth message. Also converts values to other types if specified. - * @param message RouterDeviceAuth + * Creates a plain object from an EnforcementType message. Also converts values to other types if specified. + * @param message EnforcementType * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.RouterDeviceAuth, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.EnforcementType, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RouterDeviceAuth to JSON. + * Converts this EnforcementType to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RouterDeviceAuth + * Gets the default type url for EnforcementType * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RouterRecordRotation. */ - interface IRouterRecordRotation { - - /** RouterRecordRotation recordUid */ - recordUid?: (Uint8Array|null); - - /** RouterRecordRotation configurationUid */ - configurationUid?: (Uint8Array|null); + /** Properties of a GetEnforcementResponse. */ + interface IGetEnforcementResponse { - /** RouterRecordRotation controllerUid */ - controllerUid?: (Uint8Array|null); + /** GetEnforcementResponse enforcementTypes */ + enforcementTypes?: (Router.IEnforcementType[]|null); - /** RouterRecordRotation resourceUid */ - resourceUid?: (Uint8Array|null); + /** GetEnforcementResponse addOnIds */ + addOnIds?: (number[]|null); - /** RouterRecordRotation noSchedule */ - noSchedule?: (boolean|null); + /** GetEnforcementResponse isInTrial */ + isInTrial?: (boolean|null); } - /** Represents a RouterRecordRotation. */ - class RouterRecordRotation implements IRouterRecordRotation { + /** Represents a GetEnforcementResponse. */ + class GetEnforcementResponse implements IGetEnforcementResponse { /** - * Constructs a new RouterRecordRotation. + * Constructs a new GetEnforcementResponse. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouterRecordRotation); - - /** RouterRecordRotation recordUid. */ - public recordUid: Uint8Array; - - /** RouterRecordRotation configurationUid. */ - public configurationUid: Uint8Array; + constructor(properties?: Router.IGetEnforcementResponse); - /** RouterRecordRotation controllerUid. */ - public controllerUid: Uint8Array; + /** GetEnforcementResponse enforcementTypes. */ + public enforcementTypes: Router.IEnforcementType[]; - /** RouterRecordRotation resourceUid. */ - public resourceUid: Uint8Array; + /** GetEnforcementResponse addOnIds. */ + public addOnIds: number[]; - /** RouterRecordRotation noSchedule. */ - public noSchedule: boolean; + /** GetEnforcementResponse isInTrial. */ + public isInTrial: boolean; /** - * Creates a new RouterRecordRotation instance using the specified properties. + * Creates a new GetEnforcementResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RouterRecordRotation instance + * @returns GetEnforcementResponse instance */ - public static create(properties?: Router.IRouterRecordRotation): Router.RouterRecordRotation; + public static create(properties?: Router.IGetEnforcementResponse): Router.GetEnforcementResponse; /** - * Encodes the specified RouterRecordRotation message. Does not implicitly {@link Router.RouterRecordRotation.verify|verify} messages. - * @param message RouterRecordRotation message or plain object to encode + * Encodes the specified GetEnforcementResponse message. 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 encode(message: Router.IRouterRecordRotation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IGetEnforcementResponse, 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 + * 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.IRouterRecordRotation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IGetEnforcementResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RouterRecordRotation message from the specified reader or buffer. + * Decodes a GetEnforcementResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RouterRecordRotation + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRecordRotation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.GetEnforcementResponse; /** - * Decodes a RouterRecordRotation message from the specified reader or buffer, length delimited. + * Decodes a GetEnforcementResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RouterRecordRotation + * @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.RouterRecordRotation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.GetEnforcementResponse; /** - * Verifies a RouterRecordRotation message. + * 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 RouterRecordRotation message from a plain object. Also converts values to their respective internal types. + * Creates a GetEnforcementResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RouterRecordRotation + * @returns GetEnforcementResponse */ - public static fromObject(object: { [k: string]: any }): Router.RouterRecordRotation; + public static fromObject(object: { [k: string]: any }): Router.GetEnforcementResponse; /** - * Creates a plain object from a RouterRecordRotation message. Also converts values to other types if specified. - * @param message RouterRecordRotation + * Creates a plain object from a GetEnforcementResponse message. Also converts values to other types if specified. + * @param message GetEnforcementResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.RouterRecordRotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.GetEnforcementResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RouterRecordRotation to JSON. + * Converts this GetEnforcementResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RouterRecordRotation + * Gets the default type url for GetEnforcementResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RouterRecordRotationsRequest. */ - interface IRouterRecordRotationsRequest { + /** Properties of a PEDMTOTPValidateRequest. */ + interface IPEDMTOTPValidateRequest { - /** RouterRecordRotationsRequest enterpriseId */ + /** PEDMTOTPValidateRequest username */ + username?: (string|null); + + /** PEDMTOTPValidateRequest enterpriseId */ enterpriseId?: (number|null); - /** RouterRecordRotationsRequest records */ - records?: (Uint8Array[]|null); + /** PEDMTOTPValidateRequest code */ + code?: (number|null); } - /** Represents a RouterRecordRotationsRequest. */ - class RouterRecordRotationsRequest implements IRouterRecordRotationsRequest { + /** Represents a PEDMTOTPValidateRequest. */ + class PEDMTOTPValidateRequest implements IPEDMTOTPValidateRequest { /** - * Constructs a new RouterRecordRotationsRequest. + * Constructs a new PEDMTOTPValidateRequest. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouterRecordRotationsRequest); + constructor(properties?: Router.IPEDMTOTPValidateRequest); - /** RouterRecordRotationsRequest enterpriseId. */ + /** PEDMTOTPValidateRequest username. */ + public username: string; + + /** PEDMTOTPValidateRequest enterpriseId. */ public enterpriseId: number; - /** RouterRecordRotationsRequest records. */ - public records: Uint8Array[]; + /** PEDMTOTPValidateRequest code. */ + public code: number; /** - * Creates a new RouterRecordRotationsRequest instance using the specified properties. + * Creates a new PEDMTOTPValidateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RouterRecordRotationsRequest instance + * @returns PEDMTOTPValidateRequest instance */ - public static create(properties?: Router.IRouterRecordRotationsRequest): Router.RouterRecordRotationsRequest; + public static create(properties?: Router.IPEDMTOTPValidateRequest): Router.PEDMTOTPValidateRequest; /** - * Encodes the specified RouterRecordRotationsRequest message. Does not implicitly {@link Router.RouterRecordRotationsRequest.verify|verify} messages. - * @param message RouterRecordRotationsRequest message or plain object to encode + * Encodes the specified PEDMTOTPValidateRequest message. 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 encode(message: Router.IRouterRecordRotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IPEDMTOTPValidateRequest, 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 + * 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.IRouterRecordRotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IPEDMTOTPValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RouterRecordRotationsRequest message from the specified reader or buffer. + * Decodes a PEDMTOTPValidateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RouterRecordRotationsRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRecordRotationsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.PEDMTOTPValidateRequest; /** - * Decodes a RouterRecordRotationsRequest message from the specified reader or buffer, length delimited. + * Decodes a PEDMTOTPValidateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RouterRecordRotationsRequest + * @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.RouterRecordRotationsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.PEDMTOTPValidateRequest; /** - * Verifies a RouterRecordRotationsRequest message. + * 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 RouterRecordRotationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PEDMTOTPValidateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RouterRecordRotationsRequest + * @returns PEDMTOTPValidateRequest */ - public static fromObject(object: { [k: string]: any }): Router.RouterRecordRotationsRequest; + public static fromObject(object: { [k: string]: any }): Router.PEDMTOTPValidateRequest; /** - * Creates a plain object from a RouterRecordRotationsRequest message. Also converts values to other types if specified. - * @param message RouterRecordRotationsRequest + * Creates a plain object from a PEDMTOTPValidateRequest message. Also converts values to other types if specified. + * @param message PEDMTOTPValidateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.RouterRecordRotationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.PEDMTOTPValidateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RouterRecordRotationsRequest to JSON. + * Converts this PEDMTOTPValidateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RouterRecordRotationsRequest + * Gets the default type url for PEDMTOTPValidateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RouterRecordRotationsResponse. */ - interface IRouterRecordRotationsResponse { + /** Properties of a GetPEDMAdminInfoResponse. */ + interface IGetPEDMAdminInfoResponse { - /** RouterRecordRotationsResponse rotations */ - rotations?: (Router.IRouterRecordRotation[]|null); + /** GetPEDMAdminInfoResponse isPedmAdmin */ + isPedmAdmin?: (boolean|null); - /** RouterRecordRotationsResponse hasMore */ - hasMore?: (boolean|null); + /** GetPEDMAdminInfoResponse pedmAddonActive */ + pedmAddonActive?: (boolean|null); } - /** Represents a RouterRecordRotationsResponse. */ - class RouterRecordRotationsResponse implements IRouterRecordRotationsResponse { + /** Represents a GetPEDMAdminInfoResponse. */ + class GetPEDMAdminInfoResponse implements IGetPEDMAdminInfoResponse { /** - * Constructs a new RouterRecordRotationsResponse. + * Constructs a new GetPEDMAdminInfoResponse. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouterRecordRotationsResponse); + constructor(properties?: Router.IGetPEDMAdminInfoResponse); - /** RouterRecordRotationsResponse rotations. */ - public rotations: Router.IRouterRecordRotation[]; + /** GetPEDMAdminInfoResponse isPedmAdmin. */ + public isPedmAdmin: boolean; - /** RouterRecordRotationsResponse hasMore. */ - public hasMore: boolean; + /** GetPEDMAdminInfoResponse pedmAddonActive. */ + public pedmAddonActive: boolean; /** - * Creates a new RouterRecordRotationsResponse instance using the specified properties. + * Creates a new GetPEDMAdminInfoResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RouterRecordRotationsResponse instance + * @returns GetPEDMAdminInfoResponse instance */ - public static create(properties?: Router.IRouterRecordRotationsResponse): Router.RouterRecordRotationsResponse; + public static create(properties?: Router.IGetPEDMAdminInfoResponse): Router.GetPEDMAdminInfoResponse; /** - * Encodes the specified RouterRecordRotationsResponse message. Does not implicitly {@link Router.RouterRecordRotationsResponse.verify|verify} messages. - * @param message RouterRecordRotationsResponse message or plain object to encode + * Encodes the specified GetPEDMAdminInfoResponse message. 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 encode(message: Router.IRouterRecordRotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IGetPEDMAdminInfoResponse, 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 + * 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.IRouterRecordRotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IGetPEDMAdminInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RouterRecordRotationsResponse message from the specified reader or buffer. + * Decodes a GetPEDMAdminInfoResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RouterRecordRotationsResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRecordRotationsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.GetPEDMAdminInfoResponse; /** - * Decodes a RouterRecordRotationsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetPEDMAdminInfoResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RouterRecordRotationsResponse + * @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.RouterRecordRotationsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.GetPEDMAdminInfoResponse; /** - * Verifies a RouterRecordRotationsResponse message. + * 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 RouterRecordRotationsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetPEDMAdminInfoResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RouterRecordRotationsResponse + * @returns GetPEDMAdminInfoResponse */ - public static fromObject(object: { [k: string]: any }): Router.RouterRecordRotationsResponse; + public static fromObject(object: { [k: string]: any }): Router.GetPEDMAdminInfoResponse; /** - * Creates a plain object from a RouterRecordRotationsResponse message. Also converts values to other types if specified. - * @param message RouterRecordRotationsResponse + * Creates a plain object from a GetPEDMAdminInfoResponse message. Also converts values to other types if specified. + * @param message GetPEDMAdminInfoResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.RouterRecordRotationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.GetPEDMAdminInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RouterRecordRotationsResponse to JSON. + * Converts this GetPEDMAdminInfoResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RouterRecordRotationsResponse + * Gets the default type url for GetPEDMAdminInfoResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** RouterRotationStatus enum. */ - enum RouterRotationStatus { - RRS_ONLINE = 0, - RRS_NO_ROTATION = 1, - RRS_NO_CONTROLLER = 2, - RRS_CONTROLLER_DOWN = 3 - } - - /** Properties of a RouterRotationInfo. */ - interface IRouterRotationInfo { - - /** RouterRotationInfo status */ - status?: (Router.RouterRotationStatus|null); - - /** RouterRotationInfo configurationUid */ - configurationUid?: (Uint8Array|null); - - /** RouterRotationInfo resourceUid */ - resourceUid?: (Uint8Array|null); - - /** RouterRotationInfo nodeId */ - nodeId?: (number|Long|null); - - /** RouterRotationInfo controllerUid */ - controllerUid?: (Uint8Array|null); - - /** RouterRotationInfo controllerName */ - controllerName?: (string|null); - - /** RouterRotationInfo scriptName */ - scriptName?: (string|null); - - /** RouterRotationInfo pwdComplexity */ - pwdComplexity?: (string|null); + /** Properties of a PAMNetworkSettings. */ + interface IPAMNetworkSettings { - /** RouterRotationInfo disabled */ - disabled?: (boolean|null); + /** PAMNetworkSettings allowedSettings */ + allowedSettings?: (Uint8Array|null); } - /** Represents a RouterRotationInfo. */ - class RouterRotationInfo implements IRouterRotationInfo { + /** Represents a PAMNetworkSettings. */ + class PAMNetworkSettings implements IPAMNetworkSettings { /** - * Constructs a new RouterRotationInfo. + * Constructs a new PAMNetworkSettings. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouterRotationInfo); - - /** RouterRotationInfo status. */ - public status: Router.RouterRotationStatus; - - /** RouterRotationInfo configurationUid. */ - public configurationUid: Uint8Array; - - /** RouterRotationInfo resourceUid. */ - public resourceUid: Uint8Array; - - /** RouterRotationInfo nodeId. */ - public nodeId: (number|Long); - - /** RouterRotationInfo controllerUid. */ - public controllerUid: Uint8Array; - - /** RouterRotationInfo controllerName. */ - public controllerName: string; - - /** RouterRotationInfo scriptName. */ - public scriptName: string; - - /** RouterRotationInfo pwdComplexity. */ - public pwdComplexity: string; + constructor(properties?: Router.IPAMNetworkSettings); - /** RouterRotationInfo disabled. */ - public disabled: boolean; + /** PAMNetworkSettings allowedSettings. */ + public allowedSettings: Uint8Array; /** - * Creates a new RouterRotationInfo instance using the specified properties. + * Creates a new PAMNetworkSettings instance using the specified properties. * @param [properties] Properties to set - * @returns RouterRotationInfo instance + * @returns PAMNetworkSettings instance */ - public static create(properties?: Router.IRouterRotationInfo): Router.RouterRotationInfo; + public static create(properties?: Router.IPAMNetworkSettings): Router.PAMNetworkSettings; /** - * Encodes the specified RouterRotationInfo message. Does not implicitly {@link Router.RouterRotationInfo.verify|verify} messages. - * @param message RouterRotationInfo message or plain object to encode + * Encodes the specified PAMNetworkSettings message. 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 encode(message: Router.IRouterRotationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IPAMNetworkSettings, 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 + * 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.IRouterRotationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IPAMNetworkSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RouterRotationInfo message from the specified reader or buffer. + * Decodes a PAMNetworkSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RouterRotationInfo + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRotationInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.PAMNetworkSettings; /** - * Decodes a RouterRotationInfo message from the specified reader or buffer, length delimited. + * Decodes a PAMNetworkSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RouterRotationInfo + * @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.RouterRotationInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.PAMNetworkSettings; /** - * Verifies a RouterRotationInfo message. + * 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 RouterRotationInfo message from a plain object. Also converts values to their respective internal types. + * Creates a PAMNetworkSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RouterRotationInfo + * @returns PAMNetworkSettings */ - public static fromObject(object: { [k: string]: any }): Router.RouterRotationInfo; + public static fromObject(object: { [k: string]: any }): Router.PAMNetworkSettings; /** - * Creates a plain object from a RouterRotationInfo message. Also converts values to other types if specified. - * @param message RouterRotationInfo + * Creates a plain object from a PAMNetworkSettings message. Also converts values to other types if specified. + * @param message PAMNetworkSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.RouterRotationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.PAMNetworkSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RouterRotationInfo to JSON. + * Converts this PAMNetworkSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RouterRotationInfo + * Gets the default type url for PAMNetworkSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RouterRecordRotationRequest. */ - interface IRouterRecordRotationRequest { + /** Properties of a PAMNetworkConfigurationRequest. */ + interface IPAMNetworkConfigurationRequest { - /** RouterRecordRotationRequest recordUid */ + /** PAMNetworkConfigurationRequest recordUid */ recordUid?: (Uint8Array|null); - /** RouterRecordRotationRequest revision */ - revision?: (number|Long|null); - - /** RouterRecordRotationRequest configurationUid */ - configurationUid?: (Uint8Array|null); - - /** RouterRecordRotationRequest resourceUid */ - resourceUid?: (Uint8Array|null); - - /** RouterRecordRotationRequest schedule */ - schedule?: (string|null); - - /** RouterRecordRotationRequest enterpriseUserId */ - enterpriseUserId?: (number|Long|null); - - /** RouterRecordRotationRequest pwdComplexity */ - pwdComplexity?: (Uint8Array|null); - - /** RouterRecordRotationRequest disabled */ - disabled?: (boolean|null); - - /** RouterRecordRotationRequest remoteAddress */ - remoteAddress?: (string|null); - - /** RouterRecordRotationRequest clientVersionId */ - clientVersionId?: (number|null); + /** PAMNetworkConfigurationRequest networkSettings */ + networkSettings?: (Router.IPAMNetworkSettings|null); - /** RouterRecordRotationRequest noop */ - noop?: (boolean|null); + /** PAMNetworkConfigurationRequest resources */ + resources?: (PAM.IPAMResourceConfig[]|null); - /** RouterRecordRotationRequest saasConfiguration */ - saasConfiguration?: (Uint8Array|null); + /** PAMNetworkConfigurationRequest rotations */ + rotations?: (Router.IRouterRecordRotationRequest[]|null); } - /** Represents a RouterRecordRotationRequest. */ - class RouterRecordRotationRequest implements IRouterRecordRotationRequest { + /** Represents a PAMNetworkConfigurationRequest. */ + class PAMNetworkConfigurationRequest implements IPAMNetworkConfigurationRequest { /** - * Constructs a new RouterRecordRotationRequest. + * Constructs a new PAMNetworkConfigurationRequest. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouterRecordRotationRequest); + constructor(properties?: Router.IPAMNetworkConfigurationRequest); - /** RouterRecordRotationRequest recordUid. */ + /** PAMNetworkConfigurationRequest recordUid. */ public recordUid: Uint8Array; - /** RouterRecordRotationRequest revision. */ - public revision: (number|Long); - - /** RouterRecordRotationRequest configurationUid. */ - public configurationUid: Uint8Array; - - /** RouterRecordRotationRequest resourceUid. */ - public resourceUid: Uint8Array; - - /** RouterRecordRotationRequest schedule. */ - public schedule: string; - - /** RouterRecordRotationRequest enterpriseUserId. */ - public enterpriseUserId: (number|Long); - - /** RouterRecordRotationRequest pwdComplexity. */ - public pwdComplexity: Uint8Array; - - /** RouterRecordRotationRequest disabled. */ - public disabled: boolean; - - /** RouterRecordRotationRequest remoteAddress. */ - public remoteAddress: string; - - /** RouterRecordRotationRequest clientVersionId. */ - public clientVersionId: number; + /** PAMNetworkConfigurationRequest networkSettings. */ + public networkSettings?: (Router.IPAMNetworkSettings|null); - /** RouterRecordRotationRequest noop. */ - public noop: boolean; + /** PAMNetworkConfigurationRequest resources. */ + public resources: PAM.IPAMResourceConfig[]; - /** RouterRecordRotationRequest saasConfiguration. */ - public saasConfiguration?: (Uint8Array|null); + /** PAMNetworkConfigurationRequest rotations. */ + public rotations: Router.IRouterRecordRotationRequest[]; - /** RouterRecordRotationRequest _saasConfiguration. */ - public _saasConfiguration?: "saasConfiguration"; + /** PAMNetworkConfigurationRequest _networkSettings. */ + public _networkSettings?: "networkSettings"; /** - * Creates a new RouterRecordRotationRequest instance using the specified properties. + * Creates a new PAMNetworkConfigurationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RouterRecordRotationRequest instance + * @returns PAMNetworkConfigurationRequest instance */ - public static create(properties?: Router.IRouterRecordRotationRequest): Router.RouterRecordRotationRequest; + public static create(properties?: Router.IPAMNetworkConfigurationRequest): Router.PAMNetworkConfigurationRequest; /** - * Encodes the specified RouterRecordRotationRequest message. Does not implicitly {@link Router.RouterRecordRotationRequest.verify|verify} messages. - * @param message RouterRecordRotationRequest message or plain object to encode + * Encodes the specified PAMNetworkConfigurationRequest message. 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 encode(message: Router.IRouterRecordRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IPAMNetworkConfigurationRequest, 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 + * 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.IRouterRecordRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IPAMNetworkConfigurationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RouterRecordRotationRequest message from the specified reader or buffer. + * Decodes a PAMNetworkConfigurationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RouterRecordRotationRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRecordRotationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.PAMNetworkConfigurationRequest; /** - * Decodes a RouterRecordRotationRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMNetworkConfigurationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RouterRecordRotationRequest + * @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.RouterRecordRotationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.PAMNetworkConfigurationRequest; /** - * Verifies a RouterRecordRotationRequest message. + * 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 RouterRecordRotationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMNetworkConfigurationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RouterRecordRotationRequest + * @returns PAMNetworkConfigurationRequest */ - public static fromObject(object: { [k: string]: any }): Router.RouterRecordRotationRequest; + public static fromObject(object: { [k: string]: any }): Router.PAMNetworkConfigurationRequest; /** - * Creates a plain object from a RouterRecordRotationRequest message. Also converts values to other types if specified. - * @param message RouterRecordRotationRequest + * Creates a plain object from a PAMNetworkConfigurationRequest message. Also converts values to other types if specified. + * @param message PAMNetworkConfigurationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.RouterRecordRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.PAMNetworkConfigurationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RouterRecordRotationRequest to JSON. + * Converts this PAMNetworkConfigurationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RouterRecordRotationRequest + * Gets the default type url for PAMNetworkConfigurationRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a UserRecordAccessRequest. */ - interface IUserRecordAccessRequest { + /** Properties of a PAMDiscoveryRulesSetRequest. */ + interface IPAMDiscoveryRulesSetRequest { - /** UserRecordAccessRequest userId */ - userId?: (number|null); + /** PAMDiscoveryRulesSetRequest networkUid */ + networkUid?: (Uint8Array|null); - /** UserRecordAccessRequest recordUid */ - recordUid?: (Uint8Array|null); + /** PAMDiscoveryRulesSetRequest rules */ + rules?: (Uint8Array|null); + + /** PAMDiscoveryRulesSetRequest rulesKey */ + rulesKey?: (Uint8Array|null); } - /** Represents a UserRecordAccessRequest. */ - class UserRecordAccessRequest implements IUserRecordAccessRequest { + /** Represents a PAMDiscoveryRulesSetRequest. */ + class PAMDiscoveryRulesSetRequest implements IPAMDiscoveryRulesSetRequest { /** - * Constructs a new UserRecordAccessRequest. + * Constructs a new PAMDiscoveryRulesSetRequest. * @param [properties] Properties to set */ - constructor(properties?: Router.IUserRecordAccessRequest); + constructor(properties?: Router.IPAMDiscoveryRulesSetRequest); - /** UserRecordAccessRequest userId. */ - public userId: number; + /** PAMDiscoveryRulesSetRequest networkUid. */ + public networkUid: Uint8Array; - /** UserRecordAccessRequest recordUid. */ - public recordUid: Uint8Array; + /** PAMDiscoveryRulesSetRequest rules. */ + public rules: Uint8Array; + + /** PAMDiscoveryRulesSetRequest rulesKey. */ + public rulesKey: Uint8Array; /** - * Creates a new UserRecordAccessRequest instance using the specified properties. + * Creates a new PAMDiscoveryRulesSetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UserRecordAccessRequest instance + * @returns PAMDiscoveryRulesSetRequest instance */ - public static create(properties?: Router.IUserRecordAccessRequest): Router.UserRecordAccessRequest; + public static create(properties?: Router.IPAMDiscoveryRulesSetRequest): Router.PAMDiscoveryRulesSetRequest; /** - * Encodes the specified UserRecordAccessRequest message. Does not implicitly {@link Router.UserRecordAccessRequest.verify|verify} messages. - * @param message UserRecordAccessRequest message or plain object to encode + * Encodes the specified PAMDiscoveryRulesSetRequest message. 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 encode(message: Router.IUserRecordAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IPAMDiscoveryRulesSetRequest, 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 + * 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.IUserRecordAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IPAMDiscoveryRulesSetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserRecordAccessRequest message from the specified reader or buffer. + * Decodes a PAMDiscoveryRulesSetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserRecordAccessRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserRecordAccessRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.PAMDiscoveryRulesSetRequest; /** - * Decodes a UserRecordAccessRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMDiscoveryRulesSetRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UserRecordAccessRequest + * @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.UserRecordAccessRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.PAMDiscoveryRulesSetRequest; /** - * Verifies a UserRecordAccessRequest message. + * 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 UserRecordAccessRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMDiscoveryRulesSetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserRecordAccessRequest + * @returns PAMDiscoveryRulesSetRequest */ - public static fromObject(object: { [k: string]: any }): Router.UserRecordAccessRequest; + public static fromObject(object: { [k: string]: any }): Router.PAMDiscoveryRulesSetRequest; /** - * Creates a plain object from a UserRecordAccessRequest message. Also converts values to other types if specified. - * @param message UserRecordAccessRequest + * Creates a plain object from a PAMDiscoveryRulesSetRequest message. Also converts values to other types if specified. + * @param message PAMDiscoveryRulesSetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.UserRecordAccessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.PAMDiscoveryRulesSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserRecordAccessRequest to JSON. + * Converts this PAMDiscoveryRulesSetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UserRecordAccessRequest + * Gets the default type url for PAMDiscoveryRulesSetRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** UserRecordAccessLevel enum. */ - enum UserRecordAccessLevel { - RRAL_NONE = 0, - RRAL_READ = 1, - RRAL_SHARE = 2, - RRAL_EDIT = 3, - RRAL_EDIT_AND_SHARE = 4, - RRAL_OWNER = 5 - } + /** Properties of a Router2FAValidateRequest. */ + interface IRouter2FAValidateRequest { - /** Properties of a UserRecordAccessResponse. */ - interface IUserRecordAccessResponse { + /** Router2FAValidateRequest transmissionKey */ + transmissionKey?: (Uint8Array|null); - /** UserRecordAccessResponse recordUid */ - recordUid?: (Uint8Array|null); + /** Router2FAValidateRequest sessionToken */ + sessionToken?: (Uint8Array|null); - /** UserRecordAccessResponse accessLevel */ - accessLevel?: (Router.UserRecordAccessLevel|null); + /** Router2FAValidateRequest value */ + value?: (string|null); } - /** Represents a UserRecordAccessResponse. */ - class UserRecordAccessResponse implements IUserRecordAccessResponse { + /** Represents a Router2FAValidateRequest. */ + class Router2FAValidateRequest implements IRouter2FAValidateRequest { /** - * Constructs a new UserRecordAccessResponse. + * Constructs a new Router2FAValidateRequest. * @param [properties] Properties to set */ - constructor(properties?: Router.IUserRecordAccessResponse); + constructor(properties?: Router.IRouter2FAValidateRequest); - /** UserRecordAccessResponse recordUid. */ - public recordUid: Uint8Array; + /** Router2FAValidateRequest transmissionKey. */ + public transmissionKey: Uint8Array; - /** UserRecordAccessResponse accessLevel. */ - public accessLevel: Router.UserRecordAccessLevel; + /** Router2FAValidateRequest sessionToken. */ + public sessionToken: Uint8Array; + + /** Router2FAValidateRequest value. */ + public value: string; /** - * Creates a new UserRecordAccessResponse instance using the specified properties. + * Creates a new Router2FAValidateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UserRecordAccessResponse instance + * @returns Router2FAValidateRequest instance */ - public static create(properties?: Router.IUserRecordAccessResponse): Router.UserRecordAccessResponse; + public static create(properties?: Router.IRouter2FAValidateRequest): Router.Router2FAValidateRequest; /** - * Encodes the specified UserRecordAccessResponse message. Does not implicitly {@link Router.UserRecordAccessResponse.verify|verify} messages. - * @param message UserRecordAccessResponse message or plain object to encode + * Encodes the specified Router2FAValidateRequest message. 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 encode(message: Router.IUserRecordAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouter2FAValidateRequest, 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 + * 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.IUserRecordAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IRouter2FAValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserRecordAccessResponse message from the specified reader or buffer. + * Decodes a Router2FAValidateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserRecordAccessResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserRecordAccessResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.Router2FAValidateRequest; /** - * Decodes a UserRecordAccessResponse message from the specified reader or buffer, length delimited. + * Decodes a Router2FAValidateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UserRecordAccessResponse + * @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.UserRecordAccessResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.Router2FAValidateRequest; /** - * Verifies a UserRecordAccessResponse message. + * 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 UserRecordAccessResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Router2FAValidateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserRecordAccessResponse + * @returns Router2FAValidateRequest */ - public static fromObject(object: { [k: string]: any }): Router.UserRecordAccessResponse; + public static fromObject(object: { [k: string]: any }): Router.Router2FAValidateRequest; /** - * Creates a plain object from a UserRecordAccessResponse message. Also converts values to other types if specified. - * @param message UserRecordAccessResponse + * Creates a plain object from a Router2FAValidateRequest message. Also converts values to other types if specified. + * @param message Router2FAValidateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.UserRecordAccessResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.Router2FAValidateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserRecordAccessResponse to JSON. + * Converts this Router2FAValidateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UserRecordAccessResponse + * Gets the default type url for Router2FAValidateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a UserRecordAccessRequests. */ - interface IUserRecordAccessRequests { + /** Properties of a Router2FASendPushRequest. */ + interface IRouter2FASendPushRequest { - /** UserRecordAccessRequests requests */ - requests?: (Router.IUserRecordAccessRequest[]|null); + /** Router2FASendPushRequest transmissionKey */ + transmissionKey?: (Uint8Array|null); + + /** Router2FASendPushRequest sessionToken */ + sessionToken?: (Uint8Array|null); + + /** Router2FASendPushRequest pushType */ + pushType?: (Authentication.TwoFactorPushType|null); } - /** Represents a UserRecordAccessRequests. */ - class UserRecordAccessRequests implements IUserRecordAccessRequests { + /** Represents a Router2FASendPushRequest. */ + class Router2FASendPushRequest implements IRouter2FASendPushRequest { /** - * Constructs a new UserRecordAccessRequests. + * Constructs a new Router2FASendPushRequest. * @param [properties] Properties to set */ - constructor(properties?: Router.IUserRecordAccessRequests); + constructor(properties?: Router.IRouter2FASendPushRequest); - /** UserRecordAccessRequests requests. */ - public requests: Router.IUserRecordAccessRequest[]; + /** Router2FASendPushRequest transmissionKey. */ + public transmissionKey: Uint8Array; + + /** Router2FASendPushRequest sessionToken. */ + public sessionToken: Uint8Array; + + /** Router2FASendPushRequest pushType. */ + public pushType: Authentication.TwoFactorPushType; /** - * Creates a new UserRecordAccessRequests instance using the specified properties. + * Creates a new Router2FASendPushRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UserRecordAccessRequests instance + * @returns Router2FASendPushRequest instance */ - public static create(properties?: Router.IUserRecordAccessRequests): Router.UserRecordAccessRequests; + public static create(properties?: Router.IRouter2FASendPushRequest): Router.Router2FASendPushRequest; /** - * Encodes the specified UserRecordAccessRequests message. Does not implicitly {@link Router.UserRecordAccessRequests.verify|verify} messages. - * @param message UserRecordAccessRequests message or plain object to encode + * Encodes the specified Router2FASendPushRequest message. 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 encode(message: Router.IUserRecordAccessRequests, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouter2FASendPushRequest, 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 + * 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.IUserRecordAccessRequests, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IRouter2FASendPushRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserRecordAccessRequests message from the specified reader or buffer. + * Decodes a Router2FASendPushRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserRecordAccessRequests + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserRecordAccessRequests; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.Router2FASendPushRequest; /** - * Decodes a UserRecordAccessRequests message from the specified reader or buffer, length delimited. + * Decodes a Router2FASendPushRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UserRecordAccessRequests + * @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.UserRecordAccessRequests; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.Router2FASendPushRequest; /** - * Verifies a UserRecordAccessRequests message. + * 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 UserRecordAccessRequests message from a plain object. Also converts values to their respective internal types. + * Creates a Router2FASendPushRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserRecordAccessRequests + * @returns Router2FASendPushRequest */ - public static fromObject(object: { [k: string]: any }): Router.UserRecordAccessRequests; + public static fromObject(object: { [k: string]: any }): Router.Router2FASendPushRequest; /** - * Creates a plain object from a UserRecordAccessRequests message. Also converts values to other types if specified. - * @param message UserRecordAccessRequests + * Creates a plain object from a Router2FASendPushRequest message. Also converts values to other types if specified. + * @param message Router2FASendPushRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.UserRecordAccessRequests, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.Router2FASendPushRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserRecordAccessRequests to JSON. + * Converts this Router2FASendPushRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UserRecordAccessRequests + * Gets the default type url for Router2FASendPushRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a UserRecordAccessResponses. */ - interface IUserRecordAccessResponses { + /** Properties of a Router2FAGetWebAuthnChallengeRequest. */ + interface IRouter2FAGetWebAuthnChallengeRequest { - /** UserRecordAccessResponses responses */ - responses?: (Router.IUserRecordAccessResponse[]|null); + /** Router2FAGetWebAuthnChallengeRequest transmissionKey */ + transmissionKey?: (Uint8Array|null); + + /** Router2FAGetWebAuthnChallengeRequest sessionToken */ + sessionToken?: (Uint8Array|null); } - /** Represents a UserRecordAccessResponses. */ - class UserRecordAccessResponses implements IUserRecordAccessResponses { + /** Represents a Router2FAGetWebAuthnChallengeRequest. */ + class Router2FAGetWebAuthnChallengeRequest implements IRouter2FAGetWebAuthnChallengeRequest { /** - * Constructs a new UserRecordAccessResponses. + * Constructs a new Router2FAGetWebAuthnChallengeRequest. * @param [properties] Properties to set */ - constructor(properties?: Router.IUserRecordAccessResponses); + constructor(properties?: Router.IRouter2FAGetWebAuthnChallengeRequest); - /** UserRecordAccessResponses responses. */ - public responses: Router.IUserRecordAccessResponse[]; + /** Router2FAGetWebAuthnChallengeRequest transmissionKey. */ + public transmissionKey: Uint8Array; + + /** Router2FAGetWebAuthnChallengeRequest sessionToken. */ + public sessionToken: Uint8Array; /** - * Creates a new UserRecordAccessResponses instance using the specified properties. + * Creates a new Router2FAGetWebAuthnChallengeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UserRecordAccessResponses instance + * @returns Router2FAGetWebAuthnChallengeRequest instance */ - public static create(properties?: Router.IUserRecordAccessResponses): Router.UserRecordAccessResponses; + public static create(properties?: Router.IRouter2FAGetWebAuthnChallengeRequest): Router.Router2FAGetWebAuthnChallengeRequest; /** - * Encodes the specified UserRecordAccessResponses message. Does not implicitly {@link Router.UserRecordAccessResponses.verify|verify} messages. - * @param message UserRecordAccessResponses message or plain object to encode + * Encodes the specified Router2FAGetWebAuthnChallengeRequest message. 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 encode(message: Router.IUserRecordAccessResponses, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouter2FAGetWebAuthnChallengeRequest, 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 + * 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.IUserRecordAccessResponses, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IRouter2FAGetWebAuthnChallengeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserRecordAccessResponses message from the specified reader or buffer. + * Decodes a Router2FAGetWebAuthnChallengeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserRecordAccessResponses + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserRecordAccessResponses; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.Router2FAGetWebAuthnChallengeRequest; /** - * Decodes a UserRecordAccessResponses message from the specified reader or buffer, length delimited. + * Decodes a Router2FAGetWebAuthnChallengeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UserRecordAccessResponses + * @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.UserRecordAccessResponses; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.Router2FAGetWebAuthnChallengeRequest; /** - * Verifies a UserRecordAccessResponses message. + * 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 UserRecordAccessResponses message from a plain object. Also converts values to their respective internal types. + * Creates a Router2FAGetWebAuthnChallengeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserRecordAccessResponses + * @returns Router2FAGetWebAuthnChallengeRequest */ - public static fromObject(object: { [k: string]: any }): Router.UserRecordAccessResponses; + public static fromObject(object: { [k: string]: any }): Router.Router2FAGetWebAuthnChallengeRequest; /** - * Creates a plain object from a UserRecordAccessResponses message. Also converts values to other types if specified. - * @param message UserRecordAccessResponses + * Creates a plain object from a Router2FAGetWebAuthnChallengeRequest message. Also converts values to other types if specified. + * @param message Router2FAGetWebAuthnChallengeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.UserRecordAccessResponses, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.Router2FAGetWebAuthnChallengeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserRecordAccessResponses to JSON. + * Converts this Router2FAGetWebAuthnChallengeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UserRecordAccessResponses + * Gets the default type url for Router2FAGetWebAuthnChallengeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RotationSchedule. */ - interface IRotationSchedule { + /** Properties of a Router2FAGetWebAuthnChallengeResponse. */ + interface IRouter2FAGetWebAuthnChallengeResponse { - /** RotationSchedule recordUid */ - recordUid?: (Uint8Array|null); + /** Router2FAGetWebAuthnChallengeResponse challenge */ + challenge?: (string|null); - /** RotationSchedule schedule */ - schedule?: (string|null); + /** Router2FAGetWebAuthnChallengeResponse capabilities */ + capabilities?: (string[]|null); } - /** Represents a RotationSchedule. */ - class RotationSchedule implements IRotationSchedule { + /** Represents a Router2FAGetWebAuthnChallengeResponse. */ + class Router2FAGetWebAuthnChallengeResponse implements IRouter2FAGetWebAuthnChallengeResponse { /** - * Constructs a new RotationSchedule. + * Constructs a new Router2FAGetWebAuthnChallengeResponse. * @param [properties] Properties to set */ - constructor(properties?: Router.IRotationSchedule); + constructor(properties?: Router.IRouter2FAGetWebAuthnChallengeResponse); - /** RotationSchedule recordUid. */ - public recordUid: Uint8Array; + /** Router2FAGetWebAuthnChallengeResponse challenge. */ + public challenge: string; - /** RotationSchedule schedule. */ - public schedule: string; + /** Router2FAGetWebAuthnChallengeResponse capabilities. */ + public capabilities: string[]; /** - * Creates a new RotationSchedule instance using the specified properties. + * Creates a new Router2FAGetWebAuthnChallengeResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RotationSchedule instance + * @returns Router2FAGetWebAuthnChallengeResponse instance */ - public static create(properties?: Router.IRotationSchedule): Router.RotationSchedule; + public static create(properties?: Router.IRouter2FAGetWebAuthnChallengeResponse): Router.Router2FAGetWebAuthnChallengeResponse; /** - * Encodes the specified RotationSchedule message. Does not implicitly {@link Router.RotationSchedule.verify|verify} messages. - * @param message RotationSchedule message or plain object to encode + * Encodes the specified Router2FAGetWebAuthnChallengeResponse message. 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 encode(message: Router.IRotationSchedule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouter2FAGetWebAuthnChallengeResponse, 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 + * 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.IRotationSchedule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: Router.IRouter2FAGetWebAuthnChallengeResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RotationSchedule message from the specified reader or buffer. + * Decodes a Router2FAGetWebAuthnChallengeResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RotationSchedule + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RotationSchedule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.Router2FAGetWebAuthnChallengeResponse; /** - * Decodes a RotationSchedule message from the specified reader or buffer, length delimited. + * Decodes a Router2FAGetWebAuthnChallengeResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RotationSchedule + * @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.RotationSchedule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Router.Router2FAGetWebAuthnChallengeResponse; /** - * Verifies a RotationSchedule message. + * 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 RotationSchedule message from a plain object. Also converts values to their respective internal types. + * Creates a Router2FAGetWebAuthnChallengeResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RotationSchedule + * @returns Router2FAGetWebAuthnChallengeResponse */ - public static fromObject(object: { [k: string]: any }): Router.RotationSchedule; + public static fromObject(object: { [k: string]: any }): Router.Router2FAGetWebAuthnChallengeResponse; /** - * Creates a plain object from a RotationSchedule message. Also converts values to other types if specified. - * @param message RotationSchedule + * Creates a plain object from a Router2FAGetWebAuthnChallengeResponse message. Also converts values to other types if specified. + * @param message Router2FAGetWebAuthnChallengeResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.RotationSchedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.Router2FAGetWebAuthnChallengeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RotationSchedule to JSON. + * Converts this Router2FAGetWebAuthnChallengeResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RotationSchedule + * Gets the default type url for Router2FAGetWebAuthnChallengeResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } +} - /** ServiceType enum. */ - enum ServiceType { - UNSPECIFIED = 0, - KA = 1, - BI = 2 - } +/** Namespace PAM. */ +export namespace PAM { - /** Properties of an ApiCallbackRequest. */ - interface IApiCallbackRequest { + /** Properties of a PAMRotationSchedule. */ + interface IPAMRotationSchedule { - /** ApiCallbackRequest resourceUid */ - resourceUid?: (Uint8Array|null); + /** PAMRotationSchedule recordUid */ + recordUid?: (Uint8Array|null); - /** ApiCallbackRequest schedules */ - schedules?: (Router.IApiCallbackSchedule[]|null); + /** PAMRotationSchedule configurationUid */ + configurationUid?: (Uint8Array|null); - /** ApiCallbackRequest url */ - url?: (string|null); + /** PAMRotationSchedule controllerUid */ + controllerUid?: (Uint8Array|null); - /** ApiCallbackRequest serviceType */ - serviceType?: (Router.ServiceType|null); + /** PAMRotationSchedule scheduleData */ + scheduleData?: (string|null); + + /** PAMRotationSchedule noSchedule */ + noSchedule?: (boolean|null); } - /** Represents an ApiCallbackRequest. */ - class ApiCallbackRequest implements IApiCallbackRequest { + /** Represents a PAMRotationSchedule. */ + class PAMRotationSchedule implements IPAMRotationSchedule { /** - * Constructs a new ApiCallbackRequest. + * Constructs a new PAMRotationSchedule. * @param [properties] Properties to set */ - constructor(properties?: Router.IApiCallbackRequest); + constructor(properties?: PAM.IPAMRotationSchedule); - /** ApiCallbackRequest resourceUid. */ - public resourceUid: Uint8Array; + /** PAMRotationSchedule recordUid. */ + public recordUid: Uint8Array; - /** ApiCallbackRequest schedules. */ - public schedules: Router.IApiCallbackSchedule[]; + /** PAMRotationSchedule configurationUid. */ + public configurationUid: Uint8Array; - /** ApiCallbackRequest url. */ - public url: string; + /** PAMRotationSchedule controllerUid. */ + public controllerUid: Uint8Array; - /** ApiCallbackRequest serviceType. */ - public serviceType: Router.ServiceType; + /** PAMRotationSchedule scheduleData. */ + public scheduleData: string; + + /** PAMRotationSchedule noSchedule. */ + public noSchedule: boolean; /** - * Creates a new ApiCallbackRequest instance using the specified properties. + * Creates a new PAMRotationSchedule instance using the specified properties. * @param [properties] Properties to set - * @returns ApiCallbackRequest instance + * @returns PAMRotationSchedule instance */ - public static create(properties?: Router.IApiCallbackRequest): Router.ApiCallbackRequest; + public static create(properties?: PAM.IPAMRotationSchedule): PAM.PAMRotationSchedule; /** - * Encodes the specified ApiCallbackRequest message. Does not implicitly {@link Router.ApiCallbackRequest.verify|verify} messages. - * @param message ApiCallbackRequest message or plain object to encode + * Encodes the specified PAMRotationSchedule message. 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 encode(message: Router.IApiCallbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMRotationSchedule, 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 + * 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: Router.IApiCallbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMRotationSchedule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApiCallbackRequest message from the specified reader or buffer. + * Decodes a PAMRotationSchedule message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ApiCallbackRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ApiCallbackRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRotationSchedule; /** - * Decodes an ApiCallbackRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMRotationSchedule message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ApiCallbackRequest + * @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)): Router.ApiCallbackRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMRotationSchedule; /** - * Verifies an ApiCallbackRequest message. + * 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 an ApiCallbackRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRotationSchedule message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApiCallbackRequest + * @returns PAMRotationSchedule */ - public static fromObject(object: { [k: string]: any }): Router.ApiCallbackRequest; + public static fromObject(object: { [k: string]: any }): PAM.PAMRotationSchedule; /** - * Creates a plain object from an ApiCallbackRequest message. Also converts values to other types if specified. - * @param message ApiCallbackRequest + * Creates a plain object from a PAMRotationSchedule message. Also converts values to other types if specified. + * @param message PAMRotationSchedule * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.ApiCallbackRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMRotationSchedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApiCallbackRequest to JSON. + * Converts this PAMRotationSchedule to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ApiCallbackRequest + * Gets the default type url for PAMRotationSchedule * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ApiCallbackSchedule. */ - interface IApiCallbackSchedule { - - /** ApiCallbackSchedule schedule */ - schedule?: (string|null); + /** Properties of a PAMRotationSchedulesResponse. */ + interface IPAMRotationSchedulesResponse { - /** ApiCallbackSchedule data */ - data?: (Uint8Array|null); + /** PAMRotationSchedulesResponse schedules */ + schedules?: (PAM.IPAMRotationSchedule[]|null); } - /** Represents an ApiCallbackSchedule. */ - class ApiCallbackSchedule implements IApiCallbackSchedule { + /** Represents a PAMRotationSchedulesResponse. */ + class PAMRotationSchedulesResponse implements IPAMRotationSchedulesResponse { /** - * Constructs a new ApiCallbackSchedule. + * Constructs a new PAMRotationSchedulesResponse. * @param [properties] Properties to set */ - constructor(properties?: Router.IApiCallbackSchedule); - - /** ApiCallbackSchedule schedule. */ - public schedule: string; + constructor(properties?: PAM.IPAMRotationSchedulesResponse); - /** ApiCallbackSchedule data. */ - public data: Uint8Array; + /** PAMRotationSchedulesResponse schedules. */ + public schedules: PAM.IPAMRotationSchedule[]; /** - * Creates a new ApiCallbackSchedule instance using the specified properties. + * Creates a new PAMRotationSchedulesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ApiCallbackSchedule instance + * @returns PAMRotationSchedulesResponse instance */ - public static create(properties?: Router.IApiCallbackSchedule): Router.ApiCallbackSchedule; + public static create(properties?: PAM.IPAMRotationSchedulesResponse): PAM.PAMRotationSchedulesResponse; /** - * Encodes the specified ApiCallbackSchedule message. Does not implicitly {@link Router.ApiCallbackSchedule.verify|verify} messages. - * @param message ApiCallbackSchedule message or plain object to encode + * Encodes the specified PAMRotationSchedulesResponse message. 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 encode(message: Router.IApiCallbackSchedule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMRotationSchedulesResponse, 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 + * 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: Router.IApiCallbackSchedule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMRotationSchedulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApiCallbackSchedule message from the specified reader or buffer. + * Decodes a PAMRotationSchedulesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ApiCallbackSchedule + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ApiCallbackSchedule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRotationSchedulesResponse; /** - * Decodes an ApiCallbackSchedule message from the specified reader or buffer, length delimited. + * Decodes a PAMRotationSchedulesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ApiCallbackSchedule + * @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)): Router.ApiCallbackSchedule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMRotationSchedulesResponse; /** - * Verifies an ApiCallbackSchedule message. + * 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 an ApiCallbackSchedule message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRotationSchedulesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApiCallbackSchedule + * @returns PAMRotationSchedulesResponse */ - public static fromObject(object: { [k: string]: any }): Router.ApiCallbackSchedule; + public static fromObject(object: { [k: string]: any }): PAM.PAMRotationSchedulesResponse; /** - * Creates a plain object from an ApiCallbackSchedule message. Also converts values to other types if specified. - * @param message ApiCallbackSchedule + * Creates a plain object from a PAMRotationSchedulesResponse message. Also converts values to other types if specified. + * @param message PAMRotationSchedulesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.ApiCallbackSchedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMRotationSchedulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApiCallbackSchedule to JSON. + * Converts this PAMRotationSchedulesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ApiCallbackSchedule + * Gets the default type url for PAMRotationSchedulesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RouterScheduledActions. */ - interface IRouterScheduledActions { + /** Properties of a PAMOnlineController. */ + interface IPAMOnlineController { - /** RouterScheduledActions schedule */ - schedule?: (string|null); + /** PAMOnlineController controllerUid */ + controllerUid?: (Uint8Array|null); - /** RouterScheduledActions resourceUids */ - resourceUids?: (Uint8Array[]|null); + /** PAMOnlineController connectedOn */ + connectedOn?: (number|Long|null); + + /** PAMOnlineController ipAddress */ + ipAddress?: (string|null); + + /** PAMOnlineController version */ + version?: (string|null); + + /** PAMOnlineController connections */ + connections?: (PAM.IPAMWebRtcConnection[]|null); } - /** Represents a RouterScheduledActions. */ - class RouterScheduledActions implements IRouterScheduledActions { + /** Represents a PAMOnlineController. */ + class PAMOnlineController implements IPAMOnlineController { /** - * Constructs a new RouterScheduledActions. + * Constructs a new PAMOnlineController. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouterScheduledActions); + constructor(properties?: PAM.IPAMOnlineController); - /** RouterScheduledActions schedule. */ - public schedule: string; + /** PAMOnlineController controllerUid. */ + public controllerUid: Uint8Array; - /** RouterScheduledActions resourceUids. */ - public resourceUids: Uint8Array[]; + /** PAMOnlineController connectedOn. */ + public connectedOn: (number|Long); + + /** PAMOnlineController ipAddress. */ + public ipAddress: string; + + /** PAMOnlineController version. */ + public version: string; + + /** PAMOnlineController connections. */ + public connections: PAM.IPAMWebRtcConnection[]; /** - * Creates a new RouterScheduledActions instance using the specified properties. + * Creates a new PAMOnlineController instance using the specified properties. * @param [properties] Properties to set - * @returns RouterScheduledActions instance + * @returns PAMOnlineController instance */ - public static create(properties?: Router.IRouterScheduledActions): Router.RouterScheduledActions; + public static create(properties?: PAM.IPAMOnlineController): PAM.PAMOnlineController; /** - * Encodes the specified RouterScheduledActions message. Does not implicitly {@link Router.RouterScheduledActions.verify|verify} messages. - * @param message RouterScheduledActions message or plain object to encode + * Encodes the specified PAMOnlineController message. 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 encode(message: Router.IRouterScheduledActions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMOnlineController, 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 + * 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: Router.IRouterScheduledActions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMOnlineController, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RouterScheduledActions message from the specified reader or buffer. + * Decodes a PAMOnlineController message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RouterScheduledActions + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterScheduledActions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMOnlineController; /** - * Decodes a RouterScheduledActions message from the specified reader or buffer, length delimited. + * Decodes a PAMOnlineController message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RouterScheduledActions + * @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)): Router.RouterScheduledActions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMOnlineController; /** - * Verifies a RouterScheduledActions message. + * 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 RouterScheduledActions message from a plain object. Also converts values to their respective internal types. + * Creates a PAMOnlineController message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RouterScheduledActions + * @returns PAMOnlineController */ - public static fromObject(object: { [k: string]: any }): Router.RouterScheduledActions; + public static fromObject(object: { [k: string]: any }): PAM.PAMOnlineController; /** - * Creates a plain object from a RouterScheduledActions message. Also converts values to other types if specified. - * @param message RouterScheduledActions + * Creates a plain object from a PAMOnlineController message. Also converts values to other types if specified. + * @param message PAMOnlineController * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.RouterScheduledActions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMOnlineController, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RouterScheduledActions to JSON. + * Converts this PAMOnlineController to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RouterScheduledActions + * Gets the default type url for PAMOnlineController * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RouterRecordsRotationRequest. */ - interface IRouterRecordsRotationRequest { + /** WebRtcConnectionType enum. */ + enum WebRtcConnectionType { + CONNECTION = 0, + TUNNEL = 1, + SSH = 2, + RDP = 3, + HTTP = 4, + VNC = 5, + TELNET = 6, + MYSQL = 7, + SQL_SERVER = 8, + POSTGRESQL = 9, + KUBERNETES = 10 + } - /** RouterRecordsRotationRequest rotationSchedules */ - rotationSchedules?: (Router.IRouterScheduledActions[]|null); + /** Properties of a PAMWebRtcConnection. */ + interface IPAMWebRtcConnection { + + /** PAMWebRtcConnection connectionUid */ + connectionUid?: (Uint8Array|null); + + /** PAMWebRtcConnection type */ + type?: (PAM.WebRtcConnectionType|null); + + /** PAMWebRtcConnection recordUid */ + recordUid?: (Uint8Array|null); + + /** PAMWebRtcConnection userName */ + userName?: (string|null); + + /** PAMWebRtcConnection startedOn */ + startedOn?: (number|Long|null); + + /** PAMWebRtcConnection configurationUid */ + configurationUid?: (Uint8Array|null); } - /** Represents a RouterRecordsRotationRequest. */ - class RouterRecordsRotationRequest implements IRouterRecordsRotationRequest { + /** Represents a PAMWebRtcConnection. */ + class PAMWebRtcConnection implements IPAMWebRtcConnection { /** - * Constructs a new RouterRecordsRotationRequest. + * Constructs a new PAMWebRtcConnection. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouterRecordsRotationRequest); + constructor(properties?: PAM.IPAMWebRtcConnection); - /** RouterRecordsRotationRequest rotationSchedules. */ - public rotationSchedules: Router.IRouterScheduledActions[]; + /** PAMWebRtcConnection connectionUid. */ + public connectionUid: Uint8Array; + + /** PAMWebRtcConnection type. */ + public type: PAM.WebRtcConnectionType; + + /** PAMWebRtcConnection recordUid. */ + public recordUid: Uint8Array; + + /** PAMWebRtcConnection userName. */ + public userName: string; + + /** PAMWebRtcConnection startedOn. */ + public startedOn: (number|Long); + + /** PAMWebRtcConnection configurationUid. */ + public configurationUid: Uint8Array; /** - * Creates a new RouterRecordsRotationRequest instance using the specified properties. + * Creates a new PAMWebRtcConnection instance using the specified properties. * @param [properties] Properties to set - * @returns RouterRecordsRotationRequest instance + * @returns PAMWebRtcConnection instance */ - public static create(properties?: Router.IRouterRecordsRotationRequest): Router.RouterRecordsRotationRequest; + public static create(properties?: PAM.IPAMWebRtcConnection): PAM.PAMWebRtcConnection; /** - * Encodes the specified RouterRecordsRotationRequest message. Does not implicitly {@link Router.RouterRecordsRotationRequest.verify|verify} messages. - * @param message RouterRecordsRotationRequest message or plain object to encode + * Encodes the specified PAMWebRtcConnection message. 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 encode(message: Router.IRouterRecordsRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMWebRtcConnection, 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 + * 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: Router.IRouterRecordsRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMWebRtcConnection, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RouterRecordsRotationRequest message from the specified reader or buffer. + * Decodes a PAMWebRtcConnection message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RouterRecordsRotationRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRecordsRotationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMWebRtcConnection; /** - * Decodes a RouterRecordsRotationRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMWebRtcConnection message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RouterRecordsRotationRequest + * @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)): Router.RouterRecordsRotationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMWebRtcConnection; /** - * Verifies a RouterRecordsRotationRequest message. + * 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 RouterRecordsRotationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMWebRtcConnection message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RouterRecordsRotationRequest + * @returns PAMWebRtcConnection */ - public static fromObject(object: { [k: string]: any }): Router.RouterRecordsRotationRequest; + public static fromObject(object: { [k: string]: any }): PAM.PAMWebRtcConnection; /** - * Creates a plain object from a RouterRecordsRotationRequest message. Also converts values to other types if specified. - * @param message RouterRecordsRotationRequest + * Creates a plain object from a PAMWebRtcConnection message. Also converts values to other types if specified. + * @param message PAMWebRtcConnection * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.RouterRecordsRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMWebRtcConnection, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RouterRecordsRotationRequest to JSON. + * Converts this PAMWebRtcConnection to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RouterRecordsRotationRequest + * Gets the default type url for PAMWebRtcConnection * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ConnectionParameters. */ - interface IConnectionParameters { - - /** ConnectionParameters connectionUid */ - connectionUid?: (Uint8Array|null); - - /** ConnectionParameters recordUid */ - recordUid?: (Uint8Array|null); - - /** ConnectionParameters userId */ - userId?: (number|null); + /** Properties of a PAMOnlineControllers. */ + interface IPAMOnlineControllers { - /** ConnectionParameters controllerUid */ - controllerUid?: (Uint8Array|null); + /** PAMOnlineControllers deprecated */ + deprecated?: (Uint8Array[]|null); - /** ConnectionParameters credentialsRecordUid */ - credentialsRecordUid?: (Uint8Array|null); + /** PAMOnlineControllers controllers */ + controllers?: (PAM.IPAMOnlineController[]|null); } - /** Represents a ConnectionParameters. */ - class ConnectionParameters implements IConnectionParameters { + /** Represents a PAMOnlineControllers. */ + class PAMOnlineControllers implements IPAMOnlineControllers { /** - * Constructs a new ConnectionParameters. + * Constructs a new PAMOnlineControllers. * @param [properties] Properties to set */ - constructor(properties?: Router.IConnectionParameters); - - /** ConnectionParameters connectionUid. */ - public connectionUid: Uint8Array; - - /** ConnectionParameters recordUid. */ - public recordUid: Uint8Array; - - /** ConnectionParameters userId. */ - public userId: number; + constructor(properties?: PAM.IPAMOnlineControllers); - /** ConnectionParameters controllerUid. */ - public controllerUid: Uint8Array; + /** PAMOnlineControllers deprecated. */ + public deprecated: Uint8Array[]; - /** ConnectionParameters credentialsRecordUid. */ - public credentialsRecordUid: Uint8Array; + /** PAMOnlineControllers controllers. */ + public controllers: PAM.IPAMOnlineController[]; /** - * Creates a new ConnectionParameters instance using the specified properties. + * Creates a new PAMOnlineControllers instance using the specified properties. * @param [properties] Properties to set - * @returns ConnectionParameters instance + * @returns PAMOnlineControllers instance */ - public static create(properties?: Router.IConnectionParameters): Router.ConnectionParameters; + public static create(properties?: PAM.IPAMOnlineControllers): PAM.PAMOnlineControllers; /** - * Encodes the specified ConnectionParameters message. Does not implicitly {@link Router.ConnectionParameters.verify|verify} messages. - * @param message ConnectionParameters message or plain object to encode + * Encodes the specified PAMOnlineControllers message. 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 encode(message: Router.IConnectionParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMOnlineControllers, 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 + * 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: Router.IConnectionParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMOnlineControllers, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConnectionParameters message from the specified reader or buffer. + * Decodes a PAMOnlineControllers message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConnectionParameters + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ConnectionParameters; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMOnlineControllers; /** - * Decodes a ConnectionParameters message from the specified reader or buffer, length delimited. + * Decodes a PAMOnlineControllers message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConnectionParameters + * @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)): Router.ConnectionParameters; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMOnlineControllers; /** - * Verifies a ConnectionParameters message. + * 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 ConnectionParameters message from a plain object. Also converts values to their respective internal types. + * Creates a PAMOnlineControllers message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConnectionParameters + * @returns PAMOnlineControllers */ - public static fromObject(object: { [k: string]: any }): Router.ConnectionParameters; + public static fromObject(object: { [k: string]: any }): PAM.PAMOnlineControllers; /** - * Creates a plain object from a ConnectionParameters message. Also converts values to other types if specified. - * @param message ConnectionParameters + * Creates a plain object from a PAMOnlineControllers message. Also converts values to other types if specified. + * @param message PAMOnlineControllers * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.ConnectionParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMOnlineControllers, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConnectionParameters to JSON. + * Converts this PAMOnlineControllers to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ConnectionParameters + * Gets the default type url for PAMOnlineControllers * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ValidateConnectionsRequest. */ - interface IValidateConnectionsRequest { + /** Properties of a PAMRotateRequest. */ + interface IPAMRotateRequest { - /** ValidateConnectionsRequest connections */ - connections?: (Router.IConnectionParameters[]|null); + /** PAMRotateRequest requestUid */ + requestUid?: (Uint8Array|null); + + /** PAMRotateRequest recordUid */ + recordUid?: (Uint8Array|null); } - /** Represents a ValidateConnectionsRequest. */ - class ValidateConnectionsRequest implements IValidateConnectionsRequest { + /** Represents a PAMRotateRequest. */ + class PAMRotateRequest implements IPAMRotateRequest { /** - * Constructs a new ValidateConnectionsRequest. + * Constructs a new PAMRotateRequest. * @param [properties] Properties to set */ - constructor(properties?: Router.IValidateConnectionsRequest); + constructor(properties?: PAM.IPAMRotateRequest); - /** ValidateConnectionsRequest connections. */ - public connections: Router.IConnectionParameters[]; + /** PAMRotateRequest requestUid. */ + public requestUid: Uint8Array; + + /** PAMRotateRequest recordUid. */ + public recordUid: Uint8Array; /** - * Creates a new ValidateConnectionsRequest instance using the specified properties. + * Creates a new PAMRotateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateConnectionsRequest instance + * @returns PAMRotateRequest instance */ - public static create(properties?: Router.IValidateConnectionsRequest): Router.ValidateConnectionsRequest; + public static create(properties?: PAM.IPAMRotateRequest): PAM.PAMRotateRequest; /** - * Encodes the specified ValidateConnectionsRequest message. Does not implicitly {@link Router.ValidateConnectionsRequest.verify|verify} messages. - * @param message ValidateConnectionsRequest message or plain object to encode + * Encodes the specified PAMRotateRequest message. 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 encode(message: Router.IValidateConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMRotateRequest, 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 + * 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: Router.IValidateConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMRotateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateConnectionsRequest message from the specified reader or buffer. + * Decodes a PAMRotateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateConnectionsRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ValidateConnectionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRotateRequest; /** - * Decodes a ValidateConnectionsRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMRotateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateConnectionsRequest + * @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)): Router.ValidateConnectionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMRotateRequest; /** - * Verifies a ValidateConnectionsRequest message. + * 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 ValidateConnectionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRotateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateConnectionsRequest + * @returns PAMRotateRequest */ - public static fromObject(object: { [k: string]: any }): Router.ValidateConnectionsRequest; + public static fromObject(object: { [k: string]: any }): PAM.PAMRotateRequest; /** - * Creates a plain object from a ValidateConnectionsRequest message. Also converts values to other types if specified. - * @param message ValidateConnectionsRequest + * Creates a plain object from a PAMRotateRequest message. Also converts values to other types if specified. + * @param message PAMRotateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.ValidateConnectionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMRotateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateConnectionsRequest to JSON. + * Converts this PAMRotateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateConnectionsRequest + * Gets the default type url for PAMRotateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ConnectionValidationFailure. */ - interface IConnectionValidationFailure { - - /** ConnectionValidationFailure connectionUid */ - connectionUid?: (Uint8Array|null); + /** Properties of a PAMControllersResponse. */ + interface IPAMControllersResponse { - /** ConnectionValidationFailure errorMessage */ - errorMessage?: (string|null); + /** PAMControllersResponse controllers */ + controllers?: (PAM.IPAMController[]|null); } - /** Represents a ConnectionValidationFailure. */ - class ConnectionValidationFailure implements IConnectionValidationFailure { + /** Represents a PAMControllersResponse. */ + class PAMControllersResponse implements IPAMControllersResponse { /** - * Constructs a new ConnectionValidationFailure. + * Constructs a new PAMControllersResponse. * @param [properties] Properties to set */ - constructor(properties?: Router.IConnectionValidationFailure); - - /** ConnectionValidationFailure connectionUid. */ - public connectionUid: Uint8Array; + constructor(properties?: PAM.IPAMControllersResponse); - /** ConnectionValidationFailure errorMessage. */ - public errorMessage: string; + /** PAMControllersResponse controllers. */ + public controllers: PAM.IPAMController[]; /** - * Creates a new ConnectionValidationFailure instance using the specified properties. + * Creates a new PAMControllersResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ConnectionValidationFailure instance + * @returns PAMControllersResponse instance */ - public static create(properties?: Router.IConnectionValidationFailure): Router.ConnectionValidationFailure; + public static create(properties?: PAM.IPAMControllersResponse): PAM.PAMControllersResponse; /** - * Encodes the specified ConnectionValidationFailure message. Does not implicitly {@link Router.ConnectionValidationFailure.verify|verify} messages. - * @param message ConnectionValidationFailure message or plain object to encode + * Encodes the specified PAMControllersResponse message. 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 encode(message: Router.IConnectionValidationFailure, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMControllersResponse, 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 + * 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: Router.IConnectionValidationFailure, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMControllersResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConnectionValidationFailure message from the specified reader or buffer. + * Decodes a PAMControllersResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConnectionValidationFailure + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ConnectionValidationFailure; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMControllersResponse; /** - * Decodes a ConnectionValidationFailure message from the specified reader or buffer, length delimited. + * Decodes a PAMControllersResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConnectionValidationFailure + * @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)): Router.ConnectionValidationFailure; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMControllersResponse; /** - * Verifies a ConnectionValidationFailure message. + * 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 ConnectionValidationFailure message from a plain object. Also converts values to their respective internal types. + * Creates a PAMControllersResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConnectionValidationFailure + * @returns PAMControllersResponse */ - public static fromObject(object: { [k: string]: any }): Router.ConnectionValidationFailure; + public static fromObject(object: { [k: string]: any }): PAM.PAMControllersResponse; /** - * Creates a plain object from a ConnectionValidationFailure message. Also converts values to other types if specified. - * @param message ConnectionValidationFailure + * Creates a plain object from a PAMControllersResponse message. Also converts values to other types if specified. + * @param message PAMControllersResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.ConnectionValidationFailure, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMControllersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConnectionValidationFailure to JSON. + * Converts this PAMControllersResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ConnectionValidationFailure + * Gets the default type url for PAMControllersResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ValidateConnectionsResponse. */ - interface IValidateConnectionsResponse { + /** Properties of a PAMRemoveController. */ + interface IPAMRemoveController { - /** ValidateConnectionsResponse failedConnections */ - failedConnections?: (Router.IConnectionValidationFailure[]|null); + /** PAMRemoveController controllerUid */ + controllerUid?: (Uint8Array|null); + + /** PAMRemoveController message */ + message?: (string|null); } - /** Represents a ValidateConnectionsResponse. */ - class ValidateConnectionsResponse implements IValidateConnectionsResponse { + /** Represents a PAMRemoveController. */ + class PAMRemoveController implements IPAMRemoveController { /** - * Constructs a new ValidateConnectionsResponse. + * Constructs a new PAMRemoveController. * @param [properties] Properties to set */ - constructor(properties?: Router.IValidateConnectionsResponse); + constructor(properties?: PAM.IPAMRemoveController); - /** ValidateConnectionsResponse failedConnections. */ - public failedConnections: Router.IConnectionValidationFailure[]; + /** PAMRemoveController controllerUid. */ + public controllerUid: Uint8Array; + + /** PAMRemoveController message. */ + public message: string; /** - * Creates a new ValidateConnectionsResponse instance using the specified properties. + * Creates a new PAMRemoveController instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateConnectionsResponse instance + * @returns PAMRemoveController instance */ - public static create(properties?: Router.IValidateConnectionsResponse): Router.ValidateConnectionsResponse; + public static create(properties?: PAM.IPAMRemoveController): PAM.PAMRemoveController; /** - * Encodes the specified ValidateConnectionsResponse message. Does not implicitly {@link Router.ValidateConnectionsResponse.verify|verify} messages. - * @param message ValidateConnectionsResponse message or plain object to encode + * Encodes the specified PAMRemoveController message. 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 encode(message: Router.IValidateConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMRemoveController, 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 + * 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: Router.IValidateConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMRemoveController, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateConnectionsResponse message from the specified reader or buffer. + * Decodes a PAMRemoveController message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateConnectionsResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ValidateConnectionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRemoveController; /** - * Decodes a ValidateConnectionsResponse message from the specified reader or buffer, length delimited. + * Decodes a PAMRemoveController message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateConnectionsResponse + * @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)): Router.ValidateConnectionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMRemoveController; /** - * Verifies a ValidateConnectionsResponse message. + * 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 ValidateConnectionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRemoveController message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateConnectionsResponse + * @returns PAMRemoveController */ - public static fromObject(object: { [k: string]: any }): Router.ValidateConnectionsResponse; + public static fromObject(object: { [k: string]: any }): PAM.PAMRemoveController; /** - * Creates a plain object from a ValidateConnectionsResponse message. Also converts values to other types if specified. - * @param message ValidateConnectionsResponse + * Creates a plain object from a PAMRemoveController message. Also converts values to other types if specified. + * @param message PAMRemoveController * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.ValidateConnectionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMRemoveController, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateConnectionsResponse to JSON. + * Converts this PAMRemoveController to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateConnectionsResponse + * Gets the default type url for PAMRemoveController * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetEnforcementRequest. */ - interface IGetEnforcementRequest { + /** Properties of a PAMRemoveControllerResponse. */ + interface IPAMRemoveControllerResponse { - /** GetEnforcementRequest enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + /** PAMRemoveControllerResponse controllers */ + controllers?: (PAM.IPAMRemoveController[]|null); } - /** Represents a GetEnforcementRequest. */ - class GetEnforcementRequest implements IGetEnforcementRequest { + /** Represents a PAMRemoveControllerResponse. */ + class PAMRemoveControllerResponse implements IPAMRemoveControllerResponse { /** - * Constructs a new GetEnforcementRequest. + * Constructs a new PAMRemoveControllerResponse. * @param [properties] Properties to set */ - constructor(properties?: Router.IGetEnforcementRequest); + constructor(properties?: PAM.IPAMRemoveControllerResponse); - /** GetEnforcementRequest enterpriseUserId. */ - public enterpriseUserId: (number|Long); + /** PAMRemoveControllerResponse controllers. */ + public controllers: PAM.IPAMRemoveController[]; /** - * Creates a new GetEnforcementRequest instance using the specified properties. + * Creates a new PAMRemoveControllerResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetEnforcementRequest instance + * @returns PAMRemoveControllerResponse instance */ - public static create(properties?: Router.IGetEnforcementRequest): Router.GetEnforcementRequest; + public static create(properties?: PAM.IPAMRemoveControllerResponse): PAM.PAMRemoveControllerResponse; /** - * Encodes the specified GetEnforcementRequest message. Does not implicitly {@link Router.GetEnforcementRequest.verify|verify} messages. - * @param message GetEnforcementRequest message or plain object to encode + * Encodes the specified PAMRemoveControllerResponse message. 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 encode(message: Router.IGetEnforcementRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMRemoveControllerResponse, 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 + * 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: Router.IGetEnforcementRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMRemoveControllerResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetEnforcementRequest message from the specified reader or buffer. + * Decodes a PAMRemoveControllerResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetEnforcementRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.GetEnforcementRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRemoveControllerResponse; /** - * Decodes a GetEnforcementRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMRemoveControllerResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetEnforcementRequest + * @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)): Router.GetEnforcementRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMRemoveControllerResponse; /** - * Verifies a GetEnforcementRequest message. + * 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 GetEnforcementRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRemoveControllerResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetEnforcementRequest + * @returns PAMRemoveControllerResponse */ - public static fromObject(object: { [k: string]: any }): Router.GetEnforcementRequest; + public static fromObject(object: { [k: string]: any }): PAM.PAMRemoveControllerResponse; /** - * Creates a plain object from a GetEnforcementRequest message. Also converts values to other types if specified. - * @param message GetEnforcementRequest + * Creates a plain object from a PAMRemoveControllerResponse message. Also converts values to other types if specified. + * @param message PAMRemoveControllerResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.GetEnforcementRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMRemoveControllerResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetEnforcementRequest to JSON. + * Converts this PAMRemoveControllerResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetEnforcementRequest + * Gets the default type url for PAMRemoveControllerResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EnforcementType. */ - interface IEnforcementType { - - /** EnforcementType enforcementTypeId */ - enforcementTypeId?: (number|null); + /** Properties of a PAMModifyRequest. */ + interface IPAMModifyRequest { - /** EnforcementType value */ - value?: (string|null); + /** PAMModifyRequest operations */ + operations?: (PAM.IPAMDataOperation[]|null); } - /** Represents an EnforcementType. */ - class EnforcementType implements IEnforcementType { + /** Represents a PAMModifyRequest. */ + class PAMModifyRequest implements IPAMModifyRequest { /** - * Constructs a new EnforcementType. + * Constructs a new PAMModifyRequest. * @param [properties] Properties to set */ - constructor(properties?: Router.IEnforcementType); - - /** EnforcementType enforcementTypeId. */ - public enforcementTypeId: number; + constructor(properties?: PAM.IPAMModifyRequest); - /** EnforcementType value. */ - public value: string; + /** PAMModifyRequest operations. */ + public operations: PAM.IPAMDataOperation[]; /** - * Creates a new EnforcementType instance using the specified properties. + * Creates a new PAMModifyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns EnforcementType instance + * @returns PAMModifyRequest instance */ - public static create(properties?: Router.IEnforcementType): Router.EnforcementType; + public static create(properties?: PAM.IPAMModifyRequest): PAM.PAMModifyRequest; /** - * Encodes the specified EnforcementType message. Does not implicitly {@link Router.EnforcementType.verify|verify} messages. - * @param message EnforcementType message or plain object to encode + * Encodes the specified PAMModifyRequest message. 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 encode(message: Router.IEnforcementType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMModifyRequest, 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 + * 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: Router.IEnforcementType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMModifyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnforcementType message from the specified reader or buffer. + * Decodes a PAMModifyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnforcementType + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.EnforcementType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMModifyRequest; /** - * Decodes an EnforcementType message from the specified reader or buffer, length delimited. + * Decodes a PAMModifyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnforcementType + * @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)): Router.EnforcementType; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMModifyRequest; /** - * Verifies an EnforcementType message. + * 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 an EnforcementType message from a plain object. Also converts values to their respective internal types. + * Creates a PAMModifyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnforcementType + * @returns PAMModifyRequest */ - public static fromObject(object: { [k: string]: any }): Router.EnforcementType; + public static fromObject(object: { [k: string]: any }): PAM.PAMModifyRequest; /** - * Creates a plain object from an EnforcementType message. Also converts values to other types if specified. - * @param message EnforcementType + * Creates a plain object from a PAMModifyRequest message. Also converts values to other types if specified. + * @param message PAMModifyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.EnforcementType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMModifyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnforcementType to JSON. + * Converts this PAMModifyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EnforcementType + * Gets the default type url for PAMModifyRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetEnforcementResponse. */ - interface IGetEnforcementResponse { + /** Properties of a PAMDataOperation. */ + interface IPAMDataOperation { - /** GetEnforcementResponse enforcementTypes */ - enforcementTypes?: (Router.IEnforcementType[]|null); + /** PAMDataOperation operationType */ + operationType?: (PAM.PAMOperationType|null); - /** GetEnforcementResponse addOnIds */ - addOnIds?: (number[]|null); + /** PAMDataOperation configuration */ + configuration?: (PAM.IPAMConfigurationData|null); - /** GetEnforcementResponse isInTrial */ - isInTrial?: (boolean|null); + /** PAMDataOperation element */ + element?: (PAM.IPAMElementData|null); } - /** Represents a GetEnforcementResponse. */ - class GetEnforcementResponse implements IGetEnforcementResponse { + /** Represents a PAMDataOperation. */ + class PAMDataOperation implements IPAMDataOperation { /** - * Constructs a new GetEnforcementResponse. + * Constructs a new PAMDataOperation. * @param [properties] Properties to set */ - constructor(properties?: Router.IGetEnforcementResponse); + constructor(properties?: PAM.IPAMDataOperation); - /** GetEnforcementResponse enforcementTypes. */ - public enforcementTypes: Router.IEnforcementType[]; + /** PAMDataOperation operationType. */ + public operationType: PAM.PAMOperationType; - /** GetEnforcementResponse addOnIds. */ - public addOnIds: number[]; + /** PAMDataOperation configuration. */ + public configuration?: (PAM.IPAMConfigurationData|null); - /** GetEnforcementResponse isInTrial. */ - public isInTrial: boolean; + /** PAMDataOperation element. */ + public element?: (PAM.IPAMElementData|null); /** - * Creates a new GetEnforcementResponse instance using the specified properties. + * Creates a new PAMDataOperation instance using the specified properties. * @param [properties] Properties to set - * @returns GetEnforcementResponse instance + * @returns PAMDataOperation instance */ - public static create(properties?: Router.IGetEnforcementResponse): Router.GetEnforcementResponse; + public static create(properties?: PAM.IPAMDataOperation): PAM.PAMDataOperation; /** - * Encodes the specified GetEnforcementResponse message. Does not implicitly {@link Router.GetEnforcementResponse.verify|verify} messages. - * @param message GetEnforcementResponse message or plain object to encode + * Encodes the specified PAMDataOperation message. 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 encode(message: Router.IGetEnforcementResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMDataOperation, 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 + * 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: Router.IGetEnforcementResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMDataOperation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetEnforcementResponse message from the specified reader or buffer. + * Decodes a PAMDataOperation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetEnforcementResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.GetEnforcementResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMDataOperation; /** - * Decodes a GetEnforcementResponse message from the specified reader or buffer, length delimited. + * Decodes a PAMDataOperation message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetEnforcementResponse + * @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)): Router.GetEnforcementResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMDataOperation; /** - * Verifies a GetEnforcementResponse message. + * 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 GetEnforcementResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PAMDataOperation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetEnforcementResponse + * @returns PAMDataOperation */ - public static fromObject(object: { [k: string]: any }): Router.GetEnforcementResponse; + public static fromObject(object: { [k: string]: any }): PAM.PAMDataOperation; /** - * Creates a plain object from a GetEnforcementResponse message. Also converts values to other types if specified. - * @param message GetEnforcementResponse + * Creates a plain object from a PAMDataOperation message. Also converts values to other types if specified. + * @param message PAMDataOperation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.GetEnforcementResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMDataOperation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetEnforcementResponse to JSON. + * Converts this PAMDataOperation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetEnforcementResponse + * Gets the default type url for PAMDataOperation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PEDMTOTPValidateRequest. */ - interface IPEDMTOTPValidateRequest { + /** PAMOperationType enum. */ + enum PAMOperationType { + ADD = 0, + UPDATE = 1, + REPLACE = 2, + DELETE = 3 + } - /** PEDMTOTPValidateRequest username */ - username?: (string|null); + /** Properties of a PAMConfigurationData. */ + interface IPAMConfigurationData { - /** PEDMTOTPValidateRequest enterpriseId */ - enterpriseId?: (number|null); + /** PAMConfigurationData configurationUid */ + configurationUid?: (Uint8Array|null); - /** PEDMTOTPValidateRequest code */ - code?: (number|null); + /** PAMConfigurationData nodeId */ + nodeId?: (number|Long|null); + + /** PAMConfigurationData controllerUid */ + controllerUid?: (Uint8Array|null); + + /** PAMConfigurationData data */ + data?: (Uint8Array|null); } - /** Represents a PEDMTOTPValidateRequest. */ - class PEDMTOTPValidateRequest implements IPEDMTOTPValidateRequest { + /** Represents a PAMConfigurationData. */ + class PAMConfigurationData implements IPAMConfigurationData { /** - * Constructs a new PEDMTOTPValidateRequest. + * Constructs a new PAMConfigurationData. * @param [properties] Properties to set */ - constructor(properties?: Router.IPEDMTOTPValidateRequest); + constructor(properties?: PAM.IPAMConfigurationData); - /** PEDMTOTPValidateRequest username. */ - public username: string; + /** PAMConfigurationData configurationUid. */ + public configurationUid: Uint8Array; - /** PEDMTOTPValidateRequest enterpriseId. */ - public enterpriseId: number; + /** PAMConfigurationData nodeId. */ + public nodeId: (number|Long); - /** PEDMTOTPValidateRequest code. */ - public code: number; + /** PAMConfigurationData controllerUid. */ + public controllerUid: Uint8Array; + + /** PAMConfigurationData data. */ + public data: Uint8Array; /** - * Creates a new PEDMTOTPValidateRequest instance using the specified properties. + * Creates a new PAMConfigurationData instance using the specified properties. * @param [properties] Properties to set - * @returns PEDMTOTPValidateRequest instance + * @returns PAMConfigurationData instance */ - public static create(properties?: Router.IPEDMTOTPValidateRequest): Router.PEDMTOTPValidateRequest; + public static create(properties?: PAM.IPAMConfigurationData): PAM.PAMConfigurationData; /** - * Encodes the specified PEDMTOTPValidateRequest message. Does not implicitly {@link Router.PEDMTOTPValidateRequest.verify|verify} messages. - * @param message PEDMTOTPValidateRequest message or plain object to encode + * Encodes the specified PAMConfigurationData message. 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 encode(message: Router.IPEDMTOTPValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMConfigurationData, 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 + * 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: Router.IPEDMTOTPValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMConfigurationData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PEDMTOTPValidateRequest message from the specified reader or buffer. + * Decodes a PAMConfigurationData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PEDMTOTPValidateRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.PEDMTOTPValidateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMConfigurationData; /** - * Decodes a PEDMTOTPValidateRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMConfigurationData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PEDMTOTPValidateRequest + * @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)): Router.PEDMTOTPValidateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMConfigurationData; /** - * Verifies a PEDMTOTPValidateRequest message. + * 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 PEDMTOTPValidateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMConfigurationData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PEDMTOTPValidateRequest + * @returns PAMConfigurationData */ - public static fromObject(object: { [k: string]: any }): Router.PEDMTOTPValidateRequest; + public static fromObject(object: { [k: string]: any }): PAM.PAMConfigurationData; /** - * Creates a plain object from a PEDMTOTPValidateRequest message. Also converts values to other types if specified. - * @param message PEDMTOTPValidateRequest + * Creates a plain object from a PAMConfigurationData message. Also converts values to other types if specified. + * @param message PAMConfigurationData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.PEDMTOTPValidateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMConfigurationData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PEDMTOTPValidateRequest to JSON. + * Converts this PAMConfigurationData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PEDMTOTPValidateRequest + * Gets the default type url for PAMConfigurationData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetPEDMAdminInfoResponse. */ - interface IGetPEDMAdminInfoResponse { + /** Properties of a PAMElementData. */ + interface IPAMElementData { - /** GetPEDMAdminInfoResponse isPedmAdmin */ - isPedmAdmin?: (boolean|null); + /** PAMElementData elementUid */ + elementUid?: (Uint8Array|null); - /** GetPEDMAdminInfoResponse pedmAddonActive */ - pedmAddonActive?: (boolean|null); + /** PAMElementData parentUid */ + parentUid?: (Uint8Array|null); + + /** PAMElementData data */ + data?: (Uint8Array|null); } - /** Represents a GetPEDMAdminInfoResponse. */ - class GetPEDMAdminInfoResponse implements IGetPEDMAdminInfoResponse { + /** Represents a PAMElementData. */ + class PAMElementData implements IPAMElementData { /** - * Constructs a new GetPEDMAdminInfoResponse. + * Constructs a new PAMElementData. * @param [properties] Properties to set */ - constructor(properties?: Router.IGetPEDMAdminInfoResponse); + constructor(properties?: PAM.IPAMElementData); - /** GetPEDMAdminInfoResponse isPedmAdmin. */ - public isPedmAdmin: boolean; + /** PAMElementData elementUid. */ + public elementUid: Uint8Array; - /** GetPEDMAdminInfoResponse pedmAddonActive. */ - public pedmAddonActive: boolean; + /** PAMElementData parentUid. */ + public parentUid: Uint8Array; + + /** PAMElementData data. */ + public data: Uint8Array; /** - * Creates a new GetPEDMAdminInfoResponse instance using the specified properties. + * Creates a new PAMElementData instance using the specified properties. * @param [properties] Properties to set - * @returns GetPEDMAdminInfoResponse instance + * @returns PAMElementData instance */ - public static create(properties?: Router.IGetPEDMAdminInfoResponse): Router.GetPEDMAdminInfoResponse; + public static create(properties?: PAM.IPAMElementData): PAM.PAMElementData; /** - * Encodes the specified GetPEDMAdminInfoResponse message. Does not implicitly {@link Router.GetPEDMAdminInfoResponse.verify|verify} messages. - * @param message GetPEDMAdminInfoResponse message or plain object to encode + * Encodes the specified PAMElementData message. 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 encode(message: Router.IGetPEDMAdminInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMElementData, 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 + * 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: Router.IGetPEDMAdminInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMElementData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetPEDMAdminInfoResponse message from the specified reader or buffer. + * Decodes a PAMElementData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetPEDMAdminInfoResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.GetPEDMAdminInfoResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMElementData; /** - * Decodes a GetPEDMAdminInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a PAMElementData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetPEDMAdminInfoResponse + * @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)): Router.GetPEDMAdminInfoResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMElementData; /** - * Verifies a GetPEDMAdminInfoResponse message. + * 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 GetPEDMAdminInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PAMElementData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetPEDMAdminInfoResponse + * @returns PAMElementData */ - public static fromObject(object: { [k: string]: any }): Router.GetPEDMAdminInfoResponse; + public static fromObject(object: { [k: string]: any }): PAM.PAMElementData; /** - * Creates a plain object from a GetPEDMAdminInfoResponse message. Also converts values to other types if specified. - * @param message GetPEDMAdminInfoResponse + * Creates a plain object from a PAMElementData message. Also converts values to other types if specified. + * @param message PAMElementData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.GetPEDMAdminInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMElementData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetPEDMAdminInfoResponse to JSON. + * Converts this PAMElementData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetPEDMAdminInfoResponse + * Gets the default type url for PAMElementData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMNetworkSettings. */ - interface IPAMNetworkSettings { + /** PAMOperationResultType enum. */ + enum PAMOperationResultType { + POT_SUCCESS = 0, + POT_UNKNOWN_ERROR = 1, + POT_ALREADY_EXISTS = 2, + POT_DOES_NOT_EXIST = 3 + } - /** PAMNetworkSettings allowedSettings */ - allowedSettings?: (Uint8Array|null); + /** Properties of a PAMElementOperationResult. */ + interface IPAMElementOperationResult { + + /** PAMElementOperationResult elementUid */ + elementUid?: (Uint8Array|null); + + /** PAMElementOperationResult result */ + result?: (PAM.PAMOperationResultType|null); + + /** PAMElementOperationResult message */ + message?: (string|null); } - /** Represents a PAMNetworkSettings. */ - class PAMNetworkSettings implements IPAMNetworkSettings { + /** Represents a PAMElementOperationResult. */ + class PAMElementOperationResult implements IPAMElementOperationResult { /** - * Constructs a new PAMNetworkSettings. + * Constructs a new PAMElementOperationResult. * @param [properties] Properties to set */ - constructor(properties?: Router.IPAMNetworkSettings); + constructor(properties?: PAM.IPAMElementOperationResult); - /** PAMNetworkSettings allowedSettings. */ - public allowedSettings: Uint8Array; + /** PAMElementOperationResult elementUid. */ + public elementUid: Uint8Array; + + /** PAMElementOperationResult result. */ + public result: PAM.PAMOperationResultType; + + /** PAMElementOperationResult message. */ + public message: string; /** - * Creates a new PAMNetworkSettings instance using the specified properties. + * Creates a new PAMElementOperationResult instance using the specified properties. * @param [properties] Properties to set - * @returns PAMNetworkSettings instance + * @returns PAMElementOperationResult instance */ - public static create(properties?: Router.IPAMNetworkSettings): Router.PAMNetworkSettings; + public static create(properties?: PAM.IPAMElementOperationResult): PAM.PAMElementOperationResult; /** - * Encodes the specified PAMNetworkSettings message. Does not implicitly {@link Router.PAMNetworkSettings.verify|verify} messages. - * @param message PAMNetworkSettings message or plain object to encode + * Encodes the specified PAMElementOperationResult message. 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 encode(message: Router.IPAMNetworkSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMElementOperationResult, 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 + * 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: Router.IPAMNetworkSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMElementOperationResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMNetworkSettings message from the specified reader or buffer. + * Decodes a PAMElementOperationResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMNetworkSettings + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.PAMNetworkSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMElementOperationResult; /** - * Decodes a PAMNetworkSettings message from the specified reader or buffer, length delimited. + * Decodes a PAMElementOperationResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMNetworkSettings + * @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)): Router.PAMNetworkSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMElementOperationResult; /** - * Verifies a PAMNetworkSettings message. + * 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 PAMNetworkSettings message from a plain object. Also converts values to their respective internal types. + * Creates a PAMElementOperationResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMNetworkSettings + * @returns PAMElementOperationResult */ - public static fromObject(object: { [k: string]: any }): Router.PAMNetworkSettings; + public static fromObject(object: { [k: string]: any }): PAM.PAMElementOperationResult; /** - * Creates a plain object from a PAMNetworkSettings message. Also converts values to other types if specified. - * @param message PAMNetworkSettings + * Creates a plain object from a PAMElementOperationResult message. Also converts values to other types if specified. + * @param message PAMElementOperationResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.PAMNetworkSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMElementOperationResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMNetworkSettings to JSON. + * Converts this PAMElementOperationResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMNetworkSettings + * Gets the default type url for PAMElementOperationResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMNetworkConfigurationRequest. */ - interface IPAMNetworkConfigurationRequest { - - /** PAMNetworkConfigurationRequest recordUid */ - recordUid?: (Uint8Array|null); - - /** PAMNetworkConfigurationRequest networkSettings */ - networkSettings?: (Router.IPAMNetworkSettings|null); - - /** PAMNetworkConfigurationRequest resources */ - resources?: (PAM.IPAMResourceConfig[]|null); + /** Properties of a PAMModifyResult. */ + interface IPAMModifyResult { - /** PAMNetworkConfigurationRequest rotations */ - rotations?: (Router.IRouterRecordRotationRequest[]|null); + /** PAMModifyResult results */ + results?: (PAM.IPAMElementOperationResult[]|null); } - /** Represents a PAMNetworkConfigurationRequest. */ - class PAMNetworkConfigurationRequest implements IPAMNetworkConfigurationRequest { + /** Represents a PAMModifyResult. */ + class PAMModifyResult implements IPAMModifyResult { /** - * Constructs a new PAMNetworkConfigurationRequest. + * Constructs a new PAMModifyResult. * @param [properties] Properties to set */ - constructor(properties?: Router.IPAMNetworkConfigurationRequest); - - /** PAMNetworkConfigurationRequest recordUid. */ - public recordUid: Uint8Array; - - /** PAMNetworkConfigurationRequest networkSettings. */ - public networkSettings?: (Router.IPAMNetworkSettings|null); - - /** PAMNetworkConfigurationRequest resources. */ - public resources: PAM.IPAMResourceConfig[]; - - /** PAMNetworkConfigurationRequest rotations. */ - public rotations: Router.IRouterRecordRotationRequest[]; + constructor(properties?: PAM.IPAMModifyResult); - /** PAMNetworkConfigurationRequest _networkSettings. */ - public _networkSettings?: "networkSettings"; + /** PAMModifyResult results. */ + public results: PAM.IPAMElementOperationResult[]; /** - * Creates a new PAMNetworkConfigurationRequest instance using the specified properties. + * Creates a new PAMModifyResult instance using the specified properties. * @param [properties] Properties to set - * @returns PAMNetworkConfigurationRequest instance + * @returns PAMModifyResult instance */ - public static create(properties?: Router.IPAMNetworkConfigurationRequest): Router.PAMNetworkConfigurationRequest; + public static create(properties?: PAM.IPAMModifyResult): PAM.PAMModifyResult; /** - * Encodes the specified PAMNetworkConfigurationRequest message. Does not implicitly {@link Router.PAMNetworkConfigurationRequest.verify|verify} messages. - * @param message PAMNetworkConfigurationRequest message or plain object to encode + * Encodes the specified PAMModifyResult message. 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 encode(message: Router.IPAMNetworkConfigurationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMModifyResult, 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 + * 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: Router.IPAMNetworkConfigurationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMModifyResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMNetworkConfigurationRequest message from the specified reader or buffer. + * Decodes a PAMModifyResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMNetworkConfigurationRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.PAMNetworkConfigurationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMModifyResult; /** - * Decodes a PAMNetworkConfigurationRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMModifyResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMNetworkConfigurationRequest + * @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)): Router.PAMNetworkConfigurationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMModifyResult; /** - * Verifies a PAMNetworkConfigurationRequest message. + * 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 PAMNetworkConfigurationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMModifyResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMNetworkConfigurationRequest + * @returns PAMModifyResult */ - public static fromObject(object: { [k: string]: any }): Router.PAMNetworkConfigurationRequest; + public static fromObject(object: { [k: string]: any }): PAM.PAMModifyResult; /** - * Creates a plain object from a PAMNetworkConfigurationRequest message. Also converts values to other types if specified. - * @param message PAMNetworkConfigurationRequest + * Creates a plain object from a PAMModifyResult message. Also converts values to other types if specified. + * @param message PAMModifyResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.PAMNetworkConfigurationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMModifyResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMNetworkConfigurationRequest to JSON. + * Converts this PAMModifyResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMNetworkConfigurationRequest + * Gets the default type url for PAMModifyResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMDiscoveryRulesSetRequest. */ - interface IPAMDiscoveryRulesSetRequest { + /** Properties of a PAMElement. */ + interface IPAMElement { - /** PAMDiscoveryRulesSetRequest networkUid */ - networkUid?: (Uint8Array|null); + /** PAMElement elementUid */ + elementUid?: (Uint8Array|null); - /** PAMDiscoveryRulesSetRequest rules */ - rules?: (Uint8Array|null); + /** PAMElement data */ + data?: (Uint8Array|null); - /** PAMDiscoveryRulesSetRequest rulesKey */ - rulesKey?: (Uint8Array|null); + /** PAMElement created */ + created?: (number|Long|null); + + /** PAMElement lastModified */ + lastModified?: (number|Long|null); + + /** PAMElement children */ + children?: (PAM.IPAMElement[]|null); } - /** Represents a PAMDiscoveryRulesSetRequest. */ - class PAMDiscoveryRulesSetRequest implements IPAMDiscoveryRulesSetRequest { + /** Represents a PAMElement. */ + class PAMElement implements IPAMElement { /** - * Constructs a new PAMDiscoveryRulesSetRequest. + * Constructs a new PAMElement. * @param [properties] Properties to set */ - constructor(properties?: Router.IPAMDiscoveryRulesSetRequest); + constructor(properties?: PAM.IPAMElement); - /** PAMDiscoveryRulesSetRequest networkUid. */ - public networkUid: Uint8Array; + /** PAMElement elementUid. */ + public elementUid: Uint8Array; - /** PAMDiscoveryRulesSetRequest rules. */ - public rules: Uint8Array; + /** PAMElement data. */ + public data: Uint8Array; - /** PAMDiscoveryRulesSetRequest rulesKey. */ - public rulesKey: Uint8Array; + /** PAMElement created. */ + public created: (number|Long); + + /** PAMElement lastModified. */ + public lastModified: (number|Long); + + /** PAMElement children. */ + public children: PAM.IPAMElement[]; /** - * Creates a new PAMDiscoveryRulesSetRequest instance using the specified properties. + * Creates a new PAMElement instance using the specified properties. * @param [properties] Properties to set - * @returns PAMDiscoveryRulesSetRequest instance + * @returns PAMElement instance */ - public static create(properties?: Router.IPAMDiscoveryRulesSetRequest): Router.PAMDiscoveryRulesSetRequest; + public static create(properties?: PAM.IPAMElement): PAM.PAMElement; /** - * Encodes the specified PAMDiscoveryRulesSetRequest message. Does not implicitly {@link Router.PAMDiscoveryRulesSetRequest.verify|verify} messages. - * @param message PAMDiscoveryRulesSetRequest message or plain object to encode + * Encodes the specified PAMElement message. 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 encode(message: Router.IPAMDiscoveryRulesSetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMElement, 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 + * 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: Router.IPAMDiscoveryRulesSetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMElement, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMDiscoveryRulesSetRequest message from the specified reader or buffer. + * Decodes a PAMElement message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMDiscoveryRulesSetRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.PAMDiscoveryRulesSetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMElement; /** - * Decodes a PAMDiscoveryRulesSetRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMElement message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMDiscoveryRulesSetRequest + * @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)): Router.PAMDiscoveryRulesSetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMElement; /** - * Verifies a PAMDiscoveryRulesSetRequest message. + * 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 PAMDiscoveryRulesSetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMElement message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMDiscoveryRulesSetRequest + * @returns PAMElement */ - public static fromObject(object: { [k: string]: any }): Router.PAMDiscoveryRulesSetRequest; + public static fromObject(object: { [k: string]: any }): PAM.PAMElement; /** - * Creates a plain object from a PAMDiscoveryRulesSetRequest message. Also converts values to other types if specified. - * @param message PAMDiscoveryRulesSetRequest + * Creates a plain object from a PAMElement message. Also converts values to other types if specified. + * @param message PAMElement * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.PAMDiscoveryRulesSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMElement, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMDiscoveryRulesSetRequest to JSON. + * Converts this PAMElement to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMDiscoveryRulesSetRequest + * Gets the default type url for PAMElement * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Router2FAValidateRequest. */ - interface IRouter2FAValidateRequest { - - /** Router2FAValidateRequest transmissionKey */ - transmissionKey?: (Uint8Array|null); - - /** Router2FAValidateRequest sessionToken */ - sessionToken?: (Uint8Array|null); + /** Properties of a PAMGenericUidRequest. */ + interface IPAMGenericUidRequest { - /** Router2FAValidateRequest value */ - value?: (string|null); + /** PAMGenericUidRequest uid */ + uid?: (Uint8Array|null); } - /** Represents a Router2FAValidateRequest. */ - class Router2FAValidateRequest implements IRouter2FAValidateRequest { + /** Represents a PAMGenericUidRequest. */ + class PAMGenericUidRequest implements IPAMGenericUidRequest { /** - * Constructs a new Router2FAValidateRequest. + * Constructs a new PAMGenericUidRequest. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouter2FAValidateRequest); - - /** Router2FAValidateRequest transmissionKey. */ - public transmissionKey: Uint8Array; - - /** Router2FAValidateRequest sessionToken. */ - public sessionToken: Uint8Array; + constructor(properties?: PAM.IPAMGenericUidRequest); - /** Router2FAValidateRequest value. */ - public value: string; + /** PAMGenericUidRequest uid. */ + public uid: Uint8Array; /** - * Creates a new Router2FAValidateRequest instance using the specified properties. + * Creates a new PAMGenericUidRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Router2FAValidateRequest instance + * @returns PAMGenericUidRequest instance */ - public static create(properties?: Router.IRouter2FAValidateRequest): Router.Router2FAValidateRequest; + public static create(properties?: PAM.IPAMGenericUidRequest): PAM.PAMGenericUidRequest; /** - * Encodes the specified Router2FAValidateRequest message. Does not implicitly {@link Router.Router2FAValidateRequest.verify|verify} messages. - * @param message Router2FAValidateRequest message or plain object to encode + * Encodes the specified PAMGenericUidRequest message. 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 encode(message: Router.IRouter2FAValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMGenericUidRequest, 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 + * 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: Router.IRouter2FAValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMGenericUidRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Router2FAValidateRequest message from the specified reader or buffer. + * Decodes a PAMGenericUidRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Router2FAValidateRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.Router2FAValidateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMGenericUidRequest; /** - * Decodes a Router2FAValidateRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMGenericUidRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Router2FAValidateRequest + * @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)): Router.Router2FAValidateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMGenericUidRequest; /** - * Verifies a Router2FAValidateRequest message. + * 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 Router2FAValidateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMGenericUidRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Router2FAValidateRequest + * @returns PAMGenericUidRequest */ - public static fromObject(object: { [k: string]: any }): Router.Router2FAValidateRequest; + public static fromObject(object: { [k: string]: any }): PAM.PAMGenericUidRequest; /** - * Creates a plain object from a Router2FAValidateRequest message. Also converts values to other types if specified. - * @param message Router2FAValidateRequest + * Creates a plain object from a PAMGenericUidRequest message. Also converts values to other types if specified. + * @param message PAMGenericUidRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.Router2FAValidateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMGenericUidRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Router2FAValidateRequest to JSON. + * Converts this PAMGenericUidRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Router2FAValidateRequest + * Gets the default type url for PAMGenericUidRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Router2FASendPushRequest. */ - interface IRouter2FASendPushRequest { - - /** Router2FASendPushRequest transmissionKey */ - transmissionKey?: (Uint8Array|null); - - /** Router2FASendPushRequest sessionToken */ - sessionToken?: (Uint8Array|null); + /** Properties of a PAMGenericUidsRequest. */ + interface IPAMGenericUidsRequest { - /** Router2FASendPushRequest pushType */ - pushType?: (Authentication.TwoFactorPushType|null); + /** PAMGenericUidsRequest uids */ + uids?: (Uint8Array[]|null); } - /** Represents a Router2FASendPushRequest. */ - class Router2FASendPushRequest implements IRouter2FASendPushRequest { + /** Represents a PAMGenericUidsRequest. */ + class PAMGenericUidsRequest implements IPAMGenericUidsRequest { /** - * Constructs a new Router2FASendPushRequest. + * Constructs a new PAMGenericUidsRequest. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouter2FASendPushRequest); - - /** Router2FASendPushRequest transmissionKey. */ - public transmissionKey: Uint8Array; - - /** Router2FASendPushRequest sessionToken. */ - public sessionToken: Uint8Array; + constructor(properties?: PAM.IPAMGenericUidsRequest); - /** Router2FASendPushRequest pushType. */ - public pushType: Authentication.TwoFactorPushType; + /** PAMGenericUidsRequest uids. */ + public uids: Uint8Array[]; /** - * Creates a new Router2FASendPushRequest instance using the specified properties. + * Creates a new PAMGenericUidsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Router2FASendPushRequest instance + * @returns PAMGenericUidsRequest instance */ - public static create(properties?: Router.IRouter2FASendPushRequest): Router.Router2FASendPushRequest; + public static create(properties?: PAM.IPAMGenericUidsRequest): PAM.PAMGenericUidsRequest; /** - * Encodes the specified Router2FASendPushRequest message. Does not implicitly {@link Router.Router2FASendPushRequest.verify|verify} messages. - * @param message Router2FASendPushRequest message or plain object to encode + * Encodes the specified PAMGenericUidsRequest message. 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 encode(message: Router.IRouter2FASendPushRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMGenericUidsRequest, 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 + * 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: Router.IRouter2FASendPushRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMGenericUidsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Router2FASendPushRequest message from the specified reader or buffer. + * Decodes a PAMGenericUidsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Router2FASendPushRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.Router2FASendPushRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMGenericUidsRequest; /** - * Decodes a Router2FASendPushRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMGenericUidsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Router2FASendPushRequest + * @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)): Router.Router2FASendPushRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMGenericUidsRequest; /** - * Verifies a Router2FASendPushRequest message. + * 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 Router2FASendPushRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMGenericUidsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Router2FASendPushRequest + * @returns PAMGenericUidsRequest */ - public static fromObject(object: { [k: string]: any }): Router.Router2FASendPushRequest; + public static fromObject(object: { [k: string]: any }): PAM.PAMGenericUidsRequest; /** - * Creates a plain object from a Router2FASendPushRequest message. Also converts values to other types if specified. - * @param message Router2FASendPushRequest + * Creates a plain object from a PAMGenericUidsRequest message. Also converts values to other types if specified. + * @param message PAMGenericUidsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.Router2FASendPushRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMGenericUidsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Router2FASendPushRequest to JSON. + * Converts this PAMGenericUidsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Router2FASendPushRequest + * Gets the default type url for PAMGenericUidsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Router2FAGetWebAuthnChallengeRequest. */ - interface IRouter2FAGetWebAuthnChallengeRequest { + /** Properties of a PAMConfiguration. */ + interface IPAMConfiguration { - /** Router2FAGetWebAuthnChallengeRequest transmissionKey */ - transmissionKey?: (Uint8Array|null); + /** PAMConfiguration configurationUid */ + configurationUid?: (Uint8Array|null); - /** Router2FAGetWebAuthnChallengeRequest sessionToken */ - sessionToken?: (Uint8Array|null); + /** PAMConfiguration nodeId */ + nodeId?: (number|Long|null); + + /** PAMConfiguration controllerUid */ + controllerUid?: (Uint8Array|null); + + /** PAMConfiguration data */ + data?: (Uint8Array|null); + + /** PAMConfiguration created */ + created?: (number|Long|null); + + /** PAMConfiguration lastModified */ + lastModified?: (number|Long|null); + + /** PAMConfiguration children */ + children?: (PAM.IPAMElement[]|null); } - /** Represents a Router2FAGetWebAuthnChallengeRequest. */ - class Router2FAGetWebAuthnChallengeRequest implements IRouter2FAGetWebAuthnChallengeRequest { + /** Represents a PAMConfiguration. */ + class PAMConfiguration implements IPAMConfiguration { /** - * Constructs a new Router2FAGetWebAuthnChallengeRequest. + * Constructs a new PAMConfiguration. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouter2FAGetWebAuthnChallengeRequest); + constructor(properties?: PAM.IPAMConfiguration); - /** Router2FAGetWebAuthnChallengeRequest transmissionKey. */ - public transmissionKey: Uint8Array; + /** PAMConfiguration configurationUid. */ + public configurationUid: Uint8Array; - /** Router2FAGetWebAuthnChallengeRequest sessionToken. */ - public sessionToken: Uint8Array; + /** PAMConfiguration nodeId. */ + public nodeId: (number|Long); + + /** PAMConfiguration controllerUid. */ + public controllerUid: Uint8Array; + + /** PAMConfiguration data. */ + public data: Uint8Array; + + /** PAMConfiguration created. */ + public created: (number|Long); + + /** PAMConfiguration lastModified. */ + public lastModified: (number|Long); + + /** PAMConfiguration children. */ + public children: PAM.IPAMElement[]; /** - * Creates a new Router2FAGetWebAuthnChallengeRequest instance using the specified properties. + * Creates a new PAMConfiguration instance using the specified properties. * @param [properties] Properties to set - * @returns Router2FAGetWebAuthnChallengeRequest instance + * @returns PAMConfiguration instance */ - public static create(properties?: Router.IRouter2FAGetWebAuthnChallengeRequest): Router.Router2FAGetWebAuthnChallengeRequest; + public static create(properties?: PAM.IPAMConfiguration): PAM.PAMConfiguration; /** - * Encodes the specified Router2FAGetWebAuthnChallengeRequest message. Does not implicitly {@link Router.Router2FAGetWebAuthnChallengeRequest.verify|verify} messages. - * @param message Router2FAGetWebAuthnChallengeRequest message or plain object to encode + * Encodes the specified PAMConfiguration message. 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 encode(message: Router.IRouter2FAGetWebAuthnChallengeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMConfiguration, 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 + * 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: Router.IRouter2FAGetWebAuthnChallengeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Router2FAGetWebAuthnChallengeRequest message from the specified reader or buffer. + * Decodes a PAMConfiguration message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Router2FAGetWebAuthnChallengeRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.Router2FAGetWebAuthnChallengeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMConfiguration; /** - * Decodes a Router2FAGetWebAuthnChallengeRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMConfiguration message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Router2FAGetWebAuthnChallengeRequest + * @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)): Router.Router2FAGetWebAuthnChallengeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMConfiguration; /** - * Verifies a Router2FAGetWebAuthnChallengeRequest message. + * 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 Router2FAGetWebAuthnChallengeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMConfiguration message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Router2FAGetWebAuthnChallengeRequest + * @returns PAMConfiguration */ - public static fromObject(object: { [k: string]: any }): Router.Router2FAGetWebAuthnChallengeRequest; + public static fromObject(object: { [k: string]: any }): PAM.PAMConfiguration; /** - * Creates a plain object from a Router2FAGetWebAuthnChallengeRequest message. Also converts values to other types if specified. - * @param message Router2FAGetWebAuthnChallengeRequest + * Creates a plain object from a PAMConfiguration message. Also converts values to other types if specified. + * @param message PAMConfiguration * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.Router2FAGetWebAuthnChallengeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMConfiguration, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Router2FAGetWebAuthnChallengeRequest to JSON. + * Converts this PAMConfiguration to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Router2FAGetWebAuthnChallengeRequest + * Gets the default type url for PAMConfiguration * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Router2FAGetWebAuthnChallengeResponse. */ - interface IRouter2FAGetWebAuthnChallengeResponse { - - /** Router2FAGetWebAuthnChallengeResponse challenge */ - challenge?: (string|null); + /** Properties of a PAMConfigurations. */ + interface IPAMConfigurations { - /** Router2FAGetWebAuthnChallengeResponse capabilities */ - capabilities?: (string[]|null); + /** PAMConfigurations configurations */ + configurations?: (PAM.IPAMConfiguration[]|null); } - /** Represents a Router2FAGetWebAuthnChallengeResponse. */ - class Router2FAGetWebAuthnChallengeResponse implements IRouter2FAGetWebAuthnChallengeResponse { + /** Represents a PAMConfigurations. */ + class PAMConfigurations implements IPAMConfigurations { /** - * Constructs a new Router2FAGetWebAuthnChallengeResponse. + * Constructs a new PAMConfigurations. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouter2FAGetWebAuthnChallengeResponse); - - /** Router2FAGetWebAuthnChallengeResponse challenge. */ - public challenge: string; + constructor(properties?: PAM.IPAMConfigurations); - /** Router2FAGetWebAuthnChallengeResponse capabilities. */ - public capabilities: string[]; + /** PAMConfigurations configurations. */ + public configurations: PAM.IPAMConfiguration[]; /** - * Creates a new Router2FAGetWebAuthnChallengeResponse instance using the specified properties. + * Creates a new PAMConfigurations instance using the specified properties. * @param [properties] Properties to set - * @returns Router2FAGetWebAuthnChallengeResponse instance + * @returns PAMConfigurations instance */ - public static create(properties?: Router.IRouter2FAGetWebAuthnChallengeResponse): Router.Router2FAGetWebAuthnChallengeResponse; + public static create(properties?: PAM.IPAMConfigurations): PAM.PAMConfigurations; /** - * Encodes the specified Router2FAGetWebAuthnChallengeResponse message. Does not implicitly {@link Router.Router2FAGetWebAuthnChallengeResponse.verify|verify} messages. - * @param message Router2FAGetWebAuthnChallengeResponse message or plain object to encode + * Encodes the specified PAMConfigurations message. 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 encode(message: Router.IRouter2FAGetWebAuthnChallengeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMConfigurations, 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 + * 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: Router.IRouter2FAGetWebAuthnChallengeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMConfigurations, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Router2FAGetWebAuthnChallengeResponse message from the specified reader or buffer. + * Decodes a PAMConfigurations message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Router2FAGetWebAuthnChallengeResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.Router2FAGetWebAuthnChallengeResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMConfigurations; /** - * Decodes a Router2FAGetWebAuthnChallengeResponse message from the specified reader or buffer, length delimited. + * Decodes a PAMConfigurations message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Router2FAGetWebAuthnChallengeResponse + * @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)): Router.Router2FAGetWebAuthnChallengeResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMConfigurations; /** - * Verifies a Router2FAGetWebAuthnChallengeResponse message. + * 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 Router2FAGetWebAuthnChallengeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PAMConfigurations message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Router2FAGetWebAuthnChallengeResponse + * @returns PAMConfigurations */ - public static fromObject(object: { [k: string]: any }): Router.Router2FAGetWebAuthnChallengeResponse; + public static fromObject(object: { [k: string]: any }): PAM.PAMConfigurations; /** - * Creates a plain object from a Router2FAGetWebAuthnChallengeResponse message. Also converts values to other types if specified. - * @param message Router2FAGetWebAuthnChallengeResponse + * Creates a plain object from a PAMConfigurations message. Also converts values to other types if specified. + * @param message PAMConfigurations * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.Router2FAGetWebAuthnChallengeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMConfigurations, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Router2FAGetWebAuthnChallengeResponse to JSON. + * Converts this PAMConfigurations to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Router2FAGetWebAuthnChallengeResponse + * Gets the default type url for PAMConfigurations * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} -/** Namespace PAM. */ -export namespace PAM { + /** Properties of a PAMController. */ + interface IPAMController { - /** Properties of a PAMRotationSchedule. */ - interface IPAMRotationSchedule { + /** PAMController controllerUid */ + controllerUid?: (Uint8Array|null); - /** PAMRotationSchedule recordUid */ - recordUid?: (Uint8Array|null); + /** PAMController controllerName */ + controllerName?: (string|null); - /** PAMRotationSchedule configurationUid */ - configurationUid?: (Uint8Array|null); + /** PAMController deviceToken */ + deviceToken?: (string|null); - /** PAMRotationSchedule controllerUid */ - controllerUid?: (Uint8Array|null); + /** PAMController deviceName */ + deviceName?: (string|null); - /** PAMRotationSchedule scheduleData */ - scheduleData?: (string|null); + /** PAMController nodeId */ + nodeId?: (number|Long|null); - /** PAMRotationSchedule noSchedule */ - noSchedule?: (boolean|null); + /** PAMController created */ + created?: (number|Long|null); + + /** PAMController lastModified */ + lastModified?: (number|Long|null); + + /** PAMController applicationUid */ + applicationUid?: (Uint8Array|null); + + /** PAMController appClientType */ + appClientType?: (Enterprise.AppClientType|null); + + /** PAMController isInitialized */ + isInitialized?: (boolean|null); } - /** Represents a PAMRotationSchedule. */ - class PAMRotationSchedule implements IPAMRotationSchedule { + /** Represents a PAMController. */ + class PAMController implements IPAMController { /** - * Constructs a new PAMRotationSchedule. + * Constructs a new PAMController. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMRotationSchedule); + constructor(properties?: PAM.IPAMController); - /** PAMRotationSchedule recordUid. */ - public recordUid: Uint8Array; + /** PAMController controllerUid. */ + public controllerUid: Uint8Array; - /** PAMRotationSchedule configurationUid. */ - public configurationUid: Uint8Array; + /** PAMController controllerName. */ + public controllerName: string; - /** PAMRotationSchedule controllerUid. */ - public controllerUid: Uint8Array; + /** PAMController deviceToken. */ + public deviceToken: string; - /** PAMRotationSchedule scheduleData. */ - public scheduleData: string; + /** PAMController deviceName. */ + public deviceName: string; - /** PAMRotationSchedule noSchedule. */ - public noSchedule: boolean; + /** PAMController nodeId. */ + public nodeId: (number|Long); + + /** PAMController created. */ + public created: (number|Long); + + /** PAMController lastModified. */ + public lastModified: (number|Long); + + /** PAMController applicationUid. */ + public applicationUid: Uint8Array; + + /** PAMController appClientType. */ + public appClientType: Enterprise.AppClientType; + + /** PAMController isInitialized. */ + public isInitialized: boolean; /** - * Creates a new PAMRotationSchedule instance using the specified properties. + * Creates a new PAMController instance using the specified properties. * @param [properties] Properties to set - * @returns PAMRotationSchedule instance + * @returns PAMController instance */ - public static create(properties?: PAM.IPAMRotationSchedule): PAM.PAMRotationSchedule; + public static create(properties?: PAM.IPAMController): PAM.PAMController; /** - * Encodes the specified PAMRotationSchedule message. Does not implicitly {@link PAM.PAMRotationSchedule.verify|verify} messages. - * @param message PAMRotationSchedule message or plain object to encode + * Encodes the specified PAMController message. 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 encode(message: PAM.IPAMRotationSchedule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMController, 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 + * 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.IPAMRotationSchedule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMController, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMRotationSchedule message from the specified reader or buffer. + * Decodes a PAMController message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMRotationSchedule + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRotationSchedule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMController; /** - * Decodes a PAMRotationSchedule message from the specified reader or buffer, length delimited. + * Decodes a PAMController message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMRotationSchedule + * @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.PAMRotationSchedule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMController; /** - * Verifies a PAMRotationSchedule message. + * 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 PAMRotationSchedule message from a plain object. Also converts values to their respective internal types. + * Creates a PAMController message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMRotationSchedule + * @returns PAMController */ - public static fromObject(object: { [k: string]: any }): PAM.PAMRotationSchedule; + public static fromObject(object: { [k: string]: any }): PAM.PAMController; /** - * Creates a plain object from a PAMRotationSchedule message. Also converts values to other types if specified. - * @param message PAMRotationSchedule + * Creates a plain object from a PAMController message. Also converts values to other types if specified. + * @param message PAMController * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMRotationSchedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMController, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMRotationSchedule to JSON. + * Converts this PAMController to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMRotationSchedule + * Gets the default type url for PAMController * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMRotationSchedulesResponse. */ - interface IPAMRotationSchedulesResponse { + /** Properties of a PAMSetMaxInstanceCountRequest. */ + interface IPAMSetMaxInstanceCountRequest { - /** PAMRotationSchedulesResponse schedules */ - schedules?: (PAM.IPAMRotationSchedule[]|null); + /** PAMSetMaxInstanceCountRequest controllerUid */ + controllerUid?: (Uint8Array|null); + + /** PAMSetMaxInstanceCountRequest maxInstanceCount */ + maxInstanceCount?: (number|null); } - /** Represents a PAMRotationSchedulesResponse. */ - class PAMRotationSchedulesResponse implements IPAMRotationSchedulesResponse { + /** Represents a PAMSetMaxInstanceCountRequest. */ + class PAMSetMaxInstanceCountRequest implements IPAMSetMaxInstanceCountRequest { /** - * Constructs a new PAMRotationSchedulesResponse. + * Constructs a new PAMSetMaxInstanceCountRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMRotationSchedulesResponse); + constructor(properties?: PAM.IPAMSetMaxInstanceCountRequest); + + /** PAMSetMaxInstanceCountRequest controllerUid. */ + public controllerUid: Uint8Array; - /** PAMRotationSchedulesResponse schedules. */ - public schedules: PAM.IPAMRotationSchedule[]; + /** PAMSetMaxInstanceCountRequest maxInstanceCount. */ + public maxInstanceCount: number; /** - * Creates a new PAMRotationSchedulesResponse instance using the specified properties. + * Creates a new PAMSetMaxInstanceCountRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMRotationSchedulesResponse instance + * @returns PAMSetMaxInstanceCountRequest instance */ - public static create(properties?: PAM.IPAMRotationSchedulesResponse): PAM.PAMRotationSchedulesResponse; + public static create(properties?: PAM.IPAMSetMaxInstanceCountRequest): PAM.PAMSetMaxInstanceCountRequest; /** - * Encodes the specified PAMRotationSchedulesResponse message. Does not implicitly {@link PAM.PAMRotationSchedulesResponse.verify|verify} messages. - * @param message PAMRotationSchedulesResponse message or plain object to encode + * Encodes the specified PAMSetMaxInstanceCountRequest message. 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 encode(message: PAM.IPAMRotationSchedulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMSetMaxInstanceCountRequest, 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 + * 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.IPAMRotationSchedulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMSetMaxInstanceCountRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMRotationSchedulesResponse message from the specified reader or buffer. + * Decodes a PAMSetMaxInstanceCountRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMRotationSchedulesResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRotationSchedulesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMSetMaxInstanceCountRequest; /** - * Decodes a PAMRotationSchedulesResponse message from the specified reader or buffer, length delimited. + * Decodes a PAMSetMaxInstanceCountRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMRotationSchedulesResponse + * @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.PAMRotationSchedulesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMSetMaxInstanceCountRequest; /** - * Verifies a PAMRotationSchedulesResponse message. + * 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 PAMRotationSchedulesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PAMSetMaxInstanceCountRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMRotationSchedulesResponse + * @returns PAMSetMaxInstanceCountRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMRotationSchedulesResponse; + public static fromObject(object: { [k: string]: any }): PAM.PAMSetMaxInstanceCountRequest; /** - * Creates a plain object from a PAMRotationSchedulesResponse message. Also converts values to other types if specified. - * @param message PAMRotationSchedulesResponse + * Creates a plain object from a PAMSetMaxInstanceCountRequest message. Also converts values to other types if specified. + * @param message PAMSetMaxInstanceCountRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMRotationSchedulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMSetMaxInstanceCountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMRotationSchedulesResponse to JSON. + * Converts this PAMSetMaxInstanceCountRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMRotationSchedulesResponse + * Gets the default type url for PAMSetMaxInstanceCountRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMOnlineController. */ - interface IPAMOnlineController { - - /** PAMOnlineController controllerUid */ - controllerUid?: (Uint8Array|null); - - /** PAMOnlineController connectedOn */ - connectedOn?: (number|Long|null); - - /** PAMOnlineController ipAddress */ - ipAddress?: (string|null); + /** ControllerMessageType enum. */ + enum ControllerMessageType { + CMT_GENERAL = 0, + CMT_ROTATE = 1, + CMT_DISCOVERY = 2, + CMT_CONNECT = 3 + } - /** PAMOnlineController version */ - version?: (string|null); + /** Properties of a ControllerResponse. */ + interface IControllerResponse { - /** PAMOnlineController connections */ - connections?: (PAM.IPAMWebRtcConnection[]|null); + /** ControllerResponse payload */ + payload?: (string|null); } - /** Represents a PAMOnlineController. */ - class PAMOnlineController implements IPAMOnlineController { + /** Represents a ControllerResponse. */ + class ControllerResponse implements IControllerResponse { /** - * Constructs a new PAMOnlineController. + * Constructs a new ControllerResponse. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMOnlineController); - - /** PAMOnlineController controllerUid. */ - public controllerUid: Uint8Array; - - /** PAMOnlineController connectedOn. */ - public connectedOn: (number|Long); - - /** PAMOnlineController ipAddress. */ - public ipAddress: string; - - /** PAMOnlineController version. */ - public version: string; + constructor(properties?: PAM.IControllerResponse); - /** PAMOnlineController connections. */ - public connections: PAM.IPAMWebRtcConnection[]; + /** ControllerResponse payload. */ + public payload: string; /** - * Creates a new PAMOnlineController instance using the specified properties. + * Creates a new ControllerResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PAMOnlineController instance + * @returns ControllerResponse instance */ - public static create(properties?: PAM.IPAMOnlineController): PAM.PAMOnlineController; + public static create(properties?: PAM.IControllerResponse): PAM.ControllerResponse; /** - * Encodes the specified PAMOnlineController message. Does not implicitly {@link PAM.PAMOnlineController.verify|verify} messages. - * @param message PAMOnlineController message or plain object to encode + * Encodes the specified ControllerResponse message. 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 encode(message: PAM.IPAMOnlineController, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IControllerResponse, 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 + * 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.IPAMOnlineController, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IControllerResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMOnlineController message from the specified reader or buffer. + * Decodes a ControllerResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMOnlineController + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMOnlineController; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.ControllerResponse; /** - * Decodes a PAMOnlineController message from the specified reader or buffer, length delimited. + * Decodes a ControllerResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMOnlineController + * @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.PAMOnlineController; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.ControllerResponse; /** - * Verifies a PAMOnlineController message. + * 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 PAMOnlineController message from a plain object. Also converts values to their respective internal types. + * Creates a ControllerResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMOnlineController + * @returns ControllerResponse */ - public static fromObject(object: { [k: string]: any }): PAM.PAMOnlineController; + public static fromObject(object: { [k: string]: any }): PAM.ControllerResponse; /** - * Creates a plain object from a PAMOnlineController message. Also converts values to other types if specified. - * @param message PAMOnlineController + * Creates a plain object from a ControllerResponse message. Also converts values to other types if specified. + * @param message ControllerResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMOnlineController, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.ControllerResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMOnlineController to JSON. + * Converts this ControllerResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMOnlineController + * Gets the default type url for ControllerResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** WebRtcConnectionType enum. */ - enum WebRtcConnectionType { - CONNECTION = 0, - TUNNEL = 1, - SSH = 2, - RDP = 3, - HTTP = 4, - VNC = 5, - TELNET = 6, - MYSQL = 7, - SQL_SERVER = 8, - POSTGRESQL = 9, - KUBERNETES = 10 - } - - /** Properties of a PAMWebRtcConnection. */ - interface IPAMWebRtcConnection { - - /** PAMWebRtcConnection connectionUid */ - connectionUid?: (Uint8Array|null); - - /** PAMWebRtcConnection type */ - type?: (PAM.WebRtcConnectionType|null); - - /** PAMWebRtcConnection recordUid */ - recordUid?: (Uint8Array|null); - - /** PAMWebRtcConnection userName */ - userName?: (string|null); - - /** PAMWebRtcConnection startedOn */ - startedOn?: (number|Long|null); + /** Properties of a PAMConfigurationController. */ + interface IPAMConfigurationController { - /** PAMWebRtcConnection configurationUid */ + /** PAMConfigurationController configurationUid */ configurationUid?: (Uint8Array|null); + + /** PAMConfigurationController controllerUid */ + controllerUid?: (Uint8Array|null); } - /** Represents a PAMWebRtcConnection. */ - class PAMWebRtcConnection implements IPAMWebRtcConnection { + /** Represents a PAMConfigurationController. */ + class PAMConfigurationController implements IPAMConfigurationController { /** - * Constructs a new PAMWebRtcConnection. + * Constructs a new PAMConfigurationController. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMWebRtcConnection); - - /** PAMWebRtcConnection connectionUid. */ - public connectionUid: Uint8Array; - - /** PAMWebRtcConnection type. */ - public type: PAM.WebRtcConnectionType; - - /** PAMWebRtcConnection recordUid. */ - public recordUid: Uint8Array; - - /** PAMWebRtcConnection userName. */ - public userName: string; - - /** PAMWebRtcConnection startedOn. */ - public startedOn: (number|Long); + constructor(properties?: PAM.IPAMConfigurationController); - /** PAMWebRtcConnection configurationUid. */ + /** PAMConfigurationController configurationUid. */ public configurationUid: Uint8Array; + /** PAMConfigurationController controllerUid. */ + public controllerUid: Uint8Array; + /** - * Creates a new PAMWebRtcConnection instance using the specified properties. + * Creates a new PAMConfigurationController instance using the specified properties. * @param [properties] Properties to set - * @returns PAMWebRtcConnection instance + * @returns PAMConfigurationController instance */ - public static create(properties?: PAM.IPAMWebRtcConnection): PAM.PAMWebRtcConnection; + public static create(properties?: PAM.IPAMConfigurationController): PAM.PAMConfigurationController; /** - * Encodes the specified PAMWebRtcConnection message. Does not implicitly {@link PAM.PAMWebRtcConnection.verify|verify} messages. - * @param message PAMWebRtcConnection message or plain object to encode + * Encodes the specified PAMConfigurationController message. 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 encode(message: PAM.IPAMWebRtcConnection, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMConfigurationController, 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 + * 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.IPAMWebRtcConnection, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMConfigurationController, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMWebRtcConnection message from the specified reader or buffer. + * Decodes a PAMConfigurationController message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMWebRtcConnection + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMWebRtcConnection; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMConfigurationController; /** - * Decodes a PAMWebRtcConnection message from the specified reader or buffer, length delimited. + * Decodes a PAMConfigurationController message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMWebRtcConnection + * @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.PAMWebRtcConnection; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMConfigurationController; /** - * Verifies a PAMWebRtcConnection message. + * 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 PAMWebRtcConnection message from a plain object. Also converts values to their respective internal types. + * Creates a PAMConfigurationController message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMWebRtcConnection + * @returns PAMConfigurationController */ - public static fromObject(object: { [k: string]: any }): PAM.PAMWebRtcConnection; + public static fromObject(object: { [k: string]: any }): PAM.PAMConfigurationController; /** - * Creates a plain object from a PAMWebRtcConnection message. Also converts values to other types if specified. - * @param message PAMWebRtcConnection + * Creates a plain object from a PAMConfigurationController message. Also converts values to other types if specified. + * @param message PAMConfigurationController * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMWebRtcConnection, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMConfigurationController, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMWebRtcConnection to JSON. + * Converts this PAMConfigurationController to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMWebRtcConnection + * Gets the default type url for PAMConfigurationController * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMOnlineControllers. */ - interface IPAMOnlineControllers { + /** Properties of a ConfigurationAddRequest. */ + interface IConfigurationAddRequest { - /** PAMOnlineControllers deprecated */ - deprecated?: (Uint8Array[]|null); + /** ConfigurationAddRequest configurationUid */ + configurationUid?: (Uint8Array|null); - /** PAMOnlineControllers controllers */ - controllers?: (PAM.IPAMOnlineController[]|null); + /** ConfigurationAddRequest recordKey */ + recordKey?: (Uint8Array|null); + + /** ConfigurationAddRequest data */ + data?: (Uint8Array|null); + + /** ConfigurationAddRequest recordLinks */ + recordLinks?: (Records.IRecordLink[]|null); + + /** ConfigurationAddRequest audit */ + audit?: (Records.IRecordAudit|null); } - /** Represents a PAMOnlineControllers. */ - class PAMOnlineControllers implements IPAMOnlineControllers { + /** Represents a ConfigurationAddRequest. */ + class ConfigurationAddRequest implements IConfigurationAddRequest { /** - * Constructs a new PAMOnlineControllers. + * Constructs a new ConfigurationAddRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMOnlineControllers); + constructor(properties?: PAM.IConfigurationAddRequest); - /** PAMOnlineControllers deprecated. */ - public deprecated: Uint8Array[]; + /** ConfigurationAddRequest configurationUid. */ + public configurationUid: Uint8Array; - /** PAMOnlineControllers controllers. */ - public controllers: PAM.IPAMOnlineController[]; + /** ConfigurationAddRequest recordKey. */ + public recordKey: Uint8Array; + + /** ConfigurationAddRequest data. */ + public data: Uint8Array; + + /** ConfigurationAddRequest recordLinks. */ + public recordLinks: Records.IRecordLink[]; + + /** ConfigurationAddRequest audit. */ + public audit?: (Records.IRecordAudit|null); /** - * Creates a new PAMOnlineControllers instance using the specified properties. + * Creates a new ConfigurationAddRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMOnlineControllers instance + * @returns ConfigurationAddRequest instance */ - public static create(properties?: PAM.IPAMOnlineControllers): PAM.PAMOnlineControllers; + public static create(properties?: PAM.IConfigurationAddRequest): PAM.ConfigurationAddRequest; /** - * Encodes the specified PAMOnlineControllers message. Does not implicitly {@link PAM.PAMOnlineControllers.verify|verify} messages. - * @param message PAMOnlineControllers message or plain object to encode + * Encodes the specified ConfigurationAddRequest message. 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 encode(message: PAM.IPAMOnlineControllers, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IConfigurationAddRequest, 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 + * 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.IPAMOnlineControllers, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IConfigurationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMOnlineControllers message from the specified reader or buffer. + * Decodes a ConfigurationAddRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMOnlineControllers + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMOnlineControllers; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.ConfigurationAddRequest; /** - * Decodes a PAMOnlineControllers message from the specified reader or buffer, length delimited. + * Decodes a ConfigurationAddRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMOnlineControllers + * @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.PAMOnlineControllers; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.ConfigurationAddRequest; /** - * Verifies a PAMOnlineControllers message. + * 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 PAMOnlineControllers message from a plain object. Also converts values to their respective internal types. + * Creates a ConfigurationAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMOnlineControllers + * @returns ConfigurationAddRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMOnlineControllers; + public static fromObject(object: { [k: string]: any }): PAM.ConfigurationAddRequest; /** - * Creates a plain object from a PAMOnlineControllers message. Also converts values to other types if specified. - * @param message PAMOnlineControllers + * Creates a plain object from a ConfigurationAddRequest message. Also converts values to other types if specified. + * @param message ConfigurationAddRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMOnlineControllers, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.ConfigurationAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMOnlineControllers to JSON. + * Converts this ConfigurationAddRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMOnlineControllers + * Gets the default type url for ConfigurationAddRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMRotateRequest. */ - interface IPAMRotateRequest { + /** Properties of a RelayAccessCreds. */ + interface IRelayAccessCreds { - /** PAMRotateRequest requestUid */ - requestUid?: (Uint8Array|null); + /** RelayAccessCreds username */ + username?: (string|null); - /** PAMRotateRequest recordUid */ - recordUid?: (Uint8Array|null); + /** RelayAccessCreds password */ + password?: (string|null); + + /** RelayAccessCreds serverTime */ + serverTime?: (number|Long|null); } - /** Represents a PAMRotateRequest. */ - class PAMRotateRequest implements IPAMRotateRequest { + /** Represents a RelayAccessCreds. */ + class RelayAccessCreds implements IRelayAccessCreds { /** - * Constructs a new PAMRotateRequest. + * Constructs a new RelayAccessCreds. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMRotateRequest); + constructor(properties?: PAM.IRelayAccessCreds); - /** PAMRotateRequest requestUid. */ - public requestUid: Uint8Array; + /** RelayAccessCreds username. */ + public username: string; - /** PAMRotateRequest recordUid. */ - public recordUid: Uint8Array; + /** RelayAccessCreds password. */ + public password: string; + + /** RelayAccessCreds serverTime. */ + public serverTime: (number|Long); /** - * Creates a new PAMRotateRequest instance using the specified properties. + * Creates a new RelayAccessCreds instance using the specified properties. * @param [properties] Properties to set - * @returns PAMRotateRequest instance + * @returns RelayAccessCreds instance */ - public static create(properties?: PAM.IPAMRotateRequest): PAM.PAMRotateRequest; + public static create(properties?: PAM.IRelayAccessCreds): PAM.RelayAccessCreds; /** - * Encodes the specified PAMRotateRequest message. Does not implicitly {@link PAM.PAMRotateRequest.verify|verify} messages. - * @param message PAMRotateRequest message or plain object to encode + * Encodes the specified RelayAccessCreds message. 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 encode(message: PAM.IPAMRotateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IRelayAccessCreds, 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 + * 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.IPAMRotateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IRelayAccessCreds, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMRotateRequest message from the specified reader or buffer. + * Decodes a RelayAccessCreds message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMRotateRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRotateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.RelayAccessCreds; /** - * Decodes a PAMRotateRequest message from the specified reader or buffer, length delimited. + * Decodes a RelayAccessCreds message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMRotateRequest + * @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.PAMRotateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.RelayAccessCreds; /** - * Verifies a PAMRotateRequest message. + * 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 PAMRotateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RelayAccessCreds message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMRotateRequest + * @returns RelayAccessCreds */ - public static fromObject(object: { [k: string]: any }): PAM.PAMRotateRequest; + public static fromObject(object: { [k: string]: any }): PAM.RelayAccessCreds; /** - * Creates a plain object from a PAMRotateRequest message. Also converts values to other types if specified. - * @param message PAMRotateRequest + * Creates a plain object from a RelayAccessCreds message. Also converts values to other types if specified. + * @param message RelayAccessCreds * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMRotateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.RelayAccessCreds, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMRotateRequest to JSON. + * Converts this RelayAccessCreds to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMRotateRequest + * Gets the default type url for RelayAccessCreds * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMControllersResponse. */ - interface IPAMControllersResponse { + /** PAMRecordingType enum. */ + enum PAMRecordingType { + PRT_SESSION = 0, + PRT_TYPESCRIPT = 1, + PRT_TIME = 2, + PRT_SUMMARY = 3 + } + + /** PAMRecordingRiskLevel enum. */ + enum PAMRecordingRiskLevel { + PRR_UNSPECIFIED = 0, + PRR_LOW = 1, + PRR_MEDIUM = 2, + PRR_HIGH = 3, + PRR_CRITICAL = 4 + } + + /** Properties of a PAMRecordingsRequest. */ + interface IPAMRecordingsRequest { + + /** PAMRecordingsRequest recordUid */ + recordUid?: (Uint8Array|null); + + /** PAMRecordingsRequest maxCount */ + maxCount?: (number|null); + + /** PAMRecordingsRequest rangeStart */ + rangeStart?: (number|Long|null); + + /** PAMRecordingsRequest rangeEnd */ + rangeEnd?: (number|Long|null); + + /** PAMRecordingsRequest types */ + types?: (PAM.PAMRecordingType[]|null); + + /** PAMRecordingsRequest risks */ + risks?: (PAM.PAMRecordingRiskLevel[]|null); + + /** PAMRecordingsRequest protocols */ + protocols?: (string[]|null); + + /** PAMRecordingsRequest closeReasons */ + closeReasons?: (number[]|null); + } + + /** Represents a PAMRecordingsRequest. */ + class PAMRecordingsRequest implements IPAMRecordingsRequest { + + /** + * Constructs a new PAMRecordingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.IPAMRecordingsRequest); + + /** PAMRecordingsRequest recordUid. */ + public recordUid: Uint8Array; + + /** PAMRecordingsRequest maxCount. */ + public maxCount: number; + + /** PAMRecordingsRequest rangeStart. */ + public rangeStart?: (number|Long|null); + + /** PAMRecordingsRequest rangeEnd. */ + public rangeEnd?: (number|Long|null); + + /** PAMRecordingsRequest types. */ + public types: PAM.PAMRecordingType[]; - /** PAMControllersResponse controllers */ - controllers?: (PAM.IPAMController[]|null); - } + /** PAMRecordingsRequest risks. */ + public risks: PAM.PAMRecordingRiskLevel[]; - /** Represents a PAMControllersResponse. */ - class PAMControllersResponse implements IPAMControllersResponse { + /** PAMRecordingsRequest protocols. */ + public protocols: string[]; - /** - * Constructs a new PAMControllersResponse. - * @param [properties] Properties to set - */ - constructor(properties?: PAM.IPAMControllersResponse); + /** PAMRecordingsRequest closeReasons. */ + public closeReasons: number[]; - /** PAMControllersResponse controllers. */ - public controllers: PAM.IPAMController[]; + /** PAMRecordingsRequest _rangeStart. */ + public _rangeStart?: "rangeStart"; + + /** PAMRecordingsRequest _rangeEnd. */ + public _rangeEnd?: "rangeEnd"; /** - * Creates a new PAMControllersResponse instance using the specified properties. + * Creates a new PAMRecordingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMControllersResponse instance + * @returns PAMRecordingsRequest instance */ - public static create(properties?: PAM.IPAMControllersResponse): PAM.PAMControllersResponse; + public static create(properties?: PAM.IPAMRecordingsRequest): PAM.PAMRecordingsRequest; /** - * Encodes the specified PAMControllersResponse message. Does not implicitly {@link PAM.PAMControllersResponse.verify|verify} messages. - * @param message PAMControllersResponse message or plain object to encode + * Encodes the specified PAMRecordingsRequest message. 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 encode(message: PAM.IPAMControllersResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMRecordingsRequest, 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 + * 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.IPAMControllersResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMRecordingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMControllersResponse message from the specified reader or buffer. + * Decodes a PAMRecordingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMControllersResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMControllersResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRecordingsRequest; /** - * Decodes a PAMControllersResponse message from the specified reader or buffer, length delimited. + * Decodes a PAMRecordingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMControllersResponse + * @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.PAMControllersResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMRecordingsRequest; /** - * Verifies a PAMControllersResponse message. + * 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 PAMControllersResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRecordingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMControllersResponse + * @returns PAMRecordingsRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMControllersResponse; + public static fromObject(object: { [k: string]: any }): PAM.PAMRecordingsRequest; /** - * Creates a plain object from a PAMControllersResponse message. Also converts values to other types if specified. - * @param message PAMControllersResponse + * Creates a plain object from a PAMRecordingsRequest message. Also converts values to other types if specified. + * @param message PAMRecordingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMControllersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMRecordingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMControllersResponse to JSON. + * Converts this PAMRecordingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMControllersResponse + * Gets the default type url for PAMRecordingsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMRemoveController. */ - interface IPAMRemoveController { + /** Properties of a PAMRecording. */ + interface IPAMRecording { - /** PAMRemoveController controllerUid */ - controllerUid?: (Uint8Array|null); + /** PAMRecording connectionUid */ + connectionUid?: (Uint8Array|null); - /** PAMRemoveController message */ - message?: (string|null); + /** PAMRecording recordingType */ + recordingType?: (PAM.PAMRecordingType|null); + + /** PAMRecording recordUid */ + recordUid?: (Uint8Array|null); + + /** PAMRecording userName */ + userName?: (string|null); + + /** PAMRecording startedOn */ + startedOn?: (number|Long|null); + + /** PAMRecording length */ + length?: (number|null); + + /** PAMRecording fileSize */ + fileSize?: (number|Long|null); + + /** PAMRecording createdOn */ + createdOn?: (number|Long|null); + + /** PAMRecording protocol */ + protocol?: (string|null); + + /** PAMRecording closeReason */ + closeReason?: (number|null); + + /** PAMRecording recordingDuration */ + recordingDuration?: (number|null); + + /** PAMRecording aiOverallRiskLevel */ + aiOverallRiskLevel?: (PAM.PAMRecordingRiskLevel|null); + + /** PAMRecording aiOverallSummary */ + aiOverallSummary?: (Uint8Array|null); } - /** Represents a PAMRemoveController. */ - class PAMRemoveController implements IPAMRemoveController { + /** Represents a PAMRecording. */ + class PAMRecording implements IPAMRecording { /** - * Constructs a new PAMRemoveController. + * Constructs a new PAMRecording. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMRemoveController); + constructor(properties?: PAM.IPAMRecording); - /** PAMRemoveController controllerUid. */ - public controllerUid: Uint8Array; + /** PAMRecording connectionUid. */ + public connectionUid: Uint8Array; - /** PAMRemoveController message. */ - public message: string; + /** PAMRecording recordingType. */ + public recordingType: PAM.PAMRecordingType; + + /** PAMRecording recordUid. */ + public recordUid: Uint8Array; + + /** PAMRecording userName. */ + public userName: string; + + /** PAMRecording startedOn. */ + public startedOn: (number|Long); + + /** PAMRecording length. */ + public length: number; + + /** PAMRecording fileSize. */ + public fileSize: (number|Long); + + /** PAMRecording createdOn. */ + public createdOn: (number|Long); + + /** PAMRecording protocol. */ + public protocol: string; + + /** PAMRecording closeReason. */ + public closeReason: number; + + /** PAMRecording recordingDuration. */ + public recordingDuration: number; + + /** PAMRecording aiOverallRiskLevel. */ + public aiOverallRiskLevel: PAM.PAMRecordingRiskLevel; + + /** PAMRecording aiOverallSummary. */ + public aiOverallSummary: Uint8Array; /** - * Creates a new PAMRemoveController instance using the specified properties. + * Creates a new PAMRecording instance using the specified properties. * @param [properties] Properties to set - * @returns PAMRemoveController instance + * @returns PAMRecording instance */ - public static create(properties?: PAM.IPAMRemoveController): PAM.PAMRemoveController; + public static create(properties?: PAM.IPAMRecording): PAM.PAMRecording; /** - * Encodes the specified PAMRemoveController message. Does not implicitly {@link PAM.PAMRemoveController.verify|verify} messages. - * @param message PAMRemoveController message or plain object to encode + * Encodes the specified PAMRecording message. 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 encode(message: PAM.IPAMRemoveController, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMRecording, 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 + * 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.IPAMRemoveController, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMRecording, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMRemoveController message from the specified reader or buffer. + * Decodes a PAMRecording message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMRemoveController + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRemoveController; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRecording; /** - * Decodes a PAMRemoveController message from the specified reader or buffer, length delimited. + * Decodes a PAMRecording message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMRemoveController + * @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.PAMRemoveController; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMRecording; /** - * Verifies a PAMRemoveController message. + * 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 PAMRemoveController message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRecording message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMRemoveController + * @returns PAMRecording */ - public static fromObject(object: { [k: string]: any }): PAM.PAMRemoveController; + public static fromObject(object: { [k: string]: any }): PAM.PAMRecording; /** - * Creates a plain object from a PAMRemoveController message. Also converts values to other types if specified. - * @param message PAMRemoveController + * Creates a plain object from a PAMRecording message. Also converts values to other types if specified. + * @param message PAMRecording * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMRemoveController, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMRecording, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMRemoveController to JSON. + * Converts this PAMRecording to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMRemoveController + * Gets the default type url for PAMRecording * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMRemoveControllerResponse. */ - interface IPAMRemoveControllerResponse { + /** Properties of a PAMRecordingsResponse. */ + interface IPAMRecordingsResponse { - /** PAMRemoveControllerResponse controllers */ - controllers?: (PAM.IPAMRemoveController[]|null); + /** PAMRecordingsResponse recordings */ + recordings?: (PAM.IPAMRecording[]|null); + + /** PAMRecordingsResponse hasMore */ + hasMore?: (boolean|null); } - /** Represents a PAMRemoveControllerResponse. */ - class PAMRemoveControllerResponse implements IPAMRemoveControllerResponse { + /** Represents a PAMRecordingsResponse. */ + class PAMRecordingsResponse implements IPAMRecordingsResponse { /** - * Constructs a new PAMRemoveControllerResponse. + * Constructs a new PAMRecordingsResponse. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMRemoveControllerResponse); + constructor(properties?: PAM.IPAMRecordingsResponse); - /** PAMRemoveControllerResponse controllers. */ - public controllers: PAM.IPAMRemoveController[]; + /** PAMRecordingsResponse recordings. */ + public recordings: PAM.IPAMRecording[]; + + /** PAMRecordingsResponse hasMore. */ + public hasMore: boolean; /** - * Creates a new PAMRemoveControllerResponse instance using the specified properties. + * Creates a new PAMRecordingsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PAMRemoveControllerResponse instance + * @returns PAMRecordingsResponse instance */ - public static create(properties?: PAM.IPAMRemoveControllerResponse): PAM.PAMRemoveControllerResponse; + public static create(properties?: PAM.IPAMRecordingsResponse): PAM.PAMRecordingsResponse; /** - * Encodes the specified PAMRemoveControllerResponse message. Does not implicitly {@link PAM.PAMRemoveControllerResponse.verify|verify} messages. - * @param message PAMRemoveControllerResponse message or plain object to encode + * Encodes the specified PAMRecordingsResponse message. 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 encode(message: PAM.IPAMRemoveControllerResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMRecordingsResponse, 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 + * 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.IPAMRemoveControllerResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMRecordingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMRemoveControllerResponse message from the specified reader or buffer. + * Decodes a PAMRecordingsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMRemoveControllerResponse + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRemoveControllerResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRecordingsResponse; /** - * Decodes a PAMRemoveControllerResponse message from the specified reader or buffer, length delimited. + * Decodes a PAMRecordingsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMRemoveControllerResponse + * @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.PAMRemoveControllerResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMRecordingsResponse; /** - * Verifies a PAMRemoveControllerResponse message. + * 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 PAMRemoveControllerResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRecordingsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMRemoveControllerResponse + * @returns PAMRecordingsResponse */ - public static fromObject(object: { [k: string]: any }): PAM.PAMRemoveControllerResponse; + public static fromObject(object: { [k: string]: any }): PAM.PAMRecordingsResponse; /** - * Creates a plain object from a PAMRemoveControllerResponse message. Also converts values to other types if specified. - * @param message PAMRemoveControllerResponse + * Creates a plain object from a PAMRecordingsResponse message. Also converts values to other types if specified. + * @param message PAMRecordingsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMRemoveControllerResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMRecordingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMRemoveControllerResponse to JSON. + * Converts this PAMRecordingsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMRemoveControllerResponse + * Gets the default type url for PAMRecordingsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMModifyRequest. */ - interface IPAMModifyRequest { + /** Properties of a PAMData. */ + interface IPAMData { - /** PAMModifyRequest operations */ - operations?: (PAM.IPAMDataOperation[]|null); + /** PAMData vertex */ + vertex?: (Uint8Array|null); + + /** PAMData content */ + content?: (Uint8Array|null); } - /** Represents a PAMModifyRequest. */ - class PAMModifyRequest implements IPAMModifyRequest { + /** Represents a PAMData. */ + class PAMData implements IPAMData { /** - * Constructs a new PAMModifyRequest. + * Constructs a new PAMData. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMModifyRequest); + constructor(properties?: PAM.IPAMData); - /** PAMModifyRequest operations. */ - public operations: PAM.IPAMDataOperation[]; + /** PAMData vertex. */ + public vertex: Uint8Array; + + /** PAMData content. */ + public content: Uint8Array; /** - * Creates a new PAMModifyRequest instance using the specified properties. + * Creates a new PAMData instance using the specified properties. * @param [properties] Properties to set - * @returns PAMModifyRequest instance + * @returns PAMData instance */ - public static create(properties?: PAM.IPAMModifyRequest): PAM.PAMModifyRequest; + public static create(properties?: PAM.IPAMData): PAM.PAMData; /** - * Encodes the specified PAMModifyRequest message. Does not implicitly {@link PAM.PAMModifyRequest.verify|verify} messages. - * @param message PAMModifyRequest message or plain object to encode + * Encodes the specified PAMData message. 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 encode(message: PAM.IPAMModifyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMData, 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 + * 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.IPAMModifyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMModifyRequest message from the specified reader or buffer. + * Decodes a PAMData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMModifyRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMModifyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMData; /** - * Decodes a PAMModifyRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMModifyRequest + * @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.PAMModifyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMData; /** - * Verifies a PAMModifyRequest message. + * 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 PAMModifyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMModifyRequest + * @returns PAMData */ - public static fromObject(object: { [k: string]: any }): PAM.PAMModifyRequest; + public static fromObject(object: { [k: string]: any }): PAM.PAMData; /** - * Creates a plain object from a PAMModifyRequest message. Also converts values to other types if specified. - * @param message PAMModifyRequest + * Creates a plain object from a PAMData message. Also converts values to other types if specified. + * @param message PAMData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMModifyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMModifyRequest to JSON. + * Converts this PAMData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMModifyRequest + * Gets the default type url for PAMData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMDataOperation. */ - interface IPAMDataOperation { - - /** PAMDataOperation operationType */ - operationType?: (PAM.PAMOperationType|null); - - /** PAMDataOperation configuration */ - configuration?: (PAM.IPAMConfigurationData|null); + /** Properties of an UidList. */ + interface IUidList { - /** PAMDataOperation element */ - element?: (PAM.IPAMElementData|null); + /** UidList uids */ + uids?: (Uint8Array[]|null); } - /** Represents a PAMDataOperation. */ - class PAMDataOperation implements IPAMDataOperation { + /** Represents an UidList. */ + class UidList implements IUidList { /** - * Constructs a new PAMDataOperation. + * Constructs a new UidList. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMDataOperation); - - /** PAMDataOperation operationType. */ - public operationType: PAM.PAMOperationType; - - /** PAMDataOperation configuration. */ - public configuration?: (PAM.IPAMConfigurationData|null); + constructor(properties?: PAM.IUidList); - /** PAMDataOperation element. */ - public element?: (PAM.IPAMElementData|null); + /** UidList uids. */ + public uids: Uint8Array[]; /** - * Creates a new PAMDataOperation instance using the specified properties. + * Creates a new UidList instance using the specified properties. * @param [properties] Properties to set - * @returns PAMDataOperation instance + * @returns UidList instance */ - public static create(properties?: PAM.IPAMDataOperation): PAM.PAMDataOperation; + public static create(properties?: PAM.IUidList): PAM.UidList; /** - * Encodes the specified PAMDataOperation message. Does not implicitly {@link PAM.PAMDataOperation.verify|verify} messages. - * @param message PAMDataOperation message or plain object to encode + * Encodes the specified UidList message. 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 encode(message: PAM.IPAMDataOperation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IUidList, 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 + * 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.IPAMDataOperation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IUidList, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMDataOperation message from the specified reader or buffer. + * Decodes an UidList message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMDataOperation + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMDataOperation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.UidList; /** - * Decodes a PAMDataOperation message from the specified reader or buffer, length delimited. + * Decodes an UidList message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMDataOperation + * @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.PAMDataOperation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.UidList; /** - * Verifies a PAMDataOperation message. + * 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 a PAMDataOperation message from a plain object. Also converts values to their respective internal types. + * Creates an UidList message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMDataOperation + * @returns UidList */ - public static fromObject(object: { [k: string]: any }): PAM.PAMDataOperation; + public static fromObject(object: { [k: string]: any }): PAM.UidList; /** - * Creates a plain object from a PAMDataOperation message. Also converts values to other types if specified. - * @param message PAMDataOperation + * Creates a plain object from an UidList message. Also converts values to other types if specified. + * @param message UidList * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMDataOperation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.UidList, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMDataOperation to JSON. + * Converts this UidList to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMDataOperation + * Gets the default type url for UidList * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** PAMOperationType enum. */ - enum PAMOperationType { - ADD = 0, - UPDATE = 1, - REPLACE = 2, - DELETE = 3 + /** Properties of a PAMResourceConfig. */ + interface IPAMResourceConfig { + + /** PAMResourceConfig recordUid */ + recordUid?: (Uint8Array|null); + + /** PAMResourceConfig networkUid */ + networkUid?: (Uint8Array|null); + + /** PAMResourceConfig adminUid */ + adminUid?: (Uint8Array|null); + + /** PAMResourceConfig meta */ + meta?: (Uint8Array|null); + + /** PAMResourceConfig connectionSettings */ + connectionSettings?: (Uint8Array|null); + + /** PAMResourceConfig connectUsers */ + connectUsers?: (PAM.IUidList|null); + + /** PAMResourceConfig domainUid */ + domainUid?: (Uint8Array|null); + + /** PAMResourceConfig jitSettings */ + jitSettings?: (Uint8Array|null); + + /** PAMResourceConfig keeperAiSettings */ + keeperAiSettings?: (Uint8Array|null); } - /** Properties of a PAMConfigurationData. */ - interface IPAMConfigurationData { + /** Represents a PAMResourceConfig. */ + class PAMResourceConfig implements IPAMResourceConfig { - /** PAMConfigurationData configurationUid */ - configurationUid?: (Uint8Array|null); + /** + * Constructs a new PAMResourceConfig. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.IPAMResourceConfig); - /** PAMConfigurationData nodeId */ - nodeId?: (number|Long|null); + /** PAMResourceConfig recordUid. */ + public recordUid: Uint8Array; + + /** PAMResourceConfig networkUid. */ + public networkUid?: (Uint8Array|null); + + /** PAMResourceConfig adminUid. */ + public adminUid?: (Uint8Array|null); + + /** PAMResourceConfig meta. */ + public meta?: (Uint8Array|null); + + /** PAMResourceConfig connectionSettings. */ + public connectionSettings?: (Uint8Array|null); + + /** PAMResourceConfig connectUsers. */ + public connectUsers?: (PAM.IUidList|null); + + /** PAMResourceConfig domainUid. */ + public domainUid?: (Uint8Array|null); + + /** PAMResourceConfig jitSettings. */ + public jitSettings?: (Uint8Array|null); - /** PAMConfigurationData controllerUid */ - controllerUid?: (Uint8Array|null); + /** PAMResourceConfig keeperAiSettings. */ + public keeperAiSettings?: (Uint8Array|null); - /** PAMConfigurationData data */ - data?: (Uint8Array|null); - } + /** PAMResourceConfig _networkUid. */ + public _networkUid?: "networkUid"; - /** Represents a PAMConfigurationData. */ - class PAMConfigurationData implements IPAMConfigurationData { + /** PAMResourceConfig _adminUid. */ + public _adminUid?: "adminUid"; - /** - * Constructs a new PAMConfigurationData. - * @param [properties] Properties to set - */ - constructor(properties?: PAM.IPAMConfigurationData); + /** PAMResourceConfig _meta. */ + public _meta?: "meta"; - /** PAMConfigurationData configurationUid. */ - public configurationUid: Uint8Array; + /** PAMResourceConfig _connectionSettings. */ + public _connectionSettings?: "connectionSettings"; - /** PAMConfigurationData nodeId. */ - public nodeId: (number|Long); + /** PAMResourceConfig _connectUsers. */ + public _connectUsers?: "connectUsers"; - /** PAMConfigurationData controllerUid. */ - public controllerUid: Uint8Array; + /** PAMResourceConfig _domainUid. */ + public _domainUid?: "domainUid"; - /** PAMConfigurationData data. */ - public data: Uint8Array; + /** PAMResourceConfig _jitSettings. */ + public _jitSettings?: "jitSettings"; + + /** PAMResourceConfig _keeperAiSettings. */ + public _keeperAiSettings?: "keeperAiSettings"; /** - * Creates a new PAMConfigurationData instance using the specified properties. + * Creates a new PAMResourceConfig instance using the specified properties. * @param [properties] Properties to set - * @returns PAMConfigurationData instance + * @returns PAMResourceConfig instance */ - public static create(properties?: PAM.IPAMConfigurationData): PAM.PAMConfigurationData; + public static create(properties?: PAM.IPAMResourceConfig): PAM.PAMResourceConfig; /** - * Encodes the specified PAMConfigurationData message. Does not implicitly {@link PAM.PAMConfigurationData.verify|verify} messages. - * @param message PAMConfigurationData message or plain object to encode + * Encodes the specified PAMResourceConfig message. 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 encode(message: PAM.IPAMConfigurationData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMResourceConfig, 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 + * 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.IPAMConfigurationData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMResourceConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMConfigurationData message from the specified reader or buffer. + * Decodes a PAMResourceConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMConfigurationData + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMConfigurationData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMResourceConfig; /** - * Decodes a PAMConfigurationData message from the specified reader or buffer, length delimited. + * Decodes a PAMResourceConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMConfigurationData + * @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.PAMConfigurationData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMResourceConfig; /** - * Verifies a PAMConfigurationData message. + * 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 PAMConfigurationData message from a plain object. Also converts values to their respective internal types. + * Creates a PAMResourceConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMConfigurationData + * @returns PAMResourceConfig */ - public static fromObject(object: { [k: string]: any }): PAM.PAMConfigurationData; + public static fromObject(object: { [k: string]: any }): PAM.PAMResourceConfig; /** - * Creates a plain object from a PAMConfigurationData message. Also converts values to other types if specified. - * @param message PAMConfigurationData + * Creates a plain object from a PAMResourceConfig message. Also converts values to other types if specified. + * @param message PAMResourceConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMConfigurationData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMResourceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMConfigurationData to JSON. + * Converts this PAMResourceConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMConfigurationData + * Gets the default type url for PAMResourceConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMElementData. */ - interface IPAMElementData { - - /** PAMElementData elementUid */ - elementUid?: (Uint8Array|null); - - /** PAMElementData parentUid */ - parentUid?: (Uint8Array|null); + /** Properties of a PAMUniversalSyncFolder. */ + interface IPAMUniversalSyncFolder { - /** PAMElementData data */ - data?: (Uint8Array|null); + /** PAMUniversalSyncFolder uid */ + uid?: (Uint8Array|null); } - /** Represents a PAMElementData. */ - class PAMElementData implements IPAMElementData { + /** Represents a PAMUniversalSyncFolder. */ + class PAMUniversalSyncFolder implements IPAMUniversalSyncFolder { /** - * Constructs a new PAMElementData. + * Constructs a new PAMUniversalSyncFolder. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMElementData); - - /** PAMElementData elementUid. */ - public elementUid: Uint8Array; - - /** PAMElementData parentUid. */ - public parentUid: Uint8Array; + constructor(properties?: PAM.IPAMUniversalSyncFolder); - /** PAMElementData data. */ - public data: Uint8Array; + /** PAMUniversalSyncFolder uid. */ + public uid: Uint8Array; /** - * Creates a new PAMElementData instance using the specified properties. + * Creates a new PAMUniversalSyncFolder instance using the specified properties. * @param [properties] Properties to set - * @returns PAMElementData instance + * @returns PAMUniversalSyncFolder instance */ - public static create(properties?: PAM.IPAMElementData): PAM.PAMElementData; + public static create(properties?: PAM.IPAMUniversalSyncFolder): PAM.PAMUniversalSyncFolder; /** - * Encodes the specified PAMElementData message. Does not implicitly {@link PAM.PAMElementData.verify|verify} messages. - * @param message PAMElementData message or plain object to encode + * Encodes the specified PAMUniversalSyncFolder message. 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 encode(message: PAM.IPAMElementData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMUniversalSyncFolder, 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 + * 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.IPAMElementData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMUniversalSyncFolder, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMElementData message from the specified reader or buffer. + * Decodes a PAMUniversalSyncFolder message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMElementData + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMElementData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMUniversalSyncFolder; /** - * Decodes a PAMElementData message from the specified reader or buffer, length delimited. + * Decodes a PAMUniversalSyncFolder message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMElementData + * @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.PAMElementData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMUniversalSyncFolder; /** - * Verifies a PAMElementData message. + * 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 PAMElementData message from a plain object. Also converts values to their respective internal types. + * Creates a PAMUniversalSyncFolder message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMElementData + * @returns PAMUniversalSyncFolder */ - public static fromObject(object: { [k: string]: any }): PAM.PAMElementData; + public static fromObject(object: { [k: string]: any }): PAM.PAMUniversalSyncFolder; /** - * Creates a plain object from a PAMElementData message. Also converts values to other types if specified. - * @param message PAMElementData + * Creates a plain object from a PAMUniversalSyncFolder message. Also converts values to other types if specified. + * @param message PAMUniversalSyncFolder * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMElementData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMUniversalSyncFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMElementData to JSON. + * Converts this PAMUniversalSyncFolder to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMElementData + * Gets the default type url for PAMUniversalSyncFolder * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** PAMOperationResultType enum. */ - enum PAMOperationResultType { - POT_SUCCESS = 0, - POT_UNKNOWN_ERROR = 1, - POT_ALREADY_EXISTS = 2, - POT_DOES_NOT_EXIST = 3 - } + /** Properties of a PAMUniversalSyncConfig. */ + interface IPAMUniversalSyncConfig { - /** Properties of a PAMElementOperationResult. */ - interface IPAMElementOperationResult { + /** PAMUniversalSyncConfig networkUid */ + networkUid?: (Uint8Array|null); - /** PAMElementOperationResult elementUid */ - elementUid?: (Uint8Array|null); + /** PAMUniversalSyncConfig enabled */ + enabled?: (boolean|null); - /** PAMElementOperationResult result */ - result?: (PAM.PAMOperationResultType|null); + /** PAMUniversalSyncConfig dryRunEnabled */ + dryRunEnabled?: (boolean|null); - /** PAMElementOperationResult message */ - message?: (string|null); + /** PAMUniversalSyncConfig folders */ + folders?: (PAM.IPAMUniversalSyncFolder[]|null); + + /** PAMUniversalSyncConfig syncIdentity */ + syncIdentity?: (Uint8Array|null); + + /** PAMUniversalSyncConfig vaultName */ + vaultName?: (Uint8Array|null); } - /** Represents a PAMElementOperationResult. */ - class PAMElementOperationResult implements IPAMElementOperationResult { + /** Represents a PAMUniversalSyncConfig. */ + class PAMUniversalSyncConfig implements IPAMUniversalSyncConfig { /** - * Constructs a new PAMElementOperationResult. + * Constructs a new PAMUniversalSyncConfig. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMElementOperationResult); + constructor(properties?: PAM.IPAMUniversalSyncConfig); - /** PAMElementOperationResult elementUid. */ - public elementUid: Uint8Array; + /** PAMUniversalSyncConfig networkUid. */ + public networkUid: Uint8Array; - /** PAMElementOperationResult result. */ - public result: PAM.PAMOperationResultType; + /** PAMUniversalSyncConfig enabled. */ + public enabled?: (boolean|null); - /** PAMElementOperationResult message. */ - public message: string; + /** PAMUniversalSyncConfig dryRunEnabled. */ + public dryRunEnabled?: (boolean|null); + + /** PAMUniversalSyncConfig folders. */ + public folders: PAM.IPAMUniversalSyncFolder[]; + + /** PAMUniversalSyncConfig syncIdentity. */ + public syncIdentity?: (Uint8Array|null); + + /** PAMUniversalSyncConfig vaultName. */ + public vaultName?: (Uint8Array|null); + + /** PAMUniversalSyncConfig _enabled. */ + public _enabled?: "enabled"; + + /** PAMUniversalSyncConfig _dryRunEnabled. */ + public _dryRunEnabled?: "dryRunEnabled"; + + /** PAMUniversalSyncConfig _syncIdentity. */ + public _syncIdentity?: "syncIdentity"; + + /** PAMUniversalSyncConfig _vaultName. */ + public _vaultName?: "vaultName"; /** - * Creates a new PAMElementOperationResult instance using the specified properties. + * Creates a new PAMUniversalSyncConfig instance using the specified properties. * @param [properties] Properties to set - * @returns PAMElementOperationResult instance + * @returns PAMUniversalSyncConfig instance */ - public static create(properties?: PAM.IPAMElementOperationResult): PAM.PAMElementOperationResult; + public static create(properties?: PAM.IPAMUniversalSyncConfig): PAM.PAMUniversalSyncConfig; /** - * Encodes the specified PAMElementOperationResult message. Does not implicitly {@link PAM.PAMElementOperationResult.verify|verify} messages. - * @param message PAMElementOperationResult message or plain object to encode + * Encodes the specified PAMUniversalSyncConfig message. 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 encode(message: PAM.IPAMElementOperationResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMUniversalSyncConfig, 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 + * 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.IPAMElementOperationResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: PAM.IPAMUniversalSyncConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMElementOperationResult message from the specified reader or buffer. + * Decodes a PAMUniversalSyncConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMElementOperationResult + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMElementOperationResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMUniversalSyncConfig; /** - * Decodes a PAMElementOperationResult message from the specified reader or buffer, length delimited. + * Decodes a PAMUniversalSyncConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMElementOperationResult + * @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.PAMElementOperationResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.PAMUniversalSyncConfig; /** - * Verifies a PAMElementOperationResult message. + * 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 PAMElementOperationResult message from a plain object. Also converts values to their respective internal types. + * Creates a PAMUniversalSyncConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMElementOperationResult + * @returns PAMUniversalSyncConfig */ - public static fromObject(object: { [k: string]: any }): PAM.PAMElementOperationResult; + public static fromObject(object: { [k: string]: any }): PAM.PAMUniversalSyncConfig; /** - * Creates a plain object from a PAMElementOperationResult message. Also converts values to other types if specified. - * @param message PAMElementOperationResult + * Creates a plain object from a PAMUniversalSyncConfig message. Also converts values to other types if specified. + * @param message PAMUniversalSyncConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMElementOperationResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMUniversalSyncConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMElementOperationResult to JSON. + * Converts this PAMUniversalSyncConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMElementOperationResult + * Gets the default type url for PAMUniversalSyncConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMModifyResult. */ - interface IPAMModifyResult { + /** Properties of a CnappWebhookRequest. */ + interface ICnappWebhookRequest { - /** PAMModifyResult results */ - results?: (PAM.IPAMElementOperationResult[]|null); + /** CnappWebhookRequest networkUid */ + networkUid?: (Uint8Array|null); + + /** CnappWebhookRequest provider */ + provider?: (string|null); + + /** CnappWebhookRequest clientId */ + clientId?: (string|null); + + /** CnappWebhookRequest clientSecret */ + clientSecret?: (string|null); + + /** CnappWebhookRequest apiEndpointUrl */ + apiEndpointUrl?: (string|null); + + /** CnappWebhookRequest authUrl */ + authUrl?: (string|null); + + /** CnappWebhookRequest encryptionRecordKeyId */ + encryptionRecordKeyId?: (Uint8Array|null); + + /** CnappWebhookRequest controllerUid */ + controllerUid?: (Uint8Array|null); + + /** CnappWebhookRequest webhookId */ + webhookId?: (string|null); } - /** Represents a PAMModifyResult. */ - class PAMModifyResult implements IPAMModifyResult { + /** Represents a CnappWebhookRequest. */ + class CnappWebhookRequest implements ICnappWebhookRequest { /** - * Constructs a new PAMModifyResult. + * Constructs a new CnappWebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMModifyResult); + constructor(properties?: PAM.ICnappWebhookRequest); - /** PAMModifyResult results. */ - public results: PAM.IPAMElementOperationResult[]; + /** CnappWebhookRequest networkUid. */ + public networkUid: Uint8Array; + + /** CnappWebhookRequest provider. */ + public provider: string; + + /** CnappWebhookRequest clientId. */ + public clientId: string; + + /** CnappWebhookRequest clientSecret. */ + public clientSecret: string; + + /** CnappWebhookRequest apiEndpointUrl. */ + public apiEndpointUrl: string; + + /** CnappWebhookRequest authUrl. */ + public authUrl: string; + + /** CnappWebhookRequest encryptionRecordKeyId. */ + public encryptionRecordKeyId: Uint8Array; + + /** CnappWebhookRequest controllerUid. */ + public controllerUid: Uint8Array; + + /** CnappWebhookRequest webhookId. */ + public webhookId: string; /** - * Creates a new PAMModifyResult instance using the specified properties. + * Creates a new CnappWebhookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMModifyResult instance + * @returns CnappWebhookRequest instance */ - public static create(properties?: PAM.IPAMModifyResult): PAM.PAMModifyResult; + public static create(properties?: PAM.ICnappWebhookRequest): PAM.CnappWebhookRequest; /** - * Encodes the specified PAMModifyResult message. Does not implicitly {@link PAM.PAMModifyResult.verify|verify} messages. - * @param message PAMModifyResult message or plain object to encode + * Encodes the specified CnappWebhookRequest message. Does not implicitly {@link PAM.CnappWebhookRequest.verify|verify} messages. + * @param message CnappWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMModifyResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.ICnappWebhookRequest, 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 + * Encodes the specified CnappWebhookRequest message, length delimited. Does not implicitly {@link PAM.CnappWebhookRequest.verify|verify} messages. + * @param message CnappWebhookRequest 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; + public static encodeDelimited(message: PAM.ICnappWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMModifyResult message from the specified reader or buffer. + * Decodes a CnappWebhookRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMModifyResult + * @returns CnappWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMModifyResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappWebhookRequest; /** - * Decodes a PAMModifyResult message from the specified reader or buffer, length delimited. + * Decodes a CnappWebhookRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMModifyResult + * @returns CnappWebhookRequest * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.CnappWebhookRequest; /** - * Verifies a PAMModifyResult message. + * Verifies a CnappWebhookRequest message. * @param message Plain object 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. + * Creates a CnappWebhookRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMModifyResult + * @returns CnappWebhookRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMModifyResult; + public static fromObject(object: { [k: string]: any }): PAM.CnappWebhookRequest; /** - * Creates a plain object from a PAMModifyResult message. Also converts values to other types if specified. - * @param message PAMModifyResult + * Creates a plain object from a CnappWebhookRequest message. Also converts values to other types if specified. + * @param message CnappWebhookRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMModifyResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.CnappWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMModifyResult to JSON. + * Converts this CnappWebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMModifyResult + * Gets the default type url for CnappWebhookRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMElement. */ - interface IPAMElement { - - /** PAMElement elementUid */ - elementUid?: (Uint8Array|null); - - /** PAMElement data */ - data?: (Uint8Array|null); + /** Properties of a CnappWebhookResponse. */ + interface ICnappWebhookResponse { - /** PAMElement created */ - created?: (number|Long|null); + /** CnappWebhookResponse webhookId */ + webhookId?: (string|null); - /** PAMElement lastModified */ - lastModified?: (number|Long|null); + /** CnappWebhookResponse webhookUrl */ + webhookUrl?: (string|null); - /** PAMElement children */ - children?: (PAM.IPAMElement[]|null); + /** CnappWebhookResponse webhookToken */ + webhookToken?: (string|null); } - /** Represents a PAMElement. */ - class PAMElement implements IPAMElement { + /** Represents a CnappWebhookResponse. */ + class CnappWebhookResponse implements ICnappWebhookResponse { /** - * Constructs a new PAMElement. + * Constructs a new CnappWebhookResponse. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMElement); - - /** PAMElement elementUid. */ - public elementUid: Uint8Array; + constructor(properties?: PAM.ICnappWebhookResponse); - /** PAMElement data. */ - public data: Uint8Array; - - /** PAMElement created. */ - public created: (number|Long); + /** CnappWebhookResponse webhookId. */ + public webhookId: string; - /** PAMElement lastModified. */ - public lastModified: (number|Long); + /** CnappWebhookResponse webhookUrl. */ + public webhookUrl: string; - /** PAMElement children. */ - public children: PAM.IPAMElement[]; + /** CnappWebhookResponse webhookToken. */ + public webhookToken: string; /** - * Creates a new PAMElement instance using the specified properties. + * Creates a new CnappWebhookResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PAMElement instance + * @returns CnappWebhookResponse instance */ - public static create(properties?: PAM.IPAMElement): PAM.PAMElement; + public static create(properties?: PAM.ICnappWebhookResponse): PAM.CnappWebhookResponse; /** - * Encodes the specified PAMElement message. Does not implicitly {@link PAM.PAMElement.verify|verify} messages. - * @param message PAMElement message or plain object to encode + * Encodes the specified CnappWebhookResponse message. Does not implicitly {@link PAM.CnappWebhookResponse.verify|verify} messages. + * @param message CnappWebhookResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMElement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.ICnappWebhookResponse, 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 + * Encodes the specified CnappWebhookResponse message, length delimited. Does not implicitly {@link PAM.CnappWebhookResponse.verify|verify} messages. + * @param message CnappWebhookResponse 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; + public static encodeDelimited(message: PAM.ICnappWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMElement message from the specified reader or buffer. + * Decodes a CnappWebhookResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMElement + * @returns CnappWebhookResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMElement; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappWebhookResponse; /** - * Decodes a PAMElement message from the specified reader or buffer, length delimited. + * Decodes a CnappWebhookResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMElement + * @returns CnappWebhookResponse * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.CnappWebhookResponse; /** - * Verifies a PAMElement message. + * Verifies a CnappWebhookResponse message. * @param message Plain object 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. + * Creates a CnappWebhookResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMElement + * @returns CnappWebhookResponse */ - public static fromObject(object: { [k: string]: any }): PAM.PAMElement; + public static fromObject(object: { [k: string]: any }): PAM.CnappWebhookResponse; /** - * Creates a plain object from a PAMElement message. Also converts values to other types if specified. - * @param message PAMElement + * Creates a plain object from a CnappWebhookResponse message. Also converts values to other types if specified. + * @param message CnappWebhookResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMElement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.CnappWebhookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMElement to JSON. + * Converts this CnappWebhookResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMElement + * Gets the default type url for CnappWebhookResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMGenericUidRequest. */ - interface IPAMGenericUidRequest { + /** Properties of a CnappDeleteWebhookRequest. */ + interface ICnappDeleteWebhookRequest { - /** PAMGenericUidRequest uid */ - uid?: (Uint8Array|null); + /** CnappDeleteWebhookRequest networkUid */ + networkUid?: (Uint8Array|null); } - /** Represents a PAMGenericUidRequest. */ - class PAMGenericUidRequest implements IPAMGenericUidRequest { + /** Represents a CnappDeleteWebhookRequest. */ + class CnappDeleteWebhookRequest implements ICnappDeleteWebhookRequest { /** - * Constructs a new PAMGenericUidRequest. + * Constructs a new CnappDeleteWebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMGenericUidRequest); + constructor(properties?: PAM.ICnappDeleteWebhookRequest); - /** PAMGenericUidRequest uid. */ - public uid: Uint8Array; + /** CnappDeleteWebhookRequest networkUid. */ + public networkUid: Uint8Array; /** - * Creates a new PAMGenericUidRequest instance using the specified properties. + * Creates a new CnappDeleteWebhookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMGenericUidRequest instance + * @returns CnappDeleteWebhookRequest instance */ - public static create(properties?: PAM.IPAMGenericUidRequest): PAM.PAMGenericUidRequest; + public static create(properties?: PAM.ICnappDeleteWebhookRequest): PAM.CnappDeleteWebhookRequest; /** - * Encodes the specified PAMGenericUidRequest message. Does not implicitly {@link PAM.PAMGenericUidRequest.verify|verify} messages. - * @param message PAMGenericUidRequest message or plain object to encode + * Encodes the specified CnappDeleteWebhookRequest message. Does not implicitly {@link PAM.CnappDeleteWebhookRequest.verify|verify} messages. + * @param message CnappDeleteWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMGenericUidRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.ICnappDeleteWebhookRequest, 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 + * Encodes the specified CnappDeleteWebhookRequest message, length delimited. Does not implicitly {@link PAM.CnappDeleteWebhookRequest.verify|verify} messages. + * @param message CnappDeleteWebhookRequest 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; + public static encodeDelimited(message: PAM.ICnappDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMGenericUidRequest message from the specified reader or buffer. + * Decodes a CnappDeleteWebhookRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMGenericUidRequest + * @returns CnappDeleteWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMGenericUidRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappDeleteWebhookRequest; /** - * Decodes a PAMGenericUidRequest message from the specified reader or buffer, length delimited. + * Decodes a CnappDeleteWebhookRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMGenericUidRequest + * @returns CnappDeleteWebhookRequest * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.CnappDeleteWebhookRequest; /** - * Verifies a PAMGenericUidRequest message. + * Verifies a CnappDeleteWebhookRequest message. * @param message Plain object 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. + * Creates a CnappDeleteWebhookRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMGenericUidRequest + * @returns CnappDeleteWebhookRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMGenericUidRequest; + public static fromObject(object: { [k: string]: any }): PAM.CnappDeleteWebhookRequest; /** - * Creates a plain object from a PAMGenericUidRequest message. Also converts values to other types if specified. - * @param message PAMGenericUidRequest + * Creates a plain object from a CnappDeleteWebhookRequest message. Also converts values to other types if specified. + * @param message CnappDeleteWebhookRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMGenericUidRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.CnappDeleteWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMGenericUidRequest to JSON. + * Converts this CnappDeleteWebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMGenericUidRequest + * Gets the default type url for CnappDeleteWebhookRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMGenericUidsRequest. */ - interface IPAMGenericUidsRequest { + /** Properties of a CnappTestCredentialsRequest. */ + interface ICnappTestCredentialsRequest { - /** PAMGenericUidsRequest uids */ - uids?: (Uint8Array[]|null); + /** CnappTestCredentialsRequest provider */ + provider?: (string|null); + + /** CnappTestCredentialsRequest clientId */ + clientId?: (string|null); + + /** CnappTestCredentialsRequest clientSecret */ + clientSecret?: (string|null); + + /** CnappTestCredentialsRequest apiEndpointUrl */ + apiEndpointUrl?: (string|null); + + /** CnappTestCredentialsRequest authUrl */ + authUrl?: (string|null); } - /** Represents a PAMGenericUidsRequest. */ - class PAMGenericUidsRequest implements IPAMGenericUidsRequest { + /** Represents a CnappTestCredentialsRequest. */ + class CnappTestCredentialsRequest implements ICnappTestCredentialsRequest { /** - * Constructs a new PAMGenericUidsRequest. + * Constructs a new CnappTestCredentialsRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMGenericUidsRequest); + constructor(properties?: PAM.ICnappTestCredentialsRequest); - /** PAMGenericUidsRequest uids. */ - public uids: Uint8Array[]; + /** CnappTestCredentialsRequest provider. */ + public provider: string; + + /** CnappTestCredentialsRequest clientId. */ + public clientId: string; + + /** CnappTestCredentialsRequest clientSecret. */ + public clientSecret: string; + + /** CnappTestCredentialsRequest apiEndpointUrl. */ + public apiEndpointUrl: string; + + /** CnappTestCredentialsRequest authUrl. */ + public authUrl: string; /** - * Creates a new PAMGenericUidsRequest instance using the specified properties. + * Creates a new CnappTestCredentialsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMGenericUidsRequest instance + * @returns CnappTestCredentialsRequest instance */ - public static create(properties?: PAM.IPAMGenericUidsRequest): PAM.PAMGenericUidsRequest; + public static create(properties?: PAM.ICnappTestCredentialsRequest): PAM.CnappTestCredentialsRequest; /** - * Encodes the specified PAMGenericUidsRequest message. Does not implicitly {@link PAM.PAMGenericUidsRequest.verify|verify} messages. - * @param message PAMGenericUidsRequest message or plain object to encode + * Encodes the specified CnappTestCredentialsRequest message. Does not implicitly {@link PAM.CnappTestCredentialsRequest.verify|verify} messages. + * @param message CnappTestCredentialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMGenericUidsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.ICnappTestCredentialsRequest, 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 + * Encodes the specified CnappTestCredentialsRequest message, length delimited. Does not implicitly {@link PAM.CnappTestCredentialsRequest.verify|verify} messages. + * @param message CnappTestCredentialsRequest 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; + public static encodeDelimited(message: PAM.ICnappTestCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMGenericUidsRequest message from the specified reader or buffer. + * Decodes a CnappTestCredentialsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMGenericUidsRequest + * @returns CnappTestCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMGenericUidsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappTestCredentialsRequest; /** - * Decodes a PAMGenericUidsRequest message from the specified reader or buffer, length delimited. + * Decodes a CnappTestCredentialsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMGenericUidsRequest + * @returns CnappTestCredentialsRequest * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.CnappTestCredentialsRequest; /** - * Verifies a PAMGenericUidsRequest message. + * Verifies a CnappTestCredentialsRequest message. * @param message Plain object 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. + * Creates a CnappTestCredentialsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMGenericUidsRequest + * @returns CnappTestCredentialsRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMGenericUidsRequest; + public static fromObject(object: { [k: string]: any }): PAM.CnappTestCredentialsRequest; /** - * Creates a plain object from a PAMGenericUidsRequest message. Also converts values to other types if specified. - * @param message PAMGenericUidsRequest + * Creates a plain object from a CnappTestCredentialsRequest message. Also converts values to other types if specified. + * @param message CnappTestCredentialsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMGenericUidsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.CnappTestCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMGenericUidsRequest to JSON. + * Converts this CnappTestCredentialsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMGenericUidsRequest + * Gets the default type url for CnappTestCredentialsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMConfiguration. */ - interface IPAMConfiguration { - - /** PAMConfiguration configurationUid */ - configurationUid?: (Uint8Array|null); - - /** PAMConfiguration nodeId */ - nodeId?: (number|Long|null); - - /** PAMConfiguration controllerUid */ - controllerUid?: (Uint8Array|null); - - /** PAMConfiguration data */ - data?: (Uint8Array|null); - - /** PAMConfiguration created */ - created?: (number|Long|null); - - /** PAMConfiguration lastModified */ - lastModified?: (number|Long|null); - - /** PAMConfiguration children */ - children?: (PAM.IPAMElement[]|null); - } - - /** Represents a PAMConfiguration. */ - class PAMConfiguration implements IPAMConfiguration { - - /** - * Constructs a new PAMConfiguration. - * @param [properties] Properties to set - */ - constructor(properties?: PAM.IPAMConfiguration); + /** Properties of a CnappTestCredentialsResponse. */ + interface ICnappTestCredentialsResponse { - /** PAMConfiguration configurationUid. */ - public configurationUid: Uint8Array; + /** CnappTestCredentialsResponse valid */ + valid?: (boolean|null); - /** PAMConfiguration nodeId. */ - public nodeId: (number|Long); + /** CnappTestCredentialsResponse error */ + error?: (string|null); - /** PAMConfiguration controllerUid. */ - public controllerUid: Uint8Array; + /** CnappTestCredentialsResponse message */ + message?: (string|null); + } - /** PAMConfiguration data. */ - public data: Uint8Array; + /** Represents a CnappTestCredentialsResponse. */ + class CnappTestCredentialsResponse implements ICnappTestCredentialsResponse { - /** PAMConfiguration created. */ - public created: (number|Long); + /** + * Constructs a new CnappTestCredentialsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.ICnappTestCredentialsResponse); - /** PAMConfiguration lastModified. */ - public lastModified: (number|Long); + /** CnappTestCredentialsResponse valid. */ + public valid: boolean; - /** PAMConfiguration children. */ - public children: PAM.IPAMElement[]; + /** CnappTestCredentialsResponse error. */ + public error: string; + + /** CnappTestCredentialsResponse message. */ + public message: string; /** - * Creates a new PAMConfiguration instance using the specified properties. + * Creates a new CnappTestCredentialsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PAMConfiguration instance + * @returns CnappTestCredentialsResponse instance */ - public static create(properties?: PAM.IPAMConfiguration): PAM.PAMConfiguration; + public static create(properties?: PAM.ICnappTestCredentialsResponse): PAM.CnappTestCredentialsResponse; /** - * Encodes the specified PAMConfiguration message. Does not implicitly {@link PAM.PAMConfiguration.verify|verify} messages. - * @param message PAMConfiguration message or plain object to encode + * Encodes the specified CnappTestCredentialsResponse message. Does not implicitly {@link PAM.CnappTestCredentialsResponse.verify|verify} messages. + * @param message CnappTestCredentialsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.ICnappTestCredentialsResponse, 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 + * Encodes the specified CnappTestCredentialsResponse message, length delimited. Does not implicitly {@link PAM.CnappTestCredentialsResponse.verify|verify} messages. + * @param message CnappTestCredentialsResponse 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; + public static encodeDelimited(message: PAM.ICnappTestCredentialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMConfiguration message from the specified reader or buffer. + * Decodes a CnappTestCredentialsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMConfiguration + * @returns CnappTestCredentialsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMConfiguration; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappTestCredentialsResponse; /** - * Decodes a PAMConfiguration message from the specified reader or buffer, length delimited. + * Decodes a CnappTestCredentialsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMConfiguration + * @returns CnappTestCredentialsResponse * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.CnappTestCredentialsResponse; /** - * Verifies a PAMConfiguration message. + * Verifies a CnappTestCredentialsResponse message. * @param message Plain object 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. + * Creates a CnappTestCredentialsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMConfiguration + * @returns CnappTestCredentialsResponse */ - public static fromObject(object: { [k: string]: any }): PAM.PAMConfiguration; + public static fromObject(object: { [k: string]: any }): PAM.CnappTestCredentialsResponse; /** - * Creates a plain object from a PAMConfiguration message. Also converts values to other types if specified. - * @param message PAMConfiguration + * Creates a plain object from a CnappTestCredentialsResponse message. Also converts values to other types if specified. + * @param message CnappTestCredentialsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMConfiguration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.CnappTestCredentialsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMConfiguration to JSON. + * Converts this CnappTestCredentialsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMConfiguration + * Gets the default type url for CnappTestCredentialsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMConfigurations. */ - interface IPAMConfigurations { + /** Properties of a CnappQueueListRequest. */ + interface ICnappQueueListRequest { - /** PAMConfigurations configurations */ - configurations?: (PAM.IPAMConfiguration[]|null); + /** CnappQueueListRequest networkUid */ + networkUid?: (Uint8Array|null); + + /** CnappQueueListRequest statusFilter */ + statusFilter?: (number|null); + + /** CnappQueueListRequest limit */ + limit?: (number|null); + + /** CnappQueueListRequest offset */ + offset?: (number|null); } - /** Represents a PAMConfigurations. */ - class PAMConfigurations implements IPAMConfigurations { + /** Represents a CnappQueueListRequest. */ + class CnappQueueListRequest implements ICnappQueueListRequest { /** - * Constructs a new PAMConfigurations. + * Constructs a new CnappQueueListRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMConfigurations); + constructor(properties?: PAM.ICnappQueueListRequest); - /** PAMConfigurations configurations. */ - public configurations: PAM.IPAMConfiguration[]; + /** CnappQueueListRequest networkUid. */ + public networkUid: Uint8Array; + + /** CnappQueueListRequest statusFilter. */ + public statusFilter: number; + + /** CnappQueueListRequest limit. */ + public limit: number; + + /** CnappQueueListRequest offset. */ + public offset: number; /** - * Creates a new PAMConfigurations instance using the specified properties. + * Creates a new CnappQueueListRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMConfigurations instance + * @returns CnappQueueListRequest instance */ - public static create(properties?: PAM.IPAMConfigurations): PAM.PAMConfigurations; + public static create(properties?: PAM.ICnappQueueListRequest): PAM.CnappQueueListRequest; /** - * Encodes the specified PAMConfigurations message. Does not implicitly {@link PAM.PAMConfigurations.verify|verify} messages. - * @param message PAMConfigurations message or plain object to encode + * Encodes the specified CnappQueueListRequest message. Does not implicitly {@link PAM.CnappQueueListRequest.verify|verify} messages. + * @param message CnappQueueListRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMConfigurations, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.ICnappQueueListRequest, 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 + * Encodes the specified CnappQueueListRequest message, length delimited. Does not implicitly {@link PAM.CnappQueueListRequest.verify|verify} messages. + * @param message CnappQueueListRequest 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; + public static encodeDelimited(message: PAM.ICnappQueueListRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMConfigurations message from the specified reader or buffer. + * Decodes a CnappQueueListRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMConfigurations + * @returns CnappQueueListRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMConfigurations; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappQueueListRequest; /** - * Decodes a PAMConfigurations message from the specified reader or buffer, length delimited. + * Decodes a CnappQueueListRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMConfigurations + * @returns CnappQueueListRequest * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.CnappQueueListRequest; /** - * Verifies a PAMConfigurations message. + * Verifies a CnappQueueListRequest message. * @param message Plain object 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. + * Creates a CnappQueueListRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMConfigurations + * @returns CnappQueueListRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMConfigurations; + public static fromObject(object: { [k: string]: any }): PAM.CnappQueueListRequest; /** - * Creates a plain object from a PAMConfigurations message. Also converts values to other types if specified. - * @param message PAMConfigurations + * Creates a plain object from a CnappQueueListRequest message. Also converts values to other types if specified. + * @param message CnappQueueListRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMConfigurations, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.CnappQueueListRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMConfigurations to JSON. + * Converts this CnappQueueListRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMConfigurations + * Gets the default type url for CnappQueueListRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMController. */ - interface IPAMController { - - /** PAMController controllerUid */ - controllerUid?: (Uint8Array|null); - - /** PAMController controllerName */ - controllerName?: (string|null); + /** Properties of a CnappQueueItem. */ + interface ICnappQueueItem { - /** PAMController deviceToken */ - deviceToken?: (string|null); + /** CnappQueueItem cnappQueueId */ + cnappQueueId?: (string|null); - /** PAMController deviceName */ - deviceName?: (string|null); + /** CnappQueueItem controlKey */ + controlKey?: (string|null); - /** PAMController nodeId */ - nodeId?: (number|Long|null); + /** CnappQueueItem cnappProviderId */ + cnappProviderId?: (number|null); - /** PAMController created */ - created?: (number|Long|null); + /** CnappQueueItem cnappQueueStatusId */ + cnappQueueStatusId?: (number|null); - /** PAMController lastModified */ - lastModified?: (number|Long|null); + /** CnappQueueItem receivedAt */ + receivedAt?: (number|Long|null); - /** PAMController applicationUid */ - applicationUid?: (Uint8Array|null); + /** CnappQueueItem resolvedAt */ + resolvedAt?: (number|Long|null); - /** PAMController appClientType */ - appClientType?: (Enterprise.AppClientType|null); + /** CnappQueueItem recordUid */ + recordUid?: (Uint8Array|null); - /** PAMController isInitialized */ - isInitialized?: (boolean|null); + /** CnappQueueItem payload */ + payload?: (Uint8Array|null); } - /** Represents a PAMController. */ - class PAMController implements IPAMController { + /** Represents a CnappQueueItem. */ + class CnappQueueItem implements ICnappQueueItem { /** - * Constructs a new PAMController. + * Constructs a new CnappQueueItem. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMController); - - /** PAMController controllerUid. */ - public controllerUid: Uint8Array; + constructor(properties?: PAM.ICnappQueueItem); - /** PAMController controllerName. */ - public controllerName: string; - - /** PAMController deviceToken. */ - public deviceToken: string; + /** CnappQueueItem cnappQueueId. */ + public cnappQueueId: string; - /** PAMController deviceName. */ - public deviceName: string; + /** CnappQueueItem controlKey. */ + public controlKey: string; - /** PAMController nodeId. */ - public nodeId: (number|Long); + /** CnappQueueItem cnappProviderId. */ + public cnappProviderId: number; - /** PAMController created. */ - public created: (number|Long); + /** CnappQueueItem cnappQueueStatusId. */ + public cnappQueueStatusId: number; - /** PAMController lastModified. */ - public lastModified: (number|Long); + /** CnappQueueItem receivedAt. */ + public receivedAt: (number|Long); - /** PAMController applicationUid. */ - public applicationUid: Uint8Array; + /** CnappQueueItem resolvedAt. */ + public resolvedAt: (number|Long); - /** PAMController appClientType. */ - public appClientType: Enterprise.AppClientType; + /** CnappQueueItem recordUid. */ + public recordUid: Uint8Array; - /** PAMController isInitialized. */ - public isInitialized: boolean; + /** CnappQueueItem payload. */ + public payload: Uint8Array; /** - * Creates a new PAMController instance using the specified properties. + * Creates a new CnappQueueItem instance using the specified properties. * @param [properties] Properties to set - * @returns PAMController instance + * @returns CnappQueueItem instance */ - public static create(properties?: PAM.IPAMController): PAM.PAMController; + public static create(properties?: PAM.ICnappQueueItem): PAM.CnappQueueItem; /** - * Encodes the specified PAMController message. Does not implicitly {@link PAM.PAMController.verify|verify} messages. - * @param message PAMController message or plain object to encode + * Encodes the specified CnappQueueItem message. Does not implicitly {@link PAM.CnappQueueItem.verify|verify} messages. + * @param message CnappQueueItem message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMController, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.ICnappQueueItem, 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 + * Encodes the specified CnappQueueItem message, length delimited. Does not implicitly {@link PAM.CnappQueueItem.verify|verify} messages. + * @param message CnappQueueItem 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; + public static encodeDelimited(message: PAM.ICnappQueueItem, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMController message from the specified reader or buffer. + * Decodes a CnappQueueItem message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMController + * @returns CnappQueueItem * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMController; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappQueueItem; /** - * Decodes a PAMController message from the specified reader or buffer, length delimited. + * Decodes a CnappQueueItem message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMController + * @returns CnappQueueItem * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.CnappQueueItem; /** - * Verifies a PAMController message. + * Verifies a CnappQueueItem message. * @param message Plain object 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. + * Creates a CnappQueueItem message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMController + * @returns CnappQueueItem */ - public static fromObject(object: { [k: string]: any }): PAM.PAMController; + public static fromObject(object: { [k: string]: any }): PAM.CnappQueueItem; /** - * Creates a plain object from a PAMController message. Also converts values to other types if specified. - * @param message PAMController + * Creates a plain object from a CnappQueueItem message. Also converts values to other types if specified. + * @param message CnappQueueItem * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMController, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.CnappQueueItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMController to JSON. + * Converts this CnappQueueItem to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMController + * Gets the default type url for CnappQueueItem * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMSetMaxInstanceCountRequest. */ - interface IPAMSetMaxInstanceCountRequest { + /** Properties of a CnappQueueListResponse. */ + interface ICnappQueueListResponse { - /** PAMSetMaxInstanceCountRequest controllerUid */ - controllerUid?: (Uint8Array|null); + /** CnappQueueListResponse items */ + items?: (PAM.ICnappQueueItem[]|null); - /** PAMSetMaxInstanceCountRequest maxInstanceCount */ - maxInstanceCount?: (number|null); + /** CnappQueueListResponse total */ + total?: (number|null); + + /** CnappQueueListResponse encryptionRecordKeyId */ + encryptionRecordKeyId?: (Uint8Array|null); } - /** Represents a PAMSetMaxInstanceCountRequest. */ - class PAMSetMaxInstanceCountRequest implements IPAMSetMaxInstanceCountRequest { + /** Represents a CnappQueueListResponse. */ + class CnappQueueListResponse implements ICnappQueueListResponse { /** - * Constructs a new PAMSetMaxInstanceCountRequest. + * Constructs a new CnappQueueListResponse. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMSetMaxInstanceCountRequest); + constructor(properties?: PAM.ICnappQueueListResponse); - /** PAMSetMaxInstanceCountRequest controllerUid. */ - public controllerUid: Uint8Array; + /** CnappQueueListResponse items. */ + public items: PAM.ICnappQueueItem[]; - /** PAMSetMaxInstanceCountRequest maxInstanceCount. */ - public maxInstanceCount: number; + /** CnappQueueListResponse total. */ + public total: number; + + /** CnappQueueListResponse encryptionRecordKeyId. */ + public encryptionRecordKeyId: Uint8Array; /** - * Creates a new PAMSetMaxInstanceCountRequest instance using the specified properties. + * Creates a new CnappQueueListResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PAMSetMaxInstanceCountRequest instance + * @returns CnappQueueListResponse instance */ - public static create(properties?: PAM.IPAMSetMaxInstanceCountRequest): PAM.PAMSetMaxInstanceCountRequest; + public static create(properties?: PAM.ICnappQueueListResponse): PAM.CnappQueueListResponse; /** - * Encodes the specified PAMSetMaxInstanceCountRequest message. Does not implicitly {@link PAM.PAMSetMaxInstanceCountRequest.verify|verify} messages. - * @param message PAMSetMaxInstanceCountRequest message or plain object to encode + * Encodes the specified CnappQueueListResponse message. Does not implicitly {@link PAM.CnappQueueListResponse.verify|verify} messages. + * @param message CnappQueueListResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMSetMaxInstanceCountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.ICnappQueueListResponse, 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 + * Encodes the specified CnappQueueListResponse message, length delimited. Does not implicitly {@link PAM.CnappQueueListResponse.verify|verify} messages. + * @param message CnappQueueListResponse 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; + public static encodeDelimited(message: PAM.ICnappQueueListResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMSetMaxInstanceCountRequest message from the specified reader or buffer. + * Decodes a CnappQueueListResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMSetMaxInstanceCountRequest + * @returns CnappQueueListResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMSetMaxInstanceCountRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappQueueListResponse; /** - * Decodes a PAMSetMaxInstanceCountRequest message from the specified reader or buffer, length delimited. + * Decodes a CnappQueueListResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMSetMaxInstanceCountRequest + * @returns CnappQueueListResponse * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.CnappQueueListResponse; /** - * Verifies a PAMSetMaxInstanceCountRequest message. + * Verifies a CnappQueueListResponse message. * @param message Plain object 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. + * Creates a CnappQueueListResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMSetMaxInstanceCountRequest + * @returns CnappQueueListResponse */ - public static fromObject(object: { [k: string]: any }): PAM.PAMSetMaxInstanceCountRequest; + public static fromObject(object: { [k: string]: any }): PAM.CnappQueueListResponse; /** - * Creates a plain object from a PAMSetMaxInstanceCountRequest message. Also converts values to other types if specified. - * @param message PAMSetMaxInstanceCountRequest + * Creates a plain object from a CnappQueueListResponse message. Also converts values to other types if specified. + * @param message CnappQueueListResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMSetMaxInstanceCountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.CnappQueueListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMSetMaxInstanceCountRequest to JSON. + * Converts this CnappQueueListResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMSetMaxInstanceCountRequest + * Gets the default type url for CnappQueueListResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** ControllerMessageType enum. */ - enum ControllerMessageType { - CMT_GENERAL = 0, - CMT_ROTATE = 1, - CMT_DISCOVERY = 2, - CMT_CONNECT = 3 - } + /** Properties of a CnappQueueItemResponse. */ + interface ICnappQueueItemResponse { - /** Properties of a ControllerResponse. */ - interface IControllerResponse { + /** CnappQueueItemResponse cnappQueueId */ + cnappQueueId?: (string|null); - /** ControllerResponse payload */ - payload?: (string|null); + /** CnappQueueItemResponse controlKey */ + controlKey?: (string|null); + + /** CnappQueueItemResponse cnappProviderId */ + cnappProviderId?: (number|null); + + /** CnappQueueItemResponse cnappQueueStatusId */ + cnappQueueStatusId?: (number|null); + + /** CnappQueueItemResponse receivedAt */ + receivedAt?: (number|Long|null); + + /** CnappQueueItemResponse resolvedAt */ + resolvedAt?: (number|Long|null); + + /** CnappQueueItemResponse recordUid */ + recordUid?: (Uint8Array|null); + + /** CnappQueueItemResponse payload */ + payload?: (Uint8Array|null); + + /** CnappQueueItemResponse controllerUid */ + controllerUid?: (Uint8Array|null); + + /** CnappQueueItemResponse networkId */ + networkId?: (Uint8Array|null); + + /** CnappQueueItemResponse encryptionRecordKeyId */ + encryptionRecordKeyId?: (Uint8Array|null); } - /** Represents a ControllerResponse. */ - class ControllerResponse implements IControllerResponse { + /** Represents a CnappQueueItemResponse. */ + class CnappQueueItemResponse implements ICnappQueueItemResponse { /** - * Constructs a new ControllerResponse. + * Constructs a new CnappQueueItemResponse. * @param [properties] Properties to set */ - constructor(properties?: PAM.IControllerResponse); + constructor(properties?: PAM.ICnappQueueItemResponse); - /** ControllerResponse payload. */ - public payload: string; + /** CnappQueueItemResponse cnappQueueId. */ + public cnappQueueId: string; + + /** CnappQueueItemResponse controlKey. */ + public controlKey: string; + + /** CnappQueueItemResponse cnappProviderId. */ + public cnappProviderId: number; + + /** CnappQueueItemResponse cnappQueueStatusId. */ + public cnappQueueStatusId: number; + + /** CnappQueueItemResponse receivedAt. */ + public receivedAt: (number|Long); + + /** CnappQueueItemResponse resolvedAt. */ + public resolvedAt: (number|Long); + + /** CnappQueueItemResponse recordUid. */ + public recordUid: Uint8Array; + + /** CnappQueueItemResponse payload. */ + public payload: Uint8Array; + + /** CnappQueueItemResponse controllerUid. */ + public controllerUid: Uint8Array; + + /** CnappQueueItemResponse networkId. */ + public networkId: Uint8Array; + + /** CnappQueueItemResponse encryptionRecordKeyId. */ + public encryptionRecordKeyId: Uint8Array; /** - * Creates a new ControllerResponse instance using the specified properties. + * Creates a new CnappQueueItemResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ControllerResponse instance + * @returns CnappQueueItemResponse instance */ - public static create(properties?: PAM.IControllerResponse): PAM.ControllerResponse; + public static create(properties?: PAM.ICnappQueueItemResponse): PAM.CnappQueueItemResponse; /** - * Encodes the specified ControllerResponse message. Does not implicitly {@link PAM.ControllerResponse.verify|verify} messages. - * @param message ControllerResponse message or plain object to encode + * Encodes the specified CnappQueueItemResponse message. Does not implicitly {@link PAM.CnappQueueItemResponse.verify|verify} messages. + * @param message CnappQueueItemResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IControllerResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.ICnappQueueItemResponse, 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 + * Encodes the specified CnappQueueItemResponse message, length delimited. Does not implicitly {@link PAM.CnappQueueItemResponse.verify|verify} messages. + * @param message CnappQueueItemResponse 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; + public static encodeDelimited(message: PAM.ICnappQueueItemResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ControllerResponse message from the specified reader or buffer. + * Decodes a CnappQueueItemResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ControllerResponse + * @returns CnappQueueItemResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.ControllerResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappQueueItemResponse; /** - * Decodes a ControllerResponse message from the specified reader or buffer, length delimited. + * Decodes a CnappQueueItemResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ControllerResponse + * @returns CnappQueueItemResponse * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.CnappQueueItemResponse; /** - * Verifies a ControllerResponse message. + * Verifies a CnappQueueItemResponse message. * @param message Plain object 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. + * Creates a CnappQueueItemResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ControllerResponse + * @returns CnappQueueItemResponse */ - public static fromObject(object: { [k: string]: any }): PAM.ControllerResponse; + public static fromObject(object: { [k: string]: any }): PAM.CnappQueueItemResponse; /** - * Creates a plain object from a ControllerResponse message. Also converts values to other types if specified. - * @param message ControllerResponse + * Creates a plain object from a CnappQueueItemResponse message. Also converts values to other types if specified. + * @param message CnappQueueItemResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.ControllerResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.CnappQueueItemResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ControllerResponse to JSON. + * Converts this CnappQueueItemResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ControllerResponse + * Gets the default type url for CnappQueueItemResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMConfigurationController. */ - interface IPAMConfigurationController { + /** Properties of a CnappAssociateRequest. */ + interface ICnappAssociateRequest { - /** PAMConfigurationController configurationUid */ - configurationUid?: (Uint8Array|null); + /** CnappAssociateRequest recordUid */ + recordUid?: (Uint8Array|null); - /** PAMConfigurationController controllerUid */ - controllerUid?: (Uint8Array|null); + /** CnappAssociateRequest executeAfterSetup */ + executeAfterSetup?: (boolean|null); } - /** Represents a PAMConfigurationController. */ - class PAMConfigurationController implements IPAMConfigurationController { + /** Represents a CnappAssociateRequest. */ + class CnappAssociateRequest implements ICnappAssociateRequest { /** - * Constructs a new PAMConfigurationController. + * Constructs a new CnappAssociateRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMConfigurationController); + constructor(properties?: PAM.ICnappAssociateRequest); - /** PAMConfigurationController configurationUid. */ - public configurationUid: Uint8Array; + /** CnappAssociateRequest recordUid. */ + public recordUid: Uint8Array; - /** PAMConfigurationController controllerUid. */ - public controllerUid: Uint8Array; + /** CnappAssociateRequest executeAfterSetup. */ + public executeAfterSetup: boolean; /** - * Creates a new PAMConfigurationController instance using the specified properties. + * Creates a new CnappAssociateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMConfigurationController instance + * @returns CnappAssociateRequest instance */ - public static create(properties?: PAM.IPAMConfigurationController): PAM.PAMConfigurationController; + public static create(properties?: PAM.ICnappAssociateRequest): PAM.CnappAssociateRequest; /** - * Encodes the specified PAMConfigurationController message. Does not implicitly {@link PAM.PAMConfigurationController.verify|verify} messages. - * @param message PAMConfigurationController message or plain object to encode + * Encodes the specified CnappAssociateRequest message. Does not implicitly {@link PAM.CnappAssociateRequest.verify|verify} messages. + * @param message CnappAssociateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMConfigurationController, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.ICnappAssociateRequest, 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 + * Encodes the specified CnappAssociateRequest message, length delimited. Does not implicitly {@link PAM.CnappAssociateRequest.verify|verify} messages. + * @param message CnappAssociateRequest 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; + public static encodeDelimited(message: PAM.ICnappAssociateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMConfigurationController message from the specified reader or buffer. + * Decodes a CnappAssociateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMConfigurationController + * @returns CnappAssociateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMConfigurationController; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappAssociateRequest; /** - * Decodes a PAMConfigurationController message from the specified reader or buffer, length delimited. + * Decodes a CnappAssociateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMConfigurationController + * @returns CnappAssociateRequest * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.CnappAssociateRequest; /** - * Verifies a PAMConfigurationController message. + * Verifies a CnappAssociateRequest message. * @param message Plain object 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. + * Creates a CnappAssociateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMConfigurationController + * @returns CnappAssociateRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMConfigurationController; + public static fromObject(object: { [k: string]: any }): PAM.CnappAssociateRequest; /** - * Creates a plain object from a PAMConfigurationController message. Also converts values to other types if specified. - * @param message PAMConfigurationController + * Creates a plain object from a CnappAssociateRequest message. Also converts values to other types if specified. + * @param message CnappAssociateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMConfigurationController, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.CnappAssociateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMConfigurationController to JSON. + * Converts this CnappAssociateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMConfigurationController + * Gets the default type url for CnappAssociateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ConfigurationAddRequest. */ - interface IConfigurationAddRequest { - - /** ConfigurationAddRequest configurationUid */ - configurationUid?: (Uint8Array|null); - - /** ConfigurationAddRequest recordKey */ - recordKey?: (Uint8Array|null); - - /** ConfigurationAddRequest data */ - data?: (Uint8Array|null); + /** Properties of a CnappAssociateResponse. */ + interface ICnappAssociateResponse { - /** ConfigurationAddRequest recordLinks */ - recordLinks?: (Records.IRecordLink[]|null); + /** CnappAssociateResponse status */ + status?: (string|null); - /** ConfigurationAddRequest audit */ - audit?: (Records.IRecordAudit|null); + /** CnappAssociateResponse remediationTriggered */ + remediationTriggered?: (boolean|null); } - /** Represents a ConfigurationAddRequest. */ - class ConfigurationAddRequest implements IConfigurationAddRequest { + /** Represents a CnappAssociateResponse. */ + class CnappAssociateResponse implements ICnappAssociateResponse { /** - * Constructs a new ConfigurationAddRequest. + * Constructs a new CnappAssociateResponse. * @param [properties] Properties to set */ - constructor(properties?: PAM.IConfigurationAddRequest); - - /** ConfigurationAddRequest configurationUid. */ - public configurationUid: Uint8Array; - - /** ConfigurationAddRequest recordKey. */ - public recordKey: Uint8Array; - - /** ConfigurationAddRequest data. */ - public data: Uint8Array; + constructor(properties?: PAM.ICnappAssociateResponse); - /** ConfigurationAddRequest recordLinks. */ - public recordLinks: Records.IRecordLink[]; + /** CnappAssociateResponse status. */ + public status: string; - /** ConfigurationAddRequest audit. */ - public audit?: (Records.IRecordAudit|null); + /** CnappAssociateResponse remediationTriggered. */ + public remediationTriggered: boolean; /** - * Creates a new ConfigurationAddRequest instance using the specified properties. + * Creates a new CnappAssociateResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ConfigurationAddRequest instance + * @returns CnappAssociateResponse instance */ - public static create(properties?: PAM.IConfigurationAddRequest): PAM.ConfigurationAddRequest; + public static create(properties?: PAM.ICnappAssociateResponse): PAM.CnappAssociateResponse; /** - * Encodes the specified ConfigurationAddRequest message. Does not implicitly {@link PAM.ConfigurationAddRequest.verify|verify} messages. - * @param message ConfigurationAddRequest message or plain object to encode + * Encodes the specified CnappAssociateResponse message. Does not implicitly {@link PAM.CnappAssociateResponse.verify|verify} messages. + * @param message CnappAssociateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IConfigurationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.ICnappAssociateResponse, 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 + * Encodes the specified CnappAssociateResponse message, length delimited. Does not implicitly {@link PAM.CnappAssociateResponse.verify|verify} messages. + * @param message CnappAssociateResponse 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; + public static encodeDelimited(message: PAM.ICnappAssociateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConfigurationAddRequest message from the specified reader or buffer. + * Decodes a CnappAssociateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConfigurationAddRequest + * @returns CnappAssociateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.ConfigurationAddRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappAssociateResponse; /** - * Decodes a ConfigurationAddRequest message from the specified reader or buffer, length delimited. + * Decodes a CnappAssociateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConfigurationAddRequest + * @returns CnappAssociateResponse * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.CnappAssociateResponse; /** - * Verifies a ConfigurationAddRequest message. + * Verifies a CnappAssociateResponse message. * @param message Plain object 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. + * Creates a CnappAssociateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConfigurationAddRequest + * @returns CnappAssociateResponse */ - public static fromObject(object: { [k: string]: any }): PAM.ConfigurationAddRequest; + public static fromObject(object: { [k: string]: any }): PAM.CnappAssociateResponse; /** - * Creates a plain object from a ConfigurationAddRequest message. Also converts values to other types if specified. - * @param message ConfigurationAddRequest + * Creates a plain object from a CnappAssociateResponse message. Also converts values to other types if specified. + * @param message CnappAssociateResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.ConfigurationAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.CnappAssociateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConfigurationAddRequest to JSON. + * Converts this CnappAssociateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ConfigurationAddRequest + * Gets the default type url for CnappAssociateResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RelayAccessCreds. */ - interface IRelayAccessCreds { - - /** RelayAccessCreds username */ - username?: (string|null); - - /** RelayAccessCreds password */ - password?: (string|null); + /** Properties of a CnappResolveRequest. */ + interface ICnappResolveRequest { - /** RelayAccessCreds serverTime */ - serverTime?: (number|Long|null); + /** CnappResolveRequest resolutionNotes */ + resolutionNotes?: (string|null); } - /** Represents a RelayAccessCreds. */ - class RelayAccessCreds implements IRelayAccessCreds { + /** Represents a CnappResolveRequest. */ + class CnappResolveRequest implements ICnappResolveRequest { /** - * Constructs a new RelayAccessCreds. + * Constructs a new CnappResolveRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IRelayAccessCreds); - - /** RelayAccessCreds username. */ - public username: string; - - /** RelayAccessCreds password. */ - public password: string; + constructor(properties?: PAM.ICnappResolveRequest); - /** RelayAccessCreds serverTime. */ - public serverTime: (number|Long); + /** CnappResolveRequest resolutionNotes. */ + public resolutionNotes: string; /** - * Creates a new RelayAccessCreds instance using the specified properties. + * Creates a new CnappResolveRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RelayAccessCreds instance + * @returns CnappResolveRequest instance */ - public static create(properties?: PAM.IRelayAccessCreds): PAM.RelayAccessCreds; + public static create(properties?: PAM.ICnappResolveRequest): PAM.CnappResolveRequest; /** - * Encodes the specified RelayAccessCreds message. Does not implicitly {@link PAM.RelayAccessCreds.verify|verify} messages. - * @param message RelayAccessCreds message or plain object to encode + * Encodes the specified CnappResolveRequest message. Does not implicitly {@link PAM.CnappResolveRequest.verify|verify} messages. + * @param message CnappResolveRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IRelayAccessCreds, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.ICnappResolveRequest, 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 + * Encodes the specified CnappResolveRequest message, length delimited. Does not implicitly {@link PAM.CnappResolveRequest.verify|verify} messages. + * @param message CnappResolveRequest 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; + public static encodeDelimited(message: PAM.ICnappResolveRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RelayAccessCreds message from the specified reader or buffer. + * Decodes a CnappResolveRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RelayAccessCreds + * @returns CnappResolveRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.RelayAccessCreds; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappResolveRequest; /** - * Decodes a RelayAccessCreds message from the specified reader or buffer, length delimited. + * Decodes a CnappResolveRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RelayAccessCreds + * @returns CnappResolveRequest * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.CnappResolveRequest; /** - * Verifies a RelayAccessCreds message. + * Verifies a CnappResolveRequest message. * @param message Plain object 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. + * Creates a CnappResolveRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RelayAccessCreds + * @returns CnappResolveRequest */ - public static fromObject(object: { [k: string]: any }): PAM.RelayAccessCreds; + public static fromObject(object: { [k: string]: any }): PAM.CnappResolveRequest; /** - * Creates a plain object from a RelayAccessCreds message. Also converts values to other types if specified. - * @param message RelayAccessCreds + * Creates a plain object from a CnappResolveRequest message. Also converts values to other types if specified. + * @param message CnappResolveRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.RelayAccessCreds, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.CnappResolveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RelayAccessCreds to JSON. + * Converts this CnappResolveRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RelayAccessCreds + * Gets the default type url for CnappResolveRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** PAMRecordingType enum. */ - enum PAMRecordingType { - PRT_SESSION = 0, - PRT_TYPESCRIPT = 1, - PRT_TIME = 2, - PRT_SUMMARY = 3 - } + /** Properties of a CnappRemediateRequest. */ + interface ICnappRemediateRequest { - /** PAMRecordingRiskLevel enum. */ - enum PAMRecordingRiskLevel { - PRR_UNSPECIFIED = 0, - PRR_LOW = 1, - PRR_MEDIUM = 2, - PRR_HIGH = 3, - PRR_CRITICAL = 4 + /** CnappRemediateRequest actionType */ + actionType?: (string|null); } - /** Properties of a PAMRecordingsRequest. */ - interface IPAMRecordingsRequest { + /** Represents a CnappRemediateRequest. */ + class CnappRemediateRequest implements ICnappRemediateRequest { - /** PAMRecordingsRequest recordUid */ - recordUid?: (Uint8Array|null); + /** + * Constructs a new CnappRemediateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.ICnappRemediateRequest); - /** PAMRecordingsRequest maxCount */ - maxCount?: (number|null); + /** CnappRemediateRequest actionType. */ + public actionType: string; - /** PAMRecordingsRequest rangeStart */ - rangeStart?: (number|Long|null); + /** + * Creates a new CnappRemediateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CnappRemediateRequest instance + */ + public static create(properties?: PAM.ICnappRemediateRequest): PAM.CnappRemediateRequest; - /** PAMRecordingsRequest rangeEnd */ - rangeEnd?: (number|Long|null); + /** + * Encodes the specified CnappRemediateRequest message. Does not implicitly {@link PAM.CnappRemediateRequest.verify|verify} messages. + * @param message CnappRemediateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.ICnappRemediateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** PAMRecordingsRequest types */ - types?: (PAM.PAMRecordingType[]|null); + /** + * Encodes the specified CnappRemediateRequest message, length delimited. Does not implicitly {@link PAM.CnappRemediateRequest.verify|verify} messages. + * @param message CnappRemediateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: PAM.ICnappRemediateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** PAMRecordingsRequest risks */ - risks?: (PAM.PAMRecordingRiskLevel[]|null); + /** + * Decodes a CnappRemediateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CnappRemediateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappRemediateRequest; - /** PAMRecordingsRequest protocols */ - protocols?: (string[]|null); + /** + * Decodes a CnappRemediateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CnappRemediateRequest + * @throws {Error} If the 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.CnappRemediateRequest; - /** PAMRecordingsRequest closeReasons */ - closeReasons?: (number[]|null); - } + /** + * Verifies a CnappRemediateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Represents a PAMRecordingsRequest. */ - class PAMRecordingsRequest implements IPAMRecordingsRequest { + /** + * Creates a CnappRemediateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CnappRemediateRequest + */ + public static fromObject(object: { [k: string]: any }): PAM.CnappRemediateRequest; /** - * Constructs a new PAMRecordingsRequest. - * @param [properties] Properties to set + * Creates a plain object from a CnappRemediateRequest message. Also converts values to other types if specified. + * @param message CnappRemediateRequest + * @param [options] Conversion options + * @returns Plain object */ - constructor(properties?: PAM.IPAMRecordingsRequest); + public static toObject(message: PAM.CnappRemediateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** PAMRecordingsRequest recordUid. */ - public recordUid: Uint8Array; + /** + * Converts this CnappRemediateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** PAMRecordingsRequest maxCount. */ - public maxCount: number; + /** + * Gets the default type url for CnappRemediateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** PAMRecordingsRequest rangeStart. */ - public rangeStart?: (number|Long|null); + /** Properties of a CnappRemediateResponse. */ + interface ICnappRemediateResponse { - /** PAMRecordingsRequest rangeEnd. */ - public rangeEnd?: (number|Long|null); + /** CnappRemediateResponse status */ + status?: (string|null); + + /** CnappRemediateResponse actionType */ + actionType?: (string|null); + + /** CnappRemediateResponse result */ + result?: (string|null); + + /** CnappRemediateResponse executionTimeMs */ + executionTimeMs?: (number|Long|null); + } - /** PAMRecordingsRequest types. */ - public types: PAM.PAMRecordingType[]; + /** Represents a CnappRemediateResponse. */ + class CnappRemediateResponse implements ICnappRemediateResponse { - /** PAMRecordingsRequest risks. */ - public risks: PAM.PAMRecordingRiskLevel[]; + /** + * Constructs a new CnappRemediateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.ICnappRemediateResponse); - /** PAMRecordingsRequest protocols. */ - public protocols: string[]; + /** CnappRemediateResponse status. */ + public status: string; - /** PAMRecordingsRequest closeReasons. */ - public closeReasons: number[]; + /** CnappRemediateResponse actionType. */ + public actionType: string; - /** PAMRecordingsRequest _rangeStart. */ - public _rangeStart?: "rangeStart"; + /** CnappRemediateResponse result. */ + public result: string; - /** PAMRecordingsRequest _rangeEnd. */ - public _rangeEnd?: "rangeEnd"; + /** CnappRemediateResponse executionTimeMs. */ + public executionTimeMs: (number|Long); /** - * Creates a new PAMRecordingsRequest instance using the specified properties. + * Creates a new CnappRemediateResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PAMRecordingsRequest instance + * @returns CnappRemediateResponse instance */ - public static create(properties?: PAM.IPAMRecordingsRequest): PAM.PAMRecordingsRequest; + public static create(properties?: PAM.ICnappRemediateResponse): PAM.CnappRemediateResponse; /** - * Encodes the specified PAMRecordingsRequest message. Does not implicitly {@link PAM.PAMRecordingsRequest.verify|verify} messages. - * @param message PAMRecordingsRequest message or plain object to encode + * Encodes the specified CnappRemediateResponse message. Does not implicitly {@link PAM.CnappRemediateResponse.verify|verify} messages. + * @param message CnappRemediateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMRecordingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.ICnappRemediateResponse, 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 + * Encodes the specified CnappRemediateResponse message, length delimited. Does not implicitly {@link PAM.CnappRemediateResponse.verify|verify} messages. + * @param message CnappRemediateResponse 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; + public static encodeDelimited(message: PAM.ICnappRemediateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMRecordingsRequest message from the specified reader or buffer. + * Decodes a CnappRemediateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMRecordingsRequest + * @returns CnappRemediateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRecordingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappRemediateResponse; /** - * Decodes a PAMRecordingsRequest message from the specified reader or buffer, length delimited. + * Decodes a CnappRemediateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMRecordingsRequest + * @returns CnappRemediateResponse * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.CnappRemediateResponse; /** - * Verifies a PAMRecordingsRequest message. + * Verifies a CnappRemediateResponse message. * @param message Plain object 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. + * Creates a CnappRemediateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMRecordingsRequest + * @returns CnappRemediateResponse */ - public static fromObject(object: { [k: string]: any }): PAM.PAMRecordingsRequest; + public static fromObject(object: { [k: string]: any }): PAM.CnappRemediateResponse; /** - * Creates a plain object from a PAMRecordingsRequest message. Also converts values to other types if specified. - * @param message PAMRecordingsRequest + * Creates a plain object from a CnappRemediateResponse message. Also converts values to other types if specified. + * @param message CnappRemediateResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMRecordingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.CnappRemediateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMRecordingsRequest to JSON. + * Converts this CnappRemediateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMRecordingsRequest + * Gets the default type url for CnappRemediateResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMRecording. */ - interface IPAMRecording { - - /** PAMRecording connectionUid */ - connectionUid?: (Uint8Array|null); + /** Properties of a CnappIgnoreRequest. */ + interface ICnappIgnoreRequest { - /** PAMRecording recordingType */ - recordingType?: (PAM.PAMRecordingType|null); + /** CnappIgnoreRequest reason */ + reason?: (string|null); + } - /** PAMRecording recordUid */ - recordUid?: (Uint8Array|null); + /** Represents a CnappIgnoreRequest. */ + class CnappIgnoreRequest implements ICnappIgnoreRequest { - /** PAMRecording userName */ - userName?: (string|null); + /** + * Constructs a new CnappIgnoreRequest. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.ICnappIgnoreRequest); - /** PAMRecording startedOn */ - startedOn?: (number|Long|null); + /** CnappIgnoreRequest reason. */ + public reason: string; - /** PAMRecording length */ - length?: (number|null); + /** + * Creates a new CnappIgnoreRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CnappIgnoreRequest instance + */ + public static create(properties?: PAM.ICnappIgnoreRequest): PAM.CnappIgnoreRequest; - /** PAMRecording fileSize */ - fileSize?: (number|Long|null); + /** + * Encodes the specified CnappIgnoreRequest message. Does not implicitly {@link PAM.CnappIgnoreRequest.verify|verify} messages. + * @param message CnappIgnoreRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.ICnappIgnoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** PAMRecording createdOn */ - createdOn?: (number|Long|null); + /** + * Encodes the specified CnappIgnoreRequest message, length delimited. Does not implicitly {@link PAM.CnappIgnoreRequest.verify|verify} messages. + * @param message CnappIgnoreRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: PAM.ICnappIgnoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** PAMRecording protocol */ - protocol?: (string|null); + /** + * Decodes a CnappIgnoreRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CnappIgnoreRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappIgnoreRequest; - /** PAMRecording closeReason */ - closeReason?: (number|null); + /** + * Decodes a CnappIgnoreRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CnappIgnoreRequest + * @throws {Error} If the 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.CnappIgnoreRequest; - /** PAMRecording recordingDuration */ - recordingDuration?: (number|null); + /** + * Verifies a CnappIgnoreRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** PAMRecording aiOverallRiskLevel */ - aiOverallRiskLevel?: (PAM.PAMRecordingRiskLevel|null); + /** + * Creates a CnappIgnoreRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CnappIgnoreRequest + */ + public static fromObject(object: { [k: string]: any }): PAM.CnappIgnoreRequest; - /** PAMRecording aiOverallSummary */ - aiOverallSummary?: (Uint8Array|null); - } + /** + * Creates a plain object from a CnappIgnoreRequest message. Also converts values to other types if specified. + * @param message CnappIgnoreRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: PAM.CnappIgnoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents a PAMRecording. */ - class PAMRecording implements IPAMRecording { + /** + * Converts this CnappIgnoreRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; /** - * Constructs a new PAMRecording. - * @param [properties] Properties to set + * Gets the default type url for CnappIgnoreRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - constructor(properties?: PAM.IPAMRecording); + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** PAMRecording connectionUid. */ - public connectionUid: Uint8Array; + /** Properties of a CnappDefaultBehaviorRequest. */ + interface ICnappDefaultBehaviorRequest { - /** PAMRecording recordingType. */ - public recordingType: PAM.PAMRecordingType; + /** CnappDefaultBehaviorRequest networkId */ + networkId?: (Uint8Array|null); - /** PAMRecording recordUid. */ - public recordUid: Uint8Array; + /** CnappDefaultBehaviorRequest cnappProviderId */ + cnappProviderId?: (number|null); - /** PAMRecording userName. */ - public userName: string; + /** CnappDefaultBehaviorRequest controlKey */ + controlKey?: (string|null); - /** PAMRecording startedOn. */ - public startedOn: (number|Long); + /** CnappDefaultBehaviorRequest cnappActionTypeId */ + cnappActionTypeId?: (number|null); - /** PAMRecording length. */ - public length: number; + /** CnappDefaultBehaviorRequest autoExecute */ + autoExecute?: (boolean|null); + } - /** PAMRecording fileSize. */ - public fileSize: (number|Long); + /** Represents a CnappDefaultBehaviorRequest. */ + class CnappDefaultBehaviorRequest implements ICnappDefaultBehaviorRequest { - /** PAMRecording createdOn. */ - public createdOn: (number|Long); + /** + * Constructs a new CnappDefaultBehaviorRequest. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.ICnappDefaultBehaviorRequest); - /** PAMRecording protocol. */ - public protocol: string; + /** CnappDefaultBehaviorRequest networkId. */ + public networkId: Uint8Array; - /** PAMRecording closeReason. */ - public closeReason: number; + /** CnappDefaultBehaviorRequest cnappProviderId. */ + public cnappProviderId: number; - /** PAMRecording recordingDuration. */ - public recordingDuration: number; + /** CnappDefaultBehaviorRequest controlKey. */ + public controlKey: string; - /** PAMRecording aiOverallRiskLevel. */ - public aiOverallRiskLevel: PAM.PAMRecordingRiskLevel; + /** CnappDefaultBehaviorRequest cnappActionTypeId. */ + public cnappActionTypeId: number; - /** PAMRecording aiOverallSummary. */ - public aiOverallSummary: Uint8Array; + /** CnappDefaultBehaviorRequest autoExecute. */ + public autoExecute: boolean; /** - * Creates a new PAMRecording instance using the specified properties. + * Creates a new CnappDefaultBehaviorRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMRecording instance + * @returns CnappDefaultBehaviorRequest instance */ - public static create(properties?: PAM.IPAMRecording): PAM.PAMRecording; + public static create(properties?: PAM.ICnappDefaultBehaviorRequest): PAM.CnappDefaultBehaviorRequest; /** - * Encodes the specified PAMRecording message. Does not implicitly {@link PAM.PAMRecording.verify|verify} messages. - * @param message PAMRecording message or plain object to encode + * Encodes the specified CnappDefaultBehaviorRequest message. Does not implicitly {@link PAM.CnappDefaultBehaviorRequest.verify|verify} messages. + * @param message CnappDefaultBehaviorRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMRecording, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.ICnappDefaultBehaviorRequest, 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 + * Encodes the specified CnappDefaultBehaviorRequest message, length delimited. Does not implicitly {@link PAM.CnappDefaultBehaviorRequest.verify|verify} messages. + * @param message CnappDefaultBehaviorRequest 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; + public static encodeDelimited(message: PAM.ICnappDefaultBehaviorRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMRecording message from the specified reader or buffer. + * Decodes a CnappDefaultBehaviorRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMRecording + * @returns CnappDefaultBehaviorRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRecording; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappDefaultBehaviorRequest; /** - * Decodes a PAMRecording message from the specified reader or buffer, length delimited. + * Decodes a CnappDefaultBehaviorRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMRecording + * @returns CnappDefaultBehaviorRequest * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.CnappDefaultBehaviorRequest; /** - * Verifies a PAMRecording message. + * Verifies a CnappDefaultBehaviorRequest message. * @param message Plain object 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. + * Creates a CnappDefaultBehaviorRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMRecording + * @returns CnappDefaultBehaviorRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMRecording; + public static fromObject(object: { [k: string]: any }): PAM.CnappDefaultBehaviorRequest; /** - * Creates a plain object from a PAMRecording message. Also converts values to other types if specified. - * @param message PAMRecording + * Creates a plain object from a CnappDefaultBehaviorRequest message. Also converts values to other types if specified. + * @param message CnappDefaultBehaviorRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMRecording, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.CnappDefaultBehaviorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMRecording to JSON. + * Converts this CnappDefaultBehaviorRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMRecording + * Gets the default type url for CnappDefaultBehaviorRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMRecordingsResponse. */ - interface IPAMRecordingsResponse { - - /** PAMRecordingsResponse recordings */ - recordings?: (PAM.IPAMRecording[]|null); + /** Properties of a CnappDefaultBehaviorResponse. */ + interface ICnappDefaultBehaviorResponse { - /** PAMRecordingsResponse hasMore */ - hasMore?: (boolean|null); + /** CnappDefaultBehaviorResponse cnappDefaultBehaviorId */ + cnappDefaultBehaviorId?: (number|null); } - /** Represents a PAMRecordingsResponse. */ - class PAMRecordingsResponse implements IPAMRecordingsResponse { + /** Represents a CnappDefaultBehaviorResponse. */ + class CnappDefaultBehaviorResponse implements ICnappDefaultBehaviorResponse { /** - * Constructs a new PAMRecordingsResponse. + * Constructs a new CnappDefaultBehaviorResponse. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMRecordingsResponse); - - /** PAMRecordingsResponse recordings. */ - public recordings: PAM.IPAMRecording[]; + constructor(properties?: PAM.ICnappDefaultBehaviorResponse); - /** PAMRecordingsResponse hasMore. */ - public hasMore: boolean; + /** CnappDefaultBehaviorResponse cnappDefaultBehaviorId. */ + public cnappDefaultBehaviorId: number; /** - * Creates a new PAMRecordingsResponse instance using the specified properties. + * Creates a new CnappDefaultBehaviorResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PAMRecordingsResponse instance + * @returns CnappDefaultBehaviorResponse instance */ - public static create(properties?: PAM.IPAMRecordingsResponse): PAM.PAMRecordingsResponse; + public static create(properties?: PAM.ICnappDefaultBehaviorResponse): PAM.CnappDefaultBehaviorResponse; /** - * Encodes the specified PAMRecordingsResponse message. Does not implicitly {@link PAM.PAMRecordingsResponse.verify|verify} messages. - * @param message PAMRecordingsResponse message or plain object to encode + * Encodes the specified CnappDefaultBehaviorResponse message. Does not implicitly {@link PAM.CnappDefaultBehaviorResponse.verify|verify} messages. + * @param message CnappDefaultBehaviorResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMRecordingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.ICnappDefaultBehaviorResponse, 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 + * Encodes the specified CnappDefaultBehaviorResponse message, length delimited. Does not implicitly {@link PAM.CnappDefaultBehaviorResponse.verify|verify} messages. + * @param message CnappDefaultBehaviorResponse 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; + public static encodeDelimited(message: PAM.ICnappDefaultBehaviorResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMRecordingsResponse message from the specified reader or buffer. + * Decodes a CnappDefaultBehaviorResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMRecordingsResponse + * @returns CnappDefaultBehaviorResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRecordingsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappDefaultBehaviorResponse; /** - * Decodes a PAMRecordingsResponse message from the specified reader or buffer, length delimited. + * Decodes a CnappDefaultBehaviorResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMRecordingsResponse + * @returns CnappDefaultBehaviorResponse * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.CnappDefaultBehaviorResponse; /** - * Verifies a PAMRecordingsResponse message. + * Verifies a CnappDefaultBehaviorResponse message. * @param message Plain object 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. + * Creates a CnappDefaultBehaviorResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMRecordingsResponse + * @returns CnappDefaultBehaviorResponse */ - public static fromObject(object: { [k: string]: any }): PAM.PAMRecordingsResponse; + public static fromObject(object: { [k: string]: any }): PAM.CnappDefaultBehaviorResponse; /** - * Creates a plain object from a PAMRecordingsResponse message. Also converts values to other types if specified. - * @param message PAMRecordingsResponse + * Creates a plain object from a CnappDefaultBehaviorResponse message. Also converts values to other types if specified. + * @param message CnappDefaultBehaviorResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMRecordingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.CnappDefaultBehaviorResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMRecordingsResponse to JSON. + * Converts this CnappDefaultBehaviorResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMRecordingsResponse + * Gets the default type url for CnappDefaultBehaviorResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMData. */ - interface IPAMData { - - /** PAMData vertex */ - vertex?: (Uint8Array|null); + /** Properties of a CnappBehaviorListRequest. */ + interface ICnappBehaviorListRequest { - /** PAMData content */ - content?: (Uint8Array|null); + /** CnappBehaviorListRequest networkUid */ + networkUid?: (Uint8Array|null); } - /** Represents a PAMData. */ - class PAMData implements IPAMData { + /** Represents a CnappBehaviorListRequest. */ + class CnappBehaviorListRequest implements ICnappBehaviorListRequest { /** - * Constructs a new PAMData. + * Constructs a new CnappBehaviorListRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMData); - - /** PAMData vertex. */ - public vertex: Uint8Array; + constructor(properties?: PAM.ICnappBehaviorListRequest); - /** PAMData content. */ - public content: Uint8Array; + /** CnappBehaviorListRequest networkUid. */ + public networkUid: Uint8Array; /** - * Creates a new PAMData instance using the specified properties. + * Creates a new CnappBehaviorListRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMData instance + * @returns CnappBehaviorListRequest instance */ - public static create(properties?: PAM.IPAMData): PAM.PAMData; + public static create(properties?: PAM.ICnappBehaviorListRequest): PAM.CnappBehaviorListRequest; /** - * Encodes the specified PAMData message. Does not implicitly {@link PAM.PAMData.verify|verify} messages. - * @param message PAMData message or plain object to encode + * Encodes the specified CnappBehaviorListRequest message. Does not implicitly {@link PAM.CnappBehaviorListRequest.verify|verify} messages. + * @param message CnappBehaviorListRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.ICnappBehaviorListRequest, 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 + * Encodes the specified CnappBehaviorListRequest message, length delimited. Does not implicitly {@link PAM.CnappBehaviorListRequest.verify|verify} messages. + * @param message CnappBehaviorListRequest 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; + public static encodeDelimited(message: PAM.ICnappBehaviorListRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMData message from the specified reader or buffer. + * Decodes a CnappBehaviorListRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMData + * @returns CnappBehaviorListRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappBehaviorListRequest; /** - * Decodes a PAMData message from the specified reader or buffer, length delimited. + * Decodes a CnappBehaviorListRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMData + * @returns CnappBehaviorListRequest * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.CnappBehaviorListRequest; /** - * Verifies a PAMData message. + * Verifies a CnappBehaviorListRequest message. * @param message Plain object 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. + * Creates a CnappBehaviorListRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMData + * @returns CnappBehaviorListRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMData; + public static fromObject(object: { [k: string]: any }): PAM.CnappBehaviorListRequest; /** - * Creates a plain object from a PAMData message. Also converts values to other types if specified. - * @param message PAMData + * Creates a plain object from a CnappBehaviorListRequest message. Also converts values to other types if specified. + * @param message CnappBehaviorListRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.CnappBehaviorListRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMData to JSON. + * Converts this CnappBehaviorListRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMData + * Gets the default type url for CnappBehaviorListRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UidList. */ - interface IUidList { + /** Properties of a CnappBehaviorListResponse. */ + interface ICnappBehaviorListResponse { - /** UidList uids */ - uids?: (Uint8Array[]|null); + /** CnappBehaviorListResponse items */ + items?: (PAM.ICnappDefaultBehaviorItem[]|null); } - /** Represents an UidList. */ - class UidList implements IUidList { + /** Represents a CnappBehaviorListResponse. */ + class CnappBehaviorListResponse implements ICnappBehaviorListResponse { /** - * Constructs a new UidList. + * Constructs a new CnappBehaviorListResponse. * @param [properties] Properties to set */ - constructor(properties?: PAM.IUidList); + constructor(properties?: PAM.ICnappBehaviorListResponse); - /** UidList uids. */ - public uids: Uint8Array[]; + /** CnappBehaviorListResponse items. */ + public items: PAM.ICnappDefaultBehaviorItem[]; /** - * Creates a new UidList instance using the specified properties. + * Creates a new CnappBehaviorListResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UidList instance + * @returns CnappBehaviorListResponse instance */ - public static create(properties?: PAM.IUidList): PAM.UidList; + public static create(properties?: PAM.ICnappBehaviorListResponse): PAM.CnappBehaviorListResponse; /** - * Encodes the specified UidList message. Does not implicitly {@link PAM.UidList.verify|verify} messages. - * @param message UidList message or plain object to encode + * Encodes the specified CnappBehaviorListResponse message. Does not implicitly {@link PAM.CnappBehaviorListResponse.verify|verify} messages. + * @param message CnappBehaviorListResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IUidList, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.ICnappBehaviorListResponse, 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 + * Encodes the specified CnappBehaviorListResponse message, length delimited. Does not implicitly {@link PAM.CnappBehaviorListResponse.verify|verify} messages. + * @param message CnappBehaviorListResponse 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; + public static encodeDelimited(message: PAM.ICnappBehaviorListResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UidList message from the specified reader or buffer. + * Decodes a CnappBehaviorListResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UidList + * @returns CnappBehaviorListResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.UidList; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappBehaviorListResponse; /** - * Decodes an UidList message from the specified reader or buffer, length delimited. + * Decodes a CnappBehaviorListResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UidList + * @returns CnappBehaviorListResponse * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.CnappBehaviorListResponse; /** - * Verifies an UidList message. + * Verifies a CnappBehaviorListResponse message. * @param message Plain 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. + * Creates a CnappBehaviorListResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UidList + * @returns CnappBehaviorListResponse */ - public static fromObject(object: { [k: string]: any }): PAM.UidList; + public static fromObject(object: { [k: string]: any }): PAM.CnappBehaviorListResponse; /** - * Creates a plain object from an UidList message. Also converts values to other types if specified. - * @param message UidList + * Creates a plain object from a CnappBehaviorListResponse message. Also converts values to other types if specified. + * @param message CnappBehaviorListResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.UidList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.CnappBehaviorListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UidList to JSON. + * Converts this CnappBehaviorListResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UidList + * Gets the default type url for CnappBehaviorListResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMResourceConfig. */ - interface IPAMResourceConfig { - - /** PAMResourceConfig recordUid */ - recordUid?: (Uint8Array|null); - - /** PAMResourceConfig networkUid */ - networkUid?: (Uint8Array|null); + /** Properties of a CnappDefaultBehaviorItem. */ + interface ICnappDefaultBehaviorItem { - /** PAMResourceConfig adminUid */ - adminUid?: (Uint8Array|null); + /** CnappDefaultBehaviorItem id */ + id?: (number|null); - /** PAMResourceConfig meta */ - meta?: (Uint8Array|null); + /** CnappDefaultBehaviorItem networkId */ + networkId?: (Uint8Array|null); - /** PAMResourceConfig connectionSettings */ - connectionSettings?: (Uint8Array|null); + /** CnappDefaultBehaviorItem cnappProviderId */ + cnappProviderId?: (number|null); - /** PAMResourceConfig connectUsers */ - connectUsers?: (PAM.IUidList|null); + /** CnappDefaultBehaviorItem controlKey */ + controlKey?: (string|null); - /** PAMResourceConfig domainUid */ - domainUid?: (Uint8Array|null); + /** CnappDefaultBehaviorItem cnappActionTypeId */ + cnappActionTypeId?: (number|null); - /** PAMResourceConfig jitSettings */ - jitSettings?: (Uint8Array|null); + /** CnappDefaultBehaviorItem autoExecute */ + autoExecute?: (boolean|null); - /** PAMResourceConfig keeperAiSettings */ - keeperAiSettings?: (Uint8Array|null); + /** CnappDefaultBehaviorItem enabled */ + enabled?: (boolean|null); } - /** Represents a PAMResourceConfig. */ - class PAMResourceConfig implements IPAMResourceConfig { + /** Represents a CnappDefaultBehaviorItem. */ + class CnappDefaultBehaviorItem implements ICnappDefaultBehaviorItem { /** - * Constructs a new PAMResourceConfig. + * Constructs a new CnappDefaultBehaviorItem. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMResourceConfig); - - /** PAMResourceConfig recordUid. */ - public recordUid: Uint8Array; - - /** PAMResourceConfig networkUid. */ - public networkUid?: (Uint8Array|null); - - /** PAMResourceConfig adminUid. */ - public adminUid?: (Uint8Array|null); - - /** PAMResourceConfig meta. */ - public meta?: (Uint8Array|null); - - /** PAMResourceConfig connectionSettings. */ - public connectionSettings?: (Uint8Array|null); - - /** PAMResourceConfig connectUsers. */ - public connectUsers?: (PAM.IUidList|null); - - /** PAMResourceConfig domainUid. */ - public domainUid?: (Uint8Array|null); - - /** PAMResourceConfig jitSettings. */ - public jitSettings?: (Uint8Array|null); - - /** PAMResourceConfig keeperAiSettings. */ - public keeperAiSettings?: (Uint8Array|null); - - /** PAMResourceConfig _networkUid. */ - public _networkUid?: "networkUid"; + constructor(properties?: PAM.ICnappDefaultBehaviorItem); - /** PAMResourceConfig _adminUid. */ - public _adminUid?: "adminUid"; + /** CnappDefaultBehaviorItem id. */ + public id: number; - /** PAMResourceConfig _meta. */ - public _meta?: "meta"; + /** CnappDefaultBehaviorItem networkId. */ + public networkId: Uint8Array; - /** PAMResourceConfig _connectionSettings. */ - public _connectionSettings?: "connectionSettings"; + /** CnappDefaultBehaviorItem cnappProviderId. */ + public cnappProviderId: number; - /** PAMResourceConfig _connectUsers. */ - public _connectUsers?: "connectUsers"; + /** CnappDefaultBehaviorItem controlKey. */ + public controlKey: string; - /** PAMResourceConfig _domainUid. */ - public _domainUid?: "domainUid"; + /** CnappDefaultBehaviorItem cnappActionTypeId. */ + public cnappActionTypeId: number; - /** PAMResourceConfig _jitSettings. */ - public _jitSettings?: "jitSettings"; + /** CnappDefaultBehaviorItem autoExecute. */ + public autoExecute: boolean; - /** PAMResourceConfig _keeperAiSettings. */ - public _keeperAiSettings?: "keeperAiSettings"; + /** CnappDefaultBehaviorItem enabled. */ + public enabled: boolean; /** - * Creates a new PAMResourceConfig instance using the specified properties. + * Creates a new CnappDefaultBehaviorItem instance using the specified properties. * @param [properties] Properties to set - * @returns PAMResourceConfig instance + * @returns CnappDefaultBehaviorItem instance */ - public static create(properties?: PAM.IPAMResourceConfig): PAM.PAMResourceConfig; + public static create(properties?: PAM.ICnappDefaultBehaviorItem): PAM.CnappDefaultBehaviorItem; /** - * Encodes the specified PAMResourceConfig message. Does not implicitly {@link PAM.PAMResourceConfig.verify|verify} messages. - * @param message PAMResourceConfig message or plain object to encode + * Encodes the specified CnappDefaultBehaviorItem message. Does not implicitly {@link PAM.CnappDefaultBehaviorItem.verify|verify} messages. + * @param message CnappDefaultBehaviorItem message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMResourceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.ICnappDefaultBehaviorItem, 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 + * Encodes the specified CnappDefaultBehaviorItem message, length delimited. Does not implicitly {@link PAM.CnappDefaultBehaviorItem.verify|verify} messages. + * @param message CnappDefaultBehaviorItem 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; + public static encodeDelimited(message: PAM.ICnappDefaultBehaviorItem, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMResourceConfig message from the specified reader or buffer. + * Decodes a CnappDefaultBehaviorItem message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMResourceConfig + * @returns CnappDefaultBehaviorItem * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMResourceConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappDefaultBehaviorItem; /** - * Decodes a PAMResourceConfig message from the specified reader or buffer, length delimited. + * Decodes a CnappDefaultBehaviorItem message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMResourceConfig + * @returns CnappDefaultBehaviorItem * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.CnappDefaultBehaviorItem; /** - * Verifies a PAMResourceConfig message. + * Verifies a CnappDefaultBehaviorItem message. * @param message Plain object 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. + * Creates a CnappDefaultBehaviorItem message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMResourceConfig + * @returns CnappDefaultBehaviorItem */ - public static fromObject(object: { [k: string]: any }): PAM.PAMResourceConfig; + public static fromObject(object: { [k: string]: any }): PAM.CnappDefaultBehaviorItem; /** - * Creates a plain object from a PAMResourceConfig message. Also converts values to other types if specified. - * @param message PAMResourceConfig + * Creates a plain object from a CnappDefaultBehaviorItem message. Also converts values to other types if specified. + * @param message CnappDefaultBehaviorItem * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMResourceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.CnappDefaultBehaviorItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMResourceConfig to JSON. + * Converts this CnappDefaultBehaviorItem to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMResourceConfig + * Gets the default type url for CnappDefaultBehaviorItem * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMUniversalSyncFolder. */ - interface IPAMUniversalSyncFolder { + /** Properties of a CnappBehaviorUpdateRequest. */ + interface ICnappBehaviorUpdateRequest { - /** PAMUniversalSyncFolder uid */ - uid?: (Uint8Array|null); + /** CnappBehaviorUpdateRequest cnappDefaultBehaviorId */ + cnappDefaultBehaviorId?: (number|null); + + /** CnappBehaviorUpdateRequest controlKey */ + controlKey?: (string|null); + + /** CnappBehaviorUpdateRequest cnappActionTypeId */ + cnappActionTypeId?: (number|null); + + /** CnappBehaviorUpdateRequest autoExecute */ + autoExecute?: (boolean|null); + + /** CnappBehaviorUpdateRequest enabled */ + enabled?: (boolean|null); } - /** Represents a PAMUniversalSyncFolder. */ - class PAMUniversalSyncFolder implements IPAMUniversalSyncFolder { + /** Represents a CnappBehaviorUpdateRequest. */ + class CnappBehaviorUpdateRequest implements ICnappBehaviorUpdateRequest { /** - * Constructs a new PAMUniversalSyncFolder. + * Constructs a new CnappBehaviorUpdateRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMUniversalSyncFolder); + constructor(properties?: PAM.ICnappBehaviorUpdateRequest); - /** PAMUniversalSyncFolder uid. */ - public uid: Uint8Array; + /** CnappBehaviorUpdateRequest cnappDefaultBehaviorId. */ + public cnappDefaultBehaviorId: number; + + /** CnappBehaviorUpdateRequest controlKey. */ + public controlKey: string; + + /** CnappBehaviorUpdateRequest cnappActionTypeId. */ + public cnappActionTypeId: number; + + /** CnappBehaviorUpdateRequest autoExecute. */ + public autoExecute: boolean; + + /** CnappBehaviorUpdateRequest enabled. */ + public enabled: boolean; /** - * Creates a new PAMUniversalSyncFolder instance using the specified properties. + * Creates a new CnappBehaviorUpdateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMUniversalSyncFolder instance + * @returns CnappBehaviorUpdateRequest instance */ - public static create(properties?: PAM.IPAMUniversalSyncFolder): PAM.PAMUniversalSyncFolder; + public static create(properties?: PAM.ICnappBehaviorUpdateRequest): PAM.CnappBehaviorUpdateRequest; /** - * Encodes the specified PAMUniversalSyncFolder message. Does not implicitly {@link PAM.PAMUniversalSyncFolder.verify|verify} messages. - * @param message PAMUniversalSyncFolder message or plain object to encode + * Encodes the specified CnappBehaviorUpdateRequest message. Does not implicitly {@link PAM.CnappBehaviorUpdateRequest.verify|verify} messages. + * @param message CnappBehaviorUpdateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMUniversalSyncFolder, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.ICnappBehaviorUpdateRequest, 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 + * Encodes the specified CnappBehaviorUpdateRequest message, length delimited. Does not implicitly {@link PAM.CnappBehaviorUpdateRequest.verify|verify} messages. + * @param message CnappBehaviorUpdateRequest 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; + public static encodeDelimited(message: PAM.ICnappBehaviorUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMUniversalSyncFolder message from the specified reader or buffer. + * Decodes a CnappBehaviorUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMUniversalSyncFolder + * @returns CnappBehaviorUpdateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMUniversalSyncFolder; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappBehaviorUpdateRequest; /** - * Decodes a PAMUniversalSyncFolder message from the specified reader or buffer, length delimited. + * Decodes a CnappBehaviorUpdateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMUniversalSyncFolder + * @returns CnappBehaviorUpdateRequest * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.CnappBehaviorUpdateRequest; /** - * Verifies a PAMUniversalSyncFolder message. + * Verifies a CnappBehaviorUpdateRequest message. * @param message Plain object 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. + * Creates a CnappBehaviorUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMUniversalSyncFolder + * @returns CnappBehaviorUpdateRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMUniversalSyncFolder; + public static fromObject(object: { [k: string]: any }): PAM.CnappBehaviorUpdateRequest; /** - * Creates a plain object from a PAMUniversalSyncFolder message. Also converts values to other types if specified. - * @param message PAMUniversalSyncFolder + * Creates a plain object from a CnappBehaviorUpdateRequest message. Also converts values to other types if specified. + * @param message CnappBehaviorUpdateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMUniversalSyncFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.CnappBehaviorUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMUniversalSyncFolder to JSON. + * Converts this CnappBehaviorUpdateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMUniversalSyncFolder + * Gets the default type url for CnappBehaviorUpdateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMUniversalSyncConfig. */ - interface IPAMUniversalSyncConfig { - - /** PAMUniversalSyncConfig networkUid */ - networkUid?: (Uint8Array|null); - - /** PAMUniversalSyncConfig enabled */ - enabled?: (boolean|null); - - /** PAMUniversalSyncConfig dryRunEnabled */ - dryRunEnabled?: (boolean|null); - - /** PAMUniversalSyncConfig folders */ - folders?: (PAM.IPAMUniversalSyncFolder[]|null); - - /** PAMUniversalSyncConfig syncIdentity */ - syncIdentity?: (Uint8Array|null); + /** Properties of a CnappBehaviorDeleteRequest. */ + interface ICnappBehaviorDeleteRequest { - /** PAMUniversalSyncConfig vaultName */ - vaultName?: (Uint8Array|null); + /** CnappBehaviorDeleteRequest cnappDefaultBehaviorId */ + cnappDefaultBehaviorId?: (number|null); } - /** Represents a PAMUniversalSyncConfig. */ - class PAMUniversalSyncConfig implements IPAMUniversalSyncConfig { + /** Represents a CnappBehaviorDeleteRequest. */ + class CnappBehaviorDeleteRequest implements ICnappBehaviorDeleteRequest { /** - * Constructs a new PAMUniversalSyncConfig. + * Constructs a new CnappBehaviorDeleteRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMUniversalSyncConfig); - - /** PAMUniversalSyncConfig networkUid. */ - public networkUid: Uint8Array; - - /** PAMUniversalSyncConfig enabled. */ - public enabled?: (boolean|null); - - /** PAMUniversalSyncConfig dryRunEnabled. */ - public dryRunEnabled?: (boolean|null); - - /** PAMUniversalSyncConfig folders. */ - public folders: PAM.IPAMUniversalSyncFolder[]; - - /** PAMUniversalSyncConfig syncIdentity. */ - public syncIdentity?: (Uint8Array|null); - - /** PAMUniversalSyncConfig vaultName. */ - public vaultName?: (Uint8Array|null); - - /** PAMUniversalSyncConfig _enabled. */ - public _enabled?: "enabled"; + constructor(properties?: PAM.ICnappBehaviorDeleteRequest); - /** PAMUniversalSyncConfig _dryRunEnabled. */ - public _dryRunEnabled?: "dryRunEnabled"; - - /** PAMUniversalSyncConfig _syncIdentity. */ - public _syncIdentity?: "syncIdentity"; - - /** PAMUniversalSyncConfig _vaultName. */ - public _vaultName?: "vaultName"; + /** CnappBehaviorDeleteRequest cnappDefaultBehaviorId. */ + public cnappDefaultBehaviorId: number; /** - * Creates a new PAMUniversalSyncConfig instance using the specified properties. + * Creates a new CnappBehaviorDeleteRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMUniversalSyncConfig instance + * @returns CnappBehaviorDeleteRequest instance */ - public static create(properties?: PAM.IPAMUniversalSyncConfig): PAM.PAMUniversalSyncConfig; + public static create(properties?: PAM.ICnappBehaviorDeleteRequest): PAM.CnappBehaviorDeleteRequest; /** - * Encodes the specified PAMUniversalSyncConfig message. Does not implicitly {@link PAM.PAMUniversalSyncConfig.verify|verify} messages. - * @param message PAMUniversalSyncConfig message or plain object to encode + * Encodes the specified CnappBehaviorDeleteRequest message. Does not implicitly {@link PAM.CnappBehaviorDeleteRequest.verify|verify} messages. + * @param message CnappBehaviorDeleteRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMUniversalSyncConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.ICnappBehaviorDeleteRequest, 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 + * Encodes the specified CnappBehaviorDeleteRequest message, length delimited. Does not implicitly {@link PAM.CnappBehaviorDeleteRequest.verify|verify} messages. + * @param message CnappBehaviorDeleteRequest 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; + public static encodeDelimited(message: PAM.ICnappBehaviorDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMUniversalSyncConfig message from the specified reader or buffer. + * Decodes a CnappBehaviorDeleteRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMUniversalSyncConfig + * @returns CnappBehaviorDeleteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMUniversalSyncConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.CnappBehaviorDeleteRequest; /** - * Decodes a PAMUniversalSyncConfig message from the specified reader or buffer, length delimited. + * Decodes a CnappBehaviorDeleteRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PAMUniversalSyncConfig + * @returns CnappBehaviorDeleteRequest * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PAM.CnappBehaviorDeleteRequest; /** - * Verifies a PAMUniversalSyncConfig message. + * Verifies a CnappBehaviorDeleteRequest message. * @param message Plain object 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. + * Creates a CnappBehaviorDeleteRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMUniversalSyncConfig + * @returns CnappBehaviorDeleteRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMUniversalSyncConfig; + public static fromObject(object: { [k: string]: any }): PAM.CnappBehaviorDeleteRequest; /** - * Creates a plain object from a PAMUniversalSyncConfig message. Also converts values to other types if specified. - * @param message PAMUniversalSyncConfig + * Creates a plain object from a CnappBehaviorDeleteRequest message. Also converts values to other types if specified. + * @param message CnappBehaviorDeleteRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMUniversalSyncConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.CnappBehaviorDeleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMUniversalSyncConfig to JSON. + * Converts this CnappBehaviorDeleteRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMUniversalSyncConfig + * Gets the default type url for CnappBehaviorDeleteRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ diff --git a/keeperapi/src/proto.js b/keeperapi/src/proto.js index 52f6ca5..34b0c93 100644 --- a/keeperapi/src/proto.js +++ b/keeperapi/src/proto.js @@ -80333,6 +80333,7 @@ export const Enterprise = $root.Enterprise = (() => { * @property {number} NPS_POPUP_OPT_OUT=9 NPS_POPUP_OPT_OUT value * @property {number} SHOW_USER_ONBOARD=10 SHOW_USER_ONBOARD value * @property {number} FORBID_KEY_TYPE_1=11 FORBID_KEY_TYPE_1 value + * @property {number} KEEPER_DRIVE=12 KEEPER_DRIVE value */ Enterprise.EnterpriseFlagType = (function() { const valuesById = {}, values = Object.create(valuesById); @@ -80348,6 +80349,7 @@ export const Enterprise = $root.Enterprise = (() => { values[valuesById[9] = "NPS_POPUP_OPT_OUT"] = 9; values[valuesById[10] = "SHOW_USER_ONBOARD"] = 10; values[valuesById[11] = "FORBID_KEY_TYPE_1"] = 11; + values[valuesById[12] = "KEEPER_DRIVE"] = 12; return values; })(); @@ -101890,6 +101892,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @property {number|null} [minMasterPasswordLengthNoPrompt] AccountSummaryElements minMasterPasswordLengthNoPrompt * @property {boolean|null} [forbidKeyType2] AccountSummaryElements forbidKeyType2 * @property {boolean|null} [forbidKeyType1] AccountSummaryElements forbidKeyType1 + * @property {Array.|null} [disallowedFeatures] AccountSummaryElements disallowedFeatures */ /** @@ -101905,6 +101908,7 @@ export const AccountSummary = $root.AccountSummary = (() => { this.Images = []; this.usernames = []; this.devices = []; + this.disallowedFeatures = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102063,6 +102067,14 @@ export const AccountSummary = $root.AccountSummary = (() => { */ AccountSummaryElements.prototype.forbidKeyType1 = false; + /** + * AccountSummaryElements disallowedFeatures. + * @member {Array.} disallowedFeatures + * @memberof AccountSummary.AccountSummaryElements + * @instance + */ + AccountSummaryElements.prototype.disallowedFeatures = $util.emptyArray; + /** * Creates a new AccountSummaryElements instance using the specified properties. * @function create @@ -102129,6 +102141,9 @@ export const AccountSummary = $root.AccountSummary = (() => { writer.uint32(/* id 18, wireType 0 =*/144).bool(message.forbidKeyType2); if (message.forbidKeyType1 != null && Object.hasOwnProperty.call(message, "forbidKeyType1")) writer.uint32(/* id 19, wireType 0 =*/152).bool(message.forbidKeyType1); + if (message.disallowedFeatures != null && message.disallowedFeatures.length) + for (let i = 0; i < message.disallowedFeatures.length; ++i) + writer.uint32(/* id 20, wireType 2 =*/162).string(message.disallowedFeatures[i]); return writer; }; @@ -102247,6 +102262,12 @@ export const AccountSummary = $root.AccountSummary = (() => { message.forbidKeyType1 = reader.bool(); break; } + case 20: { + if (!(message.disallowedFeatures && message.disallowedFeatures.length)) + message.disallowedFeatures = []; + message.disallowedFeatures.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -102373,6 +102394,13 @@ export const AccountSummary = $root.AccountSummary = (() => { 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; }; @@ -102476,6 +102504,13 @@ export const AccountSummary = $root.AccountSummary = (() => { message.forbidKeyType2 = Boolean(object.forbidKeyType2); if (object.forbidKeyType1 != null) message.forbidKeyType1 = Boolean(object.forbidKeyType1); + if (object.disallowedFeatures) { + if (!Array.isArray(object.disallowedFeatures)) + throw TypeError(".AccountSummary.AccountSummaryElements.disallowedFeatures: array expected"); + message.disallowedFeatures = []; + for (let i = 0; i < object.disallowedFeatures.length; ++i) + message.disallowedFeatures[i] = String(object.disallowedFeatures[i]); + } return message; }; @@ -102497,6 +102532,7 @@ export const AccountSummary = $root.AccountSummary = (() => { object.Images = []; object.usernames = []; object.devices = []; + object.disallowedFeatures = []; } if (options.defaults) { if (options.bytes === String) @@ -102571,6 +102607,11 @@ export const AccountSummary = $root.AccountSummary = (() => { object.forbidKeyType2 = message.forbidKeyType2; if (message.forbidKeyType1 != null && message.hasOwnProperty("forbidKeyType1")) object.forbidKeyType1 = message.forbidKeyType1; + if (message.disallowedFeatures && message.disallowedFeatures.length) { + object.disallowedFeatures = []; + for (let j = 0; j < message.disallowedFeatures.length; ++j) + object.disallowedFeatures[j] = message.disallowedFeatures[j]; + } return object; }; @@ -105461,6 +105502,8 @@ export const AccountSummary = $root.AccountSummary = (() => { * @property {boolean|null} [securityKeysNoUserVerify] Settings securityKeysNoUserVerify * @property {Array.|null} [channels] Settings channels * @property {Array.|null} [personalUsernames] Settings personalUsernames + * @property {number|null} [maxIpDistance] Settings maxIpDistance + * @property {number|null} [maxIpDistanceEffective] Settings maxIpDistanceEffective */ /** @@ -105796,6 +105839,22 @@ export const AccountSummary = $root.AccountSummary = (() => { */ Settings.prototype.personalUsernames = $util.emptyArray; + /** + * Settings maxIpDistance. + * @member {number} maxIpDistance + * @memberof AccountSummary.Settings + * @instance + */ + Settings.prototype.maxIpDistance = 0; + + /** + * Settings maxIpDistanceEffective. + * @member {number} maxIpDistanceEffective + * @memberof AccountSummary.Settings + * @instance + */ + Settings.prototype.maxIpDistanceEffective = 0; + /** * Creates a new Settings instance using the specified properties. * @function create @@ -105907,6 +105966,10 @@ export const AccountSummary = $root.AccountSummary = (() => { if (message.personalUsernames != null && message.personalUsernames.length) for (let i = 0; i < message.personalUsernames.length; ++i) writer.uint32(/* id 39, wireType 2 =*/314).string(message.personalUsernames[i]); + if (message.maxIpDistance != null && Object.hasOwnProperty.call(message, "maxIpDistance")) + writer.uint32(/* id 40, wireType 0 =*/320).int32(message.maxIpDistance); + if (message.maxIpDistanceEffective != null && Object.hasOwnProperty.call(message, "maxIpDistanceEffective")) + writer.uint32(/* id 41, wireType 0 =*/328).int32(message.maxIpDistanceEffective); return writer; }; @@ -106114,6 +106177,14 @@ export const AccountSummary = $root.AccountSummary = (() => { message.personalUsernames.push(reader.string()); break; } + case 40: { + message.maxIpDistance = reader.int32(); + break; + } + case 41: { + message.maxIpDistanceEffective = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -106311,6 +106382,12 @@ export const AccountSummary = $root.AccountSummary = (() => { 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; }; @@ -106509,6 +106586,10 @@ export const AccountSummary = $root.AccountSummary = (() => { for (let i = 0; i < object.personalUsernames.length; ++i) message.personalUsernames[i] = String(object.personalUsernames[i]); } + if (object.maxIpDistance != null) + message.maxIpDistance = object.maxIpDistance | 0; + if (object.maxIpDistanceEffective != null) + message.maxIpDistanceEffective = object.maxIpDistanceEffective | 0; return message; }; @@ -106581,6 +106662,8 @@ export const AccountSummary = $root.AccountSummary = (() => { object.recordTypesPAMCounter = 0; object.logoutTimerMinutes = 0; object.securityKeysNoUserVerify = false; + object.maxIpDistance = 0; + object.maxIpDistanceEffective = 0; } if (message.audit != null && message.hasOwnProperty("audit")) object.audit = message.audit; @@ -106684,6 +106767,10 @@ 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")) + object.maxIpDistance = message.maxIpDistance; + if (message.maxIpDistanceEffective != null && message.hasOwnProperty("maxIpDistanceEffective")) + object.maxIpDistanceEffective = message.maxIpDistanceEffective; return object; }; @@ -115393,6 +115480,7 @@ export const Automator = $root.Automator = (() => { * @property {Array.|null} [logEntries] AutomatorInfo logEntries * @property {Automator.AutomatorState|null} [automatorState] AutomatorInfo automatorState * @property {string|null} [version] AutomatorInfo version + * @property {string|null} [sslCertificateExpirationDate] AutomatorInfo sslCertificateExpirationDate */ /** @@ -115501,6 +115589,14 @@ export const Automator = $root.Automator = (() => { */ AutomatorInfo.prototype.version = ""; + /** + * AutomatorInfo sslCertificateExpirationDate. + * @member {string} sslCertificateExpirationDate + * @memberof Automator.AutomatorInfo + * @instance + */ + AutomatorInfo.prototype.sslCertificateExpirationDate = ""; + /** * Creates a new AutomatorInfo instance using the specified properties. * @function create @@ -115550,6 +115646,8 @@ export const Automator = $root.Automator = (() => { writer.uint32(/* id 10, wireType 0 =*/80).int32(message.automatorState); if (message.version != null && Object.hasOwnProperty.call(message, "version")) writer.uint32(/* id 11, wireType 2 =*/90).string(message.version); + if (message.sslCertificateExpirationDate != null && Object.hasOwnProperty.call(message, "sslCertificateExpirationDate")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.sslCertificateExpirationDate); return writer; }; @@ -115634,6 +115732,10 @@ export const Automator = $root.Automator = (() => { message.version = reader.string(); break; } + case 12: { + message.sslCertificateExpirationDate = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -115731,6 +115833,9 @@ export const Automator = $root.Automator = (() => { 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; }; @@ -115839,6 +115944,8 @@ export const Automator = $root.Automator = (() => { } if (object.version != null) message.version = String(object.version); + if (object.sslCertificateExpirationDate != null) + message.sslCertificateExpirationDate = String(object.sslCertificateExpirationDate); return message; }; @@ -115877,6 +115984,7 @@ export const Automator = $root.Automator = (() => { object.status = null; object.automatorState = options.enums === String ? "UNKNOWN_STATE" : 0; object.version = ""; + object.sslCertificateExpirationDate = ""; } if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (typeof message.automatorId === "number") @@ -115915,6 +116023,8 @@ export const Automator = $root.Automator = (() => { 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")) object.version = message.version; + if (message.sslCertificateExpirationDate != null && message.hasOwnProperty("sslCertificateExpirationDate")) + object.sslCertificateExpirationDate = message.sslCertificateExpirationDate; return object; }; @@ -123293,9 +123403,9 @@ export const Automator = $root.Automator = (() => { * @property {string|null} [hostUrl] SSLCertificateInfo hostUrl * @property {string|null} [subject] SSLCertificateInfo subject * @property {string|null} [issuer] SSLCertificateInfo issuer - * @property {string|null} [issuedOn] SSLCertificateInfo issuedOn - * @property {string|null} [expiresOn] SSLCertificateInfo expiresOn - * @property {string|null} [checkedOn] SSLCertificateInfo checkedOn + * @property {number|Long|null} [issuedOn] SSLCertificateInfo issuedOn + * @property {number|Long|null} [expiresOn] SSLCertificateInfo expiresOn + * @property {number|Long|null} [checkedOn] SSLCertificateInfo checkedOn */ /** @@ -123348,27 +123458,27 @@ export const Automator = $root.Automator = (() => { /** * SSLCertificateInfo issuedOn. - * @member {string} issuedOn + * @member {number|Long} issuedOn * @memberof Automator.SSLCertificateInfo * @instance */ - SSLCertificateInfo.prototype.issuedOn = ""; + SSLCertificateInfo.prototype.issuedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** * SSLCertificateInfo expiresOn. - * @member {string} expiresOn + * @member {number|Long} expiresOn * @memberof Automator.SSLCertificateInfo * @instance */ - SSLCertificateInfo.prototype.expiresOn = ""; + SSLCertificateInfo.prototype.expiresOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** * SSLCertificateInfo checkedOn. - * @member {string} checkedOn + * @member {number|Long} checkedOn * @memberof Automator.SSLCertificateInfo * @instance */ - SSLCertificateInfo.prototype.checkedOn = ""; + SSLCertificateInfo.prototype.checkedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** * Creates a new SSLCertificateInfo instance using the specified properties. @@ -123403,11 +123513,11 @@ export const Automator = $root.Automator = (() => { if (message.issuer != null && Object.hasOwnProperty.call(message, "issuer")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.issuer); if (message.issuedOn != null && Object.hasOwnProperty.call(message, "issuedOn")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.issuedOn); + writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.issuedOn); if (message.expiresOn != null && Object.hasOwnProperty.call(message, "expiresOn")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.expiresOn); + writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.expiresOn); if (message.checkedOn != null && Object.hasOwnProperty.call(message, "checkedOn")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.checkedOn); + writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.checkedOn); return writer; }; @@ -123459,15 +123569,15 @@ export const Automator = $root.Automator = (() => { break; } case 5: { - message.issuedOn = reader.string(); + message.issuedOn = reader.uint64(); break; } case 6: { - message.expiresOn = reader.string(); + message.expiresOn = reader.uint64(); break; } case 7: { - message.checkedOn = reader.string(); + message.checkedOn = reader.uint64(); break; } default: @@ -123518,14 +123628,14 @@ export const Automator = $root.Automator = (() => { if (!$util.isString(message.issuer)) return "issuer: string expected"; if (message.issuedOn != null && message.hasOwnProperty("issuedOn")) - if (!$util.isString(message.issuedOn)) - return "issuedOn: string expected"; + 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.isString(message.expiresOn)) - return "expiresOn: string expected"; + 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.isString(message.checkedOn)) - return "checkedOn: string expected"; + if (!$util.isInteger(message.checkedOn) && !(message.checkedOn && $util.isInteger(message.checkedOn.low) && $util.isInteger(message.checkedOn.high))) + return "checkedOn: integer|Long expected"; return null; }; @@ -123557,11 +123667,32 @@ export const Automator = $root.Automator = (() => { if (object.issuer != null) message.issuer = String(object.issuer); if (object.issuedOn != null) - message.issuedOn = String(object.issuedOn); + if ($util.Long) + (message.issuedOn = $util.Long.fromValue(object.issuedOn)).unsigned = true; + else if (typeof object.issuedOn === "string") + message.issuedOn = parseInt(object.issuedOn, 10); + else if (typeof object.issuedOn === "number") + message.issuedOn = object.issuedOn; + else if (typeof object.issuedOn === "object") + message.issuedOn = new $util.LongBits(object.issuedOn.low >>> 0, object.issuedOn.high >>> 0).toNumber(true); if (object.expiresOn != null) - message.expiresOn = String(object.expiresOn); + if ($util.Long) + (message.expiresOn = $util.Long.fromValue(object.expiresOn)).unsigned = true; + else if (typeof object.expiresOn === "string") + message.expiresOn = parseInt(object.expiresOn, 10); + else if (typeof object.expiresOn === "number") + message.expiresOn = object.expiresOn; + else if (typeof object.expiresOn === "object") + message.expiresOn = new $util.LongBits(object.expiresOn.low >>> 0, object.expiresOn.high >>> 0).toNumber(true); if (object.checkedOn != null) - message.checkedOn = String(object.checkedOn); + if ($util.Long) + (message.checkedOn = $util.Long.fromValue(object.checkedOn)).unsigned = true; + else if (typeof object.checkedOn === "string") + message.checkedOn = parseInt(object.checkedOn, 10); + else if (typeof object.checkedOn === "number") + message.checkedOn = object.checkedOn; + else if (typeof object.checkedOn === "object") + message.checkedOn = new $util.LongBits(object.checkedOn.low >>> 0, object.checkedOn.high >>> 0).toNumber(true); return message; }; @@ -123587,9 +123718,21 @@ export const Automator = $root.Automator = (() => { object.hostUrl = ""; object.subject = ""; object.issuer = ""; - object.issuedOn = ""; - object.expiresOn = ""; - object.checkedOn = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.issuedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.issuedOn = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.expiresOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.expiresOn = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.checkedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.checkedOn = options.longs === String ? "0" : 0; } if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (typeof message.automatorId === "number") @@ -123603,11 +123746,20 @@ export const Automator = $root.Automator = (() => { if (message.issuer != null && message.hasOwnProperty("issuer")) object.issuer = message.issuer; if (message.issuedOn != null && message.hasOwnProperty("issuedOn")) - object.issuedOn = message.issuedOn; + 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")) - object.expiresOn = message.expiresOn; + 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")) - object.checkedOn = message.checkedOn; + if (typeof message.checkedOn === "number") + object.checkedOn = options.longs === String ? String(message.checkedOn) : message.checkedOn; + else + object.checkedOn = options.longs === String ? $util.Long.prototype.toString.call(message.checkedOn) : options.longs === Number ? new $util.LongBits(message.checkedOn.low >>> 0, message.checkedOn.high >>> 0).toNumber(true) : message.checkedOn; return object; }; @@ -142808,6 +142960,9 @@ export const Tokens = $root.Tokens = (() => { * @property {number|Long|null} [deviceId] SessionToken deviceId * @property {number|Long|null} [loginSessionId] SessionToken loginSessionId * @property {number|null} [clientTypeId] SessionToken clientTypeId + * @property {number|Long|null} [ipAddress] SessionToken ipAddress + * @property {number|null} [latitude] SessionToken latitude + * @property {number|null} [longitude] SessionToken longitude */ /** @@ -142985,6 +143140,30 @@ export const Tokens = $root.Tokens = (() => { */ SessionToken.prototype.clientTypeId = 0; + /** + * SessionToken ipAddress. + * @member {number|Long} ipAddress + * @memberof Tokens.SessionToken + * @instance + */ + SessionToken.prototype.ipAddress = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SessionToken latitude. + * @member {number} latitude + * @memberof Tokens.SessionToken + * @instance + */ + SessionToken.prototype.latitude = 0; + + /** + * SessionToken longitude. + * @member {number} longitude + * @memberof Tokens.SessionToken + * @instance + */ + SessionToken.prototype.longitude = 0; + /** * Creates a new SessionToken instance using the specified properties. * @function create @@ -143049,6 +143228,12 @@ export const Tokens = $root.Tokens = (() => { writer.uint32(/* id 19, wireType 0 =*/152).int64(message.loginSessionId); if (message.clientTypeId != null && Object.hasOwnProperty.call(message, "clientTypeId")) writer.uint32(/* id 20, wireType 0 =*/160).int32(message.clientTypeId); + if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) + writer.uint32(/* id 21, wireType 0 =*/168).int64(message.ipAddress); + if (message.latitude != null && Object.hasOwnProperty.call(message, "latitude")) + writer.uint32(/* id 22, wireType 1 =*/177).double(message.latitude); + if (message.longitude != null && Object.hasOwnProperty.call(message, "longitude")) + writer.uint32(/* id 23, wireType 1 =*/185).double(message.longitude); return writer; }; @@ -143163,6 +143348,18 @@ export const Tokens = $root.Tokens = (() => { message.clientTypeId = reader.int32(); break; } + case 21: { + message.ipAddress = reader.int64(); + break; + } + case 22: { + message.latitude = reader.double(); + break; + } + case 23: { + message.longitude = reader.double(); + break; + } default: reader.skipType(tag & 7); break; @@ -143289,6 +143486,15 @@ export const Tokens = $root.Tokens = (() => { 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; }; @@ -143469,6 +143675,19 @@ export const Tokens = $root.Tokens = (() => { message.loginSessionId = new $util.LongBits(object.loginSessionId.low >>> 0, object.loginSessionId.high >>> 0).toNumber(); if (object.clientTypeId != null) message.clientTypeId = object.clientTypeId | 0; + if (object.ipAddress != null) + if ($util.Long) + (message.ipAddress = $util.Long.fromValue(object.ipAddress)).unsigned = false; + else if (typeof object.ipAddress === "string") + message.ipAddress = parseInt(object.ipAddress, 10); + else if (typeof object.ipAddress === "number") + message.ipAddress = object.ipAddress; + else if (typeof object.ipAddress === "object") + message.ipAddress = new $util.LongBits(object.ipAddress.low >>> 0, object.ipAddress.high >>> 0).toNumber(); + if (object.latitude != null) + message.latitude = Number(object.latitude); + if (object.longitude != null) + message.longitude = Number(object.longitude); return message; }; @@ -143532,6 +143751,13 @@ export const Tokens = $root.Tokens = (() => { } else object.loginSessionId = options.longs === String ? "0" : 0; object.clientTypeId = 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.ipAddress = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.ipAddress = options.longs === String ? "0" : 0; + object.latitude = 0; + object.longitude = 0; } if (message.created != null && message.hasOwnProperty("created")) if (typeof message.created === "number") @@ -143588,6 +143814,15 @@ export const Tokens = $root.Tokens = (() => { object.loginSessionId = options.longs === String ? $util.Long.prototype.toString.call(message.loginSessionId) : options.longs === Number ? new $util.LongBits(message.loginSessionId.low >>> 0, message.loginSessionId.high >>> 0).toNumber() : message.loginSessionId; if (message.clientTypeId != null && message.hasOwnProperty("clientTypeId")) object.clientTypeId = message.clientTypeId; + if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) + if (typeof 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")) + object.latitude = options.json && !isFinite(message.latitude) ? String(message.latitude) : message.latitude; + if (message.longitude != null && message.hasOwnProperty("longitude")) + object.longitude = options.json && !isFinite(message.longitude) ? String(message.longitude) : message.longitude; return object; }; @@ -154244,6 +154479,7 @@ export const Tokens = $root.Tokens = (() => { * @property {number|Long|null} [notificationSyncPoint] VaultSyncDownContinuationToken notificationSyncPoint * @property {boolean|null} [skipUserRevision] VaultSyncDownContinuationToken skipUserRevision * @property {number|null} [multiPageIncrementalClientVersion] VaultSyncDownContinuationToken multiPageIncrementalClientVersion + * @property {number|Long|null} [dagSyncPoint] VaultSyncDownContinuationToken dagSyncPoint */ /** @@ -154365,6 +154601,14 @@ export const Tokens = $root.Tokens = (() => { */ VaultSyncDownContinuationToken.prototype.multiPageIncrementalClientVersion = 0; + /** + * VaultSyncDownContinuationToken dagSyncPoint. + * @member {number|Long} dagSyncPoint + * @memberof Tokens.VaultSyncDownContinuationToken + * @instance + */ + VaultSyncDownContinuationToken.prototype.dagSyncPoint = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** * Creates a new VaultSyncDownContinuationToken instance using the specified properties. * @function create @@ -154415,6 +154659,8 @@ export const Tokens = $root.Tokens = (() => { writer.uint32(/* id 12, wireType 0 =*/96).bool(message.skipUserRevision); if (message.multiPageIncrementalClientVersion != null && Object.hasOwnProperty.call(message, "multiPageIncrementalClientVersion")) writer.uint32(/* id 14, wireType 0 =*/112).int32(message.multiPageIncrementalClientVersion); + if (message.dagSyncPoint != null && Object.hasOwnProperty.call(message, "dagSyncPoint")) + writer.uint32(/* id 15, wireType 0 =*/120).int64(message.dagSyncPoint); return writer; }; @@ -154501,6 +154747,10 @@ export const Tokens = $root.Tokens = (() => { message.multiPageIncrementalClientVersion = reader.int32(); break; } + case 15: { + message.dagSyncPoint = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -154577,6 +154827,9 @@ export const Tokens = $root.Tokens = (() => { 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; }; @@ -154642,6 +154895,15 @@ export const Tokens = $root.Tokens = (() => { message.skipUserRevision = Boolean(object.skipUserRevision); if (object.multiPageIncrementalClientVersion != null) message.multiPageIncrementalClientVersion = object.multiPageIncrementalClientVersion | 0; + if (object.dagSyncPoint != null) + if ($util.Long) + (message.dagSyncPoint = $util.Long.fromValue(object.dagSyncPoint)).unsigned = false; + else if (typeof object.dagSyncPoint === "string") + message.dagSyncPoint = parseInt(object.dagSyncPoint, 10); + else if (typeof object.dagSyncPoint === "number") + message.dagSyncPoint = object.dagSyncPoint; + else if (typeof object.dagSyncPoint === "object") + message.dagSyncPoint = new $util.LongBits(object.dagSyncPoint.low >>> 0, object.dagSyncPoint.high >>> 0).toNumber(); return message; }; @@ -154684,6 +154946,11 @@ export const Tokens = $root.Tokens = (() => { object.notificationSyncPoint = options.longs === String ? "0" : 0; object.skipUserRevision = false; object.multiPageIncrementalClientVersion = 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.dagSyncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.dagSyncPoint = options.longs === String ? "0" : 0; } if (message.tokenVersion != null && message.hasOwnProperty("tokenVersion")) object.tokenVersion = message.tokenVersion; @@ -154720,6 +154987,11 @@ export const Tokens = $root.Tokens = (() => { object.skipUserRevision = message.skipUserRevision; if (message.multiPageIncrementalClientVersion != null && message.hasOwnProperty("multiPageIncrementalClientVersion")) object.multiPageIncrementalClientVersion = message.multiPageIncrementalClientVersion; + if (message.dagSyncPoint != null && message.hasOwnProperty("dagSyncPoint")) + if (typeof message.dagSyncPoint === "number") + object.dagSyncPoint = options.longs === String ? String(message.dagSyncPoint) : message.dagSyncPoint; + else + object.dagSyncPoint = options.longs === String ? $util.Long.prototype.toString.call(message.dagSyncPoint) : options.longs === Number ? new $util.LongBits(message.dagSyncPoint.low >>> 0, message.dagSyncPoint.high >>> 0).toNumber() : message.dagSyncPoint; return object; }; @@ -171663,58 +171935,51 @@ export const Folder = $root.Folder = (() => { return RestoreSharedObject; })(); - return Folder; -})(); - -export const Records = $root.Records = (() => { - - /** - * Namespace Records. - * @exports Records - * @namespace - */ - const Records = {}; - /** - * RecordTypeScope enum. - * @name Records.RecordTypeScope + * FolderUsageType enum. + * @name Folder.FolderUsageType * @enum {number} - * @property {number} RT_STANDARD=0 RT_STANDARD value - * @property {number} RT_USER=1 RT_USER value - * @property {number} RT_ENTERPRISE=2 RT_ENTERPRISE value - * @property {number} RT_PAM=3 RT_PAM value - * @property {number} RT_PAM_CONFIGURATION=4 RT_PAM_CONFIGURATION value + * @property {number} UT_UNKNOWN=0 UT_UNKNOWN value + * @property {number} UT_NORMAL=1 UT_NORMAL value + * @property {number} UT_WORKFLOW=2 UT_WORKFLOW value + * @property {number} UT_TRASHCAN=3 UT_TRASHCAN value */ - Records.RecordTypeScope = (function() { + Folder.FolderUsageType = (function() { const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RT_STANDARD"] = 0; - values[valuesById[1] = "RT_USER"] = 1; - values[valuesById[2] = "RT_ENTERPRISE"] = 2; - values[valuesById[3] = "RT_PAM"] = 3; - values[valuesById[4] = "RT_PAM_CONFIGURATION"] = 4; + values[valuesById[0] = "UT_UNKNOWN"] = 0; + values[valuesById[1] = "UT_NORMAL"] = 1; + values[valuesById[2] = "UT_WORKFLOW"] = 2; + values[valuesById[3] = "UT_TRASHCAN"] = 3; return values; })(); - Records.RecordType = (function() { + Folder.FolderData = (function() { /** - * Properties of a RecordType. - * @memberof Records - * @interface IRecordType - * @property {number|null} [recordTypeId] RecordType recordTypeId - * @property {string|null} [content] RecordType content - * @property {Records.RecordTypeScope|null} [scope] RecordType scope + * Properties of a FolderData. + * @memberof Folder + * @interface IFolderData + * @property {Uint8Array|null} [folderUid] FolderData folderUid + * @property {Uint8Array|null} [parentUid] FolderData parentUid + * @property {Uint8Array|null} [data] FolderData data + * @property {Folder.FolderUsageType|null} [type] FolderData type + * @property {Folder.SetBooleanValue|null} [inheritUserPermissions] FolderData inheritUserPermissions + * @property {Uint8Array|null} [folderKey] FolderData folderKey + * @property {Folder.IUserInfo|null} [ownerInfo] FolderData ownerInfo + * @property {number|Long|null} [dateCreated] FolderData dateCreated + * @property {number|Long|null} [lastModified] FolderData lastModified */ /** - * Constructs a new RecordType. - * @memberof Records - * @classdesc Represents a RecordType. - * @implements IRecordType + * Constructs a new FolderData. + * @memberof Folder + * @classdesc FolderData is used in the folder add and update requests and it is stored in the DAG. + * It is also used to store folders' data in the sync down response. + * @implements IFolderData * @constructor - * @param {Records.IRecordType=} [properties] Properties to set + * @param {Folder.IFolderData=} [properties] Properties to set */ - function RecordType(properties) { + function FolderData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -171722,103 +171987,187 @@ export const Records = $root.Records = (() => { } /** - * RecordType recordTypeId. - * @member {number} recordTypeId - * @memberof Records.RecordType + * FolderData folderUid. + * @member {Uint8Array} folderUid + * @memberof Folder.FolderData * @instance */ - RecordType.prototype.recordTypeId = 0; + FolderData.prototype.folderUid = $util.newBuffer([]); /** - * RecordType content. - * @member {string} content - * @memberof Records.RecordType + * FolderData parentUid. + * @member {Uint8Array} parentUid + * @memberof Folder.FolderData * @instance */ - RecordType.prototype.content = ""; + FolderData.prototype.parentUid = $util.newBuffer([]); /** - * RecordType scope. - * @member {Records.RecordTypeScope} scope - * @memberof Records.RecordType + * FolderData data. + * @member {Uint8Array} data + * @memberof Folder.FolderData * @instance */ - RecordType.prototype.scope = 0; + FolderData.prototype.data = $util.newBuffer([]); /** - * Creates a new RecordType instance using the specified properties. + * FolderData type. + * @member {Folder.FolderUsageType} type + * @memberof Folder.FolderData + * @instance + */ + FolderData.prototype.type = 0; + + /** + * FolderData inheritUserPermissions. + * @member {Folder.SetBooleanValue} inheritUserPermissions + * @memberof Folder.FolderData + * @instance + */ + FolderData.prototype.inheritUserPermissions = 0; + + /** + * FolderData folderKey. + * @member {Uint8Array} folderKey + * @memberof Folder.FolderData + * @instance + */ + FolderData.prototype.folderKey = $util.newBuffer([]); + + /** + * FolderData ownerInfo. + * @member {Folder.IUserInfo|null|undefined} ownerInfo + * @memberof Folder.FolderData + * @instance + */ + FolderData.prototype.ownerInfo = null; + + /** + * FolderData dateCreated. + * @member {number|Long} dateCreated + * @memberof Folder.FolderData + * @instance + */ + FolderData.prototype.dateCreated = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * FolderData lastModified. + * @member {number|Long} lastModified + * @memberof Folder.FolderData + * @instance + */ + FolderData.prototype.lastModified = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new FolderData instance using the specified properties. * @function create - * @memberof Records.RecordType + * @memberof Folder.FolderData * @static - * @param {Records.IRecordType=} [properties] Properties to set - * @returns {Records.RecordType} RecordType instance + * @param {Folder.IFolderData=} [properties] Properties to set + * @returns {Folder.FolderData} FolderData instance */ - RecordType.create = function create(properties) { - return new RecordType(properties); + FolderData.create = function create(properties) { + return new FolderData(properties); }; /** - * Encodes the specified RecordType message. Does not implicitly {@link Records.RecordType.verify|verify} messages. + * Encodes the specified FolderData message. Does not implicitly {@link Folder.FolderData.verify|verify} messages. * @function encode - * @memberof Records.RecordType + * @memberof Folder.FolderData * @static - * @param {Records.IRecordType} message RecordType message or plain object to encode + * @param {Folder.IFolderData} message FolderData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordType.encode = function encode(message, writer) { + FolderData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordTypeId != null && Object.hasOwnProperty.call(message, "recordTypeId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.recordTypeId); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.content); - if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.scope); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); + if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.parentUid); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.type); + if (message.inheritUserPermissions != null && Object.hasOwnProperty.call(message, "inheritUserPermissions")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.inheritUserPermissions); + if (message.folderKey != null && Object.hasOwnProperty.call(message, "folderKey")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.folderKey); + if (message.ownerInfo != null && Object.hasOwnProperty.call(message, "ownerInfo")) + $root.Folder.UserInfo.encode(message.ownerInfo, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.dateCreated != null && Object.hasOwnProperty.call(message, "dateCreated")) + writer.uint32(/* id 8, wireType 0 =*/64).int64(message.dateCreated); + if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) + writer.uint32(/* id 9, wireType 0 =*/72).int64(message.lastModified); return writer; }; /** - * Encodes the specified RecordType message, length delimited. Does not implicitly {@link Records.RecordType.verify|verify} messages. + * Encodes the specified FolderData message, length delimited. Does not implicitly {@link Folder.FolderData.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordType + * @memberof Folder.FolderData * @static - * @param {Records.IRecordType} message RecordType message or plain object to encode + * @param {Folder.IFolderData} message FolderData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordType.encodeDelimited = function encodeDelimited(message, writer) { + FolderData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordType message from the specified reader or buffer. + * Decodes a FolderData message from the specified reader or buffer. * @function decode - * @memberof Records.RecordType + * @memberof Folder.FolderData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordType} RecordType + * @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 */ - RecordType.decode = function decode(reader, length) { + FolderData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordType(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordTypeId = reader.int32(); + message.folderUid = reader.bytes(); break; } case 2: { - message.content = reader.string(); + message.parentUid = reader.bytes(); break; } case 3: { - message.scope = reader.int32(); + message.data = reader.bytes(); + break; + } + case 4: { + message.type = reader.int32(); + break; + } + case 5: { + message.inheritUserPermissions = reader.int32(); + break; + } + case 6: { + message.folderKey = reader.bytes(); + break; + } + case 7: { + message.ownerInfo = $root.Folder.UserInfo.decode(reader, reader.uint32()); + break; + } + case 8: { + message.dateCreated = reader.int64(); + break; + } + case 9: { + message.lastModified = reader.int64(); break; } default: @@ -171830,176 +172179,312 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordType message from the specified reader or buffer, length delimited. + * Decodes a FolderData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordType + * @memberof Folder.FolderData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordType} RecordType + * @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 */ - RecordType.decodeDelimited = function decodeDelimited(reader) { + FolderData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordType message. + * Verifies a FolderData message. * @function verify - * @memberof Records.RecordType + * @memberof Folder.FolderData * @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) { + FolderData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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) { + 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 "scope: enum value expected"; + return "type: enum value expected"; case 0: case 1: case 2: case 3: - case 4: 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); + 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 RecordType message from a plain object. Also converts values to their respective internal types. + * Creates a FolderData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordType + * @memberof Folder.FolderData * @static * @param {Object.} object Plain object - * @returns {Records.RecordType} RecordType + * @returns {Folder.FolderData} FolderData */ - RecordType.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordType) + FolderData.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.FolderData) return object; - let message = new $root.Records.RecordType(); - if (object.recordTypeId != null) - message.recordTypeId = object.recordTypeId | 0; - if (object.content != null) - message.content = String(object.content); - switch (object.scope) { + let message = new $root.Folder.FolderData(); + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.parentUid != null) + if (typeof object.parentUid === "string") + $util.base64.decode(object.parentUid, message.parentUid = $util.newBuffer($util.base64.length(object.parentUid)), 0); + else if (object.parentUid.length >= 0) + message.parentUid = object.parentUid; + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + switch (object.type) { default: - if (typeof object.scope === "number") { - message.scope = object.scope; + if (typeof object.type === "number") { + message.type = object.type; break; } break; - case "RT_STANDARD": + case "UT_UNKNOWN": case 0: - message.scope = 0; + message.type = 0; break; - case "RT_USER": + case "UT_NORMAL": case 1: - message.scope = 1; + message.type = 1; break; - case "RT_ENTERPRISE": + case "UT_WORKFLOW": case 2: - message.scope = 2; + message.type = 2; break; - case "RT_PAM": + case "UT_TRASHCAN": case 3: - message.scope = 3; + message.type = 3; break; - case "RT_PAM_CONFIGURATION": - case 4: - message.scope = 4; + } + switch (object.inheritUserPermissions) { + default: + if (typeof object.inheritUserPermissions === "number") { + message.inheritUserPermissions = object.inheritUserPermissions; + break; + } + break; + case "BOOLEAN_NO_CHANGE": + case 0: + message.inheritUserPermissions = 0; + break; + case "BOOLEAN_TRUE": + case 1: + message.inheritUserPermissions = 1; + break; + case "BOOLEAN_FALSE": + case 2: + message.inheritUserPermissions = 2; break; } + if (object.folderKey != null) + if (typeof object.folderKey === "string") + $util.base64.decode(object.folderKey, message.folderKey = $util.newBuffer($util.base64.length(object.folderKey)), 0); + else if (object.folderKey.length >= 0) + message.folderKey = object.folderKey; + if (object.ownerInfo != null) { + if (typeof object.ownerInfo !== "object") + throw TypeError(".Folder.FolderData.ownerInfo: object expected"); + message.ownerInfo = $root.Folder.UserInfo.fromObject(object.ownerInfo); + } + if (object.dateCreated != null) + if ($util.Long) + (message.dateCreated = $util.Long.fromValue(object.dateCreated)).unsigned = false; + else if (typeof object.dateCreated === "string") + message.dateCreated = parseInt(object.dateCreated, 10); + else if (typeof object.dateCreated === "number") + message.dateCreated = object.dateCreated; + else if (typeof object.dateCreated === "object") + message.dateCreated = new $util.LongBits(object.dateCreated.low >>> 0, object.dateCreated.high >>> 0).toNumber(); + if (object.lastModified != null) + if ($util.Long) + (message.lastModified = $util.Long.fromValue(object.lastModified)).unsigned = false; + else if (typeof object.lastModified === "string") + message.lastModified = parseInt(object.lastModified, 10); + else if (typeof object.lastModified === "number") + message.lastModified = object.lastModified; + else if (typeof object.lastModified === "object") + message.lastModified = new $util.LongBits(object.lastModified.low >>> 0, object.lastModified.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a RecordType message. Also converts values to other types if specified. + * Creates a plain object from a FolderData message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordType + * @memberof Folder.FolderData * @static - * @param {Records.RecordType} message RecordType + * @param {Folder.FolderData} message FolderData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordType.toObject = function toObject(message, options) { + FolderData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.recordTypeId = 0; - object.content = ""; - object.scope = options.enums === String ? "RT_STANDARD" : 0; + if (options.bytes === String) + object.folderUid = ""; + else { + object.folderUid = []; + if (options.bytes !== Array) + object.folderUid = $util.newBuffer(object.folderUid); + } + if (options.bytes === String) + object.parentUid = ""; + else { + object.parentUid = []; + if (options.bytes !== Array) + object.parentUid = $util.newBuffer(object.parentUid); + } + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + object.type = options.enums === String ? "UT_UNKNOWN" : 0; + object.inheritUserPermissions = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; + if (options.bytes === String) + object.folderKey = ""; + else { + object.folderKey = []; + if (options.bytes !== Array) + object.folderKey = $util.newBuffer(object.folderKey); + } + object.ownerInfo = null; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.dateCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.dateCreated = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.lastModified = options.longs === String ? "0" : 0; } - if (message.recordTypeId != null && message.hasOwnProperty("recordTypeId")) - object.recordTypeId = message.recordTypeId; - if (message.content != null && message.hasOwnProperty("content")) - object.content = message.content; - if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = options.enums === String ? $root.Records.RecordTypeScope[message.scope] === undefined ? message.scope : $root.Records.RecordTypeScope[message.scope] : message.scope; + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.parentUid != null && message.hasOwnProperty("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")) + 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")) + 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")) + 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")) + object.folderKey = options.bytes === String ? $util.base64.encode(message.folderKey, 0, message.folderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderKey) : message.folderKey; + if (message.ownerInfo != null && message.hasOwnProperty("ownerInfo")) + object.ownerInfo = $root.Folder.UserInfo.toObject(message.ownerInfo, options); + if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) + if (typeof message.dateCreated === "number") + object.dateCreated = options.longs === String ? String(message.dateCreated) : message.dateCreated; + else + object.dateCreated = options.longs === String ? $util.Long.prototype.toString.call(message.dateCreated) : options.longs === Number ? new $util.LongBits(message.dateCreated.low >>> 0, message.dateCreated.high >>> 0).toNumber() : message.dateCreated; + if (message.lastModified != null && message.hasOwnProperty("lastModified")) + if (typeof 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; return object; }; /** - * Converts this RecordType to JSON. + * Converts this FolderData to JSON. * @function toJSON - * @memberof Records.RecordType + * @memberof Folder.FolderData * @instance * @returns {Object.} JSON object */ - RecordType.prototype.toJSON = function toJSON() { + FolderData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordType + * Gets the default type url for FolderData * @function getTypeUrl - * @memberof Records.RecordType + * @memberof Folder.FolderData * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordType.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FolderData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordType"; + return typeUrlPrefix + "/Folder.FolderData"; }; - return RecordType; + return FolderData; })(); - Records.RecordTypesRequest = (function() { + Folder.FolderKey = (function() { /** - * Properties of a RecordTypesRequest. - * @memberof Records - * @interface IRecordTypesRequest - * @property {boolean|null} [standard] RecordTypesRequest standard - * @property {boolean|null} [user] RecordTypesRequest user - * @property {boolean|null} [enterprise] RecordTypesRequest enterprise - * @property {boolean|null} [pam] RecordTypesRequest pam + * Properties of a FolderKey. + * @memberof Folder + * @interface IFolderKey + * @property {Uint8Array|null} [folderUid] FolderKey folderUid + * @property {Uint8Array|null} [parentUid] FolderKey parentUid + * @property {Uint8Array|null} [folderKey] FolderKey folderKey + * @property {Folder.FolderKeyEncryptionType|null} [encryptedBy] FolderKey encryptedBy */ /** - * Constructs a new RecordTypesRequest. - * @memberof Records - * @classdesc Represents a RecordTypesRequest. - * @implements IRecordTypesRequest + * Constructs a new FolderKey. + * @memberof Folder + * @classdesc Represents a FolderKey. + * @implements IFolderKey * @constructor - * @param {Records.IRecordTypesRequest=} [properties] Properties to set + * @param {Folder.IFolderKey=} [properties] Properties to set */ - function RecordTypesRequest(properties) { + function FolderKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -172007,117 +172492,117 @@ export const Records = $root.Records = (() => { } /** - * RecordTypesRequest standard. - * @member {boolean} standard - * @memberof Records.RecordTypesRequest + * FolderKey folderUid. + * @member {Uint8Array} folderUid + * @memberof Folder.FolderKey * @instance */ - RecordTypesRequest.prototype.standard = false; + FolderKey.prototype.folderUid = $util.newBuffer([]); /** - * RecordTypesRequest user. - * @member {boolean} user - * @memberof Records.RecordTypesRequest + * FolderKey parentUid. + * @member {Uint8Array} parentUid + * @memberof Folder.FolderKey * @instance */ - RecordTypesRequest.prototype.user = false; + FolderKey.prototype.parentUid = $util.newBuffer([]); /** - * RecordTypesRequest enterprise. - * @member {boolean} enterprise - * @memberof Records.RecordTypesRequest + * FolderKey folderKey. + * @member {Uint8Array} folderKey + * @memberof Folder.FolderKey * @instance */ - RecordTypesRequest.prototype.enterprise = false; + FolderKey.prototype.folderKey = $util.newBuffer([]); /** - * RecordTypesRequest pam. - * @member {boolean} pam - * @memberof Records.RecordTypesRequest + * FolderKey encryptedBy. + * @member {Folder.FolderKeyEncryptionType} encryptedBy + * @memberof Folder.FolderKey * @instance */ - RecordTypesRequest.prototype.pam = false; + FolderKey.prototype.encryptedBy = 0; /** - * Creates a new RecordTypesRequest instance using the specified properties. + * Creates a new FolderKey instance using the specified properties. * @function create - * @memberof Records.RecordTypesRequest + * @memberof Folder.FolderKey * @static - * @param {Records.IRecordTypesRequest=} [properties] Properties to set - * @returns {Records.RecordTypesRequest} RecordTypesRequest instance + * @param {Folder.IFolderKey=} [properties] Properties to set + * @returns {Folder.FolderKey} FolderKey instance */ - RecordTypesRequest.create = function create(properties) { - return new RecordTypesRequest(properties); + FolderKey.create = function create(properties) { + return new FolderKey(properties); }; /** - * Encodes the specified RecordTypesRequest message. Does not implicitly {@link Records.RecordTypesRequest.verify|verify} messages. + * Encodes the specified FolderKey message. Does not implicitly {@link Folder.FolderKey.verify|verify} messages. * @function encode - * @memberof Records.RecordTypesRequest + * @memberof Folder.FolderKey * @static - * @param {Records.IRecordTypesRequest} message RecordTypesRequest message or plain object to encode + * @param {Folder.IFolderKey} message FolderKey message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordTypesRequest.encode = function encode(message, writer) { + FolderKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.standard != null && Object.hasOwnProperty.call(message, "standard")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.standard); - if (message.user != null && Object.hasOwnProperty.call(message, "user")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.user); - if (message.enterprise != null && Object.hasOwnProperty.call(message, "enterprise")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.enterprise); - if (message.pam != null && Object.hasOwnProperty.call(message, "pam")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.pam); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); + if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.parentUid); + if (message.folderKey != null && Object.hasOwnProperty.call(message, "folderKey")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.folderKey); + if (message.encryptedBy != null && Object.hasOwnProperty.call(message, "encryptedBy")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.encryptedBy); return writer; }; /** - * Encodes the specified RecordTypesRequest message, length delimited. Does not implicitly {@link Records.RecordTypesRequest.verify|verify} messages. + * Encodes the specified FolderKey message, length delimited. Does not implicitly {@link Folder.FolderKey.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordTypesRequest + * @memberof Folder.FolderKey * @static - * @param {Records.IRecordTypesRequest} message RecordTypesRequest message or plain object to encode + * @param {Folder.IFolderKey} message FolderKey message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + FolderKey.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordTypesRequest message from the specified reader or buffer. + * Decodes a FolderKey message from the specified reader or buffer. * @function decode - * @memberof Records.RecordTypesRequest + * @memberof Folder.FolderKey * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordTypesRequest} RecordTypesRequest + * @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 */ - RecordTypesRequest.decode = function decode(reader, length) { + FolderKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordTypesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.standard = reader.bool(); + message.folderUid = reader.bytes(); break; } case 2: { - message.user = reader.bool(); + message.parentUid = reader.bytes(); break; } case 3: { - message.enterprise = reader.bool(); + message.folderKey = reader.bytes(); break; } case 4: { - message.pam = reader.bool(); + message.encryptedBy = reader.int32(); break; } default: @@ -172129,152 +172614,215 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a FolderKey message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordTypesRequest + * @memberof Folder.FolderKey * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordTypesRequest} RecordTypesRequest + * @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 */ - RecordTypesRequest.decodeDelimited = function decodeDelimited(reader) { + FolderKey.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordTypesRequest message. + * Verifies a FolderKey message. * @function verify - * @memberof Records.RecordTypesRequest + * @memberof Folder.FolderKey * @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) { + FolderKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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 RecordTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FolderKey message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordTypesRequest + * @memberof Folder.FolderKey * @static * @param {Object.} object Plain object - * @returns {Records.RecordTypesRequest} RecordTypesRequest + * @returns {Folder.FolderKey} FolderKey */ - RecordTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordTypesRequest) + FolderKey.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.FolderKey) return object; - let message = new $root.Records.RecordTypesRequest(); - if (object.standard != null) - message.standard = Boolean(object.standard); - if (object.user != null) - message.user = Boolean(object.user); - if (object.enterprise != null) - message.enterprise = Boolean(object.enterprise); - if (object.pam != null) - message.pam = Boolean(object.pam); + let message = new $root.Folder.FolderKey(); + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.parentUid != null) + if (typeof object.parentUid === "string") + $util.base64.decode(object.parentUid, message.parentUid = $util.newBuffer($util.base64.length(object.parentUid)), 0); + else if (object.parentUid.length >= 0) + message.parentUid = object.parentUid; + if (object.folderKey != null) + if (typeof object.folderKey === "string") + $util.base64.decode(object.folderKey, message.folderKey = $util.newBuffer($util.base64.length(object.folderKey)), 0); + else if (object.folderKey.length >= 0) + message.folderKey = object.folderKey; + switch (object.encryptedBy) { + default: + if (typeof object.encryptedBy === "number") { + message.encryptedBy = object.encryptedBy; + break; + } + break; + case "ENCRYPTED_BY_USER_KEY": + case 0: + message.encryptedBy = 0; + break; + case "ENCRYPTED_BY_PARENT_KEY": + case 1: + message.encryptedBy = 1; + break; + case "ENCRYPTED_BY_TEAM_KEY": + case 2: + message.encryptedBy = 2; + break; + } return message; }; /** - * Creates a plain object from a RecordTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from a FolderKey message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordTypesRequest + * @memberof Folder.FolderKey * @static - * @param {Records.RecordTypesRequest} message RecordTypesRequest + * @param {Folder.FolderKey} message FolderKey * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordTypesRequest.toObject = function toObject(message, options) { + FolderKey.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.standard = false; - object.user = false; - object.enterprise = false; - object.pam = false; + if (options.bytes === String) + object.folderUid = ""; + else { + object.folderUid = []; + if (options.bytes !== Array) + object.folderUid = $util.newBuffer(object.folderUid); + } + if (options.bytes === String) + object.parentUid = ""; + else { + object.parentUid = []; + if (options.bytes !== Array) + object.parentUid = $util.newBuffer(object.parentUid); + } + if (options.bytes === String) + object.folderKey = ""; + else { + object.folderKey = []; + if (options.bytes !== Array) + object.folderKey = $util.newBuffer(object.folderKey); + } + object.encryptedBy = options.enums === String ? "ENCRYPTED_BY_USER_KEY" : 0; } - if (message.standard != null && message.hasOwnProperty("standard")) - object.standard = message.standard; - if (message.user != null && message.hasOwnProperty("user")) - object.user = message.user; - if (message.enterprise != null && message.hasOwnProperty("enterprise")) - object.enterprise = message.enterprise; - if (message.pam != null && message.hasOwnProperty("pam")) - object.pam = message.pam; + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.parentUid != null && message.hasOwnProperty("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")) + 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")) + object.encryptedBy = options.enums === String ? $root.Folder.FolderKeyEncryptionType[message.encryptedBy] === undefined ? message.encryptedBy : $root.Folder.FolderKeyEncryptionType[message.encryptedBy] : message.encryptedBy; return object; }; /** - * Converts this RecordTypesRequest to JSON. + * Converts this FolderKey to JSON. * @function toJSON - * @memberof Records.RecordTypesRequest + * @memberof Folder.FolderKey * @instance * @returns {Object.} JSON object */ - RecordTypesRequest.prototype.toJSON = function toJSON() { + FolderKey.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordTypesRequest + * Gets the default type url for FolderKey * @function getTypeUrl - * @memberof Records.RecordTypesRequest + * @memberof Folder.FolderKey * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FolderKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordTypesRequest"; + return typeUrlPrefix + "/Folder.FolderKey"; }; - return RecordTypesRequest; + return FolderKey; })(); - Records.RecordTypesResponse = (function() { + /** + * FolderKeyEncryptionType enum. + * @name Folder.FolderKeyEncryptionType + * @enum {number} + * @property {number} ENCRYPTED_BY_USER_KEY=0 ENCRYPTED_BY_USER_KEY value + * @property {number} ENCRYPTED_BY_PARENT_KEY=1 ENCRYPTED_BY_PARENT_KEY value + * @property {number} ENCRYPTED_BY_TEAM_KEY=2 ENCRYPTED_BY_TEAM_KEY value + */ + Folder.FolderKeyEncryptionType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ENCRYPTED_BY_USER_KEY"] = 0; + values[valuesById[1] = "ENCRYPTED_BY_PARENT_KEY"] = 1; + values[valuesById[2] = "ENCRYPTED_BY_TEAM_KEY"] = 2; + return values; + })(); + + Folder.FolderAddRequest = (function() { /** - * Properties of a RecordTypesResponse. - * @memberof Records - * @interface IRecordTypesResponse - * @property {Array.|null} [recordTypes] RecordTypesResponse recordTypes - * @property {number|null} [standardCounter] RecordTypesResponse standardCounter - * @property {number|null} [userCounter] RecordTypesResponse userCounter - * @property {number|null} [enterpriseCounter] RecordTypesResponse enterpriseCounter - * @property {number|null} [pamCounter] RecordTypesResponse pamCounter + * Properties of a FolderAddRequest. + * @memberof Folder + * @interface IFolderAddRequest + * @property {Array.|null} [folderData] FolderAddRequest folderData */ /** - * Constructs a new RecordTypesResponse. - * @memberof Records - * @classdesc Represents a RecordTypesResponse. - * @implements IRecordTypesResponse + * Constructs a new FolderAddRequest. + * @memberof Folder + * @classdesc Represents a FolderAddRequest. + * @implements IFolderAddRequest * @constructor - * @param {Records.IRecordTypesResponse=} [properties] Properties to set + * @param {Folder.IFolderAddRequest=} [properties] Properties to set */ - function RecordTypesResponse(properties) { - this.recordTypes = []; + function FolderAddRequest(properties) { + this.folderData = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -172282,134 +172830,78 @@ export const Records = $root.Records = (() => { } /** - * RecordTypesResponse recordTypes. - * @member {Array.} recordTypes - * @memberof Records.RecordTypesResponse - * @instance - */ - RecordTypesResponse.prototype.recordTypes = $util.emptyArray; - - /** - * RecordTypesResponse standardCounter. - * @member {number} standardCounter - * @memberof Records.RecordTypesResponse - * @instance - */ - RecordTypesResponse.prototype.standardCounter = 0; - - /** - * RecordTypesResponse userCounter. - * @member {number} userCounter - * @memberof Records.RecordTypesResponse - * @instance - */ - RecordTypesResponse.prototype.userCounter = 0; - - /** - * RecordTypesResponse enterpriseCounter. - * @member {number} enterpriseCounter - * @memberof Records.RecordTypesResponse - * @instance - */ - RecordTypesResponse.prototype.enterpriseCounter = 0; - - /** - * RecordTypesResponse pamCounter. - * @member {number} pamCounter - * @memberof Records.RecordTypesResponse + * FolderAddRequest folderData. + * @member {Array.} folderData + * @memberof Folder.FolderAddRequest * @instance */ - RecordTypesResponse.prototype.pamCounter = 0; + FolderAddRequest.prototype.folderData = $util.emptyArray; /** - * Creates a new RecordTypesResponse instance using the specified properties. + * Creates a new FolderAddRequest instance using the specified properties. * @function create - * @memberof Records.RecordTypesResponse + * @memberof Folder.FolderAddRequest * @static - * @param {Records.IRecordTypesResponse=} [properties] Properties to set - * @returns {Records.RecordTypesResponse} RecordTypesResponse instance + * @param {Folder.IFolderAddRequest=} [properties] Properties to set + * @returns {Folder.FolderAddRequest} FolderAddRequest instance */ - RecordTypesResponse.create = function create(properties) { - return new RecordTypesResponse(properties); + FolderAddRequest.create = function create(properties) { + return new FolderAddRequest(properties); }; /** - * Encodes the specified RecordTypesResponse message. Does not implicitly {@link Records.RecordTypesResponse.verify|verify} messages. + * Encodes the specified FolderAddRequest message. Does not implicitly {@link Folder.FolderAddRequest.verify|verify} messages. * @function encode - * @memberof Records.RecordTypesResponse + * @memberof Folder.FolderAddRequest * @static - * @param {Records.IRecordTypesResponse} message RecordTypesResponse message or plain object to encode + * @param {Folder.IFolderAddRequest} message FolderAddRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordTypesResponse.encode = function encode(message, writer) { + FolderAddRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordTypes != null && message.recordTypes.length) - for (let i = 0; i < message.recordTypes.length; ++i) - $root.Records.RecordType.encode(message.recordTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.standardCounter != null && Object.hasOwnProperty.call(message, "standardCounter")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.standardCounter); - if (message.userCounter != null && Object.hasOwnProperty.call(message, "userCounter")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.userCounter); - if (message.enterpriseCounter != null && Object.hasOwnProperty.call(message, "enterpriseCounter")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.enterpriseCounter); - if (message.pamCounter != null && Object.hasOwnProperty.call(message, "pamCounter")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.pamCounter); + if (message.folderData != null && message.folderData.length) + for (let i = 0; i < message.folderData.length; ++i) + $root.Folder.FolderData.encode(message.folderData[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RecordTypesResponse message, length delimited. Does not implicitly {@link Records.RecordTypesResponse.verify|verify} messages. + * Encodes the specified FolderAddRequest message, length delimited. Does not implicitly {@link Folder.FolderAddRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordTypesResponse + * @memberof Folder.FolderAddRequest * @static - * @param {Records.IRecordTypesResponse} message RecordTypesResponse message or plain object to encode + * @param {Folder.IFolderAddRequest} message FolderAddRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { + FolderAddRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordTypesResponse message from the specified reader or buffer. + * Decodes a FolderAddRequest message from the specified reader or buffer. * @function decode - * @memberof Records.RecordTypesResponse + * @memberof Folder.FolderAddRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordTypesResponse} RecordTypesResponse + * @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 */ - RecordTypesResponse.decode = function decode(reader, length) { + FolderAddRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordTypesResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.recordTypes && message.recordTypes.length)) - message.recordTypes = []; - message.recordTypes.push($root.Records.RecordType.decode(reader, reader.uint32())); - break; - } - case 2: { - message.standardCounter = reader.int32(); - break; - } - case 3: { - message.userCounter = reader.int32(); - break; - } - case 4: { - message.enterpriseCounter = reader.int32(); - break; - } - case 5: { - message.pamCounter = reader.int32(); + if (!(message.folderData && message.folderData.length)) + message.folderData = []; + message.folderData.push($root.Folder.FolderData.decode(reader, reader.uint32())); break; } default: @@ -172421,174 +172913,159 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordTypesResponse message from the specified reader or buffer, length delimited. + * Decodes a FolderAddRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordTypesResponse + * @memberof Folder.FolderAddRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordTypesResponse} RecordTypesResponse + * @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 */ - RecordTypesResponse.decodeDelimited = function decodeDelimited(reader) { + FolderAddRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordTypesResponse message. + * Verifies a FolderAddRequest message. * @function verify - * @memberof Records.RecordTypesResponse + * @memberof Folder.FolderAddRequest * @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) { + FolderAddRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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) { - let error = $root.Records.RecordType.verify(message.recordTypes[i]); + 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]); if (error) - return "recordTypes." + error; + return "folderData." + 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. + * Creates a FolderAddRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordTypesResponse + * @memberof Folder.FolderAddRequest * @static * @param {Object.} object Plain object - * @returns {Records.RecordTypesResponse} RecordTypesResponse + * @returns {Folder.FolderAddRequest} FolderAddRequest */ - RecordTypesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordTypesResponse) + FolderAddRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.FolderAddRequest) return object; - let message = new $root.Records.RecordTypesResponse(); - if (object.recordTypes) { - if (!Array.isArray(object.recordTypes)) - throw TypeError(".Records.RecordTypesResponse.recordTypes: array expected"); - message.recordTypes = []; - for (let i = 0; i < object.recordTypes.length; ++i) { - if (typeof object.recordTypes[i] !== "object") - throw TypeError(".Records.RecordTypesResponse.recordTypes: object expected"); - message.recordTypes[i] = $root.Records.RecordType.fromObject(object.recordTypes[i]); + let message = new $root.Folder.FolderAddRequest(); + if (object.folderData) { + if (!Array.isArray(object.folderData)) + throw TypeError(".Folder.FolderAddRequest.folderData: array expected"); + message.folderData = []; + for (let i = 0; i < object.folderData.length; ++i) { + if (typeof object.folderData[i] !== "object") + throw TypeError(".Folder.FolderAddRequest.folderData: object expected"); + message.folderData[i] = $root.Folder.FolderData.fromObject(object.folderData[i]); } } - if (object.standardCounter != null) - message.standardCounter = object.standardCounter | 0; - if (object.userCounter != null) - message.userCounter = object.userCounter | 0; - if (object.enterpriseCounter != null) - message.enterpriseCounter = object.enterpriseCounter | 0; - if (object.pamCounter != null) - message.pamCounter = object.pamCounter | 0; return message; }; /** - * Creates a plain object from a RecordTypesResponse message. Also converts values to other types if specified. + * Creates a plain object from a FolderAddRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordTypesResponse + * @memberof Folder.FolderAddRequest * @static - * @param {Records.RecordTypesResponse} message RecordTypesResponse + * @param {Folder.FolderAddRequest} message FolderAddRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordTypesResponse.toObject = function toObject(message, options) { + FolderAddRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.recordTypes = []; - if (options.defaults) { - object.standardCounter = 0; - object.userCounter = 0; - object.enterpriseCounter = 0; - object.pamCounter = 0; - } - if (message.recordTypes && message.recordTypes.length) { - object.recordTypes = []; - for (let j = 0; j < message.recordTypes.length; ++j) - object.recordTypes[j] = $root.Records.RecordType.toObject(message.recordTypes[j], options); + object.folderData = []; + if (message.folderData && message.folderData.length) { + object.folderData = []; + for (let j = 0; j < message.folderData.length; ++j) + object.folderData[j] = $root.Folder.FolderData.toObject(message.folderData[j], options); } - if (message.standardCounter != null && message.hasOwnProperty("standardCounter")) - object.standardCounter = message.standardCounter; - if (message.userCounter != null && message.hasOwnProperty("userCounter")) - object.userCounter = message.userCounter; - if (message.enterpriseCounter != null && message.hasOwnProperty("enterpriseCounter")) - object.enterpriseCounter = message.enterpriseCounter; - if (message.pamCounter != null && message.hasOwnProperty("pamCounter")) - object.pamCounter = message.pamCounter; return object; }; /** - * Converts this RecordTypesResponse to JSON. + * Converts this FolderAddRequest to JSON. * @function toJSON - * @memberof Records.RecordTypesResponse + * @memberof Folder.FolderAddRequest * @instance * @returns {Object.} JSON object */ - RecordTypesResponse.prototype.toJSON = function toJSON() { + FolderAddRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordTypesResponse + * Gets the default type url for FolderAddRequest * @function getTypeUrl - * @memberof Records.RecordTypesResponse + * @memberof Folder.FolderAddRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordTypesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FolderAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordTypesResponse"; + return typeUrlPrefix + "/Folder.FolderAddRequest"; }; - return RecordTypesResponse; + return FolderAddRequest; })(); - Records.RecordTypeModifyResponse = (function() { + /** + * FolderModifyStatus enum. + * @name Folder.FolderModifyStatus + * @enum {number} + * @property {number} SUCCESS=0 SUCCESS value + * @property {number} BAD_REQUEST=1 BAD_REQUEST value + * @property {number} ACCESS_DENIED=2 ACCESS_DENIED value + * @property {number} NOT_FOUND=3 NOT_FOUND value + */ + Folder.FolderModifyStatus = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SUCCESS"] = 0; + values[valuesById[1] = "BAD_REQUEST"] = 1; + values[valuesById[2] = "ACCESS_DENIED"] = 2; + values[valuesById[3] = "NOT_FOUND"] = 3; + return values; + })(); + + Folder.FolderModifyResult = (function() { /** - * Properties of a RecordTypeModifyResponse. - * @memberof Records - * @interface IRecordTypeModifyResponse - * @property {number|null} [recordTypeId] RecordTypeModifyResponse recordTypeId - * @property {number|null} [counter] RecordTypeModifyResponse counter + * Properties of a FolderModifyResult. + * @memberof Folder + * @interface IFolderModifyResult + * @property {Uint8Array|null} [folderUid] FolderModifyResult folderUid + * @property {Folder.FolderModifyStatus|null} [status] FolderModifyResult status + * @property {string|null} [message] FolderModifyResult message */ /** - * Constructs a new RecordTypeModifyResponse. - * @memberof Records - * @classdesc Represents a RecordTypeModifyResponse. - * @implements IRecordTypeModifyResponse + * Constructs a new FolderModifyResult. + * @memberof Folder + * @classdesc Represents a FolderModifyResult. + * @implements IFolderModifyResult * @constructor - * @param {Records.IRecordTypeModifyResponse=} [properties] Properties to set + * @param {Folder.IFolderModifyResult=} [properties] Properties to set */ - function RecordTypeModifyResponse(properties) { + function FolderModifyResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -172596,89 +173073,103 @@ export const Records = $root.Records = (() => { } /** - * RecordTypeModifyResponse recordTypeId. - * @member {number} recordTypeId - * @memberof Records.RecordTypeModifyResponse + * FolderModifyResult folderUid. + * @member {Uint8Array} folderUid + * @memberof Folder.FolderModifyResult * @instance */ - RecordTypeModifyResponse.prototype.recordTypeId = 0; + FolderModifyResult.prototype.folderUid = $util.newBuffer([]); /** - * RecordTypeModifyResponse counter. - * @member {number} counter - * @memberof Records.RecordTypeModifyResponse + * FolderModifyResult status. + * @member {Folder.FolderModifyStatus} status + * @memberof Folder.FolderModifyResult * @instance */ - RecordTypeModifyResponse.prototype.counter = 0; + FolderModifyResult.prototype.status = 0; /** - * Creates a new RecordTypeModifyResponse instance using the specified properties. + * FolderModifyResult message. + * @member {string} message + * @memberof Folder.FolderModifyResult + * @instance + */ + FolderModifyResult.prototype.message = ""; + + /** + * Creates a new FolderModifyResult instance using the specified properties. * @function create - * @memberof Records.RecordTypeModifyResponse + * @memberof Folder.FolderModifyResult * @static - * @param {Records.IRecordTypeModifyResponse=} [properties] Properties to set - * @returns {Records.RecordTypeModifyResponse} RecordTypeModifyResponse instance + * @param {Folder.IFolderModifyResult=} [properties] Properties to set + * @returns {Folder.FolderModifyResult} FolderModifyResult instance */ - RecordTypeModifyResponse.create = function create(properties) { - return new RecordTypeModifyResponse(properties); + FolderModifyResult.create = function create(properties) { + return new FolderModifyResult(properties); }; /** - * Encodes the specified RecordTypeModifyResponse message. Does not implicitly {@link Records.RecordTypeModifyResponse.verify|verify} messages. + * Encodes the specified FolderModifyResult message. Does not implicitly {@link Folder.FolderModifyResult.verify|verify} messages. * @function encode - * @memberof Records.RecordTypeModifyResponse + * @memberof Folder.FolderModifyResult * @static - * @param {Records.IRecordTypeModifyResponse} message RecordTypeModifyResponse message or plain object to encode + * @param {Folder.IFolderModifyResult} message FolderModifyResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordTypeModifyResponse.encode = function encode(message, writer) { + FolderModifyResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordTypeId != null && Object.hasOwnProperty.call(message, "recordTypeId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.recordTypeId); - if (message.counter != null && Object.hasOwnProperty.call(message, "counter")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.counter); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); return writer; }; /** - * Encodes the specified RecordTypeModifyResponse message, length delimited. Does not implicitly {@link Records.RecordTypeModifyResponse.verify|verify} messages. + * Encodes the specified FolderModifyResult message, length delimited. Does not implicitly {@link Folder.FolderModifyResult.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordTypeModifyResponse + * @memberof Folder.FolderModifyResult * @static - * @param {Records.IRecordTypeModifyResponse} message RecordTypeModifyResponse message or plain object to encode + * @param {Folder.IFolderModifyResult} message FolderModifyResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordTypeModifyResponse.encodeDelimited = function encodeDelimited(message, writer) { + FolderModifyResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordTypeModifyResponse message from the specified reader or buffer. + * Decodes a FolderModifyResult message from the specified reader or buffer. * @function decode - * @memberof Records.RecordTypeModifyResponse + * @memberof Folder.FolderModifyResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordTypeModifyResponse} RecordTypeModifyResponse + * @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 */ - RecordTypeModifyResponse.decode = function decode(reader, length) { + FolderModifyResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordTypeModifyResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderModifyResult(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordTypeId = reader.int32(); + message.folderUid = reader.bytes(); break; } case 2: { - message.counter = reader.int32(); + message.status = reader.int32(); + break; + } + case 3: { + message.message = reader.string(); break; } default: @@ -172690,133 +173181,178 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordTypeModifyResponse message from the specified reader or buffer, length delimited. + * Decodes a FolderModifyResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordTypeModifyResponse + * @memberof Folder.FolderModifyResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordTypeModifyResponse} RecordTypeModifyResponse + * @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 */ - RecordTypeModifyResponse.decodeDelimited = function decodeDelimited(reader) { + FolderModifyResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordTypeModifyResponse message. + * Verifies a FolderModifyResult message. * @function verify - * @memberof Records.RecordTypeModifyResponse + * @memberof Folder.FolderModifyResult * @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) { + FolderModifyResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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 RecordTypeModifyResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FolderModifyResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordTypeModifyResponse + * @memberof Folder.FolderModifyResult * @static * @param {Object.} object Plain object - * @returns {Records.RecordTypeModifyResponse} RecordTypeModifyResponse + * @returns {Folder.FolderModifyResult} FolderModifyResult */ - RecordTypeModifyResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordTypeModifyResponse) + FolderModifyResult.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.FolderModifyResult) return object; - let message = new $root.Records.RecordTypeModifyResponse(); - if (object.recordTypeId != null) - message.recordTypeId = object.recordTypeId | 0; - if (object.counter != null) - message.counter = object.counter | 0; + let message = new $root.Folder.FolderModifyResult(); + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; + case "SUCCESS": + case 0: + message.status = 0; + break; + case "BAD_REQUEST": + case 1: + message.status = 1; + break; + case "ACCESS_DENIED": + case 2: + message.status = 2; + break; + case "NOT_FOUND": + case 3: + message.status = 3; + break; + } + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a RecordTypeModifyResponse message. Also converts values to other types if specified. + * Creates a plain object from a FolderModifyResult message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordTypeModifyResponse + * @memberof Folder.FolderModifyResult * @static - * @param {Records.RecordTypeModifyResponse} message RecordTypeModifyResponse + * @param {Folder.FolderModifyResult} message FolderModifyResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordTypeModifyResponse.toObject = function toObject(message, options) { + FolderModifyResult.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.recordTypeId = 0; - object.counter = 0; + if (options.bytes === String) + object.folderUid = ""; + else { + object.folderUid = []; + if (options.bytes !== Array) + object.folderUid = $util.newBuffer(object.folderUid); + } + object.status = options.enums === String ? "SUCCESS" : 0; + object.message = ""; } - if (message.recordTypeId != null && message.hasOwnProperty("recordTypeId")) - object.recordTypeId = message.recordTypeId; - if (message.counter != null && message.hasOwnProperty("counter")) - object.counter = message.counter; + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.status != null && message.hasOwnProperty("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")) + object.message = message.message; return object; }; /** - * Converts this RecordTypeModifyResponse to JSON. + * Converts this FolderModifyResult to JSON. * @function toJSON - * @memberof Records.RecordTypeModifyResponse + * @memberof Folder.FolderModifyResult * @instance * @returns {Object.} JSON object */ - RecordTypeModifyResponse.prototype.toJSON = function toJSON() { + FolderModifyResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordTypeModifyResponse + * Gets the default type url for FolderModifyResult * @function getTypeUrl - * @memberof Records.RecordTypeModifyResponse + * @memberof Folder.FolderModifyResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordTypeModifyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FolderModifyResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordTypeModifyResponse"; + return typeUrlPrefix + "/Folder.FolderModifyResult"; }; - return RecordTypeModifyResponse; + return FolderModifyResult; })(); - Records.RecordsGetRequest = (function() { + Folder.FolderAddResponse = (function() { /** - * Properties of a RecordsGetRequest. - * @memberof Records - * @interface IRecordsGetRequest - * @property {Array.|null} [recordUids] RecordsGetRequest recordUids - * @property {number|Long|null} [clientTime] RecordsGetRequest clientTime + * Properties of a FolderAddResponse. + * @memberof Folder + * @interface IFolderAddResponse + * @property {Array.|null} [folderAddResults] FolderAddResponse folderAddResults */ /** - * Constructs a new RecordsGetRequest. - * @memberof Records - * @classdesc Represents a RecordsGetRequest. - * @implements IRecordsGetRequest + * Constructs a new FolderAddResponse. + * @memberof Folder + * @classdesc Represents a FolderAddResponse. + * @implements IFolderAddResponse * @constructor - * @param {Records.IRecordsGetRequest=} [properties] Properties to set + * @param {Folder.IFolderAddResponse=} [properties] Properties to set */ - function RecordsGetRequest(properties) { - this.recordUids = []; + function FolderAddResponse(properties) { + this.folderAddResults = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -172824,92 +173360,78 @@ export const Records = $root.Records = (() => { } /** - * RecordsGetRequest recordUids. - * @member {Array.} recordUids - * @memberof Records.RecordsGetRequest - * @instance - */ - RecordsGetRequest.prototype.recordUids = $util.emptyArray; - - /** - * RecordsGetRequest clientTime. - * @member {number|Long} clientTime - * @memberof Records.RecordsGetRequest + * FolderAddResponse folderAddResults. + * @member {Array.} folderAddResults + * @memberof Folder.FolderAddResponse * @instance */ - RecordsGetRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FolderAddResponse.prototype.folderAddResults = $util.emptyArray; /** - * Creates a new RecordsGetRequest instance using the specified properties. + * Creates a new FolderAddResponse instance using the specified properties. * @function create - * @memberof Records.RecordsGetRequest + * @memberof Folder.FolderAddResponse * @static - * @param {Records.IRecordsGetRequest=} [properties] Properties to set - * @returns {Records.RecordsGetRequest} RecordsGetRequest instance + * @param {Folder.IFolderAddResponse=} [properties] Properties to set + * @returns {Folder.FolderAddResponse} FolderAddResponse instance */ - RecordsGetRequest.create = function create(properties) { - return new RecordsGetRequest(properties); + FolderAddResponse.create = function create(properties) { + return new FolderAddResponse(properties); }; /** - * Encodes the specified RecordsGetRequest message. Does not implicitly {@link Records.RecordsGetRequest.verify|verify} messages. + * Encodes the specified FolderAddResponse message. Does not implicitly {@link Folder.FolderAddResponse.verify|verify} messages. * @function encode - * @memberof Records.RecordsGetRequest + * @memberof Folder.FolderAddResponse * @static - * @param {Records.IRecordsGetRequest} message RecordsGetRequest message or plain object to encode + * @param {Folder.IFolderAddResponse} message FolderAddResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsGetRequest.encode = function encode(message, writer) { + FolderAddResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUids != null && message.recordUids.length) - for (let i = 0; i < message.recordUids.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUids[i]); - if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); + if (message.folderAddResults != null && message.folderAddResults.length) + for (let i = 0; i < message.folderAddResults.length; ++i) + $root.Folder.FolderModifyResult.encode(message.folderAddResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RecordsGetRequest message, length delimited. Does not implicitly {@link Records.RecordsGetRequest.verify|verify} messages. + * Encodes the specified FolderAddResponse message, length delimited. Does not implicitly {@link Folder.FolderAddResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordsGetRequest + * @memberof Folder.FolderAddResponse * @static - * @param {Records.IRecordsGetRequest} message RecordsGetRequest message or plain object to encode + * @param {Folder.IFolderAddResponse} message FolderAddResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsGetRequest.encodeDelimited = function encodeDelimited(message, writer) { + FolderAddResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordsGetRequest message from the specified reader or buffer. + * Decodes a FolderAddResponse message from the specified reader or buffer. * @function decode - * @memberof Records.RecordsGetRequest + * @memberof Folder.FolderAddResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordsGetRequest} RecordsGetRequest + * @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 */ - RecordsGetRequest.decode = function decode(reader, length) { + FolderAddResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsGetRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderAddResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.recordUids && message.recordUids.length)) - message.recordUids = []; - message.recordUids.push(reader.bytes()); - break; - } - case 2: { - message.clientTime = reader.int64(); + if (!(message.folderAddResults && message.folderAddResults.length)) + message.folderAddResults = []; + message.folderAddResults.push($root.Folder.FolderModifyResult.decode(reader, reader.uint32())); break; } default: @@ -172921,169 +173443,140 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordsGetRequest message from the specified reader or buffer, length delimited. + * Decodes a FolderAddResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordsGetRequest + * @memberof Folder.FolderAddResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsGetRequest} RecordsGetRequest + * @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 */ - RecordsGetRequest.decodeDelimited = function decodeDelimited(reader) { + FolderAddResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordsGetRequest message. + * Verifies a FolderAddResponse message. * @function verify - * @memberof Records.RecordsGetRequest + * @memberof Folder.FolderAddResponse * @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) { + FolderAddResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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]); + if (error) + return "folderAddResults." + 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 RecordsGetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FolderAddResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordsGetRequest + * @memberof Folder.FolderAddResponse * @static * @param {Object.} object Plain object - * @returns {Records.RecordsGetRequest} RecordsGetRequest + * @returns {Folder.FolderAddResponse} FolderAddResponse */ - RecordsGetRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsGetRequest) + FolderAddResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.FolderAddResponse) return object; - let message = new $root.Records.RecordsGetRequest(); - if (object.recordUids) { - if (!Array.isArray(object.recordUids)) - throw TypeError(".Records.RecordsGetRequest.recordUids: array expected"); - message.recordUids = []; - for (let i = 0; i < object.recordUids.length; ++i) - if (typeof object.recordUids[i] === "string") - $util.base64.decode(object.recordUids[i], message.recordUids[i] = $util.newBuffer($util.base64.length(object.recordUids[i])), 0); - else if (object.recordUids[i].length >= 0) - message.recordUids[i] = object.recordUids[i]; + let message = new $root.Folder.FolderAddResponse(); + if (object.folderAddResults) { + if (!Array.isArray(object.folderAddResults)) + throw TypeError(".Folder.FolderAddResponse.folderAddResults: array expected"); + message.folderAddResults = []; + for (let i = 0; i < object.folderAddResults.length; ++i) { + if (typeof object.folderAddResults[i] !== "object") + throw TypeError(".Folder.FolderAddResponse.folderAddResults: object expected"); + message.folderAddResults[i] = $root.Folder.FolderModifyResult.fromObject(object.folderAddResults[i]); + } } - if (object.clientTime != null) - if ($util.Long) - (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = false; - else if (typeof object.clientTime === "string") - message.clientTime = parseInt(object.clientTime, 10); - else if (typeof object.clientTime === "number") - message.clientTime = object.clientTime; - else if (typeof object.clientTime === "object") - message.clientTime = new $util.LongBits(object.clientTime.low >>> 0, object.clientTime.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a RecordsGetRequest message. Also converts values to other types if specified. + * Creates a plain object from a FolderAddResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordsGetRequest + * @memberof Folder.FolderAddResponse * @static - * @param {Records.RecordsGetRequest} message RecordsGetRequest + * @param {Folder.FolderAddResponse} message FolderAddResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsGetRequest.toObject = function toObject(message, options) { + FolderAddResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.recordUids = []; - if (options.defaults) - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.clientTime = options.longs === String ? "0" : 0; - if (message.recordUids && message.recordUids.length) { - object.recordUids = []; - for (let j = 0; j < message.recordUids.length; ++j) - object.recordUids[j] = options.bytes === String ? $util.base64.encode(message.recordUids[j], 0, message.recordUids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUids[j]) : message.recordUids[j]; + object.folderAddResults = []; + if (message.folderAddResults && message.folderAddResults.length) { + object.folderAddResults = []; + for (let j = 0; j < message.folderAddResults.length; ++j) + object.folderAddResults[j] = $root.Folder.FolderModifyResult.toObject(message.folderAddResults[j], options); } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (typeof message.clientTime === "number") - object.clientTime = options.longs === String ? String(message.clientTime) : message.clientTime; - else - object.clientTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientTime) : options.longs === Number ? new $util.LongBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0).toNumber() : message.clientTime; return object; }; /** - * Converts this RecordsGetRequest to JSON. + * Converts this FolderAddResponse to JSON. * @function toJSON - * @memberof Records.RecordsGetRequest + * @memberof Folder.FolderAddResponse * @instance * @returns {Object.} JSON object */ - RecordsGetRequest.prototype.toJSON = function toJSON() { + FolderAddResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordsGetRequest + * Gets the default type url for FolderAddResponse * @function getTypeUrl - * @memberof Records.RecordsGetRequest + * @memberof Folder.FolderAddResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordsGetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FolderAddResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordsGetRequest"; + return typeUrlPrefix + "/Folder.FolderAddResponse"; }; - return RecordsGetRequest; + return FolderAddResponse; })(); - Records.Record = (function() { + Folder.FolderUpdateRequest = (function() { /** - * Properties of a Record. - * @memberof Records - * @interface IRecord - * @property {Uint8Array|null} [recordUid] Record recordUid - * @property {Uint8Array|null} [recordKey] Record recordKey - * @property {Records.RecordKeyType|null} [recordKeyType] Record recordKeyType - * @property {Uint8Array|null} [data] Record data - * @property {Uint8Array|null} [extra] Record extra - * @property {number|null} [version] Record version - * @property {number|Long|null} [clientModifiedTime] Record clientModifiedTime - * @property {number|Long|null} [revision] Record revision - * @property {Array.|null} [fileIds] Record fileIds + * Properties of a FolderUpdateRequest. + * @memberof Folder + * @interface IFolderUpdateRequest + * @property {Array.|null} [folderData] FolderUpdateRequest folderData */ /** - * Constructs a new Record. - * @memberof Records - * @classdesc Represents a Record. - * @implements IRecord + * Constructs a new FolderUpdateRequest. + * @memberof Folder + * @classdesc Represents a FolderUpdateRequest. + * @implements IFolderUpdateRequest * @constructor - * @param {Records.IRecord=} [properties] Properties to set + * @param {Folder.IFolderUpdateRequest=} [properties] Properties to set */ - function Record(properties) { - this.fileIds = []; + function FolderUpdateRequest(properties) { + this.folderData = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -173091,190 +173584,78 @@ export const Records = $root.Records = (() => { } /** - * Record recordUid. - * @member {Uint8Array} recordUid - * @memberof Records.Record - * @instance - */ - Record.prototype.recordUid = $util.newBuffer([]); - - /** - * Record recordKey. - * @member {Uint8Array} recordKey - * @memberof Records.Record - * @instance - */ - Record.prototype.recordKey = $util.newBuffer([]); - - /** - * Record recordKeyType. - * @member {Records.RecordKeyType} recordKeyType - * @memberof Records.Record - * @instance - */ - Record.prototype.recordKeyType = 0; - - /** - * Record data. - * @member {Uint8Array} data - * @memberof Records.Record - * @instance - */ - Record.prototype.data = $util.newBuffer([]); - - /** - * Record extra. - * @member {Uint8Array} extra - * @memberof Records.Record - * @instance - */ - Record.prototype.extra = $util.newBuffer([]); - - /** - * Record version. - * @member {number} version - * @memberof Records.Record - * @instance - */ - Record.prototype.version = 0; - - /** - * Record clientModifiedTime. - * @member {number|Long} clientModifiedTime - * @memberof Records.Record - * @instance - */ - Record.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Record revision. - * @member {number|Long} revision - * @memberof Records.Record - * @instance - */ - Record.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Record fileIds. - * @member {Array.} fileIds - * @memberof Records.Record + * FolderUpdateRequest folderData. + * @member {Array.} folderData + * @memberof Folder.FolderUpdateRequest * @instance */ - Record.prototype.fileIds = $util.emptyArray; + FolderUpdateRequest.prototype.folderData = $util.emptyArray; /** - * Creates a new Record instance using the specified properties. + * Creates a new FolderUpdateRequest instance using the specified properties. * @function create - * @memberof Records.Record + * @memberof Folder.FolderUpdateRequest * @static - * @param {Records.IRecord=} [properties] Properties to set - * @returns {Records.Record} Record instance + * @param {Folder.IFolderUpdateRequest=} [properties] Properties to set + * @returns {Folder.FolderUpdateRequest} FolderUpdateRequest instance */ - Record.create = function create(properties) { - return new Record(properties); + FolderUpdateRequest.create = function create(properties) { + return new FolderUpdateRequest(properties); }; /** - * Encodes the specified Record message. Does not implicitly {@link Records.Record.verify|verify} messages. + * Encodes the specified FolderUpdateRequest message. Does not implicitly {@link Folder.FolderUpdateRequest.verify|verify} messages. * @function encode - * @memberof Records.Record + * @memberof Folder.FolderUpdateRequest * @static - * @param {Records.IRecord} message Record message or plain object to encode + * @param {Folder.IFolderUpdateRequest} message FolderUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Record.encode = function encode(message, writer) { + FolderUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordKey); - if (message.recordKeyType != null && Object.hasOwnProperty.call(message, "recordKeyType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.recordKeyType); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); - if (message.extra != null && Object.hasOwnProperty.call(message, "extra")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.extra); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.version); - if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.clientModifiedTime); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.revision); - if (message.fileIds != null && message.fileIds.length) - for (let i = 0; i < message.fileIds.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.fileIds[i]); + if (message.folderData != null && message.folderData.length) + for (let i = 0; i < message.folderData.length; ++i) + $root.Folder.FolderData.encode(message.folderData[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Record message, length delimited. Does not implicitly {@link Records.Record.verify|verify} messages. + * Encodes the specified FolderUpdateRequest message, length delimited. Does not implicitly {@link Folder.FolderUpdateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Records.Record + * @memberof Folder.FolderUpdateRequest * @static - * @param {Records.IRecord} message Record message or plain object to encode + * @param {Folder.IFolderUpdateRequest} message FolderUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Record.encodeDelimited = function encodeDelimited(message, writer) { + FolderUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Record message from the specified reader or buffer. + * Decodes a FolderUpdateRequest message from the specified reader or buffer. * @function decode - * @memberof Records.Record + * @memberof Folder.FolderUpdateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.Record} Record + * @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 */ - Record.decode = function decode(reader, length) { + FolderUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.Record(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); - break; - } - case 2: { - message.recordKey = reader.bytes(); - break; - } - case 3: { - message.recordKeyType = reader.int32(); - break; - } - case 4: { - message.data = reader.bytes(); - break; - } - case 5: { - message.extra = reader.bytes(); - break; - } - case 6: { - message.version = reader.int32(); - break; - } - case 7: { - message.clientModifiedTime = reader.int64(); - break; - } - case 8: { - message.revision = reader.int64(); - break; - } - case 9: { - if (!(message.fileIds && message.fileIds.length)) - message.fileIds = []; - message.fileIds.push(reader.bytes()); + if (!(message.folderData && message.folderData.length)) + message.folderData = []; + message.folderData.push($root.Folder.FolderData.decode(reader, reader.uint32())); break; } default: @@ -173286,337 +173667,140 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a Record message from the specified reader or buffer, length delimited. + * Decodes a FolderUpdateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.Record + * @memberof Folder.FolderUpdateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.Record} Record + * @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 */ - Record.decodeDelimited = function decodeDelimited(reader) { + FolderUpdateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Record message. + * Verifies a FolderUpdateRequest message. * @function verify - * @memberof Records.Record + * @memberof Folder.FolderUpdateRequest * @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) { + FolderUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; - if (message.recordKeyType != null && message.hasOwnProperty("recordKeyType")) - switch (message.recordKeyType) { - default: - return "recordKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + 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]); + if (error) + return "folderData." + 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.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. + * Creates a FolderUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.Record + * @memberof Folder.FolderUpdateRequest * @static * @param {Object.} object Plain object - * @returns {Records.Record} Record + * @returns {Folder.FolderUpdateRequest} FolderUpdateRequest */ - Record.fromObject = function fromObject(object) { - if (object instanceof $root.Records.Record) + FolderUpdateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.FolderUpdateRequest) return object; - let message = new $root.Records.Record(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; - switch (object.recordKeyType) { - default: - if (typeof object.recordKeyType === "number") { - message.recordKeyType = object.recordKeyType; - break; + let message = new $root.Folder.FolderUpdateRequest(); + if (object.folderData) { + if (!Array.isArray(object.folderData)) + throw TypeError(".Folder.FolderUpdateRequest.folderData: array expected"); + message.folderData = []; + for (let i = 0; i < object.folderData.length; ++i) { + if (typeof object.folderData[i] !== "object") + throw TypeError(".Folder.FolderUpdateRequest.folderData: object expected"); + message.folderData[i] = $root.Folder.FolderData.fromObject(object.folderData[i]); } - break; - case "NO_KEY": - case 0: - message.recordKeyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.recordKeyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.recordKeyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.recordKeyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.recordKeyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.recordKeyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.recordKeyType = 6; - break; - } - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - if (object.extra != null) - if (typeof object.extra === "string") - $util.base64.decode(object.extra, message.extra = $util.newBuffer($util.base64.length(object.extra)), 0); - else if (object.extra.length >= 0) - message.extra = object.extra; - if (object.version != null) - message.version = object.version | 0; - if (object.clientModifiedTime != null) - if ($util.Long) - (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; - else if (typeof object.clientModifiedTime === "string") - message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); - else if (typeof object.clientModifiedTime === "number") - message.clientModifiedTime = object.clientModifiedTime; - else if (typeof object.clientModifiedTime === "object") - message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.fileIds) { - if (!Array.isArray(object.fileIds)) - throw TypeError(".Records.Record.fileIds: array expected"); - message.fileIds = []; - for (let i = 0; i < object.fileIds.length; ++i) - if (typeof object.fileIds[i] === "string") - $util.base64.decode(object.fileIds[i], message.fileIds[i] = $util.newBuffer($util.base64.length(object.fileIds[i])), 0); - else if (object.fileIds[i].length >= 0) - message.fileIds[i] = object.fileIds[i]; } return message; }; /** - * Creates a plain object from a Record message. Also converts values to other types if specified. + * Creates a plain object from a FolderUpdateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Records.Record + * @memberof Folder.FolderUpdateRequest * @static - * @param {Records.Record} message Record + * @param {Folder.FolderUpdateRequest} message FolderUpdateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Record.toObject = function toObject(message, options) { + FolderUpdateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.fileIds = []; - if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if (options.bytes === String) - object.recordKey = ""; - else { - object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); - } - object.recordKeyType = options.enums === String ? "NO_KEY" : 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - if (options.bytes === String) - object.extra = ""; - else { - object.extra = []; - if (options.bytes !== Array) - object.extra = $util.newBuffer(object.extra); - } - object.version = 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.clientModifiedTime = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.recordKeyType != null && message.hasOwnProperty("recordKeyType")) - object.recordKeyType = options.enums === String ? $root.Records.RecordKeyType[message.recordKeyType] === undefined ? message.recordKeyType : $root.Records.RecordKeyType[message.recordKeyType] : message.recordKeyType; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.extra != null && message.hasOwnProperty("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")) - object.version = message.version; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof message.clientModifiedTime === "number") - object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; - else - object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; - if (message.revision != null && message.hasOwnProperty("revision")) - 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.fileIds && message.fileIds.length) { - object.fileIds = []; - for (let j = 0; j < message.fileIds.length; ++j) - object.fileIds[j] = options.bytes === String ? $util.base64.encode(message.fileIds[j], 0, message.fileIds[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.fileIds[j]) : message.fileIds[j]; + object.folderData = []; + if (message.folderData && message.folderData.length) { + object.folderData = []; + for (let j = 0; j < message.folderData.length; ++j) + object.folderData[j] = $root.Folder.FolderData.toObject(message.folderData[j], options); } return object; }; /** - * Converts this Record to JSON. + * Converts this FolderUpdateRequest to JSON. * @function toJSON - * @memberof Records.Record + * @memberof Folder.FolderUpdateRequest * @instance * @returns {Object.} JSON object */ - Record.prototype.toJSON = function toJSON() { + FolderUpdateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Record + * Gets the default type url for FolderUpdateRequest * @function getTypeUrl - * @memberof Records.Record + * @memberof Folder.FolderUpdateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Record.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FolderUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.Record"; + return typeUrlPrefix + "/Folder.FolderUpdateRequest"; }; - return Record; - })(); - - /** - * RecordKeyType enum. - * @name Records.RecordKeyType - * @enum {number} - * @property {number} NO_KEY=0 NO_KEY value - * @property {number} ENCRYPTED_BY_DATA_KEY=1 ENCRYPTED_BY_DATA_KEY value - * @property {number} ENCRYPTED_BY_PUBLIC_KEY=2 ENCRYPTED_BY_PUBLIC_KEY value - * @property {number} ENCRYPTED_BY_DATA_KEY_GCM=3 ENCRYPTED_BY_DATA_KEY_GCM value - * @property {number} ENCRYPTED_BY_PUBLIC_KEY_ECC=4 ENCRYPTED_BY_PUBLIC_KEY_ECC value - * @property {number} ENCRYPTED_BY_ROOT_KEY_CBC=5 ENCRYPTED_BY_ROOT_KEY_CBC value - * @property {number} ENCRYPTED_BY_ROOT_KEY_GCM=6 ENCRYPTED_BY_ROOT_KEY_GCM value - */ - Records.RecordKeyType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NO_KEY"] = 0; - values[valuesById[1] = "ENCRYPTED_BY_DATA_KEY"] = 1; - values[valuesById[2] = "ENCRYPTED_BY_PUBLIC_KEY"] = 2; - values[valuesById[3] = "ENCRYPTED_BY_DATA_KEY_GCM"] = 3; - values[valuesById[4] = "ENCRYPTED_BY_PUBLIC_KEY_ECC"] = 4; - values[valuesById[5] = "ENCRYPTED_BY_ROOT_KEY_CBC"] = 5; - values[valuesById[6] = "ENCRYPTED_BY_ROOT_KEY_GCM"] = 6; - return values; + return FolderUpdateRequest; })(); - Records.FolderRecordKey = (function() { + Folder.FolderUpdateResponse = (function() { /** - * Properties of a FolderRecordKey. - * @memberof Records - * @interface IFolderRecordKey - * @property {Uint8Array|null} [folderUid] FolderRecordKey folderUid - * @property {Uint8Array|null} [recordUid] FolderRecordKey recordUid - * @property {Uint8Array|null} [recordKey] FolderRecordKey recordKey + * Properties of a FolderUpdateResponse. + * @memberof Folder + * @interface IFolderUpdateResponse + * @property {Array.|null} [folderUpdateResults] FolderUpdateResponse folderUpdateResults */ /** - * Constructs a new FolderRecordKey. - * @memberof Records - * @classdesc Represents a FolderRecordKey. - * @implements IFolderRecordKey + * Constructs a new FolderUpdateResponse. + * @memberof Folder + * @classdesc Represents a FolderUpdateResponse. + * @implements IFolderUpdateResponse * @constructor - * @param {Records.IFolderRecordKey=} [properties] Properties to set + * @param {Folder.IFolderUpdateResponse=} [properties] Properties to set */ - function FolderRecordKey(properties) { + function FolderUpdateResponse(properties) { + this.folderUpdateResults = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -173624,103 +173808,78 @@ export const Records = $root.Records = (() => { } /** - * FolderRecordKey folderUid. - * @member {Uint8Array} folderUid - * @memberof Records.FolderRecordKey - * @instance - */ - FolderRecordKey.prototype.folderUid = $util.newBuffer([]); - - /** - * FolderRecordKey recordUid. - * @member {Uint8Array} recordUid - * @memberof Records.FolderRecordKey - * @instance - */ - FolderRecordKey.prototype.recordUid = $util.newBuffer([]); - - /** - * FolderRecordKey recordKey. - * @member {Uint8Array} recordKey - * @memberof Records.FolderRecordKey + * FolderUpdateResponse folderUpdateResults. + * @member {Array.} folderUpdateResults + * @memberof Folder.FolderUpdateResponse * @instance */ - FolderRecordKey.prototype.recordKey = $util.newBuffer([]); + FolderUpdateResponse.prototype.folderUpdateResults = $util.emptyArray; /** - * Creates a new FolderRecordKey instance using the specified properties. + * Creates a new FolderUpdateResponse instance using the specified properties. * @function create - * @memberof Records.FolderRecordKey + * @memberof Folder.FolderUpdateResponse * @static - * @param {Records.IFolderRecordKey=} [properties] Properties to set - * @returns {Records.FolderRecordKey} FolderRecordKey instance + * @param {Folder.IFolderUpdateResponse=} [properties] Properties to set + * @returns {Folder.FolderUpdateResponse} FolderUpdateResponse instance */ - FolderRecordKey.create = function create(properties) { - return new FolderRecordKey(properties); + FolderUpdateResponse.create = function create(properties) { + return new FolderUpdateResponse(properties); }; /** - * Encodes the specified FolderRecordKey message. Does not implicitly {@link Records.FolderRecordKey.verify|verify} messages. + * Encodes the specified FolderUpdateResponse message. Does not implicitly {@link Folder.FolderUpdateResponse.verify|verify} messages. * @function encode - * @memberof Records.FolderRecordKey + * @memberof Folder.FolderUpdateResponse * @static - * @param {Records.IFolderRecordKey} message FolderRecordKey message or plain object to encode + * @param {Folder.IFolderUpdateResponse} message FolderUpdateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderRecordKey.encode = function encode(message, writer) { + FolderUpdateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordKey); + if (message.folderUpdateResults != null && message.folderUpdateResults.length) + for (let i = 0; i < message.folderUpdateResults.length; ++i) + $root.Folder.FolderModifyResult.encode(message.folderUpdateResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified FolderRecordKey message, length delimited. Does not implicitly {@link Records.FolderRecordKey.verify|verify} messages. + * Encodes the specified FolderUpdateResponse message, length delimited. Does not implicitly {@link Folder.FolderUpdateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Records.FolderRecordKey + * @memberof Folder.FolderUpdateResponse * @static - * @param {Records.IFolderRecordKey} message FolderRecordKey message or plain object to encode + * @param {Folder.IFolderUpdateResponse} message FolderUpdateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderRecordKey.encodeDelimited = function encodeDelimited(message, writer) { + FolderUpdateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FolderRecordKey message from the specified reader or buffer. + * Decodes a FolderUpdateResponse message from the specified reader or buffer. * @function decode - * @memberof Records.FolderRecordKey + * @memberof Folder.FolderUpdateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.FolderRecordKey} FolderRecordKey + * @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 */ - FolderRecordKey.decode = function decode(reader, length) { + FolderUpdateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FolderRecordKey(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderUpdateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.folderUid = reader.bytes(); - break; - } - case 2: { - message.recordUid = reader.bytes(); - break; - } - case 3: { - message.recordKey = reader.bytes(); + if (!(message.folderUpdateResults && message.folderUpdateResults.length)) + message.folderUpdateResults = []; + message.folderUpdateResults.push($root.Folder.FolderModifyResult.decode(reader, reader.uint32())); break; } default: @@ -173732,168 +173891,189 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a FolderRecordKey message from the specified reader or buffer, length delimited. + * Decodes a FolderUpdateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.FolderRecordKey + * @memberof Folder.FolderUpdateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.FolderRecordKey} FolderRecordKey + * @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 */ - FolderRecordKey.decodeDelimited = function decodeDelimited(reader) { + FolderUpdateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FolderRecordKey message. + * Verifies a FolderUpdateResponse message. * @function verify - * @memberof Records.FolderRecordKey + * @memberof Folder.FolderUpdateResponse * @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) { + FolderUpdateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; + 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]); + if (error) + return "folderUpdateResults." + error; + } + } return null; }; /** - * Creates a FolderRecordKey message from a plain object. Also converts values to their respective internal types. + * Creates a FolderUpdateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.FolderRecordKey + * @memberof Folder.FolderUpdateResponse * @static * @param {Object.} object Plain object - * @returns {Records.FolderRecordKey} FolderRecordKey + * @returns {Folder.FolderUpdateResponse} FolderUpdateResponse */ - FolderRecordKey.fromObject = function fromObject(object) { - if (object instanceof $root.Records.FolderRecordKey) + FolderUpdateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.FolderUpdateResponse) return object; - let message = new $root.Records.FolderRecordKey(); - if (object.folderUid != null) - if (typeof object.folderUid === "string") - $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); - else if (object.folderUid.length >= 0) - message.folderUid = object.folderUid; - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; + let message = new $root.Folder.FolderUpdateResponse(); + if (object.folderUpdateResults) { + if (!Array.isArray(object.folderUpdateResults)) + throw TypeError(".Folder.FolderUpdateResponse.folderUpdateResults: array expected"); + message.folderUpdateResults = []; + for (let i = 0; i < object.folderUpdateResults.length; ++i) { + if (typeof object.folderUpdateResults[i] !== "object") + throw TypeError(".Folder.FolderUpdateResponse.folderUpdateResults: object expected"); + message.folderUpdateResults[i] = $root.Folder.FolderModifyResult.fromObject(object.folderUpdateResults[i]); + } + } return message; }; /** - * Creates a plain object from a FolderRecordKey message. Also converts values to other types if specified. + * Creates a plain object from a FolderUpdateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Records.FolderRecordKey + * @memberof Folder.FolderUpdateResponse * @static - * @param {Records.FolderRecordKey} message FolderRecordKey + * @param {Folder.FolderUpdateResponse} message FolderUpdateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderRecordKey.toObject = function toObject(message, options) { + FolderUpdateResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.folderUid = ""; - else { - object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); - } - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if (options.bytes === String) - object.recordKey = ""; - else { - object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); - } + if (options.arrays || options.defaults) + object.folderUpdateResults = []; + if (message.folderUpdateResults && message.folderUpdateResults.length) { + object.folderUpdateResults = []; + for (let j = 0; j < message.folderUpdateResults.length; ++j) + object.folderUpdateResults[j] = $root.Folder.FolderModifyResult.toObject(message.folderUpdateResults[j], options); } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; return object; }; /** - * Converts this FolderRecordKey to JSON. + * Converts this FolderUpdateResponse to JSON. * @function toJSON - * @memberof Records.FolderRecordKey + * @memberof Folder.FolderUpdateResponse * @instance * @returns {Object.} JSON object */ - FolderRecordKey.prototype.toJSON = function toJSON() { + FolderUpdateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FolderRecordKey + * Gets the default type url for FolderUpdateResponse * @function getTypeUrl - * @memberof Records.FolderRecordKey + * @memberof Folder.FolderUpdateResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FolderRecordKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FolderUpdateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.FolderRecordKey"; + return typeUrlPrefix + "/Folder.FolderUpdateResponse"; }; - return FolderRecordKey; + return FolderUpdateResponse; })(); - Records.Folder = (function() { + /** + * FolderPermissionBits enum. + * @name Folder.FolderPermissionBits + * @enum {number} + * @property {number} noBits=0 noBits value + * @property {number} canAdd=1 canAdd value + * @property {number} canRemove=2 canRemove value + * @property {number} canDelete=4 canDelete value + * @property {number} canListAccess=8 canListAccess value + * @property {number} canUpdateAccess=16 canUpdateAccess value + * @property {number} canChangeOwnership=32 canChangeOwnership value + * @property {number} canEditRecords=64 canEditRecords value + * @property {number} canViewRecords=128 canViewRecords value + * @property {number} canApproveAccess=256 canApproveAccess value + * @property {number} canRequestAccess=512 canRequestAccess value + * @property {number} canUpdateSetting=1024 canUpdateSetting value + * @property {number} canListRecords=2048 canListRecords value + * @property {number} canListFolders=4096 canListFolders value + */ + Folder.FolderPermissionBits = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "noBits"] = 0; + values[valuesById[1] = "canAdd"] = 1; + values[valuesById[2] = "canRemove"] = 2; + values[valuesById[4] = "canDelete"] = 4; + values[valuesById[8] = "canListAccess"] = 8; + values[valuesById[16] = "canUpdateAccess"] = 16; + values[valuesById[32] = "canChangeOwnership"] = 32; + values[valuesById[64] = "canEditRecords"] = 64; + values[valuesById[128] = "canViewRecords"] = 128; + values[valuesById[256] = "canApproveAccess"] = 256; + values[valuesById[512] = "canRequestAccess"] = 512; + values[valuesById[1024] = "canUpdateSetting"] = 1024; + values[valuesById[2048] = "canListRecords"] = 2048; + values[valuesById[4096] = "canListFolders"] = 4096; + return values; + })(); - /** - * Properties of a Folder. - * @memberof Records - * @interface IFolder - * @property {Uint8Array|null} [folderUid] Folder folderUid - * @property {Uint8Array|null} [folderKey] Folder folderKey - * @property {Records.RecordKeyType|null} [folderKeyType] Folder folderKeyType - */ + Folder.FolderPermissions = (function() { /** - * Constructs a new Folder. - * @memberof Records - * @classdesc Represents a Folder. - * @implements IFolder + * Properties of a FolderPermissions. + * @memberof Folder + * @interface IFolderPermissions + * @property {boolean|null} [canAdd] FolderPermissions canAdd + * @property {boolean|null} [canRemove] FolderPermissions canRemove + * @property {boolean|null} [canDelete] FolderPermissions canDelete + * @property {boolean|null} [canListAccess] FolderPermissions canListAccess + * @property {boolean|null} [canUpdateAccess] FolderPermissions canUpdateAccess + * @property {boolean|null} [canChangeOwnership] FolderPermissions canChangeOwnership + * @property {boolean|null} [canEditRecords] FolderPermissions canEditRecords + * @property {boolean|null} [canViewRecords] FolderPermissions canViewRecords + * @property {boolean|null} [canApproveAccess] FolderPermissions canApproveAccess + * @property {boolean|null} [canRequestAccess] FolderPermissions canRequestAccess + * @property {boolean|null} [canUpdateSetting] FolderPermissions canUpdateSetting + * @property {boolean|null} [canListRecords] FolderPermissions canListRecords + * @property {boolean|null} [canListFolders] FolderPermissions canListFolders + */ + + /** + * Constructs a new FolderPermissions. + * @memberof Folder + * @classdesc Represents a FolderPermissions. + * @implements IFolderPermissions * @constructor - * @param {Records.IFolder=} [properties] Properties to set + * @param {Folder.IFolderPermissions=} [properties] Properties to set */ - function Folder(properties) { + function FolderPermissions(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -173901,103 +174081,243 @@ export const Records = $root.Records = (() => { } /** - * Folder folderUid. - * @member {Uint8Array} folderUid - * @memberof Records.Folder + * FolderPermissions canAdd. + * @member {boolean} canAdd + * @memberof Folder.FolderPermissions * @instance */ - Folder.prototype.folderUid = $util.newBuffer([]); + FolderPermissions.prototype.canAdd = false; /** - * Folder folderKey. - * @member {Uint8Array} folderKey - * @memberof Records.Folder + * FolderPermissions canRemove. + * @member {boolean} canRemove + * @memberof Folder.FolderPermissions * @instance */ - Folder.prototype.folderKey = $util.newBuffer([]); + FolderPermissions.prototype.canRemove = false; /** - * Folder folderKeyType. - * @member {Records.RecordKeyType} folderKeyType - * @memberof Records.Folder + * FolderPermissions canDelete. + * @member {boolean} canDelete + * @memberof Folder.FolderPermissions * @instance */ - Folder.prototype.folderKeyType = 0; + FolderPermissions.prototype.canDelete = false; /** - * Creates a new Folder instance using the specified properties. + * FolderPermissions canListAccess. + * @member {boolean} canListAccess + * @memberof Folder.FolderPermissions + * @instance + */ + FolderPermissions.prototype.canListAccess = false; + + /** + * FolderPermissions canUpdateAccess. + * @member {boolean} canUpdateAccess + * @memberof Folder.FolderPermissions + * @instance + */ + FolderPermissions.prototype.canUpdateAccess = false; + + /** + * FolderPermissions canChangeOwnership. + * @member {boolean} canChangeOwnership + * @memberof Folder.FolderPermissions + * @instance + */ + FolderPermissions.prototype.canChangeOwnership = false; + + /** + * FolderPermissions canEditRecords. + * @member {boolean} canEditRecords + * @memberof Folder.FolderPermissions + * @instance + */ + FolderPermissions.prototype.canEditRecords = false; + + /** + * FolderPermissions canViewRecords. + * @member {boolean} canViewRecords + * @memberof Folder.FolderPermissions + * @instance + */ + FolderPermissions.prototype.canViewRecords = false; + + /** + * FolderPermissions canApproveAccess. + * @member {boolean} canApproveAccess + * @memberof Folder.FolderPermissions + * @instance + */ + FolderPermissions.prototype.canApproveAccess = false; + + /** + * FolderPermissions canRequestAccess. + * @member {boolean} canRequestAccess + * @memberof Folder.FolderPermissions + * @instance + */ + FolderPermissions.prototype.canRequestAccess = false; + + /** + * FolderPermissions canUpdateSetting. + * @member {boolean} canUpdateSetting + * @memberof Folder.FolderPermissions + * @instance + */ + FolderPermissions.prototype.canUpdateSetting = false; + + /** + * FolderPermissions canListRecords. + * @member {boolean} canListRecords + * @memberof Folder.FolderPermissions + * @instance + */ + FolderPermissions.prototype.canListRecords = false; + + /** + * FolderPermissions canListFolders. + * @member {boolean} canListFolders + * @memberof Folder.FolderPermissions + * @instance + */ + FolderPermissions.prototype.canListFolders = false; + + /** + * Creates a new FolderPermissions instance using the specified properties. * @function create - * @memberof Records.Folder + * @memberof Folder.FolderPermissions * @static - * @param {Records.IFolder=} [properties] Properties to set - * @returns {Records.Folder} Folder instance + * @param {Folder.IFolderPermissions=} [properties] Properties to set + * @returns {Folder.FolderPermissions} FolderPermissions instance */ - Folder.create = function create(properties) { - return new Folder(properties); + FolderPermissions.create = function create(properties) { + return new FolderPermissions(properties); }; /** - * Encodes the specified Folder message. Does not implicitly {@link Records.Folder.verify|verify} messages. + * Encodes the specified FolderPermissions message. Does not implicitly {@link Folder.FolderPermissions.verify|verify} messages. * @function encode - * @memberof Records.Folder + * @memberof Folder.FolderPermissions * @static - * @param {Records.IFolder} message Folder message or plain object to encode + * @param {Folder.IFolderPermissions} message FolderPermissions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Folder.encode = function encode(message, writer) { + FolderPermissions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); - if (message.folderKey != null && Object.hasOwnProperty.call(message, "folderKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.folderKey); - if (message.folderKeyType != null && Object.hasOwnProperty.call(message, "folderKeyType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.folderKeyType); + if (message.canAdd != null && Object.hasOwnProperty.call(message, "canAdd")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.canAdd); + if (message.canRemove != null && Object.hasOwnProperty.call(message, "canRemove")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.canRemove); + if (message.canDelete != null && Object.hasOwnProperty.call(message, "canDelete")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.canDelete); + if (message.canListAccess != null && Object.hasOwnProperty.call(message, "canListAccess")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canListAccess); + if (message.canUpdateAccess != null && Object.hasOwnProperty.call(message, "canUpdateAccess")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.canUpdateAccess); + if (message.canChangeOwnership != null && Object.hasOwnProperty.call(message, "canChangeOwnership")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.canChangeOwnership); + if (message.canEditRecords != null && Object.hasOwnProperty.call(message, "canEditRecords")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.canEditRecords); + if (message.canViewRecords != null && Object.hasOwnProperty.call(message, "canViewRecords")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.canViewRecords); + if (message.canApproveAccess != null && Object.hasOwnProperty.call(message, "canApproveAccess")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.canApproveAccess); + if (message.canRequestAccess != null && Object.hasOwnProperty.call(message, "canRequestAccess")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.canRequestAccess); + if (message.canUpdateSetting != null && Object.hasOwnProperty.call(message, "canUpdateSetting")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.canUpdateSetting); + if (message.canListRecords != null && Object.hasOwnProperty.call(message, "canListRecords")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.canListRecords); + if (message.canListFolders != null && Object.hasOwnProperty.call(message, "canListFolders")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.canListFolders); return writer; }; /** - * Encodes the specified Folder message, length delimited. Does not implicitly {@link Records.Folder.verify|verify} messages. + * Encodes the specified FolderPermissions message, length delimited. Does not implicitly {@link Folder.FolderPermissions.verify|verify} messages. * @function encodeDelimited - * @memberof Records.Folder + * @memberof Folder.FolderPermissions * @static - * @param {Records.IFolder} message Folder message or plain object to encode + * @param {Folder.IFolderPermissions} message FolderPermissions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Folder.encodeDelimited = function encodeDelimited(message, writer) { + FolderPermissions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Folder message from the specified reader or buffer. + * Decodes a FolderPermissions message from the specified reader or buffer. * @function decode - * @memberof Records.Folder + * @memberof Folder.FolderPermissions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.Folder} Folder + * @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 */ - Folder.decode = function decode(reader, length) { + FolderPermissions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.Folder(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderPermissions(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.folderUid = reader.bytes(); + message.canAdd = reader.bool(); break; } case 2: { - message.folderKey = reader.bytes(); + message.canRemove = reader.bool(); break; } case 3: { - message.folderKeyType = reader.int32(); + message.canDelete = reader.bool(); + break; + } + case 4: { + message.canListAccess = reader.bool(); + break; + } + case 5: { + message.canUpdateAccess = reader.bool(); + break; + } + case 6: { + message.canChangeOwnership = reader.bool(); + break; + } + case 7: { + message.canEditRecords = reader.bool(); + break; + } + case 8: { + message.canViewRecords = reader.bool(); + break; + } + case 9: { + message.canApproveAccess = reader.bool(); + break; + } + case 10: { + message.canRequestAccess = reader.bool(); + break; + } + case 11: { + message.canUpdateSetting = reader.bool(); + break; + } + case 12: { + message.canListRecords = reader.bool(); + break; + } + case 13: { + message.canListFolders = reader.bool(); break; } default: @@ -174009,206 +174329,231 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a Folder message from the specified reader or buffer, length delimited. + * Decodes a FolderPermissions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.Folder + * @memberof Folder.FolderPermissions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.Folder} Folder + * @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 */ - Folder.decodeDelimited = function decodeDelimited(reader) { + FolderPermissions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Folder message. + * Verifies a FolderPermissions message. * @function verify - * @memberof Records.Folder + * @memberof Folder.FolderPermissions * @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) { + FolderPermissions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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; - } + 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 Folder message from a plain object. Also converts values to their respective internal types. + * Creates a FolderPermissions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.Folder + * @memberof Folder.FolderPermissions * @static * @param {Object.} object Plain object - * @returns {Records.Folder} Folder + * @returns {Folder.FolderPermissions} FolderPermissions */ - Folder.fromObject = function fromObject(object) { - if (object instanceof $root.Records.Folder) + FolderPermissions.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.FolderPermissions) return object; - let message = new $root.Records.Folder(); - if (object.folderUid != null) - if (typeof object.folderUid === "string") - $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); - else if (object.folderUid.length >= 0) - message.folderUid = object.folderUid; - if (object.folderKey != null) - if (typeof object.folderKey === "string") - $util.base64.decode(object.folderKey, message.folderKey = $util.newBuffer($util.base64.length(object.folderKey)), 0); - else if (object.folderKey.length >= 0) - message.folderKey = object.folderKey; - switch (object.folderKeyType) { - default: - if (typeof object.folderKeyType === "number") { - message.folderKeyType = object.folderKeyType; - break; - } - break; - case "NO_KEY": - case 0: - message.folderKeyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.folderKeyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.folderKeyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.folderKeyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.folderKeyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.folderKeyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.folderKeyType = 6; - break; - } - return message; - }; - - /** - * Creates a plain object from a Folder message. Also converts values to other types if specified. + let message = new $root.Folder.FolderPermissions(); + if (object.canAdd != null) + message.canAdd = Boolean(object.canAdd); + if (object.canRemove != null) + message.canRemove = Boolean(object.canRemove); + if (object.canDelete != null) + message.canDelete = Boolean(object.canDelete); + if (object.canListAccess != null) + message.canListAccess = Boolean(object.canListAccess); + if (object.canUpdateAccess != null) + message.canUpdateAccess = Boolean(object.canUpdateAccess); + if (object.canChangeOwnership != null) + message.canChangeOwnership = Boolean(object.canChangeOwnership); + if (object.canEditRecords != null) + message.canEditRecords = Boolean(object.canEditRecords); + if (object.canViewRecords != null) + message.canViewRecords = Boolean(object.canViewRecords); + if (object.canApproveAccess != null) + message.canApproveAccess = Boolean(object.canApproveAccess); + if (object.canRequestAccess != null) + message.canRequestAccess = Boolean(object.canRequestAccess); + if (object.canUpdateSetting != null) + message.canUpdateSetting = Boolean(object.canUpdateSetting); + if (object.canListRecords != null) + message.canListRecords = Boolean(object.canListRecords); + if (object.canListFolders != null) + message.canListFolders = Boolean(object.canListFolders); + return message; + }; + + /** + * Creates a plain object from a FolderPermissions message. Also converts values to other types if specified. * @function toObject - * @memberof Records.Folder + * @memberof Folder.FolderPermissions * @static - * @param {Records.Folder} message Folder + * @param {Folder.FolderPermissions} message FolderPermissions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Folder.toObject = function toObject(message, options) { + FolderPermissions.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.folderUid = ""; - else { - object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); - } - if (options.bytes === String) - object.folderKey = ""; - else { - object.folderKey = []; - if (options.bytes !== Array) - object.folderKey = $util.newBuffer(object.folderKey); - } - object.folderKeyType = options.enums === String ? "NO_KEY" : 0; - } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; - if (message.folderKey != null && message.hasOwnProperty("folderKey")) - object.folderKey = options.bytes === String ? $util.base64.encode(message.folderKey, 0, message.folderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderKey) : message.folderKey; - if (message.folderKeyType != null && message.hasOwnProperty("folderKeyType")) - object.folderKeyType = options.enums === String ? $root.Records.RecordKeyType[message.folderKeyType] === undefined ? message.folderKeyType : $root.Records.RecordKeyType[message.folderKeyType] : message.folderKeyType; + object.canAdd = false; + object.canRemove = false; + object.canDelete = false; + object.canListAccess = false; + object.canUpdateAccess = false; + object.canChangeOwnership = false; + object.canEditRecords = false; + object.canViewRecords = false; + object.canApproveAccess = false; + object.canRequestAccess = false; + object.canUpdateSetting = false; + object.canListRecords = false; + object.canListFolders = false; + } + if (message.canAdd != null && message.hasOwnProperty("canAdd")) + object.canAdd = message.canAdd; + if (message.canRemove != null && message.hasOwnProperty("canRemove")) + object.canRemove = message.canRemove; + if (message.canDelete != null && message.hasOwnProperty("canDelete")) + object.canDelete = message.canDelete; + if (message.canListAccess != null && message.hasOwnProperty("canListAccess")) + object.canListAccess = message.canListAccess; + if (message.canUpdateAccess != null && message.hasOwnProperty("canUpdateAccess")) + object.canUpdateAccess = message.canUpdateAccess; + if (message.canChangeOwnership != null && message.hasOwnProperty("canChangeOwnership")) + object.canChangeOwnership = message.canChangeOwnership; + if (message.canEditRecords != null && message.hasOwnProperty("canEditRecords")) + object.canEditRecords = message.canEditRecords; + if (message.canViewRecords != null && message.hasOwnProperty("canViewRecords")) + object.canViewRecords = message.canViewRecords; + if (message.canApproveAccess != null && message.hasOwnProperty("canApproveAccess")) + object.canApproveAccess = message.canApproveAccess; + if (message.canRequestAccess != null && message.hasOwnProperty("canRequestAccess")) + object.canRequestAccess = message.canRequestAccess; + if (message.canUpdateSetting != null && message.hasOwnProperty("canUpdateSetting")) + object.canUpdateSetting = message.canUpdateSetting; + if (message.canListRecords != null && message.hasOwnProperty("canListRecords")) + object.canListRecords = message.canListRecords; + if (message.canListFolders != null && message.hasOwnProperty("canListFolders")) + object.canListFolders = message.canListFolders; return object; }; /** - * Converts this Folder to JSON. + * Converts this FolderPermissions to JSON. * @function toJSON - * @memberof Records.Folder + * @memberof Folder.FolderPermissions * @instance * @returns {Object.} JSON object */ - Folder.prototype.toJSON = function toJSON() { + FolderPermissions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Folder + * Gets the default type url for FolderPermissions * @function getTypeUrl - * @memberof Records.Folder + * @memberof Folder.FolderPermissions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Folder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FolderPermissions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.Folder"; + return typeUrlPrefix + "/Folder.FolderPermissions"; }; - return Folder; + return FolderPermissions; })(); - Records.Team = (function() { - - /** - * Properties of a Team. - * @memberof Records - * @interface ITeam - * @property {Uint8Array|null} [teamUid] Team teamUid - * @property {Uint8Array|null} [teamKey] Team teamKey - * @property {Uint8Array|null} [teamPrivateKey] Team teamPrivateKey - * @property {Records.RecordKeyType|null} [teamKeyType] Team teamKeyType - * @property {Array.|null} [folders] Team folders - */ + Folder.Capabilities = (function() { /** - * Constructs a new Team. - * @memberof Records - * @classdesc Represents a Team. - * @implements ITeam + * Properties of a Capabilities. + * @memberof Folder + * @interface ICapabilities + * @property {Folder.SetBooleanValue|null} [canAdd] Capabilities canAdd + * @property {Folder.SetBooleanValue|null} [canRemove] Capabilities canRemove + * @property {Folder.SetBooleanValue|null} [canDelete] Capabilities canDelete + * @property {Folder.SetBooleanValue|null} [canListAccess] Capabilities canListAccess + * @property {Folder.SetBooleanValue|null} [canUpdateAccess] Capabilities canUpdateAccess + * @property {Folder.SetBooleanValue|null} [canChangeOwnership] Capabilities canChangeOwnership + * @property {Folder.SetBooleanValue|null} [canEditRecords] Capabilities canEditRecords + * @property {Folder.SetBooleanValue|null} [canViewRecords] Capabilities canViewRecords + * @property {Folder.SetBooleanValue|null} [canApproveAccess] Capabilities canApproveAccess + * @property {Folder.SetBooleanValue|null} [canRequestAccess] Capabilities canRequestAccess + * @property {Folder.SetBooleanValue|null} [canUpdateSetting] Capabilities canUpdateSetting + * @property {Folder.SetBooleanValue|null} [canListRecords] Capabilities canListRecords + * @property {Folder.SetBooleanValue|null} [canListFolders] Capabilities canListFolders + */ + + /** + * Constructs a new Capabilities. + * @memberof Folder + * @classdesc Represents a Capabilities. + * @implements ICapabilities * @constructor - * @param {Records.ITeam=} [properties] Properties to set + * @param {Folder.ICapabilities=} [properties] Properties to set */ - function Team(properties) { - this.folders = []; + function Capabilities(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -174216,134 +174561,243 @@ export const Records = $root.Records = (() => { } /** - * Team teamUid. - * @member {Uint8Array} teamUid - * @memberof Records.Team + * Capabilities canAdd. + * @member {Folder.SetBooleanValue} canAdd + * @memberof Folder.Capabilities * @instance */ - Team.prototype.teamUid = $util.newBuffer([]); + Capabilities.prototype.canAdd = 0; /** - * Team teamKey. - * @member {Uint8Array} teamKey - * @memberof Records.Team + * Capabilities canRemove. + * @member {Folder.SetBooleanValue} canRemove + * @memberof Folder.Capabilities * @instance */ - Team.prototype.teamKey = $util.newBuffer([]); + Capabilities.prototype.canRemove = 0; /** - * Team teamPrivateKey. - * @member {Uint8Array} teamPrivateKey - * @memberof Records.Team + * Capabilities canDelete. + * @member {Folder.SetBooleanValue} canDelete + * @memberof Folder.Capabilities * @instance */ - Team.prototype.teamPrivateKey = $util.newBuffer([]); + Capabilities.prototype.canDelete = 0; /** - * Team teamKeyType. - * @member {Records.RecordKeyType} teamKeyType - * @memberof Records.Team + * Capabilities canListAccess. + * @member {Folder.SetBooleanValue} canListAccess + * @memberof Folder.Capabilities * @instance */ - Team.prototype.teamKeyType = 0; + Capabilities.prototype.canListAccess = 0; /** - * Team folders. - * @member {Array.} folders - * @memberof Records.Team + * Capabilities canUpdateAccess. + * @member {Folder.SetBooleanValue} canUpdateAccess + * @memberof Folder.Capabilities * @instance */ - Team.prototype.folders = $util.emptyArray; + Capabilities.prototype.canUpdateAccess = 0; /** - * Creates a new Team instance using the specified properties. + * Capabilities canChangeOwnership. + * @member {Folder.SetBooleanValue} canChangeOwnership + * @memberof Folder.Capabilities + * @instance + */ + Capabilities.prototype.canChangeOwnership = 0; + + /** + * Capabilities canEditRecords. + * @member {Folder.SetBooleanValue} canEditRecords + * @memberof Folder.Capabilities + * @instance + */ + Capabilities.prototype.canEditRecords = 0; + + /** + * Capabilities canViewRecords. + * @member {Folder.SetBooleanValue} canViewRecords + * @memberof Folder.Capabilities + * @instance + */ + Capabilities.prototype.canViewRecords = 0; + + /** + * Capabilities canApproveAccess. + * @member {Folder.SetBooleanValue} canApproveAccess + * @memberof Folder.Capabilities + * @instance + */ + Capabilities.prototype.canApproveAccess = 0; + + /** + * Capabilities canRequestAccess. + * @member {Folder.SetBooleanValue} canRequestAccess + * @memberof Folder.Capabilities + * @instance + */ + Capabilities.prototype.canRequestAccess = 0; + + /** + * Capabilities canUpdateSetting. + * @member {Folder.SetBooleanValue} canUpdateSetting + * @memberof Folder.Capabilities + * @instance + */ + Capabilities.prototype.canUpdateSetting = 0; + + /** + * Capabilities canListRecords. + * @member {Folder.SetBooleanValue} canListRecords + * @memberof Folder.Capabilities + * @instance + */ + Capabilities.prototype.canListRecords = 0; + + /** + * Capabilities canListFolders. + * @member {Folder.SetBooleanValue} canListFolders + * @memberof Folder.Capabilities + * @instance + */ + Capabilities.prototype.canListFolders = 0; + + /** + * Creates a new Capabilities instance using the specified properties. * @function create - * @memberof Records.Team + * @memberof Folder.Capabilities * @static - * @param {Records.ITeam=} [properties] Properties to set - * @returns {Records.Team} Team instance + * @param {Folder.ICapabilities=} [properties] Properties to set + * @returns {Folder.Capabilities} Capabilities instance */ - Team.create = function create(properties) { - return new Team(properties); + Capabilities.create = function create(properties) { + return new Capabilities(properties); }; /** - * Encodes the specified Team message. Does not implicitly {@link Records.Team.verify|verify} messages. + * Encodes the specified Capabilities message. Does not implicitly {@link Folder.Capabilities.verify|verify} messages. * @function encode - * @memberof Records.Team + * @memberof Folder.Capabilities * @static - * @param {Records.ITeam} message Team message or plain object to encode + * @param {Folder.ICapabilities} message Capabilities message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Team.encode = function encode(message, writer) { + Capabilities.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); - if (message.teamKey != null && Object.hasOwnProperty.call(message, "teamKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.teamKey); - if (message.teamPrivateKey != null && Object.hasOwnProperty.call(message, "teamPrivateKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.teamPrivateKey); - if (message.teamKeyType != null && Object.hasOwnProperty.call(message, "teamKeyType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.teamKeyType); - if (message.folders != null && message.folders.length) - for (let i = 0; i < message.folders.length; ++i) - $root.Records.Folder.encode(message.folders[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.canAdd != null && Object.hasOwnProperty.call(message, "canAdd")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.canAdd); + if (message.canRemove != null && Object.hasOwnProperty.call(message, "canRemove")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.canRemove); + if (message.canDelete != null && Object.hasOwnProperty.call(message, "canDelete")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.canDelete); + if (message.canListAccess != null && Object.hasOwnProperty.call(message, "canListAccess")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.canListAccess); + if (message.canUpdateAccess != null && Object.hasOwnProperty.call(message, "canUpdateAccess")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.canUpdateAccess); + if (message.canChangeOwnership != null && Object.hasOwnProperty.call(message, "canChangeOwnership")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.canChangeOwnership); + if (message.canEditRecords != null && Object.hasOwnProperty.call(message, "canEditRecords")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.canEditRecords); + if (message.canViewRecords != null && Object.hasOwnProperty.call(message, "canViewRecords")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.canViewRecords); + if (message.canApproveAccess != null && Object.hasOwnProperty.call(message, "canApproveAccess")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.canApproveAccess); + if (message.canRequestAccess != null && Object.hasOwnProperty.call(message, "canRequestAccess")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.canRequestAccess); + if (message.canUpdateSetting != null && Object.hasOwnProperty.call(message, "canUpdateSetting")) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.canUpdateSetting); + if (message.canListRecords != null && Object.hasOwnProperty.call(message, "canListRecords")) + writer.uint32(/* id 12, wireType 0 =*/96).int32(message.canListRecords); + if (message.canListFolders != null && Object.hasOwnProperty.call(message, "canListFolders")) + writer.uint32(/* id 13, wireType 0 =*/104).int32(message.canListFolders); return writer; }; /** - * Encodes the specified Team message, length delimited. Does not implicitly {@link Records.Team.verify|verify} messages. + * Encodes the specified Capabilities message, length delimited. Does not implicitly {@link Folder.Capabilities.verify|verify} messages. * @function encodeDelimited - * @memberof Records.Team + * @memberof Folder.Capabilities * @static - * @param {Records.ITeam} message Team message or plain object to encode + * @param {Folder.ICapabilities} message Capabilities message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Team.encodeDelimited = function encodeDelimited(message, writer) { + Capabilities.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Team message from the specified reader or buffer. + * Decodes a Capabilities message from the specified reader or buffer. * @function decode - * @memberof Records.Team + * @memberof Folder.Capabilities * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.Team} Team + * @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 */ - Team.decode = function decode(reader, length) { + Capabilities.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.Team(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.Capabilities(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.teamUid = reader.bytes(); + message.canAdd = reader.int32(); break; } case 2: { - message.teamKey = reader.bytes(); + message.canRemove = reader.int32(); break; } case 3: { - message.teamPrivateKey = reader.bytes(); + message.canDelete = reader.int32(); break; } case 4: { - message.teamKeyType = reader.int32(); + message.canListAccess = reader.int32(); break; } case 5: { - if (!(message.folders && message.folders.length)) - message.folders = []; - message.folders.push($root.Records.Folder.decode(reader, reader.uint32())); + message.canUpdateAccess = reader.int32(); + break; + } + case 6: { + message.canChangeOwnership = reader.int32(); + break; + } + case 7: { + message.canEditRecords = reader.int32(); + break; + } + case 8: { + message.canViewRecords = reader.int32(); + break; + } + case 9: { + message.canApproveAccess = reader.int32(); + break; + } + case 10: { + message.canRequestAccess = reader.int32(); + break; + } + case 11: { + message.canUpdateSetting = reader.int32(); + break; + } + case 12: { + message.canListRecords = reader.int32(); + break; + } + case 13: { + message.canListFolders = reader.int32(); break; } default: @@ -174355,251 +174809,537 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a Team message from the specified reader or buffer, length delimited. + * Decodes a Capabilities message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.Team + * @memberof Folder.Capabilities * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.Team} Team + * @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 */ - Team.decodeDelimited = function decodeDelimited(reader) { + Capabilities.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Team message. + * Verifies a Capabilities message. * @function verify - * @memberof Records.Team + * @memberof Folder.Capabilities * @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) { + Capabilities.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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) { + if (message.canAdd != null && message.hasOwnProperty("canAdd")) + switch (message.canAdd) { default: - return "teamKeyType: enum value expected"; + return "canAdd: 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]); - if (error) - return "folders." + error; + 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 Team message from a plain object. Also converts values to their respective internal types. + * Creates a Capabilities message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.Team + * @memberof Folder.Capabilities * @static * @param {Object.} object Plain object - * @returns {Records.Team} Team + * @returns {Folder.Capabilities} Capabilities */ - Team.fromObject = function fromObject(object) { - if (object instanceof $root.Records.Team) + Capabilities.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.Capabilities) return object; - let message = new $root.Records.Team(); - if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; - if (object.teamKey != null) - if (typeof object.teamKey === "string") - $util.base64.decode(object.teamKey, message.teamKey = $util.newBuffer($util.base64.length(object.teamKey)), 0); - else if (object.teamKey.length >= 0) - message.teamKey = object.teamKey; - if (object.teamPrivateKey != null) - if (typeof object.teamPrivateKey === "string") - $util.base64.decode(object.teamPrivateKey, message.teamPrivateKey = $util.newBuffer($util.base64.length(object.teamPrivateKey)), 0); - else if (object.teamPrivateKey.length >= 0) - message.teamPrivateKey = object.teamPrivateKey; - switch (object.teamKeyType) { + let message = new $root.Folder.Capabilities(); + switch (object.canAdd) { default: - if (typeof object.teamKeyType === "number") { - message.teamKeyType = object.teamKeyType; + if (typeof object.canAdd === "number") { + message.canAdd = object.canAdd; break; } break; - case "NO_KEY": + case "BOOLEAN_NO_CHANGE": case 0: - message.teamKeyType = 0; + message.canAdd = 0; break; - case "ENCRYPTED_BY_DATA_KEY": + case "BOOLEAN_TRUE": case 1: - message.teamKeyType = 1; + message.canAdd = 1; break; - case "ENCRYPTED_BY_PUBLIC_KEY": + case "BOOLEAN_FALSE": case 2: - message.teamKeyType = 2; + message.canAdd = 2; break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.teamKeyType = 3; + } + switch (object.canRemove) { + default: + if (typeof object.canRemove === "number") { + message.canRemove = object.canRemove; + break; + } break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.teamKeyType = 4; + case "BOOLEAN_NO_CHANGE": + case 0: + message.canRemove = 0; break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.teamKeyType = 5; + case "BOOLEAN_TRUE": + case 1: + message.canRemove = 1; break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.teamKeyType = 6; + case "BOOLEAN_FALSE": + case 2: + message.canRemove = 2; break; } - if (object.folders) { - if (!Array.isArray(object.folders)) - throw TypeError(".Records.Team.folders: array expected"); - message.folders = []; - for (let i = 0; i < object.folders.length; ++i) { - if (typeof object.folders[i] !== "object") - throw TypeError(".Records.Team.folders: object expected"); - message.folders[i] = $root.Records.Folder.fromObject(object.folders[i]); + switch (object.canDelete) { + default: + if (typeof object.canDelete === "number") { + message.canDelete = object.canDelete; + break; + } + break; + case "BOOLEAN_NO_CHANGE": + case 0: + message.canDelete = 0; + break; + case "BOOLEAN_TRUE": + case 1: + message.canDelete = 1; + break; + case "BOOLEAN_FALSE": + case 2: + message.canDelete = 2; + break; + } + switch (object.canListAccess) { + default: + if (typeof object.canListAccess === "number") { + message.canListAccess = object.canListAccess; + break; + } + break; + case "BOOLEAN_NO_CHANGE": + case 0: + message.canListAccess = 0; + break; + case "BOOLEAN_TRUE": + case 1: + message.canListAccess = 1; + break; + case "BOOLEAN_FALSE": + case 2: + message.canListAccess = 2; + break; + } + switch (object.canUpdateAccess) { + default: + if (typeof object.canUpdateAccess === "number") { + message.canUpdateAccess = object.canUpdateAccess; + break; + } + break; + case "BOOLEAN_NO_CHANGE": + case 0: + message.canUpdateAccess = 0; + break; + case "BOOLEAN_TRUE": + case 1: + message.canUpdateAccess = 1; + break; + case "BOOLEAN_FALSE": + case 2: + message.canUpdateAccess = 2; + break; + } + switch (object.canChangeOwnership) { + default: + if (typeof object.canChangeOwnership === "number") { + message.canChangeOwnership = object.canChangeOwnership; + break; + } + break; + case "BOOLEAN_NO_CHANGE": + case 0: + message.canChangeOwnership = 0; + break; + case "BOOLEAN_TRUE": + case 1: + message.canChangeOwnership = 1; + break; + case "BOOLEAN_FALSE": + case 2: + message.canChangeOwnership = 2; + break; + } + switch (object.canEditRecords) { + default: + if (typeof object.canEditRecords === "number") { + message.canEditRecords = object.canEditRecords; + break; + } + break; + case "BOOLEAN_NO_CHANGE": + case 0: + message.canEditRecords = 0; + break; + case "BOOLEAN_TRUE": + case 1: + message.canEditRecords = 1; + break; + case "BOOLEAN_FALSE": + case 2: + message.canEditRecords = 2; + break; + } + switch (object.canViewRecords) { + default: + if (typeof object.canViewRecords === "number") { + message.canViewRecords = object.canViewRecords; + break; + } + break; + case "BOOLEAN_NO_CHANGE": + case 0: + message.canViewRecords = 0; + break; + case "BOOLEAN_TRUE": + case 1: + message.canViewRecords = 1; + break; + case "BOOLEAN_FALSE": + case 2: + message.canViewRecords = 2; + break; + } + switch (object.canApproveAccess) { + default: + if (typeof object.canApproveAccess === "number") { + message.canApproveAccess = object.canApproveAccess; + break; + } + break; + case "BOOLEAN_NO_CHANGE": + case 0: + message.canApproveAccess = 0; + break; + case "BOOLEAN_TRUE": + case 1: + message.canApproveAccess = 1; + break; + case "BOOLEAN_FALSE": + case 2: + message.canApproveAccess = 2; + break; + } + switch (object.canRequestAccess) { + default: + if (typeof object.canRequestAccess === "number") { + message.canRequestAccess = object.canRequestAccess; + break; + } + break; + case "BOOLEAN_NO_CHANGE": + case 0: + message.canRequestAccess = 0; + break; + case "BOOLEAN_TRUE": + case 1: + message.canRequestAccess = 1; + break; + case "BOOLEAN_FALSE": + case 2: + message.canRequestAccess = 2; + break; + } + switch (object.canUpdateSetting) { + default: + if (typeof object.canUpdateSetting === "number") { + message.canUpdateSetting = object.canUpdateSetting; + break; + } + break; + case "BOOLEAN_NO_CHANGE": + case 0: + message.canUpdateSetting = 0; + break; + case "BOOLEAN_TRUE": + case 1: + message.canUpdateSetting = 1; + break; + case "BOOLEAN_FALSE": + case 2: + message.canUpdateSetting = 2; + break; + } + switch (object.canListRecords) { + default: + if (typeof object.canListRecords === "number") { + message.canListRecords = object.canListRecords; + break; + } + break; + case "BOOLEAN_NO_CHANGE": + case 0: + message.canListRecords = 0; + break; + case "BOOLEAN_TRUE": + case 1: + message.canListRecords = 1; + break; + case "BOOLEAN_FALSE": + case 2: + message.canListRecords = 2; + break; + } + switch (object.canListFolders) { + default: + if (typeof object.canListFolders === "number") { + message.canListFolders = object.canListFolders; + break; } + break; + case "BOOLEAN_NO_CHANGE": + case 0: + message.canListFolders = 0; + break; + case "BOOLEAN_TRUE": + case 1: + message.canListFolders = 1; + break; + case "BOOLEAN_FALSE": + case 2: + message.canListFolders = 2; + break; } return message; }; /** - * Creates a plain object from a Team message. Also converts values to other types if specified. + * Creates a plain object from a Capabilities message. Also converts values to other types if specified. * @function toObject - * @memberof Records.Team + * @memberof Folder.Capabilities * @static - * @param {Records.Team} message Team + * @param {Folder.Capabilities} message Capabilities * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Team.toObject = function toObject(message, options) { + Capabilities.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.folders = []; if (options.defaults) { - if (options.bytes === String) - object.teamUid = ""; - else { - object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); - } - if (options.bytes === String) - object.teamKey = ""; - else { - object.teamKey = []; - if (options.bytes !== Array) - object.teamKey = $util.newBuffer(object.teamKey); - } - if (options.bytes === String) - object.teamPrivateKey = ""; - else { - object.teamPrivateKey = []; - if (options.bytes !== Array) - object.teamPrivateKey = $util.newBuffer(object.teamPrivateKey); - } - object.teamKeyType = options.enums === String ? "NO_KEY" : 0; - } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.teamKey != null && message.hasOwnProperty("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")) - 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")) - 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 = []; - for (let j = 0; j < message.folders.length; ++j) - object.folders[j] = $root.Records.Folder.toObject(message.folders[j], options); - } + object.canAdd = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; + object.canRemove = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; + object.canDelete = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; + object.canListAccess = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; + object.canUpdateAccess = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; + object.canChangeOwnership = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; + object.canEditRecords = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; + object.canViewRecords = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; + object.canApproveAccess = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; + object.canRequestAccess = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; + object.canUpdateSetting = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; + 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")) + 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")) + 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")) + 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")) + 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")) + 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")) + 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")) + 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")) + 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")) + 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")) + 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")) + 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")) + 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")) + object.canListFolders = options.enums === String ? $root.Folder.SetBooleanValue[message.canListFolders] === undefined ? message.canListFolders : $root.Folder.SetBooleanValue[message.canListFolders] : message.canListFolders; return object; }; /** - * Converts this Team to JSON. + * Converts this Capabilities to JSON. * @function toJSON - * @memberof Records.Team + * @memberof Folder.Capabilities * @instance * @returns {Object.} JSON object */ - Team.prototype.toJSON = function toJSON() { + Capabilities.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Team + * Gets the default type url for Capabilities * @function getTypeUrl - * @memberof Records.Team + * @memberof Folder.Capabilities * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Team.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Capabilities.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.Team"; + return typeUrlPrefix + "/Folder.Capabilities"; }; - return Team; + return Capabilities; })(); - Records.RecordsGetResponse = (function() { + Folder.FolderRecordUpdateRequest = (function() { /** - * Properties of a RecordsGetResponse. - * @memberof Records - * @interface IRecordsGetResponse - * @property {Array.|null} [records] RecordsGetResponse records - * @property {Array.|null} [folderRecordKeys] RecordsGetResponse folderRecordKeys - * @property {Array.|null} [folders] RecordsGetResponse folders - * @property {Array.|null} [teams] RecordsGetResponse teams + * Properties of a FolderRecordUpdateRequest. + * @memberof Folder + * @interface IFolderRecordUpdateRequest + * @property {Uint8Array|null} [folderUid] FolderRecordUpdateRequest folderUid + * @property {Array.|null} [addRecords] FolderRecordUpdateRequest addRecords + * @property {Array.|null} [updateRecords] FolderRecordUpdateRequest updateRecords + * @property {Array.|null} [removeRecords] FolderRecordUpdateRequest removeRecords */ /** - * Constructs a new RecordsGetResponse. - * @memberof Records - * @classdesc Represents a RecordsGetResponse. - * @implements IRecordsGetResponse + * Constructs a new FolderRecordUpdateRequest. + * @memberof Folder + * @classdesc Represents a FolderRecordUpdateRequest. + * @implements IFolderRecordUpdateRequest * @constructor - * @param {Records.IRecordsGetResponse=} [properties] Properties to set + * @param {Folder.IFolderRecordUpdateRequest=} [properties] Properties to set */ - function RecordsGetResponse(properties) { - this.records = []; - this.folderRecordKeys = []; - this.folders = []; - this.teams = []; + function FolderRecordUpdateRequest(properties) { + this.addRecords = []; + this.updateRecords = []; + this.removeRecords = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -174607,129 +175347,126 @@ export const Records = $root.Records = (() => { } /** - * RecordsGetResponse records. - * @member {Array.} records - * @memberof Records.RecordsGetResponse + * FolderRecordUpdateRequest folderUid. + * @member {Uint8Array} folderUid + * @memberof Folder.FolderRecordUpdateRequest * @instance */ - RecordsGetResponse.prototype.records = $util.emptyArray; + FolderRecordUpdateRequest.prototype.folderUid = $util.newBuffer([]); /** - * RecordsGetResponse folderRecordKeys. - * @member {Array.} folderRecordKeys - * @memberof Records.RecordsGetResponse + * FolderRecordUpdateRequest addRecords. + * @member {Array.} addRecords + * @memberof Folder.FolderRecordUpdateRequest * @instance */ - RecordsGetResponse.prototype.folderRecordKeys = $util.emptyArray; + FolderRecordUpdateRequest.prototype.addRecords = $util.emptyArray; /** - * RecordsGetResponse folders. - * @member {Array.} folders - * @memberof Records.RecordsGetResponse + * FolderRecordUpdateRequest updateRecords. + * @member {Array.} updateRecords + * @memberof Folder.FolderRecordUpdateRequest * @instance */ - RecordsGetResponse.prototype.folders = $util.emptyArray; + FolderRecordUpdateRequest.prototype.updateRecords = $util.emptyArray; /** - * RecordsGetResponse teams. - * @member {Array.} teams - * @memberof Records.RecordsGetResponse + * FolderRecordUpdateRequest removeRecords. + * @member {Array.} removeRecords + * @memberof Folder.FolderRecordUpdateRequest * @instance */ - RecordsGetResponse.prototype.teams = $util.emptyArray; + FolderRecordUpdateRequest.prototype.removeRecords = $util.emptyArray; /** - * Creates a new RecordsGetResponse instance using the specified properties. + * Creates a new FolderRecordUpdateRequest instance using the specified properties. * @function create - * @memberof Records.RecordsGetResponse + * @memberof Folder.FolderRecordUpdateRequest * @static - * @param {Records.IRecordsGetResponse=} [properties] Properties to set - * @returns {Records.RecordsGetResponse} RecordsGetResponse instance + * @param {Folder.IFolderRecordUpdateRequest=} [properties] Properties to set + * @returns {Folder.FolderRecordUpdateRequest} FolderRecordUpdateRequest instance */ - RecordsGetResponse.create = function create(properties) { - return new RecordsGetResponse(properties); + FolderRecordUpdateRequest.create = function create(properties) { + return new FolderRecordUpdateRequest(properties); }; /** - * Encodes the specified RecordsGetResponse message. Does not implicitly {@link Records.RecordsGetResponse.verify|verify} messages. + * Encodes the specified FolderRecordUpdateRequest message. Does not implicitly {@link Folder.FolderRecordUpdateRequest.verify|verify} messages. * @function encode - * @memberof Records.RecordsGetResponse + * @memberof Folder.FolderRecordUpdateRequest * @static - * @param {Records.IRecordsGetResponse} message RecordsGetResponse message or plain object to encode + * @param {Folder.IFolderRecordUpdateRequest} message FolderRecordUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsGetResponse.encode = function encode(message, writer) { + FolderRecordUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.records != null && message.records.length) - for (let i = 0; i < message.records.length; ++i) - $root.Records.Record.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.folderRecordKeys != null && message.folderRecordKeys.length) - for (let i = 0; i < message.folderRecordKeys.length; ++i) - $root.Records.FolderRecordKey.encode(message.folderRecordKeys[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.folders != null && message.folders.length) - for (let i = 0; i < message.folders.length; ++i) - $root.Records.Folder.encode(message.folders[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.teams != null && message.teams.length) - for (let i = 0; i < message.teams.length; ++i) - $root.Records.Team.encode(message.teams[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); + if (message.addRecords != null && message.addRecords.length) + for (let i = 0; i < message.addRecords.length; ++i) + $root.Folder.RecordMetadata.encode(message.addRecords[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateRecords != null && message.updateRecords.length) + for (let i = 0; i < message.updateRecords.length; ++i) + $root.Folder.RecordMetadata.encode(message.updateRecords[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.removeRecords != null && message.removeRecords.length) + for (let i = 0; i < message.removeRecords.length; ++i) + $root.Folder.RecordMetadata.encode(message.removeRecords[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified RecordsGetResponse message, length delimited. Does not implicitly {@link Records.RecordsGetResponse.verify|verify} messages. + * Encodes the specified FolderRecordUpdateRequest message, length delimited. Does not implicitly {@link Folder.FolderRecordUpdateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordsGetResponse + * @memberof Folder.FolderRecordUpdateRequest * @static - * @param {Records.IRecordsGetResponse} message RecordsGetResponse message or plain object to encode + * @param {Folder.IFolderRecordUpdateRequest} message FolderRecordUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsGetResponse.encodeDelimited = function encodeDelimited(message, writer) { + FolderRecordUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordsGetResponse message from the specified reader or buffer. + * Decodes a FolderRecordUpdateRequest message from the specified reader or buffer. * @function decode - * @memberof Records.RecordsGetResponse + * @memberof Folder.FolderRecordUpdateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordsGetResponse} RecordsGetResponse + * @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 */ - RecordsGetResponse.decode = function decode(reader, length) { + FolderRecordUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsGetResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderRecordUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.records && message.records.length)) - message.records = []; - message.records.push($root.Records.Record.decode(reader, reader.uint32())); + message.folderUid = reader.bytes(); break; } case 2: { - if (!(message.folderRecordKeys && message.folderRecordKeys.length)) - message.folderRecordKeys = []; - message.folderRecordKeys.push($root.Records.FolderRecordKey.decode(reader, reader.uint32())); + if (!(message.addRecords && message.addRecords.length)) + message.addRecords = []; + message.addRecords.push($root.Folder.RecordMetadata.decode(reader, reader.uint32())); break; } case 3: { - if (!(message.folders && message.folders.length)) - message.folders = []; - message.folders.push($root.Records.Folder.decode(reader, reader.uint32())); + if (!(message.updateRecords && message.updateRecords.length)) + message.updateRecords = []; + message.updateRecords.push($root.Folder.RecordMetadata.decode(reader, reader.uint32())); break; } case 4: { - if (!(message.teams && message.teams.length)) - message.teams = []; - message.teams.push($root.Records.Team.decode(reader, reader.uint32())); + if (!(message.removeRecords && message.removeRecords.length)) + message.removeRecords = []; + message.removeRecords.push($root.Folder.RecordMetadata.decode(reader, reader.uint32())); break; } default: @@ -174741,232 +175478,211 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordsGetResponse message from the specified reader or buffer, length delimited. + * Decodes a FolderRecordUpdateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordsGetResponse + * @memberof Folder.FolderRecordUpdateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsGetResponse} RecordsGetResponse + * @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 */ - RecordsGetResponse.decodeDelimited = function decodeDelimited(reader) { + FolderRecordUpdateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordsGetResponse message. + * Verifies a FolderRecordUpdateRequest message. * @function verify - * @memberof Records.RecordsGetResponse + * @memberof Folder.FolderRecordUpdateRequest * @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) { + FolderRecordUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; - for (let i = 0; i < message.records.length; ++i) { - let error = $root.Records.Record.verify(message.records[i]); - 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]); + 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]); if (error) - return "folderRecordKeys." + error; + return "addRecords." + 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]); + 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]); if (error) - return "folders." + error; + return "updateRecords." + 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]); + 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]); if (error) - return "teams." + error; + return "removeRecords." + error; } } return null; }; /** - * Creates a RecordsGetResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FolderRecordUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordsGetResponse + * @memberof Folder.FolderRecordUpdateRequest * @static * @param {Object.} object Plain object - * @returns {Records.RecordsGetResponse} RecordsGetResponse + * @returns {Folder.FolderRecordUpdateRequest} FolderRecordUpdateRequest */ - RecordsGetResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsGetResponse) + FolderRecordUpdateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.FolderRecordUpdateRequest) return object; - let message = new $root.Records.RecordsGetResponse(); - if (object.records) { - if (!Array.isArray(object.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") - throw TypeError(".Records.RecordsGetResponse.records: object expected"); - message.records[i] = $root.Records.Record.fromObject(object.records[i]); - } - } - if (object.folderRecordKeys) { - if (!Array.isArray(object.folderRecordKeys)) - throw TypeError(".Records.RecordsGetResponse.folderRecordKeys: array expected"); - message.folderRecordKeys = []; - for (let i = 0; i < object.folderRecordKeys.length; ++i) { - if (typeof object.folderRecordKeys[i] !== "object") - throw TypeError(".Records.RecordsGetResponse.folderRecordKeys: object expected"); - message.folderRecordKeys[i] = $root.Records.FolderRecordKey.fromObject(object.folderRecordKeys[i]); + let message = new $root.Folder.FolderRecordUpdateRequest(); + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.addRecords) { + if (!Array.isArray(object.addRecords)) + throw TypeError(".Folder.FolderRecordUpdateRequest.addRecords: array expected"); + message.addRecords = []; + for (let i = 0; i < object.addRecords.length; ++i) { + if (typeof object.addRecords[i] !== "object") + throw TypeError(".Folder.FolderRecordUpdateRequest.addRecords: object expected"); + message.addRecords[i] = $root.Folder.RecordMetadata.fromObject(object.addRecords[i]); } } - if (object.folders) { - if (!Array.isArray(object.folders)) - throw TypeError(".Records.RecordsGetResponse.folders: array expected"); - message.folders = []; - for (let i = 0; i < object.folders.length; ++i) { - if (typeof object.folders[i] !== "object") - throw TypeError(".Records.RecordsGetResponse.folders: object expected"); - message.folders[i] = $root.Records.Folder.fromObject(object.folders[i]); + if (object.updateRecords) { + if (!Array.isArray(object.updateRecords)) + throw TypeError(".Folder.FolderRecordUpdateRequest.updateRecords: array expected"); + message.updateRecords = []; + for (let i = 0; i < object.updateRecords.length; ++i) { + if (typeof object.updateRecords[i] !== "object") + throw TypeError(".Folder.FolderRecordUpdateRequest.updateRecords: object expected"); + message.updateRecords[i] = $root.Folder.RecordMetadata.fromObject(object.updateRecords[i]); } } - if (object.teams) { - if (!Array.isArray(object.teams)) - throw TypeError(".Records.RecordsGetResponse.teams: array expected"); - message.teams = []; - for (let i = 0; i < object.teams.length; ++i) { - if (typeof object.teams[i] !== "object") - throw TypeError(".Records.RecordsGetResponse.teams: object expected"); - message.teams[i] = $root.Records.Team.fromObject(object.teams[i]); + if (object.removeRecords) { + if (!Array.isArray(object.removeRecords)) + throw TypeError(".Folder.FolderRecordUpdateRequest.removeRecords: array expected"); + message.removeRecords = []; + for (let i = 0; i < object.removeRecords.length; ++i) { + if (typeof object.removeRecords[i] !== "object") + throw TypeError(".Folder.FolderRecordUpdateRequest.removeRecords: object expected"); + message.removeRecords[i] = $root.Folder.RecordMetadata.fromObject(object.removeRecords[i]); } } return message; }; /** - * Creates a plain object from a RecordsGetResponse message. Also converts values to other types if specified. + * Creates a plain object from a FolderRecordUpdateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordsGetResponse + * @memberof Folder.FolderRecordUpdateRequest * @static - * @param {Records.RecordsGetResponse} message RecordsGetResponse + * @param {Folder.FolderRecordUpdateRequest} message FolderRecordUpdateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsGetResponse.toObject = function toObject(message, options) { + FolderRecordUpdateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { - object.records = []; - object.folderRecordKeys = []; - object.folders = []; - object.teams = []; - } - if (message.records && message.records.length) { - object.records = []; - for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.Records.Record.toObject(message.records[j], options); + object.addRecords = []; + object.updateRecords = []; + object.removeRecords = []; } - if (message.folderRecordKeys && message.folderRecordKeys.length) { - object.folderRecordKeys = []; - for (let j = 0; j < message.folderRecordKeys.length; ++j) - object.folderRecordKeys[j] = $root.Records.FolderRecordKey.toObject(message.folderRecordKeys[j], options); + if (options.defaults) + if (options.bytes === String) + object.folderUid = ""; + else { + object.folderUid = []; + if (options.bytes !== Array) + object.folderUid = $util.newBuffer(object.folderUid); + } + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.addRecords && message.addRecords.length) { + object.addRecords = []; + for (let j = 0; j < message.addRecords.length; ++j) + object.addRecords[j] = $root.Folder.RecordMetadata.toObject(message.addRecords[j], options); } - if (message.folders && message.folders.length) { - object.folders = []; - for (let j = 0; j < message.folders.length; ++j) - object.folders[j] = $root.Records.Folder.toObject(message.folders[j], options); + if (message.updateRecords && message.updateRecords.length) { + object.updateRecords = []; + for (let j = 0; j < message.updateRecords.length; ++j) + object.updateRecords[j] = $root.Folder.RecordMetadata.toObject(message.updateRecords[j], options); } - if (message.teams && message.teams.length) { - object.teams = []; - for (let j = 0; j < message.teams.length; ++j) - object.teams[j] = $root.Records.Team.toObject(message.teams[j], options); + if (message.removeRecords && message.removeRecords.length) { + object.removeRecords = []; + for (let j = 0; j < message.removeRecords.length; ++j) + object.removeRecords[j] = $root.Folder.RecordMetadata.toObject(message.removeRecords[j], options); } return object; }; /** - * Converts this RecordsGetResponse to JSON. + * Converts this FolderRecordUpdateRequest to JSON. * @function toJSON - * @memberof Records.RecordsGetResponse + * @memberof Folder.FolderRecordUpdateRequest * @instance * @returns {Object.} JSON object */ - RecordsGetResponse.prototype.toJSON = function toJSON() { + FolderRecordUpdateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordsGetResponse + * Gets the default type url for FolderRecordUpdateRequest * @function getTypeUrl - * @memberof Records.RecordsGetResponse + * @memberof Folder.FolderRecordUpdateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordsGetResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FolderRecordUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordsGetResponse"; + return typeUrlPrefix + "/Folder.FolderRecordUpdateRequest"; }; - return RecordsGetResponse; - })(); - - /** - * RecordFolderType enum. - * @name Records.RecordFolderType - * @enum {number} - * @property {number} user_folder=0 user_folder value - * @property {number} shared_folder=1 shared_folder value - * @property {number} shared_folder_folder=2 shared_folder_folder value - */ - Records.RecordFolderType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "user_folder"] = 0; - values[valuesById[1] = "shared_folder"] = 1; - values[valuesById[2] = "shared_folder_folder"] = 2; - return values; + return FolderRecordUpdateRequest; })(); - Records.RecordLink = (function() { + Folder.RecordMetadata = (function() { /** - * Properties of a RecordLink. - * @memberof Records - * @interface IRecordLink - * @property {Uint8Array|null} [recordUid] RecordLink recordUid - * @property {Uint8Array|null} [recordKey] RecordLink recordKey + * Properties of a RecordMetadata. + * @memberof Folder + * @interface IRecordMetadata + * @property {Uint8Array|null} [recordUid] The record uid + * @property {Uint8Array|null} [encryptedRecordKey] The record key encrypted with the folder key or the user’s data key if the record is located in the Vault root. + * @property {Folder.EncryptedKeyType|null} [encryptedRecordKeyType] Indicates the encryption scheme used to encrypt the record key. + * @property {common.tla.ITLAProperties|null} [tlaProperties] time limited access settings define expiration, notification and rotation policies. */ /** - * Constructs a new RecordLink. - * @memberof Records - * @classdesc Represents a RecordLink. - * @implements IRecordLink + * Constructs a new RecordMetadata. + * @memberof Folder + * @classdesc Represents a RecordMetadata. + * @implements IRecordMetadata * @constructor - * @param {Records.IRecordLink=} [properties] Properties to set + * @param {Folder.IRecordMetadata=} [properties] Properties to set */ - function RecordLink(properties) { + function RecordMetadata(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -174974,80 +175690,100 @@ export const Records = $root.Records = (() => { } /** - * RecordLink recordUid. + * The record uid * @member {Uint8Array} recordUid - * @memberof Records.RecordLink + * @memberof Folder.RecordMetadata * @instance */ - RecordLink.prototype.recordUid = $util.newBuffer([]); + RecordMetadata.prototype.recordUid = $util.newBuffer([]); /** - * RecordLink recordKey. - * @member {Uint8Array} recordKey - * @memberof Records.RecordLink + * The record key encrypted with the folder key or the user’s data key if the record is located in the Vault root. + * @member {Uint8Array} encryptedRecordKey + * @memberof Folder.RecordMetadata * @instance */ - RecordLink.prototype.recordKey = $util.newBuffer([]); + RecordMetadata.prototype.encryptedRecordKey = $util.newBuffer([]); /** - * Creates a new RecordLink instance using the specified properties. + * Indicates the encryption scheme used to encrypt the record key. + * @member {Folder.EncryptedKeyType} encryptedRecordKeyType + * @memberof Folder.RecordMetadata + * @instance + */ + RecordMetadata.prototype.encryptedRecordKeyType = 0; + + /** + * time limited access settings define expiration, notification and rotation policies. + * @member {common.tla.ITLAProperties|null|undefined} tlaProperties + * @memberof Folder.RecordMetadata + * @instance + */ + RecordMetadata.prototype.tlaProperties = null; + + /** + * Creates a new RecordMetadata instance using the specified properties. * @function create - * @memberof Records.RecordLink + * @memberof Folder.RecordMetadata * @static - * @param {Records.IRecordLink=} [properties] Properties to set - * @returns {Records.RecordLink} RecordLink instance + * @param {Folder.IRecordMetadata=} [properties] Properties to set + * @returns {Folder.RecordMetadata} RecordMetadata instance */ - RecordLink.create = function create(properties) { - return new RecordLink(properties); + RecordMetadata.create = function create(properties) { + return new RecordMetadata(properties); }; /** - * Encodes the specified RecordLink message. Does not implicitly {@link Records.RecordLink.verify|verify} messages. + * Encodes the specified RecordMetadata message. Does not implicitly {@link Folder.RecordMetadata.verify|verify} messages. * @function encode - * @memberof Records.RecordLink + * @memberof Folder.RecordMetadata * @static - * @param {Records.IRecordLink} message RecordLink message or plain object to encode + * @param {Folder.IRecordMetadata} message RecordMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordLink.encode = function encode(message, writer) { + RecordMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordKey); + if (message.encryptedRecordKey != null && Object.hasOwnProperty.call(message, "encryptedRecordKey")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedRecordKey); + if (message.encryptedRecordKeyType != null && Object.hasOwnProperty.call(message, "encryptedRecordKeyType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.encryptedRecordKeyType); + if (message.tlaProperties != null && Object.hasOwnProperty.call(message, "tlaProperties")) + $root.common.tla.TLAProperties.encode(message.tlaProperties, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified RecordLink message, length delimited. Does not implicitly {@link Records.RecordLink.verify|verify} messages. + * Encodes the specified RecordMetadata message, length delimited. Does not implicitly {@link Folder.RecordMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordLink + * @memberof Folder.RecordMetadata * @static - * @param {Records.IRecordLink} message RecordLink message or plain object to encode + * @param {Folder.IRecordMetadata} message RecordMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordLink.encodeDelimited = function encodeDelimited(message, writer) { + RecordMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordLink message from the specified reader or buffer. + * Decodes a RecordMetadata message from the specified reader or buffer. * @function decode - * @memberof Records.RecordLink + * @memberof Folder.RecordMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordLink} RecordLink + * @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 */ - RecordLink.decode = function decode(reader, length) { + RecordMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordLink(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.RecordMetadata(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -175056,7 +175792,15 @@ export const Records = $root.Records = (() => { break; } case 2: { - message.recordKey = reader.bytes(); + message.encryptedRecordKey = reader.bytes(); + break; + } + case 3: { + message.encryptedRecordKeyType = reader.int32(); + break; + } + case 5: { + message.tlaProperties = $root.common.tla.TLAProperties.decode(reader, reader.uint32()); break; } default: @@ -175068,76 +175812,125 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordLink message from the specified reader or buffer, length delimited. + * Decodes a RecordMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordLink + * @memberof Folder.RecordMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordLink} RecordLink + * @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 */ - RecordLink.decodeDelimited = function decodeDelimited(reader) { + RecordMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordLink message. + * Verifies a RecordMetadata message. * @function verify - * @memberof Records.RecordLink + * @memberof Folder.RecordMetadata * @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) { + RecordMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; + if (message.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); + if (error) + return "tlaProperties." + error; + } return null; }; /** - * Creates a RecordLink message from a plain object. Also converts values to their respective internal types. + * Creates a RecordMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordLink + * @memberof Folder.RecordMetadata * @static * @param {Object.} object Plain object - * @returns {Records.RecordLink} RecordLink + * @returns {Folder.RecordMetadata} RecordMetadata */ - RecordLink.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordLink) + RecordMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.RecordMetadata) return object; - let message = new $root.Records.RecordLink(); + let message = new $root.Folder.RecordMetadata(); if (object.recordUid != null) if (typeof object.recordUid === "string") $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); else if (object.recordUid.length >= 0) message.recordUid = object.recordUid; - if (object.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; + if (object.encryptedRecordKey != null) + if (typeof object.encryptedRecordKey === "string") + $util.base64.decode(object.encryptedRecordKey, message.encryptedRecordKey = $util.newBuffer($util.base64.length(object.encryptedRecordKey)), 0); + else if (object.encryptedRecordKey.length >= 0) + message.encryptedRecordKey = object.encryptedRecordKey; + switch (object.encryptedRecordKeyType) { + default: + if (typeof object.encryptedRecordKeyType === "number") { + message.encryptedRecordKeyType = object.encryptedRecordKeyType; + break; + } + break; + case "no_key": + case 0: + message.encryptedRecordKeyType = 0; + break; + case "encrypted_by_data_key": + case 1: + message.encryptedRecordKeyType = 1; + break; + case "encrypted_by_public_key": + case 2: + message.encryptedRecordKeyType = 2; + break; + case "encrypted_by_data_key_gcm": + case 3: + message.encryptedRecordKeyType = 3; + break; + case "encrypted_by_public_key_ecc": + case 4: + message.encryptedRecordKeyType = 4; + break; + } + if (object.tlaProperties != null) { + if (typeof object.tlaProperties !== "object") + throw TypeError(".Folder.RecordMetadata.tlaProperties: object expected"); + message.tlaProperties = $root.common.tla.TLAProperties.fromObject(object.tlaProperties); + } return message; }; /** - * Creates a plain object from a RecordLink message. Also converts values to other types if specified. + * Creates a plain object from a RecordMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordLink + * @memberof Folder.RecordMetadata * @static - * @param {Records.RecordLink} message RecordLink + * @param {Folder.RecordMetadata} message RecordMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordLink.toObject = function toObject(message, options) { + RecordMetadata.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -175150,68 +175943,75 @@ export const Records = $root.Records = (() => { object.recordUid = $util.newBuffer(object.recordUid); } if (options.bytes === String) - object.recordKey = ""; + object.encryptedRecordKey = ""; else { - object.recordKey = []; + object.encryptedRecordKey = []; if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); + object.encryptedRecordKey = $util.newBuffer(object.encryptedRecordKey); } + object.encryptedRecordKeyType = options.enums === String ? "no_key" : 0; + object.tlaProperties = null; } if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; + if (message.encryptedRecordKey != null && message.hasOwnProperty("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")) + object.encryptedRecordKeyType = options.enums === String ? $root.Folder.EncryptedKeyType[message.encryptedRecordKeyType] === undefined ? message.encryptedRecordKeyType : $root.Folder.EncryptedKeyType[message.encryptedRecordKeyType] : message.encryptedRecordKeyType; + if (message.tlaProperties != null && message.hasOwnProperty("tlaProperties")) + object.tlaProperties = $root.common.tla.TLAProperties.toObject(message.tlaProperties, options); return object; }; /** - * Converts this RecordLink to JSON. + * Converts this RecordMetadata to JSON. * @function toJSON - * @memberof Records.RecordLink + * @memberof Folder.RecordMetadata * @instance * @returns {Object.} JSON object */ - RecordLink.prototype.toJSON = function toJSON() { + RecordMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordLink + * Gets the default type url for RecordMetadata * @function getTypeUrl - * @memberof Records.RecordLink + * @memberof Folder.RecordMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordLink"; + return typeUrlPrefix + "/Folder.RecordMetadata"; }; - return RecordLink; + return RecordMetadata; })(); - Records.RecordAudit = (function() { + Folder.FolderRecord = (function() { /** - * Properties of a RecordAudit. - * @memberof Records - * @interface IRecordAudit - * @property {number|null} [version] RecordAudit version - * @property {Uint8Array|null} [data] RecordAudit data + * Properties of a FolderRecord. + * @memberof Folder + * @interface IFolderRecord + * @property {Uint8Array|null} [folderUid] the parent folder uid. Can reference the implicit root folder. + * @property {Folder.IRecordMetadata|null} [recordMetadata] record key and tla information + * @property {Folder.FolderKeyEncryptionType|null} [folderKeyEncryptionType] Indicates the encryption scheme used to encrypt the record key for this folder. */ /** - * Constructs a new RecordAudit. - * @memberof Records - * @classdesc Represents a RecordAudit. - * @implements IRecordAudit + * Constructs a new FolderRecord. + * @memberof Folder + * @classdesc Represents a FolderRecord. + * @implements IFolderRecord * @constructor - * @param {Records.IRecordAudit=} [properties] Properties to set + * @param {Folder.IFolderRecord=} [properties] Properties to set */ - function RecordAudit(properties) { + function FolderRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -175219,89 +176019,103 @@ export const Records = $root.Records = (() => { } /** - * RecordAudit version. - * @member {number} version - * @memberof Records.RecordAudit + * the parent folder uid. Can reference the implicit root folder. + * @member {Uint8Array} folderUid + * @memberof Folder.FolderRecord * @instance */ - RecordAudit.prototype.version = 0; + FolderRecord.prototype.folderUid = $util.newBuffer([]); /** - * RecordAudit data. - * @member {Uint8Array} data - * @memberof Records.RecordAudit + * record key and tla information + * @member {Folder.IRecordMetadata|null|undefined} recordMetadata + * @memberof Folder.FolderRecord * @instance */ - RecordAudit.prototype.data = $util.newBuffer([]); + FolderRecord.prototype.recordMetadata = null; /** - * Creates a new RecordAudit instance using the specified properties. + * Indicates the encryption scheme used to encrypt the record key for this folder. + * @member {Folder.FolderKeyEncryptionType} folderKeyEncryptionType + * @memberof Folder.FolderRecord + * @instance + */ + FolderRecord.prototype.folderKeyEncryptionType = 0; + + /** + * Creates a new FolderRecord instance using the specified properties. * @function create - * @memberof Records.RecordAudit + * @memberof Folder.FolderRecord * @static - * @param {Records.IRecordAudit=} [properties] Properties to set - * @returns {Records.RecordAudit} RecordAudit instance + * @param {Folder.IFolderRecord=} [properties] Properties to set + * @returns {Folder.FolderRecord} FolderRecord instance */ - RecordAudit.create = function create(properties) { - return new RecordAudit(properties); + FolderRecord.create = function create(properties) { + return new FolderRecord(properties); }; /** - * Encodes the specified RecordAudit message. Does not implicitly {@link Records.RecordAudit.verify|verify} messages. + * Encodes the specified FolderRecord message. Does not implicitly {@link Folder.FolderRecord.verify|verify} messages. * @function encode - * @memberof Records.RecordAudit + * @memberof Folder.FolderRecord * @static - * @param {Records.IRecordAudit} message RecordAudit message or plain object to encode + * @param {Folder.IFolderRecord} message FolderRecord message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordAudit.encode = function encode(message, writer) { + FolderRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); + if (message.recordMetadata != null && Object.hasOwnProperty.call(message, "recordMetadata")) + $root.Folder.RecordMetadata.encode(message.recordMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.folderKeyEncryptionType != null && Object.hasOwnProperty.call(message, "folderKeyEncryptionType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.folderKeyEncryptionType); return writer; }; /** - * Encodes the specified RecordAudit message, length delimited. Does not implicitly {@link Records.RecordAudit.verify|verify} messages. + * Encodes the specified FolderRecord message, length delimited. Does not implicitly {@link Folder.FolderRecord.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordAudit + * @memberof Folder.FolderRecord * @static - * @param {Records.IRecordAudit} message RecordAudit message or plain object to encode + * @param {Folder.IFolderRecord} message FolderRecord message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordAudit.encodeDelimited = function encodeDelimited(message, writer) { + FolderRecord.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordAudit message from the specified reader or buffer. + * Decodes a FolderRecord message from the specified reader or buffer. * @function decode - * @memberof Records.RecordAudit + * @memberof Folder.FolderRecord * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordAudit} RecordAudit + * @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 */ - RecordAudit.decode = function decode(reader, length) { + FolderRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordAudit(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.version = reader.int32(); + message.folderUid = reader.bytes(); break; } case 2: { - message.data = reader.bytes(); + message.recordMetadata = $root.Folder.RecordMetadata.decode(reader, reader.uint32()); + break; + } + case 3: { + message.folderKeyEncryptionType = reader.int32(); break; } default: @@ -175313,140 +176127,179 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordAudit message from the specified reader or buffer, length delimited. + * Decodes a FolderRecord message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordAudit + * @memberof Folder.FolderRecord * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordAudit} RecordAudit + * @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 */ - RecordAudit.decodeDelimited = function decodeDelimited(reader) { + FolderRecord.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordAudit message. + * Verifies a FolderRecord message. * @function verify - * @memberof Records.RecordAudit + * @memberof Folder.FolderRecord * @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) { + FolderRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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.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); + 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 RecordAudit message from a plain object. Also converts values to their respective internal types. + * Creates a FolderRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordAudit + * @memberof Folder.FolderRecord * @static * @param {Object.} object Plain object - * @returns {Records.RecordAudit} RecordAudit + * @returns {Folder.FolderRecord} FolderRecord */ - RecordAudit.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordAudit) + FolderRecord.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.FolderRecord) return object; - let message = new $root.Records.RecordAudit(); - if (object.version != null) - message.version = object.version | 0; - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + let message = new $root.Folder.FolderRecord(); + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.recordMetadata != null) { + if (typeof object.recordMetadata !== "object") + throw TypeError(".Folder.FolderRecord.recordMetadata: object expected"); + message.recordMetadata = $root.Folder.RecordMetadata.fromObject(object.recordMetadata); + } + switch (object.folderKeyEncryptionType) { + default: + if (typeof object.folderKeyEncryptionType === "number") { + message.folderKeyEncryptionType = object.folderKeyEncryptionType; + break; + } + break; + case "ENCRYPTED_BY_USER_KEY": + case 0: + message.folderKeyEncryptionType = 0; + break; + case "ENCRYPTED_BY_PARENT_KEY": + case 1: + message.folderKeyEncryptionType = 1; + break; + case "ENCRYPTED_BY_TEAM_KEY": + case 2: + message.folderKeyEncryptionType = 2; + break; + } return message; }; /** - * Creates a plain object from a RecordAudit message. Also converts values to other types if specified. + * Creates a plain object from a FolderRecord message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordAudit + * @memberof Folder.FolderRecord * @static - * @param {Records.RecordAudit} message RecordAudit + * @param {Folder.FolderRecord} message FolderRecord * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordAudit.toObject = function toObject(message, options) { + FolderRecord.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.version = 0; if (options.bytes === String) - object.data = ""; + object.folderUid = ""; else { - object.data = []; + object.folderUid = []; if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + object.folderUid = $util.newBuffer(object.folderUid); } + object.recordMetadata = null; + object.folderKeyEncryptionType = options.enums === String ? "ENCRYPTED_BY_USER_KEY" : 0; } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.recordMetadata != null && message.hasOwnProperty("recordMetadata")) + object.recordMetadata = $root.Folder.RecordMetadata.toObject(message.recordMetadata, options); + if (message.folderKeyEncryptionType != null && message.hasOwnProperty("folderKeyEncryptionType")) + object.folderKeyEncryptionType = options.enums === String ? $root.Folder.FolderKeyEncryptionType[message.folderKeyEncryptionType] === undefined ? message.folderKeyEncryptionType : $root.Folder.FolderKeyEncryptionType[message.folderKeyEncryptionType] : message.folderKeyEncryptionType; return object; }; /** - * Converts this RecordAudit to JSON. + * Converts this FolderRecord to JSON. * @function toJSON - * @memberof Records.RecordAudit + * @memberof Folder.FolderRecord * @instance * @returns {Object.} JSON object */ - RecordAudit.prototype.toJSON = function toJSON() { + FolderRecord.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordAudit + * Gets the default type url for FolderRecord * @function getTypeUrl - * @memberof Records.RecordAudit + * @memberof Folder.FolderRecord * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordAudit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FolderRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordAudit"; + return typeUrlPrefix + "/Folder.FolderRecord"; }; - return RecordAudit; + return FolderRecord; })(); - Records.SecurityData = (function() { + Folder.FolderRecordUpdateResponse = (function() { /** - * Properties of a SecurityData. - * @memberof Records - * @interface ISecurityData - * @property {Uint8Array|null} [data] SecurityData data + * Properties of a FolderRecordUpdateResponse. + * @memberof Folder + * @interface IFolderRecordUpdateResponse + * @property {Uint8Array|null} [folderUid] FolderRecordUpdateResponse folderUid + * @property {Array.|null} [folderRecordUpdateResult] FolderRecordUpdateResponse folderRecordUpdateResult */ /** - * Constructs a new SecurityData. - * @memberof Records - * @classdesc Represents a SecurityData. - * @implements ISecurityData + * Constructs a new FolderRecordUpdateResponse. + * @memberof Folder + * @classdesc Represents a FolderRecordUpdateResponse. + * @implements IFolderRecordUpdateResponse * @constructor - * @param {Records.ISecurityData=} [properties] Properties to set + * @param {Folder.IFolderRecordUpdateResponse=} [properties] Properties to set */ - function SecurityData(properties) { + function FolderRecordUpdateResponse(properties) { + this.folderRecordUpdateResult = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -175454,75 +176307,92 @@ export const Records = $root.Records = (() => { } /** - * SecurityData data. - * @member {Uint8Array} data - * @memberof Records.SecurityData + * FolderRecordUpdateResponse folderUid. + * @member {Uint8Array} folderUid + * @memberof Folder.FolderRecordUpdateResponse * @instance */ - SecurityData.prototype.data = $util.newBuffer([]); + FolderRecordUpdateResponse.prototype.folderUid = $util.newBuffer([]); /** - * Creates a new SecurityData instance using the specified properties. + * FolderRecordUpdateResponse folderRecordUpdateResult. + * @member {Array.} folderRecordUpdateResult + * @memberof Folder.FolderRecordUpdateResponse + * @instance + */ + FolderRecordUpdateResponse.prototype.folderRecordUpdateResult = $util.emptyArray; + + /** + * Creates a new FolderRecordUpdateResponse instance using the specified properties. * @function create - * @memberof Records.SecurityData + * @memberof Folder.FolderRecordUpdateResponse * @static - * @param {Records.ISecurityData=} [properties] Properties to set - * @returns {Records.SecurityData} SecurityData instance + * @param {Folder.IFolderRecordUpdateResponse=} [properties] Properties to set + * @returns {Folder.FolderRecordUpdateResponse} FolderRecordUpdateResponse instance */ - SecurityData.create = function create(properties) { - return new SecurityData(properties); + FolderRecordUpdateResponse.create = function create(properties) { + return new FolderRecordUpdateResponse(properties); }; /** - * Encodes the specified SecurityData message. Does not implicitly {@link Records.SecurityData.verify|verify} messages. + * Encodes the specified FolderRecordUpdateResponse message. Does not implicitly {@link Folder.FolderRecordUpdateResponse.verify|verify} messages. * @function encode - * @memberof Records.SecurityData + * @memberof Folder.FolderRecordUpdateResponse * @static - * @param {Records.ISecurityData} message SecurityData message or plain object to encode + * @param {Folder.IFolderRecordUpdateResponse} message FolderRecordUpdateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecurityData.encode = function encode(message, writer) { + FolderRecordUpdateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.data); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); + if (message.folderRecordUpdateResult != null && message.folderRecordUpdateResult.length) + for (let i = 0; i < message.folderRecordUpdateResult.length; ++i) + $root.Folder.FolderRecordUpdateResult.encode(message.folderRecordUpdateResult[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified SecurityData message, length delimited. Does not implicitly {@link Records.SecurityData.verify|verify} messages. + * Encodes the specified FolderRecordUpdateResponse message, length delimited. Does not implicitly {@link Folder.FolderRecordUpdateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Records.SecurityData + * @memberof Folder.FolderRecordUpdateResponse * @static - * @param {Records.ISecurityData} message SecurityData message or plain object to encode + * @param {Folder.IFolderRecordUpdateResponse} message FolderRecordUpdateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecurityData.encodeDelimited = function encodeDelimited(message, writer) { + FolderRecordUpdateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SecurityData message from the specified reader or buffer. + * Decodes a FolderRecordUpdateResponse message from the specified reader or buffer. * @function decode - * @memberof Records.SecurityData + * @memberof Folder.FolderRecordUpdateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.SecurityData} SecurityData + * @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 */ - SecurityData.decode = function decode(reader, length) { + FolderRecordUpdateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.SecurityData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderRecordUpdateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.data = reader.bytes(); + message.folderUid = reader.bytes(); + break; + } + case 4: { + if (!(message.folderRecordUpdateResult && message.folderRecordUpdateResult.length)) + message.folderRecordUpdateResult = []; + message.folderRecordUpdateResult.push($root.Folder.FolderRecordUpdateResult.decode(reader, reader.uint32())); break; } default: @@ -175534,131 +176404,159 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a SecurityData message from the specified reader or buffer, length delimited. + * Decodes a FolderRecordUpdateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.SecurityData + * @memberof Folder.FolderRecordUpdateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.SecurityData} SecurityData + * @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 */ - SecurityData.decodeDelimited = function decodeDelimited(reader) { + FolderRecordUpdateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SecurityData message. + * Verifies a FolderRecordUpdateResponse message. * @function verify - * @memberof Records.SecurityData + * @memberof Folder.FolderRecordUpdateResponse * @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) { + FolderRecordUpdateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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]); + if (error) + return "folderRecordUpdateResult." + error; + } + } return null; }; /** - * Creates a SecurityData message from a plain object. Also converts values to their respective internal types. + * Creates a FolderRecordUpdateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.SecurityData + * @memberof Folder.FolderRecordUpdateResponse * @static * @param {Object.} object Plain object - * @returns {Records.SecurityData} SecurityData + * @returns {Folder.FolderRecordUpdateResponse} FolderRecordUpdateResponse */ - SecurityData.fromObject = function fromObject(object) { - if (object instanceof $root.Records.SecurityData) + FolderRecordUpdateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.FolderRecordUpdateResponse) return object; - let message = new $root.Records.SecurityData(); - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + let message = new $root.Folder.FolderRecordUpdateResponse(); + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.folderRecordUpdateResult) { + if (!Array.isArray(object.folderRecordUpdateResult)) + throw TypeError(".Folder.FolderRecordUpdateResponse.folderRecordUpdateResult: array expected"); + message.folderRecordUpdateResult = []; + for (let i = 0; i < object.folderRecordUpdateResult.length; ++i) { + if (typeof object.folderRecordUpdateResult[i] !== "object") + throw TypeError(".Folder.FolderRecordUpdateResponse.folderRecordUpdateResult: object expected"); + message.folderRecordUpdateResult[i] = $root.Folder.FolderRecordUpdateResult.fromObject(object.folderRecordUpdateResult[i]); + } + } return message; }; /** - * Creates a plain object from a SecurityData message. Also converts values to other types if specified. + * Creates a plain object from a FolderRecordUpdateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Records.SecurityData + * @memberof Folder.FolderRecordUpdateResponse * @static - * @param {Records.SecurityData} message SecurityData + * @param {Folder.FolderRecordUpdateResponse} message FolderRecordUpdateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SecurityData.toObject = function toObject(message, options) { + FolderRecordUpdateResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.folderRecordUpdateResult = []; if (options.defaults) if (options.bytes === String) - object.data = ""; + object.folderUid = ""; else { - object.data = []; + object.folderUid = []; if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + object.folderUid = $util.newBuffer(object.folderUid); } - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.folderRecordUpdateResult && message.folderRecordUpdateResult.length) { + object.folderRecordUpdateResult = []; + for (let j = 0; j < message.folderRecordUpdateResult.length; ++j) + object.folderRecordUpdateResult[j] = $root.Folder.FolderRecordUpdateResult.toObject(message.folderRecordUpdateResult[j], options); + } return object; }; /** - * Converts this SecurityData to JSON. + * Converts this FolderRecordUpdateResponse to JSON. * @function toJSON - * @memberof Records.SecurityData + * @memberof Folder.FolderRecordUpdateResponse * @instance * @returns {Object.} JSON object */ - SecurityData.prototype.toJSON = function toJSON() { + FolderRecordUpdateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SecurityData + * Gets the default type url for FolderRecordUpdateResponse * @function getTypeUrl - * @memberof Records.SecurityData + * @memberof Folder.FolderRecordUpdateResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SecurityData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FolderRecordUpdateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.SecurityData"; + return typeUrlPrefix + "/Folder.FolderRecordUpdateResponse"; }; - return SecurityData; + return FolderRecordUpdateResponse; })(); - Records.SecurityScoreData = (function() { + Folder.FolderRecordUpdateResult = (function() { /** - * Properties of a SecurityScoreData. - * @memberof Records - * @interface ISecurityScoreData - * @property {Uint8Array|null} [data] SecurityScoreData data + * Properties of a FolderRecordUpdateResult. + * @memberof Folder + * @interface IFolderRecordUpdateResult + * @property {Uint8Array|null} [recordUid] FolderRecordUpdateResult recordUid + * @property {Folder.FolderModifyStatus|null} [status] FolderRecordUpdateResult status + * @property {string|null} [message] FolderRecordUpdateResult message */ /** - * Constructs a new SecurityScoreData. - * @memberof Records - * @classdesc Represents a SecurityScoreData. - * @implements ISecurityScoreData + * Constructs a new FolderRecordUpdateResult. + * @memberof Folder + * @classdesc Represents a FolderRecordUpdateResult. + * @implements IFolderRecordUpdateResult * @constructor - * @param {Records.ISecurityScoreData=} [properties] Properties to set + * @param {Folder.IFolderRecordUpdateResult=} [properties] Properties to set */ - function SecurityScoreData(properties) { + function FolderRecordUpdateResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -175666,75 +176564,103 @@ export const Records = $root.Records = (() => { } /** - * SecurityScoreData data. - * @member {Uint8Array} data - * @memberof Records.SecurityScoreData + * FolderRecordUpdateResult recordUid. + * @member {Uint8Array} recordUid + * @memberof Folder.FolderRecordUpdateResult * @instance */ - SecurityScoreData.prototype.data = $util.newBuffer([]); + FolderRecordUpdateResult.prototype.recordUid = $util.newBuffer([]); /** - * Creates a new SecurityScoreData instance using the specified properties. + * FolderRecordUpdateResult status. + * @member {Folder.FolderModifyStatus} status + * @memberof Folder.FolderRecordUpdateResult + * @instance + */ + FolderRecordUpdateResult.prototype.status = 0; + + /** + * FolderRecordUpdateResult message. + * @member {string} message + * @memberof Folder.FolderRecordUpdateResult + * @instance + */ + FolderRecordUpdateResult.prototype.message = ""; + + /** + * Creates a new FolderRecordUpdateResult instance using the specified properties. * @function create - * @memberof Records.SecurityScoreData + * @memberof Folder.FolderRecordUpdateResult * @static - * @param {Records.ISecurityScoreData=} [properties] Properties to set - * @returns {Records.SecurityScoreData} SecurityScoreData instance + * @param {Folder.IFolderRecordUpdateResult=} [properties] Properties to set + * @returns {Folder.FolderRecordUpdateResult} FolderRecordUpdateResult instance */ - SecurityScoreData.create = function create(properties) { - return new SecurityScoreData(properties); + FolderRecordUpdateResult.create = function create(properties) { + return new FolderRecordUpdateResult(properties); }; /** - * Encodes the specified SecurityScoreData message. Does not implicitly {@link Records.SecurityScoreData.verify|verify} messages. + * Encodes the specified FolderRecordUpdateResult message. Does not implicitly {@link Folder.FolderRecordUpdateResult.verify|verify} messages. * @function encode - * @memberof Records.SecurityScoreData + * @memberof Folder.FolderRecordUpdateResult * @static - * @param {Records.ISecurityScoreData} message SecurityScoreData message or plain object to encode + * @param {Folder.IFolderRecordUpdateResult} message FolderRecordUpdateResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecurityScoreData.encode = function encode(message, writer) { + FolderRecordUpdateResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.data); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); return writer; }; /** - * Encodes the specified SecurityScoreData message, length delimited. Does not implicitly {@link Records.SecurityScoreData.verify|verify} messages. + * Encodes the specified FolderRecordUpdateResult message, length delimited. Does not implicitly {@link Folder.FolderRecordUpdateResult.verify|verify} messages. * @function encodeDelimited - * @memberof Records.SecurityScoreData + * @memberof Folder.FolderRecordUpdateResult * @static - * @param {Records.ISecurityScoreData} message SecurityScoreData message or plain object to encode + * @param {Folder.IFolderRecordUpdateResult} message FolderRecordUpdateResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecurityScoreData.encodeDelimited = function encodeDelimited(message, writer) { + FolderRecordUpdateResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SecurityScoreData message from the specified reader or buffer. + * Decodes a FolderRecordUpdateResult message from the specified reader or buffer. * @function decode - * @memberof Records.SecurityScoreData + * @memberof Folder.FolderRecordUpdateResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.SecurityScoreData} SecurityScoreData + * @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 */ - SecurityScoreData.decode = function decode(reader, length) { + FolderRecordUpdateResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.SecurityScoreData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderRecordUpdateResult(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.data = reader.bytes(); + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.status = reader.int32(); + break; + } + case 3: { + message.message = reader.string(); break; } default: @@ -175746,143 +176672,214 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a SecurityScoreData message from the specified reader or buffer, length delimited. + * Decodes a FolderRecordUpdateResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.SecurityScoreData + * @memberof Folder.FolderRecordUpdateResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.SecurityScoreData} SecurityScoreData + * @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 */ - SecurityScoreData.decodeDelimited = function decodeDelimited(reader) { + FolderRecordUpdateResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SecurityScoreData message. + * Verifies a FolderRecordUpdateResult message. * @function verify - * @memberof Records.SecurityScoreData + * @memberof Folder.FolderRecordUpdateResult * @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) { + FolderRecordUpdateResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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 SecurityScoreData message from a plain object. Also converts values to their respective internal types. + * Creates a FolderRecordUpdateResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.SecurityScoreData + * @memberof Folder.FolderRecordUpdateResult * @static * @param {Object.} object Plain object - * @returns {Records.SecurityScoreData} SecurityScoreData + * @returns {Folder.FolderRecordUpdateResult} FolderRecordUpdateResult */ - SecurityScoreData.fromObject = function fromObject(object) { - if (object instanceof $root.Records.SecurityScoreData) + FolderRecordUpdateResult.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.FolderRecordUpdateResult) return object; - let message = new $root.Records.SecurityScoreData(); - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + let message = new $root.Folder.FolderRecordUpdateResult(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; + case "SUCCESS": + case 0: + message.status = 0; + break; + case "BAD_REQUEST": + case 1: + message.status = 1; + break; + case "ACCESS_DENIED": + case 2: + message.status = 2; + break; + case "NOT_FOUND": + case 3: + message.status = 3; + break; + } + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a SecurityScoreData message. Also converts values to other types if specified. + * Creates a plain object from a FolderRecordUpdateResult message. Also converts values to other types if specified. * @function toObject - * @memberof Records.SecurityScoreData + * @memberof Folder.FolderRecordUpdateResult * @static - * @param {Records.SecurityScoreData} message SecurityScoreData + * @param {Folder.FolderRecordUpdateResult} message FolderRecordUpdateResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SecurityScoreData.toObject = function toObject(message, options) { + FolderRecordUpdateResult.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) + if (options.defaults) { if (options.bytes === String) - object.data = ""; + object.recordUid = ""; else { - object.data = []; + object.recordUid = []; if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + object.recordUid = $util.newBuffer(object.recordUid); } - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + object.status = options.enums === String ? "SUCCESS" : 0; + object.message = ""; + } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.status != null && message.hasOwnProperty("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")) + object.message = message.message; return object; }; /** - * Converts this SecurityScoreData to JSON. + * Converts this FolderRecordUpdateResult to JSON. * @function toJSON - * @memberof Records.SecurityScoreData + * @memberof Folder.FolderRecordUpdateResult * @instance * @returns {Object.} JSON object */ - SecurityScoreData.prototype.toJSON = function toJSON() { + FolderRecordUpdateResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SecurityScoreData + * Gets the default type url for FolderRecordUpdateResult * @function getTypeUrl - * @memberof Records.SecurityScoreData + * @memberof Folder.FolderRecordUpdateResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SecurityScoreData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FolderRecordUpdateResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.SecurityScoreData"; + return typeUrlPrefix + "/Folder.FolderRecordUpdateResult"; }; - return SecurityScoreData; + return FolderRecordUpdateResult; })(); - Records.RecordAdd = (function() { + /** + * AccessRoleType enum. + * @name Folder.AccessRoleType + * @enum {number} + * @property {number} NAVIGATOR=0 NAVIGATOR value + * @property {number} REQUESTOR=1 REQUESTOR value + * @property {number} VIEWER=2 VIEWER value + * @property {number} SHARED_MANAGER=3 SHARED_MANAGER value + * @property {number} CONTENT_MANAGER=4 CONTENT_MANAGER value + * @property {number} CONTENT_SHARE_MANAGER=5 CONTENT_SHARE_MANAGER value + * @property {number} MANAGER=6 MANAGER value + * @property {number} UNRESOLVED=7 UNRESOLVED value + */ + Folder.AccessRoleType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NAVIGATOR"] = 0; + values[valuesById[1] = "REQUESTOR"] = 1; + values[valuesById[2] = "VIEWER"] = 2; + values[valuesById[3] = "SHARED_MANAGER"] = 3; + values[valuesById[4] = "CONTENT_MANAGER"] = 4; + values[valuesById[5] = "CONTENT_SHARE_MANAGER"] = 5; + values[valuesById[6] = "MANAGER"] = 6; + values[valuesById[7] = "UNRESOLVED"] = 7; + return values; + })(); - /** - * Properties of a RecordAdd. - * @memberof Records - * @interface IRecordAdd - * @property {Uint8Array|null} [recordUid] RecordAdd recordUid - * @property {Uint8Array|null} [recordKey] RecordAdd recordKey - * @property {number|Long|null} [clientModifiedTime] RecordAdd clientModifiedTime - * @property {Uint8Array|null} [data] RecordAdd data - * @property {Uint8Array|null} [nonSharedData] RecordAdd nonSharedData - * @property {Records.RecordFolderType|null} [folderType] RecordAdd folderType - * @property {Uint8Array|null} [folderUid] RecordAdd folderUid - * @property {Uint8Array|null} [folderKey] RecordAdd folderKey - * @property {Array.|null} [recordLinks] RecordAdd recordLinks - * @property {Records.IRecordAudit|null} [audit] RecordAdd audit - * @property {Records.ISecurityData|null} [securityData] RecordAdd securityData - * @property {Records.ISecurityScoreData|null} [securityScoreData] RecordAdd securityScoreData - */ + Folder.FolderAccessData = (function() { /** - * Constructs a new RecordAdd. - * @memberof Records - * @classdesc Represents a RecordAdd. - * @implements IRecordAdd + * Properties of a FolderAccessData. + * @memberof Folder + * @interface IFolderAccessData + * @property {Uint8Array|null} [folderUid] FolderAccessData folderUid + * @property {Uint8Array|null} [accessTypeUid] FolderAccessData accessTypeUid + * @property {Folder.AccessType|null} [accessType] FolderAccessData accessType + * @property {Folder.AccessRoleType|null} [accessRoleType] FolderAccessData accessRoleType + * @property {Folder.IEncryptedDataKey|null} [folderKey] FolderAccessData folderKey + * @property {boolean|null} [inherited] FolderAccessData inherited + * @property {boolean|null} [hidden] FolderAccessData hidden + * @property {Folder.IFolderPermissions|null} [permissions] FolderAccessData permissions + * @property {common.tla.ITLAProperties|null} [tlaProperties] FolderAccessData tlaProperties + * @property {number|Long|null} [dateCreated] FolderAccessData dateCreated + * @property {number|Long|null} [lastModified] FolderAccessData lastModified + * @property {boolean|null} [deniedAccess] FolderAccessData deniedAccess + */ + + /** + * Constructs a new FolderAccessData. + * @memberof Folder + * @classdesc Represents a FolderAccessData. + * @implements IFolderAccessData * @constructor - * @param {Records.IRecordAdd=} [properties] Properties to set + * @param {Folder.IFolderAccessData=} [properties] Properties to set */ - function RecordAdd(properties) { - this.recordLinks = []; + function FolderAccessData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -175890,232 +176887,229 @@ export const Records = $root.Records = (() => { } /** - * RecordAdd recordUid. - * @member {Uint8Array} recordUid - * @memberof Records.RecordAdd + * FolderAccessData folderUid. + * @member {Uint8Array} folderUid + * @memberof Folder.FolderAccessData * @instance */ - RecordAdd.prototype.recordUid = $util.newBuffer([]); + FolderAccessData.prototype.folderUid = $util.newBuffer([]); /** - * RecordAdd recordKey. - * @member {Uint8Array} recordKey - * @memberof Records.RecordAdd + * FolderAccessData accessTypeUid. + * @member {Uint8Array} accessTypeUid + * @memberof Folder.FolderAccessData * @instance */ - RecordAdd.prototype.recordKey = $util.newBuffer([]); + FolderAccessData.prototype.accessTypeUid = $util.newBuffer([]); /** - * RecordAdd clientModifiedTime. - * @member {number|Long} clientModifiedTime - * @memberof Records.RecordAdd + * FolderAccessData accessType. + * @member {Folder.AccessType} accessType + * @memberof Folder.FolderAccessData * @instance */ - RecordAdd.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FolderAccessData.prototype.accessType = 0; /** - * RecordAdd data. - * @member {Uint8Array} data - * @memberof Records.RecordAdd + * FolderAccessData accessRoleType. + * @member {Folder.AccessRoleType} accessRoleType + * @memberof Folder.FolderAccessData * @instance */ - RecordAdd.prototype.data = $util.newBuffer([]); + FolderAccessData.prototype.accessRoleType = 0; /** - * RecordAdd nonSharedData. - * @member {Uint8Array} nonSharedData - * @memberof Records.RecordAdd + * FolderAccessData folderKey. + * @member {Folder.IEncryptedDataKey|null|undefined} folderKey + * @memberof Folder.FolderAccessData * @instance */ - RecordAdd.prototype.nonSharedData = $util.newBuffer([]); + FolderAccessData.prototype.folderKey = null; /** - * RecordAdd folderType. - * @member {Records.RecordFolderType} folderType - * @memberof Records.RecordAdd + * FolderAccessData inherited. + * @member {boolean} inherited + * @memberof Folder.FolderAccessData * @instance */ - RecordAdd.prototype.folderType = 0; + FolderAccessData.prototype.inherited = false; /** - * RecordAdd folderUid. - * @member {Uint8Array} folderUid - * @memberof Records.RecordAdd + * FolderAccessData hidden. + * @member {boolean} hidden + * @memberof Folder.FolderAccessData * @instance */ - RecordAdd.prototype.folderUid = $util.newBuffer([]); + FolderAccessData.prototype.hidden = false; /** - * RecordAdd folderKey. - * @member {Uint8Array} folderKey - * @memberof Records.RecordAdd + * FolderAccessData permissions. + * @member {Folder.IFolderPermissions|null|undefined} permissions + * @memberof Folder.FolderAccessData * @instance */ - RecordAdd.prototype.folderKey = $util.newBuffer([]); + FolderAccessData.prototype.permissions = null; /** - * RecordAdd recordLinks. - * @member {Array.} recordLinks - * @memberof Records.RecordAdd + * FolderAccessData tlaProperties. + * @member {common.tla.ITLAProperties|null|undefined} tlaProperties + * @memberof Folder.FolderAccessData * @instance */ - RecordAdd.prototype.recordLinks = $util.emptyArray; + FolderAccessData.prototype.tlaProperties = null; /** - * RecordAdd audit. - * @member {Records.IRecordAudit|null|undefined} audit - * @memberof Records.RecordAdd + * FolderAccessData dateCreated. + * @member {number|Long} dateCreated + * @memberof Folder.FolderAccessData * @instance */ - RecordAdd.prototype.audit = null; + FolderAccessData.prototype.dateCreated = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * RecordAdd securityData. - * @member {Records.ISecurityData|null|undefined} securityData - * @memberof Records.RecordAdd + * FolderAccessData lastModified. + * @member {number|Long} lastModified + * @memberof Folder.FolderAccessData * @instance */ - RecordAdd.prototype.securityData = null; + FolderAccessData.prototype.lastModified = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * RecordAdd securityScoreData. - * @member {Records.ISecurityScoreData|null|undefined} securityScoreData - * @memberof Records.RecordAdd + * FolderAccessData deniedAccess. + * @member {boolean} deniedAccess + * @memberof Folder.FolderAccessData * @instance */ - RecordAdd.prototype.securityScoreData = null; + FolderAccessData.prototype.deniedAccess = false; /** - * Creates a new RecordAdd instance using the specified properties. + * Creates a new FolderAccessData instance using the specified properties. * @function create - * @memberof Records.RecordAdd + * @memberof Folder.FolderAccessData * @static - * @param {Records.IRecordAdd=} [properties] Properties to set - * @returns {Records.RecordAdd} RecordAdd instance + * @param {Folder.IFolderAccessData=} [properties] Properties to set + * @returns {Folder.FolderAccessData} FolderAccessData instance */ - RecordAdd.create = function create(properties) { - return new RecordAdd(properties); + FolderAccessData.create = function create(properties) { + return new FolderAccessData(properties); }; /** - * Encodes the specified RecordAdd message. Does not implicitly {@link Records.RecordAdd.verify|verify} messages. + * Encodes the specified FolderAccessData message. Does not implicitly {@link Folder.FolderAccessData.verify|verify} messages. * @function encode - * @memberof Records.RecordAdd + * @memberof Folder.FolderAccessData * @static - * @param {Records.IRecordAdd} message RecordAdd message or plain object to encode + * @param {Folder.IFolderAccessData} message FolderAccessData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordAdd.encode = function encode(message, writer) { + FolderAccessData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordKey); - if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.clientModifiedTime); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); - if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "nonSharedData")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.nonSharedData); - if (message.folderType != null && Object.hasOwnProperty.call(message, "folderType")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.folderType); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.folderUid); + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); + if (message.accessTypeUid != null && Object.hasOwnProperty.call(message, "accessTypeUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.accessTypeUid); + if (message.accessType != null && Object.hasOwnProperty.call(message, "accessType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.accessType); + if (message.accessRoleType != null && Object.hasOwnProperty.call(message, "accessRoleType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.accessRoleType); if (message.folderKey != null && Object.hasOwnProperty.call(message, "folderKey")) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.folderKey); - if (message.recordLinks != null && message.recordLinks.length) - for (let i = 0; i < message.recordLinks.length; ++i) - $root.Records.RecordLink.encode(message.recordLinks[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) - $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.securityData != null && Object.hasOwnProperty.call(message, "securityData")) - $root.Records.SecurityData.encode(message.securityData, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.securityScoreData != null && Object.hasOwnProperty.call(message, "securityScoreData")) - $root.Records.SecurityScoreData.encode(message.securityScoreData, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + $root.Folder.EncryptedDataKey.encode(message.folderKey, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.inherited != null && Object.hasOwnProperty.call(message, "inherited")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.inherited); + if (message.hidden != null && Object.hasOwnProperty.call(message, "hidden")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.hidden); + if (message.permissions != null && Object.hasOwnProperty.call(message, "permissions")) + $root.Folder.FolderPermissions.encode(message.permissions, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.tlaProperties != null && Object.hasOwnProperty.call(message, "tlaProperties")) + $root.common.tla.TLAProperties.encode(message.tlaProperties, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.dateCreated != null && Object.hasOwnProperty.call(message, "dateCreated")) + writer.uint32(/* id 10, wireType 0 =*/80).int64(message.dateCreated); + if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) + writer.uint32(/* id 11, wireType 0 =*/88).int64(message.lastModified); + if (message.deniedAccess != null && Object.hasOwnProperty.call(message, "deniedAccess")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.deniedAccess); return writer; }; /** - * Encodes the specified RecordAdd message, length delimited. Does not implicitly {@link Records.RecordAdd.verify|verify} messages. + * Encodes the specified FolderAccessData message, length delimited. Does not implicitly {@link Folder.FolderAccessData.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordAdd + * @memberof Folder.FolderAccessData * @static - * @param {Records.IRecordAdd} message RecordAdd message or plain object to encode + * @param {Folder.IFolderAccessData} message FolderAccessData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordAdd.encodeDelimited = function encodeDelimited(message, writer) { + FolderAccessData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordAdd message from the specified reader or buffer. + * Decodes a FolderAccessData message from the specified reader or buffer. * @function decode - * @memberof Records.RecordAdd + * @memberof Folder.FolderAccessData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordAdd} RecordAdd + * @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 */ - RecordAdd.decode = function decode(reader, length) { + FolderAccessData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordAdd(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderAccessData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + message.folderUid = reader.bytes(); break; } case 2: { - message.recordKey = reader.bytes(); + message.accessTypeUid = reader.bytes(); break; } case 3: { - message.clientModifiedTime = reader.int64(); + message.accessType = reader.int32(); break; } case 4: { - message.data = reader.bytes(); + message.accessRoleType = reader.int32(); break; } case 5: { - message.nonSharedData = reader.bytes(); + message.folderKey = $root.Folder.EncryptedDataKey.decode(reader, reader.uint32()); break; } case 6: { - message.folderType = reader.int32(); + message.inherited = reader.bool(); break; } case 7: { - message.folderUid = reader.bytes(); + message.hidden = reader.bool(); break; } case 8: { - message.folderKey = reader.bytes(); + message.permissions = $root.Folder.FolderPermissions.decode(reader, reader.uint32()); break; } case 9: { - if (!(message.recordLinks && message.recordLinks.length)) - message.recordLinks = []; - message.recordLinks.push($root.Records.RecordLink.decode(reader, reader.uint32())); + message.tlaProperties = $root.common.tla.TLAProperties.decode(reader, reader.uint32()); break; } case 10: { - message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); + message.dateCreated = reader.int64(); break; } case 11: { - message.securityData = $root.Records.SecurityData.decode(reader, reader.uint32()); + message.lastModified = reader.int64(); break; } case 12: { - message.securityScoreData = $root.Records.SecurityScoreData.decode(reader, reader.uint32()); + message.deniedAccess = reader.bool(); break; } default: @@ -176127,238 +177121,252 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordAdd message from the specified reader or buffer, length delimited. + * Decodes a FolderAccessData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordAdd + * @memberof Folder.FolderAccessData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordAdd} RecordAdd + * @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 */ - RecordAdd.decodeDelimited = function decodeDelimited(reader) { + FolderAccessData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordAdd message. + * Verifies a FolderAccessData message. * @function verify - * @memberof Records.RecordAdd + * @memberof Folder.FolderAccessData * @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) { + FolderAccessData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; - if (message.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) { + 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 "folderType: enum value expected"; + return "accessType: enum value expected"; case 0: case 1: case 2: + case 3: + case 4: + case 5: + case 6: 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]); - if (error) - return "recordLinks." + error; + 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.audit != null && message.hasOwnProperty("audit")) { - let error = $root.Records.RecordAudit.verify(message.audit); + if (message.folderKey != null && message.hasOwnProperty("folderKey")) { + let error = $root.Folder.EncryptedDataKey.verify(message.folderKey); if (error) - return "audit." + error; - } - if (message.securityData != null && message.hasOwnProperty("securityData")) { - let error = $root.Records.SecurityData.verify(message.securityData); + 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); if (error) - return "securityData." + error; + return "permissions." + error; } - if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) { - let error = $root.Records.SecurityScoreData.verify(message.securityScoreData); + if (message.tlaProperties != null && message.hasOwnProperty("tlaProperties")) { + let error = $root.common.tla.TLAProperties.verify(message.tlaProperties); if (error) - return "securityScoreData." + 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 RecordAdd message from a plain object. Also converts values to their respective internal types. + * Creates a FolderAccessData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordAdd + * @memberof Folder.FolderAccessData * @static * @param {Object.} object Plain object - * @returns {Records.RecordAdd} RecordAdd + * @returns {Folder.FolderAccessData} FolderAccessData */ - RecordAdd.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordAdd) + FolderAccessData.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.FolderAccessData) return object; - let message = new $root.Records.RecordAdd(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; - if (object.clientModifiedTime != null) - if ($util.Long) - (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; - else if (typeof object.clientModifiedTime === "string") - message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); - else if (typeof object.clientModifiedTime === "number") - message.clientModifiedTime = object.clientModifiedTime; - else if (typeof object.clientModifiedTime === "object") - message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - if (object.nonSharedData != null) - if (typeof object.nonSharedData === "string") - $util.base64.decode(object.nonSharedData, message.nonSharedData = $util.newBuffer($util.base64.length(object.nonSharedData)), 0); - else if (object.nonSharedData.length >= 0) - message.nonSharedData = object.nonSharedData; - switch (object.folderType) { + let message = new $root.Folder.FolderAccessData(); + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.accessTypeUid != null) + if (typeof object.accessTypeUid === "string") + $util.base64.decode(object.accessTypeUid, message.accessTypeUid = $util.newBuffer($util.base64.length(object.accessTypeUid)), 0); + else if (object.accessTypeUid.length >= 0) + message.accessTypeUid = object.accessTypeUid; + switch (object.accessType) { default: - if (typeof object.folderType === "number") { - message.folderType = object.folderType; + if (typeof object.accessType === "number") { + message.accessType = object.accessType; break; } break; - case "user_folder": + case "AT_UNKNOWN": case 0: - message.folderType = 0; + message.accessType = 0; break; - case "shared_folder": + case "AT_OWNER": case 1: - message.folderType = 1; + message.accessType = 1; break; - case "shared_folder_folder": + case "AT_USER": case 2: - message.folderType = 2; + message.accessType = 2; + break; + case "AT_TEAM": + case 3: + message.accessType = 3; + break; + case "AT_ENTERPRISE": + case 4: + message.accessType = 4; + break; + case "AT_FOLDER": + case 5: + message.accessType = 5; + break; + case "AT_APPLICATION": + case 6: + message.accessType = 6; break; } - if (object.folderUid != null) - if (typeof object.folderUid === "string") - $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); - else if (object.folderUid.length >= 0) - message.folderUid = object.folderUid; - if (object.folderKey != null) - if (typeof object.folderKey === "string") - $util.base64.decode(object.folderKey, message.folderKey = $util.newBuffer($util.base64.length(object.folderKey)), 0); - else if (object.folderKey.length >= 0) - message.folderKey = object.folderKey; - if (object.recordLinks) { - if (!Array.isArray(object.recordLinks)) - throw TypeError(".Records.RecordAdd.recordLinks: array expected"); - message.recordLinks = []; - for (let i = 0; i < object.recordLinks.length; ++i) { - if (typeof object.recordLinks[i] !== "object") - throw TypeError(".Records.RecordAdd.recordLinks: object expected"); - message.recordLinks[i] = $root.Records.RecordLink.fromObject(object.recordLinks[i]); + switch (object.accessRoleType) { + default: + if (typeof object.accessRoleType === "number") { + message.accessRoleType = object.accessRoleType; + break; } + break; + case "NAVIGATOR": + case 0: + message.accessRoleType = 0; + break; + case "REQUESTOR": + case 1: + message.accessRoleType = 1; + break; + case "VIEWER": + case 2: + message.accessRoleType = 2; + break; + case "SHARED_MANAGER": + case 3: + message.accessRoleType = 3; + break; + case "CONTENT_MANAGER": + case 4: + message.accessRoleType = 4; + break; + case "CONTENT_SHARE_MANAGER": + case 5: + message.accessRoleType = 5; + break; + case "MANAGER": + case 6: + message.accessRoleType = 6; + break; + case "UNRESOLVED": + case 7: + message.accessRoleType = 7; + break; } - if (object.audit != null) { - if (typeof object.audit !== "object") - throw TypeError(".Records.RecordAdd.audit: object expected"); - message.audit = $root.Records.RecordAudit.fromObject(object.audit); + if (object.folderKey != null) { + if (typeof object.folderKey !== "object") + throw TypeError(".Folder.FolderAccessData.folderKey: object expected"); + message.folderKey = $root.Folder.EncryptedDataKey.fromObject(object.folderKey); } - if (object.securityData != null) { - if (typeof object.securityData !== "object") - throw TypeError(".Records.RecordAdd.securityData: object expected"); - message.securityData = $root.Records.SecurityData.fromObject(object.securityData); + if (object.inherited != null) + message.inherited = Boolean(object.inherited); + if (object.hidden != null) + message.hidden = Boolean(object.hidden); + if (object.permissions != null) { + if (typeof object.permissions !== "object") + throw TypeError(".Folder.FolderAccessData.permissions: object expected"); + message.permissions = $root.Folder.FolderPermissions.fromObject(object.permissions); } - if (object.securityScoreData != null) { - if (typeof object.securityScoreData !== "object") - throw TypeError(".Records.RecordAdd.securityScoreData: object expected"); - message.securityScoreData = $root.Records.SecurityScoreData.fromObject(object.securityScoreData); + if (object.tlaProperties != null) { + if (typeof object.tlaProperties !== "object") + throw TypeError(".Folder.FolderAccessData.tlaProperties: object expected"); + message.tlaProperties = $root.common.tla.TLAProperties.fromObject(object.tlaProperties); } + if (object.dateCreated != null) + if ($util.Long) + (message.dateCreated = $util.Long.fromValue(object.dateCreated)).unsigned = false; + else if (typeof object.dateCreated === "string") + message.dateCreated = parseInt(object.dateCreated, 10); + else if (typeof object.dateCreated === "number") + message.dateCreated = object.dateCreated; + else if (typeof object.dateCreated === "object") + message.dateCreated = new $util.LongBits(object.dateCreated.low >>> 0, object.dateCreated.high >>> 0).toNumber(); + if (object.lastModified != null) + if ($util.Long) + (message.lastModified = $util.Long.fromValue(object.lastModified)).unsigned = false; + else if (typeof object.lastModified === "string") + message.lastModified = parseInt(object.lastModified, 10); + else if (typeof object.lastModified === "number") + message.lastModified = object.lastModified; + else if (typeof object.lastModified === "object") + message.lastModified = new $util.LongBits(object.lastModified.low >>> 0, object.lastModified.high >>> 0).toNumber(); + if (object.deniedAccess != null) + message.deniedAccess = Boolean(object.deniedAccess); return message; }; /** - * Creates a plain object from a RecordAdd message. Also converts values to other types if specified. + * Creates a plain object from a FolderAccessData message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordAdd + * @memberof Folder.FolderAccessData * @static - * @param {Records.RecordAdd} message RecordAdd + * @param {Folder.FolderAccessData} message FolderAccessData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordAdd.toObject = function toObject(message, options) { + FolderAccessData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.recordLinks = []; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if (options.bytes === String) - object.recordKey = ""; - else { - object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.clientModifiedTime = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - if (options.bytes === String) - object.nonSharedData = ""; - else { - object.nonSharedData = []; - if (options.bytes !== Array) - object.nonSharedData = $util.newBuffer(object.nonSharedData); - } - object.folderType = options.enums === String ? "user_folder" : 0; if (options.bytes === String) object.folderUid = ""; else { @@ -176367,99 +177375,113 @@ export const Records = $root.Records = (() => { object.folderUid = $util.newBuffer(object.folderUid); } if (options.bytes === String) - object.folderKey = ""; + object.accessTypeUid = ""; else { - object.folderKey = []; + object.accessTypeUid = []; if (options.bytes !== Array) - object.folderKey = $util.newBuffer(object.folderKey); - } - object.audit = null; - object.securityData = null; - object.securityScoreData = null; + object.accessTypeUid = $util.newBuffer(object.accessTypeUid); + } + object.accessType = options.enums === String ? "AT_UNKNOWN" : 0; + object.accessRoleType = options.enums === String ? "NAVIGATOR" : 0; + object.folderKey = null; + object.inherited = false; + object.hidden = false; + object.permissions = null; + object.tlaProperties = null; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.dateCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.dateCreated = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.lastModified = options.longs === String ? "0" : 0; + object.deniedAccess = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof message.clientModifiedTime === "number") - object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; - else - object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) - object.nonSharedData = options.bytes === String ? $util.base64.encode(message.nonSharedData, 0, message.nonSharedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.nonSharedData) : message.nonSharedData; - if (message.folderType != null && message.hasOwnProperty("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")) 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")) + 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")) + 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")) + object.accessRoleType = options.enums === String ? $root.Folder.AccessRoleType[message.accessRoleType] === undefined ? message.accessRoleType : $root.Folder.AccessRoleType[message.accessRoleType] : message.accessRoleType; if (message.folderKey != null && message.hasOwnProperty("folderKey")) - object.folderKey = 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); - } - if (message.audit != null && message.hasOwnProperty("audit")) - object.audit = $root.Records.RecordAudit.toObject(message.audit, options); - if (message.securityData != null && message.hasOwnProperty("securityData")) - object.securityData = $root.Records.SecurityData.toObject(message.securityData, options); - if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) - object.securityScoreData = $root.Records.SecurityScoreData.toObject(message.securityScoreData, options); + object.folderKey = $root.Folder.EncryptedDataKey.toObject(message.folderKey, options); + if (message.inherited != null && message.hasOwnProperty("inherited")) + object.inherited = message.inherited; + if (message.hidden != null && message.hasOwnProperty("hidden")) + object.hidden = message.hidden; + if (message.permissions != null && message.hasOwnProperty("permissions")) + object.permissions = $root.Folder.FolderPermissions.toObject(message.permissions, options); + if (message.tlaProperties != null && message.hasOwnProperty("tlaProperties")) + object.tlaProperties = $root.common.tla.TLAProperties.toObject(message.tlaProperties, options); + if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) + if (typeof message.dateCreated === "number") + object.dateCreated = options.longs === String ? String(message.dateCreated) : message.dateCreated; + else + object.dateCreated = options.longs === String ? $util.Long.prototype.toString.call(message.dateCreated) : options.longs === Number ? new $util.LongBits(message.dateCreated.low >>> 0, message.dateCreated.high >>> 0).toNumber() : message.dateCreated; + if (message.lastModified != null && message.hasOwnProperty("lastModified")) + if (typeof 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")) + object.deniedAccess = message.deniedAccess; return object; }; /** - * Converts this RecordAdd to JSON. + * Converts this FolderAccessData to JSON. * @function toJSON - * @memberof Records.RecordAdd + * @memberof Folder.FolderAccessData * @instance * @returns {Object.} JSON object */ - RecordAdd.prototype.toJSON = function toJSON() { + FolderAccessData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordAdd + * Gets the default type url for FolderAccessData * @function getTypeUrl - * @memberof Records.RecordAdd + * @memberof Folder.FolderAccessData * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordAdd.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FolderAccessData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordAdd"; + return typeUrlPrefix + "/Folder.FolderAccessData"; }; - return RecordAdd; + return FolderAccessData; })(); - Records.RecordsAddRequest = (function() { + Folder.RevokedAccess = (function() { /** - * Properties of a RecordsAddRequest. - * @memberof Records - * @interface IRecordsAddRequest - * @property {Array.|null} [records] RecordsAddRequest records - * @property {number|Long|null} [clientTime] RecordsAddRequest clientTime - * @property {Records.RecordKeyType|null} [securityDataKeyType] RecordsAddRequest securityDataKeyType + * Properties of a RevokedAccess. + * @memberof Folder + * @interface IRevokedAccess + * @property {Uint8Array|null} [folderUid] the uid of the folder whose access have been revoked + * @property {Uint8Array|null} [actorUid] the uid of actor whose access has been revoked. can represent a Team or a User (an account) + * @property {Folder.AccessType|null} [accessType] discriminant to distinguish between user (account) and team */ /** - * Constructs a new RecordsAddRequest. - * @memberof Records - * @classdesc Represents a RecordsAddRequest. - * @implements IRecordsAddRequest + * Constructs a new RevokedAccess. + * @memberof Folder + * @classdesc Represents a RevokedAccess. + * @implements IRevokedAccess * @constructor - * @param {Records.IRecordsAddRequest=} [properties] Properties to set + * @param {Folder.IRevokedAccess=} [properties] Properties to set */ - function RecordsAddRequest(properties) { - this.records = []; + function RevokedAccess(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -176467,106 +177489,103 @@ export const Records = $root.Records = (() => { } /** - * RecordsAddRequest records. - * @member {Array.} records - * @memberof Records.RecordsAddRequest + * the uid of the folder whose access have been revoked + * @member {Uint8Array} folderUid + * @memberof Folder.RevokedAccess * @instance */ - RecordsAddRequest.prototype.records = $util.emptyArray; + RevokedAccess.prototype.folderUid = $util.newBuffer([]); /** - * RecordsAddRequest clientTime. - * @member {number|Long} clientTime - * @memberof Records.RecordsAddRequest + * the uid of actor whose access has been revoked. can represent a Team or a User (an account) + * @member {Uint8Array} actorUid + * @memberof Folder.RevokedAccess * @instance */ - RecordsAddRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RevokedAccess.prototype.actorUid = $util.newBuffer([]); /** - * RecordsAddRequest securityDataKeyType. - * @member {Records.RecordKeyType} securityDataKeyType - * @memberof Records.RecordsAddRequest + * discriminant to distinguish between user (account) and team + * @member {Folder.AccessType} accessType + * @memberof Folder.RevokedAccess * @instance */ - RecordsAddRequest.prototype.securityDataKeyType = 0; + RevokedAccess.prototype.accessType = 0; /** - * Creates a new RecordsAddRequest instance using the specified properties. + * Creates a new RevokedAccess instance using the specified properties. * @function create - * @memberof Records.RecordsAddRequest + * @memberof Folder.RevokedAccess * @static - * @param {Records.IRecordsAddRequest=} [properties] Properties to set - * @returns {Records.RecordsAddRequest} RecordsAddRequest instance + * @param {Folder.IRevokedAccess=} [properties] Properties to set + * @returns {Folder.RevokedAccess} RevokedAccess instance */ - RecordsAddRequest.create = function create(properties) { - return new RecordsAddRequest(properties); + RevokedAccess.create = function create(properties) { + return new RevokedAccess(properties); }; /** - * Encodes the specified RecordsAddRequest message. Does not implicitly {@link Records.RecordsAddRequest.verify|verify} messages. + * Encodes the specified RevokedAccess message. Does not implicitly {@link Folder.RevokedAccess.verify|verify} messages. * @function encode - * @memberof Records.RecordsAddRequest + * @memberof Folder.RevokedAccess * @static - * @param {Records.IRecordsAddRequest} message RecordsAddRequest message or plain object to encode + * @param {Folder.IRevokedAccess} message RevokedAccess message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsAddRequest.encode = function encode(message, writer) { + RevokedAccess.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.records != null && message.records.length) - for (let i = 0; i < message.records.length; ++i) - $root.Records.RecordAdd.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); - if (message.securityDataKeyType != null && Object.hasOwnProperty.call(message, "securityDataKeyType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.securityDataKeyType); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); + if (message.actorUid != null && Object.hasOwnProperty.call(message, "actorUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.actorUid); + if (message.accessType != null && Object.hasOwnProperty.call(message, "accessType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.accessType); return writer; }; /** - * Encodes the specified RecordsAddRequest message, length delimited. Does not implicitly {@link Records.RecordsAddRequest.verify|verify} messages. + * Encodes the specified RevokedAccess message, length delimited. Does not implicitly {@link Folder.RevokedAccess.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordsAddRequest + * @memberof Folder.RevokedAccess * @static - * @param {Records.IRecordsAddRequest} message RecordsAddRequest message or plain object to encode + * @param {Folder.IRevokedAccess} message RevokedAccess message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsAddRequest.encodeDelimited = function encodeDelimited(message, writer) { + RevokedAccess.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordsAddRequest message from the specified reader or buffer. + * Decodes a RevokedAccess message from the specified reader or buffer. * @function decode - * @memberof Records.RecordsAddRequest + * @memberof Folder.RevokedAccess * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordsAddRequest} RecordsAddRequest + * @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 */ - RecordsAddRequest.decode = function decode(reader, length) { + RevokedAccess.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsAddRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.RevokedAccess(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.records && message.records.length)) - message.records = []; - message.records.push($root.Records.RecordAdd.decode(reader, reader.uint32())); + message.folderUid = reader.bytes(); break; } case 2: { - message.clientTime = reader.int64(); + message.actorUid = reader.bytes(); break; } case 3: { - message.securityDataKeyType = reader.int32(); + message.accessType = reader.int32(); break; } default: @@ -176578,48 +177597,42 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordsAddRequest message from the specified reader or buffer, length delimited. + * Decodes a RevokedAccess message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordsAddRequest + * @memberof Folder.RevokedAccess * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsAddRequest} RecordsAddRequest + * @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 */ - RecordsAddRequest.decodeDelimited = function decodeDelimited(reader) { + RevokedAccess.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordsAddRequest message. + * Verifies a RevokedAccess message. * @function verify - * @memberof Records.RecordsAddRequest + * @memberof Folder.RevokedAccess * @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) { + RevokedAccess.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; - for (let i = 0; i < message.records.length; ++i) { - let error = $root.Records.RecordAdd.verify(message.records[i]); - if (error) - return "records." + error; - } - } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (!$util.isInteger(message.clientTime) && !(message.clientTime && $util.isInteger(message.clientTime.low) && $util.isInteger(message.clientTime.high))) - return "clientTime: integer|Long expected"; - if (message.securityDataKeyType != null && message.hasOwnProperty("securityDataKeyType")) - switch (message.securityDataKeyType) { + 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 "securityDataKeyType: enum value expected"; + return "accessType: enum value expected"; case 0: case 1: case 2: @@ -176633,171 +177646,154 @@ export const Records = $root.Records = (() => { }; /** - * Creates a RecordsAddRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RevokedAccess message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordsAddRequest + * @memberof Folder.RevokedAccess * @static * @param {Object.} object Plain object - * @returns {Records.RecordsAddRequest} RecordsAddRequest + * @returns {Folder.RevokedAccess} RevokedAccess */ - RecordsAddRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsAddRequest) + RevokedAccess.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.RevokedAccess) return object; - let message = new $root.Records.RecordsAddRequest(); - if (object.records) { - if (!Array.isArray(object.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") - throw TypeError(".Records.RecordsAddRequest.records: object expected"); - message.records[i] = $root.Records.RecordAdd.fromObject(object.records[i]); - } - } - if (object.clientTime != null) - if ($util.Long) - (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = false; - else if (typeof object.clientTime === "string") - message.clientTime = parseInt(object.clientTime, 10); - else if (typeof object.clientTime === "number") - message.clientTime = object.clientTime; - else if (typeof object.clientTime === "object") - message.clientTime = new $util.LongBits(object.clientTime.low >>> 0, object.clientTime.high >>> 0).toNumber(); - switch (object.securityDataKeyType) { + let message = new $root.Folder.RevokedAccess(); + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.actorUid != null) + if (typeof object.actorUid === "string") + $util.base64.decode(object.actorUid, message.actorUid = $util.newBuffer($util.base64.length(object.actorUid)), 0); + else if (object.actorUid.length >= 0) + message.actorUid = object.actorUid; + switch (object.accessType) { default: - if (typeof object.securityDataKeyType === "number") { - message.securityDataKeyType = object.securityDataKeyType; + if (typeof object.accessType === "number") { + message.accessType = object.accessType; break; } break; - case "NO_KEY": + case "AT_UNKNOWN": case 0: - message.securityDataKeyType = 0; + message.accessType = 0; break; - case "ENCRYPTED_BY_DATA_KEY": + case "AT_OWNER": case 1: - message.securityDataKeyType = 1; + message.accessType = 1; break; - case "ENCRYPTED_BY_PUBLIC_KEY": + case "AT_USER": case 2: - message.securityDataKeyType = 2; + message.accessType = 2; break; - case "ENCRYPTED_BY_DATA_KEY_GCM": + case "AT_TEAM": case 3: - message.securityDataKeyType = 3; + message.accessType = 3; break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": + case "AT_ENTERPRISE": case 4: - message.securityDataKeyType = 4; + message.accessType = 4; break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": + case "AT_FOLDER": case 5: - message.securityDataKeyType = 5; + message.accessType = 5; break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": + case "AT_APPLICATION": case 6: - message.securityDataKeyType = 6; + message.accessType = 6; break; } return message; }; /** - * Creates a plain object from a RecordsAddRequest message. Also converts values to other types if specified. + * Creates a plain object from a RevokedAccess message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordsAddRequest + * @memberof Folder.RevokedAccess * @static - * @param {Records.RecordsAddRequest} message RecordsAddRequest + * @param {Folder.RevokedAccess} message RevokedAccess * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsAddRequest.toObject = function toObject(message, options) { + RevokedAccess.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.records = []; if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.clientTime = options.longs === String ? "0" : 0; - object.securityDataKeyType = options.enums === String ? "NO_KEY" : 0; - } - if (message.records && message.records.length) { - object.records = []; - for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.Records.RecordAdd.toObject(message.records[j], options); + if (options.bytes === String) + object.folderUid = ""; + else { + object.folderUid = []; + if (options.bytes !== Array) + object.folderUid = $util.newBuffer(object.folderUid); + } + if (options.bytes === String) + object.actorUid = ""; + else { + object.actorUid = []; + if (options.bytes !== Array) + object.actorUid = $util.newBuffer(object.actorUid); + } + object.accessType = options.enums === String ? "AT_UNKNOWN" : 0; } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (typeof message.clientTime === "number") - object.clientTime = options.longs === String ? String(message.clientTime) : message.clientTime; - else - object.clientTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientTime) : options.longs === Number ? new $util.LongBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0).toNumber() : message.clientTime; - if (message.securityDataKeyType != null && message.hasOwnProperty("securityDataKeyType")) - object.securityDataKeyType = options.enums === String ? $root.Records.RecordKeyType[message.securityDataKeyType] === undefined ? message.securityDataKeyType : $root.Records.RecordKeyType[message.securityDataKeyType] : message.securityDataKeyType; + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.actorUid != null && message.hasOwnProperty("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")) + object.accessType = options.enums === String ? $root.Folder.AccessType[message.accessType] === undefined ? message.accessType : $root.Folder.AccessType[message.accessType] : message.accessType; return object; }; /** - * Converts this RecordsAddRequest to JSON. + * Converts this RevokedAccess to JSON. * @function toJSON - * @memberof Records.RecordsAddRequest + * @memberof Folder.RevokedAccess * @instance * @returns {Object.} JSON object */ - RecordsAddRequest.prototype.toJSON = function toJSON() { + RevokedAccess.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordsAddRequest + * Gets the default type url for RevokedAccess * @function getTypeUrl - * @memberof Records.RecordsAddRequest + * @memberof Folder.RevokedAccess * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordsAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RevokedAccess.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordsAddRequest"; + return typeUrlPrefix + "/Folder.RevokedAccess"; }; - return RecordsAddRequest; + return RevokedAccess; })(); - Records.RecordUpdate = (function() { + Folder.DeniedAccess = (function() { /** - * Properties of a RecordUpdate. - * @memberof Records - * @interface IRecordUpdate - * @property {Uint8Array|null} [recordUid] RecordUpdate recordUid - * @property {number|Long|null} [clientModifiedTime] RecordUpdate clientModifiedTime - * @property {number|Long|null} [revision] RecordUpdate revision - * @property {Uint8Array|null} [data] RecordUpdate data - * @property {Uint8Array|null} [nonSharedData] RecordUpdate nonSharedData - * @property {Array.|null} [recordLinksAdd] RecordUpdate recordLinksAdd - * @property {Array.|null} [recordLinksRemove] RecordUpdate recordLinksRemove - * @property {Records.IRecordAudit|null} [audit] RecordUpdate audit - * @property {Records.ISecurityData|null} [securityData] RecordUpdate securityData - * @property {Records.ISecurityScoreData|null} [securityScoreData] RecordUpdate securityScoreData + * Properties of a DeniedAccess. + * @memberof Folder + * @interface IDeniedAccess + * @property {Uint8Array|null} [folderUid] the uid of the folder whose access have been denied + * @property {Uint8Array|null} [actorUid] the uid of actor whose access has been denied. can represent a Team or a User (an account) + * @property {Folder.AccessType|null} [accessType] discriminant to distinguish between user (account) and team */ /** - * Constructs a new RecordUpdate. - * @memberof Records - * @classdesc Represents a RecordUpdate. - * @implements IRecordUpdate + * Constructs a new DeniedAccess. + * @memberof Folder + * @classdesc Represents a DeniedAccess. + * @implements IDeniedAccess * @constructor - * @param {Records.IRecordUpdate=} [properties] Properties to set + * @param {Folder.IDeniedAccess=} [properties] Properties to set */ - function RecordUpdate(properties) { - this.recordLinksAdd = []; - this.recordLinksRemove = []; + function DeniedAccess(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -176805,207 +177801,103 @@ export const Records = $root.Records = (() => { } /** - * RecordUpdate recordUid. - * @member {Uint8Array} recordUid - * @memberof Records.RecordUpdate - * @instance - */ - RecordUpdate.prototype.recordUid = $util.newBuffer([]); - - /** - * RecordUpdate clientModifiedTime. - * @member {number|Long} clientModifiedTime - * @memberof Records.RecordUpdate - * @instance - */ - RecordUpdate.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * RecordUpdate revision. - * @member {number|Long} revision - * @memberof Records.RecordUpdate - * @instance - */ - RecordUpdate.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * RecordUpdate data. - * @member {Uint8Array} data - * @memberof Records.RecordUpdate - * @instance - */ - RecordUpdate.prototype.data = $util.newBuffer([]); - - /** - * RecordUpdate nonSharedData. - * @member {Uint8Array} nonSharedData - * @memberof Records.RecordUpdate - * @instance - */ - RecordUpdate.prototype.nonSharedData = $util.newBuffer([]); - - /** - * RecordUpdate recordLinksAdd. - * @member {Array.} recordLinksAdd - * @memberof Records.RecordUpdate - * @instance - */ - RecordUpdate.prototype.recordLinksAdd = $util.emptyArray; - - /** - * RecordUpdate recordLinksRemove. - * @member {Array.} recordLinksRemove - * @memberof Records.RecordUpdate - * @instance - */ - RecordUpdate.prototype.recordLinksRemove = $util.emptyArray; - - /** - * RecordUpdate audit. - * @member {Records.IRecordAudit|null|undefined} audit - * @memberof Records.RecordUpdate + * the uid of the folder whose access have been denied + * @member {Uint8Array} folderUid + * @memberof Folder.DeniedAccess * @instance */ - RecordUpdate.prototype.audit = null; + DeniedAccess.prototype.folderUid = $util.newBuffer([]); /** - * RecordUpdate securityData. - * @member {Records.ISecurityData|null|undefined} securityData - * @memberof Records.RecordUpdate + * the uid of actor whose access has been denied. can represent a Team or a User (an account) + * @member {Uint8Array} actorUid + * @memberof Folder.DeniedAccess * @instance */ - RecordUpdate.prototype.securityData = null; + DeniedAccess.prototype.actorUid = $util.newBuffer([]); /** - * RecordUpdate securityScoreData. - * @member {Records.ISecurityScoreData|null|undefined} securityScoreData - * @memberof Records.RecordUpdate + * discriminant to distinguish between user (account) and team + * @member {Folder.AccessType} accessType + * @memberof Folder.DeniedAccess * @instance */ - RecordUpdate.prototype.securityScoreData = null; + DeniedAccess.prototype.accessType = 0; /** - * Creates a new RecordUpdate instance using the specified properties. + * Creates a new DeniedAccess instance using the specified properties. * @function create - * @memberof Records.RecordUpdate + * @memberof Folder.DeniedAccess * @static - * @param {Records.IRecordUpdate=} [properties] Properties to set - * @returns {Records.RecordUpdate} RecordUpdate instance + * @param {Folder.IDeniedAccess=} [properties] Properties to set + * @returns {Folder.DeniedAccess} DeniedAccess instance */ - RecordUpdate.create = function create(properties) { - return new RecordUpdate(properties); + DeniedAccess.create = function create(properties) { + return new DeniedAccess(properties); }; /** - * Encodes the specified RecordUpdate message. Does not implicitly {@link Records.RecordUpdate.verify|verify} messages. + * Encodes the specified DeniedAccess message. Does not implicitly {@link Folder.DeniedAccess.verify|verify} messages. * @function encode - * @memberof Records.RecordUpdate + * @memberof Folder.DeniedAccess * @static - * @param {Records.IRecordUpdate} message RecordUpdate message or plain object to encode + * @param {Folder.IDeniedAccess} message DeniedAccess message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordUpdate.encode = function encode(message, writer) { + DeniedAccess.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientModifiedTime); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); - if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "nonSharedData")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.nonSharedData); - if (message.recordLinksAdd != null && message.recordLinksAdd.length) - for (let i = 0; i < message.recordLinksAdd.length; ++i) - $root.Records.RecordLink.encode(message.recordLinksAdd[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.recordLinksRemove != null && message.recordLinksRemove.length) - for (let i = 0; i < message.recordLinksRemove.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.recordLinksRemove[i]); - if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) - $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.securityData != null && Object.hasOwnProperty.call(message, "securityData")) - $root.Records.SecurityData.encode(message.securityData, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.securityScoreData != null && Object.hasOwnProperty.call(message, "securityScoreData")) - $root.Records.SecurityScoreData.encode(message.securityScoreData, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); + if (message.actorUid != null && Object.hasOwnProperty.call(message, "actorUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.actorUid); + if (message.accessType != null && Object.hasOwnProperty.call(message, "accessType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.accessType); return writer; }; /** - * Encodes the specified RecordUpdate message, length delimited. Does not implicitly {@link Records.RecordUpdate.verify|verify} messages. + * Encodes the specified DeniedAccess message, length delimited. Does not implicitly {@link Folder.DeniedAccess.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordUpdate + * @memberof Folder.DeniedAccess * @static - * @param {Records.IRecordUpdate} message RecordUpdate message or plain object to encode + * @param {Folder.IDeniedAccess} message DeniedAccess message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordUpdate.encodeDelimited = function encodeDelimited(message, writer) { + DeniedAccess.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordUpdate message from the specified reader or buffer. + * Decodes a DeniedAccess message from the specified reader or buffer. * @function decode - * @memberof Records.RecordUpdate + * @memberof Folder.DeniedAccess * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordUpdate} RecordUpdate + * @returns {Folder.DeniedAccess} DeniedAccess * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordUpdate.decode = function decode(reader, length) { + DeniedAccess.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordUpdate(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.DeniedAccess(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + message.folderUid = reader.bytes(); break; } case 2: { - message.clientModifiedTime = reader.int64(); + message.actorUid = reader.bytes(); break; } case 3: { - message.revision = reader.int64(); - break; - } - case 4: { - message.data = reader.bytes(); - break; - } - case 5: { - message.nonSharedData = reader.bytes(); - break; - } - case 6: { - if (!(message.recordLinksAdd && message.recordLinksAdd.length)) - message.recordLinksAdd = []; - message.recordLinksAdd.push($root.Records.RecordLink.decode(reader, reader.uint32())); - break; - } - case 7: { - if (!(message.recordLinksRemove && message.recordLinksRemove.length)) - message.recordLinksRemove = []; - message.recordLinksRemove.push(reader.bytes()); - break; - } - case 8: { - message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); - break; - } - case 9: { - message.securityData = $root.Records.SecurityData.decode(reader, reader.uint32()); - break; - } - case 10: { - message.securityScoreData = $root.Records.SecurityScoreData.decode(reader, reader.uint32()); + message.accessType = reader.int32(); break; } default: @@ -177017,302 +177909,201 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordUpdate message from the specified reader or buffer, length delimited. + * Decodes a DeniedAccess message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordUpdate + * @memberof Folder.DeniedAccess * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordUpdate} RecordUpdate + * @returns {Folder.DeniedAccess} DeniedAccess * @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) { + DeniedAccess.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordUpdate message. + * Verifies a DeniedAccess message. * @function verify - * @memberof Records.RecordUpdate + * @memberof Folder.DeniedAccess * @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) { + DeniedAccess.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.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]); - if (error) - return "recordLinksAdd." + error; + 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; } - } - 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); - if (error) - return "audit." + error; - } - if (message.securityData != null && message.hasOwnProperty("securityData")) { - let error = $root.Records.SecurityData.verify(message.securityData); - if (error) - return "securityData." + error; - } - if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) { - let error = $root.Records.SecurityScoreData.verify(message.securityScoreData); - if (error) - return "securityScoreData." + error; - } return null; }; /** - * Creates a RecordUpdate message from a plain object. Also converts values to their respective internal types. + * Creates a DeniedAccess message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordUpdate + * @memberof Folder.DeniedAccess * @static * @param {Object.} object Plain object - * @returns {Records.RecordUpdate} RecordUpdate + * @returns {Folder.DeniedAccess} DeniedAccess */ - RecordUpdate.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordUpdate) + DeniedAccess.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.DeniedAccess) return object; - let message = new $root.Records.RecordUpdate(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.clientModifiedTime != null) - if ($util.Long) - (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; - else if (typeof object.clientModifiedTime === "string") - message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); - else if (typeof object.clientModifiedTime === "number") - message.clientModifiedTime = object.clientModifiedTime; - else if (typeof object.clientModifiedTime === "object") - message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - if (object.nonSharedData != null) - if (typeof object.nonSharedData === "string") - $util.base64.decode(object.nonSharedData, message.nonSharedData = $util.newBuffer($util.base64.length(object.nonSharedData)), 0); - else if (object.nonSharedData.length >= 0) - message.nonSharedData = object.nonSharedData; - if (object.recordLinksAdd) { - if (!Array.isArray(object.recordLinksAdd)) - throw TypeError(".Records.RecordUpdate.recordLinksAdd: array expected"); - message.recordLinksAdd = []; - for (let i = 0; i < object.recordLinksAdd.length; ++i) { - if (typeof object.recordLinksAdd[i] !== "object") - throw TypeError(".Records.RecordUpdate.recordLinksAdd: object expected"); - message.recordLinksAdd[i] = $root.Records.RecordLink.fromObject(object.recordLinksAdd[i]); + let message = new $root.Folder.DeniedAccess(); + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.actorUid != null) + if (typeof object.actorUid === "string") + $util.base64.decode(object.actorUid, message.actorUid = $util.newBuffer($util.base64.length(object.actorUid)), 0); + else if (object.actorUid.length >= 0) + message.actorUid = object.actorUid; + switch (object.accessType) { + default: + if (typeof object.accessType === "number") { + message.accessType = object.accessType; + break; } - } - if (object.recordLinksRemove) { - if (!Array.isArray(object.recordLinksRemove)) - throw TypeError(".Records.RecordUpdate.recordLinksRemove: array expected"); - message.recordLinksRemove = []; - for (let i = 0; i < object.recordLinksRemove.length; ++i) - if (typeof object.recordLinksRemove[i] === "string") - $util.base64.decode(object.recordLinksRemove[i], message.recordLinksRemove[i] = $util.newBuffer($util.base64.length(object.recordLinksRemove[i])), 0); - else if (object.recordLinksRemove[i].length >= 0) - message.recordLinksRemove[i] = object.recordLinksRemove[i]; - } - if (object.audit != null) { - if (typeof object.audit !== "object") - throw TypeError(".Records.RecordUpdate.audit: object expected"); - message.audit = $root.Records.RecordAudit.fromObject(object.audit); - } - if (object.securityData != null) { - if (typeof object.securityData !== "object") - throw TypeError(".Records.RecordUpdate.securityData: object expected"); - message.securityData = $root.Records.SecurityData.fromObject(object.securityData); - } - if (object.securityScoreData != null) { - if (typeof object.securityScoreData !== "object") - throw TypeError(".Records.RecordUpdate.securityScoreData: object expected"); - message.securityScoreData = $root.Records.SecurityScoreData.fromObject(object.securityScoreData); + break; + case "AT_UNKNOWN": + case 0: + message.accessType = 0; + break; + case "AT_OWNER": + case 1: + message.accessType = 1; + break; + case "AT_USER": + case 2: + message.accessType = 2; + break; + case "AT_TEAM": + case 3: + message.accessType = 3; + break; + case "AT_ENTERPRISE": + case 4: + message.accessType = 4; + break; + case "AT_FOLDER": + case 5: + message.accessType = 5; + break; + case "AT_APPLICATION": + case 6: + message.accessType = 6; + break; } return message; }; /** - * Creates a plain object from a RecordUpdate message. Also converts values to other types if specified. + * Creates a plain object from a DeniedAccess message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordUpdate + * @memberof Folder.DeniedAccess * @static - * @param {Records.RecordUpdate} message RecordUpdate + * @param {Folder.DeniedAccess} message DeniedAccess * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordUpdate.toObject = function toObject(message, options) { + DeniedAccess.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.recordLinksAdd = []; - object.recordLinksRemove = []; - } if (options.defaults) { if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.clientModifiedTime = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.data = ""; + object.folderUid = ""; else { - object.data = []; + object.folderUid = []; if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + object.folderUid = $util.newBuffer(object.folderUid); } if (options.bytes === String) - object.nonSharedData = ""; + object.actorUid = ""; else { - object.nonSharedData = []; + object.actorUid = []; if (options.bytes !== Array) - object.nonSharedData = $util.newBuffer(object.nonSharedData); + object.actorUid = $util.newBuffer(object.actorUid); } - object.audit = null; - object.securityData = null; - object.securityScoreData = null; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof message.clientModifiedTime === "number") - object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; - else - object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; - if (message.revision != null && message.hasOwnProperty("revision")) - 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")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) - object.nonSharedData = options.bytes === String ? $util.base64.encode(message.nonSharedData, 0, message.nonSharedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.nonSharedData) : message.nonSharedData; - if (message.recordLinksAdd && message.recordLinksAdd.length) { - object.recordLinksAdd = []; - for (let j = 0; j < message.recordLinksAdd.length; ++j) - object.recordLinksAdd[j] = $root.Records.RecordLink.toObject(message.recordLinksAdd[j], options); - } - if (message.recordLinksRemove && message.recordLinksRemove.length) { - object.recordLinksRemove = []; - 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]; + object.accessType = options.enums === String ? "AT_UNKNOWN" : 0; } - if (message.audit != null && message.hasOwnProperty("audit")) - object.audit = $root.Records.RecordAudit.toObject(message.audit, options); - if (message.securityData != null && message.hasOwnProperty("securityData")) - object.securityData = $root.Records.SecurityData.toObject(message.securityData, options); - if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) - object.securityScoreData = $root.Records.SecurityScoreData.toObject(message.securityScoreData, options); + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.actorUid != null && message.hasOwnProperty("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")) + object.accessType = options.enums === String ? $root.Folder.AccessType[message.accessType] === undefined ? message.accessType : $root.Folder.AccessType[message.accessType] : message.accessType; return object; }; /** - * Converts this RecordUpdate to JSON. + * Converts this DeniedAccess to JSON. * @function toJSON - * @memberof Records.RecordUpdate + * @memberof Folder.DeniedAccess * @instance * @returns {Object.} JSON object */ - RecordUpdate.prototype.toJSON = function toJSON() { + DeniedAccess.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordUpdate + * Gets the default type url for DeniedAccess * @function getTypeUrl - * @memberof Records.RecordUpdate + * @memberof Folder.DeniedAccess * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordUpdate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeniedAccess.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordUpdate"; + return typeUrlPrefix + "/Folder.DeniedAccess"; }; - return RecordUpdate; + return DeniedAccess; })(); - Records.RecordsUpdateRequest = (function() { + Folder.FolderRemoved = (function() { /** - * Properties of a RecordsUpdateRequest. - * @memberof Records - * @interface IRecordsUpdateRequest - * @property {Array.|null} [records] RecordsUpdateRequest records - * @property {number|Long|null} [clientTime] RecordsUpdateRequest clientTime - * @property {Records.RecordKeyType|null} [securityDataKeyType] RecordsUpdateRequest securityDataKeyType + * Properties of a FolderRemoved. + * @memberof Folder + * @interface IFolderRemoved + * @property {Uint8Array|null} [folderUid] the uid of the folder that is either moved to trash or permanently deleted */ /** - * Constructs a new RecordsUpdateRequest. - * @memberof Records - * @classdesc Represents a RecordsUpdateRequest. - * @implements IRecordsUpdateRequest + * Constructs a new FolderRemoved. + * @memberof Folder + * @classdesc Represents a FolderRemoved. + * @implements IFolderRemoved * @constructor - * @param {Records.IRecordsUpdateRequest=} [properties] Properties to set + * @param {Folder.IFolderRemoved=} [properties] Properties to set */ - function RecordsUpdateRequest(properties) { - this.records = []; + function FolderRemoved(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -177320,106 +178111,75 @@ export const Records = $root.Records = (() => { } /** - * RecordsUpdateRequest records. - * @member {Array.} records - * @memberof Records.RecordsUpdateRequest - * @instance - */ - RecordsUpdateRequest.prototype.records = $util.emptyArray; - - /** - * RecordsUpdateRequest clientTime. - * @member {number|Long} clientTime - * @memberof Records.RecordsUpdateRequest - * @instance - */ - RecordsUpdateRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * RecordsUpdateRequest securityDataKeyType. - * @member {Records.RecordKeyType} securityDataKeyType - * @memberof Records.RecordsUpdateRequest + * the uid of the folder that is either moved to trash or permanently deleted + * @member {Uint8Array} folderUid + * @memberof Folder.FolderRemoved * @instance */ - RecordsUpdateRequest.prototype.securityDataKeyType = 0; + FolderRemoved.prototype.folderUid = $util.newBuffer([]); /** - * Creates a new RecordsUpdateRequest instance using the specified properties. + * Creates a new FolderRemoved instance using the specified properties. * @function create - * @memberof Records.RecordsUpdateRequest + * @memberof Folder.FolderRemoved * @static - * @param {Records.IRecordsUpdateRequest=} [properties] Properties to set - * @returns {Records.RecordsUpdateRequest} RecordsUpdateRequest instance + * @param {Folder.IFolderRemoved=} [properties] Properties to set + * @returns {Folder.FolderRemoved} FolderRemoved instance */ - RecordsUpdateRequest.create = function create(properties) { - return new RecordsUpdateRequest(properties); + FolderRemoved.create = function create(properties) { + return new FolderRemoved(properties); }; /** - * Encodes the specified RecordsUpdateRequest message. Does not implicitly {@link Records.RecordsUpdateRequest.verify|verify} messages. + * Encodes the specified FolderRemoved message. Does not implicitly {@link Folder.FolderRemoved.verify|verify} messages. * @function encode - * @memberof Records.RecordsUpdateRequest + * @memberof Folder.FolderRemoved * @static - * @param {Records.IRecordsUpdateRequest} message RecordsUpdateRequest message or plain object to encode + * @param {Folder.IFolderRemoved} message FolderRemoved message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsUpdateRequest.encode = function encode(message, writer) { + FolderRemoved.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.records != null && message.records.length) - for (let i = 0; i < message.records.length; ++i) - $root.Records.RecordUpdate.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); - if (message.securityDataKeyType != null && Object.hasOwnProperty.call(message, "securityDataKeyType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.securityDataKeyType); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); return writer; }; /** - * Encodes the specified RecordsUpdateRequest message, length delimited. Does not implicitly {@link Records.RecordsUpdateRequest.verify|verify} messages. + * Encodes the specified FolderRemoved message, length delimited. Does not implicitly {@link Folder.FolderRemoved.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordsUpdateRequest + * @memberof Folder.FolderRemoved * @static - * @param {Records.IRecordsUpdateRequest} message RecordsUpdateRequest message or plain object to encode + * @param {Folder.IFolderRemoved} message FolderRemoved message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { + FolderRemoved.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordsUpdateRequest message from the specified reader or buffer. + * Decodes a FolderRemoved message from the specified reader or buffer. * @function decode - * @memberof Records.RecordsUpdateRequest + * @memberof Folder.FolderRemoved * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordsUpdateRequest} RecordsUpdateRequest + * @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 */ - RecordsUpdateRequest.decode = function decode(reader, length) { + FolderRemoved.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUpdateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderRemoved(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.records && message.records.length)) - message.records = []; - message.records.push($root.Records.RecordUpdate.decode(reader, reader.uint32())); - break; - } - case 2: { - message.clientTime = reader.int64(); - break; - } - case 3: { - message.securityDataKeyType = reader.int32(); + message.folderUid = reader.bytes(); break; } default: @@ -177431,220 +178191,150 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordsUpdateRequest message from the specified reader or buffer, length delimited. + * Decodes a FolderRemoved message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordsUpdateRequest + * @memberof Folder.FolderRemoved * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsUpdateRequest} RecordsUpdateRequest + * @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 */ - RecordsUpdateRequest.decodeDelimited = function decodeDelimited(reader) { + FolderRemoved.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordsUpdateRequest message. + * Verifies a FolderRemoved message. * @function verify - * @memberof Records.RecordsUpdateRequest + * @memberof Folder.FolderRemoved * @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) { + FolderRemoved.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; - for (let i = 0; i < message.records.length; ++i) { - let error = $root.Records.RecordUpdate.verify(message.records[i]); - if (error) - return "records." + error; - } - } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (!$util.isInteger(message.clientTime) && !(message.clientTime && $util.isInteger(message.clientTime.low) && $util.isInteger(message.clientTime.high))) - return "clientTime: integer|Long expected"; - if (message.securityDataKeyType != null && message.hasOwnProperty("securityDataKeyType")) - switch (message.securityDataKeyType) { - default: - return "securityDataKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } + 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 RecordsUpdateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FolderRemoved message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordsUpdateRequest + * @memberof Folder.FolderRemoved * @static * @param {Object.} object Plain object - * @returns {Records.RecordsUpdateRequest} RecordsUpdateRequest + * @returns {Folder.FolderRemoved} FolderRemoved */ - RecordsUpdateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsUpdateRequest) + FolderRemoved.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.FolderRemoved) return object; - let message = new $root.Records.RecordsUpdateRequest(); - if (object.records) { - if (!Array.isArray(object.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") - throw TypeError(".Records.RecordsUpdateRequest.records: object expected"); - message.records[i] = $root.Records.RecordUpdate.fromObject(object.records[i]); - } - } - if (object.clientTime != null) - if ($util.Long) - (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = false; - else if (typeof object.clientTime === "string") - message.clientTime = parseInt(object.clientTime, 10); - else if (typeof object.clientTime === "number") - message.clientTime = object.clientTime; - else if (typeof object.clientTime === "object") - message.clientTime = new $util.LongBits(object.clientTime.low >>> 0, object.clientTime.high >>> 0).toNumber(); - switch (object.securityDataKeyType) { - default: - if (typeof object.securityDataKeyType === "number") { - message.securityDataKeyType = object.securityDataKeyType; - break; - } - break; - case "NO_KEY": - case 0: - message.securityDataKeyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.securityDataKeyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.securityDataKeyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.securityDataKeyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.securityDataKeyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.securityDataKeyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.securityDataKeyType = 6; - break; - } + let message = new $root.Folder.FolderRemoved(); + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; return message; }; /** - * Creates a plain object from a RecordsUpdateRequest message. Also converts values to other types if specified. + * Creates a plain object from a FolderRemoved message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordsUpdateRequest + * @memberof Folder.FolderRemoved * @static - * @param {Records.RecordsUpdateRequest} message RecordsUpdateRequest + * @param {Folder.FolderRemoved} message FolderRemoved * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsUpdateRequest.toObject = function toObject(message, options) { + FolderRemoved.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.records = []; - if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.clientTime = options.longs === String ? "0" : 0; - object.securityDataKeyType = options.enums === String ? "NO_KEY" : 0; - } - if (message.records && message.records.length) { - object.records = []; - for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.Records.RecordUpdate.toObject(message.records[j], options); - } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (typeof message.clientTime === "number") - object.clientTime = options.longs === String ? String(message.clientTime) : message.clientTime; - else - object.clientTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientTime) : options.longs === Number ? new $util.LongBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0).toNumber() : message.clientTime; - if (message.securityDataKeyType != null && message.hasOwnProperty("securityDataKeyType")) - object.securityDataKeyType = options.enums === String ? $root.Records.RecordKeyType[message.securityDataKeyType] === undefined ? message.securityDataKeyType : $root.Records.RecordKeyType[message.securityDataKeyType] : message.securityDataKeyType; + if (options.defaults) + if (options.bytes === String) + object.folderUid = ""; + else { + object.folderUid = []; + if (options.bytes !== Array) + object.folderUid = $util.newBuffer(object.folderUid); + } + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; return object; }; /** - * Converts this RecordsUpdateRequest to JSON. + * Converts this FolderRemoved to JSON. * @function toJSON - * @memberof Records.RecordsUpdateRequest + * @memberof Folder.FolderRemoved * @instance * @returns {Object.} JSON object */ - RecordsUpdateRequest.prototype.toJSON = function toJSON() { + FolderRemoved.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordsUpdateRequest + * Gets the default type url for FolderRemoved * @function getTypeUrl - * @memberof Records.RecordsUpdateRequest + * @memberof Folder.FolderRemoved * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordsUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FolderRemoved.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordsUpdateRequest"; + return typeUrlPrefix + "/Folder.FolderRemoved"; }; - return RecordsUpdateRequest; + return FolderRemoved; })(); - Records.RecordFileForConversion = (function() { - - /** - * Properties of a RecordFileForConversion. - * @memberof Records - * @interface IRecordFileForConversion - * @property {Uint8Array|null} [recordUid] RecordFileForConversion recordUid - * @property {string|null} [fileFileId] RecordFileForConversion fileFileId - * @property {string|null} [thumbFileId] RecordFileForConversion thumbFileId - * @property {Uint8Array|null} [data] RecordFileForConversion data - * @property {Uint8Array|null} [recordKey] RecordFileForConversion recordKey - * @property {Uint8Array|null} [linkKey] RecordFileForConversion linkKey - */ + Folder.RecordAccessData = (function() { /** - * Constructs a new RecordFileForConversion. - * @memberof Records - * @classdesc Represents a RecordFileForConversion. - * @implements IRecordFileForConversion + * Properties of a RecordAccessData. + * @memberof Folder + * @interface IRecordAccessData + * @property {Uint8Array|null} [accessTypeUid] RecordAccessData accessTypeUid + * @property {Folder.AccessType|null} [accessType] RecordAccessData accessType + * @property {Uint8Array|null} [recordUid] RecordAccessData recordUid + * @property {Folder.AccessRoleType|null} [accessRoleType] RecordAccessData accessRoleType + * @property {boolean|null} [owner] RecordAccessData owner + * @property {boolean|null} [inherited] RecordAccessData inherited + * @property {boolean|null} [hidden] RecordAccessData hidden + * @property {boolean|null} [deniedAccess] RecordAccessData deniedAccess + * @property {boolean|null} [canViewTitle] RecordAccessData canViewTitle + * @property {boolean|null} [canEdit] RecordAccessData canEdit + * @property {boolean|null} [canView] RecordAccessData canView + * @property {boolean|null} [canListAccess] RecordAccessData canListAccess + * @property {boolean|null} [canUpdateAccess] RecordAccessData canUpdateAccess + * @property {boolean|null} [canDelete] RecordAccessData canDelete + * @property {boolean|null} [canChangeOwnership] RecordAccessData canChangeOwnership + * @property {boolean|null} [canRequestAccess] RecordAccessData canRequestAccess + * @property {boolean|null} [canApproveAccess] RecordAccessData canApproveAccess + * @property {number|Long|null} [dateCreated] RecordAccessData dateCreated + * @property {number|Long|null} [lastModified] RecordAccessData lastModified + * @property {common.tla.ITLAProperties|null} [tlaProperties] RecordAccessData tlaProperties + */ + + /** + * Constructs a new RecordAccessData. + * @memberof Folder + * @classdesc Represents a RecordAccessData. + * @implements IRecordAccessData * @constructor - * @param {Records.IRecordFileForConversion=} [properties] Properties to set + * @param {Folder.IRecordAccessData=} [properties] Properties to set */ - function RecordFileForConversion(properties) { + function RecordAccessData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -177652,145 +178342,341 @@ export const Records = $root.Records = (() => { } /** - * RecordFileForConversion recordUid. + * RecordAccessData accessTypeUid. + * @member {Uint8Array} accessTypeUid + * @memberof Folder.RecordAccessData + * @instance + */ + RecordAccessData.prototype.accessTypeUid = $util.newBuffer([]); + + /** + * RecordAccessData accessType. + * @member {Folder.AccessType} accessType + * @memberof Folder.RecordAccessData + * @instance + */ + RecordAccessData.prototype.accessType = 0; + + /** + * RecordAccessData recordUid. * @member {Uint8Array} recordUid - * @memberof Records.RecordFileForConversion + * @memberof Folder.RecordAccessData * @instance */ - RecordFileForConversion.prototype.recordUid = $util.newBuffer([]); + RecordAccessData.prototype.recordUid = $util.newBuffer([]); /** - * RecordFileForConversion fileFileId. - * @member {string} fileFileId - * @memberof Records.RecordFileForConversion + * RecordAccessData accessRoleType. + * @member {Folder.AccessRoleType} accessRoleType + * @memberof Folder.RecordAccessData * @instance */ - RecordFileForConversion.prototype.fileFileId = ""; + RecordAccessData.prototype.accessRoleType = 0; /** - * RecordFileForConversion thumbFileId. - * @member {string} thumbFileId - * @memberof Records.RecordFileForConversion + * RecordAccessData owner. + * @member {boolean} owner + * @memberof Folder.RecordAccessData * @instance */ - RecordFileForConversion.prototype.thumbFileId = ""; + RecordAccessData.prototype.owner = false; /** - * RecordFileForConversion data. - * @member {Uint8Array} data - * @memberof Records.RecordFileForConversion + * RecordAccessData inherited. + * @member {boolean} inherited + * @memberof Folder.RecordAccessData * @instance */ - RecordFileForConversion.prototype.data = $util.newBuffer([]); + RecordAccessData.prototype.inherited = false; /** - * RecordFileForConversion recordKey. - * @member {Uint8Array} recordKey - * @memberof Records.RecordFileForConversion + * RecordAccessData hidden. + * @member {boolean} hidden + * @memberof Folder.RecordAccessData * @instance */ - RecordFileForConversion.prototype.recordKey = $util.newBuffer([]); + RecordAccessData.prototype.hidden = false; /** - * RecordFileForConversion linkKey. - * @member {Uint8Array} linkKey - * @memberof Records.RecordFileForConversion + * RecordAccessData deniedAccess. + * @member {boolean} deniedAccess + * @memberof Folder.RecordAccessData * @instance */ - RecordFileForConversion.prototype.linkKey = $util.newBuffer([]); + RecordAccessData.prototype.deniedAccess = false; /** - * Creates a new RecordFileForConversion instance using the specified properties. + * RecordAccessData canViewTitle. + * @member {boolean} canViewTitle + * @memberof Folder.RecordAccessData + * @instance + */ + RecordAccessData.prototype.canViewTitle = false; + + /** + * RecordAccessData canEdit. + * @member {boolean} canEdit + * @memberof Folder.RecordAccessData + * @instance + */ + RecordAccessData.prototype.canEdit = false; + + /** + * RecordAccessData canView. + * @member {boolean} canView + * @memberof Folder.RecordAccessData + * @instance + */ + RecordAccessData.prototype.canView = false; + + /** + * RecordAccessData canListAccess. + * @member {boolean} canListAccess + * @memberof Folder.RecordAccessData + * @instance + */ + RecordAccessData.prototype.canListAccess = false; + + /** + * RecordAccessData canUpdateAccess. + * @member {boolean} canUpdateAccess + * @memberof Folder.RecordAccessData + * @instance + */ + RecordAccessData.prototype.canUpdateAccess = false; + + /** + * RecordAccessData canDelete. + * @member {boolean} canDelete + * @memberof Folder.RecordAccessData + * @instance + */ + RecordAccessData.prototype.canDelete = false; + + /** + * RecordAccessData canChangeOwnership. + * @member {boolean} canChangeOwnership + * @memberof Folder.RecordAccessData + * @instance + */ + RecordAccessData.prototype.canChangeOwnership = false; + + /** + * RecordAccessData canRequestAccess. + * @member {boolean} canRequestAccess + * @memberof Folder.RecordAccessData + * @instance + */ + RecordAccessData.prototype.canRequestAccess = false; + + /** + * RecordAccessData canApproveAccess. + * @member {boolean} canApproveAccess + * @memberof Folder.RecordAccessData + * @instance + */ + RecordAccessData.prototype.canApproveAccess = false; + + /** + * RecordAccessData dateCreated. + * @member {number|Long} dateCreated + * @memberof Folder.RecordAccessData + * @instance + */ + RecordAccessData.prototype.dateCreated = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * RecordAccessData lastModified. + * @member {number|Long} lastModified + * @memberof Folder.RecordAccessData + * @instance + */ + RecordAccessData.prototype.lastModified = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * RecordAccessData tlaProperties. + * @member {common.tla.ITLAProperties|null|undefined} tlaProperties + * @memberof Folder.RecordAccessData + * @instance + */ + RecordAccessData.prototype.tlaProperties = null; + + /** + * Creates a new RecordAccessData instance using the specified properties. * @function create - * @memberof Records.RecordFileForConversion + * @memberof Folder.RecordAccessData * @static - * @param {Records.IRecordFileForConversion=} [properties] Properties to set - * @returns {Records.RecordFileForConversion} RecordFileForConversion instance + * @param {Folder.IRecordAccessData=} [properties] Properties to set + * @returns {Folder.RecordAccessData} RecordAccessData instance */ - RecordFileForConversion.create = function create(properties) { - return new RecordFileForConversion(properties); + RecordAccessData.create = function create(properties) { + return new RecordAccessData(properties); }; /** - * Encodes the specified RecordFileForConversion message. Does not implicitly {@link Records.RecordFileForConversion.verify|verify} messages. + * Encodes the specified RecordAccessData message. Does not implicitly {@link Folder.RecordAccessData.verify|verify} messages. * @function encode - * @memberof Records.RecordFileForConversion + * @memberof Folder.RecordAccessData * @static - * @param {Records.IRecordFileForConversion} message RecordFileForConversion message or plain object to encode + * @param {Folder.IRecordAccessData} message RecordAccessData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordFileForConversion.encode = function encode(message, writer) { + RecordAccessData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.accessTypeUid != null && Object.hasOwnProperty.call(message, "accessTypeUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.accessTypeUid); + if (message.accessType != null && Object.hasOwnProperty.call(message, "accessType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.accessType); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.fileFileId != null && Object.hasOwnProperty.call(message, "fileFileId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.fileFileId); - if (message.thumbFileId != null && Object.hasOwnProperty.call(message, "thumbFileId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.thumbFileId); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.recordKey); - if (message.linkKey != null && Object.hasOwnProperty.call(message, "linkKey")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.linkKey); + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordUid); + if (message.accessRoleType != null && Object.hasOwnProperty.call(message, "accessRoleType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.accessRoleType); + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.owner); + if (message.inherited != null && Object.hasOwnProperty.call(message, "inherited")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.inherited); + if (message.hidden != null && Object.hasOwnProperty.call(message, "hidden")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.hidden); + if (message.deniedAccess != null && Object.hasOwnProperty.call(message, "deniedAccess")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.deniedAccess); + if (message.canViewTitle != null && Object.hasOwnProperty.call(message, "canViewTitle")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.canViewTitle); + if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.canEdit); + if (message.canView != null && Object.hasOwnProperty.call(message, "canView")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.canView); + if (message.canListAccess != null && Object.hasOwnProperty.call(message, "canListAccess")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.canListAccess); + if (message.canUpdateAccess != null && Object.hasOwnProperty.call(message, "canUpdateAccess")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.canUpdateAccess); + if (message.canDelete != null && Object.hasOwnProperty.call(message, "canDelete")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.canDelete); + if (message.canChangeOwnership != null && Object.hasOwnProperty.call(message, "canChangeOwnership")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.canChangeOwnership); + if (message.canRequestAccess != null && Object.hasOwnProperty.call(message, "canRequestAccess")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.canRequestAccess); + if (message.canApproveAccess != null && Object.hasOwnProperty.call(message, "canApproveAccess")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.canApproveAccess); + if (message.dateCreated != null && Object.hasOwnProperty.call(message, "dateCreated")) + writer.uint32(/* id 18, wireType 0 =*/144).int64(message.dateCreated); + if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) + writer.uint32(/* id 19, wireType 0 =*/152).int64(message.lastModified); + if (message.tlaProperties != null && Object.hasOwnProperty.call(message, "tlaProperties")) + $root.common.tla.TLAProperties.encode(message.tlaProperties, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); return writer; }; /** - * Encodes the specified RecordFileForConversion message, length delimited. Does not implicitly {@link Records.RecordFileForConversion.verify|verify} messages. + * Encodes the specified RecordAccessData message, length delimited. Does not implicitly {@link Folder.RecordAccessData.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordFileForConversion + * @memberof Folder.RecordAccessData * @static - * @param {Records.IRecordFileForConversion} message RecordFileForConversion message or plain object to encode + * @param {Folder.IRecordAccessData} message RecordAccessData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordFileForConversion.encodeDelimited = function encodeDelimited(message, writer) { + RecordAccessData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordFileForConversion message from the specified reader or buffer. + * Decodes a RecordAccessData message from the specified reader or buffer. * @function decode - * @memberof Records.RecordFileForConversion + * @memberof Folder.RecordAccessData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordFileForConversion} RecordFileForConversion + * @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 */ - RecordFileForConversion.decode = function decode(reader, length) { + RecordAccessData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordFileForConversion(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.RecordAccessData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + message.accessTypeUid = reader.bytes(); break; } case 2: { - message.fileFileId = reader.string(); + message.accessType = reader.int32(); break; } case 3: { - message.thumbFileId = reader.string(); + message.recordUid = reader.bytes(); break; } case 4: { - message.data = reader.bytes(); + message.accessRoleType = reader.int32(); break; } case 5: { - message.recordKey = reader.bytes(); + message.owner = reader.bool(); break; } case 6: { - message.linkKey = reader.bytes(); + message.inherited = reader.bool(); + break; + } + case 7: { + message.hidden = reader.bool(); + break; + } + case 8: { + message.deniedAccess = reader.bool(); + break; + } + case 9: { + message.canViewTitle = reader.bool(); + break; + } + case 10: { + message.canEdit = reader.bool(); + break; + } + case 11: { + message.canView = reader.bool(); + break; + } + case 12: { + message.canListAccess = reader.bool(); + break; + } + case 13: { + message.canUpdateAccess = reader.bool(); + break; + } + case 14: { + message.canDelete = reader.bool(); + break; + } + case 15: { + message.canChangeOwnership = reader.bool(); + break; + } + case 16: { + message.canRequestAccess = reader.bool(); + break; + } + case 17: { + message.canApproveAccess = reader.bool(); + break; + } + case 18: { + message.dateCreated = reader.int64(); + break; + } + case 19: { + message.lastModified = reader.int64(); + break; + } + case 20: { + message.tlaProperties = $root.common.tla.TLAProperties.decode(reader, reader.uint32()); break; } default: @@ -177802,200 +178688,424 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordFileForConversion message from the specified reader or buffer, length delimited. + * Decodes a RecordAccessData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordFileForConversion + * @memberof Folder.RecordAccessData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordFileForConversion} RecordFileForConversion + * @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 */ - RecordFileForConversion.decodeDelimited = function decodeDelimited(reader) { + RecordAccessData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordFileForConversion message. + * Verifies a RecordAccessData message. * @function verify - * @memberof Records.RecordFileForConversion + * @memberof Folder.RecordAccessData * @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) { + RecordAccessData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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"; + 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); + if (error) + return "tlaProperties." + error; + } return null; }; /** - * Creates a RecordFileForConversion message from a plain object. Also converts values to their respective internal types. + * Creates a RecordAccessData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordFileForConversion + * @memberof Folder.RecordAccessData * @static * @param {Object.} object Plain object - * @returns {Records.RecordFileForConversion} RecordFileForConversion + * @returns {Folder.RecordAccessData} RecordAccessData */ - RecordFileForConversion.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordFileForConversion) + RecordAccessData.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.RecordAccessData) return object; - let message = new $root.Records.RecordFileForConversion(); + let message = new $root.Folder.RecordAccessData(); + if (object.accessTypeUid != null) + if (typeof object.accessTypeUid === "string") + $util.base64.decode(object.accessTypeUid, message.accessTypeUid = $util.newBuffer($util.base64.length(object.accessTypeUid)), 0); + else if (object.accessTypeUid.length >= 0) + message.accessTypeUid = object.accessTypeUid; + switch (object.accessType) { + default: + if (typeof object.accessType === "number") { + message.accessType = object.accessType; + break; + } + break; + case "AT_UNKNOWN": + case 0: + message.accessType = 0; + break; + case "AT_OWNER": + case 1: + message.accessType = 1; + break; + case "AT_USER": + case 2: + message.accessType = 2; + break; + case "AT_TEAM": + case 3: + message.accessType = 3; + break; + case "AT_ENTERPRISE": + case 4: + message.accessType = 4; + break; + case "AT_FOLDER": + case 5: + message.accessType = 5; + break; + case "AT_APPLICATION": + case 6: + message.accessType = 6; + break; + } if (object.recordUid != null) if (typeof object.recordUid === "string") $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); else if (object.recordUid.length >= 0) message.recordUid = object.recordUid; - if (object.fileFileId != null) - message.fileFileId = String(object.fileFileId); - if (object.thumbFileId != null) - message.thumbFileId = String(object.thumbFileId); - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - if (object.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; - if (object.linkKey != null) - if (typeof object.linkKey === "string") - $util.base64.decode(object.linkKey, message.linkKey = $util.newBuffer($util.base64.length(object.linkKey)), 0); - else if (object.linkKey.length >= 0) - message.linkKey = object.linkKey; + switch (object.accessRoleType) { + default: + if (typeof object.accessRoleType === "number") { + message.accessRoleType = object.accessRoleType; + break; + } + break; + case "NAVIGATOR": + case 0: + message.accessRoleType = 0; + break; + case "REQUESTOR": + case 1: + message.accessRoleType = 1; + break; + case "VIEWER": + case 2: + message.accessRoleType = 2; + break; + case "SHARED_MANAGER": + case 3: + message.accessRoleType = 3; + break; + case "CONTENT_MANAGER": + case 4: + message.accessRoleType = 4; + break; + case "CONTENT_SHARE_MANAGER": + case 5: + message.accessRoleType = 5; + break; + case "MANAGER": + case 6: + message.accessRoleType = 6; + break; + case "UNRESOLVED": + case 7: + message.accessRoleType = 7; + break; + } + if (object.owner != null) + message.owner = Boolean(object.owner); + if (object.inherited != null) + message.inherited = Boolean(object.inherited); + if (object.hidden != null) + message.hidden = Boolean(object.hidden); + if (object.deniedAccess != null) + message.deniedAccess = Boolean(object.deniedAccess); + if (object.canViewTitle != null) + message.canViewTitle = Boolean(object.canViewTitle); + if (object.canEdit != null) + message.canEdit = Boolean(object.canEdit); + if (object.canView != null) + message.canView = Boolean(object.canView); + if (object.canListAccess != null) + message.canListAccess = Boolean(object.canListAccess); + if (object.canUpdateAccess != null) + message.canUpdateAccess = Boolean(object.canUpdateAccess); + if (object.canDelete != null) + message.canDelete = Boolean(object.canDelete); + if (object.canChangeOwnership != null) + message.canChangeOwnership = Boolean(object.canChangeOwnership); + if (object.canRequestAccess != null) + message.canRequestAccess = Boolean(object.canRequestAccess); + if (object.canApproveAccess != null) + message.canApproveAccess = Boolean(object.canApproveAccess); + if (object.dateCreated != null) + if ($util.Long) + (message.dateCreated = $util.Long.fromValue(object.dateCreated)).unsigned = false; + else if (typeof object.dateCreated === "string") + message.dateCreated = parseInt(object.dateCreated, 10); + else if (typeof object.dateCreated === "number") + message.dateCreated = object.dateCreated; + else if (typeof object.dateCreated === "object") + message.dateCreated = new $util.LongBits(object.dateCreated.low >>> 0, object.dateCreated.high >>> 0).toNumber(); + if (object.lastModified != null) + if ($util.Long) + (message.lastModified = $util.Long.fromValue(object.lastModified)).unsigned = false; + else if (typeof object.lastModified === "string") + message.lastModified = parseInt(object.lastModified, 10); + else if (typeof object.lastModified === "number") + message.lastModified = object.lastModified; + 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") + throw TypeError(".Folder.RecordAccessData.tlaProperties: object expected"); + message.tlaProperties = $root.common.tla.TLAProperties.fromObject(object.tlaProperties); + } return message; }; /** - * Creates a plain object from a RecordFileForConversion message. Also converts values to other types if specified. + * Creates a plain object from a RecordAccessData message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordFileForConversion + * @memberof Folder.RecordAccessData * @static - * @param {Records.RecordFileForConversion} message RecordFileForConversion + * @param {Folder.RecordAccessData} message RecordAccessData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordFileForConversion.toObject = function toObject(message, options) { + RecordAccessData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - object.fileFileId = ""; - object.thumbFileId = ""; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - if (options.bytes === String) - object.recordKey = ""; + object.accessTypeUid = ""; else { - object.recordKey = []; + object.accessTypeUid = []; if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); + object.accessTypeUid = $util.newBuffer(object.accessTypeUid); } + object.accessType = options.enums === String ? "AT_UNKNOWN" : 0; if (options.bytes === String) - object.linkKey = ""; + object.recordUid = ""; else { - object.linkKey = []; + object.recordUid = []; if (options.bytes !== Array) - object.linkKey = $util.newBuffer(object.linkKey); + object.recordUid = $util.newBuffer(object.recordUid); } + object.accessRoleType = options.enums === String ? "NAVIGATOR" : 0; + object.owner = false; + object.inherited = false; + object.hidden = false; + object.deniedAccess = false; + object.canViewTitle = false; + object.canEdit = false; + object.canView = false; + object.canListAccess = false; + object.canUpdateAccess = false; + object.canDelete = false; + object.canChangeOwnership = false; + object.canRequestAccess = false; + object.canApproveAccess = false; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.dateCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.dateCreated = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.lastModified = options.longs === String ? "0" : 0; + object.tlaProperties = null; } + if (message.accessTypeUid != null && message.hasOwnProperty("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")) + 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")) 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")) - object.fileFileId = message.fileFileId; - if (message.thumbFileId != null && message.hasOwnProperty("thumbFileId")) - object.thumbFileId = message.thumbFileId; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.linkKey != null && message.hasOwnProperty("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; + if (message.accessRoleType != null && message.hasOwnProperty("accessRoleType")) + object.accessRoleType = options.enums === String ? $root.Folder.AccessRoleType[message.accessRoleType] === undefined ? message.accessRoleType : $root.Folder.AccessRoleType[message.accessRoleType] : message.accessRoleType; + if (message.owner != null && message.hasOwnProperty("owner")) + object.owner = message.owner; + if (message.inherited != null && message.hasOwnProperty("inherited")) + object.inherited = message.inherited; + if (message.hidden != null && message.hasOwnProperty("hidden")) + object.hidden = message.hidden; + if (message.deniedAccess != null && message.hasOwnProperty("deniedAccess")) + object.deniedAccess = message.deniedAccess; + if (message.canViewTitle != null && message.hasOwnProperty("canViewTitle")) + object.canViewTitle = message.canViewTitle; + if (message.canEdit != null && message.hasOwnProperty("canEdit")) + object.canEdit = message.canEdit; + if (message.canView != null && message.hasOwnProperty("canView")) + object.canView = message.canView; + if (message.canListAccess != null && message.hasOwnProperty("canListAccess")) + object.canListAccess = message.canListAccess; + if (message.canUpdateAccess != null && message.hasOwnProperty("canUpdateAccess")) + object.canUpdateAccess = message.canUpdateAccess; + if (message.canDelete != null && message.hasOwnProperty("canDelete")) + object.canDelete = message.canDelete; + if (message.canChangeOwnership != null && message.hasOwnProperty("canChangeOwnership")) + object.canChangeOwnership = message.canChangeOwnership; + if (message.canRequestAccess != null && message.hasOwnProperty("canRequestAccess")) + object.canRequestAccess = message.canRequestAccess; + if (message.canApproveAccess != null && message.hasOwnProperty("canApproveAccess")) + object.canApproveAccess = message.canApproveAccess; + if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) + if (typeof message.dateCreated === "number") + object.dateCreated = options.longs === String ? String(message.dateCreated) : message.dateCreated; + else + object.dateCreated = options.longs === String ? $util.Long.prototype.toString.call(message.dateCreated) : options.longs === Number ? new $util.LongBits(message.dateCreated.low >>> 0, message.dateCreated.high >>> 0).toNumber() : message.dateCreated; + if (message.lastModified != null && message.hasOwnProperty("lastModified")) + if (typeof message.lastModified === "number") + object.lastModified = options.longs === String ? String(message.lastModified) : message.lastModified; + else + object.lastModified = options.longs === String ? $util.Long.prototype.toString.call(message.lastModified) : options.longs === Number ? new $util.LongBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0).toNumber() : message.lastModified; + if (message.tlaProperties != null && message.hasOwnProperty("tlaProperties")) + object.tlaProperties = $root.common.tla.TLAProperties.toObject(message.tlaProperties, options); return object; }; /** - * Converts this RecordFileForConversion to JSON. + * Converts this RecordAccessData to JSON. * @function toJSON - * @memberof Records.RecordFileForConversion + * @memberof Folder.RecordAccessData * @instance * @returns {Object.} JSON object */ - RecordFileForConversion.prototype.toJSON = function toJSON() { + RecordAccessData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordFileForConversion + * Gets the default type url for RecordAccessData * @function getTypeUrl - * @memberof Records.RecordFileForConversion + * @memberof Folder.RecordAccessData * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordFileForConversion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordAccessData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordFileForConversion"; + return typeUrlPrefix + "/Folder.RecordAccessData"; }; - return RecordFileForConversion; + return RecordAccessData; })(); - Records.RecordFolderForConversion = (function() { + Folder.AccessData = (function() { /** - * Properties of a RecordFolderForConversion. - * @memberof Records - * @interface IRecordFolderForConversion - * @property {Uint8Array|null} [folderUid] RecordFolderForConversion folderUid - * @property {Uint8Array|null} [recordFolderKey] RecordFolderForConversion recordFolderKey + * Properties of an AccessData. + * @memberof Folder + * @interface IAccessData + * @property {Uint8Array|null} [accessTypeUid] AccessData accessTypeUid + * @property {Folder.AccessRoleType|null} [accessRoleType] AccessData accessRoleType + * @property {boolean|null} [deniedAccess] AccessData deniedAccess + * @property {boolean|null} [inherited] AccessData inherited + * @property {boolean|null} [hidden] AccessData hidden + * @property {Folder.ICapabilities|null} [capabilities] AccessData capabilities */ /** - * Constructs a new RecordFolderForConversion. - * @memberof Records - * @classdesc Represents a RecordFolderForConversion. - * @implements IRecordFolderForConversion + * Constructs a new AccessData. + * @memberof Folder + * @classdesc Represents an AccessData. + * @implements IAccessData * @constructor - * @param {Records.IRecordFolderForConversion=} [properties] Properties to set + * @param {Folder.IAccessData=} [properties] Properties to set */ - function RecordFolderForConversion(properties) { + function AccessData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -178003,89 +179113,145 @@ export const Records = $root.Records = (() => { } /** - * RecordFolderForConversion folderUid. - * @member {Uint8Array} folderUid - * @memberof Records.RecordFolderForConversion + * AccessData accessTypeUid. + * @member {Uint8Array} accessTypeUid + * @memberof Folder.AccessData * @instance */ - RecordFolderForConversion.prototype.folderUid = $util.newBuffer([]); + AccessData.prototype.accessTypeUid = $util.newBuffer([]); /** - * RecordFolderForConversion recordFolderKey. - * @member {Uint8Array} recordFolderKey - * @memberof Records.RecordFolderForConversion + * AccessData accessRoleType. + * @member {Folder.AccessRoleType} accessRoleType + * @memberof Folder.AccessData * @instance */ - RecordFolderForConversion.prototype.recordFolderKey = $util.newBuffer([]); + AccessData.prototype.accessRoleType = 0; /** - * Creates a new RecordFolderForConversion instance using the specified properties. + * AccessData deniedAccess. + * @member {boolean} deniedAccess + * @memberof Folder.AccessData + * @instance + */ + AccessData.prototype.deniedAccess = false; + + /** + * AccessData inherited. + * @member {boolean} inherited + * @memberof Folder.AccessData + * @instance + */ + AccessData.prototype.inherited = false; + + /** + * AccessData hidden. + * @member {boolean} hidden + * @memberof Folder.AccessData + * @instance + */ + AccessData.prototype.hidden = false; + + /** + * AccessData capabilities. + * @member {Folder.ICapabilities|null|undefined} capabilities + * @memberof Folder.AccessData + * @instance + */ + AccessData.prototype.capabilities = null; + + /** + * Creates a new AccessData instance using the specified properties. * @function create - * @memberof Records.RecordFolderForConversion + * @memberof Folder.AccessData * @static - * @param {Records.IRecordFolderForConversion=} [properties] Properties to set - * @returns {Records.RecordFolderForConversion} RecordFolderForConversion instance + * @param {Folder.IAccessData=} [properties] Properties to set + * @returns {Folder.AccessData} AccessData instance */ - RecordFolderForConversion.create = function create(properties) { - return new RecordFolderForConversion(properties); + AccessData.create = function create(properties) { + return new AccessData(properties); }; /** - * Encodes the specified RecordFolderForConversion message. Does not implicitly {@link Records.RecordFolderForConversion.verify|verify} messages. + * Encodes the specified AccessData message. Does not implicitly {@link Folder.AccessData.verify|verify} messages. * @function encode - * @memberof Records.RecordFolderForConversion + * @memberof Folder.AccessData * @static - * @param {Records.IRecordFolderForConversion} message RecordFolderForConversion message or plain object to encode + * @param {Folder.IAccessData} message AccessData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordFolderForConversion.encode = function encode(message, writer) { + AccessData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); - if (message.recordFolderKey != null && Object.hasOwnProperty.call(message, "recordFolderKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordFolderKey); + if (message.accessTypeUid != null && Object.hasOwnProperty.call(message, "accessTypeUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.accessTypeUid); + if (message.accessRoleType != null && Object.hasOwnProperty.call(message, "accessRoleType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.accessRoleType); + if (message.deniedAccess != null && Object.hasOwnProperty.call(message, "deniedAccess")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deniedAccess); + if (message.inherited != null && Object.hasOwnProperty.call(message, "inherited")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.inherited); + if (message.hidden != null && Object.hasOwnProperty.call(message, "hidden")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.hidden); + if (message.capabilities != null && Object.hasOwnProperty.call(message, "capabilities")) + $root.Folder.Capabilities.encode(message.capabilities, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified RecordFolderForConversion message, length delimited. Does not implicitly {@link Records.RecordFolderForConversion.verify|verify} messages. + * Encodes the specified AccessData message, length delimited. Does not implicitly {@link Folder.AccessData.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordFolderForConversion + * @memberof Folder.AccessData * @static - * @param {Records.IRecordFolderForConversion} message RecordFolderForConversion message or plain object to encode + * @param {Folder.IAccessData} message AccessData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordFolderForConversion.encodeDelimited = function encodeDelimited(message, writer) { + AccessData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordFolderForConversion message from the specified reader or buffer. + * Decodes an AccessData message from the specified reader or buffer. * @function decode - * @memberof Records.RecordFolderForConversion + * @memberof Folder.AccessData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordFolderForConversion} RecordFolderForConversion + * @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 */ - RecordFolderForConversion.decode = function decode(reader, length) { + AccessData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordFolderForConversion(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.AccessData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.folderUid = reader.bytes(); + message.accessTypeUid = reader.bytes(); break; } case 2: { - message.recordFolderKey = reader.bytes(); + message.accessRoleType = reader.int32(); + break; + } + case 3: { + message.deniedAccess = reader.bool(); + break; + } + case 4: { + message.inherited = reader.bool(); + break; + } + case 5: { + message.hidden = reader.bool(); + break; + } + case 6: { + message.capabilities = $root.Folder.Capabilities.decode(reader, reader.uint32()); break; } default: @@ -178097,158 +179263,231 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordFolderForConversion message from the specified reader or buffer, length delimited. + * Decodes an AccessData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordFolderForConversion + * @memberof Folder.AccessData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordFolderForConversion} RecordFolderForConversion + * @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 */ - RecordFolderForConversion.decodeDelimited = function decodeDelimited(reader) { + AccessData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordFolderForConversion message. + * Verifies an AccessData message. * @function verify - * @memberof Records.RecordFolderForConversion + * @memberof Folder.AccessData * @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) { + AccessData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.recordFolderKey != null && message.hasOwnProperty("recordFolderKey")) - if (!(message.recordFolderKey && typeof message.recordFolderKey.length === "number" || $util.isString(message.recordFolderKey))) - return "recordFolderKey: 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.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); + if (error) + return "capabilities." + error; + } return null; }; /** - * Creates a RecordFolderForConversion message from a plain object. Also converts values to their respective internal types. + * Creates an AccessData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordFolderForConversion + * @memberof Folder.AccessData * @static * @param {Object.} object Plain object - * @returns {Records.RecordFolderForConversion} RecordFolderForConversion + * @returns {Folder.AccessData} AccessData */ - RecordFolderForConversion.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordFolderForConversion) + AccessData.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.AccessData) return object; - let message = new $root.Records.RecordFolderForConversion(); - if (object.folderUid != null) - if (typeof object.folderUid === "string") - $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); - else if (object.folderUid.length >= 0) - message.folderUid = object.folderUid; - if (object.recordFolderKey != null) - if (typeof object.recordFolderKey === "string") - $util.base64.decode(object.recordFolderKey, message.recordFolderKey = $util.newBuffer($util.base64.length(object.recordFolderKey)), 0); - else if (object.recordFolderKey.length >= 0) - message.recordFolderKey = object.recordFolderKey; + let message = new $root.Folder.AccessData(); + if (object.accessTypeUid != null) + if (typeof object.accessTypeUid === "string") + $util.base64.decode(object.accessTypeUid, message.accessTypeUid = $util.newBuffer($util.base64.length(object.accessTypeUid)), 0); + else if (object.accessTypeUid.length >= 0) + message.accessTypeUid = object.accessTypeUid; + switch (object.accessRoleType) { + default: + if (typeof object.accessRoleType === "number") { + message.accessRoleType = object.accessRoleType; + break; + } + break; + case "NAVIGATOR": + case 0: + message.accessRoleType = 0; + break; + case "REQUESTOR": + case 1: + message.accessRoleType = 1; + break; + case "VIEWER": + case 2: + message.accessRoleType = 2; + break; + case "SHARED_MANAGER": + case 3: + message.accessRoleType = 3; + break; + case "CONTENT_MANAGER": + case 4: + message.accessRoleType = 4; + break; + case "CONTENT_SHARE_MANAGER": + case 5: + message.accessRoleType = 5; + break; + case "MANAGER": + case 6: + message.accessRoleType = 6; + break; + case "UNRESOLVED": + case 7: + message.accessRoleType = 7; + break; + } + if (object.deniedAccess != null) + message.deniedAccess = Boolean(object.deniedAccess); + if (object.inherited != null) + message.inherited = Boolean(object.inherited); + if (object.hidden != null) + message.hidden = Boolean(object.hidden); + if (object.capabilities != null) { + if (typeof object.capabilities !== "object") + throw TypeError(".Folder.AccessData.capabilities: object expected"); + message.capabilities = $root.Folder.Capabilities.fromObject(object.capabilities); + } return message; }; /** - * Creates a plain object from a RecordFolderForConversion message. Also converts values to other types if specified. + * Creates a plain object from an AccessData message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordFolderForConversion + * @memberof Folder.AccessData * @static - * @param {Records.RecordFolderForConversion} message RecordFolderForConversion + * @param {Folder.AccessData} message AccessData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordFolderForConversion.toObject = function toObject(message, options) { + AccessData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { if (options.bytes === String) - object.folderUid = ""; - else { - object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); - } - if (options.bytes === String) - object.recordFolderKey = ""; + object.accessTypeUid = ""; else { - object.recordFolderKey = []; + object.accessTypeUid = []; if (options.bytes !== Array) - object.recordFolderKey = $util.newBuffer(object.recordFolderKey); - } - } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; - if (message.recordFolderKey != null && message.hasOwnProperty("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; + object.accessTypeUid = $util.newBuffer(object.accessTypeUid); + } + object.accessRoleType = options.enums === String ? "NAVIGATOR" : 0; + object.deniedAccess = false; + object.inherited = false; + object.hidden = false; + object.capabilities = null; + } + if (message.accessTypeUid != null && message.hasOwnProperty("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")) + 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")) + object.deniedAccess = message.deniedAccess; + if (message.inherited != null && message.hasOwnProperty("inherited")) + object.inherited = message.inherited; + if (message.hidden != null && message.hasOwnProperty("hidden")) + object.hidden = message.hidden; + if (message.capabilities != null && message.hasOwnProperty("capabilities")) + object.capabilities = $root.Folder.Capabilities.toObject(message.capabilities, options); return object; }; /** - * Converts this RecordFolderForConversion to JSON. + * Converts this AccessData to JSON. * @function toJSON - * @memberof Records.RecordFolderForConversion + * @memberof Folder.AccessData * @instance * @returns {Object.} JSON object */ - RecordFolderForConversion.prototype.toJSON = function toJSON() { + AccessData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordFolderForConversion + * Gets the default type url for AccessData * @function getTypeUrl - * @memberof Records.RecordFolderForConversion + * @memberof Folder.AccessData * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordFolderForConversion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AccessData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordFolderForConversion"; + return typeUrlPrefix + "/Folder.AccessData"; }; - return RecordFolderForConversion; + return AccessData; })(); - Records.RecordConvertToV3 = (function() { + Folder.FolderAccessRequest = (function() { /** - * Properties of a RecordConvertToV3. - * @memberof Records - * @interface IRecordConvertToV3 - * @property {Uint8Array|null} [recordUid] RecordConvertToV3 recordUid - * @property {number|Long|null} [clientModifiedTime] RecordConvertToV3 clientModifiedTime - * @property {number|Long|null} [revision] RecordConvertToV3 revision - * @property {Uint8Array|null} [data] RecordConvertToV3 data - * @property {Uint8Array|null} [nonSharedData] RecordConvertToV3 nonSharedData - * @property {Records.IRecordAudit|null} [audit] RecordConvertToV3 audit - * @property {Array.|null} [recordFile] RecordConvertToV3 recordFile - * @property {Array.|null} [folderKey] RecordConvertToV3 folderKey + * Properties of a FolderAccessRequest. + * @memberof Folder + * @interface IFolderAccessRequest + * @property {Array.|null} [folderAccessAdds] FolderAccessRequest folderAccessAdds + * @property {Array.|null} [folderAccessUpdates] FolderAccessRequest folderAccessUpdates + * @property {Array.|null} [folderAccessRemoves] FolderAccessRequest folderAccessRemoves */ /** - * Constructs a new RecordConvertToV3. - * @memberof Records - * @classdesc Represents a RecordConvertToV3. - * @implements IRecordConvertToV3 + * Constructs a new FolderAccessRequest. + * @memberof Folder + * @classdesc Request for rest/vault/folders/v3/access_update end-point. + * @implements IFolderAccessRequest * @constructor - * @param {Records.IRecordConvertToV3=} [properties] Properties to set + * @param {Folder.IFolderAccessRequest=} [properties] Properties to set */ - function RecordConvertToV3(properties) { - this.recordFile = []; - this.folderKey = []; + function FolderAccessRequest(properties) { + this.folderAccessAdds = []; + this.folderAccessUpdates = []; + this.folderAccessRemoves = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -178256,179 +179495,112 @@ export const Records = $root.Records = (() => { } /** - * RecordConvertToV3 recordUid. - * @member {Uint8Array} recordUid - * @memberof Records.RecordConvertToV3 + * FolderAccessRequest folderAccessAdds. + * @member {Array.} folderAccessAdds + * @memberof Folder.FolderAccessRequest * @instance */ - RecordConvertToV3.prototype.recordUid = $util.newBuffer([]); + FolderAccessRequest.prototype.folderAccessAdds = $util.emptyArray; /** - * RecordConvertToV3 clientModifiedTime. - * @member {number|Long} clientModifiedTime - * @memberof Records.RecordConvertToV3 + * FolderAccessRequest folderAccessUpdates. + * @member {Array.} folderAccessUpdates + * @memberof Folder.FolderAccessRequest * @instance */ - RecordConvertToV3.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FolderAccessRequest.prototype.folderAccessUpdates = $util.emptyArray; /** - * RecordConvertToV3 revision. - * @member {number|Long} revision - * @memberof Records.RecordConvertToV3 + * FolderAccessRequest folderAccessRemoves. + * @member {Array.} folderAccessRemoves + * @memberof Folder.FolderAccessRequest * @instance */ - RecordConvertToV3.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FolderAccessRequest.prototype.folderAccessRemoves = $util.emptyArray; /** - * RecordConvertToV3 data. - * @member {Uint8Array} data - * @memberof Records.RecordConvertToV3 - * @instance + * Creates a new FolderAccessRequest instance using the specified properties. + * @function create + * @memberof Folder.FolderAccessRequest + * @static + * @param {Folder.IFolderAccessRequest=} [properties] Properties to set + * @returns {Folder.FolderAccessRequest} FolderAccessRequest instance */ - RecordConvertToV3.prototype.data = $util.newBuffer([]); + FolderAccessRequest.create = function create(properties) { + return new FolderAccessRequest(properties); + }; /** - * RecordConvertToV3 nonSharedData. - * @member {Uint8Array} nonSharedData - * @memberof Records.RecordConvertToV3 - * @instance + * Encodes the specified FolderAccessRequest message. Does not implicitly {@link Folder.FolderAccessRequest.verify|verify} messages. + * @function encode + * @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 */ - RecordConvertToV3.prototype.nonSharedData = $util.newBuffer([]); + FolderAccessRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.folderAccessAdds != null && message.folderAccessAdds.length) + for (let i = 0; i < message.folderAccessAdds.length; ++i) + $root.Folder.FolderAccessData.encode(message.folderAccessAdds[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.folderAccessUpdates != null && message.folderAccessUpdates.length) + for (let i = 0; i < message.folderAccessUpdates.length; ++i) + $root.Folder.FolderAccessData.encode(message.folderAccessUpdates[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.folderAccessRemoves != null && message.folderAccessRemoves.length) + for (let i = 0; i < message.folderAccessRemoves.length; ++i) + $root.Folder.FolderAccessData.encode(message.folderAccessRemoves[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; /** - * RecordConvertToV3 audit. - * @member {Records.IRecordAudit|null|undefined} audit - * @memberof Records.RecordConvertToV3 - * @instance + * 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 */ - RecordConvertToV3.prototype.audit = null; + FolderAccessRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * RecordConvertToV3 recordFile. - * @member {Array.} recordFile - * @memberof Records.RecordConvertToV3 - * @instance - */ - RecordConvertToV3.prototype.recordFile = $util.emptyArray; - - /** - * RecordConvertToV3 folderKey. - * @member {Array.} folderKey - * @memberof Records.RecordConvertToV3 - * @instance - */ - RecordConvertToV3.prototype.folderKey = $util.emptyArray; - - /** - * Creates a new RecordConvertToV3 instance using the specified properties. - * @function create - * @memberof Records.RecordConvertToV3 - * @static - * @param {Records.IRecordConvertToV3=} [properties] Properties to set - * @returns {Records.RecordConvertToV3} RecordConvertToV3 instance - */ - RecordConvertToV3.create = function create(properties) { - return new RecordConvertToV3(properties); - }; - - /** - * Encodes the specified RecordConvertToV3 message. Does not implicitly {@link Records.RecordConvertToV3.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientModifiedTime); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); - if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "nonSharedData")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.nonSharedData); - if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) - $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.recordFile != null && message.recordFile.length) - for (let i = 0; i < message.recordFile.length; ++i) - $root.Records.RecordFileForConversion.encode(message.recordFile[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.folderKey != null && message.folderKey.length) - for (let i = 0; i < message.folderKey.length; ++i) - $root.Records.RecordFolderForConversion.encode(message.folderKey[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - 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. + * Decodes a FolderAccessRequest message from the specified reader or buffer. * @function decode - * @memberof Records.RecordConvertToV3 + * @memberof Folder.FolderAccessRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordConvertToV3} RecordConvertToV3 + * @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 */ - RecordConvertToV3.decode = function decode(reader, length) { + FolderAccessRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordConvertToV3(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderAccessRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + if (!(message.folderAccessAdds && message.folderAccessAdds.length)) + message.folderAccessAdds = []; + message.folderAccessAdds.push($root.Folder.FolderAccessData.decode(reader, reader.uint32())); break; } case 2: { - message.clientModifiedTime = reader.int64(); + if (!(message.folderAccessUpdates && message.folderAccessUpdates.length)) + message.folderAccessUpdates = []; + message.folderAccessUpdates.push($root.Folder.FolderAccessData.decode(reader, reader.uint32())); break; } case 3: { - message.revision = reader.int64(); - break; - } - case 4: { - message.data = reader.bytes(); - break; - } - case 5: { - message.nonSharedData = reader.bytes(); - break; - } - case 6: { - message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); - break; - } - case 7: { - if (!(message.recordFile && message.recordFile.length)) - message.recordFile = []; - message.recordFile.push($root.Records.RecordFileForConversion.decode(reader, reader.uint32())); - break; - } - case 8: { - if (!(message.folderKey && message.folderKey.length)) - message.folderKey = []; - message.folderKey.push($root.Records.RecordFolderForConversion.decode(reader, reader.uint32())); + if (!(message.folderAccessRemoves && message.folderAccessRemoves.length)) + message.folderAccessRemoves = []; + message.folderAccessRemoves.push($root.Folder.FolderAccessData.decode(reader, reader.uint32())); break; } default: @@ -178440,277 +179612,194 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordConvertToV3 message from the specified reader or buffer, length delimited. + * Decodes a FolderAccessRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordConvertToV3 + * @memberof Folder.FolderAccessRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordConvertToV3} RecordConvertToV3 + * @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 */ - RecordConvertToV3.decodeDelimited = function decodeDelimited(reader) { + FolderAccessRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordConvertToV3 message. + * Verifies a FolderAccessRequest message. * @function verify - * @memberof Records.RecordConvertToV3 + * @memberof Folder.FolderAccessRequest * @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) { + FolderAccessRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.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); - if (error) - return "audit." + error; + 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]); + if (error) + return "folderAccessAdds." + 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]); + 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]); if (error) - return "recordFile." + error; + return "folderAccessUpdates." + 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]); + 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]); if (error) - return "folderKey." + error; + return "folderAccessRemoves." + error; } } return null; }; /** - * Creates a RecordConvertToV3 message from a plain object. Also converts values to their respective internal types. + * Creates a FolderAccessRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordConvertToV3 + * @memberof Folder.FolderAccessRequest * @static * @param {Object.} object Plain object - * @returns {Records.RecordConvertToV3} RecordConvertToV3 + * @returns {Folder.FolderAccessRequest} FolderAccessRequest */ - RecordConvertToV3.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordConvertToV3) + FolderAccessRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.FolderAccessRequest) return object; - let message = new $root.Records.RecordConvertToV3(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.clientModifiedTime != null) - if ($util.Long) - (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; - else if (typeof object.clientModifiedTime === "string") - message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); - else if (typeof object.clientModifiedTime === "number") - message.clientModifiedTime = object.clientModifiedTime; - else if (typeof object.clientModifiedTime === "object") - message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - if (object.nonSharedData != null) - if (typeof object.nonSharedData === "string") - $util.base64.decode(object.nonSharedData, message.nonSharedData = $util.newBuffer($util.base64.length(object.nonSharedData)), 0); - else if (object.nonSharedData.length >= 0) - message.nonSharedData = object.nonSharedData; - if (object.audit != null) { - if (typeof object.audit !== "object") - throw TypeError(".Records.RecordConvertToV3.audit: object expected"); - message.audit = $root.Records.RecordAudit.fromObject(object.audit); + let message = new $root.Folder.FolderAccessRequest(); + if (object.folderAccessAdds) { + if (!Array.isArray(object.folderAccessAdds)) + throw TypeError(".Folder.FolderAccessRequest.folderAccessAdds: array expected"); + message.folderAccessAdds = []; + for (let i = 0; i < object.folderAccessAdds.length; ++i) { + if (typeof object.folderAccessAdds[i] !== "object") + throw TypeError(".Folder.FolderAccessRequest.folderAccessAdds: object expected"); + message.folderAccessAdds[i] = $root.Folder.FolderAccessData.fromObject(object.folderAccessAdds[i]); + } } - if (object.recordFile) { - if (!Array.isArray(object.recordFile)) - throw TypeError(".Records.RecordConvertToV3.recordFile: array expected"); - message.recordFile = []; - for (let i = 0; i < object.recordFile.length; ++i) { - if (typeof object.recordFile[i] !== "object") - throw TypeError(".Records.RecordConvertToV3.recordFile: object expected"); - message.recordFile[i] = $root.Records.RecordFileForConversion.fromObject(object.recordFile[i]); + if (object.folderAccessUpdates) { + if (!Array.isArray(object.folderAccessUpdates)) + throw TypeError(".Folder.FolderAccessRequest.folderAccessUpdates: array expected"); + message.folderAccessUpdates = []; + for (let i = 0; i < object.folderAccessUpdates.length; ++i) { + if (typeof object.folderAccessUpdates[i] !== "object") + throw TypeError(".Folder.FolderAccessRequest.folderAccessUpdates: object expected"); + message.folderAccessUpdates[i] = $root.Folder.FolderAccessData.fromObject(object.folderAccessUpdates[i]); } } - if (object.folderKey) { - if (!Array.isArray(object.folderKey)) - throw TypeError(".Records.RecordConvertToV3.folderKey: array expected"); - message.folderKey = []; - for (let i = 0; i < object.folderKey.length; ++i) { - if (typeof object.folderKey[i] !== "object") - throw TypeError(".Records.RecordConvertToV3.folderKey: object expected"); - message.folderKey[i] = $root.Records.RecordFolderForConversion.fromObject(object.folderKey[i]); + if (object.folderAccessRemoves) { + if (!Array.isArray(object.folderAccessRemoves)) + throw TypeError(".Folder.FolderAccessRequest.folderAccessRemoves: array expected"); + message.folderAccessRemoves = []; + for (let i = 0; i < object.folderAccessRemoves.length; ++i) { + if (typeof object.folderAccessRemoves[i] !== "object") + throw TypeError(".Folder.FolderAccessRequest.folderAccessRemoves: object expected"); + message.folderAccessRemoves[i] = $root.Folder.FolderAccessData.fromObject(object.folderAccessRemoves[i]); } } return message; }; /** - * Creates a plain object from a RecordConvertToV3 message. Also converts values to other types if specified. + * Creates a plain object from a FolderAccessRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordConvertToV3 + * @memberof Folder.FolderAccessRequest * @static - * @param {Records.RecordConvertToV3} message RecordConvertToV3 + * @param {Folder.FolderAccessRequest} message FolderAccessRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordConvertToV3.toObject = function toObject(message, options) { + FolderAccessRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { - object.recordFile = []; - object.folderKey = []; + object.folderAccessAdds = []; + object.folderAccessUpdates = []; + object.folderAccessRemoves = []; } - if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.clientModifiedTime = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - if (options.bytes === String) - object.nonSharedData = ""; - else { - object.nonSharedData = []; - if (options.bytes !== Array) - object.nonSharedData = $util.newBuffer(object.nonSharedData); - } - object.audit = null; + if (message.folderAccessAdds && message.folderAccessAdds.length) { + object.folderAccessAdds = []; + for (let j = 0; j < message.folderAccessAdds.length; ++j) + object.folderAccessAdds[j] = $root.Folder.FolderAccessData.toObject(message.folderAccessAdds[j], options); } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof message.clientModifiedTime === "number") - object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; - else - object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof 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")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) - object.nonSharedData = options.bytes === String ? $util.base64.encode(message.nonSharedData, 0, message.nonSharedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.nonSharedData) : message.nonSharedData; - if (message.audit != null && message.hasOwnProperty("audit")) - object.audit = $root.Records.RecordAudit.toObject(message.audit, options); - if (message.recordFile && message.recordFile.length) { - object.recordFile = []; - for (let j = 0; j < message.recordFile.length; ++j) - object.recordFile[j] = $root.Records.RecordFileForConversion.toObject(message.recordFile[j], options); + if (message.folderAccessUpdates && message.folderAccessUpdates.length) { + object.folderAccessUpdates = []; + for (let j = 0; j < message.folderAccessUpdates.length; ++j) + object.folderAccessUpdates[j] = $root.Folder.FolderAccessData.toObject(message.folderAccessUpdates[j], options); } - if (message.folderKey && message.folderKey.length) { - object.folderKey = []; - for (let j = 0; j < message.folderKey.length; ++j) - object.folderKey[j] = $root.Records.RecordFolderForConversion.toObject(message.folderKey[j], options); + if (message.folderAccessRemoves && message.folderAccessRemoves.length) { + object.folderAccessRemoves = []; + for (let j = 0; j < message.folderAccessRemoves.length; ++j) + object.folderAccessRemoves[j] = $root.Folder.FolderAccessData.toObject(message.folderAccessRemoves[j], options); } return object; }; /** - * Converts this RecordConvertToV3 to JSON. + * Converts this FolderAccessRequest to JSON. * @function toJSON - * @memberof Records.RecordConvertToV3 + * @memberof Folder.FolderAccessRequest * @instance * @returns {Object.} JSON object */ - RecordConvertToV3.prototype.toJSON = function toJSON() { + FolderAccessRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordConvertToV3 + * Gets the default type url for FolderAccessRequest * @function getTypeUrl - * @memberof Records.RecordConvertToV3 + * @memberof Folder.FolderAccessRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordConvertToV3.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FolderAccessRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordConvertToV3"; + return typeUrlPrefix + "/Folder.FolderAccessRequest"; }; - return RecordConvertToV3; + return FolderAccessRequest; })(); - Records.RecordsConvertToV3Request = (function() { + Folder.FolderAccessResult = (function() { /** - * Properties of a RecordsConvertToV3Request. - * @memberof Records - * @interface IRecordsConvertToV3Request - * @property {Array.|null} [records] RecordsConvertToV3Request records - * @property {number|Long|null} [clientTime] RecordsConvertToV3Request clientTime + * Properties of a FolderAccessResult. + * @memberof Folder + * @interface IFolderAccessResult + * @property {Uint8Array|null} [folderUid] FolderAccessResult folderUid + * @property {Uint8Array|null} [accessUid] FolderAccessResult accessUid + * @property {Folder.AccessType|null} [accessType] FolderAccessResult accessType + * @property {Folder.FolderModifyStatus|null} [status] FolderAccessResult status + * @property {string|null} [message] FolderAccessResult message */ /** - * Constructs a new RecordsConvertToV3Request. - * @memberof Records - * @classdesc Represents a RecordsConvertToV3Request. - * @implements IRecordsConvertToV3Request + * Constructs a new FolderAccessResult. + * @memberof Folder + * @classdesc Represents a FolderAccessResult. + * @implements IFolderAccessResult * @constructor - * @param {Records.IRecordsConvertToV3Request=} [properties] Properties to set + * @param {Folder.IFolderAccessResult=} [properties] Properties to set */ - function RecordsConvertToV3Request(properties) { - this.records = []; + function FolderAccessResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -178718,92 +179807,131 @@ export const Records = $root.Records = (() => { } /** - * RecordsConvertToV3Request records. - * @member {Array.} records - * @memberof Records.RecordsConvertToV3Request + * FolderAccessResult folderUid. + * @member {Uint8Array} folderUid + * @memberof Folder.FolderAccessResult * @instance */ - RecordsConvertToV3Request.prototype.records = $util.emptyArray; + FolderAccessResult.prototype.folderUid = $util.newBuffer([]); /** - * RecordsConvertToV3Request clientTime. - * @member {number|Long} clientTime - * @memberof Records.RecordsConvertToV3Request + * FolderAccessResult accessUid. + * @member {Uint8Array} accessUid + * @memberof Folder.FolderAccessResult * @instance */ - RecordsConvertToV3Request.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FolderAccessResult.prototype.accessUid = $util.newBuffer([]); /** - * Creates a new RecordsConvertToV3Request instance using the specified properties. + * FolderAccessResult accessType. + * @member {Folder.AccessType} accessType + * @memberof Folder.FolderAccessResult + * @instance + */ + FolderAccessResult.prototype.accessType = 0; + + /** + * FolderAccessResult status. + * @member {Folder.FolderModifyStatus} status + * @memberof Folder.FolderAccessResult + * @instance + */ + FolderAccessResult.prototype.status = 0; + + /** + * FolderAccessResult message. + * @member {string} message + * @memberof Folder.FolderAccessResult + * @instance + */ + FolderAccessResult.prototype.message = ""; + + /** + * Creates a new FolderAccessResult instance using the specified properties. * @function create - * @memberof Records.RecordsConvertToV3Request + * @memberof Folder.FolderAccessResult * @static - * @param {Records.IRecordsConvertToV3Request=} [properties] Properties to set - * @returns {Records.RecordsConvertToV3Request} RecordsConvertToV3Request instance + * @param {Folder.IFolderAccessResult=} [properties] Properties to set + * @returns {Folder.FolderAccessResult} FolderAccessResult instance */ - RecordsConvertToV3Request.create = function create(properties) { - return new RecordsConvertToV3Request(properties); + FolderAccessResult.create = function create(properties) { + return new FolderAccessResult(properties); }; /** - * Encodes the specified RecordsConvertToV3Request message. Does not implicitly {@link Records.RecordsConvertToV3Request.verify|verify} messages. + * Encodes the specified FolderAccessResult message. Does not implicitly {@link Folder.FolderAccessResult.verify|verify} messages. * @function encode - * @memberof Records.RecordsConvertToV3Request + * @memberof Folder.FolderAccessResult * @static - * @param {Records.IRecordsConvertToV3Request} message RecordsConvertToV3Request message or plain object to encode + * @param {Folder.IFolderAccessResult} message FolderAccessResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsConvertToV3Request.encode = function encode(message, writer) { + FolderAccessResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.records != null && message.records.length) - for (let i = 0; i < message.records.length; ++i) - $root.Records.RecordConvertToV3.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); + if (message.accessUid != null && Object.hasOwnProperty.call(message, "accessUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.accessUid); + if (message.accessType != null && Object.hasOwnProperty.call(message, "accessType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.accessType); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.message); return writer; }; /** - * Encodes the specified RecordsConvertToV3Request message, length delimited. Does not implicitly {@link Records.RecordsConvertToV3Request.verify|verify} messages. + * Encodes the specified FolderAccessResult message, length delimited. Does not implicitly {@link Folder.FolderAccessResult.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordsConvertToV3Request + * @memberof Folder.FolderAccessResult * @static - * @param {Records.IRecordsConvertToV3Request} message RecordsConvertToV3Request message or plain object to encode + * @param {Folder.IFolderAccessResult} message FolderAccessResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsConvertToV3Request.encodeDelimited = function encodeDelimited(message, writer) { + FolderAccessResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordsConvertToV3Request message from the specified reader or buffer. + * Decodes a FolderAccessResult message from the specified reader or buffer. * @function decode - * @memberof Records.RecordsConvertToV3Request + * @memberof Folder.FolderAccessResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordsConvertToV3Request} RecordsConvertToV3Request + * @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 */ - RecordsConvertToV3Request.decode = function decode(reader, length) { + FolderAccessResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsConvertToV3Request(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderAccessResult(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.records && message.records.length)) - message.records = []; - message.records.push($root.Records.RecordConvertToV3.decode(reader, reader.uint32())); + message.folderUid = reader.bytes(); break; } case 2: { - message.clientTime = reader.int64(); + message.accessUid = reader.bytes(); + break; + } + case 3: { + message.accessType = reader.int32(); + break; + } + case 4: { + message.status = reader.int32(); + break; + } + case 5: { + message.message = reader.string(); break; } default: @@ -178815,163 +179943,247 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordsConvertToV3Request message from the specified reader or buffer, length delimited. + * Decodes a FolderAccessResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordsConvertToV3Request + * @memberof Folder.FolderAccessResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsConvertToV3Request} RecordsConvertToV3Request + * @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 */ - RecordsConvertToV3Request.decodeDelimited = function decodeDelimited(reader) { + FolderAccessResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordsConvertToV3Request message. + * Verifies a FolderAccessResult message. * @function verify - * @memberof Records.RecordsConvertToV3Request + * @memberof Folder.FolderAccessResult * @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) { + FolderAccessResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; - for (let i = 0; i < message.records.length; ++i) { - let error = $root.Records.RecordConvertToV3.verify(message.records[i]); - if (error) - return "records." + error; + 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.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.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 RecordsConvertToV3Request message from a plain object. Also converts values to their respective internal types. + * Creates a FolderAccessResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordsConvertToV3Request + * @memberof Folder.FolderAccessResult * @static * @param {Object.} object Plain object - * @returns {Records.RecordsConvertToV3Request} RecordsConvertToV3Request + * @returns {Folder.FolderAccessResult} FolderAccessResult */ - RecordsConvertToV3Request.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsConvertToV3Request) + FolderAccessResult.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.FolderAccessResult) return object; - let message = new $root.Records.RecordsConvertToV3Request(); - if (object.records) { - if (!Array.isArray(object.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") - throw TypeError(".Records.RecordsConvertToV3Request.records: object expected"); - message.records[i] = $root.Records.RecordConvertToV3.fromObject(object.records[i]); + let message = new $root.Folder.FolderAccessResult(); + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.accessUid != null) + if (typeof object.accessUid === "string") + $util.base64.decode(object.accessUid, message.accessUid = $util.newBuffer($util.base64.length(object.accessUid)), 0); + else if (object.accessUid.length >= 0) + message.accessUid = object.accessUid; + switch (object.accessType) { + default: + if (typeof object.accessType === "number") { + message.accessType = object.accessType; + break; } + break; + case "AT_UNKNOWN": + case 0: + message.accessType = 0; + break; + case "AT_OWNER": + case 1: + message.accessType = 1; + break; + case "AT_USER": + case 2: + message.accessType = 2; + break; + case "AT_TEAM": + case 3: + message.accessType = 3; + break; + case "AT_ENTERPRISE": + case 4: + message.accessType = 4; + break; + case "AT_FOLDER": + case 5: + message.accessType = 5; + break; + case "AT_APPLICATION": + case 6: + message.accessType = 6; + break; } - if (object.clientTime != null) - if ($util.Long) - (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = false; - else if (typeof object.clientTime === "string") - message.clientTime = parseInt(object.clientTime, 10); - else if (typeof object.clientTime === "number") - message.clientTime = object.clientTime; - else if (typeof object.clientTime === "object") - message.clientTime = new $util.LongBits(object.clientTime.low >>> 0, object.clientTime.high >>> 0).toNumber(); + switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; + case "SUCCESS": + case 0: + message.status = 0; + break; + case "BAD_REQUEST": + case 1: + message.status = 1; + break; + case "ACCESS_DENIED": + case 2: + message.status = 2; + break; + case "NOT_FOUND": + case 3: + message.status = 3; + break; + } + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a RecordsConvertToV3Request message. Also converts values to other types if specified. + * Creates a plain object from a FolderAccessResult message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordsConvertToV3Request + * @memberof Folder.FolderAccessResult * @static - * @param {Records.RecordsConvertToV3Request} message RecordsConvertToV3Request + * @param {Folder.FolderAccessResult} message FolderAccessResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsConvertToV3Request.toObject = function toObject(message, options) { + FolderAccessResult.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.records = []; - if (options.defaults) - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.clientTime = options.longs === String ? "0" : 0; - if (message.records && message.records.length) { - object.records = []; - for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.Records.RecordConvertToV3.toObject(message.records[j], options); + if (options.defaults) { + if (options.bytes === String) + object.folderUid = ""; + else { + object.folderUid = []; + if (options.bytes !== Array) + object.folderUid = $util.newBuffer(object.folderUid); + } + if (options.bytes === String) + object.accessUid = ""; + else { + object.accessUid = []; + if (options.bytes !== Array) + object.accessUid = $util.newBuffer(object.accessUid); + } + object.accessType = options.enums === String ? "AT_UNKNOWN" : 0; + object.status = options.enums === String ? "SUCCESS" : 0; + object.message = ""; } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (typeof message.clientTime === "number") - object.clientTime = options.longs === String ? String(message.clientTime) : message.clientTime; - else - object.clientTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientTime) : options.longs === Number ? new $util.LongBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0).toNumber() : message.clientTime; + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.accessUid != null && message.hasOwnProperty("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")) + 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")) + 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")) + object.message = message.message; return object; }; /** - * Converts this RecordsConvertToV3Request to JSON. + * Converts this FolderAccessResult to JSON. * @function toJSON - * @memberof Records.RecordsConvertToV3Request + * @memberof Folder.FolderAccessResult * @instance * @returns {Object.} JSON object */ - RecordsConvertToV3Request.prototype.toJSON = function toJSON() { + FolderAccessResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordsConvertToV3Request + * Gets the default type url for FolderAccessResult * @function getTypeUrl - * @memberof Records.RecordsConvertToV3Request + * @memberof Folder.FolderAccessResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordsConvertToV3Request.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FolderAccessResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordsConvertToV3Request"; + return typeUrlPrefix + "/Folder.FolderAccessResult"; }; - return RecordsConvertToV3Request; + return FolderAccessResult; })(); - Records.RecordsRemoveRequest = (function() { + Folder.FolderAccessResponse = (function() { /** - * Properties of a RecordsRemoveRequest. - * @memberof Records - * @interface IRecordsRemoveRequest - * @property {Array.|null} [records] RecordsRemoveRequest records + * Properties of a FolderAccessResponse. + * @memberof Folder + * @interface IFolderAccessResponse + * @property {Array.|null} [folderAccessResults] FolderAccessResponse folderAccessResults */ /** - * Constructs a new RecordsRemoveRequest. - * @memberof Records - * @classdesc Represents a RecordsRemoveRequest. - * @implements IRecordsRemoveRequest + * Constructs a new FolderAccessResponse. + * @memberof Folder + * @classdesc Response for rest/vault/folders/v3/access_update end-point. + * @implements IFolderAccessResponse * @constructor - * @param {Records.IRecordsRemoveRequest=} [properties] Properties to set + * @param {Folder.IFolderAccessResponse=} [properties] Properties to set */ - function RecordsRemoveRequest(properties) { - this.records = []; + function FolderAccessResponse(properties) { + this.folderAccessResults = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -178979,78 +180191,78 @@ export const Records = $root.Records = (() => { } /** - * RecordsRemoveRequest records. - * @member {Array.} records - * @memberof Records.RecordsRemoveRequest + * FolderAccessResponse folderAccessResults. + * @member {Array.} folderAccessResults + * @memberof Folder.FolderAccessResponse * @instance */ - RecordsRemoveRequest.prototype.records = $util.emptyArray; + FolderAccessResponse.prototype.folderAccessResults = $util.emptyArray; /** - * Creates a new RecordsRemoveRequest instance using the specified properties. + * Creates a new FolderAccessResponse instance using the specified properties. * @function create - * @memberof Records.RecordsRemoveRequest + * @memberof Folder.FolderAccessResponse * @static - * @param {Records.IRecordsRemoveRequest=} [properties] Properties to set - * @returns {Records.RecordsRemoveRequest} RecordsRemoveRequest instance + * @param {Folder.IFolderAccessResponse=} [properties] Properties to set + * @returns {Folder.FolderAccessResponse} FolderAccessResponse instance */ - RecordsRemoveRequest.create = function create(properties) { - return new RecordsRemoveRequest(properties); + FolderAccessResponse.create = function create(properties) { + return new FolderAccessResponse(properties); }; /** - * Encodes the specified RecordsRemoveRequest message. Does not implicitly {@link Records.RecordsRemoveRequest.verify|verify} messages. + * Encodes the specified FolderAccessResponse message. Does not implicitly {@link Folder.FolderAccessResponse.verify|verify} messages. * @function encode - * @memberof Records.RecordsRemoveRequest + * @memberof Folder.FolderAccessResponse * @static - * @param {Records.IRecordsRemoveRequest} message RecordsRemoveRequest message or plain object to encode + * @param {Folder.IFolderAccessResponse} message FolderAccessResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsRemoveRequest.encode = function encode(message, writer) { + FolderAccessResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.records != null && message.records.length) - for (let i = 0; i < message.records.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.records[i]); + if (message.folderAccessResults != null && message.folderAccessResults.length) + for (let i = 0; i < message.folderAccessResults.length; ++i) + $root.Folder.FolderAccessResult.encode(message.folderAccessResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RecordsRemoveRequest message, length delimited. Does not implicitly {@link Records.RecordsRemoveRequest.verify|verify} messages. + * Encodes the specified FolderAccessResponse message, length delimited. Does not implicitly {@link Folder.FolderAccessResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordsRemoveRequest + * @memberof Folder.FolderAccessResponse * @static - * @param {Records.IRecordsRemoveRequest} message RecordsRemoveRequest message or plain object to encode + * @param {Folder.IFolderAccessResponse} message FolderAccessResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) { + FolderAccessResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordsRemoveRequest message from the specified reader or buffer. + * Decodes a FolderAccessResponse message from the specified reader or buffer. * @function decode - * @memberof Records.RecordsRemoveRequest + * @memberof Folder.FolderAccessResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordsRemoveRequest} RecordsRemoveRequest + * @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 */ - RecordsRemoveRequest.decode = function decode(reader, length) { + FolderAccessResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsRemoveRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderAccessResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.records && message.records.length)) - message.records = []; - message.records.push(reader.bytes()); + if (!(message.folderAccessResults && message.folderAccessResults.length)) + message.folderAccessResults = []; + message.folderAccessResults.push($root.Folder.FolderAccessResult.decode(reader, reader.uint32())); break; } default: @@ -179062,138 +180274,180 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordsRemoveRequest message from the specified reader or buffer, length delimited. + * Decodes a FolderAccessResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordsRemoveRequest + * @memberof Folder.FolderAccessResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsRemoveRequest} RecordsRemoveRequest + * @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 */ - RecordsRemoveRequest.decodeDelimited = function decodeDelimited(reader) { + FolderAccessResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordsRemoveRequest message. + * Verifies a FolderAccessResponse message. * @function verify - * @memberof Records.RecordsRemoveRequest + * @memberof Folder.FolderAccessResponse * @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) { + FolderAccessResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; - for (let i = 0; i < message.records.length; ++i) - if (!(message.records[i] && typeof message.records[i].length === "number" || $util.isString(message.records[i]))) - return "records: buffer[] expected"; + 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]); + if (error) + return "folderAccessResults." + error; + } } return null; }; /** - * Creates a RecordsRemoveRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FolderAccessResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordsRemoveRequest + * @memberof Folder.FolderAccessResponse * @static * @param {Object.} object Plain object - * @returns {Records.RecordsRemoveRequest} RecordsRemoveRequest + * @returns {Folder.FolderAccessResponse} FolderAccessResponse */ - RecordsRemoveRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsRemoveRequest) + FolderAccessResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.FolderAccessResponse) return object; - let message = new $root.Records.RecordsRemoveRequest(); - if (object.records) { - if (!Array.isArray(object.records)) - throw TypeError(".Records.RecordsRemoveRequest.records: array expected"); - message.records = []; - for (let i = 0; i < object.records.length; ++i) - if (typeof object.records[i] === "string") - $util.base64.decode(object.records[i], message.records[i] = $util.newBuffer($util.base64.length(object.records[i])), 0); - else if (object.records[i].length >= 0) - message.records[i] = object.records[i]; + let message = new $root.Folder.FolderAccessResponse(); + if (object.folderAccessResults) { + if (!Array.isArray(object.folderAccessResults)) + throw TypeError(".Folder.FolderAccessResponse.folderAccessResults: array expected"); + message.folderAccessResults = []; + for (let i = 0; i < object.folderAccessResults.length; ++i) { + if (typeof object.folderAccessResults[i] !== "object") + throw TypeError(".Folder.FolderAccessResponse.folderAccessResults: object expected"); + message.folderAccessResults[i] = $root.Folder.FolderAccessResult.fromObject(object.folderAccessResults[i]); + } } return message; }; /** - * Creates a plain object from a RecordsRemoveRequest message. Also converts values to other types if specified. + * Creates a plain object from a FolderAccessResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordsRemoveRequest + * @memberof Folder.FolderAccessResponse * @static - * @param {Records.RecordsRemoveRequest} message RecordsRemoveRequest + * @param {Folder.FolderAccessResponse} message FolderAccessResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsRemoveRequest.toObject = function toObject(message, options) { + FolderAccessResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.records = []; - if (message.records && message.records.length) { - object.records = []; - for (let j = 0; j < message.records.length; ++j) - object.records[j] = options.bytes === String ? $util.base64.encode(message.records[j], 0, message.records[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.records[j]) : message.records[j]; + object.folderAccessResults = []; + if (message.folderAccessResults && message.folderAccessResults.length) { + object.folderAccessResults = []; + for (let j = 0; j < message.folderAccessResults.length; ++j) + object.folderAccessResults[j] = $root.Folder.FolderAccessResult.toObject(message.folderAccessResults[j], options); } return object; }; /** - * Converts this RecordsRemoveRequest to JSON. + * Converts this FolderAccessResponse to JSON. * @function toJSON - * @memberof Records.RecordsRemoveRequest + * @memberof Folder.FolderAccessResponse * @instance * @returns {Object.} JSON object */ - RecordsRemoveRequest.prototype.toJSON = function toJSON() { + FolderAccessResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordsRemoveRequest + * Gets the default type url for FolderAccessResponse * @function getTypeUrl - * @memberof Records.RecordsRemoveRequest + * @memberof Folder.FolderAccessResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordsRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FolderAccessResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordsRemoveRequest"; + return typeUrlPrefix + "/Folder.FolderAccessResponse"; }; - return RecordsRemoveRequest; + return FolderAccessResponse; })(); - Records.RecordRevert = (function() { + /** + * AccessType enum. + * @name Folder.AccessType + * @enum {number} + * @property {number} AT_UNKNOWN=0 AT_UNKNOWN value + * @property {number} AT_OWNER=1 AT_OWNER value + * @property {number} AT_USER=2 AT_USER value + * @property {number} AT_TEAM=3 AT_TEAM value + * @property {number} AT_ENTERPRISE=4 AT_ENTERPRISE value + * @property {number} AT_FOLDER=5 AT_FOLDER value + * @property {number} AT_APPLICATION=6 AT_APPLICATION value + */ + Folder.AccessType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AT_UNKNOWN"] = 0; + values[valuesById[1] = "AT_OWNER"] = 1; + values[valuesById[2] = "AT_USER"] = 2; + values[valuesById[3] = "AT_TEAM"] = 3; + values[valuesById[4] = "AT_ENTERPRISE"] = 4; + values[valuesById[5] = "AT_FOLDER"] = 5; + values[valuesById[6] = "AT_APPLICATION"] = 6; + return values; + })(); + + /** + * ObjectType enum. + * @name Folder.ObjectType + * @enum {number} + * @property {number} OT_UNKNOWN=0 OT_UNKNOWN value + * @property {number} OT_RECORD=1 OT_RECORD value + * @property {number} OT_FOLDER=2 OT_FOLDER value + */ + Folder.ObjectType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OT_UNKNOWN"] = 0; + values[valuesById[1] = "OT_RECORD"] = 1; + values[valuesById[2] = "OT_FOLDER"] = 2; + return values; + })(); + + Folder.UserInfo = (function() { /** - * Properties of a RecordRevert. - * @memberof Records - * @interface IRecordRevert - * @property {Uint8Array|null} [recordUid] RecordRevert recordUid - * @property {number|Long|null} [revertToRevision] RecordRevert revertToRevision + * Properties of a UserInfo. + * @memberof Folder + * @interface IUserInfo + * @property {Uint8Array|null} [accountUid] UserInfo accountUid + * @property {string|null} [username] UserInfo username */ /** - * Constructs a new RecordRevert. - * @memberof Records - * @classdesc Represents a RecordRevert. - * @implements IRecordRevert + * Constructs a new UserInfo. + * @memberof Folder + * @classdesc Represents a UserInfo. + * @implements IUserInfo * @constructor - * @param {Records.IRecordRevert=} [properties] Properties to set + * @param {Folder.IUserInfo=} [properties] Properties to set */ - function RecordRevert(properties) { + function UserInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -179201,89 +180455,89 @@ export const Records = $root.Records = (() => { } /** - * RecordRevert recordUid. - * @member {Uint8Array} recordUid - * @memberof Records.RecordRevert + * UserInfo accountUid. + * @member {Uint8Array} accountUid + * @memberof Folder.UserInfo * @instance */ - RecordRevert.prototype.recordUid = $util.newBuffer([]); + UserInfo.prototype.accountUid = $util.newBuffer([]); /** - * RecordRevert revertToRevision. - * @member {number|Long} revertToRevision - * @memberof Records.RecordRevert + * UserInfo username. + * @member {string} username + * @memberof Folder.UserInfo * @instance */ - RecordRevert.prototype.revertToRevision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserInfo.prototype.username = ""; /** - * Creates a new RecordRevert instance using the specified properties. + * Creates a new UserInfo instance using the specified properties. * @function create - * @memberof Records.RecordRevert + * @memberof Folder.UserInfo * @static - * @param {Records.IRecordRevert=} [properties] Properties to set - * @returns {Records.RecordRevert} RecordRevert instance + * @param {Folder.IUserInfo=} [properties] Properties to set + * @returns {Folder.UserInfo} UserInfo instance */ - RecordRevert.create = function create(properties) { - return new RecordRevert(properties); + UserInfo.create = function create(properties) { + return new UserInfo(properties); }; /** - * Encodes the specified RecordRevert message. Does not implicitly {@link Records.RecordRevert.verify|verify} messages. + * Encodes the specified UserInfo message. Does not implicitly {@link Folder.UserInfo.verify|verify} messages. * @function encode - * @memberof Records.RecordRevert + * @memberof Folder.UserInfo * @static - * @param {Records.IRecordRevert} message RecordRevert message or plain object to encode + * @param {Folder.IUserInfo} message UserInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordRevert.encode = function encode(message, writer) { + UserInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.revertToRevision != null && Object.hasOwnProperty.call(message, "revertToRevision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revertToRevision); + if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.accountUid); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); return writer; }; /** - * Encodes the specified RecordRevert message, length delimited. Does not implicitly {@link Records.RecordRevert.verify|verify} messages. + * Encodes the specified UserInfo message, length delimited. Does not implicitly {@link Folder.UserInfo.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordRevert + * @memberof Folder.UserInfo * @static - * @param {Records.IRecordRevert} message RecordRevert message or plain object to encode + * @param {Folder.IUserInfo} message UserInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordRevert.encodeDelimited = function encodeDelimited(message, writer) { + UserInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordRevert message from the specified reader or buffer. + * Decodes a UserInfo message from the specified reader or buffer. * @function decode - * @memberof Records.RecordRevert + * @memberof Folder.UserInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordRevert} RecordRevert + * @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 */ - RecordRevert.decode = function decode(reader, length) { + UserInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordRevert(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.UserInfo(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + message.accountUid = reader.bytes(); break; } case 2: { - message.revertToRevision = reader.int64(); + message.username = reader.string(); break; } default: @@ -179295,155 +180549,142 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordRevert message from the specified reader or buffer, length delimited. + * Decodes a UserInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordRevert + * @memberof Folder.UserInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordRevert} RecordRevert + * @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 */ - RecordRevert.decodeDelimited = function decodeDelimited(reader) { + UserInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordRevert message. + * Verifies a UserInfo message. * @function verify - * @memberof Records.RecordRevert + * @memberof Folder.UserInfo * @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) { + UserInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.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"; + 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 RecordRevert message from a plain object. Also converts values to their respective internal types. + * Creates a UserInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordRevert + * @memberof Folder.UserInfo * @static * @param {Object.} object Plain object - * @returns {Records.RecordRevert} RecordRevert + * @returns {Folder.UserInfo} UserInfo */ - RecordRevert.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordRevert) + UserInfo.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.UserInfo) return object; - let message = new $root.Records.RecordRevert(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.revertToRevision != null) - if ($util.Long) - (message.revertToRevision = $util.Long.fromValue(object.revertToRevision)).unsigned = false; - else if (typeof object.revertToRevision === "string") - message.revertToRevision = parseInt(object.revertToRevision, 10); - else if (typeof object.revertToRevision === "number") - message.revertToRevision = object.revertToRevision; - else if (typeof object.revertToRevision === "object") - message.revertToRevision = new $util.LongBits(object.revertToRevision.low >>> 0, object.revertToRevision.high >>> 0).toNumber(); + let message = new $root.Folder.UserInfo(); + if (object.accountUid != null) + if (typeof object.accountUid === "string") + $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); + else if (object.accountUid.length >= 0) + message.accountUid = object.accountUid; + if (object.username != null) + message.username = String(object.username); return message; }; /** - * Creates a plain object from a RecordRevert message. Also converts values to other types if specified. + * Creates a plain object from a UserInfo message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordRevert + * @memberof Folder.UserInfo * @static - * @param {Records.RecordRevert} message RecordRevert + * @param {Folder.UserInfo} message UserInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordRevert.toObject = function toObject(message, options) { + UserInfo.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { if (options.bytes === String) - object.recordUid = ""; + object.accountUid = ""; else { - object.recordUid = []; + object.accountUid = []; if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + object.accountUid = $util.newBuffer(object.accountUid); } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revertToRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revertToRevision = options.longs === String ? "0" : 0; + object.username = ""; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.revertToRevision != null && message.hasOwnProperty("revertToRevision")) - if (typeof message.revertToRevision === "number") - object.revertToRevision = options.longs === String ? String(message.revertToRevision) : message.revertToRevision; - else - object.revertToRevision = options.longs === String ? $util.Long.prototype.toString.call(message.revertToRevision) : options.longs === Number ? new $util.LongBits(message.revertToRevision.low >>> 0, message.revertToRevision.high >>> 0).toNumber() : message.revertToRevision; + if (message.accountUid != null && message.hasOwnProperty("accountUid")) + object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; return object; }; /** - * Converts this RecordRevert to JSON. + * Converts this UserInfo to JSON. * @function toJSON - * @memberof Records.RecordRevert + * @memberof Folder.UserInfo * @instance * @returns {Object.} JSON object */ - RecordRevert.prototype.toJSON = function toJSON() { + UserInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordRevert + * Gets the default type url for UserInfo * @function getTypeUrl - * @memberof Records.RecordRevert + * @memberof Folder.UserInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordRevert.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UserInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordRevert"; + return typeUrlPrefix + "/Folder.UserInfo"; }; - return RecordRevert; + return UserInfo; })(); - Records.RecordsRevertRequest = (function() { + Folder.RecordData = (function() { /** - * Properties of a RecordsRevertRequest. - * @memberof Records - * @interface IRecordsRevertRequest - * @property {Array.|null} [records] RecordsRevertRequest records + * Properties of a RecordData. + * @memberof Folder + * @interface IRecordData + * @property {Folder.IUserInfo|null} [user] RecordData user + * @property {Uint8Array|null} [data] RecordData data + * @property {Uint8Array|null} [recordUid] RecordData recordUid */ /** - * Constructs a new RecordsRevertRequest. - * @memberof Records - * @classdesc Represents a RecordsRevertRequest. - * @implements IRecordsRevertRequest + * Constructs a new RecordData. + * @memberof Folder + * @classdesc Represents a RecordData. + * @implements IRecordData * @constructor - * @param {Records.IRecordsRevertRequest=} [properties] Properties to set + * @param {Folder.IRecordData=} [properties] Properties to set */ - function RecordsRevertRequest(properties) { - this.records = []; + function RecordData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -179451,78 +180692,103 @@ export const Records = $root.Records = (() => { } /** - * RecordsRevertRequest records. - * @member {Array.} records - * @memberof Records.RecordsRevertRequest + * RecordData user. + * @member {Folder.IUserInfo|null|undefined} user + * @memberof Folder.RecordData * @instance */ - RecordsRevertRequest.prototype.records = $util.emptyArray; + RecordData.prototype.user = null; /** - * Creates a new RecordsRevertRequest instance using the specified properties. + * RecordData data. + * @member {Uint8Array} data + * @memberof Folder.RecordData + * @instance + */ + RecordData.prototype.data = $util.newBuffer([]); + + /** + * RecordData recordUid. + * @member {Uint8Array} recordUid + * @memberof Folder.RecordData + * @instance + */ + RecordData.prototype.recordUid = $util.newBuffer([]); + + /** + * Creates a new RecordData instance using the specified properties. * @function create - * @memberof Records.RecordsRevertRequest + * @memberof Folder.RecordData * @static - * @param {Records.IRecordsRevertRequest=} [properties] Properties to set - * @returns {Records.RecordsRevertRequest} RecordsRevertRequest instance + * @param {Folder.IRecordData=} [properties] Properties to set + * @returns {Folder.RecordData} RecordData instance */ - RecordsRevertRequest.create = function create(properties) { - return new RecordsRevertRequest(properties); + RecordData.create = function create(properties) { + return new RecordData(properties); }; /** - * Encodes the specified RecordsRevertRequest message. Does not implicitly {@link Records.RecordsRevertRequest.verify|verify} messages. + * Encodes the specified RecordData message. Does not implicitly {@link Folder.RecordData.verify|verify} messages. * @function encode - * @memberof Records.RecordsRevertRequest + * @memberof Folder.RecordData * @static - * @param {Records.IRecordsRevertRequest} message RecordsRevertRequest message or plain object to encode + * @param {Folder.IRecordData} message RecordData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsRevertRequest.encode = function encode(message, writer) { + RecordData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.records != null && message.records.length) - for (let i = 0; i < message.records.length; ++i) - $root.Records.RecordRevert.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.user != null && Object.hasOwnProperty.call(message, "user")) + $root.Folder.UserInfo.encode(message.user, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordUid); return writer; }; /** - * Encodes the specified RecordsRevertRequest message, length delimited. Does not implicitly {@link Records.RecordsRevertRequest.verify|verify} messages. + * Encodes the specified RecordData message, length delimited. Does not implicitly {@link Folder.RecordData.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordsRevertRequest + * @memberof Folder.RecordData * @static - * @param {Records.IRecordsRevertRequest} message RecordsRevertRequest message or plain object to encode + * @param {Folder.IRecordData} message RecordData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsRevertRequest.encodeDelimited = function encodeDelimited(message, writer) { + RecordData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordsRevertRequest message from the specified reader or buffer. + * Decodes a RecordData message from the specified reader or buffer. * @function decode - * @memberof Records.RecordsRevertRequest + * @memberof Folder.RecordData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordsRevertRequest} RecordsRevertRequest + * @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 */ - RecordsRevertRequest.decode = function decode(reader, length) { + RecordData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsRevertRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.RecordData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.records && message.records.length)) - message.records = []; - message.records.push($root.Records.RecordRevert.decode(reader, reader.uint32())); + message.user = $root.Folder.UserInfo.decode(reader, reader.uint32()); + break; + } + case 2: { + message.data = reader.bytes(); + break; + } + case 3: { + message.recordUid = reader.bytes(); break; } default: @@ -179534,177 +180800,166 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordsRevertRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordsRevertRequest + * @memberof Folder.RecordData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsRevertRequest} RecordsRevertRequest + * @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 */ - RecordsRevertRequest.decodeDelimited = function decodeDelimited(reader) { + RecordData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordsRevertRequest message. + * Verifies a RecordData message. * @function verify - * @memberof Records.RecordsRevertRequest + * @memberof Folder.RecordData * @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) { + RecordData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; - for (let i = 0; i < message.records.length; ++i) { - let error = $root.Records.RecordRevert.verify(message.records[i]); - if (error) - return "records." + error; - } + if (message.user != null && message.hasOwnProperty("user")) { + let error = $root.Folder.UserInfo.verify(message.user); + 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 RecordsRevertRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordsRevertRequest + * @memberof Folder.RecordData * @static * @param {Object.} object Plain object - * @returns {Records.RecordsRevertRequest} RecordsRevertRequest + * @returns {Folder.RecordData} RecordData */ - RecordsRevertRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsRevertRequest) + RecordData.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.RecordData) return object; - let message = new $root.Records.RecordsRevertRequest(); - if (object.records) { - if (!Array.isArray(object.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") - throw TypeError(".Records.RecordsRevertRequest.records: object expected"); - message.records[i] = $root.Records.RecordRevert.fromObject(object.records[i]); - } + let message = new $root.Folder.RecordData(); + if (object.user != null) { + if (typeof object.user !== "object") + throw TypeError(".Folder.RecordData.user: object expected"); + message.user = $root.Folder.UserInfo.fromObject(object.user); } + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; return message; }; /** - * Creates a plain object from a RecordsRevertRequest message. Also converts values to other types if specified. + * Creates a plain object from a RecordData message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordsRevertRequest + * @memberof Folder.RecordData * @static - * @param {Records.RecordsRevertRequest} message RecordsRevertRequest + * @param {Folder.RecordData} message RecordData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsRevertRequest.toObject = function toObject(message, options) { + RecordData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.records = []; - if (message.records && message.records.length) { - object.records = []; - for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.Records.RecordRevert.toObject(message.records[j], options); + if (options.defaults) { + object.user = null; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } } + if (message.user != null && message.hasOwnProperty("user")) + object.user = $root.Folder.UserInfo.toObject(message.user, options); + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + 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; }; /** - * Converts this RecordsRevertRequest to JSON. + * Converts this RecordData to JSON. * @function toJSON - * @memberof Records.RecordsRevertRequest + * @memberof Folder.RecordData * @instance * @returns {Object.} JSON object */ - RecordsRevertRequest.prototype.toJSON = function toJSON() { + RecordData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordsRevertRequest + * Gets the default type url for RecordData * @function getTypeUrl - * @memberof Records.RecordsRevertRequest + * @memberof Folder.RecordData * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordsRevertRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordsRevertRequest"; + return typeUrlPrefix + "/Folder.RecordData"; }; - return RecordsRevertRequest; - })(); - - /** - * RecordModifyResult enum. - * @name Records.RecordModifyResult - * @enum {number} - * @property {number} RS_SUCCESS=0 RS_SUCCESS value - * @property {number} RS_OUT_OF_SYNC=1 RS_OUT_OF_SYNC value - * @property {number} RS_ACCESS_DENIED=2 RS_ACCESS_DENIED value - * @property {number} RS_SHARE_DENIED=3 RS_SHARE_DENIED value - * @property {number} RS_RECORD_EXISTS=4 RS_RECORD_EXISTS value - * @property {number} RS_OLD_RECORD_VERSION_TYPE=5 RS_OLD_RECORD_VERSION_TYPE value - * @property {number} RS_NEW_RECORD_VERSION_TYPE=6 RS_NEW_RECORD_VERSION_TYPE value - * @property {number} RS_FILES_NOT_MATCH=7 RS_FILES_NOT_MATCH value - * @property {number} RS_RECORD_NOT_SHAREABLE=8 RS_RECORD_NOT_SHAREABLE value - * @property {number} RS_ATTACHMENT_NOT_SHAREABLE=9 RS_ATTACHMENT_NOT_SHAREABLE value - * @property {number} RS_FILE_LIMIT_REACHED=10 RS_FILE_LIMIT_REACHED value - * @property {number} RS_SIZE_EXCEEDED_LIMIT=11 RS_SIZE_EXCEEDED_LIMIT value - * @property {number} RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS=12 RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS value - */ - Records.RecordModifyResult = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RS_SUCCESS"] = 0; - values[valuesById[1] = "RS_OUT_OF_SYNC"] = 1; - values[valuesById[2] = "RS_ACCESS_DENIED"] = 2; - values[valuesById[3] = "RS_SHARE_DENIED"] = 3; - values[valuesById[4] = "RS_RECORD_EXISTS"] = 4; - values[valuesById[5] = "RS_OLD_RECORD_VERSION_TYPE"] = 5; - values[valuesById[6] = "RS_NEW_RECORD_VERSION_TYPE"] = 6; - values[valuesById[7] = "RS_FILES_NOT_MATCH"] = 7; - values[valuesById[8] = "RS_RECORD_NOT_SHAREABLE"] = 8; - values[valuesById[9] = "RS_ATTACHMENT_NOT_SHAREABLE"] = 9; - values[valuesById[10] = "RS_FILE_LIMIT_REACHED"] = 10; - values[valuesById[11] = "RS_SIZE_EXCEEDED_LIMIT"] = 11; - values[valuesById[12] = "RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS"] = 12; - return values; + return RecordData; })(); - Records.RecordLinkError = (function() { + Folder.RecordKey = (function() { /** - * Properties of a RecordLinkError. - * @memberof Records - * @interface IRecordLinkError - * @property {Uint8Array|null} [recordUid] RecordLinkError recordUid - * @property {Records.RecordModifyResult|null} [status] RecordLinkError status - * @property {string|null} [message] RecordLinkError message + * Properties of a RecordKey. + * @memberof Folder + * @interface IRecordKey + * @property {Uint8Array|null} [userUid] RecordKey userUid + * @property {Uint8Array|null} [recordUid] RecordKey recordUid + * @property {Uint8Array|null} [recordKey] RecordKey recordKey + * @property {Folder.EncryptedKeyType|null} [encryptedKeyType] RecordKey encryptedKeyType */ /** - * Constructs a new RecordLinkError. - * @memberof Records - * @classdesc Represents a RecordLinkError. - * @implements IRecordLinkError + * Constructs a new RecordKey. + * @memberof Folder + * @classdesc Represents a key for a record, which includes the user UID, record UID, and the encrypted key type. + * This is used to identify and manage access to the record's encrypted data. + * @implements IRecordKey * @constructor - * @param {Records.IRecordLinkError=} [properties] Properties to set + * @param {Folder.IRecordKey=} [properties] Properties to set */ - function RecordLinkError(properties) { + function RecordKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -179712,103 +180967,117 @@ export const Records = $root.Records = (() => { } /** - * RecordLinkError recordUid. + * RecordKey userUid. + * @member {Uint8Array} userUid + * @memberof Folder.RecordKey + * @instance + */ + RecordKey.prototype.userUid = $util.newBuffer([]); + + /** + * RecordKey recordUid. * @member {Uint8Array} recordUid - * @memberof Records.RecordLinkError + * @memberof Folder.RecordKey * @instance */ - RecordLinkError.prototype.recordUid = $util.newBuffer([]); + RecordKey.prototype.recordUid = $util.newBuffer([]); /** - * RecordLinkError status. - * @member {Records.RecordModifyResult} status - * @memberof Records.RecordLinkError + * RecordKey recordKey. + * @member {Uint8Array} recordKey + * @memberof Folder.RecordKey * @instance */ - RecordLinkError.prototype.status = 0; + RecordKey.prototype.recordKey = $util.newBuffer([]); /** - * RecordLinkError message. - * @member {string} message - * @memberof Records.RecordLinkError + * RecordKey encryptedKeyType. + * @member {Folder.EncryptedKeyType} encryptedKeyType + * @memberof Folder.RecordKey * @instance */ - RecordLinkError.prototype.message = ""; + RecordKey.prototype.encryptedKeyType = 0; /** - * Creates a new RecordLinkError instance using the specified properties. + * Creates a new RecordKey instance using the specified properties. * @function create - * @memberof Records.RecordLinkError + * @memberof Folder.RecordKey * @static - * @param {Records.IRecordLinkError=} [properties] Properties to set - * @returns {Records.RecordLinkError} RecordLinkError instance + * @param {Folder.IRecordKey=} [properties] Properties to set + * @returns {Folder.RecordKey} RecordKey instance */ - RecordLinkError.create = function create(properties) { - return new RecordLinkError(properties); + RecordKey.create = function create(properties) { + return new RecordKey(properties); }; /** - * Encodes the specified RecordLinkError message. Does not implicitly {@link Records.RecordLinkError.verify|verify} messages. + * Encodes the specified RecordKey message. Does not implicitly {@link Folder.RecordKey.verify|verify} messages. * @function encode - * @memberof Records.RecordLinkError + * @memberof Folder.RecordKey * @static - * @param {Records.IRecordLinkError} message RecordLinkError message or plain object to encode + * @param {Folder.IRecordKey} message RecordKey message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordLinkError.encode = function encode(message, writer) { + RecordKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.userUid != null && Object.hasOwnProperty.call(message, "userUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.userUid); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordKey); + if (message.encryptedKeyType != null && Object.hasOwnProperty.call(message, "encryptedKeyType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.encryptedKeyType); return writer; }; /** - * Encodes the specified RecordLinkError message, length delimited. Does not implicitly {@link Records.RecordLinkError.verify|verify} messages. + * Encodes the specified RecordKey message, length delimited. Does not implicitly {@link Folder.RecordKey.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordLinkError + * @memberof Folder.RecordKey * @static - * @param {Records.IRecordLinkError} message RecordLinkError message or plain object to encode + * @param {Folder.IRecordKey} message RecordKey message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordLinkError.encodeDelimited = function encodeDelimited(message, writer) { + RecordKey.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordLinkError message from the specified reader or buffer. + * Decodes a RecordKey message from the specified reader or buffer. * @function decode - * @memberof Records.RecordLinkError + * @memberof Folder.RecordKey * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordLinkError} RecordLinkError + * @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 */ - RecordLinkError.decode = function decode(reader, length) { + RecordKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordLinkError(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.RecordKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + message.userUid = reader.bytes(); break; } case 2: { - message.status = reader.int32(); + message.recordUid = reader.bytes(); break; } case 3: { - message.message = reader.string(); + message.recordKey = reader.bytes(); + break; + } + case 4: { + message.encryptedKeyType = reader.int32(); break; } default: @@ -179820,156 +181089,134 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordLinkError message from the specified reader or buffer, length delimited. + * Decodes a RecordKey message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordLinkError + * @memberof Folder.RecordKey * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordLinkError} RecordLinkError + * @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 */ - RecordLinkError.decodeDelimited = function decodeDelimited(reader) { + RecordKey.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordLinkError message. + * Verifies a RecordKey message. * @function verify - * @memberof Records.RecordLinkError + * @memberof Folder.RecordKey * @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) { + RecordKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + 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.status != null && message.hasOwnProperty("status")) - switch (message.status) { + 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 "status: enum value expected"; + return "encryptedKeyType: 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. + * Creates a RecordKey message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordLinkError + * @memberof Folder.RecordKey * @static * @param {Object.} object Plain object - * @returns {Records.RecordLinkError} RecordLinkError + * @returns {Folder.RecordKey} RecordKey */ - RecordLinkError.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordLinkError) + RecordKey.fromObject = function fromObject(object) { + if (object instanceof $root.Folder.RecordKey) return object; - let message = new $root.Records.RecordLinkError(); + let message = new $root.Folder.RecordKey(); + if (object.userUid != null) + if (typeof object.userUid === "string") + $util.base64.decode(object.userUid, message.userUid = $util.newBuffer($util.base64.length(object.userUid)), 0); + else if (object.userUid.length >= 0) + message.userUid = object.userUid; if (object.recordUid != null) if (typeof object.recordUid === "string") $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); else if (object.recordUid.length >= 0) message.recordUid = object.recordUid; - switch (object.status) { + if (object.recordKey != null) + if (typeof object.recordKey === "string") + $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); + else if (object.recordKey.length >= 0) + message.recordKey = object.recordKey; + switch (object.encryptedKeyType) { default: - if (typeof object.status === "number") { - message.status = object.status; + if (typeof object.encryptedKeyType === "number") { + message.encryptedKeyType = object.encryptedKeyType; break; } break; - case "RS_SUCCESS": + case "no_key": case 0: - message.status = 0; + message.encryptedKeyType = 0; break; - case "RS_OUT_OF_SYNC": + case "encrypted_by_data_key": case 1: - message.status = 1; + message.encryptedKeyType = 1; break; - case "RS_ACCESS_DENIED": + case "encrypted_by_public_key": case 2: - message.status = 2; + message.encryptedKeyType = 2; break; - case "RS_SHARE_DENIED": + case "encrypted_by_data_key_gcm": case 3: - message.status = 3; + message.encryptedKeyType = 3; break; - case "RS_RECORD_EXISTS": + case "encrypted_by_public_key_ecc": case 4: - message.status = 4; - break; - case "RS_OLD_RECORD_VERSION_TYPE": - case 5: - message.status = 5; - break; - case "RS_NEW_RECORD_VERSION_TYPE": - case 6: - message.status = 6; - break; - case "RS_FILES_NOT_MATCH": - case 7: - message.status = 7; - break; - case "RS_RECORD_NOT_SHAREABLE": - case 8: - message.status = 8; - break; - case "RS_ATTACHMENT_NOT_SHAREABLE": - case 9: - message.status = 9; - break; - case "RS_FILE_LIMIT_REACHED": - case 10: - message.status = 10; - break; - case "RS_SIZE_EXCEEDED_LIMIT": - case 11: - message.status = 11; - break; - case "RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS": - case 12: - message.status = 12; + message.encryptedKeyType = 4; break; } - if (object.message != null) - message.message = String(object.message); return message; }; /** - * Creates a plain object from a RecordLinkError message. Also converts values to other types if specified. + * Creates a plain object from a RecordKey message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordLinkError + * @memberof Folder.RecordKey * @static - * @param {Records.RecordLinkError} message RecordLinkError + * @param {Folder.RecordKey} message RecordKey * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordLinkError.toObject = function toObject(message, options) { + RecordKey.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { + if (options.bytes === String) + object.userUid = ""; + else { + object.userUid = []; + if (options.bytes !== Array) + object.userUid = $util.newBuffer(object.userUid); + } if (options.bytes === String) object.recordUid = ""; else { @@ -179977,69 +181224,107 @@ export const Records = $root.Records = (() => { if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - object.status = options.enums === String ? "RS_SUCCESS" : 0; - object.message = ""; + if (options.bytes === String) + object.recordKey = ""; + else { + object.recordKey = []; + if (options.bytes !== Array) + object.recordKey = $util.newBuffer(object.recordKey); + } + object.encryptedKeyType = options.enums === String ? "no_key" : 0; } + if (message.userUid != null && message.hasOwnProperty("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")) 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")) - 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")) - object.message = message.message; + if (message.recordKey != null && message.hasOwnProperty("recordKey")) + object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; + if (message.encryptedKeyType != null && message.hasOwnProperty("encryptedKeyType")) + object.encryptedKeyType = options.enums === String ? $root.Folder.EncryptedKeyType[message.encryptedKeyType] === undefined ? message.encryptedKeyType : $root.Folder.EncryptedKeyType[message.encryptedKeyType] : message.encryptedKeyType; return object; }; /** - * Converts this RecordLinkError to JSON. + * Converts this RecordKey to JSON. * @function toJSON - * @memberof Records.RecordLinkError + * @memberof Folder.RecordKey * @instance * @returns {Object.} JSON object */ - RecordLinkError.prototype.toJSON = function toJSON() { + RecordKey.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordLinkError + * Gets the default type url for RecordKey * @function getTypeUrl - * @memberof Records.RecordLinkError + * @memberof Folder.RecordKey * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordLinkError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordLinkError"; + return typeUrlPrefix + "/Folder.RecordKey"; }; - return RecordLinkError; + return RecordKey; })(); - Records.RecordModifyStatus = (function() { + return Folder; +})(); + +export const Records = $root.Records = (() => { + + /** + * Namespace Records. + * @exports Records + * @namespace + */ + const Records = {}; + + /** + * RecordTypeScope enum. + * @name Records.RecordTypeScope + * @enum {number} + * @property {number} RT_STANDARD=0 RT_STANDARD value + * @property {number} RT_USER=1 RT_USER value + * @property {number} RT_ENTERPRISE=2 RT_ENTERPRISE value + * @property {number} RT_PAM=3 RT_PAM value + * @property {number} RT_PAM_CONFIGURATION=4 RT_PAM_CONFIGURATION value + */ + Records.RecordTypeScope = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RT_STANDARD"] = 0; + values[valuesById[1] = "RT_USER"] = 1; + values[valuesById[2] = "RT_ENTERPRISE"] = 2; + values[valuesById[3] = "RT_PAM"] = 3; + values[valuesById[4] = "RT_PAM_CONFIGURATION"] = 4; + return values; + })(); + + Records.RecordType = (function() { /** - * Properties of a RecordModifyStatus. + * Properties of a RecordType. * @memberof Records - * @interface IRecordModifyStatus - * @property {Uint8Array|null} [recordUid] RecordModifyStatus recordUid - * @property {Records.RecordModifyResult|null} [status] RecordModifyStatus status - * @property {string|null} [message] RecordModifyStatus message - * @property {Array.|null} [linkErrors] RecordModifyStatus linkErrors + * @interface IRecordType + * @property {number|null} [recordTypeId] RecordType recordTypeId + * @property {string|null} [content] RecordType content + * @property {Records.RecordTypeScope|null} [scope] RecordType scope */ /** - * Constructs a new RecordModifyStatus. + * Constructs a new RecordType. * @memberof Records - * @classdesc Represents a RecordModifyStatus. - * @implements IRecordModifyStatus + * @classdesc Represents a RecordType. + * @implements IRecordType * @constructor - * @param {Records.IRecordModifyStatus=} [properties] Properties to set + * @param {Records.IRecordType=} [properties] Properties to set */ - function RecordModifyStatus(properties) { - this.linkErrors = []; + function RecordType(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -180047,120 +181332,103 @@ export const Records = $root.Records = (() => { } /** - * RecordModifyStatus recordUid. - * @member {Uint8Array} recordUid - * @memberof Records.RecordModifyStatus - * @instance - */ - RecordModifyStatus.prototype.recordUid = $util.newBuffer([]); - - /** - * RecordModifyStatus status. - * @member {Records.RecordModifyResult} status - * @memberof Records.RecordModifyStatus + * RecordType recordTypeId. + * @member {number} recordTypeId + * @memberof Records.RecordType * @instance */ - RecordModifyStatus.prototype.status = 0; + RecordType.prototype.recordTypeId = 0; /** - * RecordModifyStatus message. - * @member {string} message - * @memberof Records.RecordModifyStatus + * RecordType content. + * @member {string} content + * @memberof Records.RecordType * @instance */ - RecordModifyStatus.prototype.message = ""; + RecordType.prototype.content = ""; /** - * RecordModifyStatus linkErrors. - * @member {Array.} linkErrors - * @memberof Records.RecordModifyStatus + * RecordType scope. + * @member {Records.RecordTypeScope} scope + * @memberof Records.RecordType * @instance */ - RecordModifyStatus.prototype.linkErrors = $util.emptyArray; + RecordType.prototype.scope = 0; /** - * Creates a new RecordModifyStatus instance using the specified properties. + * Creates a new RecordType instance using the specified properties. * @function create - * @memberof Records.RecordModifyStatus + * @memberof Records.RecordType * @static - * @param {Records.IRecordModifyStatus=} [properties] Properties to set - * @returns {Records.RecordModifyStatus} RecordModifyStatus instance + * @param {Records.IRecordType=} [properties] Properties to set + * @returns {Records.RecordType} RecordType instance */ - RecordModifyStatus.create = function create(properties) { - return new RecordModifyStatus(properties); + RecordType.create = function create(properties) { + return new RecordType(properties); }; /** - * Encodes the specified RecordModifyStatus message. Does not implicitly {@link Records.RecordModifyStatus.verify|verify} messages. + * Encodes the specified RecordType message. Does not implicitly {@link Records.RecordType.verify|verify} messages. * @function encode - * @memberof Records.RecordModifyStatus + * @memberof Records.RecordType * @static - * @param {Records.IRecordModifyStatus} message RecordModifyStatus message or plain object to encode + * @param {Records.IRecordType} message RecordType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordModifyStatus.encode = function encode(message, writer) { + RecordType.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); - if (message.linkErrors != null && message.linkErrors.length) - for (let i = 0; i < message.linkErrors.length; ++i) - $root.Records.RecordLinkError.encode(message.linkErrors[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.recordTypeId != null && Object.hasOwnProperty.call(message, "recordTypeId")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.recordTypeId); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.content); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.scope); return writer; }; /** - * Encodes the specified RecordModifyStatus message, length delimited. Does not implicitly {@link Records.RecordModifyStatus.verify|verify} messages. + * Encodes the specified RecordType message, length delimited. Does not implicitly {@link Records.RecordType.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordModifyStatus + * @memberof Records.RecordType * @static - * @param {Records.IRecordModifyStatus} message RecordModifyStatus message or plain object to encode + * @param {Records.IRecordType} message RecordType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordModifyStatus.encodeDelimited = function encodeDelimited(message, writer) { + RecordType.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordModifyStatus message from the specified reader or buffer. + * Decodes a RecordType message from the specified reader or buffer. * @function decode - * @memberof Records.RecordModifyStatus + * @memberof Records.RecordType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordModifyStatus} RecordModifyStatus + * @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 */ - RecordModifyStatus.decode = function decode(reader, length) { + RecordType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordModifyStatus(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordType(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + message.recordTypeId = reader.int32(); break; } case 2: { - message.status = reader.int32(); + message.content = reader.string(); break; } case 3: { - message.message = reader.string(); - break; - } - case 4: { - if (!(message.linkErrors && message.linkErrors.length)) - message.linkErrors = []; - message.linkErrors.push($root.Records.RecordLinkError.decode(reader, reader.uint32())); + message.scope = reader.int32(); break; } default: @@ -180172,250 +181440,176 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordModifyStatus message from the specified reader or buffer, length delimited. + * Decodes a RecordType message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordModifyStatus + * @memberof Records.RecordType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordModifyStatus} RecordModifyStatus + * @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 */ - RecordModifyStatus.decodeDelimited = function decodeDelimited(reader) { + RecordType.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordModifyStatus message. + * Verifies a RecordType message. * @function verify - * @memberof Records.RecordModifyStatus + * @memberof Records.RecordType * @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) { + RecordType.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { + 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 "status: enum value expected"; + return "scope: 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]); - if (error) - return "linkErrors." + error; - } - } return null; }; /** - * Creates a RecordModifyStatus message from a plain object. Also converts values to their respective internal types. + * Creates a RecordType message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordModifyStatus + * @memberof Records.RecordType * @static * @param {Object.} object Plain object - * @returns {Records.RecordModifyStatus} RecordModifyStatus + * @returns {Records.RecordType} RecordType */ - RecordModifyStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordModifyStatus) + RecordType.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordType) return object; - let message = new $root.Records.RecordModifyStatus(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - switch (object.status) { + let message = new $root.Records.RecordType(); + if (object.recordTypeId != null) + message.recordTypeId = object.recordTypeId | 0; + if (object.content != null) + message.content = String(object.content); + switch (object.scope) { default: - if (typeof object.status === "number") { - message.status = object.status; + if (typeof object.scope === "number") { + message.scope = object.scope; break; } break; - case "RS_SUCCESS": + case "RT_STANDARD": case 0: - message.status = 0; + message.scope = 0; break; - case "RS_OUT_OF_SYNC": + case "RT_USER": case 1: - message.status = 1; + message.scope = 1; break; - case "RS_ACCESS_DENIED": + case "RT_ENTERPRISE": case 2: - message.status = 2; + message.scope = 2; break; - case "RS_SHARE_DENIED": + case "RT_PAM": case 3: - message.status = 3; + message.scope = 3; break; - case "RS_RECORD_EXISTS": + case "RT_PAM_CONFIGURATION": case 4: - message.status = 4; - break; - case "RS_OLD_RECORD_VERSION_TYPE": - case 5: - message.status = 5; - break; - case "RS_NEW_RECORD_VERSION_TYPE": - case 6: - message.status = 6; - break; - case "RS_FILES_NOT_MATCH": - case 7: - message.status = 7; - break; - case "RS_RECORD_NOT_SHAREABLE": - case 8: - message.status = 8; - break; - case "RS_ATTACHMENT_NOT_SHAREABLE": - case 9: - message.status = 9; - break; - case "RS_FILE_LIMIT_REACHED": - case 10: - message.status = 10; - break; - case "RS_SIZE_EXCEEDED_LIMIT": - case 11: - message.status = 11; - break; - case "RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS": - case 12: - message.status = 12; + message.scope = 4; break; } - if (object.message != null) - message.message = String(object.message); - if (object.linkErrors) { - if (!Array.isArray(object.linkErrors)) - throw TypeError(".Records.RecordModifyStatus.linkErrors: array expected"); - message.linkErrors = []; - for (let i = 0; i < object.linkErrors.length; ++i) { - if (typeof object.linkErrors[i] !== "object") - throw TypeError(".Records.RecordModifyStatus.linkErrors: object expected"); - message.linkErrors[i] = $root.Records.RecordLinkError.fromObject(object.linkErrors[i]); - } - } return message; }; /** - * Creates a plain object from a RecordModifyStatus message. Also converts values to other types if specified. + * Creates a plain object from a RecordType message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordModifyStatus + * @memberof Records.RecordType * @static - * @param {Records.RecordModifyStatus} message RecordModifyStatus + * @param {Records.RecordType} message RecordType * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordModifyStatus.toObject = function toObject(message, options) { + RecordType.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.linkErrors = []; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - object.status = options.enums === String ? "RS_SUCCESS" : 0; - object.message = ""; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.status != null && message.hasOwnProperty("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")) - object.message = message.message; - if (message.linkErrors && message.linkErrors.length) { - object.linkErrors = []; - for (let j = 0; j < message.linkErrors.length; ++j) - object.linkErrors[j] = $root.Records.RecordLinkError.toObject(message.linkErrors[j], options); + object.recordTypeId = 0; + object.content = ""; + object.scope = options.enums === String ? "RT_STANDARD" : 0; } + if (message.recordTypeId != null && message.hasOwnProperty("recordTypeId")) + object.recordTypeId = message.recordTypeId; + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = options.enums === String ? $root.Records.RecordTypeScope[message.scope] === undefined ? message.scope : $root.Records.RecordTypeScope[message.scope] : message.scope; return object; }; /** - * Converts this RecordModifyStatus to JSON. + * Converts this RecordType to JSON. * @function toJSON - * @memberof Records.RecordModifyStatus + * @memberof Records.RecordType * @instance * @returns {Object.} JSON object */ - RecordModifyStatus.prototype.toJSON = function toJSON() { + RecordType.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordModifyStatus + * Gets the default type url for RecordType * @function getTypeUrl - * @memberof Records.RecordModifyStatus + * @memberof Records.RecordType * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordModifyStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordType.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordModifyStatus"; + return typeUrlPrefix + "/Records.RecordType"; }; - return RecordModifyStatus; + return RecordType; })(); - Records.RecordsModifyResponse = (function() { + Records.RecordTypesRequest = (function() { /** - * Properties of a RecordsModifyResponse. + * Properties of a RecordTypesRequest. * @memberof Records - * @interface IRecordsModifyResponse - * @property {Array.|null} [records] RecordsModifyResponse records - * @property {number|Long|null} [revision] RecordsModifyResponse revision + * @interface IRecordTypesRequest + * @property {boolean|null} [standard] RecordTypesRequest standard + * @property {boolean|null} [user] RecordTypesRequest user + * @property {boolean|null} [enterprise] RecordTypesRequest enterprise + * @property {boolean|null} [pam] RecordTypesRequest pam */ /** - * Constructs a new RecordsModifyResponse. + * Constructs a new RecordTypesRequest. * @memberof Records - * @classdesc Represents a RecordsModifyResponse. - * @implements IRecordsModifyResponse + * @classdesc Represents a RecordTypesRequest. + * @implements IRecordTypesRequest * @constructor - * @param {Records.IRecordsModifyResponse=} [properties] Properties to set + * @param {Records.IRecordTypesRequest=} [properties] Properties to set */ - function RecordsModifyResponse(properties) { - this.records = []; + function RecordTypesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -180423,92 +181617,117 @@ export const Records = $root.Records = (() => { } /** - * RecordsModifyResponse records. - * @member {Array.} records - * @memberof Records.RecordsModifyResponse + * RecordTypesRequest standard. + * @member {boolean} standard + * @memberof Records.RecordTypesRequest * @instance */ - RecordsModifyResponse.prototype.records = $util.emptyArray; + RecordTypesRequest.prototype.standard = false; /** - * RecordsModifyResponse revision. - * @member {number|Long} revision - * @memberof Records.RecordsModifyResponse + * RecordTypesRequest user. + * @member {boolean} user + * @memberof Records.RecordTypesRequest * @instance */ - RecordsModifyResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordTypesRequest.prototype.user = false; /** - * Creates a new RecordsModifyResponse instance using the specified properties. + * RecordTypesRequest enterprise. + * @member {boolean} enterprise + * @memberof Records.RecordTypesRequest + * @instance + */ + RecordTypesRequest.prototype.enterprise = false; + + /** + * RecordTypesRequest pam. + * @member {boolean} pam + * @memberof Records.RecordTypesRequest + * @instance + */ + RecordTypesRequest.prototype.pam = false; + + /** + * Creates a new RecordTypesRequest instance using the specified properties. * @function create - * @memberof Records.RecordsModifyResponse + * @memberof Records.RecordTypesRequest * @static - * @param {Records.IRecordsModifyResponse=} [properties] Properties to set - * @returns {Records.RecordsModifyResponse} RecordsModifyResponse instance + * @param {Records.IRecordTypesRequest=} [properties] Properties to set + * @returns {Records.RecordTypesRequest} RecordTypesRequest instance */ - RecordsModifyResponse.create = function create(properties) { - return new RecordsModifyResponse(properties); + RecordTypesRequest.create = function create(properties) { + return new RecordTypesRequest(properties); }; /** - * Encodes the specified RecordsModifyResponse message. Does not implicitly {@link Records.RecordsModifyResponse.verify|verify} messages. + * Encodes the specified RecordTypesRequest message. Does not implicitly {@link Records.RecordTypesRequest.verify|verify} messages. * @function encode - * @memberof Records.RecordsModifyResponse + * @memberof Records.RecordTypesRequest * @static - * @param {Records.IRecordsModifyResponse} message RecordsModifyResponse message or plain object to encode + * @param {Records.IRecordTypesRequest} message RecordTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsModifyResponse.encode = function encode(message, writer) { + RecordTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.records != null && message.records.length) - for (let i = 0; i < message.records.length; ++i) - $root.Records.RecordModifyStatus.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); + if (message.standard != null && Object.hasOwnProperty.call(message, "standard")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.standard); + if (message.user != null && Object.hasOwnProperty.call(message, "user")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.user); + if (message.enterprise != null && Object.hasOwnProperty.call(message, "enterprise")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.enterprise); + if (message.pam != null && Object.hasOwnProperty.call(message, "pam")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.pam); return writer; }; /** - * Encodes the specified RecordsModifyResponse message, length delimited. Does not implicitly {@link Records.RecordsModifyResponse.verify|verify} messages. + * Encodes the specified RecordTypesRequest message, length delimited. Does not implicitly {@link Records.RecordTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordsModifyResponse + * @memberof Records.RecordTypesRequest * @static - * @param {Records.IRecordsModifyResponse} message RecordsModifyResponse message or plain object to encode + * @param {Records.IRecordTypesRequest} message RecordTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsModifyResponse.encodeDelimited = function encodeDelimited(message, writer) { + RecordTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordsModifyResponse message from the specified reader or buffer. + * Decodes a RecordTypesRequest message from the specified reader or buffer. * @function decode - * @memberof Records.RecordsModifyResponse + * @memberof Records.RecordTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordsModifyResponse} RecordsModifyResponse + * @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 */ - RecordsModifyResponse.decode = function decode(reader, length) { + RecordTypesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsModifyResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordTypesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.records && message.records.length)) - message.records = []; - message.records.push($root.Records.RecordModifyStatus.decode(reader, reader.uint32())); + message.standard = reader.bool(); break; } case 2: { - message.revision = reader.int64(); + message.user = reader.bool(); + break; + } + case 3: { + message.enterprise = reader.bool(); + break; + } + case 4: { + message.pam = reader.bool(); break; } default: @@ -180520,165 +181739,152 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordsModifyResponse message from the specified reader or buffer, length delimited. + * Decodes a RecordTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordsModifyResponse + * @memberof Records.RecordTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsModifyResponse} RecordsModifyResponse + * @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 */ - RecordsModifyResponse.decodeDelimited = function decodeDelimited(reader) { + RecordTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordsModifyResponse message. + * Verifies a RecordTypesRequest message. * @function verify - * @memberof Records.RecordsModifyResponse + * @memberof Records.RecordTypesRequest * @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) { + RecordTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; - for (let i = 0; i < message.records.length; ++i) { - let error = $root.Records.RecordModifyStatus.verify(message.records[i]); - 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"; + 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 RecordsModifyResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RecordTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordsModifyResponse + * @memberof Records.RecordTypesRequest * @static * @param {Object.} object Plain object - * @returns {Records.RecordsModifyResponse} RecordsModifyResponse + * @returns {Records.RecordTypesRequest} RecordTypesRequest */ - RecordsModifyResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsModifyResponse) + RecordTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordTypesRequest) return object; - let message = new $root.Records.RecordsModifyResponse(); - if (object.records) { - if (!Array.isArray(object.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") - throw TypeError(".Records.RecordsModifyResponse.records: object expected"); - message.records[i] = $root.Records.RecordModifyStatus.fromObject(object.records[i]); - } - } - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + let message = new $root.Records.RecordTypesRequest(); + if (object.standard != null) + message.standard = Boolean(object.standard); + if (object.user != null) + message.user = Boolean(object.user); + if (object.enterprise != null) + message.enterprise = Boolean(object.enterprise); + if (object.pam != null) + message.pam = Boolean(object.pam); return message; }; /** - * Creates a plain object from a RecordsModifyResponse message. Also converts values to other types if specified. + * Creates a plain object from a RecordTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordsModifyResponse + * @memberof Records.RecordTypesRequest * @static - * @param {Records.RecordsModifyResponse} message RecordsModifyResponse + * @param {Records.RecordTypesRequest} message RecordTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsModifyResponse.toObject = function toObject(message, options) { + RecordTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.records = []; - if (options.defaults) - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (message.records && message.records.length) { - object.records = []; - for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.Records.RecordModifyStatus.toObject(message.records[j], options); + if (options.defaults) { + object.standard = false; + object.user = false; + object.enterprise = false; + object.pam = false; } - if (message.revision != null && message.hasOwnProperty("revision")) - 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.standard != null && message.hasOwnProperty("standard")) + object.standard = message.standard; + if (message.user != null && message.hasOwnProperty("user")) + object.user = message.user; + if (message.enterprise != null && message.hasOwnProperty("enterprise")) + object.enterprise = message.enterprise; + if (message.pam != null && message.hasOwnProperty("pam")) + object.pam = message.pam; return object; }; /** - * Converts this RecordsModifyResponse to JSON. + * Converts this RecordTypesRequest to JSON. * @function toJSON - * @memberof Records.RecordsModifyResponse + * @memberof Records.RecordTypesRequest * @instance * @returns {Object.} JSON object */ - RecordsModifyResponse.prototype.toJSON = function toJSON() { + RecordTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordsModifyResponse + * Gets the default type url for RecordTypesRequest * @function getTypeUrl - * @memberof Records.RecordsModifyResponse + * @memberof Records.RecordTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordsModifyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordsModifyResponse"; + return typeUrlPrefix + "/Records.RecordTypesRequest"; }; - return RecordsModifyResponse; + return RecordTypesRequest; })(); - Records.RecordAddAuditData = (function() { + Records.RecordTypesResponse = (function() { /** - * Properties of a RecordAddAuditData. + * Properties of a RecordTypesResponse. * @memberof Records - * @interface IRecordAddAuditData - * @property {Uint8Array|null} [recordUid] RecordAddAuditData recordUid - * @property {number|Long|null} [revision] RecordAddAuditData revision - * @property {Uint8Array|null} [data] RecordAddAuditData data - * @property {number|null} [version] RecordAddAuditData version + * @interface IRecordTypesResponse + * @property {Array.|null} [recordTypes] RecordTypesResponse recordTypes + * @property {number|null} [standardCounter] RecordTypesResponse standardCounter + * @property {number|null} [userCounter] RecordTypesResponse userCounter + * @property {number|null} [enterpriseCounter] RecordTypesResponse enterpriseCounter + * @property {number|null} [pamCounter] RecordTypesResponse pamCounter */ /** - * Constructs a new RecordAddAuditData. + * Constructs a new RecordTypesResponse. * @memberof Records - * @classdesc Represents a RecordAddAuditData. - * @implements IRecordAddAuditData + * @classdesc Represents a RecordTypesResponse. + * @implements IRecordTypesResponse * @constructor - * @param {Records.IRecordAddAuditData=} [properties] Properties to set + * @param {Records.IRecordTypesResponse=} [properties] Properties to set */ - function RecordAddAuditData(properties) { + function RecordTypesResponse(properties) { + this.recordTypes = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -180686,117 +181892,134 @@ export const Records = $root.Records = (() => { } /** - * RecordAddAuditData recordUid. - * @member {Uint8Array} recordUid - * @memberof Records.RecordAddAuditData + * RecordTypesResponse recordTypes. + * @member {Array.} recordTypes + * @memberof Records.RecordTypesResponse * @instance */ - RecordAddAuditData.prototype.recordUid = $util.newBuffer([]); + RecordTypesResponse.prototype.recordTypes = $util.emptyArray; /** - * RecordAddAuditData revision. - * @member {number|Long} revision - * @memberof Records.RecordAddAuditData + * RecordTypesResponse standardCounter. + * @member {number} standardCounter + * @memberof Records.RecordTypesResponse * @instance */ - RecordAddAuditData.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordTypesResponse.prototype.standardCounter = 0; /** - * RecordAddAuditData data. - * @member {Uint8Array} data - * @memberof Records.RecordAddAuditData + * RecordTypesResponse userCounter. + * @member {number} userCounter + * @memberof Records.RecordTypesResponse * @instance */ - RecordAddAuditData.prototype.data = $util.newBuffer([]); + RecordTypesResponse.prototype.userCounter = 0; /** - * RecordAddAuditData version. - * @member {number} version - * @memberof Records.RecordAddAuditData + * RecordTypesResponse enterpriseCounter. + * @member {number} enterpriseCounter + * @memberof Records.RecordTypesResponse * @instance */ - RecordAddAuditData.prototype.version = 0; + RecordTypesResponse.prototype.enterpriseCounter = 0; /** - * Creates a new RecordAddAuditData instance using the specified properties. + * RecordTypesResponse pamCounter. + * @member {number} pamCounter + * @memberof Records.RecordTypesResponse + * @instance + */ + RecordTypesResponse.prototype.pamCounter = 0; + + /** + * Creates a new RecordTypesResponse instance using the specified properties. * @function create - * @memberof Records.RecordAddAuditData + * @memberof Records.RecordTypesResponse * @static - * @param {Records.IRecordAddAuditData=} [properties] Properties to set - * @returns {Records.RecordAddAuditData} RecordAddAuditData instance + * @param {Records.IRecordTypesResponse=} [properties] Properties to set + * @returns {Records.RecordTypesResponse} RecordTypesResponse instance */ - RecordAddAuditData.create = function create(properties) { - return new RecordAddAuditData(properties); + RecordTypesResponse.create = function create(properties) { + return new RecordTypesResponse(properties); }; /** - * Encodes the specified RecordAddAuditData message. Does not implicitly {@link Records.RecordAddAuditData.verify|verify} messages. + * Encodes the specified RecordTypesResponse message. Does not implicitly {@link Records.RecordTypesResponse.verify|verify} messages. * @function encode - * @memberof Records.RecordAddAuditData + * @memberof Records.RecordTypesResponse * @static - * @param {Records.IRecordAddAuditData} message RecordAddAuditData message or plain object to encode + * @param {Records.IRecordTypesResponse} message RecordTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordAddAuditData.encode = function encode(message, writer) { + RecordTypesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.version); + if (message.recordTypes != null && message.recordTypes.length) + for (let i = 0; i < message.recordTypes.length; ++i) + $root.Records.RecordType.encode(message.recordTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.standardCounter != null && Object.hasOwnProperty.call(message, "standardCounter")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.standardCounter); + if (message.userCounter != null && Object.hasOwnProperty.call(message, "userCounter")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.userCounter); + if (message.enterpriseCounter != null && Object.hasOwnProperty.call(message, "enterpriseCounter")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.enterpriseCounter); + if (message.pamCounter != null && Object.hasOwnProperty.call(message, "pamCounter")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.pamCounter); return writer; }; /** - * Encodes the specified RecordAddAuditData message, length delimited. Does not implicitly {@link Records.RecordAddAuditData.verify|verify} messages. + * Encodes the specified RecordTypesResponse message, length delimited. Does not implicitly {@link Records.RecordTypesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordAddAuditData + * @memberof Records.RecordTypesResponse * @static - * @param {Records.IRecordAddAuditData} message RecordAddAuditData message or plain object to encode + * @param {Records.IRecordTypesResponse} message RecordTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordAddAuditData.encodeDelimited = function encodeDelimited(message, writer) { + RecordTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordAddAuditData message from the specified reader or buffer. + * Decodes a RecordTypesResponse message from the specified reader or buffer. * @function decode - * @memberof Records.RecordAddAuditData + * @memberof Records.RecordTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordAddAuditData} RecordAddAuditData + * @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 */ - RecordAddAuditData.decode = function decode(reader, length) { + RecordTypesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordAddAuditData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordTypesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + if (!(message.recordTypes && message.recordTypes.length)) + message.recordTypes = []; + message.recordTypes.push($root.Records.RecordType.decode(reader, reader.uint32())); break; } case 2: { - message.revision = reader.int64(); + message.standardCounter = reader.int32(); break; } case 3: { - message.data = reader.bytes(); + message.userCounter = reader.int32(); break; } case 4: { - message.version = reader.int32(); + message.enterpriseCounter = reader.int32(); + break; + } + case 5: { + message.pamCounter = reader.int32(); break; } default: @@ -180808,180 +182031,174 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordAddAuditData message from the specified reader or buffer, length delimited. + * Decodes a RecordTypesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordAddAuditData + * @memberof Records.RecordTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordAddAuditData} RecordAddAuditData + * @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 */ - RecordAddAuditData.decodeDelimited = function decodeDelimited(reader) { + RecordTypesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordAddAuditData message. + * Verifies a RecordTypesResponse message. * @function verify - * @memberof Records.RecordAddAuditData + * @memberof Records.RecordTypesResponse * @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) { + RecordTypesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.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"; + 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]); + 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 RecordAddAuditData message from a plain object. Also converts values to their respective internal types. + * Creates a RecordTypesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordAddAuditData + * @memberof Records.RecordTypesResponse * @static * @param {Object.} object Plain object - * @returns {Records.RecordAddAuditData} RecordAddAuditData + * @returns {Records.RecordTypesResponse} RecordTypesResponse */ - RecordAddAuditData.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordAddAuditData) + RecordTypesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordTypesResponse) return object; - let message = new $root.Records.RecordAddAuditData(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - if (object.version != null) - message.version = object.version | 0; + let message = new $root.Records.RecordTypesResponse(); + if (object.recordTypes) { + if (!Array.isArray(object.recordTypes)) + throw TypeError(".Records.RecordTypesResponse.recordTypes: array expected"); + message.recordTypes = []; + for (let i = 0; i < object.recordTypes.length; ++i) { + if (typeof object.recordTypes[i] !== "object") + throw TypeError(".Records.RecordTypesResponse.recordTypes: object expected"); + message.recordTypes[i] = $root.Records.RecordType.fromObject(object.recordTypes[i]); + } + } + if (object.standardCounter != null) + message.standardCounter = object.standardCounter | 0; + if (object.userCounter != null) + message.userCounter = object.userCounter | 0; + if (object.enterpriseCounter != null) + message.enterpriseCounter = object.enterpriseCounter | 0; + if (object.pamCounter != null) + message.pamCounter = object.pamCounter | 0; return message; }; /** - * Creates a plain object from a RecordAddAuditData message. Also converts values to other types if specified. + * Creates a plain object from a RecordTypesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordAddAuditData + * @memberof Records.RecordTypesResponse * @static - * @param {Records.RecordAddAuditData} message RecordAddAuditData + * @param {Records.RecordTypesResponse} message RecordTypesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordAddAuditData.toObject = function toObject(message, options) { + RecordTypesResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.recordTypes = []; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - object.version = 0; + object.standardCounter = 0; + object.userCounter = 0; + object.enterpriseCounter = 0; + object.pamCounter = 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof 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")) - 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")) - object.version = message.version; + if (message.recordTypes && message.recordTypes.length) { + object.recordTypes = []; + for (let j = 0; j < message.recordTypes.length; ++j) + object.recordTypes[j] = $root.Records.RecordType.toObject(message.recordTypes[j], options); + } + if (message.standardCounter != null && message.hasOwnProperty("standardCounter")) + object.standardCounter = message.standardCounter; + if (message.userCounter != null && message.hasOwnProperty("userCounter")) + object.userCounter = message.userCounter; + if (message.enterpriseCounter != null && message.hasOwnProperty("enterpriseCounter")) + object.enterpriseCounter = message.enterpriseCounter; + if (message.pamCounter != null && message.hasOwnProperty("pamCounter")) + object.pamCounter = message.pamCounter; return object; }; /** - * Converts this RecordAddAuditData to JSON. + * Converts this RecordTypesResponse to JSON. * @function toJSON - * @memberof Records.RecordAddAuditData + * @memberof Records.RecordTypesResponse * @instance * @returns {Object.} JSON object */ - RecordAddAuditData.prototype.toJSON = function toJSON() { + RecordTypesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordAddAuditData + * Gets the default type url for RecordTypesResponse * @function getTypeUrl - * @memberof Records.RecordAddAuditData + * @memberof Records.RecordTypesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordAddAuditData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordTypesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordAddAuditData"; + return typeUrlPrefix + "/Records.RecordTypesResponse"; }; - return RecordAddAuditData; + return RecordTypesResponse; })(); - Records.AddAuditDataRequest = (function() { + Records.RecordTypeModifyResponse = (function() { /** - * Properties of an AddAuditDataRequest. + * Properties of a RecordTypeModifyResponse. * @memberof Records - * @interface IAddAuditDataRequest - * @property {Array.|null} [records] AddAuditDataRequest records + * @interface IRecordTypeModifyResponse + * @property {number|null} [recordTypeId] RecordTypeModifyResponse recordTypeId + * @property {number|null} [counter] RecordTypeModifyResponse counter */ /** - * Constructs a new AddAuditDataRequest. + * Constructs a new RecordTypeModifyResponse. * @memberof Records - * @classdesc Represents an AddAuditDataRequest. - * @implements IAddAuditDataRequest + * @classdesc Represents a RecordTypeModifyResponse. + * @implements IRecordTypeModifyResponse * @constructor - * @param {Records.IAddAuditDataRequest=} [properties] Properties to set + * @param {Records.IRecordTypeModifyResponse=} [properties] Properties to set */ - function AddAuditDataRequest(properties) { - this.records = []; + function RecordTypeModifyResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -180989,78 +182206,89 @@ export const Records = $root.Records = (() => { } /** - * AddAuditDataRequest records. - * @member {Array.} records - * @memberof Records.AddAuditDataRequest + * RecordTypeModifyResponse recordTypeId. + * @member {number} recordTypeId + * @memberof Records.RecordTypeModifyResponse * @instance */ - AddAuditDataRequest.prototype.records = $util.emptyArray; + RecordTypeModifyResponse.prototype.recordTypeId = 0; /** - * Creates a new AddAuditDataRequest instance using the specified properties. + * RecordTypeModifyResponse counter. + * @member {number} counter + * @memberof Records.RecordTypeModifyResponse + * @instance + */ + RecordTypeModifyResponse.prototype.counter = 0; + + /** + * Creates a new RecordTypeModifyResponse instance using the specified properties. * @function create - * @memberof Records.AddAuditDataRequest + * @memberof Records.RecordTypeModifyResponse * @static - * @param {Records.IAddAuditDataRequest=} [properties] Properties to set - * @returns {Records.AddAuditDataRequest} AddAuditDataRequest instance + * @param {Records.IRecordTypeModifyResponse=} [properties] Properties to set + * @returns {Records.RecordTypeModifyResponse} RecordTypeModifyResponse instance */ - AddAuditDataRequest.create = function create(properties) { - return new AddAuditDataRequest(properties); + RecordTypeModifyResponse.create = function create(properties) { + return new RecordTypeModifyResponse(properties); }; /** - * Encodes the specified AddAuditDataRequest message. Does not implicitly {@link Records.AddAuditDataRequest.verify|verify} messages. + * Encodes the specified RecordTypeModifyResponse message. Does not implicitly {@link Records.RecordTypeModifyResponse.verify|verify} messages. * @function encode - * @memberof Records.AddAuditDataRequest + * @memberof Records.RecordTypeModifyResponse * @static - * @param {Records.IAddAuditDataRequest} message AddAuditDataRequest message or plain object to encode + * @param {Records.IRecordTypeModifyResponse} message RecordTypeModifyResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddAuditDataRequest.encode = function encode(message, writer) { + RecordTypeModifyResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.records != null && message.records.length) - for (let i = 0; i < message.records.length; ++i) - $root.Records.RecordAddAuditData.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.recordTypeId != null && Object.hasOwnProperty.call(message, "recordTypeId")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.recordTypeId); + if (message.counter != null && Object.hasOwnProperty.call(message, "counter")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.counter); return writer; }; /** - * Encodes the specified AddAuditDataRequest message, length delimited. Does not implicitly {@link Records.AddAuditDataRequest.verify|verify} messages. + * Encodes the specified RecordTypeModifyResponse message, length delimited. Does not implicitly {@link Records.RecordTypeModifyResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Records.AddAuditDataRequest + * @memberof Records.RecordTypeModifyResponse * @static - * @param {Records.IAddAuditDataRequest} message AddAuditDataRequest message or plain object to encode + * @param {Records.IRecordTypeModifyResponse} message RecordTypeModifyResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddAuditDataRequest.encodeDelimited = function encodeDelimited(message, writer) { + RecordTypeModifyResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddAuditDataRequest message from the specified reader or buffer. + * Decodes a RecordTypeModifyResponse message from the specified reader or buffer. * @function decode - * @memberof Records.AddAuditDataRequest + * @memberof Records.RecordTypeModifyResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.AddAuditDataRequest} AddAuditDataRequest + * @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 */ - AddAuditDataRequest.decode = function decode(reader, length) { + RecordTypeModifyResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.AddAuditDataRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordTypeModifyResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.records && message.records.length)) - message.records = []; - message.records.push($root.Records.RecordAddAuditData.decode(reader, reader.uint32())); + message.recordTypeId = reader.int32(); + break; + } + case 2: { + message.counter = reader.int32(); break; } default: @@ -181072,144 +182300,400 @@ export const Records = $root.Records = (() => { }; /** - * Decodes an AddAuditDataRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordTypeModifyResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.AddAuditDataRequest + * @memberof Records.RecordTypeModifyResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.AddAuditDataRequest} AddAuditDataRequest + * @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 */ - AddAuditDataRequest.decodeDelimited = function decodeDelimited(reader) { + RecordTypeModifyResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddAuditDataRequest message. + * Verifies a RecordTypeModifyResponse message. * @function verify - * @memberof Records.AddAuditDataRequest + * @memberof Records.RecordTypeModifyResponse * @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) { + RecordTypeModifyResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; - for (let i = 0; i < message.records.length; ++i) { - let error = $root.Records.RecordAddAuditData.verify(message.records[i]); - if (error) - return "records." + error; + 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 + * @memberof Records.RecordTypeModifyResponse + * @static + * @param {Object.} object Plain object + * @returns {Records.RecordTypeModifyResponse} RecordTypeModifyResponse + */ + RecordTypeModifyResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordTypeModifyResponse) + return object; + let message = new $root.Records.RecordTypeModifyResponse(); + if (object.recordTypeId != null) + message.recordTypeId = object.recordTypeId | 0; + if (object.counter != null) + message.counter = object.counter | 0; + return message; + }; + + /** + * Creates a plain object from a RecordTypeModifyResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof Records.RecordTypeModifyResponse + * @static + * @param {Records.RecordTypeModifyResponse} message RecordTypeModifyResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordTypeModifyResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.recordTypeId = 0; + object.counter = 0; + } + if (message.recordTypeId != null && message.hasOwnProperty("recordTypeId")) + object.recordTypeId = message.recordTypeId; + if (message.counter != null && message.hasOwnProperty("counter")) + object.counter = message.counter; + return object; + }; + + /** + * Converts this RecordTypeModifyResponse to JSON. + * @function toJSON + * @memberof Records.RecordTypeModifyResponse + * @instance + * @returns {Object.} JSON object + */ + RecordTypeModifyResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecordTypeModifyResponse + * @function getTypeUrl + * @memberof Records.RecordTypeModifyResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecordTypeModifyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Records.RecordTypeModifyResponse"; + }; + + return RecordTypeModifyResponse; + })(); + + Records.RecordsGetRequest = (function() { + + /** + * Properties of a RecordsGetRequest. + * @memberof Records + * @interface IRecordsGetRequest + * @property {Array.|null} [recordUids] RecordsGetRequest recordUids + * @property {number|Long|null} [clientTime] RecordsGetRequest clientTime + */ + + /** + * Constructs a new RecordsGetRequest. + * @memberof Records + * @classdesc Represents a RecordsGetRequest. + * @implements IRecordsGetRequest + * @constructor + * @param {Records.IRecordsGetRequest=} [properties] Properties to set + */ + function RecordsGetRequest(properties) { + this.recordUids = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RecordsGetRequest recordUids. + * @member {Array.} recordUids + * @memberof Records.RecordsGetRequest + * @instance + */ + RecordsGetRequest.prototype.recordUids = $util.emptyArray; + + /** + * RecordsGetRequest clientTime. + * @member {number|Long} clientTime + * @memberof Records.RecordsGetRequest + * @instance + */ + RecordsGetRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new RecordsGetRequest instance using the specified properties. + * @function create + * @memberof Records.RecordsGetRequest + * @static + * @param {Records.IRecordsGetRequest=} [properties] Properties to set + * @returns {Records.RecordsGetRequest} RecordsGetRequest instance + */ + RecordsGetRequest.create = function create(properties) { + return new RecordsGetRequest(properties); + }; + + /** + * Encodes the specified RecordsGetRequest message. Does not implicitly {@link Records.RecordsGetRequest.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recordUids != null && message.recordUids.length) + for (let i = 0; i < message.recordUids.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUids[i]); + if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); + 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 + * @memberof Records.RecordsGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsGetRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.recordUids && message.recordUids.length)) + message.recordUids = []; + message.recordUids.push(reader.bytes()); + break; + } + case 2: { + message.clientTime = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; } } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.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 an AddAuditDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsGetRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.AddAuditDataRequest + * @memberof Records.RecordsGetRequest * @static * @param {Object.} object Plain object - * @returns {Records.AddAuditDataRequest} AddAuditDataRequest + * @returns {Records.RecordsGetRequest} RecordsGetRequest */ - AddAuditDataRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.AddAuditDataRequest) + RecordsGetRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordsGetRequest) return object; - let message = new $root.Records.AddAuditDataRequest(); - if (object.records) { - if (!Array.isArray(object.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") - throw TypeError(".Records.AddAuditDataRequest.records: object expected"); - message.records[i] = $root.Records.RecordAddAuditData.fromObject(object.records[i]); - } + let message = new $root.Records.RecordsGetRequest(); + if (object.recordUids) { + if (!Array.isArray(object.recordUids)) + throw TypeError(".Records.RecordsGetRequest.recordUids: array expected"); + message.recordUids = []; + for (let i = 0; i < object.recordUids.length; ++i) + if (typeof object.recordUids[i] === "string") + $util.base64.decode(object.recordUids[i], message.recordUids[i] = $util.newBuffer($util.base64.length(object.recordUids[i])), 0); + else if (object.recordUids[i].length >= 0) + message.recordUids[i] = object.recordUids[i]; } + if (object.clientTime != null) + if ($util.Long) + (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = false; + else if (typeof object.clientTime === "string") + message.clientTime = parseInt(object.clientTime, 10); + else if (typeof object.clientTime === "number") + message.clientTime = object.clientTime; + else if (typeof object.clientTime === "object") + message.clientTime = new $util.LongBits(object.clientTime.low >>> 0, object.clientTime.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from an AddAuditDataRequest message. Also converts values to other types if specified. + * Creates a plain object from a RecordsGetRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Records.AddAuditDataRequest + * @memberof Records.RecordsGetRequest * @static - * @param {Records.AddAuditDataRequest} message AddAuditDataRequest + * @param {Records.RecordsGetRequest} message RecordsGetRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddAuditDataRequest.toObject = function toObject(message, options) { + RecordsGetRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.records = []; - if (message.records && message.records.length) { - object.records = []; - for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.Records.RecordAddAuditData.toObject(message.records[j], options); + object.recordUids = []; + if (options.defaults) + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.clientTime = options.longs === String ? "0" : 0; + if (message.recordUids && message.recordUids.length) { + object.recordUids = []; + for (let j = 0; j < message.recordUids.length; ++j) + object.recordUids[j] = options.bytes === String ? $util.base64.encode(message.recordUids[j], 0, message.recordUids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUids[j]) : message.recordUids[j]; } + if (message.clientTime != null && message.hasOwnProperty("clientTime")) + if (typeof 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; return object; }; /** - * Converts this AddAuditDataRequest to JSON. + * Converts this RecordsGetRequest to JSON. * @function toJSON - * @memberof Records.AddAuditDataRequest + * @memberof Records.RecordsGetRequest * @instance * @returns {Object.} JSON object */ - AddAuditDataRequest.prototype.toJSON = function toJSON() { + RecordsGetRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddAuditDataRequest + * Gets the default type url for RecordsGetRequest * @function getTypeUrl - * @memberof Records.AddAuditDataRequest + * @memberof Records.RecordsGetRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddAuditDataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordsGetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.AddAuditDataRequest"; + return typeUrlPrefix + "/Records.RecordsGetRequest"; }; - return AddAuditDataRequest; + return RecordsGetRequest; })(); - Records.File = (function() { + Records.Record = (function() { /** - * Properties of a File. + * Properties of a Record. * @memberof Records - * @interface IFile - * @property {Uint8Array|null} [recordUid] File recordUid - * @property {Uint8Array|null} [recordKey] File recordKey - * @property {Uint8Array|null} [data] File data - * @property {number|Long|null} [fileSize] File fileSize - * @property {number|null} [thumbSize] File thumbSize - * @property {boolean|null} [isScript] File isScript + * @interface IRecord + * @property {Uint8Array|null} [recordUid] Record recordUid + * @property {Uint8Array|null} [recordKey] Record recordKey + * @property {Records.RecordKeyType|null} [recordKeyType] Record recordKeyType + * @property {Uint8Array|null} [data] Record data + * @property {Uint8Array|null} [extra] Record extra + * @property {number|null} [version] Record version + * @property {number|Long|null} [clientModifiedTime] Record clientModifiedTime + * @property {number|Long|null} [revision] Record revision + * @property {Array.|null} [fileIds] Record fileIds */ /** - * Constructs a new File. + * Constructs a new Record. * @memberof Records - * @classdesc Represents a File. - * @implements IFile + * @classdesc Represents a Record. + * @implements IRecord * @constructor - * @param {Records.IFile=} [properties] Properties to set + * @param {Records.IRecord=} [properties] Properties to set */ - function File(properties) { + function Record(properties) { + this.fileIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -181217,120 +182701,151 @@ export const Records = $root.Records = (() => { } /** - * File recordUid. + * Record recordUid. * @member {Uint8Array} recordUid - * @memberof Records.File + * @memberof Records.Record * @instance */ - File.prototype.recordUid = $util.newBuffer([]); + Record.prototype.recordUid = $util.newBuffer([]); /** - * File recordKey. + * Record recordKey. * @member {Uint8Array} recordKey - * @memberof Records.File + * @memberof Records.Record * @instance */ - File.prototype.recordKey = $util.newBuffer([]); + Record.prototype.recordKey = $util.newBuffer([]); /** - * File data. + * Record recordKeyType. + * @member {Records.RecordKeyType} recordKeyType + * @memberof Records.Record + * @instance + */ + Record.prototype.recordKeyType = 0; + + /** + * Record data. * @member {Uint8Array} data - * @memberof Records.File + * @memberof Records.Record * @instance */ - File.prototype.data = $util.newBuffer([]); + Record.prototype.data = $util.newBuffer([]); /** - * File fileSize. - * @member {number|Long} fileSize - * @memberof Records.File + * Record extra. + * @member {Uint8Array} extra + * @memberof Records.Record * @instance */ - File.prototype.fileSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Record.prototype.extra = $util.newBuffer([]); /** - * File thumbSize. - * @member {number} thumbSize - * @memberof Records.File + * Record version. + * @member {number} version + * @memberof Records.Record * @instance */ - File.prototype.thumbSize = 0; + Record.prototype.version = 0; /** - * File isScript. - * @member {boolean} isScript - * @memberof Records.File + * Record clientModifiedTime. + * @member {number|Long} clientModifiedTime + * @memberof Records.Record * @instance */ - File.prototype.isScript = false; + Record.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new File instance using the specified properties. + * Record revision. + * @member {number|Long} revision + * @memberof Records.Record + * @instance + */ + Record.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Record fileIds. + * @member {Array.} fileIds + * @memberof Records.Record + * @instance + */ + Record.prototype.fileIds = $util.emptyArray; + + /** + * Creates a new Record instance using the specified properties. * @function create - * @memberof Records.File + * @memberof Records.Record * @static - * @param {Records.IFile=} [properties] Properties to set - * @returns {Records.File} File instance + * @param {Records.IRecord=} [properties] Properties to set + * @returns {Records.Record} Record instance */ - File.create = function create(properties) { - return new File(properties); + Record.create = function create(properties) { + return new Record(properties); }; /** - * Encodes the specified File message. Does not implicitly {@link Records.File.verify|verify} messages. + * Encodes the specified Record message. Does not implicitly {@link Records.Record.verify|verify} messages. * @function encode - * @memberof Records.File + * @memberof Records.Record * @static - * @param {Records.IFile} message File message or plain object to encode + * @param {Records.IRecord} message Record message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - File.encode = function encode(message, writer) { + Record.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordKey); + if (message.recordKeyType != null && Object.hasOwnProperty.call(message, "recordKeyType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.recordKeyType); if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); - if (message.fileSize != null && Object.hasOwnProperty.call(message, "fileSize")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.fileSize); - if (message.thumbSize != null && Object.hasOwnProperty.call(message, "thumbSize")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.thumbSize); - if (message.isScript != null && Object.hasOwnProperty.call(message, "isScript")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isScript); + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); + if (message.extra != null && Object.hasOwnProperty.call(message, "extra")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.extra); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.version); + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.clientModifiedTime); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 8, wireType 0 =*/64).int64(message.revision); + if (message.fileIds != null && message.fileIds.length) + for (let i = 0; i < message.fileIds.length; ++i) + writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.fileIds[i]); return writer; }; /** - * Encodes the specified File message, length delimited. Does not implicitly {@link Records.File.verify|verify} messages. + * Encodes the specified Record message, length delimited. Does not implicitly {@link Records.Record.verify|verify} messages. * @function encodeDelimited - * @memberof Records.File + * @memberof Records.Record * @static - * @param {Records.IFile} message File message or plain object to encode + * @param {Records.IRecord} message Record message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - File.encodeDelimited = function encodeDelimited(message, writer) { + Record.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a File message from the specified reader or buffer. + * Decodes a Record message from the specified reader or buffer. * @function decode - * @memberof Records.File + * @memberof Records.Record * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.File} File + * @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 */ - File.decode = function decode(reader, length) { + Record.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.File(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.Record(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -181343,19 +182858,33 @@ export const Records = $root.Records = (() => { break; } case 3: { - message.data = reader.bytes(); + message.recordKeyType = reader.int32(); break; } case 4: { - message.fileSize = reader.int64(); + message.data = reader.bytes(); break; } case 5: { - message.thumbSize = reader.int32(); + message.extra = reader.bytes(); break; } case 6: { - message.isScript = reader.bool(); + message.version = reader.int32(); + break; + } + case 7: { + message.clientModifiedTime = reader.int64(); + break; + } + case 8: { + message.revision = reader.int64(); + break; + } + case 9: { + if (!(message.fileIds && message.fileIds.length)) + message.fileIds = []; + message.fileIds.push(reader.bytes()); break; } default: @@ -181367,30 +182896,30 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a File message from the specified reader or buffer, length delimited. + * Decodes a Record message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.File + * @memberof Records.Record * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.File} File + * @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 */ - File.decodeDelimited = function decodeDelimited(reader) { + Record.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a File message. + * Verifies a Record message. * @function verify - * @memberof Records.File + * @memberof Records.Record * @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) { + Record.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) @@ -181399,33 +182928,56 @@ export const Records = $root.Records = (() => { 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.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"; + 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 File message from a plain object. Also converts values to their respective internal types. + * Creates a Record message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.File + * @memberof Records.Record * @static * @param {Object.} object Plain object - * @returns {Records.File} File + * @returns {Records.Record} Record */ - File.fromObject = function fromObject(object) { - if (object instanceof $root.Records.File) + Record.fromObject = function fromObject(object) { + if (object instanceof $root.Records.Record) return object; - let message = new $root.Records.File(); + let message = new $root.Records.Record(); if (object.recordUid != null) if (typeof object.recordUid === "string") $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); @@ -181436,40 +182988,100 @@ export const Records = $root.Records = (() => { $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); else if (object.recordKey.length >= 0) message.recordKey = object.recordKey; + switch (object.recordKeyType) { + default: + if (typeof object.recordKeyType === "number") { + message.recordKeyType = object.recordKeyType; + break; + } + break; + case "NO_KEY": + case 0: + message.recordKeyType = 0; + break; + case "ENCRYPTED_BY_DATA_KEY": + case 1: + message.recordKeyType = 1; + break; + case "ENCRYPTED_BY_PUBLIC_KEY": + case 2: + message.recordKeyType = 2; + break; + case "ENCRYPTED_BY_DATA_KEY_GCM": + case 3: + message.recordKeyType = 3; + break; + case "ENCRYPTED_BY_PUBLIC_KEY_ECC": + case 4: + message.recordKeyType = 4; + break; + case "ENCRYPTED_BY_ROOT_KEY_CBC": + case 5: + message.recordKeyType = 5; + break; + case "ENCRYPTED_BY_ROOT_KEY_GCM": + case 6: + message.recordKeyType = 6; + break; + } if (object.data != null) if (typeof object.data === "string") $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); else if (object.data.length >= 0) message.data = object.data; - if (object.fileSize != null) + if (object.extra != null) + if (typeof object.extra === "string") + $util.base64.decode(object.extra, message.extra = $util.newBuffer($util.base64.length(object.extra)), 0); + else if (object.extra.length >= 0) + message.extra = object.extra; + if (object.version != null) + message.version = object.version | 0; + if (object.clientModifiedTime != null) if ($util.Long) - (message.fileSize = $util.Long.fromValue(object.fileSize)).unsigned = false; - else if (typeof object.fileSize === "string") - message.fileSize = parseInt(object.fileSize, 10); - else if (typeof object.fileSize === "number") - message.fileSize = object.fileSize; - else if (typeof object.fileSize === "object") - message.fileSize = new $util.LongBits(object.fileSize.low >>> 0, object.fileSize.high >>> 0).toNumber(); - if (object.thumbSize != null) - message.thumbSize = object.thumbSize | 0; - if (object.isScript != null) - message.isScript = Boolean(object.isScript); + (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; + else if (typeof object.clientModifiedTime === "string") + message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); + else if (typeof object.clientModifiedTime === "number") + message.clientModifiedTime = object.clientModifiedTime; + else if (typeof object.clientModifiedTime === "object") + message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if (object.fileIds) { + if (!Array.isArray(object.fileIds)) + throw TypeError(".Records.Record.fileIds: array expected"); + message.fileIds = []; + for (let i = 0; i < object.fileIds.length; ++i) + if (typeof object.fileIds[i] === "string") + $util.base64.decode(object.fileIds[i], message.fileIds[i] = $util.newBuffer($util.base64.length(object.fileIds[i])), 0); + else if (object.fileIds[i].length >= 0) + message.fileIds[i] = object.fileIds[i]; + } return message; }; /** - * Creates a plain object from a File message. Also converts values to other types if specified. + * Creates a plain object from a Record message. Also converts values to other types if specified. * @function toObject - * @memberof Records.File + * @memberof Records.Record * @static - * @param {Records.File} message File + * @param {Records.Record} message Record * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - File.toObject = function toObject(message, options) { + Record.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.fileIds = []; if (options.defaults) { if (options.bytes === String) object.recordUid = ""; @@ -181485,6 +183097,7 @@ export const Records = $root.Records = (() => { if (options.bytes !== Array) object.recordKey = $util.newBuffer(object.recordKey); } + object.recordKeyType = options.enums === String ? "NO_KEY" : 0; if (options.bytes === String) object.data = ""; else { @@ -181492,81 +183105,128 @@ export const Records = $root.Records = (() => { if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } + if (options.bytes === String) + object.extra = ""; + else { + object.extra = []; + if (options.bytes !== Array) + object.extra = $util.newBuffer(object.extra); + } + object.version = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.fileSize = options.longs === String ? "0" : 0; - object.thumbSize = 0; - object.isScript = false; + object.clientModifiedTime = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; } if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.recordKey != null && message.hasOwnProperty("recordKey")) object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; + if (message.recordKeyType != null && message.hasOwnProperty("recordKeyType")) + object.recordKeyType = options.enums === String ? $root.Records.RecordKeyType[message.recordKeyType] === undefined ? message.recordKeyType : $root.Records.RecordKeyType[message.recordKeyType] : message.recordKeyType; if (message.data != null && message.hasOwnProperty("data")) object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.fileSize != null && message.hasOwnProperty("fileSize")) - if (typeof message.fileSize === "number") - object.fileSize = options.longs === String ? String(message.fileSize) : message.fileSize; + if (message.extra != null && message.hasOwnProperty("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")) + object.version = message.version; + if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) + if (typeof message.clientModifiedTime === "number") + object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; 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")) - object.thumbSize = message.thumbSize; - if (message.isScript != null && message.hasOwnProperty("isScript")) - object.isScript = message.isScript; + object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof 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.fileIds && message.fileIds.length) { + object.fileIds = []; + for (let j = 0; j < message.fileIds.length; ++j) + object.fileIds[j] = options.bytes === String ? $util.base64.encode(message.fileIds[j], 0, message.fileIds[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.fileIds[j]) : message.fileIds[j]; + } return object; }; /** - * Converts this File to JSON. + * Converts this Record to JSON. * @function toJSON - * @memberof Records.File + * @memberof Records.Record * @instance * @returns {Object.} JSON object */ - File.prototype.toJSON = function toJSON() { + Record.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for File + * Gets the default type url for Record * @function getTypeUrl - * @memberof Records.File + * @memberof Records.Record * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - File.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Record.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.File"; + return typeUrlPrefix + "/Records.Record"; }; - return File; + return Record; })(); - Records.FilesAddRequest = (function() { + /** + * RecordKeyType enum. + * @name Records.RecordKeyType + * @enum {number} + * @property {number} NO_KEY=0 NO_KEY value + * @property {number} ENCRYPTED_BY_DATA_KEY=1 ENCRYPTED_BY_DATA_KEY value + * @property {number} ENCRYPTED_BY_PUBLIC_KEY=2 ENCRYPTED_BY_PUBLIC_KEY value + * @property {number} ENCRYPTED_BY_DATA_KEY_GCM=3 ENCRYPTED_BY_DATA_KEY_GCM value + * @property {number} ENCRYPTED_BY_PUBLIC_KEY_ECC=4 ENCRYPTED_BY_PUBLIC_KEY_ECC value + * @property {number} ENCRYPTED_BY_ROOT_KEY_CBC=5 ENCRYPTED_BY_ROOT_KEY_CBC value + * @property {number} ENCRYPTED_BY_ROOT_KEY_GCM=6 ENCRYPTED_BY_ROOT_KEY_GCM value + */ + Records.RecordKeyType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NO_KEY"] = 0; + values[valuesById[1] = "ENCRYPTED_BY_DATA_KEY"] = 1; + values[valuesById[2] = "ENCRYPTED_BY_PUBLIC_KEY"] = 2; + values[valuesById[3] = "ENCRYPTED_BY_DATA_KEY_GCM"] = 3; + values[valuesById[4] = "ENCRYPTED_BY_PUBLIC_KEY_ECC"] = 4; + values[valuesById[5] = "ENCRYPTED_BY_ROOT_KEY_CBC"] = 5; + values[valuesById[6] = "ENCRYPTED_BY_ROOT_KEY_GCM"] = 6; + return values; + })(); + + Records.FolderRecordKey = (function() { /** - * Properties of a FilesAddRequest. + * Properties of a FolderRecordKey. * @memberof Records - * @interface IFilesAddRequest - * @property {Array.|null} [files] FilesAddRequest files - * @property {number|Long|null} [clientTime] FilesAddRequest clientTime + * @interface IFolderRecordKey + * @property {Uint8Array|null} [folderUid] FolderRecordKey folderUid + * @property {Uint8Array|null} [recordUid] FolderRecordKey recordUid + * @property {Uint8Array|null} [recordKey] FolderRecordKey recordKey */ /** - * Constructs a new FilesAddRequest. + * Constructs a new FolderRecordKey. * @memberof Records - * @classdesc Represents a FilesAddRequest. - * @implements IFilesAddRequest + * @classdesc Represents a FolderRecordKey. + * @implements IFolderRecordKey * @constructor - * @param {Records.IFilesAddRequest=} [properties] Properties to set + * @param {Records.IFolderRecordKey=} [properties] Properties to set */ - function FilesAddRequest(properties) { - this.files = []; + function FolderRecordKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -181574,92 +183234,103 @@ export const Records = $root.Records = (() => { } /** - * FilesAddRequest files. - * @member {Array.} files - * @memberof Records.FilesAddRequest + * FolderRecordKey folderUid. + * @member {Uint8Array} folderUid + * @memberof Records.FolderRecordKey * @instance */ - FilesAddRequest.prototype.files = $util.emptyArray; + FolderRecordKey.prototype.folderUid = $util.newBuffer([]); /** - * FilesAddRequest clientTime. - * @member {number|Long} clientTime - * @memberof Records.FilesAddRequest + * FolderRecordKey recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.FolderRecordKey * @instance */ - FilesAddRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FolderRecordKey.prototype.recordUid = $util.newBuffer([]); /** - * Creates a new FilesAddRequest instance using the specified properties. + * FolderRecordKey recordKey. + * @member {Uint8Array} recordKey + * @memberof Records.FolderRecordKey + * @instance + */ + FolderRecordKey.prototype.recordKey = $util.newBuffer([]); + + /** + * Creates a new FolderRecordKey instance using the specified properties. * @function create - * @memberof Records.FilesAddRequest + * @memberof Records.FolderRecordKey * @static - * @param {Records.IFilesAddRequest=} [properties] Properties to set - * @returns {Records.FilesAddRequest} FilesAddRequest instance + * @param {Records.IFolderRecordKey=} [properties] Properties to set + * @returns {Records.FolderRecordKey} FolderRecordKey instance */ - FilesAddRequest.create = function create(properties) { - return new FilesAddRequest(properties); + FolderRecordKey.create = function create(properties) { + return new FolderRecordKey(properties); }; /** - * Encodes the specified FilesAddRequest message. Does not implicitly {@link Records.FilesAddRequest.verify|verify} messages. + * Encodes the specified FolderRecordKey message. Does not implicitly {@link Records.FolderRecordKey.verify|verify} messages. * @function encode - * @memberof Records.FilesAddRequest + * @memberof Records.FolderRecordKey * @static - * @param {Records.IFilesAddRequest} message FilesAddRequest message or plain object to encode + * @param {Records.IFolderRecordKey} message FolderRecordKey message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilesAddRequest.encode = function encode(message, writer) { + FolderRecordKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.files != null && message.files.length) - for (let i = 0; i < message.files.length; ++i) - $root.Records.File.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordKey); return writer; }; /** - * Encodes the specified FilesAddRequest message, length delimited. Does not implicitly {@link Records.FilesAddRequest.verify|verify} messages. + * Encodes the specified FolderRecordKey message, length delimited. Does not implicitly {@link Records.FolderRecordKey.verify|verify} messages. * @function encodeDelimited - * @memberof Records.FilesAddRequest + * @memberof Records.FolderRecordKey * @static - * @param {Records.IFilesAddRequest} message FilesAddRequest message or plain object to encode + * @param {Records.IFolderRecordKey} message FolderRecordKey message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilesAddRequest.encodeDelimited = function encodeDelimited(message, writer) { + FolderRecordKey.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FilesAddRequest message from the specified reader or buffer. + * Decodes a FolderRecordKey message from the specified reader or buffer. * @function decode - * @memberof Records.FilesAddRequest + * @memberof Records.FolderRecordKey * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.FilesAddRequest} FilesAddRequest + * @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 */ - FilesAddRequest.decode = function decode(reader, length) { + FolderRecordKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FilesAddRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FolderRecordKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.files && message.files.length)) - message.files = []; - message.files.push($root.Records.File.decode(reader, reader.uint32())); + message.folderUid = reader.bytes(); break; } case 2: { - message.clientTime = reader.int64(); + message.recordUid = reader.bytes(); + break; + } + case 3: { + message.recordKey = reader.bytes(); break; } default: @@ -181671,181 +183342,168 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a FilesAddRequest message from the specified reader or buffer, length delimited. + * Decodes a FolderRecordKey message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.FilesAddRequest + * @memberof Records.FolderRecordKey * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.FilesAddRequest} FilesAddRequest + * @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 */ - FilesAddRequest.decodeDelimited = function decodeDelimited(reader) { + FolderRecordKey.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FilesAddRequest message. + * Verifies a FolderRecordKey message. * @function verify - * @memberof Records.FilesAddRequest + * @memberof Records.FolderRecordKey * @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) { + FolderRecordKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - 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"; + 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 FilesAddRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FolderRecordKey message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.FilesAddRequest + * @memberof Records.FolderRecordKey * @static * @param {Object.} object Plain object - * @returns {Records.FilesAddRequest} FilesAddRequest + * @returns {Records.FolderRecordKey} FolderRecordKey */ - FilesAddRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.FilesAddRequest) + FolderRecordKey.fromObject = function fromObject(object) { + if (object instanceof $root.Records.FolderRecordKey) return object; - let message = new $root.Records.FilesAddRequest(); - if (object.files) { - if (!Array.isArray(object.files)) - throw TypeError(".Records.FilesAddRequest.files: array expected"); - message.files = []; - for (let i = 0; i < object.files.length; ++i) { - if (typeof object.files[i] !== "object") - throw TypeError(".Records.FilesAddRequest.files: object expected"); - message.files[i] = $root.Records.File.fromObject(object.files[i]); - } - } - if (object.clientTime != null) - if ($util.Long) - (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = false; - else if (typeof object.clientTime === "string") - message.clientTime = parseInt(object.clientTime, 10); - else if (typeof object.clientTime === "number") - message.clientTime = object.clientTime; - else if (typeof object.clientTime === "object") - message.clientTime = new $util.LongBits(object.clientTime.low >>> 0, object.clientTime.high >>> 0).toNumber(); + let message = new $root.Records.FolderRecordKey(); + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.recordKey != null) + if (typeof object.recordKey === "string") + $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); + else if (object.recordKey.length >= 0) + message.recordKey = object.recordKey; return message; }; /** - * Creates a plain object from a FilesAddRequest message. Also converts values to other types if specified. + * Creates a plain object from a FolderRecordKey message. Also converts values to other types if specified. * @function toObject - * @memberof Records.FilesAddRequest + * @memberof Records.FolderRecordKey * @static - * @param {Records.FilesAddRequest} message FilesAddRequest + * @param {Records.FolderRecordKey} message FolderRecordKey * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FilesAddRequest.toObject = function toObject(message, options) { + FolderRecordKey.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.files = []; - if (options.defaults) - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.clientTime = options.longs === String ? "0" : 0; - if (message.files && message.files.length) { - object.files = []; - for (let j = 0; j < message.files.length; ++j) - object.files[j] = $root.Records.File.toObject(message.files[j], options); + if (options.defaults) { + if (options.bytes === String) + object.folderUid = ""; + else { + object.folderUid = []; + if (options.bytes !== Array) + object.folderUid = $util.newBuffer(object.folderUid); + } + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if (options.bytes === String) + object.recordKey = ""; + else { + object.recordKey = []; + if (options.bytes !== Array) + object.recordKey = $util.newBuffer(object.recordKey); + } } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (typeof message.clientTime === "number") - object.clientTime = options.longs === String ? String(message.clientTime) : message.clientTime; - else - object.clientTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientTime) : options.longs === Number ? new $util.LongBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0).toNumber() : message.clientTime; + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.recordKey != null && message.hasOwnProperty("recordKey")) + object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; return object; }; /** - * Converts this FilesAddRequest to JSON. + * Converts this FolderRecordKey to JSON. * @function toJSON - * @memberof Records.FilesAddRequest + * @memberof Records.FolderRecordKey * @instance * @returns {Object.} JSON object */ - FilesAddRequest.prototype.toJSON = function toJSON() { + FolderRecordKey.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FilesAddRequest + * Gets the default type url for FolderRecordKey * @function getTypeUrl - * @memberof Records.FilesAddRequest + * @memberof Records.FolderRecordKey * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FilesAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FolderRecordKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.FilesAddRequest"; + return typeUrlPrefix + "/Records.FolderRecordKey"; }; - return FilesAddRequest; - })(); - - /** - * FileAddResult enum. - * @name Records.FileAddResult - * @enum {number} - * @property {number} FA_SUCCESS=0 FA_SUCCESS value - * @property {number} FA_ERROR=1 FA_ERROR value - */ - Records.FileAddResult = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FA_SUCCESS"] = 0; - values[valuesById[1] = "FA_ERROR"] = 1; - return values; + return FolderRecordKey; })(); - Records.FileAddStatus = (function() { + Records.Folder = (function() { /** - * Properties of a FileAddStatus. + * Properties of a Folder. * @memberof Records - * @interface IFileAddStatus - * @property {Uint8Array|null} [recordUid] FileAddStatus recordUid - * @property {Records.FileAddResult|null} [status] FileAddStatus status - * @property {string|null} [url] FileAddStatus url - * @property {string|null} [parameters] FileAddStatus parameters - * @property {string|null} [thumbnailParameters] FileAddStatus thumbnailParameters - * @property {number|null} [successStatusCode] FileAddStatus successStatusCode + * @interface IFolder + * @property {Uint8Array|null} [folderUid] Folder folderUid + * @property {Uint8Array|null} [folderKey] Folder folderKey + * @property {Records.RecordKeyType|null} [folderKeyType] Folder folderKeyType */ /** - * Constructs a new FileAddStatus. + * Constructs a new Folder. * @memberof Records - * @classdesc Represents a FileAddStatus. - * @implements IFileAddStatus + * @classdesc Represents a Folder. + * @implements IFolder * @constructor - * @param {Records.IFileAddStatus=} [properties] Properties to set + * @param {Records.IFolder=} [properties] Properties to set */ - function FileAddStatus(properties) { + function Folder(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -181853,145 +183511,103 @@ export const Records = $root.Records = (() => { } /** - * FileAddStatus recordUid. - * @member {Uint8Array} recordUid - * @memberof Records.FileAddStatus - * @instance - */ - FileAddStatus.prototype.recordUid = $util.newBuffer([]); - - /** - * FileAddStatus status. - * @member {Records.FileAddResult} status - * @memberof Records.FileAddStatus - * @instance - */ - FileAddStatus.prototype.status = 0; - - /** - * FileAddStatus url. - * @member {string} url - * @memberof Records.FileAddStatus - * @instance - */ - FileAddStatus.prototype.url = ""; - - /** - * FileAddStatus parameters. - * @member {string} parameters - * @memberof Records.FileAddStatus + * Folder folderUid. + * @member {Uint8Array} folderUid + * @memberof Records.Folder * @instance */ - FileAddStatus.prototype.parameters = ""; + Folder.prototype.folderUid = $util.newBuffer([]); /** - * FileAddStatus thumbnailParameters. - * @member {string} thumbnailParameters - * @memberof Records.FileAddStatus + * Folder folderKey. + * @member {Uint8Array} folderKey + * @memberof Records.Folder * @instance */ - FileAddStatus.prototype.thumbnailParameters = ""; + Folder.prototype.folderKey = $util.newBuffer([]); /** - * FileAddStatus successStatusCode. - * @member {number} successStatusCode - * @memberof Records.FileAddStatus + * Folder folderKeyType. + * @member {Records.RecordKeyType} folderKeyType + * @memberof Records.Folder * @instance */ - FileAddStatus.prototype.successStatusCode = 0; + Folder.prototype.folderKeyType = 0; /** - * Creates a new FileAddStatus instance using the specified properties. + * Creates a new Folder instance using the specified properties. * @function create - * @memberof Records.FileAddStatus + * @memberof Records.Folder * @static - * @param {Records.IFileAddStatus=} [properties] Properties to set - * @returns {Records.FileAddStatus} FileAddStatus instance + * @param {Records.IFolder=} [properties] Properties to set + * @returns {Records.Folder} Folder instance */ - FileAddStatus.create = function create(properties) { - return new FileAddStatus(properties); + Folder.create = function create(properties) { + return new Folder(properties); }; /** - * Encodes the specified FileAddStatus message. Does not implicitly {@link Records.FileAddStatus.verify|verify} messages. + * Encodes the specified Folder message. Does not implicitly {@link Records.Folder.verify|verify} messages. * @function encode - * @memberof Records.FileAddStatus + * @memberof Records.Folder * @static - * @param {Records.IFileAddStatus} message FileAddStatus message or plain object to encode + * @param {Records.IFolder} message Folder message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileAddStatus.encode = function encode(message, writer) { + Folder.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); - if (message.url != null && Object.hasOwnProperty.call(message, "url")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.url); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.parameters); - if (message.thumbnailParameters != null && Object.hasOwnProperty.call(message, "thumbnailParameters")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.thumbnailParameters); - if (message.successStatusCode != null && Object.hasOwnProperty.call(message, "successStatusCode")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.successStatusCode); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); + if (message.folderKey != null && Object.hasOwnProperty.call(message, "folderKey")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.folderKey); + if (message.folderKeyType != null && Object.hasOwnProperty.call(message, "folderKeyType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.folderKeyType); return writer; }; /** - * Encodes the specified FileAddStatus message, length delimited. Does not implicitly {@link Records.FileAddStatus.verify|verify} messages. + * Encodes the specified Folder message, length delimited. Does not implicitly {@link Records.Folder.verify|verify} messages. * @function encodeDelimited - * @memberof Records.FileAddStatus + * @memberof Records.Folder * @static - * @param {Records.IFileAddStatus} message FileAddStatus message or plain object to encode + * @param {Records.IFolder} message Folder message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileAddStatus.encodeDelimited = function encodeDelimited(message, writer) { + Folder.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FileAddStatus message from the specified reader or buffer. + * Decodes a Folder message from the specified reader or buffer. * @function decode - * @memberof Records.FileAddStatus + * @memberof Records.Folder * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.FileAddStatus} FileAddStatus + * @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 */ - FileAddStatus.decode = function decode(reader, length) { + Folder.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FileAddStatus(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.Folder(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + message.folderUid = reader.bytes(); break; } case 2: { - message.status = reader.int32(); + message.folderKey = reader.bytes(); break; } case 3: { - message.url = reader.string(); - break; - } - case 4: { - message.parameters = reader.string(); - break; - } - case 5: { - message.thumbnailParameters = reader.string(); - break; - } - case 6: { - message.successStatusCode = reader.int32(); + message.folderKeyType = reader.int32(); break; } default: @@ -182003,193 +183619,206 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a FileAddStatus message from the specified reader or buffer, length delimited. + * Decodes a Folder message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.FileAddStatus + * @memberof Records.Folder * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.FileAddStatus} FileAddStatus + * @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 */ - FileAddStatus.decodeDelimited = function decodeDelimited(reader) { + Folder.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FileAddStatus message. + * Verifies a Folder message. * @function verify - * @memberof Records.FileAddStatus + * @memberof Records.Folder * @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) { + Folder.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { + 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 "status: enum value expected"; + return "folderKeyType: enum value expected"; case 0: case 1: + case 2: + case 3: + case 4: + case 5: + case 6: 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. + * Creates a Folder message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.FileAddStatus + * @memberof Records.Folder * @static * @param {Object.} object Plain object - * @returns {Records.FileAddStatus} FileAddStatus + * @returns {Records.Folder} Folder */ - FileAddStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Records.FileAddStatus) + Folder.fromObject = function fromObject(object) { + if (object instanceof $root.Records.Folder) return object; - let message = new $root.Records.FileAddStatus(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - switch (object.status) { + let message = new $root.Records.Folder(); + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.folderKey != null) + if (typeof object.folderKey === "string") + $util.base64.decode(object.folderKey, message.folderKey = $util.newBuffer($util.base64.length(object.folderKey)), 0); + else if (object.folderKey.length >= 0) + message.folderKey = object.folderKey; + switch (object.folderKeyType) { default: - if (typeof object.status === "number") { - message.status = object.status; + if (typeof object.folderKeyType === "number") { + message.folderKeyType = object.folderKeyType; break; } break; - case "FA_SUCCESS": + case "NO_KEY": case 0: - message.status = 0; + message.folderKeyType = 0; break; - case "FA_ERROR": + case "ENCRYPTED_BY_DATA_KEY": case 1: - message.status = 1; + message.folderKeyType = 1; + break; + case "ENCRYPTED_BY_PUBLIC_KEY": + case 2: + message.folderKeyType = 2; + break; + case "ENCRYPTED_BY_DATA_KEY_GCM": + case 3: + message.folderKeyType = 3; + break; + case "ENCRYPTED_BY_PUBLIC_KEY_ECC": + case 4: + message.folderKeyType = 4; + break; + case "ENCRYPTED_BY_ROOT_KEY_CBC": + case 5: + message.folderKeyType = 5; + break; + case "ENCRYPTED_BY_ROOT_KEY_GCM": + case 6: + message.folderKeyType = 6; break; } - if (object.url != null) - message.url = String(object.url); - if (object.parameters != null) - message.parameters = String(object.parameters); - if (object.thumbnailParameters != null) - message.thumbnailParameters = String(object.thumbnailParameters); - if (object.successStatusCode != null) - message.successStatusCode = object.successStatusCode | 0; return message; }; /** - * Creates a plain object from a FileAddStatus message. Also converts values to other types if specified. + * Creates a plain object from a Folder message. Also converts values to other types if specified. * @function toObject - * @memberof Records.FileAddStatus + * @memberof Records.Folder * @static - * @param {Records.FileAddStatus} message FileAddStatus + * @param {Records.Folder} message Folder * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FileAddStatus.toObject = function toObject(message, options) { + Folder.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { if (options.bytes === String) - object.recordUid = ""; + object.folderUid = ""; else { - object.recordUid = []; + object.folderUid = []; if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + object.folderUid = $util.newBuffer(object.folderUid); } - object.status = options.enums === String ? "FA_SUCCESS" : 0; - object.url = ""; - object.parameters = ""; - object.thumbnailParameters = ""; - object.successStatusCode = 0; + if (options.bytes === String) + object.folderKey = ""; + else { + object.folderKey = []; + if (options.bytes !== Array) + object.folderKey = $util.newBuffer(object.folderKey); + } + object.folderKeyType = options.enums === String ? "NO_KEY" : 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.status != null && message.hasOwnProperty("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")) - object.url = message.url; - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = message.parameters; - if (message.thumbnailParameters != null && message.hasOwnProperty("thumbnailParameters")) - object.thumbnailParameters = message.thumbnailParameters; - if (message.successStatusCode != null && message.hasOwnProperty("successStatusCode")) - object.successStatusCode = message.successStatusCode; + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.folderKey != null && message.hasOwnProperty("folderKey")) + object.folderKey = options.bytes === String ? $util.base64.encode(message.folderKey, 0, message.folderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderKey) : message.folderKey; + if (message.folderKeyType != null && message.hasOwnProperty("folderKeyType")) + object.folderKeyType = options.enums === String ? $root.Records.RecordKeyType[message.folderKeyType] === undefined ? message.folderKeyType : $root.Records.RecordKeyType[message.folderKeyType] : message.folderKeyType; return object; }; /** - * Converts this FileAddStatus to JSON. + * Converts this Folder to JSON. * @function toJSON - * @memberof Records.FileAddStatus + * @memberof Records.Folder * @instance * @returns {Object.} JSON object */ - FileAddStatus.prototype.toJSON = function toJSON() { + Folder.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FileAddStatus + * Gets the default type url for Folder * @function getTypeUrl - * @memberof Records.FileAddStatus + * @memberof Records.Folder * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FileAddStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Folder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.FileAddStatus"; + return typeUrlPrefix + "/Records.Folder"; }; - return FileAddStatus; + return Folder; })(); - Records.FilesAddResponse = (function() { + Records.Team = (function() { /** - * Properties of a FilesAddResponse. + * Properties of a Team. * @memberof Records - * @interface IFilesAddResponse - * @property {Array.|null} [files] FilesAddResponse files - * @property {number|Long|null} [revision] FilesAddResponse revision + * @interface ITeam + * @property {Uint8Array|null} [teamUid] Team teamUid + * @property {Uint8Array|null} [teamKey] Team teamKey + * @property {Uint8Array|null} [teamPrivateKey] Team teamPrivateKey + * @property {Records.RecordKeyType|null} [teamKeyType] Team teamKeyType + * @property {Array.|null} [folders] Team folders */ /** - * Constructs a new FilesAddResponse. + * Constructs a new Team. * @memberof Records - * @classdesc Represents a FilesAddResponse. - * @implements IFilesAddResponse + * @classdesc Represents a Team. + * @implements ITeam * @constructor - * @param {Records.IFilesAddResponse=} [properties] Properties to set + * @param {Records.ITeam=} [properties] Properties to set */ - function FilesAddResponse(properties) { - this.files = []; + function Team(properties) { + this.folders = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -182197,92 +183826,134 @@ export const Records = $root.Records = (() => { } /** - * FilesAddResponse files. - * @member {Array.} files - * @memberof Records.FilesAddResponse + * Team teamUid. + * @member {Uint8Array} teamUid + * @memberof Records.Team * @instance */ - FilesAddResponse.prototype.files = $util.emptyArray; + Team.prototype.teamUid = $util.newBuffer([]); /** - * FilesAddResponse revision. - * @member {number|Long} revision - * @memberof Records.FilesAddResponse + * Team teamKey. + * @member {Uint8Array} teamKey + * @memberof Records.Team * @instance */ - FilesAddResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Team.prototype.teamKey = $util.newBuffer([]); /** - * Creates a new FilesAddResponse instance using the specified properties. + * Team teamPrivateKey. + * @member {Uint8Array} teamPrivateKey + * @memberof Records.Team + * @instance + */ + Team.prototype.teamPrivateKey = $util.newBuffer([]); + + /** + * Team teamKeyType. + * @member {Records.RecordKeyType} teamKeyType + * @memberof Records.Team + * @instance + */ + Team.prototype.teamKeyType = 0; + + /** + * Team folders. + * @member {Array.} folders + * @memberof Records.Team + * @instance + */ + Team.prototype.folders = $util.emptyArray; + + /** + * Creates a new Team instance using the specified properties. * @function create - * @memberof Records.FilesAddResponse + * @memberof Records.Team * @static - * @param {Records.IFilesAddResponse=} [properties] Properties to set - * @returns {Records.FilesAddResponse} FilesAddResponse instance + * @param {Records.ITeam=} [properties] Properties to set + * @returns {Records.Team} Team instance */ - FilesAddResponse.create = function create(properties) { - return new FilesAddResponse(properties); + Team.create = function create(properties) { + return new Team(properties); }; /** - * Encodes the specified FilesAddResponse message. Does not implicitly {@link Records.FilesAddResponse.verify|verify} messages. + * Encodes the specified Team message. Does not implicitly {@link Records.Team.verify|verify} messages. * @function encode - * @memberof Records.FilesAddResponse + * @memberof Records.Team * @static - * @param {Records.IFilesAddResponse} message FilesAddResponse message or plain object to encode + * @param {Records.ITeam} message Team message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilesAddResponse.encode = function encode(message, writer) { + Team.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.files != null && message.files.length) - for (let i = 0; i < message.files.length; ++i) - $root.Records.FileAddStatus.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); + if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); + if (message.teamKey != null && Object.hasOwnProperty.call(message, "teamKey")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.teamKey); + if (message.teamPrivateKey != null && Object.hasOwnProperty.call(message, "teamPrivateKey")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.teamPrivateKey); + if (message.teamKeyType != null && Object.hasOwnProperty.call(message, "teamKeyType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.teamKeyType); + if (message.folders != null && message.folders.length) + for (let i = 0; i < message.folders.length; ++i) + $root.Records.Folder.encode(message.folders[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified FilesAddResponse message, length delimited. Does not implicitly {@link Records.FilesAddResponse.verify|verify} messages. + * Encodes the specified Team message, length delimited. Does not implicitly {@link Records.Team.verify|verify} messages. * @function encodeDelimited - * @memberof Records.FilesAddResponse + * @memberof Records.Team * @static - * @param {Records.IFilesAddResponse} message FilesAddResponse message or plain object to encode + * @param {Records.ITeam} message Team message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilesAddResponse.encodeDelimited = function encodeDelimited(message, writer) { + Team.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FilesAddResponse message from the specified reader or buffer. + * Decodes a Team message from the specified reader or buffer. * @function decode - * @memberof Records.FilesAddResponse + * @memberof Records.Team * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.FilesAddResponse} FilesAddResponse + * @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 */ - FilesAddResponse.decode = function decode(reader, length) { + Team.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FilesAddResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.Team(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.files && message.files.length)) - message.files = []; - message.files.push($root.Records.FileAddStatus.decode(reader, reader.uint32())); + message.teamUid = reader.bytes(); break; } case 2: { - message.revision = reader.int64(); + message.teamKey = reader.bytes(); + break; + } + case 3: { + message.teamPrivateKey = reader.bytes(); + break; + } + case 4: { + message.teamKeyType = reader.int32(); + break; + } + case 5: { + if (!(message.folders && message.folders.length)) + message.folders = []; + message.folders.push($root.Records.Folder.decode(reader, reader.uint32())); break; } default: @@ -182294,165 +183965,251 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a FilesAddResponse message from the specified reader or buffer, length delimited. + * Decodes a Team message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.FilesAddResponse + * @memberof Records.Team * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.FilesAddResponse} FilesAddResponse + * @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 */ - FilesAddResponse.decodeDelimited = function decodeDelimited(reader) { + Team.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FilesAddResponse message. + * Verifies a Team message. * @function verify - * @memberof Records.FilesAddResponse + * @memberof Records.Team * @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) { + Team.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); + 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]); if (error) - return "files." + error; + return "folders." + 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. + * Creates a Team message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.FilesAddResponse + * @memberof Records.Team * @static * @param {Object.} object Plain object - * @returns {Records.FilesAddResponse} FilesAddResponse + * @returns {Records.Team} Team */ - FilesAddResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.FilesAddResponse) + Team.fromObject = function fromObject(object) { + if (object instanceof $root.Records.Team) return object; - let message = new $root.Records.FilesAddResponse(); - if (object.files) { - if (!Array.isArray(object.files)) - throw TypeError(".Records.FilesAddResponse.files: array expected"); - message.files = []; - for (let i = 0; i < object.files.length; ++i) { - if (typeof object.files[i] !== "object") - throw TypeError(".Records.FilesAddResponse.files: object expected"); - message.files[i] = $root.Records.FileAddStatus.fromObject(object.files[i]); + let message = new $root.Records.Team(); + if (object.teamUid != null) + if (typeof object.teamUid === "string") + $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); + else if (object.teamUid.length >= 0) + message.teamUid = object.teamUid; + if (object.teamKey != null) + if (typeof object.teamKey === "string") + $util.base64.decode(object.teamKey, message.teamKey = $util.newBuffer($util.base64.length(object.teamKey)), 0); + else if (object.teamKey.length >= 0) + message.teamKey = object.teamKey; + if (object.teamPrivateKey != null) + if (typeof object.teamPrivateKey === "string") + $util.base64.decode(object.teamPrivateKey, message.teamPrivateKey = $util.newBuffer($util.base64.length(object.teamPrivateKey)), 0); + else if (object.teamPrivateKey.length >= 0) + message.teamPrivateKey = object.teamPrivateKey; + switch (object.teamKeyType) { + default: + if (typeof object.teamKeyType === "number") { + message.teamKeyType = object.teamKeyType; + break; + } + break; + case "NO_KEY": + case 0: + message.teamKeyType = 0; + break; + case "ENCRYPTED_BY_DATA_KEY": + case 1: + message.teamKeyType = 1; + break; + case "ENCRYPTED_BY_PUBLIC_KEY": + case 2: + message.teamKeyType = 2; + break; + case "ENCRYPTED_BY_DATA_KEY_GCM": + case 3: + message.teamKeyType = 3; + break; + case "ENCRYPTED_BY_PUBLIC_KEY_ECC": + case 4: + message.teamKeyType = 4; + break; + case "ENCRYPTED_BY_ROOT_KEY_CBC": + case 5: + message.teamKeyType = 5; + break; + case "ENCRYPTED_BY_ROOT_KEY_GCM": + case 6: + message.teamKeyType = 6; + break; + } + if (object.folders) { + if (!Array.isArray(object.folders)) + throw TypeError(".Records.Team.folders: array expected"); + message.folders = []; + for (let i = 0; i < object.folders.length; ++i) { + if (typeof object.folders[i] !== "object") + throw TypeError(".Records.Team.folders: object expected"); + message.folders[i] = $root.Records.Folder.fromObject(object.folders[i]); } } - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a FilesAddResponse message. Also converts values to other types if specified. + * Creates a plain object from a Team message. Also converts values to other types if specified. * @function toObject - * @memberof Records.FilesAddResponse + * @memberof Records.Team * @static - * @param {Records.FilesAddResponse} message FilesAddResponse + * @param {Records.Team} message Team * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FilesAddResponse.toObject = function toObject(message, options) { + Team.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.files = []; - if (options.defaults) - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (message.files && message.files.length) { - object.files = []; - for (let j = 0; j < message.files.length; ++j) - object.files[j] = $root.Records.FileAddStatus.toObject(message.files[j], options); + object.folders = []; + if (options.defaults) { + if (options.bytes === String) + object.teamUid = ""; + else { + object.teamUid = []; + if (options.bytes !== Array) + object.teamUid = $util.newBuffer(object.teamUid); + } + if (options.bytes === String) + object.teamKey = ""; + else { + object.teamKey = []; + if (options.bytes !== Array) + object.teamKey = $util.newBuffer(object.teamKey); + } + if (options.bytes === String) + object.teamPrivateKey = ""; + else { + object.teamPrivateKey = []; + if (options.bytes !== Array) + object.teamPrivateKey = $util.newBuffer(object.teamPrivateKey); + } + object.teamKeyType = options.enums === String ? "NO_KEY" : 0; + } + if (message.teamUid != null && message.hasOwnProperty("teamUid")) + object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; + if (message.teamKey != null && message.hasOwnProperty("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")) + 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")) + 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 = []; + for (let j = 0; j < message.folders.length; ++j) + object.folders[j] = $root.Records.Folder.toObject(message.folders[j], options); } - if (message.revision != null && message.hasOwnProperty("revision")) - 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; return object; }; /** - * Converts this FilesAddResponse to JSON. + * Converts this Team to JSON. * @function toJSON - * @memberof Records.FilesAddResponse + * @memberof Records.Team * @instance * @returns {Object.} JSON object */ - FilesAddResponse.prototype.toJSON = function toJSON() { + Team.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FilesAddResponse + * Gets the default type url for Team * @function getTypeUrl - * @memberof Records.FilesAddResponse + * @memberof Records.Team * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FilesAddResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Team.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.FilesAddResponse"; + return typeUrlPrefix + "/Records.Team"; }; - return FilesAddResponse; + return Team; })(); - Records.FilesGetRequest = (function() { + Records.RecordsGetResponse = (function() { /** - * Properties of a FilesGetRequest. + * Properties of a RecordsGetResponse. * @memberof Records - * @interface IFilesGetRequest - * @property {Array.|null} [recordUids] FilesGetRequest recordUids - * @property {boolean|null} [forThumbnails] FilesGetRequest forThumbnails - * @property {string|null} [emergencyAccessAccountOwner] FilesGetRequest emergencyAccessAccountOwner + * @interface IRecordsGetResponse + * @property {Array.|null} [records] RecordsGetResponse records + * @property {Array.|null} [folderRecordKeys] RecordsGetResponse folderRecordKeys + * @property {Array.|null} [folders] RecordsGetResponse folders + * @property {Array.|null} [teams] RecordsGetResponse teams */ /** - * Constructs a new FilesGetRequest. + * Constructs a new RecordsGetResponse. * @memberof Records - * @classdesc Represents a FilesGetRequest. - * @implements IFilesGetRequest + * @classdesc Represents a RecordsGetResponse. + * @implements IRecordsGetResponse * @constructor - * @param {Records.IFilesGetRequest=} [properties] Properties to set + * @param {Records.IRecordsGetResponse=} [properties] Properties to set */ - function FilesGetRequest(properties) { - this.recordUids = []; + function RecordsGetResponse(properties) { + this.records = []; + this.folderRecordKeys = []; + this.folders = []; + this.teams = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -182460,106 +184217,129 @@ export const Records = $root.Records = (() => { } /** - * FilesGetRequest recordUids. - * @member {Array.} recordUids - * @memberof Records.FilesGetRequest + * RecordsGetResponse records. + * @member {Array.} records + * @memberof Records.RecordsGetResponse * @instance */ - FilesGetRequest.prototype.recordUids = $util.emptyArray; + RecordsGetResponse.prototype.records = $util.emptyArray; /** - * FilesGetRequest forThumbnails. - * @member {boolean} forThumbnails - * @memberof Records.FilesGetRequest + * RecordsGetResponse folderRecordKeys. + * @member {Array.} folderRecordKeys + * @memberof Records.RecordsGetResponse * @instance */ - FilesGetRequest.prototype.forThumbnails = false; + RecordsGetResponse.prototype.folderRecordKeys = $util.emptyArray; /** - * FilesGetRequest emergencyAccessAccountOwner. - * @member {string} emergencyAccessAccountOwner - * @memberof Records.FilesGetRequest + * RecordsGetResponse folders. + * @member {Array.} folders + * @memberof Records.RecordsGetResponse * @instance */ - FilesGetRequest.prototype.emergencyAccessAccountOwner = ""; + RecordsGetResponse.prototype.folders = $util.emptyArray; /** - * Creates a new FilesGetRequest instance using the specified properties. + * RecordsGetResponse teams. + * @member {Array.} teams + * @memberof Records.RecordsGetResponse + * @instance + */ + RecordsGetResponse.prototype.teams = $util.emptyArray; + + /** + * Creates a new RecordsGetResponse instance using the specified properties. * @function create - * @memberof Records.FilesGetRequest + * @memberof Records.RecordsGetResponse * @static - * @param {Records.IFilesGetRequest=} [properties] Properties to set - * @returns {Records.FilesGetRequest} FilesGetRequest instance + * @param {Records.IRecordsGetResponse=} [properties] Properties to set + * @returns {Records.RecordsGetResponse} RecordsGetResponse instance */ - FilesGetRequest.create = function create(properties) { - return new FilesGetRequest(properties); + RecordsGetResponse.create = function create(properties) { + return new RecordsGetResponse(properties); }; /** - * Encodes the specified FilesGetRequest message. Does not implicitly {@link Records.FilesGetRequest.verify|verify} messages. + * Encodes the specified RecordsGetResponse message. Does not implicitly {@link Records.RecordsGetResponse.verify|verify} messages. * @function encode - * @memberof Records.FilesGetRequest + * @memberof Records.RecordsGetResponse * @static - * @param {Records.IFilesGetRequest} message FilesGetRequest message or plain object to encode + * @param {Records.IRecordsGetResponse} message RecordsGetResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilesGetRequest.encode = function encode(message, writer) { + RecordsGetResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUids != null && message.recordUids.length) - for (let i = 0; i < message.recordUids.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUids[i]); - if (message.forThumbnails != null && Object.hasOwnProperty.call(message, "forThumbnails")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.forThumbnails); - if (message.emergencyAccessAccountOwner != null && Object.hasOwnProperty.call(message, "emergencyAccessAccountOwner")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.emergencyAccessAccountOwner); + if (message.records != null && message.records.length) + for (let i = 0; i < message.records.length; ++i) + $root.Records.Record.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.folderRecordKeys != null && message.folderRecordKeys.length) + for (let i = 0; i < message.folderRecordKeys.length; ++i) + $root.Records.FolderRecordKey.encode(message.folderRecordKeys[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.folders != null && message.folders.length) + for (let i = 0; i < message.folders.length; ++i) + $root.Records.Folder.encode(message.folders[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.teams != null && message.teams.length) + for (let i = 0; i < message.teams.length; ++i) + $root.Records.Team.encode(message.teams[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified FilesGetRequest message, length delimited. Does not implicitly {@link Records.FilesGetRequest.verify|verify} messages. + * Encodes the specified RecordsGetResponse message, length delimited. Does not implicitly {@link Records.RecordsGetResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Records.FilesGetRequest + * @memberof Records.RecordsGetResponse * @static - * @param {Records.IFilesGetRequest} message FilesGetRequest message or plain object to encode + * @param {Records.IRecordsGetResponse} message RecordsGetResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilesGetRequest.encodeDelimited = function encodeDelimited(message, writer) { + RecordsGetResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FilesGetRequest message from the specified reader or buffer. + * Decodes a RecordsGetResponse message from the specified reader or buffer. * @function decode - * @memberof Records.FilesGetRequest + * @memberof Records.RecordsGetResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.FilesGetRequest} FilesGetRequest + * @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 */ - FilesGetRequest.decode = function decode(reader, length) { + RecordsGetResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FilesGetRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsGetResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.recordUids && message.recordUids.length)) - message.recordUids = []; - message.recordUids.push(reader.bytes()); + if (!(message.records && message.records.length)) + message.records = []; + message.records.push($root.Records.Record.decode(reader, reader.uint32())); break; } case 2: { - message.forThumbnails = reader.bool(); + if (!(message.folderRecordKeys && message.folderRecordKeys.length)) + message.folderRecordKeys = []; + message.folderRecordKeys.push($root.Records.FolderRecordKey.decode(reader, reader.uint32())); break; } case 3: { - message.emergencyAccessAccountOwner = reader.string(); + if (!(message.folders && message.folders.length)) + message.folders = []; + message.folders.push($root.Records.Folder.decode(reader, reader.uint32())); + break; + } + case 4: { + if (!(message.teams && message.teams.length)) + message.teams = []; + message.teams.push($root.Records.Team.decode(reader, reader.uint32())); break; } default: @@ -182571,175 +184351,232 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a FilesGetRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordsGetResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.FilesGetRequest + * @memberof Records.RecordsGetResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.FilesGetRequest} FilesGetRequest + * @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 */ - FilesGetRequest.decodeDelimited = function decodeDelimited(reader) { + RecordsGetResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FilesGetRequest message. + * Verifies a RecordsGetResponse message. * @function verify - * @memberof Records.FilesGetRequest + * @memberof Records.RecordsGetResponse * @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) { + RecordsGetResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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]); + 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]); + 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]); + 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]); + if (error) + return "teams." + error; + } } - 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. + * Creates a RecordsGetResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.FilesGetRequest + * @memberof Records.RecordsGetResponse * @static * @param {Object.} object Plain object - * @returns {Records.FilesGetRequest} FilesGetRequest + * @returns {Records.RecordsGetResponse} RecordsGetResponse */ - FilesGetRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.FilesGetRequest) + RecordsGetResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordsGetResponse) return object; - let message = new $root.Records.FilesGetRequest(); - if (object.recordUids) { - if (!Array.isArray(object.recordUids)) - throw TypeError(".Records.FilesGetRequest.recordUids: array expected"); - message.recordUids = []; - for (let i = 0; i < object.recordUids.length; ++i) - if (typeof object.recordUids[i] === "string") - $util.base64.decode(object.recordUids[i], message.recordUids[i] = $util.newBuffer($util.base64.length(object.recordUids[i])), 0); - else if (object.recordUids[i].length >= 0) - message.recordUids[i] = object.recordUids[i]; + let message = new $root.Records.RecordsGetResponse(); + if (object.records) { + if (!Array.isArray(object.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") + throw TypeError(".Records.RecordsGetResponse.records: object expected"); + message.records[i] = $root.Records.Record.fromObject(object.records[i]); + } + } + if (object.folderRecordKeys) { + if (!Array.isArray(object.folderRecordKeys)) + throw TypeError(".Records.RecordsGetResponse.folderRecordKeys: array expected"); + message.folderRecordKeys = []; + for (let i = 0; i < object.folderRecordKeys.length; ++i) { + if (typeof object.folderRecordKeys[i] !== "object") + throw TypeError(".Records.RecordsGetResponse.folderRecordKeys: object expected"); + message.folderRecordKeys[i] = $root.Records.FolderRecordKey.fromObject(object.folderRecordKeys[i]); + } + } + if (object.folders) { + if (!Array.isArray(object.folders)) + throw TypeError(".Records.RecordsGetResponse.folders: array expected"); + message.folders = []; + for (let i = 0; i < object.folders.length; ++i) { + if (typeof object.folders[i] !== "object") + throw TypeError(".Records.RecordsGetResponse.folders: object expected"); + message.folders[i] = $root.Records.Folder.fromObject(object.folders[i]); + } + } + if (object.teams) { + if (!Array.isArray(object.teams)) + throw TypeError(".Records.RecordsGetResponse.teams: array expected"); + message.teams = []; + for (let i = 0; i < object.teams.length; ++i) { + if (typeof object.teams[i] !== "object") + throw TypeError(".Records.RecordsGetResponse.teams: object expected"); + message.teams[i] = $root.Records.Team.fromObject(object.teams[i]); + } } - if (object.forThumbnails != null) - message.forThumbnails = Boolean(object.forThumbnails); - if (object.emergencyAccessAccountOwner != null) - message.emergencyAccessAccountOwner = String(object.emergencyAccessAccountOwner); return message; }; /** - * Creates a plain object from a FilesGetRequest message. Also converts values to other types if specified. + * Creates a plain object from a RecordsGetResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Records.FilesGetRequest + * @memberof Records.RecordsGetResponse * @static - * @param {Records.FilesGetRequest} message FilesGetRequest + * @param {Records.RecordsGetResponse} message RecordsGetResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FilesGetRequest.toObject = function toObject(message, options) { + RecordsGetResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.recordUids = []; - if (options.defaults) { - object.forThumbnails = false; - object.emergencyAccessAccountOwner = ""; + if (options.arrays || options.defaults) { + object.records = []; + object.folderRecordKeys = []; + object.folders = []; + object.teams = []; } - if (message.recordUids && message.recordUids.length) { - object.recordUids = []; - for (let j = 0; j < message.recordUids.length; ++j) - object.recordUids[j] = options.bytes === String ? $util.base64.encode(message.recordUids[j], 0, message.recordUids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUids[j]) : message.recordUids[j]; + if (message.records && message.records.length) { + object.records = []; + for (let j = 0; j < message.records.length; ++j) + object.records[j] = $root.Records.Record.toObject(message.records[j], options); + } + if (message.folderRecordKeys && message.folderRecordKeys.length) { + object.folderRecordKeys = []; + for (let j = 0; j < message.folderRecordKeys.length; ++j) + object.folderRecordKeys[j] = $root.Records.FolderRecordKey.toObject(message.folderRecordKeys[j], options); + } + if (message.folders && message.folders.length) { + object.folders = []; + for (let j = 0; j < message.folders.length; ++j) + object.folders[j] = $root.Records.Folder.toObject(message.folders[j], options); + } + if (message.teams && message.teams.length) { + object.teams = []; + for (let j = 0; j < message.teams.length; ++j) + object.teams[j] = $root.Records.Team.toObject(message.teams[j], options); } - if (message.forThumbnails != null && message.hasOwnProperty("forThumbnails")) - object.forThumbnails = message.forThumbnails; - if (message.emergencyAccessAccountOwner != null && message.hasOwnProperty("emergencyAccessAccountOwner")) - object.emergencyAccessAccountOwner = message.emergencyAccessAccountOwner; return object; }; /** - * Converts this FilesGetRequest to JSON. + * Converts this RecordsGetResponse to JSON. * @function toJSON - * @memberof Records.FilesGetRequest + * @memberof Records.RecordsGetResponse * @instance * @returns {Object.} JSON object */ - FilesGetRequest.prototype.toJSON = function toJSON() { + RecordsGetResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FilesGetRequest + * Gets the default type url for RecordsGetResponse * @function getTypeUrl - * @memberof Records.FilesGetRequest + * @memberof Records.RecordsGetResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FilesGetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordsGetResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.FilesGetRequest"; + return typeUrlPrefix + "/Records.RecordsGetResponse"; }; - return FilesGetRequest; + return RecordsGetResponse; })(); /** - * FileGetResult enum. - * @name Records.FileGetResult + * RecordFolderType enum. + * @name Records.RecordFolderType * @enum {number} - * @property {number} FG_SUCCESS=0 FG_SUCCESS value - * @property {number} FG_ERROR=1 FG_ERROR value - * @property {number} FG_ACCESS_DENIED=2 FG_ACCESS_DENIED value + * @property {number} user_folder=0 user_folder value + * @property {number} shared_folder=1 shared_folder value + * @property {number} shared_folder_folder=2 shared_folder_folder value */ - Records.FileGetResult = (function() { + Records.RecordFolderType = (function() { const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FG_SUCCESS"] = 0; - values[valuesById[1] = "FG_ERROR"] = 1; - values[valuesById[2] = "FG_ACCESS_DENIED"] = 2; + values[valuesById[0] = "user_folder"] = 0; + values[valuesById[1] = "shared_folder"] = 1; + values[valuesById[2] = "shared_folder_folder"] = 2; return values; })(); - Records.FileGetStatus = (function() { + Records.RecordLink = (function() { /** - * Properties of a FileGetStatus. + * Properties of a RecordLink. * @memberof Records - * @interface IFileGetStatus - * @property {Uint8Array|null} [recordUid] FileGetStatus recordUid - * @property {Records.FileGetResult|null} [status] FileGetStatus status - * @property {string|null} [url] FileGetStatus url - * @property {number|null} [successStatusCode] FileGetStatus successStatusCode - * @property {Records.RecordKeyType|null} [fileKeyType] FileGetStatus fileKeyType + * @interface IRecordLink + * @property {Uint8Array|null} [recordUid] RecordLink recordUid + * @property {Uint8Array|null} [recordKey] RecordLink recordKey */ /** - * Constructs a new FileGetStatus. + * Constructs a new RecordLink. * @memberof Records - * @classdesc Represents a FileGetStatus. - * @implements IFileGetStatus + * @classdesc Represents a RecordLink. + * @implements IRecordLink * @constructor - * @param {Records.IFileGetStatus=} [properties] Properties to set + * @param {Records.IRecordLink=} [properties] Properties to set */ - function FileGetStatus(properties) { + function RecordLink(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -182747,110 +184584,80 @@ export const Records = $root.Records = (() => { } /** - * FileGetStatus recordUid. + * RecordLink recordUid. * @member {Uint8Array} recordUid - * @memberof Records.FileGetStatus - * @instance - */ - FileGetStatus.prototype.recordUid = $util.newBuffer([]); - - /** - * FileGetStatus status. - * @member {Records.FileGetResult} status - * @memberof Records.FileGetStatus - * @instance - */ - FileGetStatus.prototype.status = 0; - - /** - * FileGetStatus url. - * @member {string} url - * @memberof Records.FileGetStatus - * @instance - */ - FileGetStatus.prototype.url = ""; - - /** - * FileGetStatus successStatusCode. - * @member {number} successStatusCode - * @memberof Records.FileGetStatus + * @memberof Records.RecordLink * @instance */ - FileGetStatus.prototype.successStatusCode = 0; + RecordLink.prototype.recordUid = $util.newBuffer([]); /** - * FileGetStatus fileKeyType. - * @member {Records.RecordKeyType} fileKeyType - * @memberof Records.FileGetStatus + * RecordLink recordKey. + * @member {Uint8Array} recordKey + * @memberof Records.RecordLink * @instance */ - FileGetStatus.prototype.fileKeyType = 0; + RecordLink.prototype.recordKey = $util.newBuffer([]); /** - * Creates a new FileGetStatus instance using the specified properties. + * Creates a new RecordLink instance using the specified properties. * @function create - * @memberof Records.FileGetStatus + * @memberof Records.RecordLink * @static - * @param {Records.IFileGetStatus=} [properties] Properties to set - * @returns {Records.FileGetStatus} FileGetStatus instance + * @param {Records.IRecordLink=} [properties] Properties to set + * @returns {Records.RecordLink} RecordLink instance */ - FileGetStatus.create = function create(properties) { - return new FileGetStatus(properties); + RecordLink.create = function create(properties) { + return new RecordLink(properties); }; /** - * Encodes the specified FileGetStatus message. Does not implicitly {@link Records.FileGetStatus.verify|verify} messages. + * Encodes the specified RecordLink message. Does not implicitly {@link Records.RecordLink.verify|verify} messages. * @function encode - * @memberof Records.FileGetStatus + * @memberof Records.RecordLink * @static - * @param {Records.IFileGetStatus} message FileGetStatus message or plain object to encode + * @param {Records.IRecordLink} message RecordLink message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileGetStatus.encode = function encode(message, writer) { + RecordLink.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); - if (message.url != null && Object.hasOwnProperty.call(message, "url")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.url); - if (message.successStatusCode != null && Object.hasOwnProperty.call(message, "successStatusCode")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.successStatusCode); - if (message.fileKeyType != null && Object.hasOwnProperty.call(message, "fileKeyType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.fileKeyType); + if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordKey); return writer; }; /** - * Encodes the specified FileGetStatus message, length delimited. Does not implicitly {@link Records.FileGetStatus.verify|verify} messages. + * Encodes the specified RecordLink message, length delimited. Does not implicitly {@link Records.RecordLink.verify|verify} messages. * @function encodeDelimited - * @memberof Records.FileGetStatus + * @memberof Records.RecordLink * @static - * @param {Records.IFileGetStatus} message FileGetStatus message or plain object to encode + * @param {Records.IRecordLink} message RecordLink message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileGetStatus.encodeDelimited = function encodeDelimited(message, writer) { + RecordLink.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FileGetStatus message from the specified reader or buffer. + * Decodes a RecordLink message from the specified reader or buffer. * @function decode - * @memberof Records.FileGetStatus + * @memberof Records.RecordLink * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.FileGetStatus} FileGetStatus + * @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 */ - FileGetStatus.decode = function decode(reader, length) { + RecordLink.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FileGetStatus(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordLink(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -182859,19 +184666,7 @@ export const Records = $root.Records = (() => { break; } case 2: { - message.status = reader.int32(); - break; - } - case 3: { - message.url = reader.string(); - break; - } - case 4: { - message.successStatusCode = reader.int32(); - break; - } - case 5: { - message.fileKeyType = reader.int32(); + message.recordKey = reader.bytes(); break; } default: @@ -182883,156 +184678,76 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a FileGetStatus message from the specified reader or buffer, length delimited. + * Decodes a RecordLink message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.FileGetStatus + * @memberof Records.RecordLink * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.FileGetStatus} FileGetStatus + * @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 */ - FileGetStatus.decodeDelimited = function decodeDelimited(reader) { + RecordLink.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FileGetStatus message. + * Verifies a RecordLink message. * @function verify - * @memberof Records.FileGetStatus + * @memberof Records.RecordLink * @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) { + RecordLink.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; - if (message.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; - } + 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 FileGetStatus message from a plain object. Also converts values to their respective internal types. + * Creates a RecordLink message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.FileGetStatus + * @memberof Records.RecordLink * @static * @param {Object.} object Plain object - * @returns {Records.FileGetStatus} FileGetStatus + * @returns {Records.RecordLink} RecordLink */ - FileGetStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Records.FileGetStatus) + RecordLink.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordLink) return object; - let message = new $root.Records.FileGetStatus(); + let message = new $root.Records.RecordLink(); if (object.recordUid != null) if (typeof object.recordUid === "string") $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); else if (object.recordUid.length >= 0) message.recordUid = object.recordUid; - switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; - } - break; - case "FG_SUCCESS": - case 0: - message.status = 0; - break; - case "FG_ERROR": - case 1: - message.status = 1; - break; - case "FG_ACCESS_DENIED": - case 2: - message.status = 2; - break; - } - if (object.url != null) - message.url = String(object.url); - if (object.successStatusCode != null) - message.successStatusCode = object.successStatusCode | 0; - switch (object.fileKeyType) { - default: - if (typeof object.fileKeyType === "number") { - message.fileKeyType = object.fileKeyType; - break; - } - break; - case "NO_KEY": - case 0: - message.fileKeyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.fileKeyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.fileKeyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.fileKeyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.fileKeyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.fileKeyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.fileKeyType = 6; - break; - } + if (object.recordKey != null) + if (typeof object.recordKey === "string") + $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); + else if (object.recordKey.length >= 0) + message.recordKey = object.recordKey; return message; }; /** - * Creates a plain object from a FileGetStatus message. Also converts values to other types if specified. + * Creates a plain object from a RecordLink message. Also converts values to other types if specified. * @function toObject - * @memberof Records.FileGetStatus + * @memberof Records.RecordLink * @static - * @param {Records.FileGetStatus} message FileGetStatus + * @param {Records.RecordLink} message RecordLink * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FileGetStatus.toObject = function toObject(message, options) { + RecordLink.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -183044,72 +184759,69 @@ export const Records = $root.Records = (() => { if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - object.status = options.enums === String ? "FG_SUCCESS" : 0; - object.url = ""; - object.successStatusCode = 0; - object.fileKeyType = options.enums === String ? "NO_KEY" : 0; + if (options.bytes === String) + object.recordKey = ""; + else { + object.recordKey = []; + if (options.bytes !== Array) + object.recordKey = $util.newBuffer(object.recordKey); + } } if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.status != null && message.hasOwnProperty("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")) - object.url = message.url; - if (message.successStatusCode != null && message.hasOwnProperty("successStatusCode")) - object.successStatusCode = message.successStatusCode; - if (message.fileKeyType != null && message.hasOwnProperty("fileKeyType")) - object.fileKeyType = options.enums === String ? $root.Records.RecordKeyType[message.fileKeyType] === undefined ? message.fileKeyType : $root.Records.RecordKeyType[message.fileKeyType] : message.fileKeyType; + if (message.recordKey != null && message.hasOwnProperty("recordKey")) + object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; return object; }; /** - * Converts this FileGetStatus to JSON. + * Converts this RecordLink to JSON. * @function toJSON - * @memberof Records.FileGetStatus + * @memberof Records.RecordLink * @instance * @returns {Object.} JSON object */ - FileGetStatus.prototype.toJSON = function toJSON() { + RecordLink.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FileGetStatus + * Gets the default type url for RecordLink * @function getTypeUrl - * @memberof Records.FileGetStatus + * @memberof Records.RecordLink * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FileGetStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.FileGetStatus"; + return typeUrlPrefix + "/Records.RecordLink"; }; - return FileGetStatus; + return RecordLink; })(); - Records.FilesGetResponse = (function() { + Records.RecordAudit = (function() { /** - * Properties of a FilesGetResponse. + * Properties of a RecordAudit. * @memberof Records - * @interface IFilesGetResponse - * @property {Array.|null} [files] FilesGetResponse files + * @interface IRecordAudit + * @property {number|null} [version] RecordAudit version + * @property {Uint8Array|null} [data] RecordAudit data */ /** - * Constructs a new FilesGetResponse. + * Constructs a new RecordAudit. * @memberof Records - * @classdesc Represents a FilesGetResponse. - * @implements IFilesGetResponse + * @classdesc Represents a RecordAudit. + * @implements IRecordAudit * @constructor - * @param {Records.IFilesGetResponse=} [properties] Properties to set + * @param {Records.IRecordAudit=} [properties] Properties to set */ - function FilesGetResponse(properties) { - this.files = []; + function RecordAudit(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -183117,78 +184829,89 @@ export const Records = $root.Records = (() => { } /** - * FilesGetResponse files. - * @member {Array.} files - * @memberof Records.FilesGetResponse + * RecordAudit version. + * @member {number} version + * @memberof Records.RecordAudit * @instance */ - FilesGetResponse.prototype.files = $util.emptyArray; + RecordAudit.prototype.version = 0; /** - * Creates a new FilesGetResponse instance using the specified properties. + * RecordAudit data. + * @member {Uint8Array} data + * @memberof Records.RecordAudit + * @instance + */ + RecordAudit.prototype.data = $util.newBuffer([]); + + /** + * Creates a new RecordAudit instance using the specified properties. * @function create - * @memberof Records.FilesGetResponse + * @memberof Records.RecordAudit * @static - * @param {Records.IFilesGetResponse=} [properties] Properties to set - * @returns {Records.FilesGetResponse} FilesGetResponse instance + * @param {Records.IRecordAudit=} [properties] Properties to set + * @returns {Records.RecordAudit} RecordAudit instance */ - FilesGetResponse.create = function create(properties) { - return new FilesGetResponse(properties); + RecordAudit.create = function create(properties) { + return new RecordAudit(properties); }; /** - * Encodes the specified FilesGetResponse message. Does not implicitly {@link Records.FilesGetResponse.verify|verify} messages. + * Encodes the specified RecordAudit message. Does not implicitly {@link Records.RecordAudit.verify|verify} messages. * @function encode - * @memberof Records.FilesGetResponse + * @memberof Records.RecordAudit * @static - * @param {Records.IFilesGetResponse} message FilesGetResponse message or plain object to encode + * @param {Records.IRecordAudit} message RecordAudit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilesGetResponse.encode = function encode(message, writer) { + RecordAudit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.files != null && message.files.length) - for (let i = 0; i < message.files.length; ++i) - $root.Records.FileGetStatus.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); return writer; }; /** - * Encodes the specified FilesGetResponse message, length delimited. Does not implicitly {@link Records.FilesGetResponse.verify|verify} messages. + * Encodes the specified RecordAudit message, length delimited. Does not implicitly {@link Records.RecordAudit.verify|verify} messages. * @function encodeDelimited - * @memberof Records.FilesGetResponse + * @memberof Records.RecordAudit * @static - * @param {Records.IFilesGetResponse} message FilesGetResponse message or plain object to encode + * @param {Records.IRecordAudit} message RecordAudit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilesGetResponse.encodeDelimited = function encodeDelimited(message, writer) { + RecordAudit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FilesGetResponse message from the specified reader or buffer. + * Decodes a RecordAudit message from the specified reader or buffer. * @function decode - * @memberof Records.FilesGetResponse + * @memberof Records.RecordAudit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.FilesGetResponse} FilesGetResponse + * @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 */ - FilesGetResponse.decode = function decode(reader, length) { + RecordAudit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FilesGetResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordAudit(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.files && message.files.length)) - message.files = []; - message.files.push($root.Records.FileGetStatus.decode(reader, reader.uint32())); + message.version = reader.int32(); + break; + } + case 2: { + message.data = reader.bytes(); break; } default: @@ -183200,143 +184923,140 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a FilesGetResponse message from the specified reader or buffer, length delimited. + * Decodes a RecordAudit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.FilesGetResponse + * @memberof Records.RecordAudit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.FilesGetResponse} FilesGetResponse + * @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 */ - FilesGetResponse.decodeDelimited = function decodeDelimited(reader) { + RecordAudit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FilesGetResponse message. + * Verifies a RecordAudit message. * @function verify - * @memberof Records.FilesGetResponse + * @memberof Records.RecordAudit * @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) { + RecordAudit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "files." + error; - } - } + 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 FilesGetResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RecordAudit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.FilesGetResponse + * @memberof Records.RecordAudit * @static * @param {Object.} object Plain object - * @returns {Records.FilesGetResponse} FilesGetResponse + * @returns {Records.RecordAudit} RecordAudit */ - FilesGetResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.FilesGetResponse) + RecordAudit.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordAudit) return object; - let message = new $root.Records.FilesGetResponse(); - if (object.files) { - if (!Array.isArray(object.files)) - throw TypeError(".Records.FilesGetResponse.files: array expected"); - message.files = []; - for (let i = 0; i < object.files.length; ++i) { - if (typeof object.files[i] !== "object") - throw TypeError(".Records.FilesGetResponse.files: object expected"); - message.files[i] = $root.Records.FileGetStatus.fromObject(object.files[i]); - } - } + let message = new $root.Records.RecordAudit(); + if (object.version != null) + message.version = object.version | 0; + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; return message; }; /** - * Creates a plain object from a FilesGetResponse message. Also converts values to other types if specified. + * Creates a plain object from a RecordAudit message. Also converts values to other types if specified. * @function toObject - * @memberof Records.FilesGetResponse + * @memberof Records.RecordAudit * @static - * @param {Records.FilesGetResponse} message FilesGetResponse + * @param {Records.RecordAudit} message RecordAudit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FilesGetResponse.toObject = function toObject(message, options) { + RecordAudit.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.files = []; - if (message.files && message.files.length) { - object.files = []; - for (let j = 0; j < message.files.length; ++j) - object.files[j] = $root.Records.FileGetStatus.toObject(message.files[j], options); + if (options.defaults) { + object.version = 0; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } } + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; return object; }; /** - * Converts this FilesGetResponse to JSON. + * Converts this RecordAudit to JSON. * @function toJSON - * @memberof Records.FilesGetResponse + * @memberof Records.RecordAudit * @instance * @returns {Object.} JSON object */ - FilesGetResponse.prototype.toJSON = function toJSON() { + RecordAudit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FilesGetResponse + * Gets the default type url for RecordAudit * @function getTypeUrl - * @memberof Records.FilesGetResponse + * @memberof Records.RecordAudit * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FilesGetResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordAudit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.FilesGetResponse"; + return typeUrlPrefix + "/Records.RecordAudit"; }; - return FilesGetResponse; + return RecordAudit; })(); - Records.ApplicationAddRequest = (function() { + Records.SecurityData = (function() { /** - * Properties of an ApplicationAddRequest. + * Properties of a SecurityData. * @memberof Records - * @interface IApplicationAddRequest - * @property {Uint8Array|null} [appUid] ApplicationAddRequest appUid - * @property {Uint8Array|null} [recordKey] ApplicationAddRequest recordKey - * @property {number|Long|null} [clientModifiedTime] ApplicationAddRequest clientModifiedTime - * @property {Uint8Array|null} [data] ApplicationAddRequest data - * @property {Records.IRecordAudit|null} [audit] ApplicationAddRequest audit + * @interface ISecurityData + * @property {Uint8Array|null} [data] SecurityData data */ /** - * Constructs a new ApplicationAddRequest. + * Constructs a new SecurityData. * @memberof Records - * @classdesc Represents an ApplicationAddRequest. - * @implements IApplicationAddRequest + * @classdesc Represents a SecurityData. + * @implements ISecurityData * @constructor - * @param {Records.IApplicationAddRequest=} [properties] Properties to set + * @param {Records.ISecurityData=} [properties] Properties to set */ - function ApplicationAddRequest(properties) { + function SecurityData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -183344,133 +185064,77 @@ export const Records = $root.Records = (() => { } /** - * ApplicationAddRequest appUid. - * @member {Uint8Array} appUid - * @memberof Records.ApplicationAddRequest - * @instance - */ - ApplicationAddRequest.prototype.appUid = $util.newBuffer([]); - - /** - * ApplicationAddRequest recordKey. - * @member {Uint8Array} recordKey - * @memberof Records.ApplicationAddRequest - * @instance - */ - ApplicationAddRequest.prototype.recordKey = $util.newBuffer([]); - - /** - * ApplicationAddRequest clientModifiedTime. - * @member {number|Long} clientModifiedTime - * @memberof Records.ApplicationAddRequest - * @instance - */ - ApplicationAddRequest.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ApplicationAddRequest data. + * SecurityData data. * @member {Uint8Array} data - * @memberof Records.ApplicationAddRequest - * @instance - */ - ApplicationAddRequest.prototype.data = $util.newBuffer([]); - - /** - * ApplicationAddRequest audit. - * @member {Records.IRecordAudit|null|undefined} audit - * @memberof Records.ApplicationAddRequest + * @memberof Records.SecurityData * @instance */ - ApplicationAddRequest.prototype.audit = null; + SecurityData.prototype.data = $util.newBuffer([]); /** - * Creates a new ApplicationAddRequest instance using the specified properties. + * Creates a new SecurityData instance using the specified properties. * @function create - * @memberof Records.ApplicationAddRequest + * @memberof Records.SecurityData * @static - * @param {Records.IApplicationAddRequest=} [properties] Properties to set - * @returns {Records.ApplicationAddRequest} ApplicationAddRequest instance + * @param {Records.ISecurityData=} [properties] Properties to set + * @returns {Records.SecurityData} SecurityData instance */ - ApplicationAddRequest.create = function create(properties) { - return new ApplicationAddRequest(properties); + SecurityData.create = function create(properties) { + return new SecurityData(properties); }; /** - * Encodes the specified ApplicationAddRequest message. Does not implicitly {@link Records.ApplicationAddRequest.verify|verify} messages. + * Encodes the specified SecurityData message. Does not implicitly {@link Records.SecurityData.verify|verify} messages. * @function encode - * @memberof Records.ApplicationAddRequest + * @memberof Records.SecurityData * @static - * @param {Records.IApplicationAddRequest} message ApplicationAddRequest message or plain object to encode + * @param {Records.ISecurityData} message SecurityData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplicationAddRequest.encode = function encode(message, writer) { + SecurityData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.appUid != null && Object.hasOwnProperty.call(message, "appUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordKey); - if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.clientModifiedTime); if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); - if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) - $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.data); return writer; }; /** - * Encodes the specified ApplicationAddRequest message, length delimited. Does not implicitly {@link Records.ApplicationAddRequest.verify|verify} messages. + * Encodes the specified SecurityData message, length delimited. Does not implicitly {@link Records.SecurityData.verify|verify} messages. * @function encodeDelimited - * @memberof Records.ApplicationAddRequest + * @memberof Records.SecurityData * @static - * @param {Records.IApplicationAddRequest} message ApplicationAddRequest message or plain object to encode + * @param {Records.ISecurityData} message SecurityData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplicationAddRequest.encodeDelimited = function encodeDelimited(message, writer) { + SecurityData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplicationAddRequest message from the specified reader or buffer. + * Decodes a SecurityData message from the specified reader or buffer. * @function decode - * @memberof Records.ApplicationAddRequest + * @memberof Records.SecurityData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.ApplicationAddRequest} ApplicationAddRequest + * @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 */ - ApplicationAddRequest.decode = function decode(reader, length) { + SecurityData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.ApplicationAddRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.SecurityData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.appUid = reader.bytes(); - break; - } - case 2: { - message.recordKey = reader.bytes(); - break; - } - case 3: { - message.clientModifiedTime = reader.int64(); - break; - } - case 4: { message.data = reader.bytes(); break; } - case 5: { - message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -183480,129 +185144,72 @@ export const Records = $root.Records = (() => { }; /** - * Decodes an ApplicationAddRequest message from the specified reader or buffer, length delimited. + * Decodes a SecurityData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.ApplicationAddRequest + * @memberof Records.SecurityData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.ApplicationAddRequest} ApplicationAddRequest + * @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 */ - ApplicationAddRequest.decodeDelimited = function decodeDelimited(reader) { + SecurityData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplicationAddRequest message. + * Verifies a SecurityData message. * @function verify - * @memberof Records.ApplicationAddRequest + * @memberof Records.SecurityData * @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) { + SecurityData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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); - if (error) - return "audit." + error; - } return null; }; /** - * Creates an ApplicationAddRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SecurityData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.ApplicationAddRequest + * @memberof Records.SecurityData * @static * @param {Object.} object Plain object - * @returns {Records.ApplicationAddRequest} ApplicationAddRequest + * @returns {Records.SecurityData} SecurityData */ - ApplicationAddRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.ApplicationAddRequest) + SecurityData.fromObject = function fromObject(object) { + if (object instanceof $root.Records.SecurityData) return object; - let message = new $root.Records.ApplicationAddRequest(); - if (object.appUid != null) - if (typeof object.appUid === "string") - $util.base64.decode(object.appUid, message.appUid = $util.newBuffer($util.base64.length(object.appUid)), 0); - else if (object.appUid.length >= 0) - message.appUid = object.appUid; - if (object.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; - if (object.clientModifiedTime != null) - if ($util.Long) - (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; - else if (typeof object.clientModifiedTime === "string") - message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); - else if (typeof object.clientModifiedTime === "number") - message.clientModifiedTime = object.clientModifiedTime; - else if (typeof object.clientModifiedTime === "object") - message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); + let message = new $root.Records.SecurityData(); if (object.data != null) if (typeof object.data === "string") $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); else if (object.data.length >= 0) message.data = object.data; - if (object.audit != null) { - if (typeof object.audit !== "object") - throw TypeError(".Records.ApplicationAddRequest.audit: object expected"); - message.audit = $root.Records.RecordAudit.fromObject(object.audit); - } return message; }; /** - * Creates a plain object from an ApplicationAddRequest message. Also converts values to other types if specified. + * Creates a plain object from a SecurityData message. Also converts values to other types if specified. * @function toObject - * @memberof Records.ApplicationAddRequest + * @memberof Records.SecurityData * @static - * @param {Records.ApplicationAddRequest} message ApplicationAddRequest + * @param {Records.SecurityData} message SecurityData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplicationAddRequest.toObject = function toObject(message, options) { + SecurityData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.appUid = ""; - else { - object.appUid = []; - if (options.bytes !== Array) - object.appUid = $util.newBuffer(object.appUid); - } - if (options.bytes === String) - object.recordKey = ""; - else { - object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.clientModifiedTime = options.longs === String ? "0" : 0; + if (options.defaults) if (options.bytes === String) object.data = ""; else { @@ -183610,90 +185217,58 @@ export const Records = $root.Records = (() => { if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } - object.audit = null; - } - if (message.appUid != null && message.hasOwnProperty("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")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof message.clientModifiedTime === "number") - object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; - else - object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; if (message.data != null && message.hasOwnProperty("data")) object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.audit != null && message.hasOwnProperty("audit")) - object.audit = $root.Records.RecordAudit.toObject(message.audit, options); return object; }; /** - * Converts this ApplicationAddRequest to JSON. + * Converts this SecurityData to JSON. * @function toJSON - * @memberof Records.ApplicationAddRequest + * @memberof Records.SecurityData * @instance * @returns {Object.} JSON object */ - ApplicationAddRequest.prototype.toJSON = function toJSON() { + SecurityData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ApplicationAddRequest + * Gets the default type url for SecurityData * @function getTypeUrl - * @memberof Records.ApplicationAddRequest + * @memberof Records.SecurityData * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ApplicationAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SecurityData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.ApplicationAddRequest"; + return typeUrlPrefix + "/Records.SecurityData"; }; - return ApplicationAddRequest; - })(); - - /** - * RecordDetailsInclude enum. - * @name Records.RecordDetailsInclude - * @enum {number} - * @property {number} DATA_PLUS_SHARE=0 DATA_PLUS_SHARE value - * @property {number} DATA_ONLY=1 DATA_ONLY value - * @property {number} SHARE_ONLY=2 SHARE_ONLY value - */ - Records.RecordDetailsInclude = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DATA_PLUS_SHARE"] = 0; - values[valuesById[1] = "DATA_ONLY"] = 1; - values[valuesById[2] = "SHARE_ONLY"] = 2; - return values; + return SecurityData; })(); - Records.GetRecordDataWithAccessInfoRequest = (function() { + Records.SecurityScoreData = (function() { /** - * Properties of a GetRecordDataWithAccessInfoRequest. + * Properties of a SecurityScoreData. * @memberof Records - * @interface IGetRecordDataWithAccessInfoRequest - * @property {number|Long|null} [clientTime] GetRecordDataWithAccessInfoRequest clientTime - * @property {Array.|null} [recordUid] GetRecordDataWithAccessInfoRequest recordUid - * @property {Records.RecordDetailsInclude|null} [recordDetailsInclude] GetRecordDataWithAccessInfoRequest recordDetailsInclude + * @interface ISecurityScoreData + * @property {Uint8Array|null} [data] SecurityScoreData data */ /** - * Constructs a new GetRecordDataWithAccessInfoRequest. + * Constructs a new SecurityScoreData. * @memberof Records - * @classdesc Represents a GetRecordDataWithAccessInfoRequest. - * @implements IGetRecordDataWithAccessInfoRequest + * @classdesc Represents a SecurityScoreData. + * @implements ISecurityScoreData * @constructor - * @param {Records.IGetRecordDataWithAccessInfoRequest=} [properties] Properties to set + * @param {Records.ISecurityScoreData=} [properties] Properties to set */ - function GetRecordDataWithAccessInfoRequest(properties) { - this.recordUid = []; + function SecurityScoreData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -183701,106 +185276,75 @@ export const Records = $root.Records = (() => { } /** - * GetRecordDataWithAccessInfoRequest clientTime. - * @member {number|Long} clientTime - * @memberof Records.GetRecordDataWithAccessInfoRequest - * @instance - */ - GetRecordDataWithAccessInfoRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * GetRecordDataWithAccessInfoRequest recordUid. - * @member {Array.} recordUid - * @memberof Records.GetRecordDataWithAccessInfoRequest - * @instance - */ - GetRecordDataWithAccessInfoRequest.prototype.recordUid = $util.emptyArray; - - /** - * GetRecordDataWithAccessInfoRequest recordDetailsInclude. - * @member {Records.RecordDetailsInclude} recordDetailsInclude - * @memberof Records.GetRecordDataWithAccessInfoRequest + * SecurityScoreData data. + * @member {Uint8Array} data + * @memberof Records.SecurityScoreData * @instance */ - GetRecordDataWithAccessInfoRequest.prototype.recordDetailsInclude = 0; + SecurityScoreData.prototype.data = $util.newBuffer([]); /** - * Creates a new GetRecordDataWithAccessInfoRequest instance using the specified properties. + * Creates a new SecurityScoreData instance using the specified properties. * @function create - * @memberof Records.GetRecordDataWithAccessInfoRequest + * @memberof Records.SecurityScoreData * @static - * @param {Records.IGetRecordDataWithAccessInfoRequest=} [properties] Properties to set - * @returns {Records.GetRecordDataWithAccessInfoRequest} GetRecordDataWithAccessInfoRequest instance + * @param {Records.ISecurityScoreData=} [properties] Properties to set + * @returns {Records.SecurityScoreData} SecurityScoreData instance */ - GetRecordDataWithAccessInfoRequest.create = function create(properties) { - return new GetRecordDataWithAccessInfoRequest(properties); + SecurityScoreData.create = function create(properties) { + return new SecurityScoreData(properties); }; /** - * Encodes the specified GetRecordDataWithAccessInfoRequest message. Does not implicitly {@link Records.GetRecordDataWithAccessInfoRequest.verify|verify} messages. + * Encodes the specified SecurityScoreData message. Does not implicitly {@link Records.SecurityScoreData.verify|verify} messages. * @function encode - * @memberof Records.GetRecordDataWithAccessInfoRequest + * @memberof Records.SecurityScoreData * @static - * @param {Records.IGetRecordDataWithAccessInfoRequest} message GetRecordDataWithAccessInfoRequest message or plain object to encode + * @param {Records.ISecurityScoreData} message SecurityScoreData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRecordDataWithAccessInfoRequest.encode = function encode(message, writer) { + SecurityScoreData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.clientTime); - if (message.recordUid != null && message.recordUid.length) - for (let i = 0; i < message.recordUid.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid[i]); - if (message.recordDetailsInclude != null && Object.hasOwnProperty.call(message, "recordDetailsInclude")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.recordDetailsInclude); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.data); return writer; }; /** - * Encodes the specified GetRecordDataWithAccessInfoRequest message, length delimited. Does not implicitly {@link Records.GetRecordDataWithAccessInfoRequest.verify|verify} messages. + * Encodes the specified SecurityScoreData message, length delimited. Does not implicitly {@link Records.SecurityScoreData.verify|verify} messages. * @function encodeDelimited - * @memberof Records.GetRecordDataWithAccessInfoRequest + * @memberof Records.SecurityScoreData * @static - * @param {Records.IGetRecordDataWithAccessInfoRequest} message GetRecordDataWithAccessInfoRequest message or plain object to encode + * @param {Records.ISecurityScoreData} message SecurityScoreData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRecordDataWithAccessInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { + SecurityScoreData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetRecordDataWithAccessInfoRequest message from the specified reader or buffer. + * Decodes a SecurityScoreData message from the specified reader or buffer. * @function decode - * @memberof Records.GetRecordDataWithAccessInfoRequest + * @memberof Records.SecurityScoreData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.GetRecordDataWithAccessInfoRequest} GetRecordDataWithAccessInfoRequest + * @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 */ - GetRecordDataWithAccessInfoRequest.decode = function decode(reader, length) { + SecurityScoreData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetRecordDataWithAccessInfoRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.SecurityScoreData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.clientTime = reader.int64(); - break; - } - case 2: { - if (!(message.recordUid && message.recordUid.length)) - message.recordUid = []; - message.recordUid.push(reader.bytes()); - break; - } - case 3: { - message.recordDetailsInclude = reader.int32(); + message.data = reader.bytes(); break; } default: @@ -183812,202 +185356,143 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a GetRecordDataWithAccessInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a SecurityScoreData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.GetRecordDataWithAccessInfoRequest + * @memberof Records.SecurityScoreData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.GetRecordDataWithAccessInfoRequest} GetRecordDataWithAccessInfoRequest + * @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 */ - GetRecordDataWithAccessInfoRequest.decodeDelimited = function decodeDelimited(reader) { + SecurityScoreData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetRecordDataWithAccessInfoRequest message. + * Verifies a SecurityScoreData message. * @function verify - * @memberof Records.GetRecordDataWithAccessInfoRequest + * @memberof Records.SecurityScoreData * @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) { + SecurityScoreData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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"; - 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; - } + 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 GetRecordDataWithAccessInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SecurityScoreData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.GetRecordDataWithAccessInfoRequest + * @memberof Records.SecurityScoreData * @static * @param {Object.} object Plain object - * @returns {Records.GetRecordDataWithAccessInfoRequest} GetRecordDataWithAccessInfoRequest + * @returns {Records.SecurityScoreData} SecurityScoreData */ - GetRecordDataWithAccessInfoRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.GetRecordDataWithAccessInfoRequest) + SecurityScoreData.fromObject = function fromObject(object) { + if (object instanceof $root.Records.SecurityScoreData) return object; - let message = new $root.Records.GetRecordDataWithAccessInfoRequest(); - if (object.clientTime != null) - if ($util.Long) - (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = false; - else if (typeof object.clientTime === "string") - message.clientTime = parseInt(object.clientTime, 10); - else if (typeof object.clientTime === "number") - message.clientTime = object.clientTime; - else if (typeof object.clientTime === "object") - message.clientTime = new $util.LongBits(object.clientTime.low >>> 0, object.clientTime.high >>> 0).toNumber(); - if (object.recordUid) { - if (!Array.isArray(object.recordUid)) - throw TypeError(".Records.GetRecordDataWithAccessInfoRequest.recordUid: array expected"); - message.recordUid = []; - for (let i = 0; i < object.recordUid.length; ++i) - if (typeof object.recordUid[i] === "string") - $util.base64.decode(object.recordUid[i], message.recordUid[i] = $util.newBuffer($util.base64.length(object.recordUid[i])), 0); - else if (object.recordUid[i].length >= 0) - message.recordUid[i] = object.recordUid[i]; - } - switch (object.recordDetailsInclude) { - default: - if (typeof object.recordDetailsInclude === "number") { - message.recordDetailsInclude = object.recordDetailsInclude; - break; - } - break; - case "DATA_PLUS_SHARE": - case 0: - message.recordDetailsInclude = 0; - break; - case "DATA_ONLY": - case 1: - message.recordDetailsInclude = 1; - break; - case "SHARE_ONLY": - case 2: - message.recordDetailsInclude = 2; - break; - } + let message = new $root.Records.SecurityScoreData(); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; return message; }; /** - * Creates a plain object from a GetRecordDataWithAccessInfoRequest message. Also converts values to other types if specified. + * Creates a plain object from a SecurityScoreData message. Also converts values to other types if specified. * @function toObject - * @memberof Records.GetRecordDataWithAccessInfoRequest + * @memberof Records.SecurityScoreData * @static - * @param {Records.GetRecordDataWithAccessInfoRequest} message GetRecordDataWithAccessInfoRequest + * @param {Records.SecurityScoreData} message SecurityScoreData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetRecordDataWithAccessInfoRequest.toObject = function toObject(message, options) { + SecurityScoreData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.recordUid = []; - if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.clientTime = options.longs === String ? "0" : 0; - object.recordDetailsInclude = options.enums === String ? "DATA_PLUS_SHARE" : 0; - } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (typeof 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.recordUid && message.recordUid.length) { - object.recordUid = []; - 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")) - object.recordDetailsInclude = options.enums === String ? $root.Records.RecordDetailsInclude[message.recordDetailsInclude] === undefined ? message.recordDetailsInclude : $root.Records.RecordDetailsInclude[message.recordDetailsInclude] : message.recordDetailsInclude; + if (options.defaults) + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; return object; }; /** - * Converts this GetRecordDataWithAccessInfoRequest to JSON. + * Converts this SecurityScoreData to JSON. * @function toJSON - * @memberof Records.GetRecordDataWithAccessInfoRequest + * @memberof Records.SecurityScoreData * @instance * @returns {Object.} JSON object */ - GetRecordDataWithAccessInfoRequest.prototype.toJSON = function toJSON() { + SecurityScoreData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetRecordDataWithAccessInfoRequest + * Gets the default type url for SecurityScoreData * @function getTypeUrl - * @memberof Records.GetRecordDataWithAccessInfoRequest + * @memberof Records.SecurityScoreData * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetRecordDataWithAccessInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SecurityScoreData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.GetRecordDataWithAccessInfoRequest"; + return typeUrlPrefix + "/Records.SecurityScoreData"; }; - return GetRecordDataWithAccessInfoRequest; + return SecurityScoreData; })(); - Records.UserPermission = (function() { + Records.RecordAdd = (function() { /** - * Properties of a UserPermission. + * Properties of a RecordAdd. * @memberof Records - * @interface IUserPermission - * @property {string|null} [username] UserPermission username - * @property {boolean|null} [owner] UserPermission owner - * @property {boolean|null} [shareAdmin] UserPermission shareAdmin - * @property {boolean|null} [sharable] UserPermission sharable - * @property {boolean|null} [editable] UserPermission editable - * @property {boolean|null} [awaitingApproval] UserPermission awaitingApproval - * @property {number|Long|null} [expiration] UserPermission expiration - * @property {Uint8Array|null} [accountUid] UserPermission accountUid - * @property {Records.TimerNotificationType|null} [timerNotificationType] UserPermission timerNotificationType - * @property {boolean|null} [rotateOnExpiration] UserPermission rotateOnExpiration + * @interface IRecordAdd + * @property {Uint8Array|null} [recordUid] RecordAdd recordUid + * @property {Uint8Array|null} [recordKey] RecordAdd recordKey + * @property {number|Long|null} [clientModifiedTime] RecordAdd clientModifiedTime + * @property {Uint8Array|null} [data] RecordAdd data + * @property {Uint8Array|null} [nonSharedData] RecordAdd nonSharedData + * @property {Records.RecordFolderType|null} [folderType] RecordAdd folderType + * @property {Uint8Array|null} [folderUid] RecordAdd folderUid + * @property {Uint8Array|null} [folderKey] RecordAdd folderKey + * @property {Array.|null} [recordLinks] RecordAdd recordLinks + * @property {Records.IRecordAudit|null} [audit] RecordAdd audit + * @property {Records.ISecurityData|null} [securityData] RecordAdd securityData + * @property {Records.ISecurityScoreData|null} [securityScoreData] RecordAdd securityScoreData */ /** - * Constructs a new UserPermission. + * Constructs a new RecordAdd. * @memberof Records - * @classdesc Represents a UserPermission. - * @implements IUserPermission + * @classdesc Represents a RecordAdd. + * @implements IRecordAdd * @constructor - * @param {Records.IUserPermission=} [properties] Properties to set + * @param {Records.IRecordAdd=} [properties] Properties to set */ - function UserPermission(properties) { + function RecordAdd(properties) { + this.recordLinks = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -184015,201 +185500,232 @@ export const Records = $root.Records = (() => { } /** - * UserPermission username. - * @member {string} username - * @memberof Records.UserPermission + * RecordAdd recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.RecordAdd * @instance */ - UserPermission.prototype.username = ""; + RecordAdd.prototype.recordUid = $util.newBuffer([]); /** - * UserPermission owner. - * @member {boolean} owner - * @memberof Records.UserPermission + * RecordAdd recordKey. + * @member {Uint8Array} recordKey + * @memberof Records.RecordAdd * @instance */ - UserPermission.prototype.owner = false; + RecordAdd.prototype.recordKey = $util.newBuffer([]); /** - * UserPermission shareAdmin. - * @member {boolean} shareAdmin - * @memberof Records.UserPermission + * RecordAdd clientModifiedTime. + * @member {number|Long} clientModifiedTime + * @memberof Records.RecordAdd * @instance */ - UserPermission.prototype.shareAdmin = false; + RecordAdd.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * UserPermission sharable. - * @member {boolean} sharable - * @memberof Records.UserPermission + * RecordAdd data. + * @member {Uint8Array} data + * @memberof Records.RecordAdd * @instance */ - UserPermission.prototype.sharable = false; + RecordAdd.prototype.data = $util.newBuffer([]); /** - * UserPermission editable. - * @member {boolean} editable - * @memberof Records.UserPermission + * RecordAdd nonSharedData. + * @member {Uint8Array} nonSharedData + * @memberof Records.RecordAdd * @instance */ - UserPermission.prototype.editable = false; + RecordAdd.prototype.nonSharedData = $util.newBuffer([]); /** - * UserPermission awaitingApproval. - * @member {boolean} awaitingApproval - * @memberof Records.UserPermission + * RecordAdd folderType. + * @member {Records.RecordFolderType} folderType + * @memberof Records.RecordAdd * @instance */ - UserPermission.prototype.awaitingApproval = false; + RecordAdd.prototype.folderType = 0; /** - * UserPermission expiration. - * @member {number|Long} expiration - * @memberof Records.UserPermission + * RecordAdd folderUid. + * @member {Uint8Array} folderUid + * @memberof Records.RecordAdd * @instance */ - UserPermission.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordAdd.prototype.folderUid = $util.newBuffer([]); /** - * UserPermission accountUid. - * @member {Uint8Array} accountUid - * @memberof Records.UserPermission + * RecordAdd folderKey. + * @member {Uint8Array} folderKey + * @memberof Records.RecordAdd * @instance */ - UserPermission.prototype.accountUid = $util.newBuffer([]); + RecordAdd.prototype.folderKey = $util.newBuffer([]); /** - * UserPermission timerNotificationType. - * @member {Records.TimerNotificationType} timerNotificationType - * @memberof Records.UserPermission + * RecordAdd recordLinks. + * @member {Array.} recordLinks + * @memberof Records.RecordAdd * @instance */ - UserPermission.prototype.timerNotificationType = 0; + RecordAdd.prototype.recordLinks = $util.emptyArray; /** - * UserPermission rotateOnExpiration. - * @member {boolean} rotateOnExpiration - * @memberof Records.UserPermission + * RecordAdd audit. + * @member {Records.IRecordAudit|null|undefined} audit + * @memberof Records.RecordAdd * @instance */ - UserPermission.prototype.rotateOnExpiration = false; + RecordAdd.prototype.audit = null; /** - * Creates a new UserPermission instance using the specified properties. + * RecordAdd securityData. + * @member {Records.ISecurityData|null|undefined} securityData + * @memberof Records.RecordAdd + * @instance + */ + RecordAdd.prototype.securityData = null; + + /** + * RecordAdd securityScoreData. + * @member {Records.ISecurityScoreData|null|undefined} securityScoreData + * @memberof Records.RecordAdd + * @instance + */ + RecordAdd.prototype.securityScoreData = null; + + /** + * Creates a new RecordAdd instance using the specified properties. * @function create - * @memberof Records.UserPermission + * @memberof Records.RecordAdd * @static - * @param {Records.IUserPermission=} [properties] Properties to set - * @returns {Records.UserPermission} UserPermission instance + * @param {Records.IRecordAdd=} [properties] Properties to set + * @returns {Records.RecordAdd} RecordAdd instance */ - UserPermission.create = function create(properties) { - return new UserPermission(properties); + RecordAdd.create = function create(properties) { + return new RecordAdd(properties); }; /** - * Encodes the specified UserPermission message. Does not implicitly {@link Records.UserPermission.verify|verify} messages. + * Encodes the specified RecordAdd message. Does not implicitly {@link Records.RecordAdd.verify|verify} messages. * @function encode - * @memberof Records.UserPermission + * @memberof Records.RecordAdd * @static - * @param {Records.IUserPermission} message UserPermission message or plain object to encode + * @param {Records.IRecordAdd} message RecordAdd message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserPermission.encode = function encode(message, writer) { + RecordAdd.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.owner); - if (message.shareAdmin != null && Object.hasOwnProperty.call(message, "shareAdmin")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.shareAdmin); - if (message.sharable != null && Object.hasOwnProperty.call(message, "sharable")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.sharable); - if (message.editable != null && Object.hasOwnProperty.call(message, "editable")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.editable); - if (message.awaitingApproval != null && Object.hasOwnProperty.call(message, "awaitingApproval")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.awaitingApproval); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.expiration); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.accountUid); - if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.timerNotificationType); - if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.rotateOnExpiration); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordKey); + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.clientModifiedTime); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); + if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "nonSharedData")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.nonSharedData); + if (message.folderType != null && Object.hasOwnProperty.call(message, "folderType")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.folderType); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.folderUid); + if (message.folderKey != null && Object.hasOwnProperty.call(message, "folderKey")) + writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.folderKey); + if (message.recordLinks != null && message.recordLinks.length) + for (let i = 0; i < message.recordLinks.length; ++i) + $root.Records.RecordLink.encode(message.recordLinks[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) + $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.securityData != null && Object.hasOwnProperty.call(message, "securityData")) + $root.Records.SecurityData.encode(message.securityData, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.securityScoreData != null && Object.hasOwnProperty.call(message, "securityScoreData")) + $root.Records.SecurityScoreData.encode(message.securityScoreData, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; /** - * Encodes the specified UserPermission message, length delimited. Does not implicitly {@link Records.UserPermission.verify|verify} messages. + * Encodes the specified RecordAdd message, length delimited. Does not implicitly {@link Records.RecordAdd.verify|verify} messages. * @function encodeDelimited - * @memberof Records.UserPermission + * @memberof Records.RecordAdd * @static - * @param {Records.IUserPermission} message UserPermission message or plain object to encode + * @param {Records.IRecordAdd} message RecordAdd message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserPermission.encodeDelimited = function encodeDelimited(message, writer) { + RecordAdd.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a UserPermission message from the specified reader or buffer. + * Decodes a RecordAdd message from the specified reader or buffer. * @function decode - * @memberof Records.UserPermission + * @memberof Records.RecordAdd * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.UserPermission} UserPermission + * @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 */ - UserPermission.decode = function decode(reader, length) { + RecordAdd.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.UserPermission(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordAdd(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.username = reader.string(); + message.recordUid = reader.bytes(); break; } case 2: { - message.owner = reader.bool(); + message.recordKey = reader.bytes(); break; } case 3: { - message.shareAdmin = reader.bool(); + message.clientModifiedTime = reader.int64(); break; } case 4: { - message.sharable = reader.bool(); + message.data = reader.bytes(); break; } case 5: { - message.editable = reader.bool(); + message.nonSharedData = reader.bytes(); break; } case 6: { - message.awaitingApproval = reader.bool(); + message.folderType = reader.int32(); break; } case 7: { - message.expiration = reader.int64(); + message.folderUid = reader.bytes(); break; } case 8: { - message.accountUid = reader.bytes(); + message.folderKey = reader.bytes(); break; } case 9: { - message.timerNotificationType = reader.int32(); + if (!(message.recordLinks && message.recordLinks.length)) + message.recordLinks = []; + message.recordLinks.push($root.Records.RecordLink.decode(reader, reader.uint32())); break; } case 10: { - message.rotateOnExpiration = reader.bool(); + message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); + break; + } + case 11: { + message.securityData = $root.Records.SecurityData.decode(reader, reader.uint32()); + break; + } + case 12: { + message.securityScoreData = $root.Records.SecurityScoreData.decode(reader, reader.uint32()); break; } default: @@ -184221,248 +185737,339 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a UserPermission message from the specified reader or buffer, length delimited. + * Decodes a RecordAdd message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.UserPermission + * @memberof Records.RecordAdd * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.UserPermission} UserPermission + * @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 */ - UserPermission.decodeDelimited = function decodeDelimited(reader) { + RecordAdd.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a UserPermission message. + * Verifies a RecordAdd message. * @function verify - * @memberof Records.UserPermission + * @memberof Records.RecordAdd * @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) { + RecordAdd.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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) { + 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 "timerNotificationType: enum value expected"; + return "folderType: 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"; + 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]); + if (error) + return "recordLinks." + error; + } + } + if (message.audit != null && message.hasOwnProperty("audit")) { + let error = $root.Records.RecordAudit.verify(message.audit); + if (error) + return "audit." + error; + } + if (message.securityData != null && message.hasOwnProperty("securityData")) { + let error = $root.Records.SecurityData.verify(message.securityData); + if (error) + return "securityData." + error; + } + if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) { + let error = $root.Records.SecurityScoreData.verify(message.securityScoreData); + if (error) + return "securityScoreData." + error; + } return null; }; /** - * Creates a UserPermission message from a plain object. Also converts values to their respective internal types. + * Creates a RecordAdd message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.UserPermission + * @memberof Records.RecordAdd * @static * @param {Object.} object Plain object - * @returns {Records.UserPermission} UserPermission + * @returns {Records.RecordAdd} RecordAdd */ - UserPermission.fromObject = function fromObject(object) { - if (object instanceof $root.Records.UserPermission) + RecordAdd.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordAdd) return object; - let message = new $root.Records.UserPermission(); - if (object.username != null) - message.username = String(object.username); - if (object.owner != null) - message.owner = Boolean(object.owner); - if (object.shareAdmin != null) - message.shareAdmin = Boolean(object.shareAdmin); - if (object.sharable != null) - message.sharable = Boolean(object.sharable); - if (object.editable != null) - message.editable = Boolean(object.editable); - if (object.awaitingApproval != null) - message.awaitingApproval = Boolean(object.awaitingApproval); - if (object.expiration != null) + let message = new $root.Records.RecordAdd(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.recordKey != null) + if (typeof object.recordKey === "string") + $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); + else if (object.recordKey.length >= 0) + message.recordKey = object.recordKey; + if (object.clientModifiedTime != null) if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); - if (object.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; - switch (object.timerNotificationType) { + (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; + else if (typeof object.clientModifiedTime === "string") + message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); + else if (typeof object.clientModifiedTime === "number") + message.clientModifiedTime = object.clientModifiedTime; + else if (typeof object.clientModifiedTime === "object") + message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + if (object.nonSharedData != null) + if (typeof object.nonSharedData === "string") + $util.base64.decode(object.nonSharedData, message.nonSharedData = $util.newBuffer($util.base64.length(object.nonSharedData)), 0); + else if (object.nonSharedData.length >= 0) + message.nonSharedData = object.nonSharedData; + switch (object.folderType) { default: - if (typeof object.timerNotificationType === "number") { - message.timerNotificationType = object.timerNotificationType; + if (typeof object.folderType === "number") { + message.folderType = object.folderType; break; } break; - case "NOTIFICATION_OFF": + case "user_folder": case 0: - message.timerNotificationType = 0; + message.folderType = 0; break; - case "NOTIFY_OWNER": + case "shared_folder": case 1: - message.timerNotificationType = 1; + message.folderType = 1; break; - case "NOTIFY_PRIVILEGED_USERS": + case "shared_folder_folder": case 2: - message.timerNotificationType = 2; + message.folderType = 2; break; } - if (object.rotateOnExpiration != null) - message.rotateOnExpiration = Boolean(object.rotateOnExpiration); + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.folderKey != null) + if (typeof object.folderKey === "string") + $util.base64.decode(object.folderKey, message.folderKey = $util.newBuffer($util.base64.length(object.folderKey)), 0); + else if (object.folderKey.length >= 0) + message.folderKey = object.folderKey; + if (object.recordLinks) { + if (!Array.isArray(object.recordLinks)) + throw TypeError(".Records.RecordAdd.recordLinks: array expected"); + message.recordLinks = []; + for (let i = 0; i < object.recordLinks.length; ++i) { + if (typeof object.recordLinks[i] !== "object") + throw TypeError(".Records.RecordAdd.recordLinks: object expected"); + message.recordLinks[i] = $root.Records.RecordLink.fromObject(object.recordLinks[i]); + } + } + if (object.audit != null) { + if (typeof object.audit !== "object") + throw TypeError(".Records.RecordAdd.audit: object expected"); + message.audit = $root.Records.RecordAudit.fromObject(object.audit); + } + if (object.securityData != null) { + if (typeof object.securityData !== "object") + throw TypeError(".Records.RecordAdd.securityData: object expected"); + message.securityData = $root.Records.SecurityData.fromObject(object.securityData); + } + if (object.securityScoreData != null) { + if (typeof object.securityScoreData !== "object") + throw TypeError(".Records.RecordAdd.securityScoreData: object expected"); + message.securityScoreData = $root.Records.SecurityScoreData.fromObject(object.securityScoreData); + } return message; }; /** - * Creates a plain object from a UserPermission message. Also converts values to other types if specified. + * Creates a plain object from a RecordAdd message. Also converts values to other types if specified. * @function toObject - * @memberof Records.UserPermission + * @memberof Records.RecordAdd * @static - * @param {Records.UserPermission} message UserPermission + * @param {Records.RecordAdd} message RecordAdd * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserPermission.toObject = function toObject(message, options) { + RecordAdd.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.recordLinks = []; if (options.defaults) { - object.username = ""; - object.owner = false; - object.shareAdmin = false; - object.sharable = false; - object.editable = false; - object.awaitingApproval = false; + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if (options.bytes === String) + object.recordKey = ""; + else { + object.recordKey = []; + if (options.bytes !== Array) + object.recordKey = $util.newBuffer(object.recordKey); + } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : 0; + object.clientModifiedTime = options.longs === String ? "0" : 0; if (options.bytes === String) - object.accountUid = ""; + object.data = ""; else { - object.accountUid = []; + object.data = []; if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); + object.data = $util.newBuffer(object.data); } - object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; - object.rotateOnExpiration = false; + if (options.bytes === String) + object.nonSharedData = ""; + else { + object.nonSharedData = []; + if (options.bytes !== Array) + object.nonSharedData = $util.newBuffer(object.nonSharedData); + } + object.folderType = options.enums === String ? "user_folder" : 0; + if (options.bytes === String) + object.folderUid = ""; + else { + object.folderUid = []; + if (options.bytes !== Array) + object.folderUid = $util.newBuffer(object.folderUid); + } + if (options.bytes === String) + object.folderKey = ""; + else { + object.folderKey = []; + if (options.bytes !== Array) + object.folderKey = $util.newBuffer(object.folderKey); + } + object.audit = null; + object.securityData = null; + object.securityScoreData = null; } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; - if (message.shareAdmin != null && message.hasOwnProperty("shareAdmin")) - object.shareAdmin = message.shareAdmin; - if (message.sharable != null && message.hasOwnProperty("sharable")) - object.sharable = message.sharable; - if (message.editable != null && message.hasOwnProperty("editable")) - object.editable = message.editable; - if (message.awaitingApproval != null && message.hasOwnProperty("awaitingApproval")) - object.awaitingApproval = message.awaitingApproval; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") - object.expiration = options.longs === String ? String(message.expiration) : message.expiration; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.recordKey != null && message.hasOwnProperty("recordKey")) + object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; + if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) + if (typeof message.clientModifiedTime === "number") + object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; 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")) - 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")) - 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")) - object.rotateOnExpiration = message.rotateOnExpiration; + object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) + object.nonSharedData = options.bytes === String ? $util.base64.encode(message.nonSharedData, 0, message.nonSharedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.nonSharedData) : message.nonSharedData; + if (message.folderType != null && message.hasOwnProperty("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")) + 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")) + 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); + } + if (message.audit != null && message.hasOwnProperty("audit")) + object.audit = $root.Records.RecordAudit.toObject(message.audit, options); + if (message.securityData != null && message.hasOwnProperty("securityData")) + object.securityData = $root.Records.SecurityData.toObject(message.securityData, options); + if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) + object.securityScoreData = $root.Records.SecurityScoreData.toObject(message.securityScoreData, options); return object; }; /** - * Converts this UserPermission to JSON. + * Converts this RecordAdd to JSON. * @function toJSON - * @memberof Records.UserPermission + * @memberof Records.RecordAdd * @instance * @returns {Object.} JSON object */ - UserPermission.prototype.toJSON = function toJSON() { + RecordAdd.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UserPermission + * Gets the default type url for RecordAdd * @function getTypeUrl - * @memberof Records.UserPermission + * @memberof Records.RecordAdd * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UserPermission.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordAdd.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.UserPermission"; + return typeUrlPrefix + "/Records.RecordAdd"; }; - return UserPermission; + return RecordAdd; })(); - Records.SharedFolderPermission = (function() { + Records.RecordsAddRequest = (function() { /** - * Properties of a SharedFolderPermission. + * Properties of a RecordsAddRequest. * @memberof Records - * @interface ISharedFolderPermission - * @property {Uint8Array|null} [sharedFolderUid] SharedFolderPermission sharedFolderUid - * @property {boolean|null} [resharable] SharedFolderPermission resharable - * @property {boolean|null} [editable] SharedFolderPermission editable - * @property {number|Long|null} [revision] SharedFolderPermission revision - * @property {number|Long|null} [expiration] SharedFolderPermission expiration - * @property {Records.TimerNotificationType|null} [timerNotificationType] SharedFolderPermission timerNotificationType - * @property {boolean|null} [rotateOnExpiration] SharedFolderPermission rotateOnExpiration + * @interface IRecordsAddRequest + * @property {Array.|null} [records] RecordsAddRequest records + * @property {number|Long|null} [clientTime] RecordsAddRequest clientTime + * @property {Records.RecordKeyType|null} [securityDataKeyType] RecordsAddRequest securityDataKeyType */ /** - * Constructs a new SharedFolderPermission. + * Constructs a new RecordsAddRequest. * @memberof Records - * @classdesc Represents a SharedFolderPermission. - * @implements ISharedFolderPermission + * @classdesc Represents a RecordsAddRequest. + * @implements IRecordsAddRequest * @constructor - * @param {Records.ISharedFolderPermission=} [properties] Properties to set + * @param {Records.IRecordsAddRequest=} [properties] Properties to set */ - function SharedFolderPermission(properties) { + function RecordsAddRequest(properties) { + this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -184470,159 +186077,106 @@ export const Records = $root.Records = (() => { } /** - * SharedFolderPermission sharedFolderUid. - * @member {Uint8Array} sharedFolderUid - * @memberof Records.SharedFolderPermission - * @instance - */ - SharedFolderPermission.prototype.sharedFolderUid = $util.newBuffer([]); - - /** - * SharedFolderPermission resharable. - * @member {boolean} resharable - * @memberof Records.SharedFolderPermission - * @instance - */ - SharedFolderPermission.prototype.resharable = false; - - /** - * SharedFolderPermission editable. - * @member {boolean} editable - * @memberof Records.SharedFolderPermission - * @instance - */ - SharedFolderPermission.prototype.editable = false; - - /** - * SharedFolderPermission revision. - * @member {number|Long} revision - * @memberof Records.SharedFolderPermission - * @instance - */ - SharedFolderPermission.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * SharedFolderPermission expiration. - * @member {number|Long} expiration - * @memberof Records.SharedFolderPermission + * RecordsAddRequest records. + * @member {Array.} records + * @memberof Records.RecordsAddRequest * @instance */ - SharedFolderPermission.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordsAddRequest.prototype.records = $util.emptyArray; /** - * SharedFolderPermission timerNotificationType. - * @member {Records.TimerNotificationType} timerNotificationType - * @memberof Records.SharedFolderPermission + * RecordsAddRequest clientTime. + * @member {number|Long} clientTime + * @memberof Records.RecordsAddRequest * @instance */ - SharedFolderPermission.prototype.timerNotificationType = 0; + RecordsAddRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * SharedFolderPermission rotateOnExpiration. - * @member {boolean} rotateOnExpiration - * @memberof Records.SharedFolderPermission + * RecordsAddRequest securityDataKeyType. + * @member {Records.RecordKeyType} securityDataKeyType + * @memberof Records.RecordsAddRequest * @instance */ - SharedFolderPermission.prototype.rotateOnExpiration = false; + RecordsAddRequest.prototype.securityDataKeyType = 0; /** - * Creates a new SharedFolderPermission instance using the specified properties. + * Creates a new RecordsAddRequest instance using the specified properties. * @function create - * @memberof Records.SharedFolderPermission + * @memberof Records.RecordsAddRequest * @static - * @param {Records.ISharedFolderPermission=} [properties] Properties to set - * @returns {Records.SharedFolderPermission} SharedFolderPermission instance + * @param {Records.IRecordsAddRequest=} [properties] Properties to set + * @returns {Records.RecordsAddRequest} RecordsAddRequest instance */ - SharedFolderPermission.create = function create(properties) { - return new SharedFolderPermission(properties); + RecordsAddRequest.create = function create(properties) { + return new RecordsAddRequest(properties); }; /** - * Encodes the specified SharedFolderPermission message. Does not implicitly {@link Records.SharedFolderPermission.verify|verify} messages. + * Encodes the specified RecordsAddRequest message. Does not implicitly {@link Records.RecordsAddRequest.verify|verify} messages. * @function encode - * @memberof Records.SharedFolderPermission + * @memberof Records.RecordsAddRequest * @static - * @param {Records.ISharedFolderPermission} message SharedFolderPermission message or plain object to encode + * @param {Records.IRecordsAddRequest} message RecordsAddRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderPermission.encode = function encode(message, writer) { + RecordsAddRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.resharable != null && Object.hasOwnProperty.call(message, "resharable")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.resharable); - if (message.editable != null && Object.hasOwnProperty.call(message, "editable")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.editable); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.revision); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.expiration); - if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.timerNotificationType); - if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.rotateOnExpiration); + if (message.records != null && message.records.length) + for (let i = 0; i < message.records.length; ++i) + $root.Records.RecordAdd.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); + if (message.securityDataKeyType != null && Object.hasOwnProperty.call(message, "securityDataKeyType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.securityDataKeyType); return writer; }; /** - * Encodes the specified SharedFolderPermission message, length delimited. Does not implicitly {@link Records.SharedFolderPermission.verify|verify} messages. + * Encodes the specified RecordsAddRequest message, length delimited. Does not implicitly {@link Records.RecordsAddRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Records.SharedFolderPermission + * @memberof Records.RecordsAddRequest * @static - * @param {Records.ISharedFolderPermission} message SharedFolderPermission message or plain object to encode + * @param {Records.IRecordsAddRequest} message RecordsAddRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderPermission.encodeDelimited = function encodeDelimited(message, writer) { + RecordsAddRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SharedFolderPermission message from the specified reader or buffer. + * Decodes a RecordsAddRequest message from the specified reader or buffer. * @function decode - * @memberof Records.SharedFolderPermission + * @memberof Records.RecordsAddRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.SharedFolderPermission} SharedFolderPermission + * @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 */ - SharedFolderPermission.decode = function decode(reader, length) { + RecordsAddRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.SharedFolderPermission(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.sharedFolderUid = reader.bytes(); + if (!(message.records && message.records.length)) + message.records = []; + message.records.push($root.Records.RecordAdd.decode(reader, reader.uint32())); break; } case 2: { - message.resharable = reader.bool(); + message.clientTime = reader.int64(); break; } case 3: { - message.editable = reader.bool(); - break; - } - case 4: { - message.revision = reader.int64(); - break; - } - case 5: { - message.expiration = reader.int64(); - break; - } - case 6: { - message.timerNotificationType = reader.int32(); - break; - } - case 7: { - message.rotateOnExpiration = reader.bool(); + message.securityDataKeyType = reader.int32(); break; } default: @@ -184634,247 +186188,226 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a SharedFolderPermission message from the specified reader or buffer, length delimited. + * Decodes a RecordsAddRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.SharedFolderPermission + * @memberof Records.RecordsAddRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.SharedFolderPermission} SharedFolderPermission + * @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 */ - SharedFolderPermission.decodeDelimited = function decodeDelimited(reader) { + RecordsAddRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SharedFolderPermission message. + * Verifies a RecordsAddRequest message. * @function verify - * @memberof Records.SharedFolderPermission + * @memberof Records.RecordsAddRequest * @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) { + RecordsAddRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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) { + 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]); + 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 "timerNotificationType: enum value expected"; + return "securityDataKeyType: enum value expected"; case 0: case 1: case 2: + case 3: + case 4: + case 5: + case 6: 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. + * Creates a RecordsAddRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.SharedFolderPermission + * @memberof Records.RecordsAddRequest * @static * @param {Object.} object Plain object - * @returns {Records.SharedFolderPermission} SharedFolderPermission + * @returns {Records.RecordsAddRequest} RecordsAddRequest */ - SharedFolderPermission.fromObject = function fromObject(object) { - if (object instanceof $root.Records.SharedFolderPermission) + RecordsAddRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordsAddRequest) return object; - let message = new $root.Records.SharedFolderPermission(); - if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; - if (object.resharable != null) - message.resharable = Boolean(object.resharable); - if (object.editable != null) - message.editable = Boolean(object.editable); - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.expiration != null) + let message = new $root.Records.RecordsAddRequest(); + if (object.records) { + if (!Array.isArray(object.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") + throw TypeError(".Records.RecordsAddRequest.records: object expected"); + message.records[i] = $root.Records.RecordAdd.fromObject(object.records[i]); + } + } + if (object.clientTime != null) if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); - switch (object.timerNotificationType) { + (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = false; + else if (typeof object.clientTime === "string") + message.clientTime = parseInt(object.clientTime, 10); + else if (typeof object.clientTime === "number") + message.clientTime = object.clientTime; + else if (typeof object.clientTime === "object") + message.clientTime = new $util.LongBits(object.clientTime.low >>> 0, object.clientTime.high >>> 0).toNumber(); + switch (object.securityDataKeyType) { default: - if (typeof object.timerNotificationType === "number") { - message.timerNotificationType = object.timerNotificationType; + if (typeof object.securityDataKeyType === "number") { + message.securityDataKeyType = object.securityDataKeyType; break; } break; - case "NOTIFICATION_OFF": + case "NO_KEY": case 0: - message.timerNotificationType = 0; + message.securityDataKeyType = 0; break; - case "NOTIFY_OWNER": + case "ENCRYPTED_BY_DATA_KEY": case 1: - message.timerNotificationType = 1; + message.securityDataKeyType = 1; break; - case "NOTIFY_PRIVILEGED_USERS": + case "ENCRYPTED_BY_PUBLIC_KEY": case 2: - message.timerNotificationType = 2; + message.securityDataKeyType = 2; + break; + case "ENCRYPTED_BY_DATA_KEY_GCM": + case 3: + message.securityDataKeyType = 3; + break; + case "ENCRYPTED_BY_PUBLIC_KEY_ECC": + case 4: + message.securityDataKeyType = 4; + break; + case "ENCRYPTED_BY_ROOT_KEY_CBC": + case 5: + message.securityDataKeyType = 5; + break; + case "ENCRYPTED_BY_ROOT_KEY_GCM": + case 6: + message.securityDataKeyType = 6; break; } - if (object.rotateOnExpiration != null) - message.rotateOnExpiration = Boolean(object.rotateOnExpiration); return message; }; /** - * Creates a plain object from a SharedFolderPermission message. Also converts values to other types if specified. + * Creates a plain object from a RecordsAddRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Records.SharedFolderPermission + * @memberof Records.RecordsAddRequest * @static - * @param {Records.SharedFolderPermission} message SharedFolderPermission + * @param {Records.RecordsAddRequest} message RecordsAddRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderPermission.toObject = function toObject(message, options) { + RecordsAddRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.records = []; if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; - else { - object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); - } - object.resharable = false; - object.editable = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : 0; - object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; - object.rotateOnExpiration = false; + object.clientTime = options.longs === String ? "0" : 0; + object.securityDataKeyType = options.enums === String ? "NO_KEY" : 0; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.resharable != null && message.hasOwnProperty("resharable")) - object.resharable = message.resharable; - if (message.editable != null && message.hasOwnProperty("editable")) - object.editable = message.editable; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") - object.revision = options.longs === String ? String(message.revision) : message.revision; - else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") - object.expiration = options.longs === String ? String(message.expiration) : message.expiration; + if (message.records && message.records.length) { + object.records = []; + for (let j = 0; j < message.records.length; ++j) + object.records[j] = $root.Records.RecordAdd.toObject(message.records[j], options); + } + if (message.clientTime != null && message.hasOwnProperty("clientTime")) + if (typeof message.clientTime === "number") + object.clientTime = options.longs === String ? String(message.clientTime) : message.clientTime; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) - object.timerNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.Records.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - object.rotateOnExpiration = message.rotateOnExpiration; + object.clientTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientTime) : options.longs === Number ? new $util.LongBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0).toNumber() : message.clientTime; + if (message.securityDataKeyType != null && message.hasOwnProperty("securityDataKeyType")) + object.securityDataKeyType = options.enums === String ? $root.Records.RecordKeyType[message.securityDataKeyType] === undefined ? message.securityDataKeyType : $root.Records.RecordKeyType[message.securityDataKeyType] : message.securityDataKeyType; return object; }; /** - * Converts this SharedFolderPermission to JSON. + * Converts this RecordsAddRequest to JSON. * @function toJSON - * @memberof Records.SharedFolderPermission + * @memberof Records.RecordsAddRequest * @instance * @returns {Object.} JSON object */ - SharedFolderPermission.prototype.toJSON = function toJSON() { + RecordsAddRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SharedFolderPermission + * Gets the default type url for RecordsAddRequest * @function getTypeUrl - * @memberof Records.SharedFolderPermission + * @memberof Records.RecordsAddRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SharedFolderPermission.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordsAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.SharedFolderPermission"; + return typeUrlPrefix + "/Records.RecordsAddRequest"; }; - return SharedFolderPermission; + return RecordsAddRequest; })(); - Records.RecordData = (function() { + Records.RecordUpdate = (function() { /** - * Properties of a RecordData. + * Properties of a RecordUpdate. * @memberof Records - * @interface IRecordData - * @property {number|Long|null} [revision] RecordData revision - * @property {number|null} [version] RecordData version - * @property {boolean|null} [shared] RecordData shared - * @property {string|null} [encryptedRecordData] RecordData encryptedRecordData - * @property {string|null} [encryptedExtraData] RecordData encryptedExtraData - * @property {number|Long|null} [clientModifiedTime] RecordData clientModifiedTime - * @property {string|null} [nonSharedData] RecordData nonSharedData - * @property {Array.|null} [linkedRecordData] RecordData linkedRecordData - * @property {Array.|null} [fileId] RecordData fileId - * @property {number|Long|null} [fileSize] RecordData fileSize - * @property {number|Long|null} [thumbnailSize] RecordData thumbnailSize - * @property {Records.RecordKeyType|null} [recordKeyType] RecordData recordKeyType - * @property {Uint8Array|null} [recordKey] RecordData recordKey - * @property {Uint8Array|null} [recordUid] RecordData recordUid + * @interface IRecordUpdate + * @property {Uint8Array|null} [recordUid] RecordUpdate recordUid + * @property {number|Long|null} [clientModifiedTime] RecordUpdate clientModifiedTime + * @property {number|Long|null} [revision] RecordUpdate revision + * @property {Uint8Array|null} [data] RecordUpdate data + * @property {Uint8Array|null} [nonSharedData] RecordUpdate nonSharedData + * @property {Array.|null} [recordLinksAdd] RecordUpdate recordLinksAdd + * @property {Array.|null} [recordLinksRemove] RecordUpdate recordLinksRemove + * @property {Records.IRecordAudit|null} [audit] RecordUpdate audit + * @property {Records.ISecurityData|null} [securityData] RecordUpdate securityData + * @property {Records.ISecurityScoreData|null} [securityScoreData] RecordUpdate securityScoreData */ /** - * Constructs a new RecordData. + * Constructs a new RecordUpdate. * @memberof Records - * @classdesc Represents a RecordData. - * @implements IRecordData + * @classdesc Represents a RecordUpdate. + * @implements IRecordUpdate * @constructor - * @param {Records.IRecordData=} [properties] Properties to set + * @param {Records.IRecordUpdate=} [properties] Properties to set */ - function RecordData(properties) { - this.linkedRecordData = []; - this.fileId = []; + function RecordUpdate(properties) { + this.recordLinksAdd = []; + this.recordLinksRemove = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -184882,263 +186415,207 @@ export const Records = $root.Records = (() => { } /** - * RecordData revision. - * @member {number|Long} revision - * @memberof Records.RecordData - * @instance - */ - RecordData.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * RecordData version. - * @member {number} version - * @memberof Records.RecordData - * @instance - */ - RecordData.prototype.version = 0; - - /** - * RecordData shared. - * @member {boolean} shared - * @memberof Records.RecordData - * @instance - */ - RecordData.prototype.shared = false; - - /** - * RecordData encryptedRecordData. - * @member {string} encryptedRecordData - * @memberof Records.RecordData - * @instance - */ - RecordData.prototype.encryptedRecordData = ""; - - /** - * RecordData encryptedExtraData. - * @member {string} encryptedExtraData - * @memberof Records.RecordData + * RecordUpdate recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.RecordUpdate * @instance */ - RecordData.prototype.encryptedExtraData = ""; + RecordUpdate.prototype.recordUid = $util.newBuffer([]); /** - * RecordData clientModifiedTime. + * RecordUpdate clientModifiedTime. * @member {number|Long} clientModifiedTime - * @memberof Records.RecordData + * @memberof Records.RecordUpdate * @instance */ - RecordData.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordUpdate.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * RecordData nonSharedData. - * @member {string} nonSharedData - * @memberof Records.RecordData + * RecordUpdate revision. + * @member {number|Long} revision + * @memberof Records.RecordUpdate * @instance */ - RecordData.prototype.nonSharedData = ""; + RecordUpdate.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * RecordData linkedRecordData. - * @member {Array.} linkedRecordData - * @memberof Records.RecordData + * RecordUpdate data. + * @member {Uint8Array} data + * @memberof Records.RecordUpdate * @instance */ - RecordData.prototype.linkedRecordData = $util.emptyArray; + RecordUpdate.prototype.data = $util.newBuffer([]); /** - * RecordData fileId. - * @member {Array.} fileId - * @memberof Records.RecordData + * RecordUpdate nonSharedData. + * @member {Uint8Array} nonSharedData + * @memberof Records.RecordUpdate * @instance */ - RecordData.prototype.fileId = $util.emptyArray; + RecordUpdate.prototype.nonSharedData = $util.newBuffer([]); /** - * RecordData fileSize. - * @member {number|Long} fileSize - * @memberof Records.RecordData + * RecordUpdate recordLinksAdd. + * @member {Array.} recordLinksAdd + * @memberof Records.RecordUpdate * @instance */ - RecordData.prototype.fileSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordUpdate.prototype.recordLinksAdd = $util.emptyArray; /** - * RecordData thumbnailSize. - * @member {number|Long} thumbnailSize - * @memberof Records.RecordData + * RecordUpdate recordLinksRemove. + * @member {Array.} recordLinksRemove + * @memberof Records.RecordUpdate * @instance */ - RecordData.prototype.thumbnailSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordUpdate.prototype.recordLinksRemove = $util.emptyArray; /** - * RecordData recordKeyType. - * @member {Records.RecordKeyType} recordKeyType - * @memberof Records.RecordData + * RecordUpdate audit. + * @member {Records.IRecordAudit|null|undefined} audit + * @memberof Records.RecordUpdate * @instance */ - RecordData.prototype.recordKeyType = 0; + RecordUpdate.prototype.audit = null; /** - * RecordData recordKey. - * @member {Uint8Array} recordKey - * @memberof Records.RecordData + * RecordUpdate securityData. + * @member {Records.ISecurityData|null|undefined} securityData + * @memberof Records.RecordUpdate * @instance */ - RecordData.prototype.recordKey = $util.newBuffer([]); + RecordUpdate.prototype.securityData = null; /** - * RecordData recordUid. - * @member {Uint8Array} recordUid - * @memberof Records.RecordData + * RecordUpdate securityScoreData. + * @member {Records.ISecurityScoreData|null|undefined} securityScoreData + * @memberof Records.RecordUpdate * @instance */ - RecordData.prototype.recordUid = $util.newBuffer([]); + RecordUpdate.prototype.securityScoreData = null; /** - * Creates a new RecordData instance using the specified properties. + * Creates a new RecordUpdate instance using the specified properties. * @function create - * @memberof Records.RecordData + * @memberof Records.RecordUpdate * @static - * @param {Records.IRecordData=} [properties] Properties to set - * @returns {Records.RecordData} RecordData instance + * @param {Records.IRecordUpdate=} [properties] Properties to set + * @returns {Records.RecordUpdate} RecordUpdate instance */ - RecordData.create = function create(properties) { - return new RecordData(properties); + RecordUpdate.create = function create(properties) { + return new RecordUpdate(properties); }; /** - * Encodes the specified RecordData message. Does not implicitly {@link Records.RecordData.verify|verify} messages. + * Encodes the specified RecordUpdate message. Does not implicitly {@link Records.RecordUpdate.verify|verify} messages. * @function encode - * @memberof Records.RecordData + * @memberof Records.RecordUpdate * @static - * @param {Records.IRecordData} message RecordData message or plain object to encode + * @param {Records.IRecordUpdate} message RecordUpdate message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordData.encode = function encode(message, writer) { + RecordUpdate.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.revision); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.version); - if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.shared); - if (message.encryptedRecordData != null && Object.hasOwnProperty.call(message, "encryptedRecordData")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.encryptedRecordData); - if (message.encryptedExtraData != null && Object.hasOwnProperty.call(message, "encryptedExtraData")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.encryptedExtraData); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.clientModifiedTime); + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientModifiedTime); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "nonSharedData")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.nonSharedData); - if (message.linkedRecordData != null && message.linkedRecordData.length) - for (let i = 0; i < message.linkedRecordData.length; ++i) - $root.Records.RecordData.encode(message.linkedRecordData[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.fileId != null && message.fileId.length) - for (let i = 0; i < message.fileId.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.fileId[i]); - if (message.fileSize != null && Object.hasOwnProperty.call(message, "fileSize")) - writer.uint32(/* id 10, wireType 0 =*/80).int64(message.fileSize); - if (message.thumbnailSize != null && Object.hasOwnProperty.call(message, "thumbnailSize")) - writer.uint32(/* id 11, wireType 0 =*/88).int64(message.thumbnailSize); - if (message.recordKeyType != null && Object.hasOwnProperty.call(message, "recordKeyType")) - writer.uint32(/* id 12, wireType 0 =*/96).int32(message.recordKeyType); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.recordKey); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 14, wireType 2 =*/114).bytes(message.recordUid); + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.nonSharedData); + if (message.recordLinksAdd != null && message.recordLinksAdd.length) + for (let i = 0; i < message.recordLinksAdd.length; ++i) + $root.Records.RecordLink.encode(message.recordLinksAdd[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.recordLinksRemove != null && message.recordLinksRemove.length) + for (let i = 0; i < message.recordLinksRemove.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.recordLinksRemove[i]); + if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) + $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.securityData != null && Object.hasOwnProperty.call(message, "securityData")) + $root.Records.SecurityData.encode(message.securityData, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.securityScoreData != null && Object.hasOwnProperty.call(message, "securityScoreData")) + $root.Records.SecurityScoreData.encode(message.securityScoreData, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; /** - * Encodes the specified RecordData message, length delimited. Does not implicitly {@link Records.RecordData.verify|verify} messages. + * Encodes the specified RecordUpdate message, length delimited. Does not implicitly {@link Records.RecordUpdate.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordData + * @memberof Records.RecordUpdate * @static - * @param {Records.IRecordData} message RecordData message or plain object to encode + * @param {Records.IRecordUpdate} message RecordUpdate message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordData.encodeDelimited = function encodeDelimited(message, writer) { + RecordUpdate.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordData message from the specified reader or buffer. + * Decodes a RecordUpdate message from the specified reader or buffer. * @function decode - * @memberof Records.RecordData + * @memberof Records.RecordUpdate * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordData} RecordData + * @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 */ - RecordData.decode = function decode(reader, length) { + RecordUpdate.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordUpdate(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.revision = reader.int64(); + message.recordUid = reader.bytes(); break; } case 2: { - message.version = reader.int32(); + message.clientModifiedTime = reader.int64(); break; } case 3: { - message.shared = reader.bool(); + message.revision = reader.int64(); break; } case 4: { - message.encryptedRecordData = reader.string(); + message.data = reader.bytes(); break; } case 5: { - message.encryptedExtraData = reader.string(); + message.nonSharedData = reader.bytes(); break; } case 6: { - message.clientModifiedTime = reader.int64(); + if (!(message.recordLinksAdd && message.recordLinksAdd.length)) + message.recordLinksAdd = []; + message.recordLinksAdd.push($root.Records.RecordLink.decode(reader, reader.uint32())); break; } case 7: { - message.nonSharedData = reader.string(); + if (!(message.recordLinksRemove && message.recordLinksRemove.length)) + message.recordLinksRemove = []; + message.recordLinksRemove.push(reader.bytes()); break; } case 8: { - if (!(message.linkedRecordData && message.linkedRecordData.length)) - message.linkedRecordData = []; - message.linkedRecordData.push($root.Records.RecordData.decode(reader, reader.uint32())); + message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); break; } case 9: { - if (!(message.fileId && message.fileId.length)) - message.fileId = []; - message.fileId.push(reader.bytes()); + message.securityData = $root.Records.SecurityData.decode(reader, reader.uint32()); break; } case 10: { - message.fileSize = reader.int64(); - break; - } - case 11: { - message.thumbnailSize = reader.int64(); - break; - } - case 12: { - message.recordKeyType = reader.int32(); - break; - } - case 13: { - message.recordKey = reader.bytes(); - break; - } - case 14: { - message.recordUid = reader.bytes(); + message.securityScoreData = $root.Records.SecurityScoreData.decode(reader, reader.uint32()); break; } default: @@ -185150,126 +186627,98 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordData message from the specified reader or buffer, length delimited. + * Decodes a RecordUpdate message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordData + * @memberof Records.RecordUpdate * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordData} RecordData + * @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 */ - RecordData.decodeDelimited = function decodeDelimited(reader) { + RecordUpdate.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordData message. + * Verifies a RecordUpdate message. * @function verify - * @memberof Records.RecordData + * @memberof Records.RecordUpdate * @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) { + RecordUpdate.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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.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 (!$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]); + 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]); if (error) - return "linkedRecordData." + error; + return "recordLinksAdd." + 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.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); + if (error) + return "audit." + error; + } + if (message.securityData != null && message.hasOwnProperty("securityData")) { + let error = $root.Records.SecurityData.verify(message.securityData); + if (error) + return "securityData." + error; + } + if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) { + let error = $root.Records.SecurityScoreData.verify(message.securityScoreData); + if (error) + return "securityScoreData." + error; } - 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. + * Creates a RecordUpdate message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordData + * @memberof Records.RecordUpdate * @static * @param {Object.} object Plain object - * @returns {Records.RecordData} RecordData + * @returns {Records.RecordUpdate} RecordUpdate */ - RecordData.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordData) + RecordUpdate.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordUpdate) return object; - let message = new $root.Records.RecordData(); - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.version != null) - message.version = object.version | 0; - if (object.shared != null) - message.shared = Boolean(object.shared); - if (object.encryptedRecordData != null) - message.encryptedRecordData = String(object.encryptedRecordData); - if (object.encryptedExtraData != null) - message.encryptedExtraData = String(object.encryptedExtraData); + let message = new $root.Records.RecordUpdate(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; if (object.clientModifiedTime != null) if ($util.Long) (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; @@ -185279,255 +186728,201 @@ export const Records = $root.Records = (() => { message.clientModifiedTime = object.clientModifiedTime; else if (typeof object.clientModifiedTime === "object") message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; if (object.nonSharedData != null) - message.nonSharedData = String(object.nonSharedData); - if (object.linkedRecordData) { - if (!Array.isArray(object.linkedRecordData)) - throw TypeError(".Records.RecordData.linkedRecordData: array expected"); - message.linkedRecordData = []; - for (let i = 0; i < object.linkedRecordData.length; ++i) { - if (typeof object.linkedRecordData[i] !== "object") - throw TypeError(".Records.RecordData.linkedRecordData: object expected"); - message.linkedRecordData[i] = $root.Records.RecordData.fromObject(object.linkedRecordData[i]); + if (typeof object.nonSharedData === "string") + $util.base64.decode(object.nonSharedData, message.nonSharedData = $util.newBuffer($util.base64.length(object.nonSharedData)), 0); + else if (object.nonSharedData.length >= 0) + message.nonSharedData = object.nonSharedData; + if (object.recordLinksAdd) { + if (!Array.isArray(object.recordLinksAdd)) + throw TypeError(".Records.RecordUpdate.recordLinksAdd: array expected"); + message.recordLinksAdd = []; + for (let i = 0; i < object.recordLinksAdd.length; ++i) { + if (typeof object.recordLinksAdd[i] !== "object") + throw TypeError(".Records.RecordUpdate.recordLinksAdd: object expected"); + message.recordLinksAdd[i] = $root.Records.RecordLink.fromObject(object.recordLinksAdd[i]); } } - if (object.fileId) { - if (!Array.isArray(object.fileId)) - throw TypeError(".Records.RecordData.fileId: array expected"); - message.fileId = []; - for (let i = 0; i < object.fileId.length; ++i) - if (typeof object.fileId[i] === "string") - $util.base64.decode(object.fileId[i], message.fileId[i] = $util.newBuffer($util.base64.length(object.fileId[i])), 0); - else if (object.fileId[i].length >= 0) - message.fileId[i] = object.fileId[i]; + if (object.recordLinksRemove) { + if (!Array.isArray(object.recordLinksRemove)) + throw TypeError(".Records.RecordUpdate.recordLinksRemove: array expected"); + message.recordLinksRemove = []; + for (let i = 0; i < object.recordLinksRemove.length; ++i) + if (typeof object.recordLinksRemove[i] === "string") + $util.base64.decode(object.recordLinksRemove[i], message.recordLinksRemove[i] = $util.newBuffer($util.base64.length(object.recordLinksRemove[i])), 0); + else if (object.recordLinksRemove[i].length >= 0) + message.recordLinksRemove[i] = object.recordLinksRemove[i]; } - if (object.fileSize != null) - if ($util.Long) - (message.fileSize = $util.Long.fromValue(object.fileSize)).unsigned = false; - else if (typeof object.fileSize === "string") - message.fileSize = parseInt(object.fileSize, 10); - else if (typeof object.fileSize === "number") - message.fileSize = object.fileSize; - else if (typeof object.fileSize === "object") - message.fileSize = new $util.LongBits(object.fileSize.low >>> 0, object.fileSize.high >>> 0).toNumber(); - if (object.thumbnailSize != null) - if ($util.Long) - (message.thumbnailSize = $util.Long.fromValue(object.thumbnailSize)).unsigned = false; - else if (typeof object.thumbnailSize === "string") - message.thumbnailSize = parseInt(object.thumbnailSize, 10); - else if (typeof object.thumbnailSize === "number") - message.thumbnailSize = object.thumbnailSize; - else if (typeof object.thumbnailSize === "object") - message.thumbnailSize = new $util.LongBits(object.thumbnailSize.low >>> 0, object.thumbnailSize.high >>> 0).toNumber(); - switch (object.recordKeyType) { - default: - if (typeof object.recordKeyType === "number") { - message.recordKeyType = object.recordKeyType; - break; - } - break; - case "NO_KEY": - case 0: - message.recordKeyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.recordKeyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.recordKeyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.recordKeyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.recordKeyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.recordKeyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.recordKeyType = 6; - break; + if (object.audit != null) { + if (typeof object.audit !== "object") + throw TypeError(".Records.RecordUpdate.audit: object expected"); + message.audit = $root.Records.RecordAudit.fromObject(object.audit); + } + if (object.securityData != null) { + if (typeof object.securityData !== "object") + throw TypeError(".Records.RecordUpdate.securityData: object expected"); + message.securityData = $root.Records.SecurityData.fromObject(object.securityData); + } + if (object.securityScoreData != null) { + if (typeof object.securityScoreData !== "object") + throw TypeError(".Records.RecordUpdate.securityScoreData: object expected"); + message.securityScoreData = $root.Records.SecurityScoreData.fromObject(object.securityScoreData); } - if (object.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; return message; }; /** - * Creates a plain object from a RecordData message. Also converts values to other types if specified. + * Creates a plain object from a RecordUpdate message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordData + * @memberof Records.RecordUpdate * @static - * @param {Records.RecordData} message RecordData + * @param {Records.RecordUpdate} message RecordUpdate * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordData.toObject = function toObject(message, options) { + RecordUpdate.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { - object.linkedRecordData = []; - object.fileId = []; + object.recordLinksAdd = []; + object.recordLinksRemove = []; } if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - object.version = 0; - object.shared = false; - object.encryptedRecordData = ""; - object.encryptedExtraData = ""; + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } if ($util.Long) { let long = new $util.Long(0, 0, false); object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.clientModifiedTime = options.longs === String ? "0" : 0; - object.nonSharedData = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.fileSize = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.thumbnailSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.thumbnailSize = options.longs === String ? "0" : 0; - object.recordKeyType = options.enums === String ? "NO_KEY" : 0; + object.revision = options.longs === String ? "0" : 0; if (options.bytes === String) - object.recordKey = ""; + object.data = ""; else { - object.recordKey = []; + object.data = []; if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); + object.data = $util.newBuffer(object.data); } if (options.bytes === String) - object.recordUid = ""; + object.nonSharedData = ""; else { - object.recordUid = []; + object.nonSharedData = []; if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + object.nonSharedData = $util.newBuffer(object.nonSharedData); } + object.audit = null; + object.securityData = null; + object.securityScoreData = null; } - if (message.revision != null && message.hasOwnProperty("revision")) - 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")) - object.version = message.version; - if (message.shared != null && message.hasOwnProperty("shared")) - object.shared = message.shared; - if (message.encryptedRecordData != null && message.hasOwnProperty("encryptedRecordData")) - object.encryptedRecordData = message.encryptedRecordData; - if (message.encryptedExtraData != null && message.hasOwnProperty("encryptedExtraData")) - object.encryptedExtraData = message.encryptedExtraData; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) if (typeof message.clientModifiedTime === "number") object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; else object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof 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")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) - object.nonSharedData = message.nonSharedData; - if (message.linkedRecordData && message.linkedRecordData.length) { - object.linkedRecordData = []; - for (let j = 0; j < message.linkedRecordData.length; ++j) - object.linkedRecordData[j] = $root.Records.RecordData.toObject(message.linkedRecordData[j], options); + 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 = []; + for (let j = 0; j < message.recordLinksAdd.length; ++j) + object.recordLinksAdd[j] = $root.Records.RecordLink.toObject(message.recordLinksAdd[j], options); } - if (message.fileId && message.fileId.length) { - object.fileId = []; - 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.recordLinksRemove && message.recordLinksRemove.length) { + object.recordLinksRemove = []; + 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.fileSize != null && message.hasOwnProperty("fileSize")) - if (typeof message.fileSize === "number") - object.fileSize = options.longs === String ? String(message.fileSize) : message.fileSize; - else - object.fileSize = options.longs === String ? $util.Long.prototype.toString.call(message.fileSize) : options.longs === Number ? new $util.LongBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0).toNumber() : message.fileSize; - if (message.thumbnailSize != null && message.hasOwnProperty("thumbnailSize")) - if (typeof 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")) - 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")) - 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")) - 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.audit != null && message.hasOwnProperty("audit")) + object.audit = $root.Records.RecordAudit.toObject(message.audit, options); + if (message.securityData != null && message.hasOwnProperty("securityData")) + object.securityData = $root.Records.SecurityData.toObject(message.securityData, options); + if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) + object.securityScoreData = $root.Records.SecurityScoreData.toObject(message.securityScoreData, options); return object; }; /** - * Converts this RecordData to JSON. + * Converts this RecordUpdate to JSON. * @function toJSON - * @memberof Records.RecordData + * @memberof Records.RecordUpdate * @instance * @returns {Object.} JSON object */ - RecordData.prototype.toJSON = function toJSON() { + RecordUpdate.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordData + * Gets the default type url for RecordUpdate * @function getTypeUrl - * @memberof Records.RecordData + * @memberof Records.RecordUpdate * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordUpdate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordData"; + return typeUrlPrefix + "/Records.RecordUpdate"; }; - return RecordData; + return RecordUpdate; })(); - Records.RecordDataWithAccessInfo = (function() { + Records.RecordsUpdateRequest = (function() { /** - * Properties of a RecordDataWithAccessInfo. + * Properties of a RecordsUpdateRequest. * @memberof Records - * @interface IRecordDataWithAccessInfo - * @property {Uint8Array|null} [recordUid] RecordDataWithAccessInfo recordUid - * @property {Records.IRecordData|null} [recordData] RecordDataWithAccessInfo recordData - * @property {Array.|null} [userPermission] RecordDataWithAccessInfo userPermission - * @property {Array.|null} [sharedFolderPermission] RecordDataWithAccessInfo sharedFolderPermission + * @interface IRecordsUpdateRequest + * @property {Array.|null} [records] RecordsUpdateRequest records + * @property {number|Long|null} [clientTime] RecordsUpdateRequest clientTime + * @property {Records.RecordKeyType|null} [securityDataKeyType] RecordsUpdateRequest securityDataKeyType */ /** - * Constructs a new RecordDataWithAccessInfo. + * Constructs a new RecordsUpdateRequest. * @memberof Records - * @classdesc Represents a RecordDataWithAccessInfo. - * @implements IRecordDataWithAccessInfo + * @classdesc Represents a RecordsUpdateRequest. + * @implements IRecordsUpdateRequest * @constructor - * @param {Records.IRecordDataWithAccessInfo=} [properties] Properties to set + * @param {Records.IRecordsUpdateRequest=} [properties] Properties to set */ - function RecordDataWithAccessInfo(properties) { - this.userPermission = []; - this.sharedFolderPermission = []; + function RecordsUpdateRequest(properties) { + this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -185535,123 +186930,106 @@ export const Records = $root.Records = (() => { } /** - * RecordDataWithAccessInfo recordUid. - * @member {Uint8Array} recordUid - * @memberof Records.RecordDataWithAccessInfo - * @instance - */ - RecordDataWithAccessInfo.prototype.recordUid = $util.newBuffer([]); - - /** - * RecordDataWithAccessInfo recordData. - * @member {Records.IRecordData|null|undefined} recordData - * @memberof Records.RecordDataWithAccessInfo + * RecordsUpdateRequest records. + * @member {Array.} records + * @memberof Records.RecordsUpdateRequest * @instance */ - RecordDataWithAccessInfo.prototype.recordData = null; + RecordsUpdateRequest.prototype.records = $util.emptyArray; /** - * RecordDataWithAccessInfo userPermission. - * @member {Array.} userPermission - * @memberof Records.RecordDataWithAccessInfo + * RecordsUpdateRequest clientTime. + * @member {number|Long} clientTime + * @memberof Records.RecordsUpdateRequest * @instance */ - RecordDataWithAccessInfo.prototype.userPermission = $util.emptyArray; + RecordsUpdateRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * RecordDataWithAccessInfo sharedFolderPermission. - * @member {Array.} sharedFolderPermission - * @memberof Records.RecordDataWithAccessInfo + * RecordsUpdateRequest securityDataKeyType. + * @member {Records.RecordKeyType} securityDataKeyType + * @memberof Records.RecordsUpdateRequest * @instance */ - RecordDataWithAccessInfo.prototype.sharedFolderPermission = $util.emptyArray; + RecordsUpdateRequest.prototype.securityDataKeyType = 0; /** - * Creates a new RecordDataWithAccessInfo instance using the specified properties. + * Creates a new RecordsUpdateRequest instance using the specified properties. * @function create - * @memberof Records.RecordDataWithAccessInfo + * @memberof Records.RecordsUpdateRequest * @static - * @param {Records.IRecordDataWithAccessInfo=} [properties] Properties to set - * @returns {Records.RecordDataWithAccessInfo} RecordDataWithAccessInfo instance + * @param {Records.IRecordsUpdateRequest=} [properties] Properties to set + * @returns {Records.RecordsUpdateRequest} RecordsUpdateRequest instance */ - RecordDataWithAccessInfo.create = function create(properties) { - return new RecordDataWithAccessInfo(properties); + RecordsUpdateRequest.create = function create(properties) { + return new RecordsUpdateRequest(properties); }; /** - * Encodes the specified RecordDataWithAccessInfo message. Does not implicitly {@link Records.RecordDataWithAccessInfo.verify|verify} messages. + * Encodes the specified RecordsUpdateRequest message. Does not implicitly {@link Records.RecordsUpdateRequest.verify|verify} messages. * @function encode - * @memberof Records.RecordDataWithAccessInfo + * @memberof Records.RecordsUpdateRequest * @static - * @param {Records.IRecordDataWithAccessInfo} message RecordDataWithAccessInfo message or plain object to encode + * @param {Records.IRecordsUpdateRequest} message RecordsUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordDataWithAccessInfo.encode = function encode(message, writer) { + RecordsUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.recordData != null && Object.hasOwnProperty.call(message, "recordData")) - $root.Records.RecordData.encode(message.recordData, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.userPermission != null && message.userPermission.length) - for (let i = 0; i < message.userPermission.length; ++i) - $root.Records.UserPermission.encode(message.userPermission[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.sharedFolderPermission != null && message.sharedFolderPermission.length) - for (let i = 0; i < message.sharedFolderPermission.length; ++i) - $root.Records.SharedFolderPermission.encode(message.sharedFolderPermission[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.records != null && message.records.length) + for (let i = 0; i < message.records.length; ++i) + $root.Records.RecordUpdate.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); + if (message.securityDataKeyType != null && Object.hasOwnProperty.call(message, "securityDataKeyType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.securityDataKeyType); return writer; }; /** - * Encodes the specified RecordDataWithAccessInfo message, length delimited. Does not implicitly {@link Records.RecordDataWithAccessInfo.verify|verify} messages. + * Encodes the specified RecordsUpdateRequest message, length delimited. Does not implicitly {@link Records.RecordsUpdateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordDataWithAccessInfo + * @memberof Records.RecordsUpdateRequest * @static - * @param {Records.IRecordDataWithAccessInfo} message RecordDataWithAccessInfo message or plain object to encode + * @param {Records.IRecordsUpdateRequest} message RecordsUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordDataWithAccessInfo.encodeDelimited = function encodeDelimited(message, writer) { + RecordsUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordDataWithAccessInfo message from the specified reader or buffer. + * Decodes a RecordsUpdateRequest message from the specified reader or buffer. * @function decode - * @memberof Records.RecordDataWithAccessInfo + * @memberof Records.RecordsUpdateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordDataWithAccessInfo} RecordDataWithAccessInfo + * @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 */ - RecordDataWithAccessInfo.decode = function decode(reader, length) { + RecordsUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordDataWithAccessInfo(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + if (!(message.records && message.records.length)) + message.records = []; + message.records.push($root.Records.RecordUpdate.decode(reader, reader.uint32())); break; } case 2: { - message.recordData = $root.Records.RecordData.decode(reader, reader.uint32()); + message.clientTime = reader.int64(); break; } case 3: { - if (!(message.userPermission && message.userPermission.length)) - message.userPermission = []; - message.userPermission.push($root.Records.UserPermission.decode(reader, reader.uint32())); - break; - } - case 4: { - if (!(message.sharedFolderPermission && message.sharedFolderPermission.length)) - message.sharedFolderPermission = []; - message.sharedFolderPermission.push($root.Records.SharedFolderPermission.decode(reader, reader.uint32())); + message.securityDataKeyType = reader.int32(); break; } default: @@ -185663,200 +187041,220 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordDataWithAccessInfo message from the specified reader or buffer, length delimited. + * Decodes a RecordsUpdateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordDataWithAccessInfo + * @memberof Records.RecordsUpdateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordDataWithAccessInfo} RecordDataWithAccessInfo + * @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 */ - RecordDataWithAccessInfo.decodeDelimited = function decodeDelimited(reader) { + RecordsUpdateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordDataWithAccessInfo message. + * Verifies a RecordsUpdateRequest message. * @function verify - * @memberof Records.RecordDataWithAccessInfo + * @memberof Records.RecordsUpdateRequest * @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) { + RecordsUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.recordData != null && message.hasOwnProperty("recordData")) { - let error = $root.Records.RecordData.verify(message.recordData); - 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]); + 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]); if (error) - return "userPermission." + error; + return "records." + 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]); - if (error) - return "sharedFolderPermission." + 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 RecordDataWithAccessInfo message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordDataWithAccessInfo + * @memberof Records.RecordsUpdateRequest * @static * @param {Object.} object Plain object - * @returns {Records.RecordDataWithAccessInfo} RecordDataWithAccessInfo + * @returns {Records.RecordsUpdateRequest} RecordsUpdateRequest */ - RecordDataWithAccessInfo.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordDataWithAccessInfo) + RecordsUpdateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordsUpdateRequest) return object; - let message = new $root.Records.RecordDataWithAccessInfo(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.recordData != null) { - if (typeof object.recordData !== "object") - throw TypeError(".Records.RecordDataWithAccessInfo.recordData: object expected"); - message.recordData = $root.Records.RecordData.fromObject(object.recordData); - } - if (object.userPermission) { - if (!Array.isArray(object.userPermission)) - throw TypeError(".Records.RecordDataWithAccessInfo.userPermission: array expected"); - message.userPermission = []; - for (let i = 0; i < object.userPermission.length; ++i) { - if (typeof object.userPermission[i] !== "object") - throw TypeError(".Records.RecordDataWithAccessInfo.userPermission: object expected"); - message.userPermission[i] = $root.Records.UserPermission.fromObject(object.userPermission[i]); + let message = new $root.Records.RecordsUpdateRequest(); + if (object.records) { + if (!Array.isArray(object.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") + throw TypeError(".Records.RecordsUpdateRequest.records: object expected"); + message.records[i] = $root.Records.RecordUpdate.fromObject(object.records[i]); } } - if (object.sharedFolderPermission) { - if (!Array.isArray(object.sharedFolderPermission)) - throw TypeError(".Records.RecordDataWithAccessInfo.sharedFolderPermission: array expected"); - message.sharedFolderPermission = []; - for (let i = 0; i < object.sharedFolderPermission.length; ++i) { - if (typeof object.sharedFolderPermission[i] !== "object") - throw TypeError(".Records.RecordDataWithAccessInfo.sharedFolderPermission: object expected"); - message.sharedFolderPermission[i] = $root.Records.SharedFolderPermission.fromObject(object.sharedFolderPermission[i]); + if (object.clientTime != null) + if ($util.Long) + (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = false; + else if (typeof object.clientTime === "string") + message.clientTime = parseInt(object.clientTime, 10); + else if (typeof object.clientTime === "number") + message.clientTime = object.clientTime; + else if (typeof object.clientTime === "object") + message.clientTime = new $util.LongBits(object.clientTime.low >>> 0, object.clientTime.high >>> 0).toNumber(); + switch (object.securityDataKeyType) { + default: + if (typeof object.securityDataKeyType === "number") { + message.securityDataKeyType = object.securityDataKeyType; + break; } + break; + case "NO_KEY": + case 0: + message.securityDataKeyType = 0; + break; + case "ENCRYPTED_BY_DATA_KEY": + case 1: + message.securityDataKeyType = 1; + break; + case "ENCRYPTED_BY_PUBLIC_KEY": + case 2: + message.securityDataKeyType = 2; + break; + case "ENCRYPTED_BY_DATA_KEY_GCM": + case 3: + message.securityDataKeyType = 3; + break; + case "ENCRYPTED_BY_PUBLIC_KEY_ECC": + case 4: + message.securityDataKeyType = 4; + break; + case "ENCRYPTED_BY_ROOT_KEY_CBC": + case 5: + message.securityDataKeyType = 5; + break; + case "ENCRYPTED_BY_ROOT_KEY_GCM": + case 6: + message.securityDataKeyType = 6; + break; } - return message; - }; - - /** - * Creates a plain object from a RecordDataWithAccessInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof Records.RecordDataWithAccessInfo - * @static - * @param {Records.RecordDataWithAccessInfo} message RecordDataWithAccessInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RecordDataWithAccessInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) { - object.userPermission = []; - object.sharedFolderPermission = []; - } - if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - object.recordData = null; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.recordData != null && message.hasOwnProperty("recordData")) - object.recordData = $root.Records.RecordData.toObject(message.recordData, options); - if (message.userPermission && message.userPermission.length) { - object.userPermission = []; - for (let j = 0; j < message.userPermission.length; ++j) - object.userPermission[j] = $root.Records.UserPermission.toObject(message.userPermission[j], options); + return message; + }; + + /** + * Creates a plain object from a RecordsUpdateRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof Records.RecordsUpdateRequest + * @static + * @param {Records.RecordsUpdateRequest} message RecordsUpdateRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordsUpdateRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.records = []; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.clientTime = options.longs === String ? "0" : 0; + object.securityDataKeyType = options.enums === String ? "NO_KEY" : 0; } - if (message.sharedFolderPermission && message.sharedFolderPermission.length) { - object.sharedFolderPermission = []; - for (let j = 0; j < message.sharedFolderPermission.length; ++j) - object.sharedFolderPermission[j] = $root.Records.SharedFolderPermission.toObject(message.sharedFolderPermission[j], options); + if (message.records && message.records.length) { + object.records = []; + for (let j = 0; j < message.records.length; ++j) + object.records[j] = $root.Records.RecordUpdate.toObject(message.records[j], options); } + if (message.clientTime != null && message.hasOwnProperty("clientTime")) + if (typeof message.clientTime === "number") + object.clientTime = options.longs === String ? String(message.clientTime) : message.clientTime; + else + object.clientTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientTime) : options.longs === Number ? new $util.LongBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0).toNumber() : message.clientTime; + if (message.securityDataKeyType != null && message.hasOwnProperty("securityDataKeyType")) + object.securityDataKeyType = options.enums === String ? $root.Records.RecordKeyType[message.securityDataKeyType] === undefined ? message.securityDataKeyType : $root.Records.RecordKeyType[message.securityDataKeyType] : message.securityDataKeyType; return object; }; /** - * Converts this RecordDataWithAccessInfo to JSON. + * Converts this RecordsUpdateRequest to JSON. * @function toJSON - * @memberof Records.RecordDataWithAccessInfo + * @memberof Records.RecordsUpdateRequest * @instance * @returns {Object.} JSON object */ - RecordDataWithAccessInfo.prototype.toJSON = function toJSON() { + RecordsUpdateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordDataWithAccessInfo + * Gets the default type url for RecordsUpdateRequest * @function getTypeUrl - * @memberof Records.RecordDataWithAccessInfo + * @memberof Records.RecordsUpdateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordDataWithAccessInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordsUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordDataWithAccessInfo"; + return typeUrlPrefix + "/Records.RecordsUpdateRequest"; }; - return RecordDataWithAccessInfo; + return RecordsUpdateRequest; })(); - Records.GetRecordDataWithAccessInfoResponse = (function() { + Records.RecordFileForConversion = (function() { /** - * Properties of a GetRecordDataWithAccessInfoResponse. + * Properties of a RecordFileForConversion. * @memberof Records - * @interface IGetRecordDataWithAccessInfoResponse - * @property {Array.|null} [recordDataWithAccessInfo] GetRecordDataWithAccessInfoResponse recordDataWithAccessInfo - * @property {Array.|null} [noPermissionRecordUid] GetRecordDataWithAccessInfoResponse noPermissionRecordUid + * @interface IRecordFileForConversion + * @property {Uint8Array|null} [recordUid] RecordFileForConversion recordUid + * @property {string|null} [fileFileId] RecordFileForConversion fileFileId + * @property {string|null} [thumbFileId] RecordFileForConversion thumbFileId + * @property {Uint8Array|null} [data] RecordFileForConversion data + * @property {Uint8Array|null} [recordKey] RecordFileForConversion recordKey + * @property {Uint8Array|null} [linkKey] RecordFileForConversion linkKey */ /** - * Constructs a new GetRecordDataWithAccessInfoResponse. + * Constructs a new RecordFileForConversion. * @memberof Records - * @classdesc Represents a GetRecordDataWithAccessInfoResponse. - * @implements IGetRecordDataWithAccessInfoResponse + * @classdesc Represents a RecordFileForConversion. + * @implements IRecordFileForConversion * @constructor - * @param {Records.IGetRecordDataWithAccessInfoResponse=} [properties] Properties to set + * @param {Records.IRecordFileForConversion=} [properties] Properties to set */ - function GetRecordDataWithAccessInfoResponse(properties) { - this.recordDataWithAccessInfo = []; - this.noPermissionRecordUid = []; + function RecordFileForConversion(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -185864,95 +187262,145 @@ export const Records = $root.Records = (() => { } /** - * GetRecordDataWithAccessInfoResponse recordDataWithAccessInfo. - * @member {Array.} recordDataWithAccessInfo - * @memberof Records.GetRecordDataWithAccessInfoResponse + * RecordFileForConversion recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.RecordFileForConversion * @instance */ - GetRecordDataWithAccessInfoResponse.prototype.recordDataWithAccessInfo = $util.emptyArray; + RecordFileForConversion.prototype.recordUid = $util.newBuffer([]); /** - * GetRecordDataWithAccessInfoResponse noPermissionRecordUid. - * @member {Array.} noPermissionRecordUid - * @memberof Records.GetRecordDataWithAccessInfoResponse + * RecordFileForConversion fileFileId. + * @member {string} fileFileId + * @memberof Records.RecordFileForConversion * @instance */ - GetRecordDataWithAccessInfoResponse.prototype.noPermissionRecordUid = $util.emptyArray; + RecordFileForConversion.prototype.fileFileId = ""; /** - * Creates a new GetRecordDataWithAccessInfoResponse instance using the specified properties. + * RecordFileForConversion thumbFileId. + * @member {string} thumbFileId + * @memberof Records.RecordFileForConversion + * @instance + */ + RecordFileForConversion.prototype.thumbFileId = ""; + + /** + * RecordFileForConversion data. + * @member {Uint8Array} data + * @memberof Records.RecordFileForConversion + * @instance + */ + RecordFileForConversion.prototype.data = $util.newBuffer([]); + + /** + * RecordFileForConversion recordKey. + * @member {Uint8Array} recordKey + * @memberof Records.RecordFileForConversion + * @instance + */ + RecordFileForConversion.prototype.recordKey = $util.newBuffer([]); + + /** + * RecordFileForConversion linkKey. + * @member {Uint8Array} linkKey + * @memberof Records.RecordFileForConversion + * @instance + */ + RecordFileForConversion.prototype.linkKey = $util.newBuffer([]); + + /** + * Creates a new RecordFileForConversion instance using the specified properties. * @function create - * @memberof Records.GetRecordDataWithAccessInfoResponse + * @memberof Records.RecordFileForConversion * @static - * @param {Records.IGetRecordDataWithAccessInfoResponse=} [properties] Properties to set - * @returns {Records.GetRecordDataWithAccessInfoResponse} GetRecordDataWithAccessInfoResponse instance + * @param {Records.IRecordFileForConversion=} [properties] Properties to set + * @returns {Records.RecordFileForConversion} RecordFileForConversion instance */ - GetRecordDataWithAccessInfoResponse.create = function create(properties) { - return new GetRecordDataWithAccessInfoResponse(properties); + RecordFileForConversion.create = function create(properties) { + return new RecordFileForConversion(properties); }; /** - * Encodes the specified GetRecordDataWithAccessInfoResponse message. Does not implicitly {@link Records.GetRecordDataWithAccessInfoResponse.verify|verify} messages. + * Encodes the specified RecordFileForConversion message. Does not implicitly {@link Records.RecordFileForConversion.verify|verify} messages. * @function encode - * @memberof Records.GetRecordDataWithAccessInfoResponse + * @memberof Records.RecordFileForConversion * @static - * @param {Records.IGetRecordDataWithAccessInfoResponse} message GetRecordDataWithAccessInfoResponse message or plain object to encode + * @param {Records.IRecordFileForConversion} message RecordFileForConversion message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRecordDataWithAccessInfoResponse.encode = function encode(message, writer) { + RecordFileForConversion.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordDataWithAccessInfo != null && message.recordDataWithAccessInfo.length) - for (let i = 0; i < message.recordDataWithAccessInfo.length; ++i) - $root.Records.RecordDataWithAccessInfo.encode(message.recordDataWithAccessInfo[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.noPermissionRecordUid != null && message.noPermissionRecordUid.length) - for (let i = 0; i < message.noPermissionRecordUid.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.noPermissionRecordUid[i]); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.fileFileId != null && Object.hasOwnProperty.call(message, "fileFileId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.fileFileId); + if (message.thumbFileId != null && Object.hasOwnProperty.call(message, "thumbFileId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.thumbFileId); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); + if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.recordKey); + if (message.linkKey != null && Object.hasOwnProperty.call(message, "linkKey")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.linkKey); return writer; }; /** - * Encodes the specified GetRecordDataWithAccessInfoResponse message, length delimited. Does not implicitly {@link Records.GetRecordDataWithAccessInfoResponse.verify|verify} messages. + * Encodes the specified RecordFileForConversion message, length delimited. Does not implicitly {@link Records.RecordFileForConversion.verify|verify} messages. * @function encodeDelimited - * @memberof Records.GetRecordDataWithAccessInfoResponse + * @memberof Records.RecordFileForConversion * @static - * @param {Records.IGetRecordDataWithAccessInfoResponse} message GetRecordDataWithAccessInfoResponse message or plain object to encode + * @param {Records.IRecordFileForConversion} message RecordFileForConversion message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRecordDataWithAccessInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { + RecordFileForConversion.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetRecordDataWithAccessInfoResponse message from the specified reader or buffer. + * Decodes a RecordFileForConversion message from the specified reader or buffer. * @function decode - * @memberof Records.GetRecordDataWithAccessInfoResponse + * @memberof Records.RecordFileForConversion * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.GetRecordDataWithAccessInfoResponse} GetRecordDataWithAccessInfoResponse + * @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 */ - GetRecordDataWithAccessInfoResponse.decode = function decode(reader, length) { + RecordFileForConversion.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetRecordDataWithAccessInfoResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordFileForConversion(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.recordDataWithAccessInfo && message.recordDataWithAccessInfo.length)) - message.recordDataWithAccessInfo = []; - message.recordDataWithAccessInfo.push($root.Records.RecordDataWithAccessInfo.decode(reader, reader.uint32())); + message.recordUid = reader.bytes(); break; } case 2: { - if (!(message.noPermissionRecordUid && message.noPermissionRecordUid.length)) - message.noPermissionRecordUid = []; - message.noPermissionRecordUid.push(reader.bytes()); + message.fileFileId = reader.string(); + break; + } + case 3: { + message.thumbFileId = reader.string(); + break; + } + case 4: { + message.data = reader.bytes(); + break; + } + case 5: { + message.recordKey = reader.bytes(); + break; + } + case 6: { + message.linkKey = reader.bytes(); break; } default: @@ -185964,181 +187412,200 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a GetRecordDataWithAccessInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a RecordFileForConversion message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.GetRecordDataWithAccessInfoResponse + * @memberof Records.RecordFileForConversion * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.GetRecordDataWithAccessInfoResponse} GetRecordDataWithAccessInfoResponse + * @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 */ - GetRecordDataWithAccessInfoResponse.decodeDelimited = function decodeDelimited(reader) { + RecordFileForConversion.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetRecordDataWithAccessInfoResponse message. + * Verifies a RecordFileForConversion message. * @function verify - * @memberof Records.GetRecordDataWithAccessInfoResponse + * @memberof Records.RecordFileForConversion * @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) { + RecordFileForConversion.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - 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"; - } + 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 GetRecordDataWithAccessInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RecordFileForConversion message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.GetRecordDataWithAccessInfoResponse + * @memberof Records.RecordFileForConversion * @static * @param {Object.} object Plain object - * @returns {Records.GetRecordDataWithAccessInfoResponse} GetRecordDataWithAccessInfoResponse + * @returns {Records.RecordFileForConversion} RecordFileForConversion */ - GetRecordDataWithAccessInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.GetRecordDataWithAccessInfoResponse) + RecordFileForConversion.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordFileForConversion) return object; - let message = new $root.Records.GetRecordDataWithAccessInfoResponse(); - if (object.recordDataWithAccessInfo) { - if (!Array.isArray(object.recordDataWithAccessInfo)) - throw TypeError(".Records.GetRecordDataWithAccessInfoResponse.recordDataWithAccessInfo: array expected"); - message.recordDataWithAccessInfo = []; - for (let i = 0; i < object.recordDataWithAccessInfo.length; ++i) { - if (typeof object.recordDataWithAccessInfo[i] !== "object") - throw TypeError(".Records.GetRecordDataWithAccessInfoResponse.recordDataWithAccessInfo: object expected"); - message.recordDataWithAccessInfo[i] = $root.Records.RecordDataWithAccessInfo.fromObject(object.recordDataWithAccessInfo[i]); - } - } - if (object.noPermissionRecordUid) { - if (!Array.isArray(object.noPermissionRecordUid)) - throw TypeError(".Records.GetRecordDataWithAccessInfoResponse.noPermissionRecordUid: array expected"); - message.noPermissionRecordUid = []; - for (let i = 0; i < object.noPermissionRecordUid.length; ++i) - if (typeof object.noPermissionRecordUid[i] === "string") - $util.base64.decode(object.noPermissionRecordUid[i], message.noPermissionRecordUid[i] = $util.newBuffer($util.base64.length(object.noPermissionRecordUid[i])), 0); - else if (object.noPermissionRecordUid[i].length >= 0) - message.noPermissionRecordUid[i] = object.noPermissionRecordUid[i]; - } + let message = new $root.Records.RecordFileForConversion(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.fileFileId != null) + message.fileFileId = String(object.fileFileId); + if (object.thumbFileId != null) + message.thumbFileId = String(object.thumbFileId); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + if (object.recordKey != null) + if (typeof object.recordKey === "string") + $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); + else if (object.recordKey.length >= 0) + message.recordKey = object.recordKey; + if (object.linkKey != null) + if (typeof object.linkKey === "string") + $util.base64.decode(object.linkKey, message.linkKey = $util.newBuffer($util.base64.length(object.linkKey)), 0); + else if (object.linkKey.length >= 0) + message.linkKey = object.linkKey; return message; }; /** - * Creates a plain object from a GetRecordDataWithAccessInfoResponse message. Also converts values to other types if specified. + * Creates a plain object from a RecordFileForConversion message. Also converts values to other types if specified. * @function toObject - * @memberof Records.GetRecordDataWithAccessInfoResponse + * @memberof Records.RecordFileForConversion * @static - * @param {Records.GetRecordDataWithAccessInfoResponse} message GetRecordDataWithAccessInfoResponse + * @param {Records.RecordFileForConversion} message RecordFileForConversion * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetRecordDataWithAccessInfoResponse.toObject = function toObject(message, options) { + RecordFileForConversion.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.recordDataWithAccessInfo = []; - object.noPermissionRecordUid = []; - } - if (message.recordDataWithAccessInfo && message.recordDataWithAccessInfo.length) { - object.recordDataWithAccessInfo = []; - for (let j = 0; j < message.recordDataWithAccessInfo.length; ++j) - object.recordDataWithAccessInfo[j] = $root.Records.RecordDataWithAccessInfo.toObject(message.recordDataWithAccessInfo[j], options); - } - if (message.noPermissionRecordUid && message.noPermissionRecordUid.length) { - object.noPermissionRecordUid = []; - for (let j = 0; j < message.noPermissionRecordUid.length; ++j) - object.noPermissionRecordUid[j] = options.bytes === String ? $util.base64.encode(message.noPermissionRecordUid[j], 0, message.noPermissionRecordUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.noPermissionRecordUid[j]) : message.noPermissionRecordUid[j]; + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + object.fileFileId = ""; + object.thumbFileId = ""; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + if (options.bytes === String) + object.recordKey = ""; + else { + object.recordKey = []; + if (options.bytes !== Array) + object.recordKey = $util.newBuffer(object.recordKey); + } + if (options.bytes === String) + object.linkKey = ""; + else { + object.linkKey = []; + if (options.bytes !== Array) + object.linkKey = $util.newBuffer(object.linkKey); + } } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.fileFileId != null && message.hasOwnProperty("fileFileId")) + object.fileFileId = message.fileFileId; + if (message.thumbFileId != null && message.hasOwnProperty("thumbFileId")) + object.thumbFileId = message.thumbFileId; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.recordKey != null && message.hasOwnProperty("recordKey")) + object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; + if (message.linkKey != null && message.hasOwnProperty("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; }; /** - * Converts this GetRecordDataWithAccessInfoResponse to JSON. + * Converts this RecordFileForConversion to JSON. * @function toJSON - * @memberof Records.GetRecordDataWithAccessInfoResponse + * @memberof Records.RecordFileForConversion * @instance * @returns {Object.} JSON object */ - GetRecordDataWithAccessInfoResponse.prototype.toJSON = function toJSON() { + RecordFileForConversion.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetRecordDataWithAccessInfoResponse + * Gets the default type url for RecordFileForConversion * @function getTypeUrl - * @memberof Records.GetRecordDataWithAccessInfoResponse + * @memberof Records.RecordFileForConversion * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetRecordDataWithAccessInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordFileForConversion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.GetRecordDataWithAccessInfoResponse"; + return typeUrlPrefix + "/Records.RecordFileForConversion"; }; - return GetRecordDataWithAccessInfoResponse; - })(); - - /** - * CheckShareAdminObjectType enum. - * @name Records.CheckShareAdminObjectType - * @enum {number} - * @property {number} CHECK_SA_INVALID_TYPE=0 CHECK_SA_INVALID_TYPE value - * @property {number} CHECK_SA_ON_SF=1 CHECK_SA_ON_SF value - * @property {number} CHECK_SA_ON_RECORD=2 CHECK_SA_ON_RECORD value - */ - Records.CheckShareAdminObjectType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CHECK_SA_INVALID_TYPE"] = 0; - values[valuesById[1] = "CHECK_SA_ON_SF"] = 1; - values[valuesById[2] = "CHECK_SA_ON_RECORD"] = 2; - return values; + return RecordFileForConversion; })(); - Records.IsObjectShareAdmin = (function() { + Records.RecordFolderForConversion = (function() { /** - * Properties of an IsObjectShareAdmin. + * Properties of a RecordFolderForConversion. * @memberof Records - * @interface IIsObjectShareAdmin - * @property {Uint8Array|null} [uid] IsObjectShareAdmin uid - * @property {boolean|null} [isAdmin] IsObjectShareAdmin isAdmin - * @property {Records.CheckShareAdminObjectType|null} [objectType] IsObjectShareAdmin objectType + * @interface IRecordFolderForConversion + * @property {Uint8Array|null} [folderUid] RecordFolderForConversion folderUid + * @property {Uint8Array|null} [recordFolderKey] RecordFolderForConversion recordFolderKey */ /** - * Constructs a new IsObjectShareAdmin. + * Constructs a new RecordFolderForConversion. * @memberof Records - * @classdesc Represents an IsObjectShareAdmin. - * @implements IIsObjectShareAdmin + * @classdesc Represents a RecordFolderForConversion. + * @implements IRecordFolderForConversion * @constructor - * @param {Records.IIsObjectShareAdmin=} [properties] Properties to set + * @param {Records.IRecordFolderForConversion=} [properties] Properties to set */ - function IsObjectShareAdmin(properties) { + function RecordFolderForConversion(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -186146,103 +187613,89 @@ export const Records = $root.Records = (() => { } /** - * IsObjectShareAdmin uid. - * @member {Uint8Array} uid - * @memberof Records.IsObjectShareAdmin - * @instance - */ - IsObjectShareAdmin.prototype.uid = $util.newBuffer([]); - - /** - * IsObjectShareAdmin isAdmin. - * @member {boolean} isAdmin - * @memberof Records.IsObjectShareAdmin + * RecordFolderForConversion folderUid. + * @member {Uint8Array} folderUid + * @memberof Records.RecordFolderForConversion * @instance */ - IsObjectShareAdmin.prototype.isAdmin = false; + RecordFolderForConversion.prototype.folderUid = $util.newBuffer([]); /** - * IsObjectShareAdmin objectType. - * @member {Records.CheckShareAdminObjectType} objectType - * @memberof Records.IsObjectShareAdmin + * RecordFolderForConversion recordFolderKey. + * @member {Uint8Array} recordFolderKey + * @memberof Records.RecordFolderForConversion * @instance */ - IsObjectShareAdmin.prototype.objectType = 0; + RecordFolderForConversion.prototype.recordFolderKey = $util.newBuffer([]); /** - * Creates a new IsObjectShareAdmin instance using the specified properties. + * Creates a new RecordFolderForConversion instance using the specified properties. * @function create - * @memberof Records.IsObjectShareAdmin + * @memberof Records.RecordFolderForConversion * @static - * @param {Records.IIsObjectShareAdmin=} [properties] Properties to set - * @returns {Records.IsObjectShareAdmin} IsObjectShareAdmin instance + * @param {Records.IRecordFolderForConversion=} [properties] Properties to set + * @returns {Records.RecordFolderForConversion} RecordFolderForConversion instance */ - IsObjectShareAdmin.create = function create(properties) { - return new IsObjectShareAdmin(properties); + RecordFolderForConversion.create = function create(properties) { + return new RecordFolderForConversion(properties); }; /** - * Encodes the specified IsObjectShareAdmin message. Does not implicitly {@link Records.IsObjectShareAdmin.verify|verify} messages. + * Encodes the specified RecordFolderForConversion message. Does not implicitly {@link Records.RecordFolderForConversion.verify|verify} messages. * @function encode - * @memberof Records.IsObjectShareAdmin + * @memberof Records.RecordFolderForConversion * @static - * @param {Records.IIsObjectShareAdmin} message IsObjectShareAdmin message or plain object to encode + * @param {Records.IRecordFolderForConversion} message RecordFolderForConversion message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IsObjectShareAdmin.encode = function encode(message, writer) { + RecordFolderForConversion.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); - if (message.isAdmin != null && Object.hasOwnProperty.call(message, "isAdmin")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isAdmin); - if (message.objectType != null && Object.hasOwnProperty.call(message, "objectType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.objectType); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); + if (message.recordFolderKey != null && Object.hasOwnProperty.call(message, "recordFolderKey")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordFolderKey); return writer; }; /** - * Encodes the specified IsObjectShareAdmin message, length delimited. Does not implicitly {@link Records.IsObjectShareAdmin.verify|verify} messages. + * Encodes the specified RecordFolderForConversion message, length delimited. Does not implicitly {@link Records.RecordFolderForConversion.verify|verify} messages. * @function encodeDelimited - * @memberof Records.IsObjectShareAdmin + * @memberof Records.RecordFolderForConversion * @static - * @param {Records.IIsObjectShareAdmin} message IsObjectShareAdmin message or plain object to encode + * @param {Records.IRecordFolderForConversion} message RecordFolderForConversion message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IsObjectShareAdmin.encodeDelimited = function encodeDelimited(message, writer) { + RecordFolderForConversion.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IsObjectShareAdmin message from the specified reader or buffer. + * Decodes a RecordFolderForConversion message from the specified reader or buffer. * @function decode - * @memberof Records.IsObjectShareAdmin + * @memberof Records.RecordFolderForConversion * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.IsObjectShareAdmin} IsObjectShareAdmin + * @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 */ - IsObjectShareAdmin.decode = function decode(reader, length) { + RecordFolderForConversion.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.IsObjectShareAdmin(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordFolderForConversion(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.uid = reader.bytes(); + message.folderUid = reader.bytes(); break; } case 2: { - message.isAdmin = reader.bool(); - break; - } - case 3: { - message.objectType = reader.int32(); + message.recordFolderKey = reader.bytes(); break; } default: @@ -186254,173 +187707,158 @@ export const Records = $root.Records = (() => { }; /** - * Decodes an IsObjectShareAdmin message from the specified reader or buffer, length delimited. + * Decodes a RecordFolderForConversion message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.IsObjectShareAdmin + * @memberof Records.RecordFolderForConversion * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.IsObjectShareAdmin} IsObjectShareAdmin + * @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 */ - IsObjectShareAdmin.decodeDelimited = function decodeDelimited(reader) { + RecordFolderForConversion.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IsObjectShareAdmin message. + * Verifies a RecordFolderForConversion message. * @function verify - * @memberof Records.IsObjectShareAdmin + * @memberof Records.RecordFolderForConversion * @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) { + RecordFolderForConversion.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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; - } + 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 an IsObjectShareAdmin message from a plain object. Also converts values to their respective internal types. + * Creates a RecordFolderForConversion message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.IsObjectShareAdmin + * @memberof Records.RecordFolderForConversion * @static * @param {Object.} object Plain object - * @returns {Records.IsObjectShareAdmin} IsObjectShareAdmin + * @returns {Records.RecordFolderForConversion} RecordFolderForConversion */ - IsObjectShareAdmin.fromObject = function fromObject(object) { - if (object instanceof $root.Records.IsObjectShareAdmin) + RecordFolderForConversion.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordFolderForConversion) return object; - let message = new $root.Records.IsObjectShareAdmin(); - if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; - if (object.isAdmin != null) - message.isAdmin = Boolean(object.isAdmin); - switch (object.objectType) { - default: - if (typeof object.objectType === "number") { - message.objectType = object.objectType; - break; - } - break; - case "CHECK_SA_INVALID_TYPE": - case 0: - message.objectType = 0; - break; - case "CHECK_SA_ON_SF": - case 1: - message.objectType = 1; - break; - case "CHECK_SA_ON_RECORD": - case 2: - message.objectType = 2; - break; - } + let message = new $root.Records.RecordFolderForConversion(); + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.recordFolderKey != null) + if (typeof object.recordFolderKey === "string") + $util.base64.decode(object.recordFolderKey, message.recordFolderKey = $util.newBuffer($util.base64.length(object.recordFolderKey)), 0); + else if (object.recordFolderKey.length >= 0) + message.recordFolderKey = object.recordFolderKey; return message; }; /** - * Creates a plain object from an IsObjectShareAdmin message. Also converts values to other types if specified. + * Creates a plain object from a RecordFolderForConversion message. Also converts values to other types if specified. * @function toObject - * @memberof Records.IsObjectShareAdmin + * @memberof Records.RecordFolderForConversion * @static - * @param {Records.IsObjectShareAdmin} message IsObjectShareAdmin + * @param {Records.RecordFolderForConversion} message RecordFolderForConversion * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IsObjectShareAdmin.toObject = function toObject(message, options) { + RecordFolderForConversion.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { if (options.bytes === String) - object.uid = ""; + object.folderUid = ""; else { - object.uid = []; + object.folderUid = []; if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); + object.folderUid = $util.newBuffer(object.folderUid); + } + if (options.bytes === String) + object.recordFolderKey = ""; + else { + object.recordFolderKey = []; + if (options.bytes !== Array) + object.recordFolderKey = $util.newBuffer(object.recordFolderKey); } - object.isAdmin = false; - object.objectType = options.enums === String ? "CHECK_SA_INVALID_TYPE" : 0; } - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; - if (message.isAdmin != null && message.hasOwnProperty("isAdmin")) - object.isAdmin = message.isAdmin; - if (message.objectType != null && message.hasOwnProperty("objectType")) - object.objectType = options.enums === String ? $root.Records.CheckShareAdminObjectType[message.objectType] === undefined ? message.objectType : $root.Records.CheckShareAdminObjectType[message.objectType] : message.objectType; + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.recordFolderKey != null && message.hasOwnProperty("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; }; /** - * Converts this IsObjectShareAdmin to JSON. + * Converts this RecordFolderForConversion to JSON. * @function toJSON - * @memberof Records.IsObjectShareAdmin + * @memberof Records.RecordFolderForConversion * @instance * @returns {Object.} JSON object */ - IsObjectShareAdmin.prototype.toJSON = function toJSON() { + RecordFolderForConversion.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for IsObjectShareAdmin + * Gets the default type url for RecordFolderForConversion * @function getTypeUrl - * @memberof Records.IsObjectShareAdmin + * @memberof Records.RecordFolderForConversion * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - IsObjectShareAdmin.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordFolderForConversion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.IsObjectShareAdmin"; + return typeUrlPrefix + "/Records.RecordFolderForConversion"; }; - return IsObjectShareAdmin; + return RecordFolderForConversion; })(); - Records.AmIShareAdmin = (function() { + Records.RecordConvertToV3 = (function() { /** - * Properties of an AmIShareAdmin. + * Properties of a RecordConvertToV3. * @memberof Records - * @interface IAmIShareAdmin - * @property {Array.|null} [isObjectShareAdmin] AmIShareAdmin isObjectShareAdmin + * @interface IRecordConvertToV3 + * @property {Uint8Array|null} [recordUid] RecordConvertToV3 recordUid + * @property {number|Long|null} [clientModifiedTime] RecordConvertToV3 clientModifiedTime + * @property {number|Long|null} [revision] RecordConvertToV3 revision + * @property {Uint8Array|null} [data] RecordConvertToV3 data + * @property {Uint8Array|null} [nonSharedData] RecordConvertToV3 nonSharedData + * @property {Records.IRecordAudit|null} [audit] RecordConvertToV3 audit + * @property {Array.|null} [recordFile] RecordConvertToV3 recordFile + * @property {Array.|null} [folderKey] RecordConvertToV3 folderKey */ /** - * Constructs a new AmIShareAdmin. + * Constructs a new RecordConvertToV3. * @memberof Records - * @classdesc Represents an AmIShareAdmin. - * @implements IAmIShareAdmin + * @classdesc Represents a RecordConvertToV3. + * @implements IRecordConvertToV3 * @constructor - * @param {Records.IAmIShareAdmin=} [properties] Properties to set + * @param {Records.IRecordConvertToV3=} [properties] Properties to set */ - function AmIShareAdmin(properties) { - this.isObjectShareAdmin = []; + function RecordConvertToV3(properties) { + this.recordFile = []; + this.folderKey = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -186428,78 +187866,179 @@ export const Records = $root.Records = (() => { } /** - * AmIShareAdmin isObjectShareAdmin. - * @member {Array.} isObjectShareAdmin - * @memberof Records.AmIShareAdmin + * RecordConvertToV3 recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.RecordConvertToV3 * @instance */ - AmIShareAdmin.prototype.isObjectShareAdmin = $util.emptyArray; + RecordConvertToV3.prototype.recordUid = $util.newBuffer([]); /** - * Creates a new AmIShareAdmin instance using the specified properties. + * RecordConvertToV3 clientModifiedTime. + * @member {number|Long} clientModifiedTime + * @memberof Records.RecordConvertToV3 + * @instance + */ + RecordConvertToV3.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * RecordConvertToV3 revision. + * @member {number|Long} revision + * @memberof Records.RecordConvertToV3 + * @instance + */ + RecordConvertToV3.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * RecordConvertToV3 data. + * @member {Uint8Array} data + * @memberof Records.RecordConvertToV3 + * @instance + */ + RecordConvertToV3.prototype.data = $util.newBuffer([]); + + /** + * RecordConvertToV3 nonSharedData. + * @member {Uint8Array} nonSharedData + * @memberof Records.RecordConvertToV3 + * @instance + */ + RecordConvertToV3.prototype.nonSharedData = $util.newBuffer([]); + + /** + * RecordConvertToV3 audit. + * @member {Records.IRecordAudit|null|undefined} audit + * @memberof Records.RecordConvertToV3 + * @instance + */ + RecordConvertToV3.prototype.audit = null; + + /** + * RecordConvertToV3 recordFile. + * @member {Array.} recordFile + * @memberof Records.RecordConvertToV3 + * @instance + */ + RecordConvertToV3.prototype.recordFile = $util.emptyArray; + + /** + * RecordConvertToV3 folderKey. + * @member {Array.} folderKey + * @memberof Records.RecordConvertToV3 + * @instance + */ + RecordConvertToV3.prototype.folderKey = $util.emptyArray; + + /** + * Creates a new RecordConvertToV3 instance using the specified properties. * @function create - * @memberof Records.AmIShareAdmin + * @memberof Records.RecordConvertToV3 * @static - * @param {Records.IAmIShareAdmin=} [properties] Properties to set - * @returns {Records.AmIShareAdmin} AmIShareAdmin instance + * @param {Records.IRecordConvertToV3=} [properties] Properties to set + * @returns {Records.RecordConvertToV3} RecordConvertToV3 instance */ - AmIShareAdmin.create = function create(properties) { - return new AmIShareAdmin(properties); + RecordConvertToV3.create = function create(properties) { + return new RecordConvertToV3(properties); }; /** - * Encodes the specified AmIShareAdmin message. Does not implicitly {@link Records.AmIShareAdmin.verify|verify} messages. + * Encodes the specified RecordConvertToV3 message. Does not implicitly {@link Records.RecordConvertToV3.verify|verify} messages. * @function encode - * @memberof Records.AmIShareAdmin + * @memberof Records.RecordConvertToV3 * @static - * @param {Records.IAmIShareAdmin} message AmIShareAdmin message or plain object to encode + * @param {Records.IRecordConvertToV3} message RecordConvertToV3 message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AmIShareAdmin.encode = function encode(message, writer) { + RecordConvertToV3.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.isObjectShareAdmin != null && message.isObjectShareAdmin.length) - for (let i = 0; i < message.isObjectShareAdmin.length; ++i) - $root.Records.IsObjectShareAdmin.encode(message.isObjectShareAdmin[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientModifiedTime); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); + if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "nonSharedData")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.nonSharedData); + if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) + $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.recordFile != null && message.recordFile.length) + for (let i = 0; i < message.recordFile.length; ++i) + $root.Records.RecordFileForConversion.encode(message.recordFile[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.folderKey != null && message.folderKey.length) + for (let i = 0; i < message.folderKey.length; ++i) + $root.Records.RecordFolderForConversion.encode(message.folderKey[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified AmIShareAdmin message, length delimited. Does not implicitly {@link Records.AmIShareAdmin.verify|verify} messages. + * Encodes the specified RecordConvertToV3 message, length delimited. Does not implicitly {@link Records.RecordConvertToV3.verify|verify} messages. * @function encodeDelimited - * @memberof Records.AmIShareAdmin + * @memberof Records.RecordConvertToV3 * @static - * @param {Records.IAmIShareAdmin} message AmIShareAdmin message or plain object to encode + * @param {Records.IRecordConvertToV3} message RecordConvertToV3 message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AmIShareAdmin.encodeDelimited = function encodeDelimited(message, writer) { + RecordConvertToV3.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AmIShareAdmin message from the specified reader or buffer. + * Decodes a RecordConvertToV3 message from the specified reader or buffer. * @function decode - * @memberof Records.AmIShareAdmin + * @memberof Records.RecordConvertToV3 * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.AmIShareAdmin} AmIShareAdmin + * @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 */ - AmIShareAdmin.decode = function decode(reader, length) { + RecordConvertToV3.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.AmIShareAdmin(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordConvertToV3(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.isObjectShareAdmin && message.isObjectShareAdmin.length)) - message.isObjectShareAdmin = []; - message.isObjectShareAdmin.push($root.Records.IsObjectShareAdmin.decode(reader, reader.uint32())); + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.clientModifiedTime = reader.int64(); + break; + } + case 3: { + message.revision = reader.int64(); + break; + } + case 4: { + message.data = reader.bytes(); + break; + } + case 5: { + message.nonSharedData = reader.bytes(); + break; + } + case 6: { + message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); + break; + } + case 7: { + if (!(message.recordFile && message.recordFile.length)) + message.recordFile = []; + message.recordFile.push($root.Records.RecordFileForConversion.decode(reader, reader.uint32())); + break; + } + case 8: { + if (!(message.folderKey && message.folderKey.length)) + message.folderKey = []; + message.folderKey.push($root.Records.RecordFolderForConversion.decode(reader, reader.uint32())); break; } default: @@ -186511,145 +188050,277 @@ export const Records = $root.Records = (() => { }; /** - * Decodes an AmIShareAdmin message from the specified reader or buffer, length delimited. + * Decodes a RecordConvertToV3 message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.AmIShareAdmin + * @memberof Records.RecordConvertToV3 * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.AmIShareAdmin} AmIShareAdmin + * @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 */ - AmIShareAdmin.decodeDelimited = function decodeDelimited(reader) { + RecordConvertToV3.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AmIShareAdmin message. + * Verifies a RecordConvertToV3 message. * @function verify - * @memberof Records.AmIShareAdmin + * @memberof Records.RecordConvertToV3 * @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) { + RecordConvertToV3.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); + 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); + 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]); if (error) - return "isObjectShareAdmin." + 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]); + if (error) + return "folderKey." + error; } } return null; }; /** - * Creates an AmIShareAdmin message from a plain object. Also converts values to their respective internal types. + * Creates a RecordConvertToV3 message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.AmIShareAdmin + * @memberof Records.RecordConvertToV3 * @static * @param {Object.} object Plain object - * @returns {Records.AmIShareAdmin} AmIShareAdmin + * @returns {Records.RecordConvertToV3} RecordConvertToV3 */ - AmIShareAdmin.fromObject = function fromObject(object) { - if (object instanceof $root.Records.AmIShareAdmin) + RecordConvertToV3.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordConvertToV3) return object; - let message = new $root.Records.AmIShareAdmin(); - if (object.isObjectShareAdmin) { - if (!Array.isArray(object.isObjectShareAdmin)) - throw TypeError(".Records.AmIShareAdmin.isObjectShareAdmin: array expected"); - message.isObjectShareAdmin = []; - for (let i = 0; i < object.isObjectShareAdmin.length; ++i) { - if (typeof object.isObjectShareAdmin[i] !== "object") - throw TypeError(".Records.AmIShareAdmin.isObjectShareAdmin: object expected"); - message.isObjectShareAdmin[i] = $root.Records.IsObjectShareAdmin.fromObject(object.isObjectShareAdmin[i]); + let message = new $root.Records.RecordConvertToV3(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.clientModifiedTime != null) + if ($util.Long) + (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; + else if (typeof object.clientModifiedTime === "string") + message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); + else if (typeof object.clientModifiedTime === "number") + message.clientModifiedTime = object.clientModifiedTime; + else if (typeof object.clientModifiedTime === "object") + message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + if (object.nonSharedData != null) + if (typeof object.nonSharedData === "string") + $util.base64.decode(object.nonSharedData, message.nonSharedData = $util.newBuffer($util.base64.length(object.nonSharedData)), 0); + else if (object.nonSharedData.length >= 0) + message.nonSharedData = object.nonSharedData; + if (object.audit != null) { + if (typeof object.audit !== "object") + throw TypeError(".Records.RecordConvertToV3.audit: object expected"); + message.audit = $root.Records.RecordAudit.fromObject(object.audit); + } + if (object.recordFile) { + if (!Array.isArray(object.recordFile)) + throw TypeError(".Records.RecordConvertToV3.recordFile: array expected"); + message.recordFile = []; + for (let i = 0; i < object.recordFile.length; ++i) { + if (typeof object.recordFile[i] !== "object") + throw TypeError(".Records.RecordConvertToV3.recordFile: object expected"); + message.recordFile[i] = $root.Records.RecordFileForConversion.fromObject(object.recordFile[i]); + } + } + if (object.folderKey) { + if (!Array.isArray(object.folderKey)) + throw TypeError(".Records.RecordConvertToV3.folderKey: array expected"); + message.folderKey = []; + for (let i = 0; i < object.folderKey.length; ++i) { + if (typeof object.folderKey[i] !== "object") + throw TypeError(".Records.RecordConvertToV3.folderKey: object expected"); + message.folderKey[i] = $root.Records.RecordFolderForConversion.fromObject(object.folderKey[i]); } } return message; }; /** - * Creates a plain object from an AmIShareAdmin message. Also converts values to other types if specified. + * Creates a plain object from a RecordConvertToV3 message. Also converts values to other types if specified. * @function toObject - * @memberof Records.AmIShareAdmin + * @memberof Records.RecordConvertToV3 * @static - * @param {Records.AmIShareAdmin} message AmIShareAdmin + * @param {Records.RecordConvertToV3} message RecordConvertToV3 * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AmIShareAdmin.toObject = function toObject(message, options) { + RecordConvertToV3.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.isObjectShareAdmin = []; - if (message.isObjectShareAdmin && message.isObjectShareAdmin.length) { - object.isObjectShareAdmin = []; - for (let j = 0; j < message.isObjectShareAdmin.length; ++j) - object.isObjectShareAdmin[j] = $root.Records.IsObjectShareAdmin.toObject(message.isObjectShareAdmin[j], options); + if (options.arrays || options.defaults) { + object.recordFile = []; + object.folderKey = []; } - return object; - }; - - /** - * Converts this AmIShareAdmin to JSON. + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.clientModifiedTime = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + if (options.bytes === String) + object.nonSharedData = ""; + else { + object.nonSharedData = []; + if (options.bytes !== Array) + object.nonSharedData = $util.newBuffer(object.nonSharedData); + } + object.audit = null; + } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) + if (typeof message.clientModifiedTime === "number") + object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; + else + object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; + if (message.revision != null && message.hasOwnProperty("revision")) + 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")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) + object.nonSharedData = options.bytes === String ? $util.base64.encode(message.nonSharedData, 0, message.nonSharedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.nonSharedData) : message.nonSharedData; + if (message.audit != null && message.hasOwnProperty("audit")) + object.audit = $root.Records.RecordAudit.toObject(message.audit, options); + if (message.recordFile && message.recordFile.length) { + object.recordFile = []; + for (let j = 0; j < message.recordFile.length; ++j) + object.recordFile[j] = $root.Records.RecordFileForConversion.toObject(message.recordFile[j], options); + } + if (message.folderKey && message.folderKey.length) { + object.folderKey = []; + for (let j = 0; j < message.folderKey.length; ++j) + object.folderKey[j] = $root.Records.RecordFolderForConversion.toObject(message.folderKey[j], options); + } + return object; + }; + + /** + * Converts this RecordConvertToV3 to JSON. * @function toJSON - * @memberof Records.AmIShareAdmin + * @memberof Records.RecordConvertToV3 * @instance * @returns {Object.} JSON object */ - AmIShareAdmin.prototype.toJSON = function toJSON() { + RecordConvertToV3.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AmIShareAdmin + * Gets the default type url for RecordConvertToV3 * @function getTypeUrl - * @memberof Records.AmIShareAdmin + * @memberof Records.RecordConvertToV3 * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AmIShareAdmin.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordConvertToV3.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.AmIShareAdmin"; + return typeUrlPrefix + "/Records.RecordConvertToV3"; }; - return AmIShareAdmin; + return RecordConvertToV3; })(); - Records.RecordShareUpdateRequest = (function() { + Records.RecordsConvertToV3Request = (function() { /** - * Properties of a RecordShareUpdateRequest. + * Properties of a RecordsConvertToV3Request. * @memberof Records - * @interface IRecordShareUpdateRequest - * @property {Array.|null} [addSharedRecord] RecordShareUpdateRequest addSharedRecord - * @property {Array.|null} [updateSharedRecord] RecordShareUpdateRequest updateSharedRecord - * @property {Array.|null} [removeSharedRecord] RecordShareUpdateRequest removeSharedRecord - * @property {string|null} [pt] RecordShareUpdateRequest pt + * @interface IRecordsConvertToV3Request + * @property {Array.|null} [records] RecordsConvertToV3Request records + * @property {number|Long|null} [clientTime] RecordsConvertToV3Request clientTime */ /** - * Constructs a new RecordShareUpdateRequest. + * Constructs a new RecordsConvertToV3Request. * @memberof Records - * @classdesc Represents a RecordShareUpdateRequest. - * @implements IRecordShareUpdateRequest + * @classdesc Represents a RecordsConvertToV3Request. + * @implements IRecordsConvertToV3Request * @constructor - * @param {Records.IRecordShareUpdateRequest=} [properties] Properties to set + * @param {Records.IRecordsConvertToV3Request=} [properties] Properties to set */ - function RecordShareUpdateRequest(properties) { - this.addSharedRecord = []; - this.updateSharedRecord = []; - this.removeSharedRecord = []; + function RecordsConvertToV3Request(properties) { + this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -186657,126 +188328,92 @@ export const Records = $root.Records = (() => { } /** - * RecordShareUpdateRequest addSharedRecord. - * @member {Array.} addSharedRecord - * @memberof Records.RecordShareUpdateRequest - * @instance - */ - RecordShareUpdateRequest.prototype.addSharedRecord = $util.emptyArray; - - /** - * RecordShareUpdateRequest updateSharedRecord. - * @member {Array.} updateSharedRecord - * @memberof Records.RecordShareUpdateRequest - * @instance - */ - RecordShareUpdateRequest.prototype.updateSharedRecord = $util.emptyArray; - - /** - * RecordShareUpdateRequest removeSharedRecord. - * @member {Array.} removeSharedRecord - * @memberof Records.RecordShareUpdateRequest + * RecordsConvertToV3Request records. + * @member {Array.} records + * @memberof Records.RecordsConvertToV3Request * @instance */ - RecordShareUpdateRequest.prototype.removeSharedRecord = $util.emptyArray; + RecordsConvertToV3Request.prototype.records = $util.emptyArray; /** - * RecordShareUpdateRequest pt. - * @member {string} pt - * @memberof Records.RecordShareUpdateRequest + * RecordsConvertToV3Request clientTime. + * @member {number|Long} clientTime + * @memberof Records.RecordsConvertToV3Request * @instance */ - RecordShareUpdateRequest.prototype.pt = ""; + RecordsConvertToV3Request.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new RecordShareUpdateRequest instance using the specified properties. + * Creates a new RecordsConvertToV3Request instance using the specified properties. * @function create - * @memberof Records.RecordShareUpdateRequest + * @memberof Records.RecordsConvertToV3Request * @static - * @param {Records.IRecordShareUpdateRequest=} [properties] Properties to set - * @returns {Records.RecordShareUpdateRequest} RecordShareUpdateRequest instance + * @param {Records.IRecordsConvertToV3Request=} [properties] Properties to set + * @returns {Records.RecordsConvertToV3Request} RecordsConvertToV3Request instance */ - RecordShareUpdateRequest.create = function create(properties) { - return new RecordShareUpdateRequest(properties); + RecordsConvertToV3Request.create = function create(properties) { + return new RecordsConvertToV3Request(properties); }; /** - * Encodes the specified RecordShareUpdateRequest message. Does not implicitly {@link Records.RecordShareUpdateRequest.verify|verify} messages. + * Encodes the specified RecordsConvertToV3Request message. Does not implicitly {@link Records.RecordsConvertToV3Request.verify|verify} messages. * @function encode - * @memberof Records.RecordShareUpdateRequest + * @memberof Records.RecordsConvertToV3Request * @static - * @param {Records.IRecordShareUpdateRequest} message RecordShareUpdateRequest message or plain object to encode + * @param {Records.IRecordsConvertToV3Request} message RecordsConvertToV3Request message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordShareUpdateRequest.encode = function encode(message, writer) { + RecordsConvertToV3Request.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.addSharedRecord != null && message.addSharedRecord.length) - for (let i = 0; i < message.addSharedRecord.length; ++i) - $root.Records.SharedRecord.encode(message.addSharedRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateSharedRecord != null && message.updateSharedRecord.length) - for (let i = 0; i < message.updateSharedRecord.length; ++i) - $root.Records.SharedRecord.encode(message.updateSharedRecord[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.removeSharedRecord != null && message.removeSharedRecord.length) - for (let i = 0; i < message.removeSharedRecord.length; ++i) - $root.Records.SharedRecord.encode(message.removeSharedRecord[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.pt != null && Object.hasOwnProperty.call(message, "pt")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pt); + if (message.records != null && message.records.length) + for (let i = 0; i < message.records.length; ++i) + $root.Records.RecordConvertToV3.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); return writer; }; /** - * Encodes the specified RecordShareUpdateRequest message, length delimited. Does not implicitly {@link Records.RecordShareUpdateRequest.verify|verify} messages. + * Encodes the specified RecordsConvertToV3Request message, length delimited. Does not implicitly {@link Records.RecordsConvertToV3Request.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordShareUpdateRequest + * @memberof Records.RecordsConvertToV3Request * @static - * @param {Records.IRecordShareUpdateRequest} message RecordShareUpdateRequest message or plain object to encode + * @param {Records.IRecordsConvertToV3Request} message RecordsConvertToV3Request message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordShareUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { + RecordsConvertToV3Request.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordShareUpdateRequest message from the specified reader or buffer. + * Decodes a RecordsConvertToV3Request message from the specified reader or buffer. * @function decode - * @memberof Records.RecordShareUpdateRequest + * @memberof Records.RecordsConvertToV3Request * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordShareUpdateRequest} RecordShareUpdateRequest + * @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 */ - RecordShareUpdateRequest.decode = function decode(reader, length) { + RecordsConvertToV3Request.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordShareUpdateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsConvertToV3Request(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.addSharedRecord && message.addSharedRecord.length)) - message.addSharedRecord = []; - message.addSharedRecord.push($root.Records.SharedRecord.decode(reader, reader.uint32())); + if (!(message.records && message.records.length)) + message.records = []; + message.records.push($root.Records.RecordConvertToV3.decode(reader, reader.uint32())); break; } case 2: { - if (!(message.updateSharedRecord && message.updateSharedRecord.length)) - message.updateSharedRecord = []; - message.updateSharedRecord.push($root.Records.SharedRecord.decode(reader, reader.uint32())); - break; - } - case 3: { - if (!(message.removeSharedRecord && message.removeSharedRecord.length)) - message.removeSharedRecord = []; - message.removeSharedRecord.push($root.Records.SharedRecord.decode(reader, reader.uint32())); - break; - } - case 4: { - message.pt = reader.string(); + message.clientTime = reader.int64(); break; } default: @@ -186788,211 +188425,163 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordShareUpdateRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordsConvertToV3Request message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordShareUpdateRequest + * @memberof Records.RecordsConvertToV3Request * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordShareUpdateRequest} RecordShareUpdateRequest + * @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 */ - RecordShareUpdateRequest.decodeDelimited = function decodeDelimited(reader) { + RecordsConvertToV3Request.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordShareUpdateRequest message. + * Verifies a RecordsConvertToV3Request message. * @function verify - * @memberof Records.RecordShareUpdateRequest + * @memberof Records.RecordsConvertToV3Request * @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) { + RecordsConvertToV3Request.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - 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]); - 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]); + 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]); if (error) - return "removeSharedRecord." + error; + return "records." + error; } } - if (message.pt != null && message.hasOwnProperty("pt")) - if (!$util.isString(message.pt)) - return "pt: string 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 RecordShareUpdateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsConvertToV3Request message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordShareUpdateRequest + * @memberof Records.RecordsConvertToV3Request * @static * @param {Object.} object Plain object - * @returns {Records.RecordShareUpdateRequest} RecordShareUpdateRequest + * @returns {Records.RecordsConvertToV3Request} RecordsConvertToV3Request */ - RecordShareUpdateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordShareUpdateRequest) + RecordsConvertToV3Request.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordsConvertToV3Request) return object; - let message = new $root.Records.RecordShareUpdateRequest(); - if (object.addSharedRecord) { - if (!Array.isArray(object.addSharedRecord)) - throw TypeError(".Records.RecordShareUpdateRequest.addSharedRecord: array expected"); - message.addSharedRecord = []; - for (let i = 0; i < object.addSharedRecord.length; ++i) { - if (typeof object.addSharedRecord[i] !== "object") - throw TypeError(".Records.RecordShareUpdateRequest.addSharedRecord: object expected"); - message.addSharedRecord[i] = $root.Records.SharedRecord.fromObject(object.addSharedRecord[i]); - } - } - if (object.updateSharedRecord) { - if (!Array.isArray(object.updateSharedRecord)) - throw TypeError(".Records.RecordShareUpdateRequest.updateSharedRecord: array expected"); - message.updateSharedRecord = []; - for (let i = 0; i < object.updateSharedRecord.length; ++i) { - if (typeof object.updateSharedRecord[i] !== "object") - throw TypeError(".Records.RecordShareUpdateRequest.updateSharedRecord: object expected"); - message.updateSharedRecord[i] = $root.Records.SharedRecord.fromObject(object.updateSharedRecord[i]); - } - } - if (object.removeSharedRecord) { - if (!Array.isArray(object.removeSharedRecord)) - throw TypeError(".Records.RecordShareUpdateRequest.removeSharedRecord: array expected"); - message.removeSharedRecord = []; - for (let i = 0; i < object.removeSharedRecord.length; ++i) { - if (typeof object.removeSharedRecord[i] !== "object") - throw TypeError(".Records.RecordShareUpdateRequest.removeSharedRecord: object expected"); - message.removeSharedRecord[i] = $root.Records.SharedRecord.fromObject(object.removeSharedRecord[i]); + let message = new $root.Records.RecordsConvertToV3Request(); + if (object.records) { + if (!Array.isArray(object.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") + throw TypeError(".Records.RecordsConvertToV3Request.records: object expected"); + message.records[i] = $root.Records.RecordConvertToV3.fromObject(object.records[i]); } } - if (object.pt != null) - message.pt = String(object.pt); + if (object.clientTime != null) + if ($util.Long) + (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = false; + else if (typeof object.clientTime === "string") + message.clientTime = parseInt(object.clientTime, 10); + else if (typeof object.clientTime === "number") + message.clientTime = object.clientTime; + else if (typeof object.clientTime === "object") + message.clientTime = new $util.LongBits(object.clientTime.low >>> 0, object.clientTime.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a RecordShareUpdateRequest message. Also converts values to other types if specified. + * Creates a plain object from a RecordsConvertToV3Request message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordShareUpdateRequest + * @memberof Records.RecordsConvertToV3Request * @static - * @param {Records.RecordShareUpdateRequest} message RecordShareUpdateRequest + * @param {Records.RecordsConvertToV3Request} message RecordsConvertToV3Request * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordShareUpdateRequest.toObject = function toObject(message, options) { + RecordsConvertToV3Request.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.addSharedRecord = []; - object.updateSharedRecord = []; - object.removeSharedRecord = []; - } + if (options.arrays || options.defaults) + object.records = []; if (options.defaults) - object.pt = ""; - if (message.addSharedRecord && message.addSharedRecord.length) { - object.addSharedRecord = []; - for (let j = 0; j < message.addSharedRecord.length; ++j) - object.addSharedRecord[j] = $root.Records.SharedRecord.toObject(message.addSharedRecord[j], options); - } - if (message.updateSharedRecord && message.updateSharedRecord.length) { - object.updateSharedRecord = []; - for (let j = 0; j < message.updateSharedRecord.length; ++j) - object.updateSharedRecord[j] = $root.Records.SharedRecord.toObject(message.updateSharedRecord[j], options); - } - if (message.removeSharedRecord && message.removeSharedRecord.length) { - object.removeSharedRecord = []; - for (let j = 0; j < message.removeSharedRecord.length; ++j) - object.removeSharedRecord[j] = $root.Records.SharedRecord.toObject(message.removeSharedRecord[j], options); + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.clientTime = options.longs === String ? "0" : 0; + if (message.records && message.records.length) { + object.records = []; + for (let j = 0; j < message.records.length; ++j) + object.records[j] = $root.Records.RecordConvertToV3.toObject(message.records[j], options); } - if (message.pt != null && message.hasOwnProperty("pt")) - object.pt = message.pt; + if (message.clientTime != null && message.hasOwnProperty("clientTime")) + if (typeof message.clientTime === "number") + object.clientTime = options.longs === String ? String(message.clientTime) : message.clientTime; + else + object.clientTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientTime) : options.longs === Number ? new $util.LongBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0).toNumber() : message.clientTime; return object; }; /** - * Converts this RecordShareUpdateRequest to JSON. + * Converts this RecordsConvertToV3Request to JSON. * @function toJSON - * @memberof Records.RecordShareUpdateRequest + * @memberof Records.RecordsConvertToV3Request * @instance * @returns {Object.} JSON object */ - RecordShareUpdateRequest.prototype.toJSON = function toJSON() { + RecordsConvertToV3Request.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordShareUpdateRequest + * Gets the default type url for RecordsConvertToV3Request * @function getTypeUrl - * @memberof Records.RecordShareUpdateRequest + * @memberof Records.RecordsConvertToV3Request * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordShareUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordsConvertToV3Request.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordShareUpdateRequest"; + return typeUrlPrefix + "/Records.RecordsConvertToV3Request"; }; - return RecordShareUpdateRequest; + return RecordsConvertToV3Request; })(); - Records.SharedRecord = (function() { + Records.RecordsRemoveRequest = (function() { /** - * Properties of a SharedRecord. + * Properties of a RecordsRemoveRequest. * @memberof Records - * @interface ISharedRecord - * @property {string|null} [toUsername] SharedRecord toUsername - * @property {Uint8Array|null} [recordUid] SharedRecord recordUid - * @property {Uint8Array|null} [recordKey] SharedRecord recordKey - * @property {Uint8Array|null} [sharedFolderUid] SharedRecord sharedFolderUid - * @property {Uint8Array|null} [teamUid] SharedRecord teamUid - * @property {boolean|null} [editable] SharedRecord editable - * @property {boolean|null} [shareable] SharedRecord shareable - * @property {boolean|null} [transfer] SharedRecord transfer - * @property {boolean|null} [useEccKey] SharedRecord useEccKey - * @property {boolean|null} [removeVaultData] SharedRecord removeVaultData - * @property {number|Long|null} [expiration] SharedRecord expiration - * @property {Records.TimerNotificationType|null} [timerNotificationType] SharedRecord timerNotificationType - * @property {boolean|null} [rotateOnExpiration] SharedRecord rotateOnExpiration + * @interface IRecordsRemoveRequest + * @property {Array.|null} [records] RecordsRemoveRequest records */ /** - * Constructs a new SharedRecord. + * Constructs a new RecordsRemoveRequest. * @memberof Records - * @classdesc Represents a SharedRecord. - * @implements ISharedRecord + * @classdesc Represents a RecordsRemoveRequest. + * @implements IRecordsRemoveRequest * @constructor - * @param {Records.ISharedRecord=} [properties] Properties to set + * @param {Records.IRecordsRemoveRequest=} [properties] Properties to set */ - function SharedRecord(properties) { + function RecordsRemoveRequest(properties) { + this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -187000,243 +188589,78 @@ export const Records = $root.Records = (() => { } /** - * SharedRecord toUsername. - * @member {string} toUsername - * @memberof Records.SharedRecord - * @instance - */ - SharedRecord.prototype.toUsername = ""; - - /** - * SharedRecord recordUid. - * @member {Uint8Array} recordUid - * @memberof Records.SharedRecord - * @instance - */ - SharedRecord.prototype.recordUid = $util.newBuffer([]); - - /** - * SharedRecord recordKey. - * @member {Uint8Array} recordKey - * @memberof Records.SharedRecord - * @instance - */ - SharedRecord.prototype.recordKey = $util.newBuffer([]); - - /** - * SharedRecord sharedFolderUid. - * @member {Uint8Array} sharedFolderUid - * @memberof Records.SharedRecord - * @instance - */ - SharedRecord.prototype.sharedFolderUid = $util.newBuffer([]); - - /** - * SharedRecord teamUid. - * @member {Uint8Array} teamUid - * @memberof Records.SharedRecord - * @instance - */ - SharedRecord.prototype.teamUid = $util.newBuffer([]); - - /** - * SharedRecord editable. - * @member {boolean} editable - * @memberof Records.SharedRecord - * @instance - */ - SharedRecord.prototype.editable = false; - - /** - * SharedRecord shareable. - * @member {boolean} shareable - * @memberof Records.SharedRecord - * @instance - */ - SharedRecord.prototype.shareable = false; - - /** - * SharedRecord transfer. - * @member {boolean} transfer - * @memberof Records.SharedRecord - * @instance - */ - SharedRecord.prototype.transfer = false; - - /** - * SharedRecord useEccKey. - * @member {boolean} useEccKey - * @memberof Records.SharedRecord - * @instance - */ - SharedRecord.prototype.useEccKey = false; - - /** - * SharedRecord removeVaultData. - * @member {boolean} removeVaultData - * @memberof Records.SharedRecord - * @instance - */ - SharedRecord.prototype.removeVaultData = false; - - /** - * SharedRecord expiration. - * @member {number|Long} expiration - * @memberof Records.SharedRecord - * @instance - */ - SharedRecord.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * SharedRecord timerNotificationType. - * @member {Records.TimerNotificationType} timerNotificationType - * @memberof Records.SharedRecord - * @instance - */ - SharedRecord.prototype.timerNotificationType = 0; - - /** - * SharedRecord rotateOnExpiration. - * @member {boolean} rotateOnExpiration - * @memberof Records.SharedRecord + * RecordsRemoveRequest records. + * @member {Array.} records + * @memberof Records.RecordsRemoveRequest * @instance */ - SharedRecord.prototype.rotateOnExpiration = false; + RecordsRemoveRequest.prototype.records = $util.emptyArray; /** - * Creates a new SharedRecord instance using the specified properties. + * Creates a new RecordsRemoveRequest instance using the specified properties. * @function create - * @memberof Records.SharedRecord + * @memberof Records.RecordsRemoveRequest * @static - * @param {Records.ISharedRecord=} [properties] Properties to set - * @returns {Records.SharedRecord} SharedRecord instance + * @param {Records.IRecordsRemoveRequest=} [properties] Properties to set + * @returns {Records.RecordsRemoveRequest} RecordsRemoveRequest instance */ - SharedRecord.create = function create(properties) { - return new SharedRecord(properties); + RecordsRemoveRequest.create = function create(properties) { + return new RecordsRemoveRequest(properties); }; /** - * Encodes the specified SharedRecord message. Does not implicitly {@link Records.SharedRecord.verify|verify} messages. + * Encodes the specified RecordsRemoveRequest message. Does not implicitly {@link Records.RecordsRemoveRequest.verify|verify} messages. * @function encode - * @memberof Records.SharedRecord + * @memberof Records.RecordsRemoveRequest * @static - * @param {Records.ISharedRecord} message SharedRecord message or plain object to encode + * @param {Records.IRecordsRemoveRequest} message RecordsRemoveRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedRecord.encode = function encode(message, writer) { + RecordsRemoveRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.toUsername != null && Object.hasOwnProperty.call(message, "toUsername")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.toUsername); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordKey); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.sharedFolderUid); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.teamUid); - if (message.editable != null && Object.hasOwnProperty.call(message, "editable")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.editable); - if (message.shareable != null && Object.hasOwnProperty.call(message, "shareable")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.shareable); - if (message.transfer != null && Object.hasOwnProperty.call(message, "transfer")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.transfer); - if (message.useEccKey != null && Object.hasOwnProperty.call(message, "useEccKey")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.useEccKey); - if (message.removeVaultData != null && Object.hasOwnProperty.call(message, "removeVaultData")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.removeVaultData); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 11, wireType 0 =*/88).int64(message.expiration); - if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) - writer.uint32(/* id 12, wireType 0 =*/96).int32(message.timerNotificationType); - if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.rotateOnExpiration); + if (message.records != null && message.records.length) + for (let i = 0; i < message.records.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.records[i]); return writer; }; /** - * Encodes the specified SharedRecord message, length delimited. Does not implicitly {@link Records.SharedRecord.verify|verify} messages. + * Encodes the specified RecordsRemoveRequest message, length delimited. Does not implicitly {@link Records.RecordsRemoveRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Records.SharedRecord + * @memberof Records.RecordsRemoveRequest * @static - * @param {Records.ISharedRecord} message SharedRecord message or plain object to encode + * @param {Records.IRecordsRemoveRequest} message RecordsRemoveRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedRecord.encodeDelimited = function encodeDelimited(message, writer) { + RecordsRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SharedRecord message from the specified reader or buffer. + * Decodes a RecordsRemoveRequest message from the specified reader or buffer. * @function decode - * @memberof Records.SharedRecord + * @memberof Records.RecordsRemoveRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.SharedRecord} SharedRecord + * @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 */ - SharedRecord.decode = function decode(reader, length) { + RecordsRemoveRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.SharedRecord(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsRemoveRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.toUsername = reader.string(); - break; - } - case 2: { - message.recordUid = reader.bytes(); - break; - } - case 3: { - message.recordKey = reader.bytes(); - break; - } - case 4: { - message.sharedFolderUid = reader.bytes(); - break; - } - case 5: { - message.teamUid = reader.bytes(); - break; - } - case 6: { - message.editable = reader.bool(); - break; - } - case 7: { - message.shareable = reader.bool(); - break; - } - case 8: { - message.transfer = reader.bool(); - break; - } - case 9: { - message.useEccKey = reader.bool(); - break; - } - case 10: { - message.removeVaultData = reader.bool(); - break; - } - case 11: { - message.expiration = reader.int64(); - break; - } - case 12: { - message.timerNotificationType = reader.int32(); - break; - } - case 13: { - message.rotateOnExpiration = reader.bool(); + if (!(message.records && message.records.length)) + message.records = []; + message.records.push(reader.bytes()); break; } default: @@ -187248,298 +188672,138 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a SharedRecord message from the specified reader or buffer, length delimited. + * Decodes a RecordsRemoveRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.SharedRecord + * @memberof Records.RecordsRemoveRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.SharedRecord} SharedRecord + * @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 */ - SharedRecord.decodeDelimited = function decodeDelimited(reader) { + RecordsRemoveRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SharedRecord message. + * Verifies a RecordsRemoveRequest message. * @function verify - * @memberof Records.SharedRecord + * @memberof Records.RecordsRemoveRequest * @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) { + RecordsRemoveRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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 SharedRecord message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsRemoveRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.SharedRecord + * @memberof Records.RecordsRemoveRequest * @static * @param {Object.} object Plain object - * @returns {Records.SharedRecord} SharedRecord + * @returns {Records.RecordsRemoveRequest} RecordsRemoveRequest */ - SharedRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Records.SharedRecord) + RecordsRemoveRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordsRemoveRequest) return object; - let message = new $root.Records.SharedRecord(); - if (object.toUsername != null) - message.toUsername = String(object.toUsername); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; - if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; - if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; - if (object.editable != null) - message.editable = Boolean(object.editable); - if (object.shareable != null) - message.shareable = Boolean(object.shareable); - if (object.transfer != null) - message.transfer = Boolean(object.transfer); - if (object.useEccKey != null) - message.useEccKey = Boolean(object.useEccKey); - if (object.removeVaultData != null) - message.removeVaultData = Boolean(object.removeVaultData); - if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); - switch (object.timerNotificationType) { - default: - if (typeof object.timerNotificationType === "number") { - message.timerNotificationType = object.timerNotificationType; - break; - } - break; - case "NOTIFICATION_OFF": - case 0: - message.timerNotificationType = 0; - break; - case "NOTIFY_OWNER": - case 1: - message.timerNotificationType = 1; - break; - case "NOTIFY_PRIVILEGED_USERS": - case 2: - message.timerNotificationType = 2; - break; + let message = new $root.Records.RecordsRemoveRequest(); + if (object.records) { + if (!Array.isArray(object.records)) + throw TypeError(".Records.RecordsRemoveRequest.records: array expected"); + message.records = []; + for (let i = 0; i < object.records.length; ++i) + if (typeof object.records[i] === "string") + $util.base64.decode(object.records[i], message.records[i] = $util.newBuffer($util.base64.length(object.records[i])), 0); + else if (object.records[i].length >= 0) + message.records[i] = object.records[i]; } - if (object.rotateOnExpiration != null) - message.rotateOnExpiration = Boolean(object.rotateOnExpiration); return message; }; /** - * Creates a plain object from a SharedRecord message. Also converts values to other types if specified. + * Creates a plain object from a RecordsRemoveRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Records.SharedRecord + * @memberof Records.RecordsRemoveRequest * @static - * @param {Records.SharedRecord} message SharedRecord + * @param {Records.RecordsRemoveRequest} message RecordsRemoveRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedRecord.toObject = function toObject(message, options) { + RecordsRemoveRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.toUsername = ""; - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if (options.bytes === String) - object.recordKey = ""; - else { - object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); - } - if (options.bytes === String) - object.sharedFolderUid = ""; - else { - object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); - } - if (options.bytes === String) - object.teamUid = ""; - else { - object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); - } - object.editable = false; - object.shareable = false; - object.transfer = false; - object.useEccKey = false; - object.removeVaultData = false; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; - object.rotateOnExpiration = false; + if (options.arrays || options.defaults) + object.records = []; + if (message.records && message.records.length) { + object.records = []; + for (let j = 0; j < message.records.length; ++j) + object.records[j] = options.bytes === String ? $util.base64.encode(message.records[j], 0, message.records[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.records[j]) : message.records[j]; } - if (message.toUsername != null && message.hasOwnProperty("toUsername")) - object.toUsername = message.toUsername; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.editable != null && message.hasOwnProperty("editable")) - object.editable = message.editable; - if (message.shareable != null && message.hasOwnProperty("shareable")) - object.shareable = message.shareable; - if (message.transfer != null && message.hasOwnProperty("transfer")) - object.transfer = message.transfer; - if (message.useEccKey != null && message.hasOwnProperty("useEccKey")) - object.useEccKey = message.useEccKey; - if (message.removeVaultData != null && message.hasOwnProperty("removeVaultData")) - object.removeVaultData = message.removeVaultData; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") - object.expiration = options.longs === String ? String(message.expiration) : message.expiration; - else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) - object.timerNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.Records.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - object.rotateOnExpiration = message.rotateOnExpiration; return object; }; /** - * Converts this SharedRecord to JSON. + * Converts this RecordsRemoveRequest to JSON. * @function toJSON - * @memberof Records.SharedRecord + * @memberof Records.RecordsRemoveRequest * @instance * @returns {Object.} JSON object */ - SharedRecord.prototype.toJSON = function toJSON() { + RecordsRemoveRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SharedRecord + * Gets the default type url for RecordsRemoveRequest * @function getTypeUrl - * @memberof Records.SharedRecord + * @memberof Records.RecordsRemoveRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SharedRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordsRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.SharedRecord"; + return typeUrlPrefix + "/Records.RecordsRemoveRequest"; }; - return SharedRecord; + return RecordsRemoveRequest; })(); - Records.RecordShareUpdateResponse = (function() { + Records.RecordRevert = (function() { /** - * Properties of a RecordShareUpdateResponse. + * Properties of a RecordRevert. * @memberof Records - * @interface IRecordShareUpdateResponse - * @property {Array.|null} [addSharedRecordStatus] RecordShareUpdateResponse addSharedRecordStatus - * @property {Array.|null} [updateSharedRecordStatus] RecordShareUpdateResponse updateSharedRecordStatus - * @property {Array.|null} [removeSharedRecordStatus] RecordShareUpdateResponse removeSharedRecordStatus + * @interface IRecordRevert + * @property {Uint8Array|null} [recordUid] RecordRevert recordUid + * @property {number|Long|null} [revertToRevision] RecordRevert revertToRevision */ /** - * Constructs a new RecordShareUpdateResponse. + * Constructs a new RecordRevert. * @memberof Records - * @classdesc Represents a RecordShareUpdateResponse. - * @implements IRecordShareUpdateResponse + * @classdesc Represents a RecordRevert. + * @implements IRecordRevert * @constructor - * @param {Records.IRecordShareUpdateResponse=} [properties] Properties to set + * @param {Records.IRecordRevert=} [properties] Properties to set */ - function RecordShareUpdateResponse(properties) { - this.addSharedRecordStatus = []; - this.updateSharedRecordStatus = []; - this.removeSharedRecordStatus = []; + function RecordRevert(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -187547,112 +188811,89 @@ export const Records = $root.Records = (() => { } /** - * RecordShareUpdateResponse addSharedRecordStatus. - * @member {Array.} addSharedRecordStatus - * @memberof Records.RecordShareUpdateResponse - * @instance - */ - RecordShareUpdateResponse.prototype.addSharedRecordStatus = $util.emptyArray; - - /** - * RecordShareUpdateResponse updateSharedRecordStatus. - * @member {Array.} updateSharedRecordStatus - * @memberof Records.RecordShareUpdateResponse + * RecordRevert recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.RecordRevert * @instance */ - RecordShareUpdateResponse.prototype.updateSharedRecordStatus = $util.emptyArray; + RecordRevert.prototype.recordUid = $util.newBuffer([]); /** - * RecordShareUpdateResponse removeSharedRecordStatus. - * @member {Array.} removeSharedRecordStatus - * @memberof Records.RecordShareUpdateResponse + * RecordRevert revertToRevision. + * @member {number|Long} revertToRevision + * @memberof Records.RecordRevert * @instance */ - RecordShareUpdateResponse.prototype.removeSharedRecordStatus = $util.emptyArray; + RecordRevert.prototype.revertToRevision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new RecordShareUpdateResponse instance using the specified properties. + * Creates a new RecordRevert instance using the specified properties. * @function create - * @memberof Records.RecordShareUpdateResponse + * @memberof Records.RecordRevert * @static - * @param {Records.IRecordShareUpdateResponse=} [properties] Properties to set - * @returns {Records.RecordShareUpdateResponse} RecordShareUpdateResponse instance + * @param {Records.IRecordRevert=} [properties] Properties to set + * @returns {Records.RecordRevert} RecordRevert instance */ - RecordShareUpdateResponse.create = function create(properties) { - return new RecordShareUpdateResponse(properties); + RecordRevert.create = function create(properties) { + return new RecordRevert(properties); }; /** - * Encodes the specified RecordShareUpdateResponse message. Does not implicitly {@link Records.RecordShareUpdateResponse.verify|verify} messages. + * Encodes the specified RecordRevert message. Does not implicitly {@link Records.RecordRevert.verify|verify} messages. * @function encode - * @memberof Records.RecordShareUpdateResponse + * @memberof Records.RecordRevert * @static - * @param {Records.IRecordShareUpdateResponse} message RecordShareUpdateResponse message or plain object to encode + * @param {Records.IRecordRevert} message RecordRevert message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordShareUpdateResponse.encode = function encode(message, writer) { + RecordRevert.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.addSharedRecordStatus != null && message.addSharedRecordStatus.length) - for (let i = 0; i < message.addSharedRecordStatus.length; ++i) - $root.Records.SharedRecordStatus.encode(message.addSharedRecordStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateSharedRecordStatus != null && message.updateSharedRecordStatus.length) - for (let i = 0; i < message.updateSharedRecordStatus.length; ++i) - $root.Records.SharedRecordStatus.encode(message.updateSharedRecordStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.removeSharedRecordStatus != null && message.removeSharedRecordStatus.length) - for (let i = 0; i < message.removeSharedRecordStatus.length; ++i) - $root.Records.SharedRecordStatus.encode(message.removeSharedRecordStatus[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.revertToRevision != null && Object.hasOwnProperty.call(message, "revertToRevision")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revertToRevision); return writer; }; /** - * Encodes the specified RecordShareUpdateResponse message, length delimited. Does not implicitly {@link Records.RecordShareUpdateResponse.verify|verify} messages. + * Encodes the specified RecordRevert message, length delimited. Does not implicitly {@link Records.RecordRevert.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordShareUpdateResponse + * @memberof Records.RecordRevert * @static - * @param {Records.IRecordShareUpdateResponse} message RecordShareUpdateResponse message or plain object to encode + * @param {Records.IRecordRevert} message RecordRevert message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordShareUpdateResponse.encodeDelimited = function encodeDelimited(message, writer) { + RecordRevert.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordShareUpdateResponse message from the specified reader or buffer. + * Decodes a RecordRevert message from the specified reader or buffer. * @function decode - * @memberof Records.RecordShareUpdateResponse + * @memberof Records.RecordRevert * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordShareUpdateResponse} RecordShareUpdateResponse + * @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 */ - RecordShareUpdateResponse.decode = function decode(reader, length) { + RecordRevert.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordShareUpdateResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordRevert(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.addSharedRecordStatus && message.addSharedRecordStatus.length)) - message.addSharedRecordStatus = []; - message.addSharedRecordStatus.push($root.Records.SharedRecordStatus.decode(reader, reader.uint32())); + message.recordUid = reader.bytes(); break; } case 2: { - if (!(message.updateSharedRecordStatus && message.updateSharedRecordStatus.length)) - message.updateSharedRecordStatus = []; - message.updateSharedRecordStatus.push($root.Records.SharedRecordStatus.decode(reader, reader.uint32())); - break; - } - case 3: { - if (!(message.removeSharedRecordStatus && message.removeSharedRecordStatus.length)) - message.removeSharedRecordStatus = []; - message.removeSharedRecordStatus.push($root.Records.SharedRecordStatus.decode(reader, reader.uint32())); + message.revertToRevision = reader.int64(); break; } default: @@ -187664,193 +188905,155 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordShareUpdateResponse message from the specified reader or buffer, length delimited. + * Decodes a RecordRevert message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordShareUpdateResponse + * @memberof Records.RecordRevert * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordShareUpdateResponse} RecordShareUpdateResponse + * @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 */ - RecordShareUpdateResponse.decodeDelimited = function decodeDelimited(reader) { + RecordRevert.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordShareUpdateResponse message. + * Verifies a RecordRevert message. * @function verify - * @memberof Records.RecordShareUpdateResponse + * @memberof Records.RecordRevert * @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) { + RecordRevert.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - 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]); - 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]); - if (error) - return "removeSharedRecordStatus." + error; - } - } + 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 RecordShareUpdateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RecordRevert message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordShareUpdateResponse + * @memberof Records.RecordRevert * @static * @param {Object.} object Plain object - * @returns {Records.RecordShareUpdateResponse} RecordShareUpdateResponse + * @returns {Records.RecordRevert} RecordRevert */ - RecordShareUpdateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordShareUpdateResponse) + RecordRevert.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordRevert) return object; - let message = new $root.Records.RecordShareUpdateResponse(); - if (object.addSharedRecordStatus) { - if (!Array.isArray(object.addSharedRecordStatus)) - throw TypeError(".Records.RecordShareUpdateResponse.addSharedRecordStatus: array expected"); - message.addSharedRecordStatus = []; - for (let i = 0; i < object.addSharedRecordStatus.length; ++i) { - if (typeof object.addSharedRecordStatus[i] !== "object") - throw TypeError(".Records.RecordShareUpdateResponse.addSharedRecordStatus: object expected"); - message.addSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject(object.addSharedRecordStatus[i]); - } - } - if (object.updateSharedRecordStatus) { - if (!Array.isArray(object.updateSharedRecordStatus)) - throw TypeError(".Records.RecordShareUpdateResponse.updateSharedRecordStatus: array expected"); - message.updateSharedRecordStatus = []; - for (let i = 0; i < object.updateSharedRecordStatus.length; ++i) { - if (typeof object.updateSharedRecordStatus[i] !== "object") - throw TypeError(".Records.RecordShareUpdateResponse.updateSharedRecordStatus: object expected"); - message.updateSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject(object.updateSharedRecordStatus[i]); - } - } - if (object.removeSharedRecordStatus) { - if (!Array.isArray(object.removeSharedRecordStatus)) - throw TypeError(".Records.RecordShareUpdateResponse.removeSharedRecordStatus: array expected"); - message.removeSharedRecordStatus = []; - for (let i = 0; i < object.removeSharedRecordStatus.length; ++i) { - if (typeof object.removeSharedRecordStatus[i] !== "object") - throw TypeError(".Records.RecordShareUpdateResponse.removeSharedRecordStatus: object expected"); - message.removeSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject(object.removeSharedRecordStatus[i]); - } - } + let message = new $root.Records.RecordRevert(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.revertToRevision != null) + if ($util.Long) + (message.revertToRevision = $util.Long.fromValue(object.revertToRevision)).unsigned = false; + else if (typeof object.revertToRevision === "string") + message.revertToRevision = parseInt(object.revertToRevision, 10); + else if (typeof object.revertToRevision === "number") + message.revertToRevision = object.revertToRevision; + else if (typeof object.revertToRevision === "object") + message.revertToRevision = new $util.LongBits(object.revertToRevision.low >>> 0, object.revertToRevision.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a RecordShareUpdateResponse message. Also converts values to other types if specified. + * Creates a plain object from a RecordRevert message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordShareUpdateResponse + * @memberof Records.RecordRevert * @static - * @param {Records.RecordShareUpdateResponse} message RecordShareUpdateResponse + * @param {Records.RecordRevert} message RecordRevert * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordShareUpdateResponse.toObject = function toObject(message, options) { + RecordRevert.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.addSharedRecordStatus = []; - object.updateSharedRecordStatus = []; - object.removeSharedRecordStatus = []; - } - if (message.addSharedRecordStatus && message.addSharedRecordStatus.length) { - object.addSharedRecordStatus = []; - for (let j = 0; j < message.addSharedRecordStatus.length; ++j) - object.addSharedRecordStatus[j] = $root.Records.SharedRecordStatus.toObject(message.addSharedRecordStatus[j], options); - } - if (message.updateSharedRecordStatus && message.updateSharedRecordStatus.length) { - object.updateSharedRecordStatus = []; - for (let j = 0; j < message.updateSharedRecordStatus.length; ++j) - object.updateSharedRecordStatus[j] = $root.Records.SharedRecordStatus.toObject(message.updateSharedRecordStatus[j], options); - } - if (message.removeSharedRecordStatus && message.removeSharedRecordStatus.length) { - object.removeSharedRecordStatus = []; - for (let j = 0; j < message.removeSharedRecordStatus.length; ++j) - object.removeSharedRecordStatus[j] = $root.Records.SharedRecordStatus.toObject(message.removeSharedRecordStatus[j], options); + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revertToRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revertToRevision = options.longs === String ? "0" : 0; } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.revertToRevision != null && message.hasOwnProperty("revertToRevision")) + if (typeof message.revertToRevision === "number") + object.revertToRevision = options.longs === String ? String(message.revertToRevision) : message.revertToRevision; + else + object.revertToRevision = options.longs === String ? $util.Long.prototype.toString.call(message.revertToRevision) : options.longs === Number ? new $util.LongBits(message.revertToRevision.low >>> 0, message.revertToRevision.high >>> 0).toNumber() : message.revertToRevision; return object; }; /** - * Converts this RecordShareUpdateResponse to JSON. + * Converts this RecordRevert to JSON. * @function toJSON - * @memberof Records.RecordShareUpdateResponse + * @memberof Records.RecordRevert * @instance * @returns {Object.} JSON object */ - RecordShareUpdateResponse.prototype.toJSON = function toJSON() { + RecordRevert.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordShareUpdateResponse + * Gets the default type url for RecordRevert * @function getTypeUrl - * @memberof Records.RecordShareUpdateResponse + * @memberof Records.RecordRevert * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordShareUpdateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordRevert.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordShareUpdateResponse"; + return typeUrlPrefix + "/Records.RecordRevert"; }; - return RecordShareUpdateResponse; + return RecordRevert; })(); - Records.SharedRecordStatus = (function() { + Records.RecordsRevertRequest = (function() { /** - * Properties of a SharedRecordStatus. + * Properties of a RecordsRevertRequest. * @memberof Records - * @interface ISharedRecordStatus - * @property {Uint8Array|null} [recordUid] SharedRecordStatus recordUid - * @property {string|null} [status] SharedRecordStatus status - * @property {string|null} [message] SharedRecordStatus message - * @property {string|null} [username] SharedRecordStatus username + * @interface IRecordsRevertRequest + * @property {Array.|null} [records] RecordsRevertRequest records */ /** - * Constructs a new SharedRecordStatus. + * Constructs a new RecordsRevertRequest. * @memberof Records - * @classdesc Represents a SharedRecordStatus. - * @implements ISharedRecordStatus + * @classdesc Represents a RecordsRevertRequest. + * @implements IRecordsRevertRequest * @constructor - * @param {Records.ISharedRecordStatus=} [properties] Properties to set + * @param {Records.IRecordsRevertRequest=} [properties] Properties to set */ - function SharedRecordStatus(properties) { + function RecordsRevertRequest(properties) { + this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -187858,117 +189061,78 @@ export const Records = $root.Records = (() => { } /** - * SharedRecordStatus recordUid. - * @member {Uint8Array} recordUid - * @memberof Records.SharedRecordStatus - * @instance - */ - SharedRecordStatus.prototype.recordUid = $util.newBuffer([]); - - /** - * SharedRecordStatus status. - * @member {string} status - * @memberof Records.SharedRecordStatus - * @instance - */ - SharedRecordStatus.prototype.status = ""; - - /** - * SharedRecordStatus message. - * @member {string} message - * @memberof Records.SharedRecordStatus - * @instance - */ - SharedRecordStatus.prototype.message = ""; - - /** - * SharedRecordStatus username. - * @member {string} username - * @memberof Records.SharedRecordStatus + * RecordsRevertRequest records. + * @member {Array.} records + * @memberof Records.RecordsRevertRequest * @instance */ - SharedRecordStatus.prototype.username = ""; + RecordsRevertRequest.prototype.records = $util.emptyArray; /** - * Creates a new SharedRecordStatus instance using the specified properties. + * Creates a new RecordsRevertRequest instance using the specified properties. * @function create - * @memberof Records.SharedRecordStatus + * @memberof Records.RecordsRevertRequest * @static - * @param {Records.ISharedRecordStatus=} [properties] Properties to set - * @returns {Records.SharedRecordStatus} SharedRecordStatus instance + * @param {Records.IRecordsRevertRequest=} [properties] Properties to set + * @returns {Records.RecordsRevertRequest} RecordsRevertRequest instance */ - SharedRecordStatus.create = function create(properties) { - return new SharedRecordStatus(properties); + RecordsRevertRequest.create = function create(properties) { + return new RecordsRevertRequest(properties); }; /** - * Encodes the specified SharedRecordStatus message. Does not implicitly {@link Records.SharedRecordStatus.verify|verify} messages. + * Encodes the specified RecordsRevertRequest message. Does not implicitly {@link Records.RecordsRevertRequest.verify|verify} messages. * @function encode - * @memberof Records.SharedRecordStatus + * @memberof Records.RecordsRevertRequest * @static - * @param {Records.ISharedRecordStatus} message SharedRecordStatus message or plain object to encode + * @param {Records.IRecordsRevertRequest} message RecordsRevertRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedRecordStatus.encode = function encode(message, writer) { + RecordsRevertRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.status); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.username); + if (message.records != null && message.records.length) + for (let i = 0; i < message.records.length; ++i) + $root.Records.RecordRevert.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified SharedRecordStatus message, length delimited. Does not implicitly {@link Records.SharedRecordStatus.verify|verify} messages. + * Encodes the specified RecordsRevertRequest message, length delimited. Does not implicitly {@link Records.RecordsRevertRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Records.SharedRecordStatus + * @memberof Records.RecordsRevertRequest * @static - * @param {Records.ISharedRecordStatus} message SharedRecordStatus message or plain object to encode + * @param {Records.IRecordsRevertRequest} message RecordsRevertRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedRecordStatus.encodeDelimited = function encodeDelimited(message, writer) { + RecordsRevertRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SharedRecordStatus message from the specified reader or buffer. + * Decodes a RecordsRevertRequest message from the specified reader or buffer. * @function decode - * @memberof Records.SharedRecordStatus + * @memberof Records.RecordsRevertRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.SharedRecordStatus} SharedRecordStatus + * @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 */ - SharedRecordStatus.decode = function decode(reader, length) { + RecordsRevertRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.SharedRecordStatus(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsRevertRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); - break; - } - case 2: { - message.status = reader.string(); - break; - } - case 3: { - message.message = reader.string(); - break; - } - case 4: { - message.username = reader.string(); + if (!(message.records && message.records.length)) + message.records = []; + message.records.push($root.Records.RecordRevert.decode(reader, reader.uint32())); break; } default: @@ -187980,158 +189144,177 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a SharedRecordStatus message from the specified reader or buffer, length delimited. + * Decodes a RecordsRevertRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.SharedRecordStatus + * @memberof Records.RecordsRevertRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.SharedRecordStatus} SharedRecordStatus + * @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 */ - SharedRecordStatus.decodeDelimited = function decodeDelimited(reader) { + RecordsRevertRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SharedRecordStatus message. + * Verifies a RecordsRevertRequest message. * @function verify - * @memberof Records.SharedRecordStatus + * @memberof Records.RecordsRevertRequest * @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) { + RecordsRevertRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.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"; + 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]); + if (error) + return "records." + error; + } + } return null; }; /** - * Creates a SharedRecordStatus message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsRevertRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.SharedRecordStatus + * @memberof Records.RecordsRevertRequest * @static * @param {Object.} object Plain object - * @returns {Records.SharedRecordStatus} SharedRecordStatus + * @returns {Records.RecordsRevertRequest} RecordsRevertRequest */ - SharedRecordStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Records.SharedRecordStatus) + RecordsRevertRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordsRevertRequest) return object; - let message = new $root.Records.SharedRecordStatus(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.status != null) - message.status = String(object.status); - if (object.message != null) - message.message = String(object.message); - if (object.username != null) - message.username = String(object.username); + let message = new $root.Records.RecordsRevertRequest(); + if (object.records) { + if (!Array.isArray(object.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") + throw TypeError(".Records.RecordsRevertRequest.records: object expected"); + message.records[i] = $root.Records.RecordRevert.fromObject(object.records[i]); + } + } return message; }; /** - * Creates a plain object from a SharedRecordStatus message. Also converts values to other types if specified. + * Creates a plain object from a RecordsRevertRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Records.SharedRecordStatus + * @memberof Records.RecordsRevertRequest * @static - * @param {Records.SharedRecordStatus} message SharedRecordStatus + * @param {Records.RecordsRevertRequest} message RecordsRevertRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedRecordStatus.toObject = function toObject(message, options) { + RecordsRevertRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - object.status = ""; - object.message = ""; - object.username = ""; + if (options.arrays || options.defaults) + object.records = []; + if (message.records && message.records.length) { + object.records = []; + for (let j = 0; j < message.records.length; ++j) + object.records[j] = $root.Records.RecordRevert.toObject(message.records[j], options); } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; return object; }; /** - * Converts this SharedRecordStatus to JSON. + * Converts this RecordsRevertRequest to JSON. * @function toJSON - * @memberof Records.SharedRecordStatus + * @memberof Records.RecordsRevertRequest * @instance * @returns {Object.} JSON object */ - SharedRecordStatus.prototype.toJSON = function toJSON() { + RecordsRevertRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SharedRecordStatus + * Gets the default type url for RecordsRevertRequest * @function getTypeUrl - * @memberof Records.SharedRecordStatus + * @memberof Records.RecordsRevertRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SharedRecordStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordsRevertRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.SharedRecordStatus"; + return typeUrlPrefix + "/Records.RecordsRevertRequest"; }; - return SharedRecordStatus; + return RecordsRevertRequest; })(); - Records.GetRecordPermissionsRequest = (function() { + /** + * RecordModifyResult enum. + * @name Records.RecordModifyResult + * @enum {number} + * @property {number} RS_SUCCESS=0 RS_SUCCESS value + * @property {number} RS_OUT_OF_SYNC=1 RS_OUT_OF_SYNC value + * @property {number} RS_ACCESS_DENIED=2 RS_ACCESS_DENIED value + * @property {number} RS_SHARE_DENIED=3 RS_SHARE_DENIED value + * @property {number} RS_RECORD_EXISTS=4 RS_RECORD_EXISTS value + * @property {number} RS_OLD_RECORD_VERSION_TYPE=5 RS_OLD_RECORD_VERSION_TYPE value + * @property {number} RS_NEW_RECORD_VERSION_TYPE=6 RS_NEW_RECORD_VERSION_TYPE value + * @property {number} RS_FILES_NOT_MATCH=7 RS_FILES_NOT_MATCH value + * @property {number} RS_RECORD_NOT_SHAREABLE=8 RS_RECORD_NOT_SHAREABLE value + * @property {number} RS_ATTACHMENT_NOT_SHAREABLE=9 RS_ATTACHMENT_NOT_SHAREABLE value + * @property {number} RS_FILE_LIMIT_REACHED=10 RS_FILE_LIMIT_REACHED value + * @property {number} RS_SIZE_EXCEEDED_LIMIT=11 RS_SIZE_EXCEEDED_LIMIT value + * @property {number} RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS=12 RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS value + */ + Records.RecordModifyResult = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RS_SUCCESS"] = 0; + values[valuesById[1] = "RS_OUT_OF_SYNC"] = 1; + values[valuesById[2] = "RS_ACCESS_DENIED"] = 2; + values[valuesById[3] = "RS_SHARE_DENIED"] = 3; + values[valuesById[4] = "RS_RECORD_EXISTS"] = 4; + values[valuesById[5] = "RS_OLD_RECORD_VERSION_TYPE"] = 5; + values[valuesById[6] = "RS_NEW_RECORD_VERSION_TYPE"] = 6; + values[valuesById[7] = "RS_FILES_NOT_MATCH"] = 7; + values[valuesById[8] = "RS_RECORD_NOT_SHAREABLE"] = 8; + values[valuesById[9] = "RS_ATTACHMENT_NOT_SHAREABLE"] = 9; + values[valuesById[10] = "RS_FILE_LIMIT_REACHED"] = 10; + values[valuesById[11] = "RS_SIZE_EXCEEDED_LIMIT"] = 11; + values[valuesById[12] = "RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS"] = 12; + return values; + })(); + + Records.RecordLinkError = (function() { /** - * Properties of a GetRecordPermissionsRequest. + * Properties of a RecordLinkError. * @memberof Records - * @interface IGetRecordPermissionsRequest - * @property {Array.|null} [recordUids] GetRecordPermissionsRequest recordUids - * @property {boolean|null} [isShareAdmin] GetRecordPermissionsRequest isShareAdmin + * @interface IRecordLinkError + * @property {Uint8Array|null} [recordUid] RecordLinkError recordUid + * @property {Records.RecordModifyResult|null} [status] RecordLinkError status + * @property {string|null} [message] RecordLinkError message */ /** - * Constructs a new GetRecordPermissionsRequest. + * Constructs a new RecordLinkError. * @memberof Records - * @classdesc Represents a GetRecordPermissionsRequest. - * @implements IGetRecordPermissionsRequest + * @classdesc Represents a RecordLinkError. + * @implements IRecordLinkError * @constructor - * @param {Records.IGetRecordPermissionsRequest=} [properties] Properties to set + * @param {Records.IRecordLinkError=} [properties] Properties to set */ - function GetRecordPermissionsRequest(properties) { - this.recordUids = []; + function RecordLinkError(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -188139,92 +189322,103 @@ export const Records = $root.Records = (() => { } /** - * GetRecordPermissionsRequest recordUids. - * @member {Array.} recordUids - * @memberof Records.GetRecordPermissionsRequest + * RecordLinkError recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.RecordLinkError * @instance */ - GetRecordPermissionsRequest.prototype.recordUids = $util.emptyArray; + RecordLinkError.prototype.recordUid = $util.newBuffer([]); /** - * GetRecordPermissionsRequest isShareAdmin. - * @member {boolean} isShareAdmin - * @memberof Records.GetRecordPermissionsRequest + * RecordLinkError status. + * @member {Records.RecordModifyResult} status + * @memberof Records.RecordLinkError * @instance */ - GetRecordPermissionsRequest.prototype.isShareAdmin = false; + RecordLinkError.prototype.status = 0; /** - * Creates a new GetRecordPermissionsRequest instance using the specified properties. + * RecordLinkError message. + * @member {string} message + * @memberof Records.RecordLinkError + * @instance + */ + RecordLinkError.prototype.message = ""; + + /** + * Creates a new RecordLinkError instance using the specified properties. * @function create - * @memberof Records.GetRecordPermissionsRequest + * @memberof Records.RecordLinkError * @static - * @param {Records.IGetRecordPermissionsRequest=} [properties] Properties to set - * @returns {Records.GetRecordPermissionsRequest} GetRecordPermissionsRequest instance + * @param {Records.IRecordLinkError=} [properties] Properties to set + * @returns {Records.RecordLinkError} RecordLinkError instance */ - GetRecordPermissionsRequest.create = function create(properties) { - return new GetRecordPermissionsRequest(properties); + RecordLinkError.create = function create(properties) { + return new RecordLinkError(properties); }; /** - * Encodes the specified GetRecordPermissionsRequest message. Does not implicitly {@link Records.GetRecordPermissionsRequest.verify|verify} messages. + * Encodes the specified RecordLinkError message. Does not implicitly {@link Records.RecordLinkError.verify|verify} messages. * @function encode - * @memberof Records.GetRecordPermissionsRequest + * @memberof Records.RecordLinkError * @static - * @param {Records.IGetRecordPermissionsRequest} message GetRecordPermissionsRequest message or plain object to encode + * @param {Records.IRecordLinkError} message RecordLinkError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRecordPermissionsRequest.encode = function encode(message, writer) { + RecordLinkError.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUids != null && message.recordUids.length) - for (let i = 0; i < message.recordUids.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUids[i]); - if (message.isShareAdmin != null && Object.hasOwnProperty.call(message, "isShareAdmin")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isShareAdmin); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); return writer; }; /** - * Encodes the specified GetRecordPermissionsRequest message, length delimited. Does not implicitly {@link Records.GetRecordPermissionsRequest.verify|verify} messages. + * Encodes the specified RecordLinkError message, length delimited. Does not implicitly {@link Records.RecordLinkError.verify|verify} messages. * @function encodeDelimited - * @memberof Records.GetRecordPermissionsRequest + * @memberof Records.RecordLinkError * @static - * @param {Records.IGetRecordPermissionsRequest} message GetRecordPermissionsRequest message or plain object to encode + * @param {Records.IRecordLinkError} message RecordLinkError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRecordPermissionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + RecordLinkError.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetRecordPermissionsRequest message from the specified reader or buffer. + * Decodes a RecordLinkError message from the specified reader or buffer. * @function decode - * @memberof Records.GetRecordPermissionsRequest + * @memberof Records.RecordLinkError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.GetRecordPermissionsRequest} GetRecordPermissionsRequest + * @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 */ - GetRecordPermissionsRequest.decode = function decode(reader, length) { + RecordLinkError.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetRecordPermissionsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordLinkError(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.recordUids && message.recordUids.length)) - message.recordUids = []; - message.recordUids.push(reader.bytes()); + message.recordUid = reader.bytes(); break; } case 2: { - message.isShareAdmin = reader.bool(); + message.status = reader.int32(); + break; + } + case 3: { + message.message = reader.string(); break; } default: @@ -188236,147 +189430,226 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a GetRecordPermissionsRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordLinkError message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.GetRecordPermissionsRequest + * @memberof Records.RecordLinkError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.GetRecordPermissionsRequest} GetRecordPermissionsRequest + * @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 */ - GetRecordPermissionsRequest.decodeDelimited = function decodeDelimited(reader) { + RecordLinkError.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetRecordPermissionsRequest message. + * Verifies a RecordLinkError message. * @function verify - * @memberof Records.GetRecordPermissionsRequest + * @memberof Records.RecordLinkError * @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) { + RecordLinkError.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) - if (typeof message.isShareAdmin !== "boolean") - return "isShareAdmin: boolean 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")) + 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 GetRecordPermissionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordLinkError message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.GetRecordPermissionsRequest + * @memberof Records.RecordLinkError * @static * @param {Object.} object Plain object - * @returns {Records.GetRecordPermissionsRequest} GetRecordPermissionsRequest + * @returns {Records.RecordLinkError} RecordLinkError */ - GetRecordPermissionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.GetRecordPermissionsRequest) + RecordLinkError.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordLinkError) return object; - let message = new $root.Records.GetRecordPermissionsRequest(); - if (object.recordUids) { - if (!Array.isArray(object.recordUids)) - throw TypeError(".Records.GetRecordPermissionsRequest.recordUids: array expected"); - message.recordUids = []; - for (let i = 0; i < object.recordUids.length; ++i) - if (typeof object.recordUids[i] === "string") - $util.base64.decode(object.recordUids[i], message.recordUids[i] = $util.newBuffer($util.base64.length(object.recordUids[i])), 0); - else if (object.recordUids[i].length >= 0) - message.recordUids[i] = object.recordUids[i]; + let message = new $root.Records.RecordLinkError(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; + case "RS_SUCCESS": + case 0: + message.status = 0; + break; + case "RS_OUT_OF_SYNC": + case 1: + message.status = 1; + break; + case "RS_ACCESS_DENIED": + case 2: + message.status = 2; + break; + case "RS_SHARE_DENIED": + case 3: + message.status = 3; + break; + case "RS_RECORD_EXISTS": + case 4: + message.status = 4; + break; + case "RS_OLD_RECORD_VERSION_TYPE": + case 5: + message.status = 5; + break; + case "RS_NEW_RECORD_VERSION_TYPE": + case 6: + message.status = 6; + break; + case "RS_FILES_NOT_MATCH": + case 7: + message.status = 7; + break; + case "RS_RECORD_NOT_SHAREABLE": + case 8: + message.status = 8; + break; + case "RS_ATTACHMENT_NOT_SHAREABLE": + case 9: + message.status = 9; + break; + case "RS_FILE_LIMIT_REACHED": + case 10: + message.status = 10; + break; + case "RS_SIZE_EXCEEDED_LIMIT": + case 11: + message.status = 11; + break; + case "RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS": + case 12: + message.status = 12; + break; } - if (object.isShareAdmin != null) - message.isShareAdmin = Boolean(object.isShareAdmin); + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a GetRecordPermissionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a RecordLinkError message. Also converts values to other types if specified. * @function toObject - * @memberof Records.GetRecordPermissionsRequest + * @memberof Records.RecordLinkError * @static - * @param {Records.GetRecordPermissionsRequest} message GetRecordPermissionsRequest + * @param {Records.RecordLinkError} message RecordLinkError * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetRecordPermissionsRequest.toObject = function toObject(message, options) { + RecordLinkError.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.recordUids = []; - if (options.defaults) - object.isShareAdmin = false; - if (message.recordUids && message.recordUids.length) { - object.recordUids = []; - for (let j = 0; j < message.recordUids.length; ++j) - object.recordUids[j] = options.bytes === String ? $util.base64.encode(message.recordUids[j], 0, message.recordUids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUids[j]) : message.recordUids[j]; + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + object.status = options.enums === String ? "RS_SUCCESS" : 0; + object.message = ""; } - if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) - object.isShareAdmin = message.isShareAdmin; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.status != null && message.hasOwnProperty("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")) + object.message = message.message; return object; }; /** - * Converts this GetRecordPermissionsRequest to JSON. + * Converts this RecordLinkError to JSON. * @function toJSON - * @memberof Records.GetRecordPermissionsRequest + * @memberof Records.RecordLinkError * @instance * @returns {Object.} JSON object */ - GetRecordPermissionsRequest.prototype.toJSON = function toJSON() { + RecordLinkError.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetRecordPermissionsRequest + * Gets the default type url for RecordLinkError * @function getTypeUrl - * @memberof Records.GetRecordPermissionsRequest + * @memberof Records.RecordLinkError * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetRecordPermissionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordLinkError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.GetRecordPermissionsRequest"; + return typeUrlPrefix + "/Records.RecordLinkError"; }; - return GetRecordPermissionsRequest; + return RecordLinkError; })(); - Records.GetRecordPermissionsResponse = (function() { + Records.RecordModifyStatus = (function() { /** - * Properties of a GetRecordPermissionsResponse. + * Properties of a RecordModifyStatus. * @memberof Records - * @interface IGetRecordPermissionsResponse - * @property {Array.|null} [recordPermissions] GetRecordPermissionsResponse recordPermissions + * @interface IRecordModifyStatus + * @property {Uint8Array|null} [recordUid] RecordModifyStatus recordUid + * @property {Records.RecordModifyResult|null} [status] RecordModifyStatus status + * @property {string|null} [message] RecordModifyStatus message + * @property {Array.|null} [linkErrors] RecordModifyStatus linkErrors */ /** - * Constructs a new GetRecordPermissionsResponse. + * Constructs a new RecordModifyStatus. * @memberof Records - * @classdesc Represents a GetRecordPermissionsResponse. - * @implements IGetRecordPermissionsResponse + * @classdesc Represents a RecordModifyStatus. + * @implements IRecordModifyStatus * @constructor - * @param {Records.IGetRecordPermissionsResponse=} [properties] Properties to set + * @param {Records.IRecordModifyStatus=} [properties] Properties to set */ - function GetRecordPermissionsResponse(properties) { - this.recordPermissions = []; + function RecordModifyStatus(properties) { + this.linkErrors = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -188384,78 +189657,120 @@ export const Records = $root.Records = (() => { } /** - * GetRecordPermissionsResponse recordPermissions. - * @member {Array.} recordPermissions - * @memberof Records.GetRecordPermissionsResponse + * RecordModifyStatus recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.RecordModifyStatus * @instance */ - GetRecordPermissionsResponse.prototype.recordPermissions = $util.emptyArray; + RecordModifyStatus.prototype.recordUid = $util.newBuffer([]); /** - * Creates a new GetRecordPermissionsResponse instance using the specified properties. + * RecordModifyStatus status. + * @member {Records.RecordModifyResult} status + * @memberof Records.RecordModifyStatus + * @instance + */ + RecordModifyStatus.prototype.status = 0; + + /** + * RecordModifyStatus message. + * @member {string} message + * @memberof Records.RecordModifyStatus + * @instance + */ + RecordModifyStatus.prototype.message = ""; + + /** + * RecordModifyStatus linkErrors. + * @member {Array.} linkErrors + * @memberof Records.RecordModifyStatus + * @instance + */ + RecordModifyStatus.prototype.linkErrors = $util.emptyArray; + + /** + * Creates a new RecordModifyStatus instance using the specified properties. * @function create - * @memberof Records.GetRecordPermissionsResponse + * @memberof Records.RecordModifyStatus * @static - * @param {Records.IGetRecordPermissionsResponse=} [properties] Properties to set - * @returns {Records.GetRecordPermissionsResponse} GetRecordPermissionsResponse instance + * @param {Records.IRecordModifyStatus=} [properties] Properties to set + * @returns {Records.RecordModifyStatus} RecordModifyStatus instance */ - GetRecordPermissionsResponse.create = function create(properties) { - return new GetRecordPermissionsResponse(properties); + RecordModifyStatus.create = function create(properties) { + return new RecordModifyStatus(properties); }; /** - * Encodes the specified GetRecordPermissionsResponse message. Does not implicitly {@link Records.GetRecordPermissionsResponse.verify|verify} messages. + * Encodes the specified RecordModifyStatus message. Does not implicitly {@link Records.RecordModifyStatus.verify|verify} messages. * @function encode - * @memberof Records.GetRecordPermissionsResponse + * @memberof Records.RecordModifyStatus * @static - * @param {Records.IGetRecordPermissionsResponse} message GetRecordPermissionsResponse message or plain object to encode + * @param {Records.IRecordModifyStatus} message RecordModifyStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRecordPermissionsResponse.encode = function encode(message, writer) { + RecordModifyStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordPermissions != null && message.recordPermissions.length) - for (let i = 0; i < message.recordPermissions.length; ++i) - $root.Records.RecordPermission.encode(message.recordPermissions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); + if (message.linkErrors != null && message.linkErrors.length) + for (let i = 0; i < message.linkErrors.length; ++i) + $root.Records.RecordLinkError.encode(message.linkErrors[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetRecordPermissionsResponse message, length delimited. Does not implicitly {@link Records.GetRecordPermissionsResponse.verify|verify} messages. + * Encodes the specified RecordModifyStatus message, length delimited. Does not implicitly {@link Records.RecordModifyStatus.verify|verify} messages. * @function encodeDelimited - * @memberof Records.GetRecordPermissionsResponse + * @memberof Records.RecordModifyStatus * @static - * @param {Records.IGetRecordPermissionsResponse} message GetRecordPermissionsResponse message or plain object to encode + * @param {Records.IRecordModifyStatus} message RecordModifyStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRecordPermissionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + RecordModifyStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetRecordPermissionsResponse message from the specified reader or buffer. + * Decodes a RecordModifyStatus message from the specified reader or buffer. * @function decode - * @memberof Records.GetRecordPermissionsResponse + * @memberof Records.RecordModifyStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.GetRecordPermissionsResponse} GetRecordPermissionsResponse + * @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 */ - GetRecordPermissionsResponse.decode = function decode(reader, length) { + RecordModifyStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetRecordPermissionsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordModifyStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.recordPermissions && message.recordPermissions.length)) - message.recordPermissions = []; - message.recordPermissions.push($root.Records.RecordPermission.decode(reader, reader.uint32())); + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.status = reader.int32(); + break; + } + case 3: { + message.message = reader.string(); + break; + } + case 4: { + if (!(message.linkErrors && message.linkErrors.length)) + message.linkErrors = []; + message.linkErrors.push($root.Records.RecordLinkError.decode(reader, reader.uint32())); break; } default: @@ -188467,143 +189782,250 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a GetRecordPermissionsResponse message from the specified reader or buffer, length delimited. + * Decodes a RecordModifyStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.GetRecordPermissionsResponse + * @memberof Records.RecordModifyStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.GetRecordPermissionsResponse} GetRecordPermissionsResponse + * @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 */ - GetRecordPermissionsResponse.decodeDelimited = function decodeDelimited(reader) { + RecordModifyStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetRecordPermissionsResponse message. + * Verifies a RecordModifyStatus message. * @function verify - * @memberof Records.GetRecordPermissionsResponse + * @memberof Records.RecordModifyStatus * @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) { + RecordModifyStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.Records.RecordPermission.verify(message.recordPermissions[i]); + 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]); if (error) - return "recordPermissions." + error; + return "linkErrors." + error; } } return null; }; /** - * Creates a GetRecordPermissionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RecordModifyStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.GetRecordPermissionsResponse + * @memberof Records.RecordModifyStatus * @static * @param {Object.} object Plain object - * @returns {Records.GetRecordPermissionsResponse} GetRecordPermissionsResponse + * @returns {Records.RecordModifyStatus} RecordModifyStatus */ - GetRecordPermissionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.GetRecordPermissionsResponse) + RecordModifyStatus.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordModifyStatus) return object; - let message = new $root.Records.GetRecordPermissionsResponse(); - if (object.recordPermissions) { - if (!Array.isArray(object.recordPermissions)) - throw TypeError(".Records.GetRecordPermissionsResponse.recordPermissions: array expected"); - message.recordPermissions = []; - for (let i = 0; i < object.recordPermissions.length; ++i) { - if (typeof object.recordPermissions[i] !== "object") - throw TypeError(".Records.GetRecordPermissionsResponse.recordPermissions: object expected"); - message.recordPermissions[i] = $root.Records.RecordPermission.fromObject(object.recordPermissions[i]); + let message = new $root.Records.RecordModifyStatus(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; + case "RS_SUCCESS": + case 0: + message.status = 0; + break; + case "RS_OUT_OF_SYNC": + case 1: + message.status = 1; + break; + case "RS_ACCESS_DENIED": + case 2: + message.status = 2; + break; + case "RS_SHARE_DENIED": + case 3: + message.status = 3; + break; + case "RS_RECORD_EXISTS": + case 4: + message.status = 4; + break; + case "RS_OLD_RECORD_VERSION_TYPE": + case 5: + message.status = 5; + break; + case "RS_NEW_RECORD_VERSION_TYPE": + case 6: + message.status = 6; + break; + case "RS_FILES_NOT_MATCH": + case 7: + message.status = 7; + break; + case "RS_RECORD_NOT_SHAREABLE": + case 8: + message.status = 8; + break; + case "RS_ATTACHMENT_NOT_SHAREABLE": + case 9: + message.status = 9; + break; + case "RS_FILE_LIMIT_REACHED": + case 10: + message.status = 10; + break; + case "RS_SIZE_EXCEEDED_LIMIT": + case 11: + message.status = 11; + break; + case "RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS": + case 12: + message.status = 12; + break; + } + if (object.message != null) + message.message = String(object.message); + if (object.linkErrors) { + if (!Array.isArray(object.linkErrors)) + throw TypeError(".Records.RecordModifyStatus.linkErrors: array expected"); + message.linkErrors = []; + for (let i = 0; i < object.linkErrors.length; ++i) { + if (typeof object.linkErrors[i] !== "object") + throw TypeError(".Records.RecordModifyStatus.linkErrors: object expected"); + message.linkErrors[i] = $root.Records.RecordLinkError.fromObject(object.linkErrors[i]); } } return message; }; /** - * Creates a plain object from a GetRecordPermissionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a RecordModifyStatus message. Also converts values to other types if specified. * @function toObject - * @memberof Records.GetRecordPermissionsResponse + * @memberof Records.RecordModifyStatus * @static - * @param {Records.GetRecordPermissionsResponse} message GetRecordPermissionsResponse + * @param {Records.RecordModifyStatus} message RecordModifyStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetRecordPermissionsResponse.toObject = function toObject(message, options) { + RecordModifyStatus.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.recordPermissions = []; - if (message.recordPermissions && message.recordPermissions.length) { - object.recordPermissions = []; - for (let j = 0; j < message.recordPermissions.length; ++j) - object.recordPermissions[j] = $root.Records.RecordPermission.toObject(message.recordPermissions[j], options); + object.linkErrors = []; + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + object.status = options.enums === String ? "RS_SUCCESS" : 0; + object.message = ""; + } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.status != null && message.hasOwnProperty("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")) + object.message = message.message; + if (message.linkErrors && message.linkErrors.length) { + object.linkErrors = []; + for (let j = 0; j < message.linkErrors.length; ++j) + object.linkErrors[j] = $root.Records.RecordLinkError.toObject(message.linkErrors[j], options); } return object; }; /** - * Converts this GetRecordPermissionsResponse to JSON. + * Converts this RecordModifyStatus to JSON. * @function toJSON - * @memberof Records.GetRecordPermissionsResponse + * @memberof Records.RecordModifyStatus * @instance * @returns {Object.} JSON object */ - GetRecordPermissionsResponse.prototype.toJSON = function toJSON() { + RecordModifyStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetRecordPermissionsResponse + * Gets the default type url for RecordModifyStatus * @function getTypeUrl - * @memberof Records.GetRecordPermissionsResponse + * @memberof Records.RecordModifyStatus * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetRecordPermissionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordModifyStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.GetRecordPermissionsResponse"; + return typeUrlPrefix + "/Records.RecordModifyStatus"; }; - return GetRecordPermissionsResponse; + return RecordModifyStatus; })(); - Records.RecordPermission = (function() { + Records.RecordsModifyResponse = (function() { /** - * Properties of a RecordPermission. + * Properties of a RecordsModifyResponse. * @memberof Records - * @interface IRecordPermission - * @property {Uint8Array|null} [recordUid] RecordPermission recordUid - * @property {boolean|null} [owner] RecordPermission owner - * @property {boolean|null} [canEdit] RecordPermission canEdit - * @property {boolean|null} [canShare] RecordPermission canShare - * @property {boolean|null} [canTransfer] RecordPermission canTransfer + * @interface IRecordsModifyResponse + * @property {Array.|null} [records] RecordsModifyResponse records + * @property {number|Long|null} [revision] RecordsModifyResponse revision */ /** - * Constructs a new RecordPermission. + * Constructs a new RecordsModifyResponse. * @memberof Records - * @classdesc Represents a RecordPermission. - * @implements IRecordPermission + * @classdesc Represents a RecordsModifyResponse. + * @implements IRecordsModifyResponse * @constructor - * @param {Records.IRecordPermission=} [properties] Properties to set + * @param {Records.IRecordsModifyResponse=} [properties] Properties to set */ - function RecordPermission(properties) { + function RecordsModifyResponse(properties) { + this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -188611,131 +190033,92 @@ export const Records = $root.Records = (() => { } /** - * RecordPermission recordUid. - * @member {Uint8Array} recordUid - * @memberof Records.RecordPermission - * @instance - */ - RecordPermission.prototype.recordUid = $util.newBuffer([]); - - /** - * RecordPermission owner. - * @member {boolean} owner - * @memberof Records.RecordPermission - * @instance - */ - RecordPermission.prototype.owner = false; - - /** - * RecordPermission canEdit. - * @member {boolean} canEdit - * @memberof Records.RecordPermission - * @instance - */ - RecordPermission.prototype.canEdit = false; - - /** - * RecordPermission canShare. - * @member {boolean} canShare - * @memberof Records.RecordPermission + * RecordsModifyResponse records. + * @member {Array.} records + * @memberof Records.RecordsModifyResponse * @instance */ - RecordPermission.prototype.canShare = false; + RecordsModifyResponse.prototype.records = $util.emptyArray; /** - * RecordPermission canTransfer. - * @member {boolean} canTransfer - * @memberof Records.RecordPermission + * RecordsModifyResponse revision. + * @member {number|Long} revision + * @memberof Records.RecordsModifyResponse * @instance */ - RecordPermission.prototype.canTransfer = false; + RecordsModifyResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new RecordPermission instance using the specified properties. + * Creates a new RecordsModifyResponse instance using the specified properties. * @function create - * @memberof Records.RecordPermission + * @memberof Records.RecordsModifyResponse * @static - * @param {Records.IRecordPermission=} [properties] Properties to set - * @returns {Records.RecordPermission} RecordPermission instance + * @param {Records.IRecordsModifyResponse=} [properties] Properties to set + * @returns {Records.RecordsModifyResponse} RecordsModifyResponse instance */ - RecordPermission.create = function create(properties) { - return new RecordPermission(properties); + RecordsModifyResponse.create = function create(properties) { + return new RecordsModifyResponse(properties); }; /** - * Encodes the specified RecordPermission message. Does not implicitly {@link Records.RecordPermission.verify|verify} messages. + * Encodes the specified RecordsModifyResponse message. Does not implicitly {@link Records.RecordsModifyResponse.verify|verify} messages. * @function encode - * @memberof Records.RecordPermission + * @memberof Records.RecordsModifyResponse * @static - * @param {Records.IRecordPermission} message RecordPermission message or plain object to encode + * @param {Records.IRecordsModifyResponse} message RecordsModifyResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordPermission.encode = function encode(message, writer) { + RecordsModifyResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.owner); - if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.canEdit); - if (message.canShare != null && Object.hasOwnProperty.call(message, "canShare")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canShare); - if (message.canTransfer != null && Object.hasOwnProperty.call(message, "canTransfer")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.canTransfer); + if (message.records != null && message.records.length) + for (let i = 0; i < message.records.length; ++i) + $root.Records.RecordModifyStatus.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); return writer; }; /** - * Encodes the specified RecordPermission message, length delimited. Does not implicitly {@link Records.RecordPermission.verify|verify} messages. + * Encodes the specified RecordsModifyResponse message, length delimited. Does not implicitly {@link Records.RecordsModifyResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordPermission + * @memberof Records.RecordsModifyResponse * @static - * @param {Records.IRecordPermission} message RecordPermission message or plain object to encode + * @param {Records.IRecordsModifyResponse} message RecordsModifyResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordPermission.encodeDelimited = function encodeDelimited(message, writer) { + RecordsModifyResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordPermission message from the specified reader or buffer. + * Decodes a RecordsModifyResponse message from the specified reader or buffer. * @function decode - * @memberof Records.RecordPermission + * @memberof Records.RecordsModifyResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordPermission} RecordPermission + * @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 */ - RecordPermission.decode = function decode(reader, length) { + RecordsModifyResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordPermission(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsModifyResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + if (!(message.records && message.records.length)) + message.records = []; + message.records.push($root.Records.RecordModifyStatus.decode(reader, reader.uint32())); break; } case 2: { - message.owner = reader.bool(); - break; - } - case 3: { - message.canEdit = reader.bool(); - break; - } - case 4: { - message.canShare = reader.bool(); - break; - } - case 5: { - message.canTransfer = reader.bool(); + message.revision = reader.int64(); break; } default: @@ -188747,167 +190130,165 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordPermission message from the specified reader or buffer, length delimited. + * Decodes a RecordsModifyResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordPermission + * @memberof Records.RecordsModifyResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordPermission} RecordPermission + * @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 */ - RecordPermission.decodeDelimited = function decodeDelimited(reader) { + RecordsModifyResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordPermission message. + * Verifies a RecordsModifyResponse message. * @function verify - * @memberof Records.RecordPermission + * @memberof Records.RecordsModifyResponse * @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) { + RecordsModifyResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.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"; + 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]); + 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 RecordPermission message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsModifyResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordPermission + * @memberof Records.RecordsModifyResponse * @static * @param {Object.} object Plain object - * @returns {Records.RecordPermission} RecordPermission + * @returns {Records.RecordsModifyResponse} RecordsModifyResponse */ - RecordPermission.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordPermission) + RecordsModifyResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordsModifyResponse) return object; - let message = new $root.Records.RecordPermission(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.owner != null) - message.owner = Boolean(object.owner); - if (object.canEdit != null) - message.canEdit = Boolean(object.canEdit); - if (object.canShare != null) - message.canShare = Boolean(object.canShare); - if (object.canTransfer != null) - message.canTransfer = Boolean(object.canTransfer); + let message = new $root.Records.RecordsModifyResponse(); + if (object.records) { + if (!Array.isArray(object.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") + throw TypeError(".Records.RecordsModifyResponse.records: object expected"); + message.records[i] = $root.Records.RecordModifyStatus.fromObject(object.records[i]); + } + } + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a RecordPermission message. Also converts values to other types if specified. + * Creates a plain object from a RecordsModifyResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordPermission + * @memberof Records.RecordsModifyResponse * @static - * @param {Records.RecordPermission} message RecordPermission + * @param {Records.RecordsModifyResponse} message RecordsModifyResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordPermission.toObject = function toObject(message, options) { + RecordsModifyResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - object.owner = false; - object.canEdit = false; - object.canShare = false; - object.canTransfer = false; + if (options.arrays || options.defaults) + object.records = []; + if (options.defaults) + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + if (message.records && message.records.length) { + object.records = []; + for (let j = 0; j < message.records.length; ++j) + object.records[j] = $root.Records.RecordModifyStatus.toObject(message.records[j], options); } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - object.canEdit = message.canEdit; - if (message.canShare != null && message.hasOwnProperty("canShare")) - object.canShare = message.canShare; - if (message.canTransfer != null && message.hasOwnProperty("canTransfer")) - object.canTransfer = message.canTransfer; + if (message.revision != null && message.hasOwnProperty("revision")) + 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; return object; }; /** - * Converts this RecordPermission to JSON. + * Converts this RecordsModifyResponse to JSON. * @function toJSON - * @memberof Records.RecordPermission + * @memberof Records.RecordsModifyResponse * @instance * @returns {Object.} JSON object */ - RecordPermission.prototype.toJSON = function toJSON() { + RecordsModifyResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordPermission + * Gets the default type url for RecordsModifyResponse * @function getTypeUrl - * @memberof Records.RecordPermission + * @memberof Records.RecordsModifyResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordPermission.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordsModifyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordPermission"; + return typeUrlPrefix + "/Records.RecordsModifyResponse"; }; - return RecordPermission; + return RecordsModifyResponse; })(); - Records.GetShareObjectsRequest = (function() { + Records.RecordAddAuditData = (function() { /** - * Properties of a GetShareObjectsRequest. + * Properties of a RecordAddAuditData. * @memberof Records - * @interface IGetShareObjectsRequest - * @property {string|null} [startWith] GetShareObjectsRequest startWith - * @property {string|null} [contains] GetShareObjectsRequest contains - * @property {boolean|null} [filtered] GetShareObjectsRequest filtered - * @property {Uint8Array|null} [sharedFolderUid] GetShareObjectsRequest sharedFolderUid + * @interface IRecordAddAuditData + * @property {Uint8Array|null} [recordUid] RecordAddAuditData recordUid + * @property {number|Long|null} [revision] RecordAddAuditData revision + * @property {Uint8Array|null} [data] RecordAddAuditData data + * @property {number|null} [version] RecordAddAuditData version */ /** - * Constructs a new GetShareObjectsRequest. + * Constructs a new RecordAddAuditData. * @memberof Records - * @classdesc Represents a GetShareObjectsRequest. - * @implements IGetShareObjectsRequest + * @classdesc Represents a RecordAddAuditData. + * @implements IRecordAddAuditData * @constructor - * @param {Records.IGetShareObjectsRequest=} [properties] Properties to set + * @param {Records.IRecordAddAuditData=} [properties] Properties to set */ - function GetShareObjectsRequest(properties) { + function RecordAddAuditData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -188915,117 +190296,117 @@ export const Records = $root.Records = (() => { } /** - * GetShareObjectsRequest startWith. - * @member {string} startWith - * @memberof Records.GetShareObjectsRequest + * RecordAddAuditData recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.RecordAddAuditData * @instance */ - GetShareObjectsRequest.prototype.startWith = ""; + RecordAddAuditData.prototype.recordUid = $util.newBuffer([]); /** - * GetShareObjectsRequest contains. - * @member {string} contains - * @memberof Records.GetShareObjectsRequest + * RecordAddAuditData revision. + * @member {number|Long} revision + * @memberof Records.RecordAddAuditData * @instance */ - GetShareObjectsRequest.prototype.contains = ""; + RecordAddAuditData.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * GetShareObjectsRequest filtered. - * @member {boolean} filtered - * @memberof Records.GetShareObjectsRequest + * RecordAddAuditData data. + * @member {Uint8Array} data + * @memberof Records.RecordAddAuditData * @instance */ - GetShareObjectsRequest.prototype.filtered = false; + RecordAddAuditData.prototype.data = $util.newBuffer([]); /** - * GetShareObjectsRequest sharedFolderUid. - * @member {Uint8Array} sharedFolderUid - * @memberof Records.GetShareObjectsRequest + * RecordAddAuditData version. + * @member {number} version + * @memberof Records.RecordAddAuditData * @instance */ - GetShareObjectsRequest.prototype.sharedFolderUid = $util.newBuffer([]); + RecordAddAuditData.prototype.version = 0; /** - * Creates a new GetShareObjectsRequest instance using the specified properties. + * Creates a new RecordAddAuditData instance using the specified properties. * @function create - * @memberof Records.GetShareObjectsRequest + * @memberof Records.RecordAddAuditData * @static - * @param {Records.IGetShareObjectsRequest=} [properties] Properties to set - * @returns {Records.GetShareObjectsRequest} GetShareObjectsRequest instance + * @param {Records.IRecordAddAuditData=} [properties] Properties to set + * @returns {Records.RecordAddAuditData} RecordAddAuditData instance */ - GetShareObjectsRequest.create = function create(properties) { - return new GetShareObjectsRequest(properties); + RecordAddAuditData.create = function create(properties) { + return new RecordAddAuditData(properties); }; /** - * Encodes the specified GetShareObjectsRequest message. Does not implicitly {@link Records.GetShareObjectsRequest.verify|verify} messages. + * Encodes the specified RecordAddAuditData message. Does not implicitly {@link Records.RecordAddAuditData.verify|verify} messages. * @function encode - * @memberof Records.GetShareObjectsRequest + * @memberof Records.RecordAddAuditData * @static - * @param {Records.IGetShareObjectsRequest} message GetShareObjectsRequest message or plain object to encode + * @param {Records.IRecordAddAuditData} message RecordAddAuditData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShareObjectsRequest.encode = function encode(message, writer) { + RecordAddAuditData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startWith != null && Object.hasOwnProperty.call(message, "startWith")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.startWith); - if (message.contains != null && Object.hasOwnProperty.call(message, "contains")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.contains); - if (message.filtered != null && Object.hasOwnProperty.call(message, "filtered")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.filtered); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.sharedFolderUid); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.version); return writer; }; /** - * Encodes the specified GetShareObjectsRequest message, length delimited. Does not implicitly {@link Records.GetShareObjectsRequest.verify|verify} messages. + * Encodes the specified RecordAddAuditData message, length delimited. Does not implicitly {@link Records.RecordAddAuditData.verify|verify} messages. * @function encodeDelimited - * @memberof Records.GetShareObjectsRequest + * @memberof Records.RecordAddAuditData * @static - * @param {Records.IGetShareObjectsRequest} message GetShareObjectsRequest message or plain object to encode + * @param {Records.IRecordAddAuditData} message RecordAddAuditData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShareObjectsRequest.encodeDelimited = function encodeDelimited(message, writer) { + RecordAddAuditData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetShareObjectsRequest message from the specified reader or buffer. + * Decodes a RecordAddAuditData message from the specified reader or buffer. * @function decode - * @memberof Records.GetShareObjectsRequest + * @memberof Records.RecordAddAuditData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.GetShareObjectsRequest} GetShareObjectsRequest + * @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 */ - GetShareObjectsRequest.decode = function decode(reader, length) { + RecordAddAuditData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetShareObjectsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordAddAuditData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.startWith = reader.string(); + message.recordUid = reader.bytes(); break; } case 2: { - message.contains = reader.string(); + message.revision = reader.int64(); break; } case 3: { - message.filtered = reader.bool(); + message.data = reader.bytes(); break; } case 4: { - message.sharedFolderUid = reader.bytes(); + message.version = reader.int32(); break; } default: @@ -189037,169 +190418,180 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a GetShareObjectsRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordAddAuditData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.GetShareObjectsRequest + * @memberof Records.RecordAddAuditData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.GetShareObjectsRequest} GetShareObjectsRequest + * @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 */ - GetShareObjectsRequest.decodeDelimited = function decodeDelimited(reader) { + RecordAddAuditData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetShareObjectsRequest message. + * Verifies a RecordAddAuditData message. * @function verify - * @memberof Records.GetShareObjectsRequest + * @memberof Records.RecordAddAuditData * @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) { + RecordAddAuditData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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 GetShareObjectsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordAddAuditData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.GetShareObjectsRequest + * @memberof Records.RecordAddAuditData * @static * @param {Object.} object Plain object - * @returns {Records.GetShareObjectsRequest} GetShareObjectsRequest + * @returns {Records.RecordAddAuditData} RecordAddAuditData */ - GetShareObjectsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.GetShareObjectsRequest) + RecordAddAuditData.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordAddAuditData) return object; - let message = new $root.Records.GetShareObjectsRequest(); - if (object.startWith != null) - message.startWith = String(object.startWith); - if (object.contains != null) - message.contains = String(object.contains); - if (object.filtered != null) - message.filtered = Boolean(object.filtered); - if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + let message = new $root.Records.RecordAddAuditData(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + if (object.version != null) + message.version = object.version | 0; return message; }; /** - * Creates a plain object from a GetShareObjectsRequest message. Also converts values to other types if specified. + * Creates a plain object from a RecordAddAuditData message. Also converts values to other types if specified. * @function toObject - * @memberof Records.GetShareObjectsRequest + * @memberof Records.RecordAddAuditData * @static - * @param {Records.GetShareObjectsRequest} message GetShareObjectsRequest + * @param {Records.RecordAddAuditData} message RecordAddAuditData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetShareObjectsRequest.toObject = function toObject(message, options) { + RecordAddAuditData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.startWith = ""; - object.contains = ""; - object.filtered = false; if (options.bytes === String) - object.sharedFolderUid = ""; + object.recordUid = ""; else { - object.sharedFolderUid = []; + object.recordUid = []; if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + object.recordUid = $util.newBuffer(object.recordUid); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); } + object.version = 0; } - if (message.startWith != null && message.hasOwnProperty("startWith")) - object.startWith = message.startWith; - if (message.contains != null && message.hasOwnProperty("contains")) - object.contains = message.contains; - if (message.filtered != null && message.hasOwnProperty("filtered")) - object.filtered = message.filtered; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.revision != null && message.hasOwnProperty("revision")) + 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")) + 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")) + object.version = message.version; return object; }; /** - * Converts this GetShareObjectsRequest to JSON. + * Converts this RecordAddAuditData to JSON. * @function toJSON - * @memberof Records.GetShareObjectsRequest + * @memberof Records.RecordAddAuditData * @instance * @returns {Object.} JSON object */ - GetShareObjectsRequest.prototype.toJSON = function toJSON() { + RecordAddAuditData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetShareObjectsRequest + * Gets the default type url for RecordAddAuditData * @function getTypeUrl - * @memberof Records.GetShareObjectsRequest + * @memberof Records.RecordAddAuditData * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetShareObjectsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordAddAuditData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.GetShareObjectsRequest"; + return typeUrlPrefix + "/Records.RecordAddAuditData"; }; - return GetShareObjectsRequest; + return RecordAddAuditData; })(); - Records.GetShareObjectsResponse = (function() { + Records.AddAuditDataRequest = (function() { /** - * Properties of a GetShareObjectsResponse. + * Properties of an AddAuditDataRequest. * @memberof Records - * @interface IGetShareObjectsResponse - * @property {Array.|null} [shareRelationships] GetShareObjectsResponse shareRelationships - * @property {Array.|null} [shareFamilyUsers] GetShareObjectsResponse shareFamilyUsers - * @property {Array.|null} [shareEnterpriseUsers] GetShareObjectsResponse shareEnterpriseUsers - * @property {Array.|null} [shareTeams] GetShareObjectsResponse shareTeams - * @property {Array.|null} [shareMCTeams] GetShareObjectsResponse shareMCTeams - * @property {Array.|null} [shareMCEnterpriseUsers] GetShareObjectsResponse shareMCEnterpriseUsers - * @property {Array.|null} [shareEnterpriseNames] GetShareObjectsResponse shareEnterpriseNames + * @interface IAddAuditDataRequest + * @property {Array.|null} [records] AddAuditDataRequest records */ /** - * Constructs a new GetShareObjectsResponse. + * Constructs a new AddAuditDataRequest. * @memberof Records - * @classdesc Represents a GetShareObjectsResponse. - * @implements IGetShareObjectsResponse + * @classdesc Represents an AddAuditDataRequest. + * @implements IAddAuditDataRequest * @constructor - * @param {Records.IGetShareObjectsResponse=} [properties] Properties to set + * @param {Records.IAddAuditDataRequest=} [properties] Properties to set */ - function GetShareObjectsResponse(properties) { - this.shareRelationships = []; - this.shareFamilyUsers = []; - this.shareEnterpriseUsers = []; - this.shareTeams = []; - this.shareMCTeams = []; - this.shareMCEnterpriseUsers = []; - this.shareEnterpriseNames = []; + function AddAuditDataRequest(properties) { + this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -189207,180 +190599,78 @@ export const Records = $root.Records = (() => { } /** - * GetShareObjectsResponse shareRelationships. - * @member {Array.} shareRelationships - * @memberof Records.GetShareObjectsResponse - * @instance - */ - GetShareObjectsResponse.prototype.shareRelationships = $util.emptyArray; - - /** - * GetShareObjectsResponse shareFamilyUsers. - * @member {Array.} shareFamilyUsers - * @memberof Records.GetShareObjectsResponse - * @instance - */ - GetShareObjectsResponse.prototype.shareFamilyUsers = $util.emptyArray; - - /** - * GetShareObjectsResponse shareEnterpriseUsers. - * @member {Array.} shareEnterpriseUsers - * @memberof Records.GetShareObjectsResponse - * @instance - */ - GetShareObjectsResponse.prototype.shareEnterpriseUsers = $util.emptyArray; - - /** - * GetShareObjectsResponse shareTeams. - * @member {Array.} shareTeams - * @memberof Records.GetShareObjectsResponse - * @instance - */ - GetShareObjectsResponse.prototype.shareTeams = $util.emptyArray; - - /** - * GetShareObjectsResponse shareMCTeams. - * @member {Array.} shareMCTeams - * @memberof Records.GetShareObjectsResponse - * @instance - */ - GetShareObjectsResponse.prototype.shareMCTeams = $util.emptyArray; - - /** - * GetShareObjectsResponse shareMCEnterpriseUsers. - * @member {Array.} shareMCEnterpriseUsers - * @memberof Records.GetShareObjectsResponse - * @instance - */ - GetShareObjectsResponse.prototype.shareMCEnterpriseUsers = $util.emptyArray; - - /** - * GetShareObjectsResponse shareEnterpriseNames. - * @member {Array.} shareEnterpriseNames - * @memberof Records.GetShareObjectsResponse + * AddAuditDataRequest records. + * @member {Array.} records + * @memberof Records.AddAuditDataRequest * @instance */ - GetShareObjectsResponse.prototype.shareEnterpriseNames = $util.emptyArray; + AddAuditDataRequest.prototype.records = $util.emptyArray; /** - * Creates a new GetShareObjectsResponse instance using the specified properties. + * Creates a new AddAuditDataRequest instance using the specified properties. * @function create - * @memberof Records.GetShareObjectsResponse + * @memberof Records.AddAuditDataRequest * @static - * @param {Records.IGetShareObjectsResponse=} [properties] Properties to set - * @returns {Records.GetShareObjectsResponse} GetShareObjectsResponse instance + * @param {Records.IAddAuditDataRequest=} [properties] Properties to set + * @returns {Records.AddAuditDataRequest} AddAuditDataRequest instance */ - GetShareObjectsResponse.create = function create(properties) { - return new GetShareObjectsResponse(properties); + AddAuditDataRequest.create = function create(properties) { + return new AddAuditDataRequest(properties); }; /** - * Encodes the specified GetShareObjectsResponse message. Does not implicitly {@link Records.GetShareObjectsResponse.verify|verify} messages. + * Encodes the specified AddAuditDataRequest message. Does not implicitly {@link Records.AddAuditDataRequest.verify|verify} messages. * @function encode - * @memberof Records.GetShareObjectsResponse + * @memberof Records.AddAuditDataRequest * @static - * @param {Records.IGetShareObjectsResponse} message GetShareObjectsResponse message or plain object to encode + * @param {Records.IAddAuditDataRequest} message AddAuditDataRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShareObjectsResponse.encode = function encode(message, writer) { + AddAuditDataRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.shareRelationships != null && message.shareRelationships.length) - for (let i = 0; i < message.shareRelationships.length; ++i) - $root.Records.ShareUser.encode(message.shareRelationships[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.shareFamilyUsers != null && message.shareFamilyUsers.length) - for (let i = 0; i < message.shareFamilyUsers.length; ++i) - $root.Records.ShareUser.encode(message.shareFamilyUsers[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.shareEnterpriseUsers != null && message.shareEnterpriseUsers.length) - for (let i = 0; i < message.shareEnterpriseUsers.length; ++i) - $root.Records.ShareUser.encode(message.shareEnterpriseUsers[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.shareTeams != null && message.shareTeams.length) - for (let i = 0; i < message.shareTeams.length; ++i) - $root.Records.ShareTeam.encode(message.shareTeams[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.shareMCTeams != null && message.shareMCTeams.length) - for (let i = 0; i < message.shareMCTeams.length; ++i) - $root.Records.ShareTeam.encode(message.shareMCTeams[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.shareMCEnterpriseUsers != null && message.shareMCEnterpriseUsers.length) - for (let i = 0; i < message.shareMCEnterpriseUsers.length; ++i) - $root.Records.ShareUser.encode(message.shareMCEnterpriseUsers[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.shareEnterpriseNames != null && message.shareEnterpriseNames.length) - for (let i = 0; i < message.shareEnterpriseNames.length; ++i) - $root.Records.ShareEnterprise.encode(message.shareEnterpriseNames[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.records != null && message.records.length) + for (let i = 0; i < message.records.length; ++i) + $root.Records.RecordAddAuditData.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetShareObjectsResponse message, length delimited. Does not implicitly {@link Records.GetShareObjectsResponse.verify|verify} messages. + * Encodes the specified AddAuditDataRequest message, length delimited. Does not implicitly {@link Records.AddAuditDataRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Records.GetShareObjectsResponse + * @memberof Records.AddAuditDataRequest * @static - * @param {Records.IGetShareObjectsResponse} message GetShareObjectsResponse message or plain object to encode + * @param {Records.IAddAuditDataRequest} message AddAuditDataRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShareObjectsResponse.encodeDelimited = function encodeDelimited(message, writer) { + AddAuditDataRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetShareObjectsResponse message from the specified reader or buffer. + * Decodes an AddAuditDataRequest message from the specified reader or buffer. * @function decode - * @memberof Records.GetShareObjectsResponse + * @memberof Records.AddAuditDataRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.GetShareObjectsResponse} GetShareObjectsResponse + * @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 */ - GetShareObjectsResponse.decode = function decode(reader, length) { + AddAuditDataRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetShareObjectsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.AddAuditDataRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.shareRelationships && message.shareRelationships.length)) - message.shareRelationships = []; - message.shareRelationships.push($root.Records.ShareUser.decode(reader, reader.uint32())); - break; - } - case 2: { - if (!(message.shareFamilyUsers && message.shareFamilyUsers.length)) - message.shareFamilyUsers = []; - message.shareFamilyUsers.push($root.Records.ShareUser.decode(reader, reader.uint32())); - break; - } - case 3: { - if (!(message.shareEnterpriseUsers && message.shareEnterpriseUsers.length)) - message.shareEnterpriseUsers = []; - message.shareEnterpriseUsers.push($root.Records.ShareUser.decode(reader, reader.uint32())); - break; - } - case 4: { - if (!(message.shareTeams && message.shareTeams.length)) - message.shareTeams = []; - message.shareTeams.push($root.Records.ShareTeam.decode(reader, reader.uint32())); - break; - } - case 5: { - if (!(message.shareMCTeams && message.shareMCTeams.length)) - message.shareMCTeams = []; - message.shareMCTeams.push($root.Records.ShareTeam.decode(reader, reader.uint32())); - break; - } - case 6: { - if (!(message.shareMCEnterpriseUsers && message.shareMCEnterpriseUsers.length)) - message.shareMCEnterpriseUsers = []; - message.shareMCEnterpriseUsers.push($root.Records.ShareUser.decode(reader, reader.uint32())); - break; - } - case 7: { - if (!(message.shareEnterpriseNames && message.shareEnterpriseNames.length)) - message.shareEnterpriseNames = []; - message.shareEnterpriseNames.push($root.Records.ShareEnterprise.decode(reader, reader.uint32())); + if (!(message.records && message.records.length)) + message.records = []; + message.records.push($root.Records.RecordAddAuditData.decode(reader, reader.uint32())); break; } default: @@ -189392,295 +190682,144 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a GetShareObjectsResponse message from the specified reader or buffer, length delimited. + * Decodes an AddAuditDataRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.GetShareObjectsResponse + * @memberof Records.AddAuditDataRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.GetShareObjectsResponse} GetShareObjectsResponse + * @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 */ - GetShareObjectsResponse.decodeDelimited = function decodeDelimited(reader) { + AddAuditDataRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetShareObjectsResponse message. + * Verifies an AddAuditDataRequest message. * @function verify - * @memberof Records.GetShareObjectsResponse + * @memberof Records.AddAuditDataRequest * @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) { + AddAuditDataRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - 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]); - 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]); - 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]); - 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]); - 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]); - 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]); + 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]); if (error) - return "shareEnterpriseNames." + error; + return "records." + error; } } return null; }; /** - * Creates a GetShareObjectsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AddAuditDataRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.GetShareObjectsResponse + * @memberof Records.AddAuditDataRequest * @static * @param {Object.} object Plain object - * @returns {Records.GetShareObjectsResponse} GetShareObjectsResponse + * @returns {Records.AddAuditDataRequest} AddAuditDataRequest */ - GetShareObjectsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.GetShareObjectsResponse) + AddAuditDataRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Records.AddAuditDataRequest) return object; - let message = new $root.Records.GetShareObjectsResponse(); - if (object.shareRelationships) { - if (!Array.isArray(object.shareRelationships)) - throw TypeError(".Records.GetShareObjectsResponse.shareRelationships: array expected"); - message.shareRelationships = []; - for (let i = 0; i < object.shareRelationships.length; ++i) { - if (typeof object.shareRelationships[i] !== "object") - throw TypeError(".Records.GetShareObjectsResponse.shareRelationships: object expected"); - message.shareRelationships[i] = $root.Records.ShareUser.fromObject(object.shareRelationships[i]); - } - } - if (object.shareFamilyUsers) { - if (!Array.isArray(object.shareFamilyUsers)) - throw TypeError(".Records.GetShareObjectsResponse.shareFamilyUsers: array expected"); - message.shareFamilyUsers = []; - for (let i = 0; i < object.shareFamilyUsers.length; ++i) { - if (typeof object.shareFamilyUsers[i] !== "object") - throw TypeError(".Records.GetShareObjectsResponse.shareFamilyUsers: object expected"); - message.shareFamilyUsers[i] = $root.Records.ShareUser.fromObject(object.shareFamilyUsers[i]); - } - } - if (object.shareEnterpriseUsers) { - if (!Array.isArray(object.shareEnterpriseUsers)) - throw TypeError(".Records.GetShareObjectsResponse.shareEnterpriseUsers: array expected"); - message.shareEnterpriseUsers = []; - for (let i = 0; i < object.shareEnterpriseUsers.length; ++i) { - if (typeof object.shareEnterpriseUsers[i] !== "object") - throw TypeError(".Records.GetShareObjectsResponse.shareEnterpriseUsers: object expected"); - message.shareEnterpriseUsers[i] = $root.Records.ShareUser.fromObject(object.shareEnterpriseUsers[i]); - } - } - if (object.shareTeams) { - if (!Array.isArray(object.shareTeams)) - throw TypeError(".Records.GetShareObjectsResponse.shareTeams: array expected"); - message.shareTeams = []; - for (let i = 0; i < object.shareTeams.length; ++i) { - if (typeof object.shareTeams[i] !== "object") - throw TypeError(".Records.GetShareObjectsResponse.shareTeams: object expected"); - message.shareTeams[i] = $root.Records.ShareTeam.fromObject(object.shareTeams[i]); - } - } - if (object.shareMCTeams) { - if (!Array.isArray(object.shareMCTeams)) - throw TypeError(".Records.GetShareObjectsResponse.shareMCTeams: array expected"); - message.shareMCTeams = []; - for (let i = 0; i < object.shareMCTeams.length; ++i) { - if (typeof object.shareMCTeams[i] !== "object") - throw TypeError(".Records.GetShareObjectsResponse.shareMCTeams: object expected"); - message.shareMCTeams[i] = $root.Records.ShareTeam.fromObject(object.shareMCTeams[i]); - } - } - if (object.shareMCEnterpriseUsers) { - if (!Array.isArray(object.shareMCEnterpriseUsers)) - throw TypeError(".Records.GetShareObjectsResponse.shareMCEnterpriseUsers: array expected"); - message.shareMCEnterpriseUsers = []; - for (let i = 0; i < object.shareMCEnterpriseUsers.length; ++i) { - if (typeof object.shareMCEnterpriseUsers[i] !== "object") - throw TypeError(".Records.GetShareObjectsResponse.shareMCEnterpriseUsers: object expected"); - message.shareMCEnterpriseUsers[i] = $root.Records.ShareUser.fromObject(object.shareMCEnterpriseUsers[i]); - } - } - if (object.shareEnterpriseNames) { - if (!Array.isArray(object.shareEnterpriseNames)) - throw TypeError(".Records.GetShareObjectsResponse.shareEnterpriseNames: array expected"); - message.shareEnterpriseNames = []; - for (let i = 0; i < object.shareEnterpriseNames.length; ++i) { - if (typeof object.shareEnterpriseNames[i] !== "object") - throw TypeError(".Records.GetShareObjectsResponse.shareEnterpriseNames: object expected"); - message.shareEnterpriseNames[i] = $root.Records.ShareEnterprise.fromObject(object.shareEnterpriseNames[i]); + let message = new $root.Records.AddAuditDataRequest(); + if (object.records) { + if (!Array.isArray(object.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") + throw TypeError(".Records.AddAuditDataRequest.records: object expected"); + message.records[i] = $root.Records.RecordAddAuditData.fromObject(object.records[i]); } } return message; }; /** - * Creates a plain object from a GetShareObjectsResponse message. Also converts values to other types if specified. + * Creates a plain object from an AddAuditDataRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Records.GetShareObjectsResponse + * @memberof Records.AddAuditDataRequest * @static - * @param {Records.GetShareObjectsResponse} message GetShareObjectsResponse + * @param {Records.AddAuditDataRequest} message AddAuditDataRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetShareObjectsResponse.toObject = function toObject(message, options) { + AddAuditDataRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.shareRelationships = []; - object.shareFamilyUsers = []; - object.shareEnterpriseUsers = []; - object.shareTeams = []; - object.shareMCTeams = []; - object.shareMCEnterpriseUsers = []; - object.shareEnterpriseNames = []; - } - if (message.shareRelationships && message.shareRelationships.length) { - object.shareRelationships = []; - for (let j = 0; j < message.shareRelationships.length; ++j) - object.shareRelationships[j] = $root.Records.ShareUser.toObject(message.shareRelationships[j], options); - } - if (message.shareFamilyUsers && message.shareFamilyUsers.length) { - object.shareFamilyUsers = []; - for (let j = 0; j < message.shareFamilyUsers.length; ++j) - object.shareFamilyUsers[j] = $root.Records.ShareUser.toObject(message.shareFamilyUsers[j], options); - } - if (message.shareEnterpriseUsers && message.shareEnterpriseUsers.length) { - object.shareEnterpriseUsers = []; - for (let j = 0; j < message.shareEnterpriseUsers.length; ++j) - object.shareEnterpriseUsers[j] = $root.Records.ShareUser.toObject(message.shareEnterpriseUsers[j], options); - } - if (message.shareTeams && message.shareTeams.length) { - object.shareTeams = []; - for (let j = 0; j < message.shareTeams.length; ++j) - object.shareTeams[j] = $root.Records.ShareTeam.toObject(message.shareTeams[j], options); - } - if (message.shareMCTeams && message.shareMCTeams.length) { - object.shareMCTeams = []; - for (let j = 0; j < message.shareMCTeams.length; ++j) - object.shareMCTeams[j] = $root.Records.ShareTeam.toObject(message.shareMCTeams[j], options); - } - if (message.shareMCEnterpriseUsers && message.shareMCEnterpriseUsers.length) { - object.shareMCEnterpriseUsers = []; - for (let j = 0; j < message.shareMCEnterpriseUsers.length; ++j) - object.shareMCEnterpriseUsers[j] = $root.Records.ShareUser.toObject(message.shareMCEnterpriseUsers[j], options); - } - if (message.shareEnterpriseNames && message.shareEnterpriseNames.length) { - object.shareEnterpriseNames = []; - for (let j = 0; j < message.shareEnterpriseNames.length; ++j) - object.shareEnterpriseNames[j] = $root.Records.ShareEnterprise.toObject(message.shareEnterpriseNames[j], options); + if (options.arrays || options.defaults) + object.records = []; + if (message.records && message.records.length) { + object.records = []; + for (let j = 0; j < message.records.length; ++j) + object.records[j] = $root.Records.RecordAddAuditData.toObject(message.records[j], options); } return object; }; /** - * Converts this GetShareObjectsResponse to JSON. + * Converts this AddAuditDataRequest to JSON. * @function toJSON - * @memberof Records.GetShareObjectsResponse + * @memberof Records.AddAuditDataRequest * @instance * @returns {Object.} JSON object */ - GetShareObjectsResponse.prototype.toJSON = function toJSON() { + AddAuditDataRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetShareObjectsResponse + * Gets the default type url for AddAuditDataRequest * @function getTypeUrl - * @memberof Records.GetShareObjectsResponse + * @memberof Records.AddAuditDataRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetShareObjectsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AddAuditDataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.GetShareObjectsResponse"; + return typeUrlPrefix + "/Records.AddAuditDataRequest"; }; - return GetShareObjectsResponse; + return AddAuditDataRequest; })(); - Records.ShareUser = (function() { + Records.File = (function() { /** - * Properties of a ShareUser. + * Properties of a File. * @memberof Records - * @interface IShareUser - * @property {string|null} [username] ShareUser username - * @property {string|null} [fullname] ShareUser fullname - * @property {number|null} [enterpriseId] ShareUser enterpriseId - * @property {Records.ShareStatus|null} [status] ShareUser status - * @property {boolean|null} [isShareAdmin] ShareUser isShareAdmin - * @property {boolean|null} [isAdminOfSharedFolderOwner] ShareUser isAdminOfSharedFolderOwner + * @interface IFile + * @property {Uint8Array|null} [recordUid] File recordUid + * @property {Uint8Array|null} [recordKey] File recordKey + * @property {Uint8Array|null} [data] File data + * @property {number|Long|null} [fileSize] File fileSize + * @property {number|null} [thumbSize] File thumbSize + * @property {boolean|null} [isScript] File isScript */ /** - * Constructs a new ShareUser. + * Constructs a new File. * @memberof Records - * @classdesc Represents a ShareUser. - * @implements IShareUser + * @classdesc Represents a File. + * @implements IFile * @constructor - * @param {Records.IShareUser=} [properties] Properties to set + * @param {Records.IFile=} [properties] Properties to set */ - function ShareUser(properties) { + function File(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -189688,145 +190827,145 @@ export const Records = $root.Records = (() => { } /** - * ShareUser username. - * @member {string} username - * @memberof Records.ShareUser + * File recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.File * @instance */ - ShareUser.prototype.username = ""; + File.prototype.recordUid = $util.newBuffer([]); /** - * ShareUser fullname. - * @member {string} fullname - * @memberof Records.ShareUser + * File recordKey. + * @member {Uint8Array} recordKey + * @memberof Records.File * @instance */ - ShareUser.prototype.fullname = ""; + File.prototype.recordKey = $util.newBuffer([]); /** - * ShareUser enterpriseId. - * @member {number} enterpriseId - * @memberof Records.ShareUser + * File data. + * @member {Uint8Array} data + * @memberof Records.File * @instance */ - ShareUser.prototype.enterpriseId = 0; + File.prototype.data = $util.newBuffer([]); /** - * ShareUser status. - * @member {Records.ShareStatus} status - * @memberof Records.ShareUser + * File fileSize. + * @member {number|Long} fileSize + * @memberof Records.File * @instance */ - ShareUser.prototype.status = 0; + File.prototype.fileSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ShareUser isShareAdmin. - * @member {boolean} isShareAdmin - * @memberof Records.ShareUser + * File thumbSize. + * @member {number} thumbSize + * @memberof Records.File * @instance */ - ShareUser.prototype.isShareAdmin = false; + File.prototype.thumbSize = 0; /** - * ShareUser isAdminOfSharedFolderOwner. - * @member {boolean} isAdminOfSharedFolderOwner - * @memberof Records.ShareUser + * File isScript. + * @member {boolean} isScript + * @memberof Records.File * @instance */ - ShareUser.prototype.isAdminOfSharedFolderOwner = false; + File.prototype.isScript = false; /** - * Creates a new ShareUser instance using the specified properties. + * Creates a new File instance using the specified properties. * @function create - * @memberof Records.ShareUser + * @memberof Records.File * @static - * @param {Records.IShareUser=} [properties] Properties to set - * @returns {Records.ShareUser} ShareUser instance + * @param {Records.IFile=} [properties] Properties to set + * @returns {Records.File} File instance */ - ShareUser.create = function create(properties) { - return new ShareUser(properties); + File.create = function create(properties) { + return new File(properties); }; /** - * Encodes the specified ShareUser message. Does not implicitly {@link Records.ShareUser.verify|verify} messages. + * Encodes the specified File message. Does not implicitly {@link Records.File.verify|verify} messages. * @function encode - * @memberof Records.ShareUser + * @memberof Records.File * @static - * @param {Records.IShareUser} message ShareUser message or plain object to encode + * @param {Records.IFile} message File message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShareUser.encode = function encode(message, writer) { + File.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.fullname != null && Object.hasOwnProperty.call(message, "fullname")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.fullname); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.enterpriseId); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status); - if (message.isShareAdmin != null && Object.hasOwnProperty.call(message, "isShareAdmin")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isShareAdmin); - if (message.isAdminOfSharedFolderOwner != null && Object.hasOwnProperty.call(message, "isAdminOfSharedFolderOwner")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isAdminOfSharedFolderOwner); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordKey); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); + if (message.fileSize != null && Object.hasOwnProperty.call(message, "fileSize")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.fileSize); + if (message.thumbSize != null && Object.hasOwnProperty.call(message, "thumbSize")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.thumbSize); + if (message.isScript != null && Object.hasOwnProperty.call(message, "isScript")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isScript); return writer; }; /** - * Encodes the specified ShareUser message, length delimited. Does not implicitly {@link Records.ShareUser.verify|verify} messages. + * Encodes the specified File message, length delimited. Does not implicitly {@link Records.File.verify|verify} messages. * @function encodeDelimited - * @memberof Records.ShareUser + * @memberof Records.File * @static - * @param {Records.IShareUser} message ShareUser message or plain object to encode + * @param {Records.IFile} message File message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShareUser.encodeDelimited = function encodeDelimited(message, writer) { + File.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShareUser message from the specified reader or buffer. + * Decodes a File message from the specified reader or buffer. * @function decode - * @memberof Records.ShareUser + * @memberof Records.File * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.ShareUser} ShareUser + * @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 */ - ShareUser.decode = function decode(reader, length) { + File.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.ShareUser(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.File(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.username = reader.string(); + message.recordUid = reader.bytes(); break; } case 2: { - message.fullname = reader.string(); + message.recordKey = reader.bytes(); break; } case 3: { - message.enterpriseId = reader.int32(); + message.data = reader.bytes(); break; } case 4: { - message.status = reader.int32(); + message.fileSize = reader.int64(); break; } case 5: { - message.isShareAdmin = reader.bool(); + message.thumbSize = reader.int32(); break; } case 6: { - message.isAdminOfSharedFolderOwner = reader.bool(); + message.isScript = reader.bool(); break; } default: @@ -189838,189 +190977,206 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a ShareUser message from the specified reader or buffer, length delimited. + * Decodes a File message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.ShareUser + * @memberof Records.File * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.ShareUser} ShareUser + * @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 */ - ShareUser.decodeDelimited = function decodeDelimited(reader) { + File.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShareUser message. + * Verifies a File message. * @function verify - * @memberof Records.ShareUser + * @memberof Records.File * @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) { + File.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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.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 ShareUser message from a plain object. Also converts values to their respective internal types. + * Creates a File message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.ShareUser + * @memberof Records.File * @static * @param {Object.} object Plain object - * @returns {Records.ShareUser} ShareUser + * @returns {Records.File} File */ - ShareUser.fromObject = function fromObject(object) { - if (object instanceof $root.Records.ShareUser) + File.fromObject = function fromObject(object) { + if (object instanceof $root.Records.File) return object; - let message = new $root.Records.ShareUser(); - if (object.username != null) - message.username = String(object.username); - if (object.fullname != null) - message.fullname = String(object.fullname); - if (object.enterpriseId != null) - message.enterpriseId = object.enterpriseId | 0; - switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; - } - break; - case "ACTIVE": - case 0: - message.status = 0; - break; - case "BLOCK": - case 1: - message.status = 1; - break; - case "INVITED": - case 2: - message.status = 2; - break; - } - if (object.isShareAdmin != null) - message.isShareAdmin = Boolean(object.isShareAdmin); - if (object.isAdminOfSharedFolderOwner != null) - message.isAdminOfSharedFolderOwner = Boolean(object.isAdminOfSharedFolderOwner); + let message = new $root.Records.File(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.recordKey != null) + if (typeof object.recordKey === "string") + $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); + else if (object.recordKey.length >= 0) + message.recordKey = object.recordKey; + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + if (object.fileSize != null) + if ($util.Long) + (message.fileSize = $util.Long.fromValue(object.fileSize)).unsigned = false; + else if (typeof object.fileSize === "string") + message.fileSize = parseInt(object.fileSize, 10); + else if (typeof object.fileSize === "number") + message.fileSize = object.fileSize; + else if (typeof object.fileSize === "object") + message.fileSize = new $util.LongBits(object.fileSize.low >>> 0, object.fileSize.high >>> 0).toNumber(); + if (object.thumbSize != null) + message.thumbSize = object.thumbSize | 0; + if (object.isScript != null) + message.isScript = Boolean(object.isScript); return message; }; /** - * Creates a plain object from a ShareUser message. Also converts values to other types if specified. + * Creates a plain object from a File message. Also converts values to other types if specified. * @function toObject - * @memberof Records.ShareUser + * @memberof Records.File * @static - * @param {Records.ShareUser} message ShareUser + * @param {Records.File} message File * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShareUser.toObject = function toObject(message, options) { + File.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.username = ""; - object.fullname = ""; - object.enterpriseId = 0; - object.status = options.enums === String ? "ACTIVE" : 0; - object.isShareAdmin = false; - object.isAdminOfSharedFolderOwner = false; + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if (options.bytes === String) + object.recordKey = ""; + else { + object.recordKey = []; + if (options.bytes !== Array) + object.recordKey = $util.newBuffer(object.recordKey); + } + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.fileSize = options.longs === String ? "0" : 0; + object.thumbSize = 0; + object.isScript = false; } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.fullname != null && message.hasOwnProperty("fullname")) - object.fullname = message.fullname; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - object.enterpriseId = message.enterpriseId; - if (message.status != null && message.hasOwnProperty("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")) - object.isShareAdmin = message.isShareAdmin; - if (message.isAdminOfSharedFolderOwner != null && message.hasOwnProperty("isAdminOfSharedFolderOwner")) - object.isAdminOfSharedFolderOwner = message.isAdminOfSharedFolderOwner; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.recordKey != null && message.hasOwnProperty("recordKey")) + object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.fileSize != null && message.hasOwnProperty("fileSize")) + if (typeof 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")) + object.thumbSize = message.thumbSize; + if (message.isScript != null && message.hasOwnProperty("isScript")) + object.isScript = message.isScript; return object; }; /** - * Converts this ShareUser to JSON. + * Converts this File to JSON. * @function toJSON - * @memberof Records.ShareUser + * @memberof Records.File * @instance * @returns {Object.} JSON object */ - ShareUser.prototype.toJSON = function toJSON() { + File.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShareUser + * Gets the default type url for File * @function getTypeUrl - * @memberof Records.ShareUser + * @memberof Records.File * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShareUser.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + File.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.ShareUser"; + return typeUrlPrefix + "/Records.File"; }; - return ShareUser; + return File; })(); - Records.ShareTeam = (function() { + Records.FilesAddRequest = (function() { /** - * Properties of a ShareTeam. + * Properties of a FilesAddRequest. * @memberof Records - * @interface IShareTeam - * @property {string|null} [teamname] ShareTeam teamname - * @property {number|null} [enterpriseId] ShareTeam enterpriseId - * @property {Uint8Array|null} [teamUid] ShareTeam teamUid + * @interface IFilesAddRequest + * @property {Array.|null} [files] FilesAddRequest files + * @property {number|Long|null} [clientTime] FilesAddRequest clientTime */ /** - * Constructs a new ShareTeam. + * Constructs a new FilesAddRequest. * @memberof Records - * @classdesc Represents a ShareTeam. - * @implements IShareTeam + * @classdesc Represents a FilesAddRequest. + * @implements IFilesAddRequest * @constructor - * @param {Records.IShareTeam=} [properties] Properties to set + * @param {Records.IFilesAddRequest=} [properties] Properties to set */ - function ShareTeam(properties) { + function FilesAddRequest(properties) { + this.files = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -190028,103 +191184,92 @@ export const Records = $root.Records = (() => { } /** - * ShareTeam teamname. - * @member {string} teamname - * @memberof Records.ShareTeam - * @instance - */ - ShareTeam.prototype.teamname = ""; - - /** - * ShareTeam enterpriseId. - * @member {number} enterpriseId - * @memberof Records.ShareTeam + * FilesAddRequest files. + * @member {Array.} files + * @memberof Records.FilesAddRequest * @instance */ - ShareTeam.prototype.enterpriseId = 0; + FilesAddRequest.prototype.files = $util.emptyArray; /** - * ShareTeam teamUid. - * @member {Uint8Array} teamUid - * @memberof Records.ShareTeam + * FilesAddRequest clientTime. + * @member {number|Long} clientTime + * @memberof Records.FilesAddRequest * @instance */ - ShareTeam.prototype.teamUid = $util.newBuffer([]); + FilesAddRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new ShareTeam instance using the specified properties. + * Creates a new FilesAddRequest instance using the specified properties. * @function create - * @memberof Records.ShareTeam + * @memberof Records.FilesAddRequest * @static - * @param {Records.IShareTeam=} [properties] Properties to set - * @returns {Records.ShareTeam} ShareTeam instance + * @param {Records.IFilesAddRequest=} [properties] Properties to set + * @returns {Records.FilesAddRequest} FilesAddRequest instance */ - ShareTeam.create = function create(properties) { - return new ShareTeam(properties); + FilesAddRequest.create = function create(properties) { + return new FilesAddRequest(properties); }; /** - * Encodes the specified ShareTeam message. Does not implicitly {@link Records.ShareTeam.verify|verify} messages. + * Encodes the specified FilesAddRequest message. Does not implicitly {@link Records.FilesAddRequest.verify|verify} messages. * @function encode - * @memberof Records.ShareTeam + * @memberof Records.FilesAddRequest * @static - * @param {Records.IShareTeam} message ShareTeam message or plain object to encode + * @param {Records.IFilesAddRequest} message FilesAddRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShareTeam.encode = function encode(message, writer) { + FilesAddRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.teamname != null && Object.hasOwnProperty.call(message, "teamname")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.teamname); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enterpriseId); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.teamUid); + if (message.files != null && message.files.length) + for (let i = 0; i < message.files.length; ++i) + $root.Records.File.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); return writer; }; /** - * Encodes the specified ShareTeam message, length delimited. Does not implicitly {@link Records.ShareTeam.verify|verify} messages. + * Encodes the specified FilesAddRequest message, length delimited. Does not implicitly {@link Records.FilesAddRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Records.ShareTeam + * @memberof Records.FilesAddRequest * @static - * @param {Records.IShareTeam} message ShareTeam message or plain object to encode + * @param {Records.IFilesAddRequest} message FilesAddRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShareTeam.encodeDelimited = function encodeDelimited(message, writer) { + FilesAddRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShareTeam message from the specified reader or buffer. + * Decodes a FilesAddRequest message from the specified reader or buffer. * @function decode - * @memberof Records.ShareTeam + * @memberof Records.FilesAddRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.ShareTeam} ShareTeam + * @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 */ - ShareTeam.decode = function decode(reader, length) { + FilesAddRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.ShareTeam(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FilesAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.teamname = reader.string(); + if (!(message.files && message.files.length)) + message.files = []; + message.files.push($root.Records.File.decode(reader, reader.uint32())); break; } case 2: { - message.enterpriseId = reader.int32(); - break; - } - case 3: { - message.teamUid = reader.bytes(); + message.clientTime = reader.int64(); break; } default: @@ -190136,149 +191281,181 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a ShareTeam message from the specified reader or buffer, length delimited. + * Decodes a FilesAddRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.ShareTeam + * @memberof Records.FilesAddRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.ShareTeam} ShareTeam + * @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 */ - ShareTeam.decodeDelimited = function decodeDelimited(reader) { + FilesAddRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShareTeam message. + * Verifies a FilesAddRequest message. * @function verify - * @memberof Records.ShareTeam + * @memberof Records.FilesAddRequest * @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) { + FilesAddRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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]); + 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 ShareTeam message from a plain object. Also converts values to their respective internal types. + * Creates a FilesAddRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.ShareTeam + * @memberof Records.FilesAddRequest * @static * @param {Object.} object Plain object - * @returns {Records.ShareTeam} ShareTeam + * @returns {Records.FilesAddRequest} FilesAddRequest */ - ShareTeam.fromObject = function fromObject(object) { - if (object instanceof $root.Records.ShareTeam) + FilesAddRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Records.FilesAddRequest) return object; - let message = new $root.Records.ShareTeam(); - if (object.teamname != null) - message.teamname = String(object.teamname); - if (object.enterpriseId != null) - message.enterpriseId = object.enterpriseId | 0; - if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; + let message = new $root.Records.FilesAddRequest(); + if (object.files) { + if (!Array.isArray(object.files)) + throw TypeError(".Records.FilesAddRequest.files: array expected"); + message.files = []; + for (let i = 0; i < object.files.length; ++i) { + if (typeof object.files[i] !== "object") + throw TypeError(".Records.FilesAddRequest.files: object expected"); + message.files[i] = $root.Records.File.fromObject(object.files[i]); + } + } + if (object.clientTime != null) + if ($util.Long) + (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = false; + else if (typeof object.clientTime === "string") + message.clientTime = parseInt(object.clientTime, 10); + else if (typeof object.clientTime === "number") + message.clientTime = object.clientTime; + else if (typeof object.clientTime === "object") + message.clientTime = new $util.LongBits(object.clientTime.low >>> 0, object.clientTime.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a ShareTeam message. Also converts values to other types if specified. + * Creates a plain object from a FilesAddRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Records.ShareTeam + * @memberof Records.FilesAddRequest * @static - * @param {Records.ShareTeam} message ShareTeam + * @param {Records.FilesAddRequest} message FilesAddRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShareTeam.toObject = function toObject(message, options) { + FilesAddRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.teamname = ""; - object.enterpriseId = 0; - if (options.bytes === String) - object.teamUid = ""; - else { - object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); - } + if (options.arrays || options.defaults) + object.files = []; + if (options.defaults) + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.clientTime = options.longs === String ? "0" : 0; + if (message.files && message.files.length) { + object.files = []; + for (let j = 0; j < message.files.length; ++j) + object.files[j] = $root.Records.File.toObject(message.files[j], options); } - if (message.teamname != null && message.hasOwnProperty("teamname")) - object.teamname = message.teamname; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - object.enterpriseId = message.enterpriseId; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; + if (message.clientTime != null && message.hasOwnProperty("clientTime")) + if (typeof message.clientTime === "number") + object.clientTime = options.longs === String ? String(message.clientTime) : message.clientTime; + else + object.clientTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientTime) : options.longs === Number ? new $util.LongBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0).toNumber() : message.clientTime; return object; }; /** - * Converts this ShareTeam to JSON. + * Converts this FilesAddRequest to JSON. * @function toJSON - * @memberof Records.ShareTeam + * @memberof Records.FilesAddRequest * @instance * @returns {Object.} JSON object */ - ShareTeam.prototype.toJSON = function toJSON() { + FilesAddRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShareTeam + * Gets the default type url for FilesAddRequest * @function getTypeUrl - * @memberof Records.ShareTeam + * @memberof Records.FilesAddRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShareTeam.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FilesAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.ShareTeam"; + return typeUrlPrefix + "/Records.FilesAddRequest"; }; - return ShareTeam; + return FilesAddRequest; })(); - Records.ShareEnterprise = (function() { + /** + * FileAddResult enum. + * @name Records.FileAddResult + * @enum {number} + * @property {number} FA_SUCCESS=0 FA_SUCCESS value + * @property {number} FA_ERROR=1 FA_ERROR value + */ + Records.FileAddResult = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FA_SUCCESS"] = 0; + values[valuesById[1] = "FA_ERROR"] = 1; + return values; + })(); + + Records.FileAddStatus = (function() { /** - * Properties of a ShareEnterprise. + * Properties of a FileAddStatus. * @memberof Records - * @interface IShareEnterprise - * @property {string|null} [enterprisename] ShareEnterprise enterprisename - * @property {number|null} [enterpriseId] ShareEnterprise enterpriseId + * @interface IFileAddStatus + * @property {Uint8Array|null} [recordUid] FileAddStatus recordUid + * @property {Records.FileAddResult|null} [status] FileAddStatus status + * @property {string|null} [url] FileAddStatus url + * @property {string|null} [parameters] FileAddStatus parameters + * @property {string|null} [thumbnailParameters] FileAddStatus thumbnailParameters + * @property {number|null} [successStatusCode] FileAddStatus successStatusCode */ /** - * Constructs a new ShareEnterprise. + * Constructs a new FileAddStatus. * @memberof Records - * @classdesc Represents a ShareEnterprise. - * @implements IShareEnterprise + * @classdesc Represents a FileAddStatus. + * @implements IFileAddStatus * @constructor - * @param {Records.IShareEnterprise=} [properties] Properties to set + * @param {Records.IFileAddStatus=} [properties] Properties to set */ - function ShareEnterprise(properties) { + function FileAddStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -190286,89 +191463,145 @@ export const Records = $root.Records = (() => { } /** - * ShareEnterprise enterprisename. - * @member {string} enterprisename - * @memberof Records.ShareEnterprise + * FileAddStatus recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.FileAddStatus * @instance */ - ShareEnterprise.prototype.enterprisename = ""; + FileAddStatus.prototype.recordUid = $util.newBuffer([]); /** - * ShareEnterprise enterpriseId. - * @member {number} enterpriseId - * @memberof Records.ShareEnterprise + * FileAddStatus status. + * @member {Records.FileAddResult} status + * @memberof Records.FileAddStatus * @instance */ - ShareEnterprise.prototype.enterpriseId = 0; + FileAddStatus.prototype.status = 0; /** - * Creates a new ShareEnterprise instance using the specified properties. + * FileAddStatus url. + * @member {string} url + * @memberof Records.FileAddStatus + * @instance + */ + FileAddStatus.prototype.url = ""; + + /** + * FileAddStatus parameters. + * @member {string} parameters + * @memberof Records.FileAddStatus + * @instance + */ + FileAddStatus.prototype.parameters = ""; + + /** + * FileAddStatus thumbnailParameters. + * @member {string} thumbnailParameters + * @memberof Records.FileAddStatus + * @instance + */ + FileAddStatus.prototype.thumbnailParameters = ""; + + /** + * FileAddStatus successStatusCode. + * @member {number} successStatusCode + * @memberof Records.FileAddStatus + * @instance + */ + FileAddStatus.prototype.successStatusCode = 0; + + /** + * Creates a new FileAddStatus instance using the specified properties. * @function create - * @memberof Records.ShareEnterprise + * @memberof Records.FileAddStatus * @static - * @param {Records.IShareEnterprise=} [properties] Properties to set - * @returns {Records.ShareEnterprise} ShareEnterprise instance + * @param {Records.IFileAddStatus=} [properties] Properties to set + * @returns {Records.FileAddStatus} FileAddStatus instance */ - ShareEnterprise.create = function create(properties) { - return new ShareEnterprise(properties); + FileAddStatus.create = function create(properties) { + return new FileAddStatus(properties); }; /** - * Encodes the specified ShareEnterprise message. Does not implicitly {@link Records.ShareEnterprise.verify|verify} messages. + * Encodes the specified FileAddStatus message. Does not implicitly {@link Records.FileAddStatus.verify|verify} messages. * @function encode - * @memberof Records.ShareEnterprise + * @memberof Records.FileAddStatus * @static - * @param {Records.IShareEnterprise} message ShareEnterprise message or plain object to encode + * @param {Records.IFileAddStatus} message FileAddStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShareEnterprise.encode = function encode(message, writer) { + FileAddStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enterprisename != null && Object.hasOwnProperty.call(message, "enterprisename")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.enterprisename); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enterpriseId); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); + if (message.url != null && Object.hasOwnProperty.call(message, "url")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.url); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.parameters); + if (message.thumbnailParameters != null && Object.hasOwnProperty.call(message, "thumbnailParameters")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.thumbnailParameters); + if (message.successStatusCode != null && Object.hasOwnProperty.call(message, "successStatusCode")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.successStatusCode); return writer; }; /** - * Encodes the specified ShareEnterprise message, length delimited. Does not implicitly {@link Records.ShareEnterprise.verify|verify} messages. + * Encodes the specified FileAddStatus message, length delimited. Does not implicitly {@link Records.FileAddStatus.verify|verify} messages. * @function encodeDelimited - * @memberof Records.ShareEnterprise + * @memberof Records.FileAddStatus * @static - * @param {Records.IShareEnterprise} message ShareEnterprise message or plain object to encode + * @param {Records.IFileAddStatus} message FileAddStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShareEnterprise.encodeDelimited = function encodeDelimited(message, writer) { + FileAddStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShareEnterprise message from the specified reader or buffer. + * Decodes a FileAddStatus message from the specified reader or buffer. * @function decode - * @memberof Records.ShareEnterprise + * @memberof Records.FileAddStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.ShareEnterprise} ShareEnterprise + * @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 */ - ShareEnterprise.decode = function decode(reader, length) { + FileAddStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.ShareEnterprise(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FileAddStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.enterprisename = reader.string(); + message.recordUid = reader.bytes(); break; } case 2: { - message.enterpriseId = reader.int32(); + message.status = reader.int32(); + break; + } + case 3: { + message.url = reader.string(); + break; + } + case 4: { + message.parameters = reader.string(); + break; + } + case 5: { + message.thumbnailParameters = reader.string(); + break; + } + case 6: { + message.successStatusCode = reader.int32(); break; } default: @@ -190380,148 +191613,193 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a ShareEnterprise message from the specified reader or buffer, length delimited. + * Decodes a FileAddStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.ShareEnterprise + * @memberof Records.FileAddStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.ShareEnterprise} ShareEnterprise + * @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 */ - ShareEnterprise.decodeDelimited = function decodeDelimited(reader) { + FileAddStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShareEnterprise message. + * Verifies a FileAddStatus message. * @function verify - * @memberof Records.ShareEnterprise + * @memberof Records.FileAddStatus * @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) { + FileAddStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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 ShareEnterprise message from a plain object. Also converts values to their respective internal types. + * Creates a FileAddStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.ShareEnterprise + * @memberof Records.FileAddStatus * @static * @param {Object.} object Plain object - * @returns {Records.ShareEnterprise} ShareEnterprise + * @returns {Records.FileAddStatus} FileAddStatus */ - ShareEnterprise.fromObject = function fromObject(object) { - if (object instanceof $root.Records.ShareEnterprise) + FileAddStatus.fromObject = function fromObject(object) { + if (object instanceof $root.Records.FileAddStatus) return object; - let message = new $root.Records.ShareEnterprise(); - if (object.enterprisename != null) - message.enterprisename = String(object.enterprisename); - if (object.enterpriseId != null) - message.enterpriseId = object.enterpriseId | 0; + let message = new $root.Records.FileAddStatus(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; + case "FA_SUCCESS": + case 0: + message.status = 0; + break; + case "FA_ERROR": + case 1: + message.status = 1; + break; + } + if (object.url != null) + message.url = String(object.url); + if (object.parameters != null) + message.parameters = String(object.parameters); + if (object.thumbnailParameters != null) + message.thumbnailParameters = String(object.thumbnailParameters); + if (object.successStatusCode != null) + message.successStatusCode = object.successStatusCode | 0; return message; }; /** - * Creates a plain object from a ShareEnterprise message. Also converts values to other types if specified. + * Creates a plain object from a FileAddStatus message. Also converts values to other types if specified. * @function toObject - * @memberof Records.ShareEnterprise + * @memberof Records.FileAddStatus * @static - * @param {Records.ShareEnterprise} message ShareEnterprise + * @param {Records.FileAddStatus} message FileAddStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShareEnterprise.toObject = function toObject(message, options) { + FileAddStatus.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.enterprisename = ""; - object.enterpriseId = 0; + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + object.status = options.enums === String ? "FA_SUCCESS" : 0; + object.url = ""; + object.parameters = ""; + object.thumbnailParameters = ""; + object.successStatusCode = 0; } - if (message.enterprisename != null && message.hasOwnProperty("enterprisename")) - object.enterprisename = message.enterprisename; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - object.enterpriseId = message.enterpriseId; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.status != null && message.hasOwnProperty("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")) + object.url = message.url; + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = message.parameters; + if (message.thumbnailParameters != null && message.hasOwnProperty("thumbnailParameters")) + object.thumbnailParameters = message.thumbnailParameters; + if (message.successStatusCode != null && message.hasOwnProperty("successStatusCode")) + object.successStatusCode = message.successStatusCode; return object; }; /** - * Converts this ShareEnterprise to JSON. + * Converts this FileAddStatus to JSON. * @function toJSON - * @memberof Records.ShareEnterprise + * @memberof Records.FileAddStatus * @instance * @returns {Object.} JSON object */ - ShareEnterprise.prototype.toJSON = function toJSON() { + FileAddStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShareEnterprise + * Gets the default type url for FileAddStatus * @function getTypeUrl - * @memberof Records.ShareEnterprise + * @memberof Records.FileAddStatus * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShareEnterprise.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FileAddStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.ShareEnterprise"; + return typeUrlPrefix + "/Records.FileAddStatus"; }; - return ShareEnterprise; - })(); - - /** - * ShareStatus enum. - * @name Records.ShareStatus - * @enum {number} - * @property {number} ACTIVE=0 ACTIVE value - * @property {number} BLOCK=1 BLOCK value - * @property {number} INVITED=2 INVITED value - */ - Records.ShareStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ACTIVE"] = 0; - values[valuesById[1] = "BLOCK"] = 1; - values[valuesById[2] = "INVITED"] = 2; - return values; + return FileAddStatus; })(); - Records.RecordsOnwershipTransferRequest = (function() { + Records.FilesAddResponse = (function() { /** - * Properties of a RecordsOnwershipTransferRequest. + * Properties of a FilesAddResponse. * @memberof Records - * @interface IRecordsOnwershipTransferRequest - * @property {Array.|null} [transferRecords] RecordsOnwershipTransferRequest transferRecords + * @interface IFilesAddResponse + * @property {Array.|null} [files] FilesAddResponse files + * @property {number|Long|null} [revision] FilesAddResponse revision */ /** - * Constructs a new RecordsOnwershipTransferRequest. + * Constructs a new FilesAddResponse. * @memberof Records - * @classdesc Represents a RecordsOnwershipTransferRequest. - * @implements IRecordsOnwershipTransferRequest + * @classdesc Represents a FilesAddResponse. + * @implements IFilesAddResponse * @constructor - * @param {Records.IRecordsOnwershipTransferRequest=} [properties] Properties to set + * @param {Records.IFilesAddResponse=} [properties] Properties to set */ - function RecordsOnwershipTransferRequest(properties) { - this.transferRecords = []; + function FilesAddResponse(properties) { + this.files = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -190529,78 +191807,92 @@ export const Records = $root.Records = (() => { } /** - * RecordsOnwershipTransferRequest transferRecords. - * @member {Array.} transferRecords - * @memberof Records.RecordsOnwershipTransferRequest + * FilesAddResponse files. + * @member {Array.} files + * @memberof Records.FilesAddResponse * @instance */ - RecordsOnwershipTransferRequest.prototype.transferRecords = $util.emptyArray; + FilesAddResponse.prototype.files = $util.emptyArray; /** - * Creates a new RecordsOnwershipTransferRequest instance using the specified properties. + * FilesAddResponse revision. + * @member {number|Long} revision + * @memberof Records.FilesAddResponse + * @instance + */ + FilesAddResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new FilesAddResponse instance using the specified properties. * @function create - * @memberof Records.RecordsOnwershipTransferRequest + * @memberof Records.FilesAddResponse * @static - * @param {Records.IRecordsOnwershipTransferRequest=} [properties] Properties to set - * @returns {Records.RecordsOnwershipTransferRequest} RecordsOnwershipTransferRequest instance + * @param {Records.IFilesAddResponse=} [properties] Properties to set + * @returns {Records.FilesAddResponse} FilesAddResponse instance */ - RecordsOnwershipTransferRequest.create = function create(properties) { - return new RecordsOnwershipTransferRequest(properties); + FilesAddResponse.create = function create(properties) { + return new FilesAddResponse(properties); }; /** - * Encodes the specified RecordsOnwershipTransferRequest message. Does not implicitly {@link Records.RecordsOnwershipTransferRequest.verify|verify} messages. + * Encodes the specified FilesAddResponse message. Does not implicitly {@link Records.FilesAddResponse.verify|verify} messages. * @function encode - * @memberof Records.RecordsOnwershipTransferRequest + * @memberof Records.FilesAddResponse * @static - * @param {Records.IRecordsOnwershipTransferRequest} message RecordsOnwershipTransferRequest message or plain object to encode + * @param {Records.IFilesAddResponse} message FilesAddResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsOnwershipTransferRequest.encode = function encode(message, writer) { + FilesAddResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transferRecords != null && message.transferRecords.length) - for (let i = 0; i < message.transferRecords.length; ++i) - $root.Records.TransferRecord.encode(message.transferRecords[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.files != null && message.files.length) + for (let i = 0; i < message.files.length; ++i) + $root.Records.FileAddStatus.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); return writer; }; /** - * Encodes the specified RecordsOnwershipTransferRequest message, length delimited. Does not implicitly {@link Records.RecordsOnwershipTransferRequest.verify|verify} messages. + * Encodes the specified FilesAddResponse message, length delimited. Does not implicitly {@link Records.FilesAddResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordsOnwershipTransferRequest + * @memberof Records.FilesAddResponse * @static - * @param {Records.IRecordsOnwershipTransferRequest} message RecordsOnwershipTransferRequest message or plain object to encode + * @param {Records.IFilesAddResponse} message FilesAddResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsOnwershipTransferRequest.encodeDelimited = function encodeDelimited(message, writer) { + FilesAddResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordsOnwershipTransferRequest message from the specified reader or buffer. + * Decodes a FilesAddResponse message from the specified reader or buffer. * @function decode - * @memberof Records.RecordsOnwershipTransferRequest + * @memberof Records.FilesAddResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordsOnwershipTransferRequest} RecordsOnwershipTransferRequest + * @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 */ - RecordsOnwershipTransferRequest.decode = function decode(reader, length) { + FilesAddResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsOnwershipTransferRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FilesAddResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.transferRecords && message.transferRecords.length)) - message.transferRecords = []; - message.transferRecords.push($root.Records.TransferRecord.decode(reader, reader.uint32())); + if (!(message.files && message.files.length)) + message.files = []; + message.files.push($root.Records.FileAddStatus.decode(reader, reader.uint32())); + break; + } + case 2: { + message.revision = reader.int64(); break; } default: @@ -190612,142 +191904,165 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordsOnwershipTransferRequest message from the specified reader or buffer, length delimited. + * Decodes a FilesAddResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordsOnwershipTransferRequest + * @memberof Records.FilesAddResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsOnwershipTransferRequest} RecordsOnwershipTransferRequest + * @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 */ - RecordsOnwershipTransferRequest.decodeDelimited = function decodeDelimited(reader) { + FilesAddResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordsOnwershipTransferRequest message. + * Verifies a FilesAddResponse message. * @function verify - * @memberof Records.RecordsOnwershipTransferRequest + * @memberof Records.FilesAddResponse * @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) { + FilesAddResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); + 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]); if (error) - return "transferRecords." + 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 RecordsOnwershipTransferRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FilesAddResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordsOnwershipTransferRequest + * @memberof Records.FilesAddResponse * @static * @param {Object.} object Plain object - * @returns {Records.RecordsOnwershipTransferRequest} RecordsOnwershipTransferRequest + * @returns {Records.FilesAddResponse} FilesAddResponse */ - RecordsOnwershipTransferRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsOnwershipTransferRequest) + FilesAddResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Records.FilesAddResponse) return object; - let message = new $root.Records.RecordsOnwershipTransferRequest(); - if (object.transferRecords) { - if (!Array.isArray(object.transferRecords)) - throw TypeError(".Records.RecordsOnwershipTransferRequest.transferRecords: array expected"); - message.transferRecords = []; - for (let i = 0; i < object.transferRecords.length; ++i) { - if (typeof object.transferRecords[i] !== "object") - throw TypeError(".Records.RecordsOnwershipTransferRequest.transferRecords: object expected"); - message.transferRecords[i] = $root.Records.TransferRecord.fromObject(object.transferRecords[i]); - } - } - return message; - }; - + let message = new $root.Records.FilesAddResponse(); + if (object.files) { + if (!Array.isArray(object.files)) + throw TypeError(".Records.FilesAddResponse.files: array expected"); + message.files = []; + for (let i = 0; i < object.files.length; ++i) { + if (typeof object.files[i] !== "object") + throw TypeError(".Records.FilesAddResponse.files: object expected"); + message.files[i] = $root.Records.FileAddStatus.fromObject(object.files[i]); + } + } + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + return message; + }; + /** - * Creates a plain object from a RecordsOnwershipTransferRequest message. Also converts values to other types if specified. + * Creates a plain object from a FilesAddResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordsOnwershipTransferRequest + * @memberof Records.FilesAddResponse * @static - * @param {Records.RecordsOnwershipTransferRequest} message RecordsOnwershipTransferRequest + * @param {Records.FilesAddResponse} message FilesAddResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsOnwershipTransferRequest.toObject = function toObject(message, options) { + FilesAddResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.transferRecords = []; - if (message.transferRecords && message.transferRecords.length) { - object.transferRecords = []; - for (let j = 0; j < message.transferRecords.length; ++j) - object.transferRecords[j] = $root.Records.TransferRecord.toObject(message.transferRecords[j], options); + object.files = []; + if (options.defaults) + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + if (message.files && message.files.length) { + object.files = []; + for (let j = 0; j < message.files.length; ++j) + object.files[j] = $root.Records.FileAddStatus.toObject(message.files[j], options); } + if (message.revision != null && message.hasOwnProperty("revision")) + 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; return object; }; /** - * Converts this RecordsOnwershipTransferRequest to JSON. + * Converts this FilesAddResponse to JSON. * @function toJSON - * @memberof Records.RecordsOnwershipTransferRequest + * @memberof Records.FilesAddResponse * @instance * @returns {Object.} JSON object */ - RecordsOnwershipTransferRequest.prototype.toJSON = function toJSON() { + FilesAddResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordsOnwershipTransferRequest + * Gets the default type url for FilesAddResponse * @function getTypeUrl - * @memberof Records.RecordsOnwershipTransferRequest + * @memberof Records.FilesAddResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordsOnwershipTransferRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FilesAddResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordsOnwershipTransferRequest"; + return typeUrlPrefix + "/Records.FilesAddResponse"; }; - return RecordsOnwershipTransferRequest; + return FilesAddResponse; })(); - Records.TransferRecord = (function() { + Records.FilesGetRequest = (function() { /** - * Properties of a TransferRecord. + * Properties of a FilesGetRequest. * @memberof Records - * @interface ITransferRecord - * @property {string|null} [username] TransferRecord username - * @property {Uint8Array|null} [recordUid] TransferRecord recordUid - * @property {Uint8Array|null} [recordKey] TransferRecord recordKey - * @property {boolean|null} [useEccKey] TransferRecord useEccKey + * @interface IFilesGetRequest + * @property {Array.|null} [recordUids] FilesGetRequest recordUids + * @property {boolean|null} [forThumbnails] FilesGetRequest forThumbnails + * @property {string|null} [emergencyAccessAccountOwner] FilesGetRequest emergencyAccessAccountOwner */ /** - * Constructs a new TransferRecord. + * Constructs a new FilesGetRequest. * @memberof Records - * @classdesc Represents a TransferRecord. - * @implements ITransferRecord + * @classdesc Represents a FilesGetRequest. + * @implements IFilesGetRequest * @constructor - * @param {Records.ITransferRecord=} [properties] Properties to set + * @param {Records.IFilesGetRequest=} [properties] Properties to set */ - function TransferRecord(properties) { + function FilesGetRequest(properties) { + this.recordUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -190755,117 +192070,106 @@ export const Records = $root.Records = (() => { } /** - * TransferRecord username. - * @member {string} username - * @memberof Records.TransferRecord - * @instance - */ - TransferRecord.prototype.username = ""; - - /** - * TransferRecord recordUid. - * @member {Uint8Array} recordUid - * @memberof Records.TransferRecord + * FilesGetRequest recordUids. + * @member {Array.} recordUids + * @memberof Records.FilesGetRequest * @instance */ - TransferRecord.prototype.recordUid = $util.newBuffer([]); + FilesGetRequest.prototype.recordUids = $util.emptyArray; /** - * TransferRecord recordKey. - * @member {Uint8Array} recordKey - * @memberof Records.TransferRecord + * FilesGetRequest forThumbnails. + * @member {boolean} forThumbnails + * @memberof Records.FilesGetRequest * @instance */ - TransferRecord.prototype.recordKey = $util.newBuffer([]); + FilesGetRequest.prototype.forThumbnails = false; /** - * TransferRecord useEccKey. - * @member {boolean} useEccKey - * @memberof Records.TransferRecord + * FilesGetRequest emergencyAccessAccountOwner. + * @member {string} emergencyAccessAccountOwner + * @memberof Records.FilesGetRequest * @instance */ - TransferRecord.prototype.useEccKey = false; + FilesGetRequest.prototype.emergencyAccessAccountOwner = ""; /** - * Creates a new TransferRecord instance using the specified properties. + * Creates a new FilesGetRequest instance using the specified properties. * @function create - * @memberof Records.TransferRecord + * @memberof Records.FilesGetRequest * @static - * @param {Records.ITransferRecord=} [properties] Properties to set - * @returns {Records.TransferRecord} TransferRecord instance + * @param {Records.IFilesGetRequest=} [properties] Properties to set + * @returns {Records.FilesGetRequest} FilesGetRequest instance */ - TransferRecord.create = function create(properties) { - return new TransferRecord(properties); + FilesGetRequest.create = function create(properties) { + return new FilesGetRequest(properties); }; /** - * Encodes the specified TransferRecord message. Does not implicitly {@link Records.TransferRecord.verify|verify} messages. + * Encodes the specified FilesGetRequest message. Does not implicitly {@link Records.FilesGetRequest.verify|verify} messages. * @function encode - * @memberof Records.TransferRecord + * @memberof Records.FilesGetRequest * @static - * @param {Records.ITransferRecord} message TransferRecord message or plain object to encode + * @param {Records.IFilesGetRequest} message FilesGetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransferRecord.encode = function encode(message, writer) { + FilesGetRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordKey); - if (message.useEccKey != null && Object.hasOwnProperty.call(message, "useEccKey")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.useEccKey); + if (message.recordUids != null && message.recordUids.length) + for (let i = 0; i < message.recordUids.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUids[i]); + if (message.forThumbnails != null && Object.hasOwnProperty.call(message, "forThumbnails")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.forThumbnails); + if (message.emergencyAccessAccountOwner != null && Object.hasOwnProperty.call(message, "emergencyAccessAccountOwner")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.emergencyAccessAccountOwner); return writer; }; /** - * Encodes the specified TransferRecord message, length delimited. Does not implicitly {@link Records.TransferRecord.verify|verify} messages. + * Encodes the specified FilesGetRequest message, length delimited. Does not implicitly {@link Records.FilesGetRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Records.TransferRecord + * @memberof Records.FilesGetRequest * @static - * @param {Records.ITransferRecord} message TransferRecord message or plain object to encode + * @param {Records.IFilesGetRequest} message FilesGetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransferRecord.encodeDelimited = function encodeDelimited(message, writer) { + FilesGetRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransferRecord message from the specified reader or buffer. + * Decodes a FilesGetRequest message from the specified reader or buffer. * @function decode - * @memberof Records.TransferRecord + * @memberof Records.FilesGetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.TransferRecord} TransferRecord + * @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 */ - TransferRecord.decode = function decode(reader, length) { + FilesGetRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TransferRecord(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FilesGetRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.username = reader.string(); + if (!(message.recordUids && message.recordUids.length)) + message.recordUids = []; + message.recordUids.push(reader.bytes()); break; } case 2: { - message.recordUid = reader.bytes(); + message.forThumbnails = reader.bool(); break; } case 3: { - message.recordKey = reader.bytes(); - break; - } - case 4: { - message.useEccKey = reader.bool(); + message.emergencyAccessAccountOwner = reader.string(); break; } default: @@ -190877,166 +192181,175 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a TransferRecord message from the specified reader or buffer, length delimited. + * Decodes a FilesGetRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.TransferRecord + * @memberof Records.FilesGetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.TransferRecord} TransferRecord + * @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 */ - TransferRecord.decodeDelimited = function decodeDelimited(reader) { + FilesGetRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TransferRecord message. + * Verifies a FilesGetRequest message. * @function verify - * @memberof Records.TransferRecord + * @memberof Records.FilesGetRequest * @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) { + FilesGetRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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 TransferRecord message from a plain object. Also converts values to their respective internal types. + * Creates a FilesGetRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.TransferRecord + * @memberof Records.FilesGetRequest * @static * @param {Object.} object Plain object - * @returns {Records.TransferRecord} TransferRecord + * @returns {Records.FilesGetRequest} FilesGetRequest */ - TransferRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Records.TransferRecord) + FilesGetRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Records.FilesGetRequest) return object; - let message = new $root.Records.TransferRecord(); - if (object.username != null) - message.username = String(object.username); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; - if (object.useEccKey != null) - message.useEccKey = Boolean(object.useEccKey); + let message = new $root.Records.FilesGetRequest(); + if (object.recordUids) { + if (!Array.isArray(object.recordUids)) + throw TypeError(".Records.FilesGetRequest.recordUids: array expected"); + message.recordUids = []; + for (let i = 0; i < object.recordUids.length; ++i) + if (typeof object.recordUids[i] === "string") + $util.base64.decode(object.recordUids[i], message.recordUids[i] = $util.newBuffer($util.base64.length(object.recordUids[i])), 0); + else if (object.recordUids[i].length >= 0) + message.recordUids[i] = object.recordUids[i]; + } + if (object.forThumbnails != null) + message.forThumbnails = Boolean(object.forThumbnails); + if (object.emergencyAccessAccountOwner != null) + message.emergencyAccessAccountOwner = String(object.emergencyAccessAccountOwner); return message; }; /** - * Creates a plain object from a TransferRecord message. Also converts values to other types if specified. + * Creates a plain object from a FilesGetRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Records.TransferRecord + * @memberof Records.FilesGetRequest * @static - * @param {Records.TransferRecord} message TransferRecord + * @param {Records.FilesGetRequest} message FilesGetRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransferRecord.toObject = function toObject(message, options) { + FilesGetRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.recordUids = []; if (options.defaults) { - object.username = ""; - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if (options.bytes === String) - object.recordKey = ""; - else { - object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); - } - object.useEccKey = false; + object.forThumbnails = false; + object.emergencyAccessAccountOwner = ""; } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.useEccKey != null && message.hasOwnProperty("useEccKey")) - object.useEccKey = message.useEccKey; + if (message.recordUids && message.recordUids.length) { + object.recordUids = []; + for (let j = 0; j < message.recordUids.length; ++j) + object.recordUids[j] = options.bytes === String ? $util.base64.encode(message.recordUids[j], 0, message.recordUids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUids[j]) : message.recordUids[j]; + } + if (message.forThumbnails != null && message.hasOwnProperty("forThumbnails")) + object.forThumbnails = message.forThumbnails; + if (message.emergencyAccessAccountOwner != null && message.hasOwnProperty("emergencyAccessAccountOwner")) + object.emergencyAccessAccountOwner = message.emergencyAccessAccountOwner; return object; }; /** - * Converts this TransferRecord to JSON. + * Converts this FilesGetRequest to JSON. * @function toJSON - * @memberof Records.TransferRecord + * @memberof Records.FilesGetRequest * @instance * @returns {Object.} JSON object */ - TransferRecord.prototype.toJSON = function toJSON() { + FilesGetRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TransferRecord + * Gets the default type url for FilesGetRequest * @function getTypeUrl - * @memberof Records.TransferRecord + * @memberof Records.FilesGetRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TransferRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FilesGetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.TransferRecord"; + return typeUrlPrefix + "/Records.FilesGetRequest"; }; - return TransferRecord; + return FilesGetRequest; })(); - Records.RecordsOnwershipTransferResponse = (function() { + /** + * FileGetResult enum. + * @name Records.FileGetResult + * @enum {number} + * @property {number} FG_SUCCESS=0 FG_SUCCESS value + * @property {number} FG_ERROR=1 FG_ERROR value + * @property {number} FG_ACCESS_DENIED=2 FG_ACCESS_DENIED value + */ + Records.FileGetResult = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FG_SUCCESS"] = 0; + values[valuesById[1] = "FG_ERROR"] = 1; + values[valuesById[2] = "FG_ACCESS_DENIED"] = 2; + return values; + })(); + + Records.FileGetStatus = (function() { /** - * Properties of a RecordsOnwershipTransferResponse. + * Properties of a FileGetStatus. * @memberof Records - * @interface IRecordsOnwershipTransferResponse - * @property {Array.|null} [transferRecordStatus] RecordsOnwershipTransferResponse transferRecordStatus + * @interface IFileGetStatus + * @property {Uint8Array|null} [recordUid] FileGetStatus recordUid + * @property {Records.FileGetResult|null} [status] FileGetStatus status + * @property {string|null} [url] FileGetStatus url + * @property {number|null} [successStatusCode] FileGetStatus successStatusCode + * @property {Records.RecordKeyType|null} [fileKeyType] FileGetStatus fileKeyType */ /** - * Constructs a new RecordsOnwershipTransferResponse. + * Constructs a new FileGetStatus. * @memberof Records - * @classdesc Represents a RecordsOnwershipTransferResponse. - * @implements IRecordsOnwershipTransferResponse + * @classdesc Represents a FileGetStatus. + * @implements IFileGetStatus * @constructor - * @param {Records.IRecordsOnwershipTransferResponse=} [properties] Properties to set + * @param {Records.IFileGetStatus=} [properties] Properties to set */ - function RecordsOnwershipTransferResponse(properties) { - this.transferRecordStatus = []; + function FileGetStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -191044,78 +192357,131 @@ export const Records = $root.Records = (() => { } /** - * RecordsOnwershipTransferResponse transferRecordStatus. - * @member {Array.} transferRecordStatus - * @memberof Records.RecordsOnwershipTransferResponse + * FileGetStatus recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.FileGetStatus * @instance */ - RecordsOnwershipTransferResponse.prototype.transferRecordStatus = $util.emptyArray; + FileGetStatus.prototype.recordUid = $util.newBuffer([]); /** - * Creates a new RecordsOnwershipTransferResponse instance using the specified properties. + * FileGetStatus status. + * @member {Records.FileGetResult} status + * @memberof Records.FileGetStatus + * @instance + */ + FileGetStatus.prototype.status = 0; + + /** + * FileGetStatus url. + * @member {string} url + * @memberof Records.FileGetStatus + * @instance + */ + FileGetStatus.prototype.url = ""; + + /** + * FileGetStatus successStatusCode. + * @member {number} successStatusCode + * @memberof Records.FileGetStatus + * @instance + */ + FileGetStatus.prototype.successStatusCode = 0; + + /** + * FileGetStatus fileKeyType. + * @member {Records.RecordKeyType} fileKeyType + * @memberof Records.FileGetStatus + * @instance + */ + FileGetStatus.prototype.fileKeyType = 0; + + /** + * Creates a new FileGetStatus instance using the specified properties. * @function create - * @memberof Records.RecordsOnwershipTransferResponse + * @memberof Records.FileGetStatus * @static - * @param {Records.IRecordsOnwershipTransferResponse=} [properties] Properties to set - * @returns {Records.RecordsOnwershipTransferResponse} RecordsOnwershipTransferResponse instance + * @param {Records.IFileGetStatus=} [properties] Properties to set + * @returns {Records.FileGetStatus} FileGetStatus instance */ - RecordsOnwershipTransferResponse.create = function create(properties) { - return new RecordsOnwershipTransferResponse(properties); + FileGetStatus.create = function create(properties) { + return new FileGetStatus(properties); }; /** - * Encodes the specified RecordsOnwershipTransferResponse message. Does not implicitly {@link Records.RecordsOnwershipTransferResponse.verify|verify} messages. + * Encodes the specified FileGetStatus message. Does not implicitly {@link Records.FileGetStatus.verify|verify} messages. * @function encode - * @memberof Records.RecordsOnwershipTransferResponse + * @memberof Records.FileGetStatus * @static - * @param {Records.IRecordsOnwershipTransferResponse} message RecordsOnwershipTransferResponse message or plain object to encode + * @param {Records.IFileGetStatus} message FileGetStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsOnwershipTransferResponse.encode = function encode(message, writer) { + FileGetStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transferRecordStatus != null && message.transferRecordStatus.length) - for (let i = 0; i < message.transferRecordStatus.length; ++i) - $root.Records.TransferRecordStatus.encode(message.transferRecordStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); + if (message.url != null && Object.hasOwnProperty.call(message, "url")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.url); + if (message.successStatusCode != null && Object.hasOwnProperty.call(message, "successStatusCode")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.successStatusCode); + if (message.fileKeyType != null && Object.hasOwnProperty.call(message, "fileKeyType")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.fileKeyType); return writer; }; /** - * Encodes the specified RecordsOnwershipTransferResponse message, length delimited. Does not implicitly {@link Records.RecordsOnwershipTransferResponse.verify|verify} messages. + * Encodes the specified FileGetStatus message, length delimited. Does not implicitly {@link Records.FileGetStatus.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordsOnwershipTransferResponse + * @memberof Records.FileGetStatus * @static - * @param {Records.IRecordsOnwershipTransferResponse} message RecordsOnwershipTransferResponse message or plain object to encode + * @param {Records.IFileGetStatus} message FileGetStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsOnwershipTransferResponse.encodeDelimited = function encodeDelimited(message, writer) { + FileGetStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordsOnwershipTransferResponse message from the specified reader or buffer. + * Decodes a FileGetStatus message from the specified reader or buffer. * @function decode - * @memberof Records.RecordsOnwershipTransferResponse + * @memberof Records.FileGetStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordsOnwershipTransferResponse} RecordsOnwershipTransferResponse + * @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 */ - RecordsOnwershipTransferResponse.decode = function decode(reader, length) { + FileGetStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsOnwershipTransferResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FileGetStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.transferRecordStatus && message.transferRecordStatus.length)) - message.transferRecordStatus = []; - message.transferRecordStatus.push($root.Records.TransferRecordStatus.decode(reader, reader.uint32())); + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.status = reader.int32(); + break; + } + case 3: { + message.url = reader.string(); + break; + } + case 4: { + message.successStatusCode = reader.int32(); + break; + } + case 5: { + message.fileKeyType = reader.int32(); break; } default: @@ -191127,142 +192493,233 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordsOnwershipTransferResponse message from the specified reader or buffer, length delimited. + * Decodes a FileGetStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordsOnwershipTransferResponse + * @memberof Records.FileGetStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsOnwershipTransferResponse} RecordsOnwershipTransferResponse + * @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 */ - RecordsOnwershipTransferResponse.decodeDelimited = function decodeDelimited(reader) { + FileGetStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordsOnwershipTransferResponse message. + * Verifies a FileGetStatus message. * @function verify - * @memberof Records.RecordsOnwershipTransferResponse + * @memberof Records.FileGetStatus * @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) { + FileGetStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "transferRecordStatus." + error; + 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 RecordsOnwershipTransferResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FileGetStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordsOnwershipTransferResponse + * @memberof Records.FileGetStatus * @static * @param {Object.} object Plain object - * @returns {Records.RecordsOnwershipTransferResponse} RecordsOnwershipTransferResponse + * @returns {Records.FileGetStatus} FileGetStatus */ - RecordsOnwershipTransferResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsOnwershipTransferResponse) + FileGetStatus.fromObject = function fromObject(object) { + if (object instanceof $root.Records.FileGetStatus) return object; - let message = new $root.Records.RecordsOnwershipTransferResponse(); - if (object.transferRecordStatus) { - if (!Array.isArray(object.transferRecordStatus)) - throw TypeError(".Records.RecordsOnwershipTransferResponse.transferRecordStatus: array expected"); - message.transferRecordStatus = []; - for (let i = 0; i < object.transferRecordStatus.length; ++i) { - if (typeof object.transferRecordStatus[i] !== "object") - throw TypeError(".Records.RecordsOnwershipTransferResponse.transferRecordStatus: object expected"); - message.transferRecordStatus[i] = $root.Records.TransferRecordStatus.fromObject(object.transferRecordStatus[i]); + let message = new $root.Records.FileGetStatus(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; + case "FG_SUCCESS": + case 0: + message.status = 0; + break; + case "FG_ERROR": + case 1: + message.status = 1; + break; + case "FG_ACCESS_DENIED": + case 2: + message.status = 2; + break; + } + if (object.url != null) + message.url = String(object.url); + if (object.successStatusCode != null) + message.successStatusCode = object.successStatusCode | 0; + switch (object.fileKeyType) { + default: + if (typeof object.fileKeyType === "number") { + message.fileKeyType = object.fileKeyType; + break; } + break; + case "NO_KEY": + case 0: + message.fileKeyType = 0; + break; + case "ENCRYPTED_BY_DATA_KEY": + case 1: + message.fileKeyType = 1; + break; + case "ENCRYPTED_BY_PUBLIC_KEY": + case 2: + message.fileKeyType = 2; + break; + case "ENCRYPTED_BY_DATA_KEY_GCM": + case 3: + message.fileKeyType = 3; + break; + case "ENCRYPTED_BY_PUBLIC_KEY_ECC": + case 4: + message.fileKeyType = 4; + break; + case "ENCRYPTED_BY_ROOT_KEY_CBC": + case 5: + message.fileKeyType = 5; + break; + case "ENCRYPTED_BY_ROOT_KEY_GCM": + case 6: + message.fileKeyType = 6; + break; } return message; }; /** - * Creates a plain object from a RecordsOnwershipTransferResponse message. Also converts values to other types if specified. + * Creates a plain object from a FileGetStatus message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordsOnwershipTransferResponse + * @memberof Records.FileGetStatus * @static - * @param {Records.RecordsOnwershipTransferResponse} message RecordsOnwershipTransferResponse + * @param {Records.FileGetStatus} message FileGetStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsOnwershipTransferResponse.toObject = function toObject(message, options) { + FileGetStatus.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.transferRecordStatus = []; - if (message.transferRecordStatus && message.transferRecordStatus.length) { - object.transferRecordStatus = []; - for (let j = 0; j < message.transferRecordStatus.length; ++j) - object.transferRecordStatus[j] = $root.Records.TransferRecordStatus.toObject(message.transferRecordStatus[j], options); + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + object.status = options.enums === String ? "FG_SUCCESS" : 0; + object.url = ""; + object.successStatusCode = 0; + object.fileKeyType = options.enums === String ? "NO_KEY" : 0; } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.status != null && message.hasOwnProperty("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")) + object.url = message.url; + if (message.successStatusCode != null && message.hasOwnProperty("successStatusCode")) + object.successStatusCode = message.successStatusCode; + if (message.fileKeyType != null && message.hasOwnProperty("fileKeyType")) + object.fileKeyType = options.enums === String ? $root.Records.RecordKeyType[message.fileKeyType] === undefined ? message.fileKeyType : $root.Records.RecordKeyType[message.fileKeyType] : message.fileKeyType; return object; }; /** - * Converts this RecordsOnwershipTransferResponse to JSON. + * Converts this FileGetStatus to JSON. * @function toJSON - * @memberof Records.RecordsOnwershipTransferResponse + * @memberof Records.FileGetStatus * @instance * @returns {Object.} JSON object */ - RecordsOnwershipTransferResponse.prototype.toJSON = function toJSON() { + FileGetStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordsOnwershipTransferResponse + * Gets the default type url for FileGetStatus * @function getTypeUrl - * @memberof Records.RecordsOnwershipTransferResponse + * @memberof Records.FileGetStatus * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordsOnwershipTransferResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FileGetStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordsOnwershipTransferResponse"; + return typeUrlPrefix + "/Records.FileGetStatus"; }; - return RecordsOnwershipTransferResponse; + return FileGetStatus; })(); - Records.TransferRecordStatus = (function() { + Records.FilesGetResponse = (function() { /** - * Properties of a TransferRecordStatus. + * Properties of a FilesGetResponse. * @memberof Records - * @interface ITransferRecordStatus - * @property {string|null} [username] TransferRecordStatus username - * @property {Uint8Array|null} [recordUid] TransferRecordStatus recordUid - * @property {string|null} [status] TransferRecordStatus status - * @property {string|null} [message] TransferRecordStatus message + * @interface IFilesGetResponse + * @property {Array.|null} [files] FilesGetResponse files */ /** - * Constructs a new TransferRecordStatus. + * Constructs a new FilesGetResponse. * @memberof Records - * @classdesc Represents a TransferRecordStatus. - * @implements ITransferRecordStatus + * @classdesc Represents a FilesGetResponse. + * @implements IFilesGetResponse * @constructor - * @param {Records.ITransferRecordStatus=} [properties] Properties to set + * @param {Records.IFilesGetResponse=} [properties] Properties to set */ - function TransferRecordStatus(properties) { + function FilesGetResponse(properties) { + this.files = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -191270,117 +192727,78 @@ export const Records = $root.Records = (() => { } /** - * TransferRecordStatus username. - * @member {string} username - * @memberof Records.TransferRecordStatus - * @instance - */ - TransferRecordStatus.prototype.username = ""; - - /** - * TransferRecordStatus recordUid. - * @member {Uint8Array} recordUid - * @memberof Records.TransferRecordStatus - * @instance - */ - TransferRecordStatus.prototype.recordUid = $util.newBuffer([]); - - /** - * TransferRecordStatus status. - * @member {string} status - * @memberof Records.TransferRecordStatus - * @instance - */ - TransferRecordStatus.prototype.status = ""; - - /** - * TransferRecordStatus message. - * @member {string} message - * @memberof Records.TransferRecordStatus + * FilesGetResponse files. + * @member {Array.} files + * @memberof Records.FilesGetResponse * @instance */ - TransferRecordStatus.prototype.message = ""; + FilesGetResponse.prototype.files = $util.emptyArray; /** - * Creates a new TransferRecordStatus instance using the specified properties. + * Creates a new FilesGetResponse instance using the specified properties. * @function create - * @memberof Records.TransferRecordStatus + * @memberof Records.FilesGetResponse * @static - * @param {Records.ITransferRecordStatus=} [properties] Properties to set - * @returns {Records.TransferRecordStatus} TransferRecordStatus instance + * @param {Records.IFilesGetResponse=} [properties] Properties to set + * @returns {Records.FilesGetResponse} FilesGetResponse instance */ - TransferRecordStatus.create = function create(properties) { - return new TransferRecordStatus(properties); + FilesGetResponse.create = function create(properties) { + return new FilesGetResponse(properties); }; /** - * Encodes the specified TransferRecordStatus message. Does not implicitly {@link Records.TransferRecordStatus.verify|verify} messages. + * Encodes the specified FilesGetResponse message. Does not implicitly {@link Records.FilesGetResponse.verify|verify} messages. * @function encode - * @memberof Records.TransferRecordStatus + * @memberof Records.FilesGetResponse * @static - * @param {Records.ITransferRecordStatus} message TransferRecordStatus message or plain object to encode + * @param {Records.IFilesGetResponse} message FilesGetResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransferRecordStatus.encode = function encode(message, writer) { + FilesGetResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.status); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.message); + if (message.files != null && message.files.length) + for (let i = 0; i < message.files.length; ++i) + $root.Records.FileGetStatus.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified TransferRecordStatus message, length delimited. Does not implicitly {@link Records.TransferRecordStatus.verify|verify} messages. + * Encodes the specified FilesGetResponse message, length delimited. Does not implicitly {@link Records.FilesGetResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Records.TransferRecordStatus + * @memberof Records.FilesGetResponse * @static - * @param {Records.ITransferRecordStatus} message TransferRecordStatus message or plain object to encode + * @param {Records.IFilesGetResponse} message FilesGetResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransferRecordStatus.encodeDelimited = function encodeDelimited(message, writer) { + FilesGetResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransferRecordStatus message from the specified reader or buffer. + * Decodes a FilesGetResponse message from the specified reader or buffer. * @function decode - * @memberof Records.TransferRecordStatus + * @memberof Records.FilesGetResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.TransferRecordStatus} TransferRecordStatus + * @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 */ - TransferRecordStatus.decode = function decode(reader, length) { + FilesGetResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TransferRecordStatus(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FilesGetResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.username = reader.string(); - break; - } - case 2: { - message.recordUid = reader.bytes(); - break; - } - case 3: { - message.status = reader.string(); - break; - } - case 4: { - message.message = reader.string(); + if (!(message.files && message.files.length)) + message.files = []; + message.files.push($root.Records.FileGetStatus.decode(reader, reader.uint32())); break; } default: @@ -191392,159 +192810,143 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a TransferRecordStatus message from the specified reader or buffer, length delimited. + * Decodes a FilesGetResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.TransferRecordStatus + * @memberof Records.FilesGetResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.TransferRecordStatus} TransferRecordStatus + * @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 */ - TransferRecordStatus.decodeDelimited = function decodeDelimited(reader) { + FilesGetResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TransferRecordStatus message. + * Verifies a FilesGetResponse message. * @function verify - * @memberof Records.TransferRecordStatus + * @memberof Records.FilesGetResponse * @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) { + FilesGetResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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]); + if (error) + return "files." + error; + } + } return null; }; /** - * Creates a TransferRecordStatus message from a plain object. Also converts values to their respective internal types. + * Creates a FilesGetResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.TransferRecordStatus + * @memberof Records.FilesGetResponse * @static * @param {Object.} object Plain object - * @returns {Records.TransferRecordStatus} TransferRecordStatus + * @returns {Records.FilesGetResponse} FilesGetResponse */ - TransferRecordStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Records.TransferRecordStatus) + FilesGetResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Records.FilesGetResponse) return object; - let message = new $root.Records.TransferRecordStatus(); - if (object.username != null) - message.username = String(object.username); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.status != null) - message.status = String(object.status); - if (object.message != null) - message.message = String(object.message); + let message = new $root.Records.FilesGetResponse(); + if (object.files) { + if (!Array.isArray(object.files)) + throw TypeError(".Records.FilesGetResponse.files: array expected"); + message.files = []; + for (let i = 0; i < object.files.length; ++i) { + if (typeof object.files[i] !== "object") + throw TypeError(".Records.FilesGetResponse.files: object expected"); + message.files[i] = $root.Records.FileGetStatus.fromObject(object.files[i]); + } + } return message; }; /** - * Creates a plain object from a TransferRecordStatus message. Also converts values to other types if specified. + * Creates a plain object from a FilesGetResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Records.TransferRecordStatus + * @memberof Records.FilesGetResponse * @static - * @param {Records.TransferRecordStatus} message TransferRecordStatus + * @param {Records.FilesGetResponse} message FilesGetResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransferRecordStatus.toObject = function toObject(message, options) { + FilesGetResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.username = ""; - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - object.status = ""; - object.message = ""; + if (options.arrays || options.defaults) + object.files = []; + if (message.files && message.files.length) { + object.files = []; + for (let j = 0; j < message.files.length; ++j) + object.files[j] = $root.Records.FileGetStatus.toObject(message.files[j], options); } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; return object; }; /** - * Converts this TransferRecordStatus to JSON. + * Converts this FilesGetResponse to JSON. * @function toJSON - * @memberof Records.TransferRecordStatus + * @memberof Records.FilesGetResponse * @instance * @returns {Object.} JSON object */ - TransferRecordStatus.prototype.toJSON = function toJSON() { + FilesGetResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TransferRecordStatus + * Gets the default type url for FilesGetResponse * @function getTypeUrl - * @memberof Records.TransferRecordStatus + * @memberof Records.FilesGetResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TransferRecordStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FilesGetResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.TransferRecordStatus"; + return typeUrlPrefix + "/Records.FilesGetResponse"; }; - return TransferRecordStatus; + return FilesGetResponse; })(); - Records.RecordsUnshareRequest = (function() { + Records.ApplicationAddRequest = (function() { /** - * Properties of a RecordsUnshareRequest. + * Properties of an ApplicationAddRequest. * @memberof Records - * @interface IRecordsUnshareRequest - * @property {Array.|null} [sharedFolders] RecordsUnshareRequest sharedFolders - * @property {Array.|null} [users] RecordsUnshareRequest users + * @interface IApplicationAddRequest + * @property {Uint8Array|null} [appUid] ApplicationAddRequest appUid + * @property {Uint8Array|null} [recordKey] ApplicationAddRequest recordKey + * @property {number|Long|null} [clientModifiedTime] ApplicationAddRequest clientModifiedTime + * @property {Uint8Array|null} [data] ApplicationAddRequest data + * @property {Records.IRecordAudit|null} [audit] ApplicationAddRequest audit */ /** - * Constructs a new RecordsUnshareRequest. + * Constructs a new ApplicationAddRequest. * @memberof Records - * @classdesc Represents a RecordsUnshareRequest. - * @implements IRecordsUnshareRequest + * @classdesc Represents an ApplicationAddRequest. + * @implements IApplicationAddRequest * @constructor - * @param {Records.IRecordsUnshareRequest=} [properties] Properties to set + * @param {Records.IApplicationAddRequest=} [properties] Properties to set */ - function RecordsUnshareRequest(properties) { - this.sharedFolders = []; - this.users = []; + function ApplicationAddRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -191552,95 +192954,131 @@ export const Records = $root.Records = (() => { } /** - * RecordsUnshareRequest sharedFolders. - * @member {Array.} sharedFolders - * @memberof Records.RecordsUnshareRequest + * ApplicationAddRequest appUid. + * @member {Uint8Array} appUid + * @memberof Records.ApplicationAddRequest * @instance */ - RecordsUnshareRequest.prototype.sharedFolders = $util.emptyArray; + ApplicationAddRequest.prototype.appUid = $util.newBuffer([]); /** - * RecordsUnshareRequest users. - * @member {Array.} users - * @memberof Records.RecordsUnshareRequest + * ApplicationAddRequest recordKey. + * @member {Uint8Array} recordKey + * @memberof Records.ApplicationAddRequest * @instance */ - RecordsUnshareRequest.prototype.users = $util.emptyArray; + ApplicationAddRequest.prototype.recordKey = $util.newBuffer([]); /** - * Creates a new RecordsUnshareRequest instance using the specified properties. + * ApplicationAddRequest clientModifiedTime. + * @member {number|Long} clientModifiedTime + * @memberof Records.ApplicationAddRequest + * @instance + */ + ApplicationAddRequest.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ApplicationAddRequest data. + * @member {Uint8Array} data + * @memberof Records.ApplicationAddRequest + * @instance + */ + ApplicationAddRequest.prototype.data = $util.newBuffer([]); + + /** + * ApplicationAddRequest audit. + * @member {Records.IRecordAudit|null|undefined} audit + * @memberof Records.ApplicationAddRequest + * @instance + */ + ApplicationAddRequest.prototype.audit = null; + + /** + * Creates a new ApplicationAddRequest instance using the specified properties. * @function create - * @memberof Records.RecordsUnshareRequest + * @memberof Records.ApplicationAddRequest * @static - * @param {Records.IRecordsUnshareRequest=} [properties] Properties to set - * @returns {Records.RecordsUnshareRequest} RecordsUnshareRequest instance + * @param {Records.IApplicationAddRequest=} [properties] Properties to set + * @returns {Records.ApplicationAddRequest} ApplicationAddRequest instance */ - RecordsUnshareRequest.create = function create(properties) { - return new RecordsUnshareRequest(properties); + ApplicationAddRequest.create = function create(properties) { + return new ApplicationAddRequest(properties); }; /** - * Encodes the specified RecordsUnshareRequest message. Does not implicitly {@link Records.RecordsUnshareRequest.verify|verify} messages. + * Encodes the specified ApplicationAddRequest message. Does not implicitly {@link Records.ApplicationAddRequest.verify|verify} messages. * @function encode - * @memberof Records.RecordsUnshareRequest + * @memberof Records.ApplicationAddRequest * @static - * @param {Records.IRecordsUnshareRequest} message RecordsUnshareRequest message or plain object to encode + * @param {Records.IApplicationAddRequest} message ApplicationAddRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsUnshareRequest.encode = function encode(message, writer) { + ApplicationAddRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sharedFolders != null && message.sharedFolders.length) - for (let i = 0; i < message.sharedFolders.length; ++i) - $root.Records.RecordsUnshareFolder.encode(message.sharedFolders[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.users != null && message.users.length) - for (let i = 0; i < message.users.length; ++i) - $root.Records.RecordsUnshareUser.encode(message.users[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.appUid != null && Object.hasOwnProperty.call(message, "appUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordKey); + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.clientModifiedTime); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); + if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) + $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified RecordsUnshareRequest message, length delimited. Does not implicitly {@link Records.RecordsUnshareRequest.verify|verify} messages. + * Encodes the specified ApplicationAddRequest message, length delimited. Does not implicitly {@link Records.ApplicationAddRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordsUnshareRequest + * @memberof Records.ApplicationAddRequest * @static - * @param {Records.IRecordsUnshareRequest} message RecordsUnshareRequest message or plain object to encode + * @param {Records.IApplicationAddRequest} message ApplicationAddRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsUnshareRequest.encodeDelimited = function encodeDelimited(message, writer) { + ApplicationAddRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordsUnshareRequest message from the specified reader or buffer. + * Decodes an ApplicationAddRequest message from the specified reader or buffer. * @function decode - * @memberof Records.RecordsUnshareRequest + * @memberof Records.ApplicationAddRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordsUnshareRequest} RecordsUnshareRequest + * @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 */ - RecordsUnshareRequest.decode = function decode(reader, length) { + ApplicationAddRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.ApplicationAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.sharedFolders && message.sharedFolders.length)) - message.sharedFolders = []; - message.sharedFolders.push($root.Records.RecordsUnshareFolder.decode(reader, reader.uint32())); + message.appUid = reader.bytes(); break; } case 2: { - if (!(message.users && message.users.length)) - message.users = []; - message.users.push($root.Records.RecordsUnshareUser.decode(reader, reader.uint32())); + message.recordKey = reader.bytes(); + break; + } + case 3: { + message.clientModifiedTime = reader.int64(); + break; + } + case 4: { + message.data = reader.bytes(); + break; + } + case 5: { + message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); break; } default: @@ -191652,168 +193090,220 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordsUnshareRequest message from the specified reader or buffer, length delimited. + * Decodes an ApplicationAddRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordsUnshareRequest + * @memberof Records.ApplicationAddRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsUnshareRequest} RecordsUnshareRequest + * @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 */ - RecordsUnshareRequest.decodeDelimited = function decodeDelimited(reader) { + ApplicationAddRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordsUnshareRequest message. + * Verifies an ApplicationAddRequest message. * @function verify - * @memberof Records.RecordsUnshareRequest + * @memberof Records.ApplicationAddRequest * @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) { + ApplicationAddRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - 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]); - if (error) - return "users." + error; - } + 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); + if (error) + return "audit." + error; } return null; }; /** - * Creates a RecordsUnshareRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApplicationAddRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordsUnshareRequest + * @memberof Records.ApplicationAddRequest * @static * @param {Object.} object Plain object - * @returns {Records.RecordsUnshareRequest} RecordsUnshareRequest + * @returns {Records.ApplicationAddRequest} ApplicationAddRequest */ - RecordsUnshareRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsUnshareRequest) + ApplicationAddRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Records.ApplicationAddRequest) return object; - let message = new $root.Records.RecordsUnshareRequest(); - if (object.sharedFolders) { - if (!Array.isArray(object.sharedFolders)) - throw TypeError(".Records.RecordsUnshareRequest.sharedFolders: array expected"); - message.sharedFolders = []; - for (let i = 0; i < object.sharedFolders.length; ++i) { - if (typeof object.sharedFolders[i] !== "object") - throw TypeError(".Records.RecordsUnshareRequest.sharedFolders: object expected"); - message.sharedFolders[i] = $root.Records.RecordsUnshareFolder.fromObject(object.sharedFolders[i]); - } - } - if (object.users) { - if (!Array.isArray(object.users)) - throw TypeError(".Records.RecordsUnshareRequest.users: array expected"); - message.users = []; - for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".Records.RecordsUnshareRequest.users: object expected"); - message.users[i] = $root.Records.RecordsUnshareUser.fromObject(object.users[i]); - } + let message = new $root.Records.ApplicationAddRequest(); + if (object.appUid != null) + if (typeof object.appUid === "string") + $util.base64.decode(object.appUid, message.appUid = $util.newBuffer($util.base64.length(object.appUid)), 0); + else if (object.appUid.length >= 0) + message.appUid = object.appUid; + if (object.recordKey != null) + if (typeof object.recordKey === "string") + $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); + else if (object.recordKey.length >= 0) + message.recordKey = object.recordKey; + if (object.clientModifiedTime != null) + if ($util.Long) + (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; + else if (typeof object.clientModifiedTime === "string") + message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); + else if (typeof object.clientModifiedTime === "number") + message.clientModifiedTime = object.clientModifiedTime; + else if (typeof object.clientModifiedTime === "object") + message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + if (object.audit != null) { + if (typeof object.audit !== "object") + throw TypeError(".Records.ApplicationAddRequest.audit: object expected"); + message.audit = $root.Records.RecordAudit.fromObject(object.audit); } return message; }; /** - * Creates a plain object from a RecordsUnshareRequest message. Also converts values to other types if specified. + * Creates a plain object from an ApplicationAddRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordsUnshareRequest + * @memberof Records.ApplicationAddRequest * @static - * @param {Records.RecordsUnshareRequest} message RecordsUnshareRequest + * @param {Records.ApplicationAddRequest} message ApplicationAddRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsUnshareRequest.toObject = function toObject(message, options) { + ApplicationAddRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.sharedFolders = []; - object.users = []; - } - if (message.sharedFolders && message.sharedFolders.length) { - object.sharedFolders = []; - for (let j = 0; j < message.sharedFolders.length; ++j) - object.sharedFolders[j] = $root.Records.RecordsUnshareFolder.toObject(message.sharedFolders[j], options); - } - if (message.users && message.users.length) { - object.users = []; - for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.Records.RecordsUnshareUser.toObject(message.users[j], options); + if (options.defaults) { + if (options.bytes === String) + object.appUid = ""; + else { + object.appUid = []; + if (options.bytes !== Array) + object.appUid = $util.newBuffer(object.appUid); + } + if (options.bytes === String) + object.recordKey = ""; + else { + object.recordKey = []; + if (options.bytes !== Array) + object.recordKey = $util.newBuffer(object.recordKey); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.clientModifiedTime = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + object.audit = null; } + if (message.appUid != null && message.hasOwnProperty("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")) + object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; + if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) + if (typeof message.clientModifiedTime === "number") + object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; + else + object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.audit != null && message.hasOwnProperty("audit")) + object.audit = $root.Records.RecordAudit.toObject(message.audit, options); return object; }; /** - * Converts this RecordsUnshareRequest to JSON. + * Converts this ApplicationAddRequest to JSON. * @function toJSON - * @memberof Records.RecordsUnshareRequest + * @memberof Records.ApplicationAddRequest * @instance * @returns {Object.} JSON object */ - RecordsUnshareRequest.prototype.toJSON = function toJSON() { + ApplicationAddRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordsUnshareRequest + * Gets the default type url for ApplicationAddRequest * @function getTypeUrl - * @memberof Records.RecordsUnshareRequest + * @memberof Records.ApplicationAddRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordsUnshareRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ApplicationAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordsUnshareRequest"; + return typeUrlPrefix + "/Records.ApplicationAddRequest"; }; - return RecordsUnshareRequest; + return ApplicationAddRequest; })(); - Records.RecordsUnshareResponse = (function() { + /** + * RecordDetailsInclude enum. + * @name Records.RecordDetailsInclude + * @enum {number} + * @property {number} DATA_PLUS_SHARE=0 DATA_PLUS_SHARE value + * @property {number} DATA_ONLY=1 DATA_ONLY value + * @property {number} SHARE_ONLY=2 SHARE_ONLY value + */ + Records.RecordDetailsInclude = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DATA_PLUS_SHARE"] = 0; + values[valuesById[1] = "DATA_ONLY"] = 1; + values[valuesById[2] = "SHARE_ONLY"] = 2; + return values; + })(); + + Records.GetRecordDataWithAccessInfoRequest = (function() { /** - * Properties of a RecordsUnshareResponse. + * Properties of a GetRecordDataWithAccessInfoRequest. * @memberof Records - * @interface IRecordsUnshareResponse - * @property {Array.|null} [sharedFolders] RecordsUnshareResponse sharedFolders - * @property {Array.|null} [users] RecordsUnshareResponse users + * @interface IGetRecordDataWithAccessInfoRequest + * @property {number|Long|null} [clientTime] GetRecordDataWithAccessInfoRequest clientTime + * @property {Array.|null} [recordUid] GetRecordDataWithAccessInfoRequest recordUid + * @property {Records.RecordDetailsInclude|null} [recordDetailsInclude] GetRecordDataWithAccessInfoRequest recordDetailsInclude */ /** - * Constructs a new RecordsUnshareResponse. + * Constructs a new GetRecordDataWithAccessInfoRequest. * @memberof Records - * @classdesc Represents a RecordsUnshareResponse. - * @implements IRecordsUnshareResponse + * @classdesc Represents a GetRecordDataWithAccessInfoRequest. + * @implements IGetRecordDataWithAccessInfoRequest * @constructor - * @param {Records.IRecordsUnshareResponse=} [properties] Properties to set + * @param {Records.IGetRecordDataWithAccessInfoRequest=} [properties] Properties to set */ - function RecordsUnshareResponse(properties) { - this.sharedFolders = []; - this.users = []; + function GetRecordDataWithAccessInfoRequest(properties) { + this.recordUid = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -191821,95 +193311,106 @@ export const Records = $root.Records = (() => { } /** - * RecordsUnshareResponse sharedFolders. - * @member {Array.} sharedFolders - * @memberof Records.RecordsUnshareResponse + * GetRecordDataWithAccessInfoRequest clientTime. + * @member {number|Long} clientTime + * @memberof Records.GetRecordDataWithAccessInfoRequest * @instance */ - RecordsUnshareResponse.prototype.sharedFolders = $util.emptyArray; + GetRecordDataWithAccessInfoRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * RecordsUnshareResponse users. - * @member {Array.} users - * @memberof Records.RecordsUnshareResponse + * GetRecordDataWithAccessInfoRequest recordUid. + * @member {Array.} recordUid + * @memberof Records.GetRecordDataWithAccessInfoRequest * @instance */ - RecordsUnshareResponse.prototype.users = $util.emptyArray; + GetRecordDataWithAccessInfoRequest.prototype.recordUid = $util.emptyArray; /** - * Creates a new RecordsUnshareResponse instance using the specified properties. + * GetRecordDataWithAccessInfoRequest recordDetailsInclude. + * @member {Records.RecordDetailsInclude} recordDetailsInclude + * @memberof Records.GetRecordDataWithAccessInfoRequest + * @instance + */ + GetRecordDataWithAccessInfoRequest.prototype.recordDetailsInclude = 0; + + /** + * Creates a new GetRecordDataWithAccessInfoRequest instance using the specified properties. * @function create - * @memberof Records.RecordsUnshareResponse + * @memberof Records.GetRecordDataWithAccessInfoRequest * @static - * @param {Records.IRecordsUnshareResponse=} [properties] Properties to set - * @returns {Records.RecordsUnshareResponse} RecordsUnshareResponse instance + * @param {Records.IGetRecordDataWithAccessInfoRequest=} [properties] Properties to set + * @returns {Records.GetRecordDataWithAccessInfoRequest} GetRecordDataWithAccessInfoRequest instance */ - RecordsUnshareResponse.create = function create(properties) { - return new RecordsUnshareResponse(properties); + GetRecordDataWithAccessInfoRequest.create = function create(properties) { + return new GetRecordDataWithAccessInfoRequest(properties); }; /** - * Encodes the specified RecordsUnshareResponse message. Does not implicitly {@link Records.RecordsUnshareResponse.verify|verify} messages. + * Encodes the specified GetRecordDataWithAccessInfoRequest message. Does not implicitly {@link Records.GetRecordDataWithAccessInfoRequest.verify|verify} messages. * @function encode - * @memberof Records.RecordsUnshareResponse + * @memberof Records.GetRecordDataWithAccessInfoRequest * @static - * @param {Records.IRecordsUnshareResponse} message RecordsUnshareResponse message or plain object to encode + * @param {Records.IGetRecordDataWithAccessInfoRequest} message GetRecordDataWithAccessInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsUnshareResponse.encode = function encode(message, writer) { + GetRecordDataWithAccessInfoRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sharedFolders != null && message.sharedFolders.length) - for (let i = 0; i < message.sharedFolders.length; ++i) - $root.Records.RecordsUnshareFolderStatus.encode(message.sharedFolders[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.users != null && message.users.length) - for (let i = 0; i < message.users.length; ++i) - $root.Records.RecordsUnshareUserStatus.encode(message.users[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.clientTime); + if (message.recordUid != null && message.recordUid.length) + for (let i = 0; i < message.recordUid.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid[i]); + if (message.recordDetailsInclude != null && Object.hasOwnProperty.call(message, "recordDetailsInclude")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.recordDetailsInclude); return writer; }; /** - * Encodes the specified RecordsUnshareResponse message, length delimited. Does not implicitly {@link Records.RecordsUnshareResponse.verify|verify} messages. + * Encodes the specified GetRecordDataWithAccessInfoRequest message, length delimited. Does not implicitly {@link Records.GetRecordDataWithAccessInfoRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordsUnshareResponse + * @memberof Records.GetRecordDataWithAccessInfoRequest * @static - * @param {Records.IRecordsUnshareResponse} message RecordsUnshareResponse message or plain object to encode + * @param {Records.IGetRecordDataWithAccessInfoRequest} message GetRecordDataWithAccessInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsUnshareResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetRecordDataWithAccessInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordsUnshareResponse message from the specified reader or buffer. + * Decodes a GetRecordDataWithAccessInfoRequest message from the specified reader or buffer. * @function decode - * @memberof Records.RecordsUnshareResponse + * @memberof Records.GetRecordDataWithAccessInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordsUnshareResponse} RecordsUnshareResponse + * @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 */ - RecordsUnshareResponse.decode = function decode(reader, length) { + GetRecordDataWithAccessInfoRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetRecordDataWithAccessInfoRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.sharedFolders && message.sharedFolders.length)) - message.sharedFolders = []; - message.sharedFolders.push($root.Records.RecordsUnshareFolderStatus.decode(reader, reader.uint32())); + message.clientTime = reader.int64(); break; } case 2: { - if (!(message.users && message.users.length)) - message.users = []; - message.users.push($root.Records.RecordsUnshareUserStatus.decode(reader, reader.uint32())); + if (!(message.recordUid && message.recordUid.length)) + message.recordUid = []; + message.recordUid.push(reader.bytes()); + break; + } + case 3: { + message.recordDetailsInclude = reader.int32(); break; } default: @@ -191921,166 +193422,202 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordsUnshareResponse message from the specified reader or buffer, length delimited. + * Decodes a GetRecordDataWithAccessInfoRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordsUnshareResponse + * @memberof Records.GetRecordDataWithAccessInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsUnshareResponse} RecordsUnshareResponse + * @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 */ - RecordsUnshareResponse.decodeDelimited = function decodeDelimited(reader) { + GetRecordDataWithAccessInfoRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordsUnshareResponse message. + * Verifies a GetRecordDataWithAccessInfoRequest message. * @function verify - * @memberof Records.RecordsUnshareResponse + * @memberof Records.GetRecordDataWithAccessInfoRequest * @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) { + GetRecordDataWithAccessInfoRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "sharedFolders." + 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.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.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]); - if (error) - return "users." + error; + 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 RecordsUnshareResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetRecordDataWithAccessInfoRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordsUnshareResponse + * @memberof Records.GetRecordDataWithAccessInfoRequest * @static * @param {Object.} object Plain object - * @returns {Records.RecordsUnshareResponse} RecordsUnshareResponse + * @returns {Records.GetRecordDataWithAccessInfoRequest} GetRecordDataWithAccessInfoRequest */ - RecordsUnshareResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsUnshareResponse) + GetRecordDataWithAccessInfoRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Records.GetRecordDataWithAccessInfoRequest) return object; - let message = new $root.Records.RecordsUnshareResponse(); - if (object.sharedFolders) { - if (!Array.isArray(object.sharedFolders)) - throw TypeError(".Records.RecordsUnshareResponse.sharedFolders: array expected"); - message.sharedFolders = []; - for (let i = 0; i < object.sharedFolders.length; ++i) { - if (typeof object.sharedFolders[i] !== "object") - throw TypeError(".Records.RecordsUnshareResponse.sharedFolders: object expected"); - message.sharedFolders[i] = $root.Records.RecordsUnshareFolderStatus.fromObject(object.sharedFolders[i]); - } + let message = new $root.Records.GetRecordDataWithAccessInfoRequest(); + if (object.clientTime != null) + if ($util.Long) + (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = false; + else if (typeof object.clientTime === "string") + message.clientTime = parseInt(object.clientTime, 10); + else if (typeof object.clientTime === "number") + message.clientTime = object.clientTime; + else if (typeof object.clientTime === "object") + message.clientTime = new $util.LongBits(object.clientTime.low >>> 0, object.clientTime.high >>> 0).toNumber(); + if (object.recordUid) { + if (!Array.isArray(object.recordUid)) + throw TypeError(".Records.GetRecordDataWithAccessInfoRequest.recordUid: array expected"); + message.recordUid = []; + for (let i = 0; i < object.recordUid.length; ++i) + if (typeof object.recordUid[i] === "string") + $util.base64.decode(object.recordUid[i], message.recordUid[i] = $util.newBuffer($util.base64.length(object.recordUid[i])), 0); + else if (object.recordUid[i].length >= 0) + message.recordUid[i] = object.recordUid[i]; } - if (object.users) { - if (!Array.isArray(object.users)) - throw TypeError(".Records.RecordsUnshareResponse.users: array expected"); - message.users = []; - for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".Records.RecordsUnshareResponse.users: object expected"); - message.users[i] = $root.Records.RecordsUnshareUserStatus.fromObject(object.users[i]); + switch (object.recordDetailsInclude) { + default: + if (typeof object.recordDetailsInclude === "number") { + message.recordDetailsInclude = object.recordDetailsInclude; + break; } + break; + case "DATA_PLUS_SHARE": + case 0: + message.recordDetailsInclude = 0; + break; + case "DATA_ONLY": + case 1: + message.recordDetailsInclude = 1; + break; + case "SHARE_ONLY": + case 2: + message.recordDetailsInclude = 2; + break; } return message; }; /** - * Creates a plain object from a RecordsUnshareResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetRecordDataWithAccessInfoRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordsUnshareResponse + * @memberof Records.GetRecordDataWithAccessInfoRequest * @static - * @param {Records.RecordsUnshareResponse} message RecordsUnshareResponse + * @param {Records.GetRecordDataWithAccessInfoRequest} message GetRecordDataWithAccessInfoRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsUnshareResponse.toObject = function toObject(message, options) { + GetRecordDataWithAccessInfoRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.sharedFolders = []; - object.users = []; - } - if (message.sharedFolders && message.sharedFolders.length) { - object.sharedFolders = []; - for (let j = 0; j < message.sharedFolders.length; ++j) - object.sharedFolders[j] = $root.Records.RecordsUnshareFolderStatus.toObject(message.sharedFolders[j], options); + if (options.arrays || options.defaults) + object.recordUid = []; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.clientTime = options.longs === String ? "0" : 0; + object.recordDetailsInclude = options.enums === String ? "DATA_PLUS_SHARE" : 0; } - if (message.users && message.users.length) { - object.users = []; - for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.Records.RecordsUnshareUserStatus.toObject(message.users[j], options); + if (message.clientTime != null && message.hasOwnProperty("clientTime")) + if (typeof message.clientTime === "number") + object.clientTime = options.longs === String ? String(message.clientTime) : message.clientTime; + else + object.clientTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientTime) : options.longs === Number ? new $util.LongBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0).toNumber() : message.clientTime; + if (message.recordUid && message.recordUid.length) { + object.recordUid = []; + 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")) + object.recordDetailsInclude = options.enums === String ? $root.Records.RecordDetailsInclude[message.recordDetailsInclude] === undefined ? message.recordDetailsInclude : $root.Records.RecordDetailsInclude[message.recordDetailsInclude] : message.recordDetailsInclude; return object; }; /** - * Converts this RecordsUnshareResponse to JSON. + * Converts this GetRecordDataWithAccessInfoRequest to JSON. * @function toJSON - * @memberof Records.RecordsUnshareResponse + * @memberof Records.GetRecordDataWithAccessInfoRequest * @instance * @returns {Object.} JSON object */ - RecordsUnshareResponse.prototype.toJSON = function toJSON() { + GetRecordDataWithAccessInfoRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordsUnshareResponse + * Gets the default type url for GetRecordDataWithAccessInfoRequest * @function getTypeUrl - * @memberof Records.RecordsUnshareResponse + * @memberof Records.GetRecordDataWithAccessInfoRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordsUnshareResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetRecordDataWithAccessInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordsUnshareResponse"; + return typeUrlPrefix + "/Records.GetRecordDataWithAccessInfoRequest"; }; - return RecordsUnshareResponse; + return GetRecordDataWithAccessInfoRequest; })(); - Records.RecordsUnshareFolder = (function() { + Records.UserPermission = (function() { /** - * Properties of a RecordsUnshareFolder. + * Properties of a UserPermission. * @memberof Records - * @interface IRecordsUnshareFolder - * @property {Uint8Array|null} [recordUid] RecordsUnshareFolder recordUid - * @property {Uint8Array|null} [sharedFolderUid] RecordsUnshareFolder sharedFolderUid + * @interface IUserPermission + * @property {string|null} [username] UserPermission username + * @property {boolean|null} [owner] UserPermission owner + * @property {boolean|null} [shareAdmin] UserPermission shareAdmin + * @property {boolean|null} [sharable] UserPermission sharable + * @property {boolean|null} [editable] UserPermission editable + * @property {boolean|null} [awaitingApproval] UserPermission awaitingApproval + * @property {number|Long|null} [expiration] UserPermission expiration + * @property {Uint8Array|null} [accountUid] UserPermission accountUid + * @property {Records.TimerNotificationType|null} [timerNotificationType] UserPermission timerNotificationType + * @property {boolean|null} [rotateOnExpiration] UserPermission rotateOnExpiration */ /** - * Constructs a new RecordsUnshareFolder. + * Constructs a new UserPermission. * @memberof Records - * @classdesc Represents a RecordsUnshareFolder. - * @implements IRecordsUnshareFolder + * @classdesc Represents a UserPermission. + * @implements IUserPermission * @constructor - * @param {Records.IRecordsUnshareFolder=} [properties] Properties to set + * @param {Records.IUserPermission=} [properties] Properties to set */ - function RecordsUnshareFolder(properties) { + function UserPermission(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -192088,89 +193625,201 @@ export const Records = $root.Records = (() => { } /** - * RecordsUnshareFolder recordUid. - * @member {Uint8Array} recordUid - * @memberof Records.RecordsUnshareFolder + * UserPermission username. + * @member {string} username + * @memberof Records.UserPermission * @instance */ - RecordsUnshareFolder.prototype.recordUid = $util.newBuffer([]); + UserPermission.prototype.username = ""; /** - * RecordsUnshareFolder sharedFolderUid. - * @member {Uint8Array} sharedFolderUid - * @memberof Records.RecordsUnshareFolder + * UserPermission owner. + * @member {boolean} owner + * @memberof Records.UserPermission * @instance */ - RecordsUnshareFolder.prototype.sharedFolderUid = $util.newBuffer([]); + UserPermission.prototype.owner = false; /** - * Creates a new RecordsUnshareFolder instance using the specified properties. + * UserPermission shareAdmin. + * @member {boolean} shareAdmin + * @memberof Records.UserPermission + * @instance + */ + UserPermission.prototype.shareAdmin = false; + + /** + * UserPermission sharable. + * @member {boolean} sharable + * @memberof Records.UserPermission + * @instance + */ + UserPermission.prototype.sharable = false; + + /** + * UserPermission editable. + * @member {boolean} editable + * @memberof Records.UserPermission + * @instance + */ + UserPermission.prototype.editable = false; + + /** + * UserPermission awaitingApproval. + * @member {boolean} awaitingApproval + * @memberof Records.UserPermission + * @instance + */ + UserPermission.prototype.awaitingApproval = false; + + /** + * UserPermission expiration. + * @member {number|Long} expiration + * @memberof Records.UserPermission + * @instance + */ + UserPermission.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * UserPermission accountUid. + * @member {Uint8Array} accountUid + * @memberof Records.UserPermission + * @instance + */ + UserPermission.prototype.accountUid = $util.newBuffer([]); + + /** + * UserPermission timerNotificationType. + * @member {Records.TimerNotificationType} timerNotificationType + * @memberof Records.UserPermission + * @instance + */ + UserPermission.prototype.timerNotificationType = 0; + + /** + * UserPermission rotateOnExpiration. + * @member {boolean} rotateOnExpiration + * @memberof Records.UserPermission + * @instance + */ + UserPermission.prototype.rotateOnExpiration = false; + + /** + * Creates a new UserPermission instance using the specified properties. * @function create - * @memberof Records.RecordsUnshareFolder + * @memberof Records.UserPermission * @static - * @param {Records.IRecordsUnshareFolder=} [properties] Properties to set - * @returns {Records.RecordsUnshareFolder} RecordsUnshareFolder instance + * @param {Records.IUserPermission=} [properties] Properties to set + * @returns {Records.UserPermission} UserPermission instance */ - RecordsUnshareFolder.create = function create(properties) { - return new RecordsUnshareFolder(properties); + UserPermission.create = function create(properties) { + return new UserPermission(properties); }; /** - * Encodes the specified RecordsUnshareFolder message. Does not implicitly {@link Records.RecordsUnshareFolder.verify|verify} messages. + * Encodes the specified UserPermission message. Does not implicitly {@link Records.UserPermission.verify|verify} messages. * @function encode - * @memberof Records.RecordsUnshareFolder + * @memberof Records.UserPermission * @static - * @param {Records.IRecordsUnshareFolder} message RecordsUnshareFolder message or plain object to encode + * @param {Records.IUserPermission} message UserPermission message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsUnshareFolder.encode = function encode(message, writer) { + UserPermission.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sharedFolderUid); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.owner); + if (message.shareAdmin != null && Object.hasOwnProperty.call(message, "shareAdmin")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.shareAdmin); + if (message.sharable != null && Object.hasOwnProperty.call(message, "sharable")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.sharable); + if (message.editable != null && Object.hasOwnProperty.call(message, "editable")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.editable); + if (message.awaitingApproval != null && Object.hasOwnProperty.call(message, "awaitingApproval")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.awaitingApproval); + if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.expiration); + if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) + writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.accountUid); + if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.timerNotificationType); + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.rotateOnExpiration); return writer; }; /** - * Encodes the specified RecordsUnshareFolder message, length delimited. Does not implicitly {@link Records.RecordsUnshareFolder.verify|verify} messages. + * Encodes the specified UserPermission message, length delimited. Does not implicitly {@link Records.UserPermission.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordsUnshareFolder + * @memberof Records.UserPermission * @static - * @param {Records.IRecordsUnshareFolder} message RecordsUnshareFolder message or plain object to encode + * @param {Records.IUserPermission} message UserPermission message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsUnshareFolder.encodeDelimited = function encodeDelimited(message, writer) { + UserPermission.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordsUnshareFolder message from the specified reader or buffer. + * Decodes a UserPermission message from the specified reader or buffer. * @function decode - * @memberof Records.RecordsUnshareFolder + * @memberof Records.UserPermission * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordsUnshareFolder} RecordsUnshareFolder + * @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 */ - RecordsUnshareFolder.decode = function decode(reader, length) { + UserPermission.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareFolder(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.UserPermission(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + message.username = reader.string(); break; } case 2: { - message.sharedFolderUid = reader.bytes(); + message.owner = reader.bool(); + break; + } + case 3: { + message.shareAdmin = reader.bool(); + break; + } + case 4: { + message.sharable = reader.bool(); + break; + } + case 5: { + message.editable = reader.bool(); + break; + } + case 6: { + message.awaitingApproval = reader.bool(); + break; + } + case 7: { + message.expiration = reader.int64(); + break; + } + case 8: { + message.accountUid = reader.bytes(); + break; + } + case 9: { + message.timerNotificationType = reader.int32(); + break; + } + case 10: { + message.rotateOnExpiration = reader.bool(); break; } default: @@ -192182,150 +193831,248 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordsUnshareFolder message from the specified reader or buffer, length delimited. + * Decodes a UserPermission message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordsUnshareFolder + * @memberof Records.UserPermission * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsUnshareFolder} RecordsUnshareFolder + * @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 */ - RecordsUnshareFolder.decodeDelimited = function decodeDelimited(reader) { + UserPermission.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordsUnshareFolder message. + * Verifies a UserPermission message. * @function verify - * @memberof Records.RecordsUnshareFolder + * @memberof Records.UserPermission * @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) { + UserPermission.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.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.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 RecordsUnshareFolder message from a plain object. Also converts values to their respective internal types. + * Creates a UserPermission message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordsUnshareFolder + * @memberof Records.UserPermission * @static * @param {Object.} object Plain object - * @returns {Records.RecordsUnshareFolder} RecordsUnshareFolder + * @returns {Records.UserPermission} UserPermission */ - RecordsUnshareFolder.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsUnshareFolder) + UserPermission.fromObject = function fromObject(object) { + if (object instanceof $root.Records.UserPermission) return object; - let message = new $root.Records.RecordsUnshareFolder(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + let message = new $root.Records.UserPermission(); + if (object.username != null) + message.username = String(object.username); + if (object.owner != null) + message.owner = Boolean(object.owner); + if (object.shareAdmin != null) + message.shareAdmin = Boolean(object.shareAdmin); + if (object.sharable != null) + message.sharable = Boolean(object.sharable); + if (object.editable != null) + message.editable = Boolean(object.editable); + if (object.awaitingApproval != null) + message.awaitingApproval = Boolean(object.awaitingApproval); + if (object.expiration != null) + if ($util.Long) + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === "string") + message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === "number") + message.expiration = object.expiration; + else if (typeof object.expiration === "object") + message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if (object.accountUid != null) + if (typeof object.accountUid === "string") + $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); + else if (object.accountUid.length >= 0) + message.accountUid = object.accountUid; + switch (object.timerNotificationType) { + default: + if (typeof object.timerNotificationType === "number") { + message.timerNotificationType = object.timerNotificationType; + break; + } + break; + case "NOTIFICATION_OFF": + case 0: + message.timerNotificationType = 0; + break; + case "NOTIFY_OWNER": + case 1: + message.timerNotificationType = 1; + break; + case "NOTIFY_PRIVILEGED_USERS": + case 2: + message.timerNotificationType = 2; + break; + } + if (object.rotateOnExpiration != null) + message.rotateOnExpiration = Boolean(object.rotateOnExpiration); return message; }; /** - * Creates a plain object from a RecordsUnshareFolder message. Also converts values to other types if specified. + * Creates a plain object from a UserPermission message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordsUnshareFolder + * @memberof Records.UserPermission * @static - * @param {Records.RecordsUnshareFolder} message RecordsUnshareFolder + * @param {Records.UserPermission} message UserPermission * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsUnshareFolder.toObject = function toObject(message, options) { + UserPermission.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { + object.username = ""; + object.owner = false; + object.shareAdmin = false; + object.sharable = false; + object.editable = false; + object.awaitingApproval = false; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.expiration = options.longs === String ? "0" : 0; if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if (options.bytes === String) - object.sharedFolderUid = ""; + object.accountUid = ""; else { - object.sharedFolderUid = []; + object.accountUid = []; if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + object.accountUid = $util.newBuffer(object.accountUid); } + object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; + object.rotateOnExpiration = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.owner != null && message.hasOwnProperty("owner")) + object.owner = message.owner; + if (message.shareAdmin != null && message.hasOwnProperty("shareAdmin")) + object.shareAdmin = message.shareAdmin; + if (message.sharable != null && message.hasOwnProperty("sharable")) + object.sharable = message.sharable; + if (message.editable != null && message.hasOwnProperty("editable")) + object.editable = message.editable; + if (message.awaitingApproval != null && message.hasOwnProperty("awaitingApproval")) + object.awaitingApproval = message.awaitingApproval; + if (message.expiration != null && message.hasOwnProperty("expiration")) + 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")) + 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")) + 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")) + object.rotateOnExpiration = message.rotateOnExpiration; return object; }; /** - * Converts this RecordsUnshareFolder to JSON. + * Converts this UserPermission to JSON. * @function toJSON - * @memberof Records.RecordsUnshareFolder + * @memberof Records.UserPermission * @instance * @returns {Object.} JSON object */ - RecordsUnshareFolder.prototype.toJSON = function toJSON() { + UserPermission.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordsUnshareFolder + * Gets the default type url for UserPermission * @function getTypeUrl - * @memberof Records.RecordsUnshareFolder + * @memberof Records.UserPermission * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordsUnshareFolder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UserPermission.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordsUnshareFolder"; + return typeUrlPrefix + "/Records.UserPermission"; }; - return RecordsUnshareFolder; + return UserPermission; })(); - Records.RecordsUnshareUser = (function() { + Records.SharedFolderPermission = (function() { /** - * Properties of a RecordsUnshareUser. + * Properties of a SharedFolderPermission. * @memberof Records - * @interface IRecordsUnshareUser - * @property {Uint8Array|null} [recordUid] RecordsUnshareUser recordUid - * @property {Uint8Array|null} [accountUid] RecordsUnshareUser accountUid + * @interface ISharedFolderPermission + * @property {Uint8Array|null} [sharedFolderUid] SharedFolderPermission sharedFolderUid + * @property {boolean|null} [resharable] SharedFolderPermission resharable + * @property {boolean|null} [editable] SharedFolderPermission editable + * @property {number|Long|null} [revision] SharedFolderPermission revision + * @property {number|Long|null} [expiration] SharedFolderPermission expiration + * @property {Records.TimerNotificationType|null} [timerNotificationType] SharedFolderPermission timerNotificationType + * @property {boolean|null} [rotateOnExpiration] SharedFolderPermission rotateOnExpiration */ /** - * Constructs a new RecordsUnshareUser. + * Constructs a new SharedFolderPermission. * @memberof Records - * @classdesc Represents a RecordsUnshareUser. - * @implements IRecordsUnshareUser + * @classdesc Represents a SharedFolderPermission. + * @implements ISharedFolderPermission * @constructor - * @param {Records.IRecordsUnshareUser=} [properties] Properties to set + * @param {Records.ISharedFolderPermission=} [properties] Properties to set */ - function RecordsUnshareUser(properties) { + function SharedFolderPermission(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -192333,89 +194080,159 @@ export const Records = $root.Records = (() => { } /** - * RecordsUnshareUser recordUid. - * @member {Uint8Array} recordUid - * @memberof Records.RecordsUnshareUser + * SharedFolderPermission sharedFolderUid. + * @member {Uint8Array} sharedFolderUid + * @memberof Records.SharedFolderPermission * @instance */ - RecordsUnshareUser.prototype.recordUid = $util.newBuffer([]); + SharedFolderPermission.prototype.sharedFolderUid = $util.newBuffer([]); /** - * RecordsUnshareUser accountUid. - * @member {Uint8Array} accountUid - * @memberof Records.RecordsUnshareUser + * SharedFolderPermission resharable. + * @member {boolean} resharable + * @memberof Records.SharedFolderPermission * @instance */ - RecordsUnshareUser.prototype.accountUid = $util.newBuffer([]); + SharedFolderPermission.prototype.resharable = false; /** - * Creates a new RecordsUnshareUser instance using the specified properties. + * SharedFolderPermission editable. + * @member {boolean} editable + * @memberof Records.SharedFolderPermission + * @instance + */ + SharedFolderPermission.prototype.editable = false; + + /** + * SharedFolderPermission revision. + * @member {number|Long} revision + * @memberof Records.SharedFolderPermission + * @instance + */ + SharedFolderPermission.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SharedFolderPermission expiration. + * @member {number|Long} expiration + * @memberof Records.SharedFolderPermission + * @instance + */ + SharedFolderPermission.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SharedFolderPermission timerNotificationType. + * @member {Records.TimerNotificationType} timerNotificationType + * @memberof Records.SharedFolderPermission + * @instance + */ + SharedFolderPermission.prototype.timerNotificationType = 0; + + /** + * SharedFolderPermission rotateOnExpiration. + * @member {boolean} rotateOnExpiration + * @memberof Records.SharedFolderPermission + * @instance + */ + SharedFolderPermission.prototype.rotateOnExpiration = false; + + /** + * Creates a new SharedFolderPermission instance using the specified properties. * @function create - * @memberof Records.RecordsUnshareUser + * @memberof Records.SharedFolderPermission * @static - * @param {Records.IRecordsUnshareUser=} [properties] Properties to set - * @returns {Records.RecordsUnshareUser} RecordsUnshareUser instance + * @param {Records.ISharedFolderPermission=} [properties] Properties to set + * @returns {Records.SharedFolderPermission} SharedFolderPermission instance */ - RecordsUnshareUser.create = function create(properties) { - return new RecordsUnshareUser(properties); + SharedFolderPermission.create = function create(properties) { + return new SharedFolderPermission(properties); }; /** - * Encodes the specified RecordsUnshareUser message. Does not implicitly {@link Records.RecordsUnshareUser.verify|verify} messages. + * Encodes the specified SharedFolderPermission message. Does not implicitly {@link Records.SharedFolderPermission.verify|verify} messages. * @function encode - * @memberof Records.RecordsUnshareUser + * @memberof Records.SharedFolderPermission * @static - * @param {Records.IRecordsUnshareUser} message RecordsUnshareUser message or plain object to encode + * @param {Records.ISharedFolderPermission} message SharedFolderPermission message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsUnshareUser.encode = function encode(message, writer) { + SharedFolderPermission.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.accountUid); - 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) { + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); + if (message.resharable != null && Object.hasOwnProperty.call(message, "resharable")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.resharable); + if (message.editable != null && Object.hasOwnProperty.call(message, "editable")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.editable); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.revision); + if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.expiration); + if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.timerNotificationType); + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.rotateOnExpiration); + 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 RecordsUnshareUser message from the specified reader or buffer. + * Decodes a SharedFolderPermission message from the specified reader or buffer. * @function decode - * @memberof Records.RecordsUnshareUser + * @memberof Records.SharedFolderPermission * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordsUnshareUser} RecordsUnshareUser + * @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 */ - RecordsUnshareUser.decode = function decode(reader, length) { + SharedFolderPermission.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareUser(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.SharedFolderPermission(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + message.sharedFolderUid = reader.bytes(); break; } case 2: { - message.accountUid = reader.bytes(); + message.resharable = reader.bool(); + break; + } + case 3: { + message.editable = reader.bool(); + break; + } + case 4: { + message.revision = reader.int64(); + break; + } + case 5: { + message.expiration = reader.int64(); + break; + } + case 6: { + message.timerNotificationType = reader.int32(); + break; + } + case 7: { + message.rotateOnExpiration = reader.bool(); break; } default: @@ -192427,150 +194244,247 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordsUnshareUser message from the specified reader or buffer, length delimited. + * Decodes a SharedFolderPermission message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordsUnshareUser + * @memberof Records.SharedFolderPermission * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsUnshareUser} RecordsUnshareUser + * @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 */ - RecordsUnshareUser.decodeDelimited = function decodeDelimited(reader) { + SharedFolderPermission.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordsUnshareUser message. + * Verifies a SharedFolderPermission message. * @function verify - * @memberof Records.RecordsUnshareUser + * @memberof Records.SharedFolderPermission * @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) { + SharedFolderPermission.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: 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.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 RecordsUnshareUser message from a plain object. Also converts values to their respective internal types. + * Creates a SharedFolderPermission message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordsUnshareUser + * @memberof Records.SharedFolderPermission * @static * @param {Object.} object Plain object - * @returns {Records.RecordsUnshareUser} RecordsUnshareUser + * @returns {Records.SharedFolderPermission} SharedFolderPermission */ - RecordsUnshareUser.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsUnshareUser) + SharedFolderPermission.fromObject = function fromObject(object) { + if (object instanceof $root.Records.SharedFolderPermission) return object; - let message = new $root.Records.RecordsUnshareUser(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; + let message = new $root.Records.SharedFolderPermission(); + if (object.sharedFolderUid != null) + if (typeof object.sharedFolderUid === "string") + $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); + else if (object.sharedFolderUid.length >= 0) + message.sharedFolderUid = object.sharedFolderUid; + if (object.resharable != null) + message.resharable = Boolean(object.resharable); + if (object.editable != null) + message.editable = Boolean(object.editable); + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if (object.expiration != null) + if ($util.Long) + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === "string") + message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === "number") + message.expiration = object.expiration; + else if (typeof object.expiration === "object") + message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + switch (object.timerNotificationType) { + default: + if (typeof object.timerNotificationType === "number") { + message.timerNotificationType = object.timerNotificationType; + break; + } + break; + case "NOTIFICATION_OFF": + case 0: + message.timerNotificationType = 0; + break; + case "NOTIFY_OWNER": + case 1: + message.timerNotificationType = 1; + break; + case "NOTIFY_PRIVILEGED_USERS": + case 2: + message.timerNotificationType = 2; + break; + } + if (object.rotateOnExpiration != null) + message.rotateOnExpiration = Boolean(object.rotateOnExpiration); return message; }; /** - * Creates a plain object from a RecordsUnshareUser message. Also converts values to other types if specified. + * Creates a plain object from a SharedFolderPermission message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordsUnshareUser + * @memberof Records.SharedFolderPermission * @static - * @param {Records.RecordsUnshareUser} message RecordsUnshareUser + * @param {Records.SharedFolderPermission} message SharedFolderPermission * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsUnshareUser.toObject = function toObject(message, options) { + SharedFolderPermission.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if (options.bytes === String) - object.accountUid = ""; + object.sharedFolderUid = ""; else { - object.accountUid = []; + object.sharedFolderUid = []; if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); + object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } + object.resharable = false; + object.editable = false; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.expiration = options.longs === String ? "0" : 0; + object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; + object.rotateOnExpiration = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; + if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; + if (message.resharable != null && message.hasOwnProperty("resharable")) + object.resharable = message.resharable; + if (message.editable != null && message.hasOwnProperty("editable")) + object.editable = message.editable; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof message.revision === "number") + object.revision = options.longs === String ? String(message.revision) : message.revision; + else + object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + if (message.expiration != null && message.hasOwnProperty("expiration")) + if (typeof message.expiration === "number") + object.expiration = options.longs === String ? String(message.expiration) : message.expiration; + else + object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; + if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) + object.timerNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.Records.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; + if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + object.rotateOnExpiration = message.rotateOnExpiration; return object; }; /** - * Converts this RecordsUnshareUser to JSON. + * Converts this SharedFolderPermission to JSON. * @function toJSON - * @memberof Records.RecordsUnshareUser + * @memberof Records.SharedFolderPermission * @instance * @returns {Object.} JSON object */ - RecordsUnshareUser.prototype.toJSON = function toJSON() { + SharedFolderPermission.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordsUnshareUser + * Gets the default type url for SharedFolderPermission * @function getTypeUrl - * @memberof Records.RecordsUnshareUser + * @memberof Records.SharedFolderPermission * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordsUnshareUser.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SharedFolderPermission.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordsUnshareUser"; + return typeUrlPrefix + "/Records.SharedFolderPermission"; }; - return RecordsUnshareUser; + return SharedFolderPermission; })(); - Records.RecordsUnshareFolderStatus = (function() { + Records.RecordData = (function() { /** - * Properties of a RecordsUnshareFolderStatus. + * Properties of a RecordData. * @memberof Records - * @interface IRecordsUnshareFolderStatus - * @property {Uint8Array|null} [recordUid] RecordsUnshareFolderStatus recordUid - * @property {Uint8Array|null} [sharedFolderUid] RecordsUnshareFolderStatus sharedFolderUid + * @interface IRecordData + * @property {number|Long|null} [revision] RecordData revision + * @property {number|null} [version] RecordData version + * @property {boolean|null} [shared] RecordData shared + * @property {string|null} [encryptedRecordData] RecordData encryptedRecordData + * @property {string|null} [encryptedExtraData] RecordData encryptedExtraData + * @property {number|Long|null} [clientModifiedTime] RecordData clientModifiedTime + * @property {string|null} [nonSharedData] RecordData nonSharedData + * @property {Array.|null} [linkedRecordData] RecordData linkedRecordData + * @property {Array.|null} [fileId] RecordData fileId + * @property {number|Long|null} [fileSize] RecordData fileSize + * @property {number|Long|null} [thumbnailSize] RecordData thumbnailSize + * @property {Records.RecordKeyType|null} [recordKeyType] RecordData recordKeyType + * @property {Uint8Array|null} [recordKey] RecordData recordKey + * @property {Uint8Array|null} [recordUid] RecordData recordUid */ /** - * Constructs a new RecordsUnshareFolderStatus. + * Constructs a new RecordData. * @memberof Records - * @classdesc Represents a RecordsUnshareFolderStatus. - * @implements IRecordsUnshareFolderStatus + * @classdesc Represents a RecordData. + * @implements IRecordData * @constructor - * @param {Records.IRecordsUnshareFolderStatus=} [properties] Properties to set + * @param {Records.IRecordData=} [properties] Properties to set */ - function RecordsUnshareFolderStatus(properties) { + function RecordData(properties) { + this.linkedRecordData = []; + this.fileId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -192578,89 +194492,263 @@ export const Records = $root.Records = (() => { } /** - * RecordsUnshareFolderStatus recordUid. - * @member {Uint8Array} recordUid - * @memberof Records.RecordsUnshareFolderStatus + * RecordData revision. + * @member {number|Long} revision + * @memberof Records.RecordData * @instance */ - RecordsUnshareFolderStatus.prototype.recordUid = $util.newBuffer([]); + RecordData.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * RecordsUnshareFolderStatus sharedFolderUid. - * @member {Uint8Array} sharedFolderUid - * @memberof Records.RecordsUnshareFolderStatus + * RecordData version. + * @member {number} version + * @memberof Records.RecordData * @instance */ - RecordsUnshareFolderStatus.prototype.sharedFolderUid = $util.newBuffer([]); + RecordData.prototype.version = 0; /** - * Creates a new RecordsUnshareFolderStatus instance using the specified properties. + * RecordData shared. + * @member {boolean} shared + * @memberof Records.RecordData + * @instance + */ + RecordData.prototype.shared = false; + + /** + * RecordData encryptedRecordData. + * @member {string} encryptedRecordData + * @memberof Records.RecordData + * @instance + */ + RecordData.prototype.encryptedRecordData = ""; + + /** + * RecordData encryptedExtraData. + * @member {string} encryptedExtraData + * @memberof Records.RecordData + * @instance + */ + RecordData.prototype.encryptedExtraData = ""; + + /** + * RecordData clientModifiedTime. + * @member {number|Long} clientModifiedTime + * @memberof Records.RecordData + * @instance + */ + RecordData.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * RecordData nonSharedData. + * @member {string} nonSharedData + * @memberof Records.RecordData + * @instance + */ + RecordData.prototype.nonSharedData = ""; + + /** + * RecordData linkedRecordData. + * @member {Array.} linkedRecordData + * @memberof Records.RecordData + * @instance + */ + RecordData.prototype.linkedRecordData = $util.emptyArray; + + /** + * RecordData fileId. + * @member {Array.} fileId + * @memberof Records.RecordData + * @instance + */ + RecordData.prototype.fileId = $util.emptyArray; + + /** + * RecordData fileSize. + * @member {number|Long} fileSize + * @memberof Records.RecordData + * @instance + */ + RecordData.prototype.fileSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * RecordData thumbnailSize. + * @member {number|Long} thumbnailSize + * @memberof Records.RecordData + * @instance + */ + RecordData.prototype.thumbnailSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * RecordData recordKeyType. + * @member {Records.RecordKeyType} recordKeyType + * @memberof Records.RecordData + * @instance + */ + RecordData.prototype.recordKeyType = 0; + + /** + * RecordData recordKey. + * @member {Uint8Array} recordKey + * @memberof Records.RecordData + * @instance + */ + RecordData.prototype.recordKey = $util.newBuffer([]); + + /** + * RecordData recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.RecordData + * @instance + */ + RecordData.prototype.recordUid = $util.newBuffer([]); + + /** + * Creates a new RecordData instance using the specified properties. * @function create - * @memberof Records.RecordsUnshareFolderStatus + * @memberof Records.RecordData * @static - * @param {Records.IRecordsUnshareFolderStatus=} [properties] Properties to set - * @returns {Records.RecordsUnshareFolderStatus} RecordsUnshareFolderStatus instance + * @param {Records.IRecordData=} [properties] Properties to set + * @returns {Records.RecordData} RecordData instance */ - RecordsUnshareFolderStatus.create = function create(properties) { - return new RecordsUnshareFolderStatus(properties); + RecordData.create = function create(properties) { + return new RecordData(properties); }; /** - * Encodes the specified RecordsUnshareFolderStatus message. Does not implicitly {@link Records.RecordsUnshareFolderStatus.verify|verify} messages. + * Encodes the specified RecordData message. Does not implicitly {@link Records.RecordData.verify|verify} messages. * @function encode - * @memberof Records.RecordsUnshareFolderStatus + * @memberof Records.RecordData * @static - * @param {Records.IRecordsUnshareFolderStatus} message RecordsUnshareFolderStatus message or plain object to encode + * @param {Records.IRecordData} message RecordData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsUnshareFolderStatus.encode = function encode(message, writer) { + RecordData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.revision); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.version); + if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.shared); + if (message.encryptedRecordData != null && Object.hasOwnProperty.call(message, "encryptedRecordData")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.encryptedRecordData); + if (message.encryptedExtraData != null && Object.hasOwnProperty.call(message, "encryptedExtraData")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.encryptedExtraData); + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.clientModifiedTime); + if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "nonSharedData")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.nonSharedData); + if (message.linkedRecordData != null && message.linkedRecordData.length) + for (let i = 0; i < message.linkedRecordData.length; ++i) + $root.Records.RecordData.encode(message.linkedRecordData[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.fileId != null && message.fileId.length) + for (let i = 0; i < message.fileId.length; ++i) + writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.fileId[i]); + if (message.fileSize != null && Object.hasOwnProperty.call(message, "fileSize")) + writer.uint32(/* id 10, wireType 0 =*/80).int64(message.fileSize); + if (message.thumbnailSize != null && Object.hasOwnProperty.call(message, "thumbnailSize")) + writer.uint32(/* id 11, wireType 0 =*/88).int64(message.thumbnailSize); + if (message.recordKeyType != null && Object.hasOwnProperty.call(message, "recordKeyType")) + writer.uint32(/* id 12, wireType 0 =*/96).int32(message.recordKeyType); + if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) + writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.recordKey); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sharedFolderUid); + writer.uint32(/* id 14, wireType 2 =*/114).bytes(message.recordUid); return writer; }; /** - * Encodes the specified RecordsUnshareFolderStatus message, length delimited. Does not implicitly {@link Records.RecordsUnshareFolderStatus.verify|verify} messages. + * Encodes the specified RecordData message, length delimited. Does not implicitly {@link Records.RecordData.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordsUnshareFolderStatus + * @memberof Records.RecordData * @static - * @param {Records.IRecordsUnshareFolderStatus} message RecordsUnshareFolderStatus message or plain object to encode + * @param {Records.IRecordData} message RecordData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsUnshareFolderStatus.encodeDelimited = function encodeDelimited(message, writer) { + RecordData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordsUnshareFolderStatus message from the specified reader or buffer. + * Decodes a RecordData message from the specified reader or buffer. * @function decode - * @memberof Records.RecordsUnshareFolderStatus + * @memberof Records.RecordData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordsUnshareFolderStatus} RecordsUnshareFolderStatus + * @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 */ - RecordsUnshareFolderStatus.decode = function decode(reader, length) { + RecordData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareFolderStatus(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + message.revision = reader.int64(); break; } case 2: { - message.sharedFolderUid = reader.bytes(); + message.version = reader.int32(); + break; + } + case 3: { + message.shared = reader.bool(); + break; + } + case 4: { + message.encryptedRecordData = reader.string(); + break; + } + case 5: { + message.encryptedExtraData = reader.string(); + break; + } + case 6: { + message.clientModifiedTime = reader.int64(); + break; + } + case 7: { + message.nonSharedData = reader.string(); + break; + } + case 8: { + if (!(message.linkedRecordData && message.linkedRecordData.length)) + message.linkedRecordData = []; + message.linkedRecordData.push($root.Records.RecordData.decode(reader, reader.uint32())); + break; + } + case 9: { + if (!(message.fileId && message.fileId.length)) + message.fileId = []; + message.fileId.push(reader.bytes()); + break; + } + case 10: { + message.fileSize = reader.int64(); + break; + } + case 11: { + message.thumbnailSize = reader.int64(); + break; + } + case 12: { + message.recordKeyType = reader.int32(); + break; + } + case 13: { + message.recordKey = reader.bytes(); + break; + } + case 14: { + message.recordUid = reader.bytes(); break; } default: @@ -192672,150 +194760,384 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordsUnshareFolderStatus message from the specified reader or buffer, length delimited. + * Decodes a RecordData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordsUnshareFolderStatus + * @memberof Records.RecordData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsUnshareFolderStatus} RecordsUnshareFolderStatus + * @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 */ - RecordsUnshareFolderStatus.decodeDelimited = function decodeDelimited(reader) { + RecordData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordsUnshareFolderStatus message. + * Verifies a RecordData message. * @function verify - * @memberof Records.RecordsUnshareFolderStatus + * @memberof Records.RecordData * @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) { + RecordData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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]); + 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"; - 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. + * Creates a RecordData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordsUnshareFolderStatus + * @memberof Records.RecordData * @static * @param {Object.} object Plain object - * @returns {Records.RecordsUnshareFolderStatus} RecordsUnshareFolderStatus + * @returns {Records.RecordData} RecordData */ - RecordsUnshareFolderStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsUnshareFolderStatus) + RecordData.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordData) return object; - let message = new $root.Records.RecordsUnshareFolderStatus(); + let message = new $root.Records.RecordData(); + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if (object.version != null) + message.version = object.version | 0; + if (object.shared != null) + message.shared = Boolean(object.shared); + if (object.encryptedRecordData != null) + message.encryptedRecordData = String(object.encryptedRecordData); + if (object.encryptedExtraData != null) + message.encryptedExtraData = String(object.encryptedExtraData); + if (object.clientModifiedTime != null) + if ($util.Long) + (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; + else if (typeof object.clientModifiedTime === "string") + message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); + else if (typeof object.clientModifiedTime === "number") + message.clientModifiedTime = object.clientModifiedTime; + else if (typeof object.clientModifiedTime === "object") + message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); + if (object.nonSharedData != null) + message.nonSharedData = String(object.nonSharedData); + if (object.linkedRecordData) { + if (!Array.isArray(object.linkedRecordData)) + throw TypeError(".Records.RecordData.linkedRecordData: array expected"); + message.linkedRecordData = []; + for (let i = 0; i < object.linkedRecordData.length; ++i) { + if (typeof object.linkedRecordData[i] !== "object") + throw TypeError(".Records.RecordData.linkedRecordData: object expected"); + message.linkedRecordData[i] = $root.Records.RecordData.fromObject(object.linkedRecordData[i]); + } + } + if (object.fileId) { + if (!Array.isArray(object.fileId)) + throw TypeError(".Records.RecordData.fileId: array expected"); + message.fileId = []; + for (let i = 0; i < object.fileId.length; ++i) + if (typeof object.fileId[i] === "string") + $util.base64.decode(object.fileId[i], message.fileId[i] = $util.newBuffer($util.base64.length(object.fileId[i])), 0); + else if (object.fileId[i].length >= 0) + message.fileId[i] = object.fileId[i]; + } + if (object.fileSize != null) + if ($util.Long) + (message.fileSize = $util.Long.fromValue(object.fileSize)).unsigned = false; + else if (typeof object.fileSize === "string") + message.fileSize = parseInt(object.fileSize, 10); + else if (typeof object.fileSize === "number") + message.fileSize = object.fileSize; + else if (typeof object.fileSize === "object") + message.fileSize = new $util.LongBits(object.fileSize.low >>> 0, object.fileSize.high >>> 0).toNumber(); + if (object.thumbnailSize != null) + if ($util.Long) + (message.thumbnailSize = $util.Long.fromValue(object.thumbnailSize)).unsigned = false; + else if (typeof object.thumbnailSize === "string") + message.thumbnailSize = parseInt(object.thumbnailSize, 10); + else if (typeof object.thumbnailSize === "number") + message.thumbnailSize = object.thumbnailSize; + else if (typeof object.thumbnailSize === "object") + message.thumbnailSize = new $util.LongBits(object.thumbnailSize.low >>> 0, object.thumbnailSize.high >>> 0).toNumber(); + switch (object.recordKeyType) { + default: + if (typeof object.recordKeyType === "number") { + message.recordKeyType = object.recordKeyType; + break; + } + break; + case "NO_KEY": + case 0: + message.recordKeyType = 0; + break; + case "ENCRYPTED_BY_DATA_KEY": + case 1: + message.recordKeyType = 1; + break; + case "ENCRYPTED_BY_PUBLIC_KEY": + case 2: + message.recordKeyType = 2; + break; + case "ENCRYPTED_BY_DATA_KEY_GCM": + case 3: + message.recordKeyType = 3; + break; + case "ENCRYPTED_BY_PUBLIC_KEY_ECC": + case 4: + message.recordKeyType = 4; + break; + case "ENCRYPTED_BY_ROOT_KEY_CBC": + case 5: + message.recordKeyType = 5; + break; + case "ENCRYPTED_BY_ROOT_KEY_GCM": + case 6: + message.recordKeyType = 6; + break; + } + if (object.recordKey != null) + if (typeof object.recordKey === "string") + $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); + else if (object.recordKey.length >= 0) + message.recordKey = object.recordKey; if (object.recordUid != null) if (typeof object.recordUid === "string") $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); else if (object.recordUid.length >= 0) message.recordUid = object.recordUid; - if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; return message; }; /** - * Creates a plain object from a RecordsUnshareFolderStatus message. Also converts values to other types if specified. + * Creates a plain object from a RecordData message. Also converts values to other types if specified. * @function toObject - * @memberof Records.RecordsUnshareFolderStatus + * @memberof Records.RecordData * @static - * @param {Records.RecordsUnshareFolderStatus} message RecordsUnshareFolderStatus + * @param {Records.RecordData} message RecordData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsUnshareFolderStatus.toObject = function toObject(message, options) { + RecordData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) { + object.linkedRecordData = []; + object.fileId = []; + } if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + object.version = 0; + object.shared = false; + object.encryptedRecordData = ""; + object.encryptedExtraData = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.clientModifiedTime = options.longs === String ? "0" : 0; + object.nonSharedData = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.fileSize = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.thumbnailSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.thumbnailSize = options.longs === String ? "0" : 0; + object.recordKeyType = options.enums === String ? "NO_KEY" : 0; if (options.bytes === String) - object.recordUid = ""; + object.recordKey = ""; else { - object.recordUid = []; + object.recordKey = []; if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + object.recordKey = $util.newBuffer(object.recordKey); } if (options.bytes === String) - object.sharedFolderUid = ""; + object.recordUid = ""; else { - object.sharedFolderUid = []; + object.recordUid = []; if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + object.recordUid = $util.newBuffer(object.recordUid); } } + if (message.revision != null && message.hasOwnProperty("revision")) + 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")) + object.version = message.version; + if (message.shared != null && message.hasOwnProperty("shared")) + object.shared = message.shared; + if (message.encryptedRecordData != null && message.hasOwnProperty("encryptedRecordData")) + object.encryptedRecordData = message.encryptedRecordData; + if (message.encryptedExtraData != null && message.hasOwnProperty("encryptedExtraData")) + object.encryptedExtraData = message.encryptedExtraData; + if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) + if (typeof message.clientModifiedTime === "number") + object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; + else + object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; + if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) + object.nonSharedData = message.nonSharedData; + if (message.linkedRecordData && message.linkedRecordData.length) { + object.linkedRecordData = []; + for (let j = 0; j < message.linkedRecordData.length; ++j) + object.linkedRecordData[j] = $root.Records.RecordData.toObject(message.linkedRecordData[j], options); + } + if (message.fileId && message.fileId.length) { + object.fileId = []; + 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 (typeof message.fileSize === "number") + object.fileSize = options.longs === String ? String(message.fileSize) : message.fileSize; + else + object.fileSize = options.longs === String ? $util.Long.prototype.toString.call(message.fileSize) : options.longs === Number ? new $util.LongBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0).toNumber() : message.fileSize; + if (message.thumbnailSize != null && message.hasOwnProperty("thumbnailSize")) + if (typeof 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")) + 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")) + 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")) 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")) - 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; }; /** - * Converts this RecordsUnshareFolderStatus to JSON. + * Converts this RecordData to JSON. * @function toJSON - * @memberof Records.RecordsUnshareFolderStatus + * @memberof Records.RecordData * @instance * @returns {Object.} JSON object */ - RecordsUnshareFolderStatus.prototype.toJSON = function toJSON() { + RecordData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordsUnshareFolderStatus + * Gets the default type url for RecordData * @function getTypeUrl - * @memberof Records.RecordsUnshareFolderStatus + * @memberof Records.RecordData * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordsUnshareFolderStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordsUnshareFolderStatus"; + return typeUrlPrefix + "/Records.RecordData"; }; - return RecordsUnshareFolderStatus; + return RecordData; })(); - Records.RecordsUnshareUserStatus = (function() { + Records.RecordDataWithAccessInfo = (function() { /** - * Properties of a RecordsUnshareUserStatus. + * Properties of a RecordDataWithAccessInfo. * @memberof Records - * @interface IRecordsUnshareUserStatus - * @property {Uint8Array|null} [recordUid] RecordsUnshareUserStatus recordUid - * @property {Uint8Array|null} [accountUid] RecordsUnshareUserStatus accountUid + * @interface IRecordDataWithAccessInfo + * @property {Uint8Array|null} [recordUid] RecordDataWithAccessInfo recordUid + * @property {Records.IRecordData|null} [recordData] RecordDataWithAccessInfo recordData + * @property {Array.|null} [userPermission] RecordDataWithAccessInfo userPermission + * @property {Array.|null} [sharedFolderPermission] RecordDataWithAccessInfo sharedFolderPermission */ /** - * Constructs a new RecordsUnshareUserStatus. + * Constructs a new RecordDataWithAccessInfo. * @memberof Records - * @classdesc Represents a RecordsUnshareUserStatus. - * @implements IRecordsUnshareUserStatus + * @classdesc Represents a RecordDataWithAccessInfo. + * @implements IRecordDataWithAccessInfo * @constructor - * @param {Records.IRecordsUnshareUserStatus=} [properties] Properties to set + * @param {Records.IRecordDataWithAccessInfo=} [properties] Properties to set */ - function RecordsUnshareUserStatus(properties) { + function RecordDataWithAccessInfo(properties) { + this.userPermission = []; + this.sharedFolderPermission = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -192823,80 +195145,102 @@ export const Records = $root.Records = (() => { } /** - * RecordsUnshareUserStatus recordUid. + * RecordDataWithAccessInfo recordUid. * @member {Uint8Array} recordUid - * @memberof Records.RecordsUnshareUserStatus + * @memberof Records.RecordDataWithAccessInfo * @instance */ - RecordsUnshareUserStatus.prototype.recordUid = $util.newBuffer([]); + RecordDataWithAccessInfo.prototype.recordUid = $util.newBuffer([]); /** - * RecordsUnshareUserStatus accountUid. - * @member {Uint8Array} accountUid - * @memberof Records.RecordsUnshareUserStatus + * RecordDataWithAccessInfo recordData. + * @member {Records.IRecordData|null|undefined} recordData + * @memberof Records.RecordDataWithAccessInfo * @instance */ - RecordsUnshareUserStatus.prototype.accountUid = $util.newBuffer([]); + RecordDataWithAccessInfo.prototype.recordData = null; /** - * Creates a new RecordsUnshareUserStatus instance using the specified properties. + * RecordDataWithAccessInfo userPermission. + * @member {Array.} userPermission + * @memberof Records.RecordDataWithAccessInfo + * @instance + */ + RecordDataWithAccessInfo.prototype.userPermission = $util.emptyArray; + + /** + * RecordDataWithAccessInfo sharedFolderPermission. + * @member {Array.} sharedFolderPermission + * @memberof Records.RecordDataWithAccessInfo + * @instance + */ + RecordDataWithAccessInfo.prototype.sharedFolderPermission = $util.emptyArray; + + /** + * Creates a new RecordDataWithAccessInfo instance using the specified properties. * @function create - * @memberof Records.RecordsUnshareUserStatus + * @memberof Records.RecordDataWithAccessInfo * @static - * @param {Records.IRecordsUnshareUserStatus=} [properties] Properties to set - * @returns {Records.RecordsUnshareUserStatus} RecordsUnshareUserStatus instance + * @param {Records.IRecordDataWithAccessInfo=} [properties] Properties to set + * @returns {Records.RecordDataWithAccessInfo} RecordDataWithAccessInfo instance */ - RecordsUnshareUserStatus.create = function create(properties) { - return new RecordsUnshareUserStatus(properties); + RecordDataWithAccessInfo.create = function create(properties) { + return new RecordDataWithAccessInfo(properties); }; /** - * Encodes the specified RecordsUnshareUserStatus message. Does not implicitly {@link Records.RecordsUnshareUserStatus.verify|verify} messages. + * Encodes the specified RecordDataWithAccessInfo message. Does not implicitly {@link Records.RecordDataWithAccessInfo.verify|verify} messages. * @function encode - * @memberof Records.RecordsUnshareUserStatus + * @memberof Records.RecordDataWithAccessInfo * @static - * @param {Records.IRecordsUnshareUserStatus} message RecordsUnshareUserStatus message or plain object to encode + * @param {Records.IRecordDataWithAccessInfo} message RecordDataWithAccessInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsUnshareUserStatus.encode = function encode(message, writer) { + RecordDataWithAccessInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.accountUid); + if (message.recordData != null && Object.hasOwnProperty.call(message, "recordData")) + $root.Records.RecordData.encode(message.recordData, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.userPermission != null && message.userPermission.length) + for (let i = 0; i < message.userPermission.length; ++i) + $root.Records.UserPermission.encode(message.userPermission[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.sharedFolderPermission != null && message.sharedFolderPermission.length) + for (let i = 0; i < message.sharedFolderPermission.length; ++i) + $root.Records.SharedFolderPermission.encode(message.sharedFolderPermission[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified RecordsUnshareUserStatus message, length delimited. Does not implicitly {@link Records.RecordsUnshareUserStatus.verify|verify} messages. + * Encodes the specified RecordDataWithAccessInfo message, length delimited. Does not implicitly {@link Records.RecordDataWithAccessInfo.verify|verify} messages. * @function encodeDelimited - * @memberof Records.RecordsUnshareUserStatus + * @memberof Records.RecordDataWithAccessInfo * @static - * @param {Records.IRecordsUnshareUserStatus} message RecordsUnshareUserStatus message or plain object to encode + * @param {Records.IRecordDataWithAccessInfo} message RecordDataWithAccessInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsUnshareUserStatus.encodeDelimited = function encodeDelimited(message, writer) { + RecordDataWithAccessInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordsUnshareUserStatus message from the specified reader or buffer. + * Decodes a RecordDataWithAccessInfo message from the specified reader or buffer. * @function decode - * @memberof Records.RecordsUnshareUserStatus + * @memberof Records.RecordDataWithAccessInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.RecordsUnshareUserStatus} RecordsUnshareUserStatus + * @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 */ - RecordsUnshareUserStatus.decode = function decode(reader, length) { + RecordDataWithAccessInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareUserStatus(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordDataWithAccessInfo(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -192905,7 +195249,19 @@ export const Records = $root.Records = (() => { break; } case 2: { - message.accountUid = reader.bytes(); + message.recordData = $root.Records.RecordData.decode(reader, reader.uint32()); + break; + } + case 3: { + if (!(message.userPermission && message.userPermission.length)) + message.userPermission = []; + message.userPermission.push($root.Records.UserPermission.decode(reader, reader.uint32())); + break; + } + case 4: { + if (!(message.sharedFolderPermission && message.sharedFolderPermission.length)) + message.sharedFolderPermission = []; + message.sharedFolderPermission.push($root.Records.SharedFolderPermission.decode(reader, reader.uint32())); break; } default: @@ -192917,79 +195273,123 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a RecordsUnshareUserStatus message from the specified reader or buffer, length delimited. + * Decodes a RecordDataWithAccessInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.RecordsUnshareUserStatus + * @memberof Records.RecordDataWithAccessInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.RecordsUnshareUserStatus} RecordsUnshareUserStatus + * @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 */ - RecordsUnshareUserStatus.decodeDelimited = function decodeDelimited(reader) { + RecordDataWithAccessInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordsUnshareUserStatus message. + * Verifies a RecordDataWithAccessInfo message. * @function verify - * @memberof Records.RecordsUnshareUserStatus + * @memberof Records.RecordDataWithAccessInfo * @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) { + RecordDataWithAccessInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; + if (message.recordData != null && message.hasOwnProperty("recordData")) { + let error = $root.Records.RecordData.verify(message.recordData); + 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]); + 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]); + if (error) + return "sharedFolderPermission." + error; + } + } return null; }; /** - * Creates a RecordsUnshareUserStatus message from a plain object. Also converts values to their respective internal types. + * Creates a RecordDataWithAccessInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.RecordsUnshareUserStatus + * @memberof Records.RecordDataWithAccessInfo * @static * @param {Object.} object Plain object - * @returns {Records.RecordsUnshareUserStatus} RecordsUnshareUserStatus + * @returns {Records.RecordDataWithAccessInfo} RecordDataWithAccessInfo */ - RecordsUnshareUserStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsUnshareUserStatus) + RecordDataWithAccessInfo.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordDataWithAccessInfo) return object; - let message = new $root.Records.RecordsUnshareUserStatus(); + let message = new $root.Records.RecordDataWithAccessInfo(); if (object.recordUid != null) if (typeof object.recordUid === "string") $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); else if (object.recordUid.length >= 0) message.recordUid = object.recordUid; - if (object.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; - return message; - }; - - /** - * Creates a plain object from a RecordsUnshareUserStatus message. Also converts values to other types if specified. - * @function toObject - * @memberof Records.RecordsUnshareUserStatus - * @static - * @param {Records.RecordsUnshareUserStatus} message RecordsUnshareUserStatus - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RecordsUnshareUserStatus.toObject = function toObject(message, options) { + if (object.recordData != null) { + if (typeof object.recordData !== "object") + throw TypeError(".Records.RecordDataWithAccessInfo.recordData: object expected"); + message.recordData = $root.Records.RecordData.fromObject(object.recordData); + } + if (object.userPermission) { + if (!Array.isArray(object.userPermission)) + throw TypeError(".Records.RecordDataWithAccessInfo.userPermission: array expected"); + message.userPermission = []; + for (let i = 0; i < object.userPermission.length; ++i) { + if (typeof object.userPermission[i] !== "object") + throw TypeError(".Records.RecordDataWithAccessInfo.userPermission: object expected"); + message.userPermission[i] = $root.Records.UserPermission.fromObject(object.userPermission[i]); + } + } + if (object.sharedFolderPermission) { + if (!Array.isArray(object.sharedFolderPermission)) + throw TypeError(".Records.RecordDataWithAccessInfo.sharedFolderPermission: array expected"); + message.sharedFolderPermission = []; + for (let i = 0; i < object.sharedFolderPermission.length; ++i) { + if (typeof object.sharedFolderPermission[i] !== "object") + throw TypeError(".Records.RecordDataWithAccessInfo.sharedFolderPermission: object expected"); + message.sharedFolderPermission[i] = $root.Records.SharedFolderPermission.fromObject(object.sharedFolderPermission[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a RecordDataWithAccessInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof Records.RecordDataWithAccessInfo + * @static + * @param {Records.RecordDataWithAccessInfo} message RecordDataWithAccessInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordDataWithAccessInfo.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) { + object.userPermission = []; + object.sharedFolderPermission = []; + } if (options.defaults) { if (options.bytes === String) object.recordUid = ""; @@ -192998,120 +195398,75 @@ export const Records = $root.Records = (() => { if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.accountUid = ""; - else { - object.accountUid = []; - if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); - } + object.recordData = null; } if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; + if (message.recordData != null && message.hasOwnProperty("recordData")) + object.recordData = $root.Records.RecordData.toObject(message.recordData, options); + if (message.userPermission && message.userPermission.length) { + object.userPermission = []; + for (let j = 0; j < message.userPermission.length; ++j) + object.userPermission[j] = $root.Records.UserPermission.toObject(message.userPermission[j], options); + } + if (message.sharedFolderPermission && message.sharedFolderPermission.length) { + object.sharedFolderPermission = []; + for (let j = 0; j < message.sharedFolderPermission.length; ++j) + object.sharedFolderPermission[j] = $root.Records.SharedFolderPermission.toObject(message.sharedFolderPermission[j], options); + } return object; }; /** - * Converts this RecordsUnshareUserStatus to JSON. + * Converts this RecordDataWithAccessInfo to JSON. * @function toJSON - * @memberof Records.RecordsUnshareUserStatus + * @memberof Records.RecordDataWithAccessInfo * @instance * @returns {Object.} JSON object */ - RecordsUnshareUserStatus.prototype.toJSON = function toJSON() { + RecordDataWithAccessInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordsUnshareUserStatus + * Gets the default type url for RecordDataWithAccessInfo * @function getTypeUrl - * @memberof Records.RecordsUnshareUserStatus + * @memberof Records.RecordDataWithAccessInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordsUnshareUserStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordDataWithAccessInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.RecordsUnshareUserStatus"; + return typeUrlPrefix + "/Records.RecordDataWithAccessInfo"; }; - return RecordsUnshareUserStatus; - })(); - - /** - * RecordTransactionType enum. - * @name Records.RecordTransactionType - * @enum {number} - * @property {number} RTT_GENERAL=0 RTT_GENERAL value - * @property {number} RTT_ROTATION=1 RTT_ROTATION value - */ - Records.RecordTransactionType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RTT_GENERAL"] = 0; - values[valuesById[1] = "RTT_ROTATION"] = 1; - return values; - })(); - - /** - * TimeLimitedAccessType enum. - * @name Records.TimeLimitedAccessType - * @enum {number} - * @property {number} INVALID_TIME_LIMITED_ACCESS_TYPE=0 INVALID_TIME_LIMITED_ACCESS_TYPE value - * @property {number} USER_ACCESS_TO_RECORD=1 USER_ACCESS_TO_RECORD value - * @property {number} USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER=2 USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER value - * @property {number} RECORD_ACCESS_TO_SHAREDFOLDER=3 RECORD_ACCESS_TO_SHAREDFOLDER value - * @property {number} USER_ACCESS_TO_SHAREDFOLDER=4 USER_ACCESS_TO_SHAREDFOLDER value - * @property {number} TEAM_ACCESS_TO_SHAREDFOLDER=5 TEAM_ACCESS_TO_SHAREDFOLDER value - */ - Records.TimeLimitedAccessType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INVALID_TIME_LIMITED_ACCESS_TYPE"] = 0; - values[valuesById[1] = "USER_ACCESS_TO_RECORD"] = 1; - values[valuesById[2] = "USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER"] = 2; - values[valuesById[3] = "RECORD_ACCESS_TO_SHAREDFOLDER"] = 3; - values[valuesById[4] = "USER_ACCESS_TO_SHAREDFOLDER"] = 4; - values[valuesById[5] = "TEAM_ACCESS_TO_SHAREDFOLDER"] = 5; - return values; - })(); - - /** - * TimerNotificationType enum. - * @name Records.TimerNotificationType - * @enum {number} - * @property {number} NOTIFICATION_OFF=0 NOTIFICATION_OFF value - * @property {number} NOTIFY_OWNER=1 NOTIFY_OWNER value - * @property {number} NOTIFY_PRIVILEGED_USERS=2 NOTIFY_PRIVILEGED_USERS value - */ - Records.TimerNotificationType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NOTIFICATION_OFF"] = 0; - values[valuesById[1] = "NOTIFY_OWNER"] = 1; - values[valuesById[2] = "NOTIFY_PRIVILEGED_USERS"] = 2; - return values; + return RecordDataWithAccessInfo; })(); - Records.TimedAccessCallbackPayload = (function() { + Records.GetRecordDataWithAccessInfoResponse = (function() { /** - * Properties of a TimedAccessCallbackPayload. + * Properties of a GetRecordDataWithAccessInfoResponse. * @memberof Records - * @interface ITimedAccessCallbackPayload - * @property {Records.TimeLimitedAccessType|null} [timeLimitedAccessType] TimedAccessCallbackPayload timeLimitedAccessType + * @interface IGetRecordDataWithAccessInfoResponse + * @property {Array.|null} [recordDataWithAccessInfo] GetRecordDataWithAccessInfoResponse recordDataWithAccessInfo + * @property {Array.|null} [noPermissionRecordUid] GetRecordDataWithAccessInfoResponse noPermissionRecordUid */ /** - * Constructs a new TimedAccessCallbackPayload. + * Constructs a new GetRecordDataWithAccessInfoResponse. * @memberof Records - * @classdesc Represents a TimedAccessCallbackPayload. - * @implements ITimedAccessCallbackPayload + * @classdesc Represents a GetRecordDataWithAccessInfoResponse. + * @implements IGetRecordDataWithAccessInfoResponse * @constructor - * @param {Records.ITimedAccessCallbackPayload=} [properties] Properties to set + * @param {Records.IGetRecordDataWithAccessInfoResponse=} [properties] Properties to set */ - function TimedAccessCallbackPayload(properties) { + function GetRecordDataWithAccessInfoResponse(properties) { + this.recordDataWithAccessInfo = []; + this.noPermissionRecordUid = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -193119,75 +195474,95 @@ export const Records = $root.Records = (() => { } /** - * TimedAccessCallbackPayload timeLimitedAccessType. - * @member {Records.TimeLimitedAccessType} timeLimitedAccessType - * @memberof Records.TimedAccessCallbackPayload + * GetRecordDataWithAccessInfoResponse recordDataWithAccessInfo. + * @member {Array.} recordDataWithAccessInfo + * @memberof Records.GetRecordDataWithAccessInfoResponse * @instance */ - TimedAccessCallbackPayload.prototype.timeLimitedAccessType = 0; + GetRecordDataWithAccessInfoResponse.prototype.recordDataWithAccessInfo = $util.emptyArray; /** - * Creates a new TimedAccessCallbackPayload instance using the specified properties. + * GetRecordDataWithAccessInfoResponse noPermissionRecordUid. + * @member {Array.} noPermissionRecordUid + * @memberof Records.GetRecordDataWithAccessInfoResponse + * @instance + */ + GetRecordDataWithAccessInfoResponse.prototype.noPermissionRecordUid = $util.emptyArray; + + /** + * Creates a new GetRecordDataWithAccessInfoResponse instance using the specified properties. * @function create - * @memberof Records.TimedAccessCallbackPayload + * @memberof Records.GetRecordDataWithAccessInfoResponse * @static - * @param {Records.ITimedAccessCallbackPayload=} [properties] Properties to set - * @returns {Records.TimedAccessCallbackPayload} TimedAccessCallbackPayload instance + * @param {Records.IGetRecordDataWithAccessInfoResponse=} [properties] Properties to set + * @returns {Records.GetRecordDataWithAccessInfoResponse} GetRecordDataWithAccessInfoResponse instance */ - TimedAccessCallbackPayload.create = function create(properties) { - return new TimedAccessCallbackPayload(properties); + GetRecordDataWithAccessInfoResponse.create = function create(properties) { + return new GetRecordDataWithAccessInfoResponse(properties); }; /** - * Encodes the specified TimedAccessCallbackPayload message. Does not implicitly {@link Records.TimedAccessCallbackPayload.verify|verify} messages. + * Encodes the specified GetRecordDataWithAccessInfoResponse message. Does not implicitly {@link Records.GetRecordDataWithAccessInfoResponse.verify|verify} messages. * @function encode - * @memberof Records.TimedAccessCallbackPayload + * @memberof Records.GetRecordDataWithAccessInfoResponse * @static - * @param {Records.ITimedAccessCallbackPayload} message TimedAccessCallbackPayload message or plain object to encode + * @param {Records.IGetRecordDataWithAccessInfoResponse} message GetRecordDataWithAccessInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimedAccessCallbackPayload.encode = function encode(message, writer) { + GetRecordDataWithAccessInfoResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timeLimitedAccessType != null && Object.hasOwnProperty.call(message, "timeLimitedAccessType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.timeLimitedAccessType); + if (message.recordDataWithAccessInfo != null && message.recordDataWithAccessInfo.length) + for (let i = 0; i < message.recordDataWithAccessInfo.length; ++i) + $root.Records.RecordDataWithAccessInfo.encode(message.recordDataWithAccessInfo[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.noPermissionRecordUid != null && message.noPermissionRecordUid.length) + for (let i = 0; i < message.noPermissionRecordUid.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.noPermissionRecordUid[i]); return writer; }; /** - * Encodes the specified TimedAccessCallbackPayload message, length delimited. Does not implicitly {@link Records.TimedAccessCallbackPayload.verify|verify} messages. + * Encodes the specified GetRecordDataWithAccessInfoResponse message, length delimited. Does not implicitly {@link Records.GetRecordDataWithAccessInfoResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Records.TimedAccessCallbackPayload + * @memberof Records.GetRecordDataWithAccessInfoResponse * @static - * @param {Records.ITimedAccessCallbackPayload} message TimedAccessCallbackPayload message or plain object to encode + * @param {Records.IGetRecordDataWithAccessInfoResponse} message GetRecordDataWithAccessInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimedAccessCallbackPayload.encodeDelimited = function encodeDelimited(message, writer) { + GetRecordDataWithAccessInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TimedAccessCallbackPayload message from the specified reader or buffer. + * Decodes a GetRecordDataWithAccessInfoResponse message from the specified reader or buffer. * @function decode - * @memberof Records.TimedAccessCallbackPayload + * @memberof Records.GetRecordDataWithAccessInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.TimedAccessCallbackPayload} TimedAccessCallbackPayload + * @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 */ - TimedAccessCallbackPayload.decode = function decode(reader, length) { + GetRecordDataWithAccessInfoResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TimedAccessCallbackPayload(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetRecordDataWithAccessInfoResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.timeLimitedAccessType = reader.int32(); + if (!(message.recordDataWithAccessInfo && message.recordDataWithAccessInfo.length)) + message.recordDataWithAccessInfo = []; + message.recordDataWithAccessInfo.push($root.Records.RecordDataWithAccessInfo.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.noPermissionRecordUid && message.noPermissionRecordUid.length)) + message.noPermissionRecordUid = []; + message.noPermissionRecordUid.push(reader.bytes()); break; } default: @@ -193199,170 +195574,181 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a TimedAccessCallbackPayload message from the specified reader or buffer, length delimited. + * Decodes a GetRecordDataWithAccessInfoResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.TimedAccessCallbackPayload + * @memberof Records.GetRecordDataWithAccessInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.TimedAccessCallbackPayload} TimedAccessCallbackPayload + * @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 */ - TimedAccessCallbackPayload.decodeDelimited = function decodeDelimited(reader) { + GetRecordDataWithAccessInfoResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TimedAccessCallbackPayload message. + * Verifies a GetRecordDataWithAccessInfoResponse message. * @function verify - * @memberof Records.TimedAccessCallbackPayload + * @memberof Records.GetRecordDataWithAccessInfoResponse * @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) { + GetRecordDataWithAccessInfoResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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: - break; + 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]); + 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 TimedAccessCallbackPayload message from a plain object. Also converts values to their respective internal types. + * Creates a GetRecordDataWithAccessInfoResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.TimedAccessCallbackPayload + * @memberof Records.GetRecordDataWithAccessInfoResponse * @static * @param {Object.} object Plain object - * @returns {Records.TimedAccessCallbackPayload} TimedAccessCallbackPayload + * @returns {Records.GetRecordDataWithAccessInfoResponse} GetRecordDataWithAccessInfoResponse */ - TimedAccessCallbackPayload.fromObject = function fromObject(object) { - if (object instanceof $root.Records.TimedAccessCallbackPayload) + GetRecordDataWithAccessInfoResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Records.GetRecordDataWithAccessInfoResponse) return object; - let message = new $root.Records.TimedAccessCallbackPayload(); - switch (object.timeLimitedAccessType) { - default: - if (typeof object.timeLimitedAccessType === "number") { - message.timeLimitedAccessType = object.timeLimitedAccessType; - break; + let message = new $root.Records.GetRecordDataWithAccessInfoResponse(); + if (object.recordDataWithAccessInfo) { + if (!Array.isArray(object.recordDataWithAccessInfo)) + throw TypeError(".Records.GetRecordDataWithAccessInfoResponse.recordDataWithAccessInfo: array expected"); + message.recordDataWithAccessInfo = []; + for (let i = 0; i < object.recordDataWithAccessInfo.length; ++i) { + if (typeof object.recordDataWithAccessInfo[i] !== "object") + throw TypeError(".Records.GetRecordDataWithAccessInfoResponse.recordDataWithAccessInfo: object expected"); + message.recordDataWithAccessInfo[i] = $root.Records.RecordDataWithAccessInfo.fromObject(object.recordDataWithAccessInfo[i]); } - break; - case "INVALID_TIME_LIMITED_ACCESS_TYPE": - case 0: - message.timeLimitedAccessType = 0; - break; - case "USER_ACCESS_TO_RECORD": - case 1: - message.timeLimitedAccessType = 1; - break; - case "USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER": - case 2: - message.timeLimitedAccessType = 2; - break; - case "RECORD_ACCESS_TO_SHAREDFOLDER": - case 3: - message.timeLimitedAccessType = 3; - break; - case "USER_ACCESS_TO_SHAREDFOLDER": - case 4: - message.timeLimitedAccessType = 4; - break; - case "TEAM_ACCESS_TO_SHAREDFOLDER": - case 5: - message.timeLimitedAccessType = 5; - break; + } + if (object.noPermissionRecordUid) { + if (!Array.isArray(object.noPermissionRecordUid)) + throw TypeError(".Records.GetRecordDataWithAccessInfoResponse.noPermissionRecordUid: array expected"); + message.noPermissionRecordUid = []; + for (let i = 0; i < object.noPermissionRecordUid.length; ++i) + if (typeof object.noPermissionRecordUid[i] === "string") + $util.base64.decode(object.noPermissionRecordUid[i], message.noPermissionRecordUid[i] = $util.newBuffer($util.base64.length(object.noPermissionRecordUid[i])), 0); + else if (object.noPermissionRecordUid[i].length >= 0) + message.noPermissionRecordUid[i] = object.noPermissionRecordUid[i]; } return message; }; /** - * Creates a plain object from a TimedAccessCallbackPayload message. Also converts values to other types if specified. + * Creates a plain object from a GetRecordDataWithAccessInfoResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Records.TimedAccessCallbackPayload + * @memberof Records.GetRecordDataWithAccessInfoResponse * @static - * @param {Records.TimedAccessCallbackPayload} message TimedAccessCallbackPayload + * @param {Records.GetRecordDataWithAccessInfoResponse} message GetRecordDataWithAccessInfoResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimedAccessCallbackPayload.toObject = function toObject(message, options) { + GetRecordDataWithAccessInfoResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.timeLimitedAccessType = options.enums === String ? "INVALID_TIME_LIMITED_ACCESS_TYPE" : 0; - if (message.timeLimitedAccessType != null && message.hasOwnProperty("timeLimitedAccessType")) - object.timeLimitedAccessType = options.enums === String ? $root.Records.TimeLimitedAccessType[message.timeLimitedAccessType] === undefined ? message.timeLimitedAccessType : $root.Records.TimeLimitedAccessType[message.timeLimitedAccessType] : message.timeLimitedAccessType; + if (options.arrays || options.defaults) { + object.recordDataWithAccessInfo = []; + object.noPermissionRecordUid = []; + } + if (message.recordDataWithAccessInfo && message.recordDataWithAccessInfo.length) { + object.recordDataWithAccessInfo = []; + for (let j = 0; j < message.recordDataWithAccessInfo.length; ++j) + object.recordDataWithAccessInfo[j] = $root.Records.RecordDataWithAccessInfo.toObject(message.recordDataWithAccessInfo[j], options); + } + if (message.noPermissionRecordUid && message.noPermissionRecordUid.length) { + object.noPermissionRecordUid = []; + for (let j = 0; j < message.noPermissionRecordUid.length; ++j) + object.noPermissionRecordUid[j] = options.bytes === String ? $util.base64.encode(message.noPermissionRecordUid[j], 0, message.noPermissionRecordUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.noPermissionRecordUid[j]) : message.noPermissionRecordUid[j]; + } return object; }; /** - * Converts this TimedAccessCallbackPayload to JSON. + * Converts this GetRecordDataWithAccessInfoResponse to JSON. * @function toJSON - * @memberof Records.TimedAccessCallbackPayload + * @memberof Records.GetRecordDataWithAccessInfoResponse * @instance * @returns {Object.} JSON object */ - TimedAccessCallbackPayload.prototype.toJSON = function toJSON() { + GetRecordDataWithAccessInfoResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TimedAccessCallbackPayload + * Gets the default type url for GetRecordDataWithAccessInfoResponse * @function getTypeUrl - * @memberof Records.TimedAccessCallbackPayload + * @memberof Records.GetRecordDataWithAccessInfoResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TimedAccessCallbackPayload.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetRecordDataWithAccessInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.TimedAccessCallbackPayload"; + return typeUrlPrefix + "/Records.GetRecordDataWithAccessInfoResponse"; }; - return TimedAccessCallbackPayload; + return GetRecordDataWithAccessInfoResponse; })(); - Records.TimeLimitedAccessRequest = (function() { + /** + * CheckShareAdminObjectType enum. + * @name Records.CheckShareAdminObjectType + * @enum {number} + * @property {number} CHECK_SA_INVALID_TYPE=0 CHECK_SA_INVALID_TYPE value + * @property {number} CHECK_SA_ON_SF=1 CHECK_SA_ON_SF value + * @property {number} CHECK_SA_ON_RECORD=2 CHECK_SA_ON_RECORD value + */ + Records.CheckShareAdminObjectType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CHECK_SA_INVALID_TYPE"] = 0; + values[valuesById[1] = "CHECK_SA_ON_SF"] = 1; + values[valuesById[2] = "CHECK_SA_ON_RECORD"] = 2; + return values; + })(); + + Records.IsObjectShareAdmin = (function() { /** - * Properties of a TimeLimitedAccessRequest. + * Properties of an IsObjectShareAdmin. * @memberof Records - * @interface ITimeLimitedAccessRequest - * @property {Array.|null} [accountUid] TimeLimitedAccessRequest accountUid - * @property {Array.|null} [teamUid] TimeLimitedAccessRequest teamUid - * @property {Array.|null} [recordUid] TimeLimitedAccessRequest recordUid - * @property {Uint8Array|null} [sharedObjectUid] TimeLimitedAccessRequest sharedObjectUid - * @property {Records.TimeLimitedAccessType|null} [timeLimitedAccessType] TimeLimitedAccessRequest timeLimitedAccessType - * @property {number|Long|null} [expiration] TimeLimitedAccessRequest expiration - * @property {Records.TimerNotificationType|null} [timerNotificationType] TimeLimitedAccessRequest timerNotificationType + * @interface IIsObjectShareAdmin + * @property {Uint8Array|null} [uid] IsObjectShareAdmin uid + * @property {boolean|null} [isAdmin] IsObjectShareAdmin isAdmin + * @property {Records.CheckShareAdminObjectType|null} [objectType] IsObjectShareAdmin objectType */ /** - * Constructs a new TimeLimitedAccessRequest. + * Constructs a new IsObjectShareAdmin. * @memberof Records - * @classdesc Represents a TimeLimitedAccessRequest. - * @implements ITimeLimitedAccessRequest + * @classdesc Represents an IsObjectShareAdmin. + * @implements IIsObjectShareAdmin * @constructor - * @param {Records.ITimeLimitedAccessRequest=} [properties] Properties to set + * @param {Records.IIsObjectShareAdmin=} [properties] Properties to set */ - function TimeLimitedAccessRequest(properties) { - this.accountUid = []; - this.teamUid = []; - this.recordUid = []; + function IsObjectShareAdmin(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -193370,168 +195756,103 @@ export const Records = $root.Records = (() => { } /** - * TimeLimitedAccessRequest accountUid. - * @member {Array.} accountUid - * @memberof Records.TimeLimitedAccessRequest - * @instance - */ - TimeLimitedAccessRequest.prototype.accountUid = $util.emptyArray; - - /** - * TimeLimitedAccessRequest teamUid. - * @member {Array.} teamUid - * @memberof Records.TimeLimitedAccessRequest - * @instance - */ - TimeLimitedAccessRequest.prototype.teamUid = $util.emptyArray; - - /** - * TimeLimitedAccessRequest recordUid. - * @member {Array.} recordUid - * @memberof Records.TimeLimitedAccessRequest - * @instance - */ - TimeLimitedAccessRequest.prototype.recordUid = $util.emptyArray; - - /** - * TimeLimitedAccessRequest sharedObjectUid. - * @member {Uint8Array} sharedObjectUid - * @memberof Records.TimeLimitedAccessRequest - * @instance - */ - TimeLimitedAccessRequest.prototype.sharedObjectUid = $util.newBuffer([]); - - /** - * TimeLimitedAccessRequest timeLimitedAccessType. - * @member {Records.TimeLimitedAccessType} timeLimitedAccessType - * @memberof Records.TimeLimitedAccessRequest + * IsObjectShareAdmin uid. + * @member {Uint8Array} uid + * @memberof Records.IsObjectShareAdmin * @instance */ - TimeLimitedAccessRequest.prototype.timeLimitedAccessType = 0; + IsObjectShareAdmin.prototype.uid = $util.newBuffer([]); /** - * TimeLimitedAccessRequest expiration. - * @member {number|Long} expiration - * @memberof Records.TimeLimitedAccessRequest + * IsObjectShareAdmin isAdmin. + * @member {boolean} isAdmin + * @memberof Records.IsObjectShareAdmin * @instance */ - TimeLimitedAccessRequest.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + IsObjectShareAdmin.prototype.isAdmin = false; /** - * TimeLimitedAccessRequest timerNotificationType. - * @member {Records.TimerNotificationType} timerNotificationType - * @memberof Records.TimeLimitedAccessRequest + * IsObjectShareAdmin objectType. + * @member {Records.CheckShareAdminObjectType} objectType + * @memberof Records.IsObjectShareAdmin * @instance */ - TimeLimitedAccessRequest.prototype.timerNotificationType = 0; + IsObjectShareAdmin.prototype.objectType = 0; /** - * Creates a new TimeLimitedAccessRequest instance using the specified properties. + * Creates a new IsObjectShareAdmin instance using the specified properties. * @function create - * @memberof Records.TimeLimitedAccessRequest + * @memberof Records.IsObjectShareAdmin * @static - * @param {Records.ITimeLimitedAccessRequest=} [properties] Properties to set - * @returns {Records.TimeLimitedAccessRequest} TimeLimitedAccessRequest instance + * @param {Records.IIsObjectShareAdmin=} [properties] Properties to set + * @returns {Records.IsObjectShareAdmin} IsObjectShareAdmin instance */ - TimeLimitedAccessRequest.create = function create(properties) { - return new TimeLimitedAccessRequest(properties); + IsObjectShareAdmin.create = function create(properties) { + return new IsObjectShareAdmin(properties); }; /** - * Encodes the specified TimeLimitedAccessRequest message. Does not implicitly {@link Records.TimeLimitedAccessRequest.verify|verify} messages. + * Encodes the specified IsObjectShareAdmin message. Does not implicitly {@link Records.IsObjectShareAdmin.verify|verify} messages. * @function encode - * @memberof Records.TimeLimitedAccessRequest + * @memberof Records.IsObjectShareAdmin * @static - * @param {Records.ITimeLimitedAccessRequest} message TimeLimitedAccessRequest message or plain object to encode + * @param {Records.IIsObjectShareAdmin} message IsObjectShareAdmin message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimeLimitedAccessRequest.encode = function encode(message, writer) { + IsObjectShareAdmin.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.accountUid != null && message.accountUid.length) - for (let i = 0; i < message.accountUid.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.accountUid[i]); - if (message.teamUid != null && message.teamUid.length) - for (let i = 0; i < message.teamUid.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.teamUid[i]); - if (message.recordUid != null && message.recordUid.length) - for (let i = 0; i < message.recordUid.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordUid[i]); - if (message.sharedObjectUid != null && Object.hasOwnProperty.call(message, "sharedObjectUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.sharedObjectUid); - if (message.timeLimitedAccessType != null && Object.hasOwnProperty.call(message, "timeLimitedAccessType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.timeLimitedAccessType); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.expiration); - if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.timerNotificationType); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); + if (message.isAdmin != null && Object.hasOwnProperty.call(message, "isAdmin")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isAdmin); + if (message.objectType != null && Object.hasOwnProperty.call(message, "objectType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.objectType); return writer; }; /** - * Encodes the specified TimeLimitedAccessRequest message, length delimited. Does not implicitly {@link Records.TimeLimitedAccessRequest.verify|verify} messages. + * Encodes the specified IsObjectShareAdmin message, length delimited. Does not implicitly {@link Records.IsObjectShareAdmin.verify|verify} messages. * @function encodeDelimited - * @memberof Records.TimeLimitedAccessRequest + * @memberof Records.IsObjectShareAdmin * @static - * @param {Records.ITimeLimitedAccessRequest} message TimeLimitedAccessRequest message or plain object to encode + * @param {Records.IIsObjectShareAdmin} message IsObjectShareAdmin message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimeLimitedAccessRequest.encodeDelimited = function encodeDelimited(message, writer) { + IsObjectShareAdmin.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TimeLimitedAccessRequest message from the specified reader or buffer. + * Decodes an IsObjectShareAdmin message from the specified reader or buffer. * @function decode - * @memberof Records.TimeLimitedAccessRequest + * @memberof Records.IsObjectShareAdmin * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.TimeLimitedAccessRequest} TimeLimitedAccessRequest + * @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 */ - TimeLimitedAccessRequest.decode = function decode(reader, length) { + IsObjectShareAdmin.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TimeLimitedAccessRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.IsObjectShareAdmin(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.accountUid && message.accountUid.length)) - message.accountUid = []; - message.accountUid.push(reader.bytes()); + message.uid = reader.bytes(); break; } case 2: { - if (!(message.teamUid && message.teamUid.length)) - message.teamUid = []; - message.teamUid.push(reader.bytes()); + message.isAdmin = reader.bool(); break; } case 3: { - if (!(message.recordUid && message.recordUid.length)) - message.recordUid = []; - message.recordUid.push(reader.bytes()); - break; - } - case 4: { - message.sharedObjectUid = reader.bytes(); - break; - } - case 5: { - message.timeLimitedAccessType = reader.int32(); - break; - } - case 6: { - message.expiration = reader.int64(); - break; - } - case 7: { - message.timerNotificationType = reader.int32(); + message.objectType = reader.int32(); break; } default: @@ -193543,75 +195864,42 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a TimeLimitedAccessRequest message from the specified reader or buffer, length delimited. + * Decodes an IsObjectShareAdmin message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.TimeLimitedAccessRequest + * @memberof Records.IsObjectShareAdmin * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.TimeLimitedAccessRequest} TimeLimitedAccessRequest + * @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 */ - TimeLimitedAccessRequest.decodeDelimited = function decodeDelimited(reader) { + IsObjectShareAdmin.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TimeLimitedAccessRequest message. + * Verifies an IsObjectShareAdmin message. * @function verify - * @memberof Records.TimeLimitedAccessRequest + * @memberof Records.IsObjectShareAdmin * @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) { + IsObjectShareAdmin.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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: - 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) { + 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 "timerNotificationType: enum value expected"; + return "objectType: enum value expected"; case 0: case 1: case 2: @@ -193621,227 +195909,128 @@ export const Records = $root.Records = (() => { }; /** - * Creates a TimeLimitedAccessRequest message from a plain object. Also converts values to their respective internal types. + * Creates an IsObjectShareAdmin message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.TimeLimitedAccessRequest + * @memberof Records.IsObjectShareAdmin * @static * @param {Object.} object Plain object - * @returns {Records.TimeLimitedAccessRequest} TimeLimitedAccessRequest + * @returns {Records.IsObjectShareAdmin} IsObjectShareAdmin */ - TimeLimitedAccessRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.TimeLimitedAccessRequest) + IsObjectShareAdmin.fromObject = function fromObject(object) { + if (object instanceof $root.Records.IsObjectShareAdmin) return object; - let message = new $root.Records.TimeLimitedAccessRequest(); - if (object.accountUid) { - if (!Array.isArray(object.accountUid)) - throw TypeError(".Records.TimeLimitedAccessRequest.accountUid: array expected"); - message.accountUid = []; - for (let i = 0; i < object.accountUid.length; ++i) - if (typeof object.accountUid[i] === "string") - $util.base64.decode(object.accountUid[i], message.accountUid[i] = $util.newBuffer($util.base64.length(object.accountUid[i])), 0); - else if (object.accountUid[i].length >= 0) - message.accountUid[i] = object.accountUid[i]; - } - if (object.teamUid) { - if (!Array.isArray(object.teamUid)) - throw TypeError(".Records.TimeLimitedAccessRequest.teamUid: array expected"); - message.teamUid = []; - for (let i = 0; i < object.teamUid.length; ++i) - if (typeof object.teamUid[i] === "string") - $util.base64.decode(object.teamUid[i], message.teamUid[i] = $util.newBuffer($util.base64.length(object.teamUid[i])), 0); - else if (object.teamUid[i].length >= 0) - message.teamUid[i] = object.teamUid[i]; - } - if (object.recordUid) { - if (!Array.isArray(object.recordUid)) - throw TypeError(".Records.TimeLimitedAccessRequest.recordUid: array expected"); - message.recordUid = []; - for (let i = 0; i < object.recordUid.length; ++i) - if (typeof object.recordUid[i] === "string") - $util.base64.decode(object.recordUid[i], message.recordUid[i] = $util.newBuffer($util.base64.length(object.recordUid[i])), 0); - else if (object.recordUid[i].length >= 0) - message.recordUid[i] = object.recordUid[i]; - } - if (object.sharedObjectUid != null) - if (typeof object.sharedObjectUid === "string") - $util.base64.decode(object.sharedObjectUid, message.sharedObjectUid = $util.newBuffer($util.base64.length(object.sharedObjectUid)), 0); - else if (object.sharedObjectUid.length >= 0) - message.sharedObjectUid = object.sharedObjectUid; - switch (object.timeLimitedAccessType) { - default: - if (typeof object.timeLimitedAccessType === "number") { - message.timeLimitedAccessType = object.timeLimitedAccessType; - break; - } - break; - case "INVALID_TIME_LIMITED_ACCESS_TYPE": - case 0: - message.timeLimitedAccessType = 0; - break; - case "USER_ACCESS_TO_RECORD": - case 1: - message.timeLimitedAccessType = 1; - break; - case "USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER": - case 2: - message.timeLimitedAccessType = 2; - break; - case "RECORD_ACCESS_TO_SHAREDFOLDER": - case 3: - message.timeLimitedAccessType = 3; - break; - case "USER_ACCESS_TO_SHAREDFOLDER": - case 4: - message.timeLimitedAccessType = 4; - break; - case "TEAM_ACCESS_TO_SHAREDFOLDER": - case 5: - message.timeLimitedAccessType = 5; - break; - } - if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); - switch (object.timerNotificationType) { + let message = new $root.Records.IsObjectShareAdmin(); + if (object.uid != null) + if (typeof object.uid === "string") + $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); + else if (object.uid.length >= 0) + message.uid = object.uid; + if (object.isAdmin != null) + message.isAdmin = Boolean(object.isAdmin); + switch (object.objectType) { default: - if (typeof object.timerNotificationType === "number") { - message.timerNotificationType = object.timerNotificationType; + if (typeof object.objectType === "number") { + message.objectType = object.objectType; break; } break; - case "NOTIFICATION_OFF": + case "CHECK_SA_INVALID_TYPE": case 0: - message.timerNotificationType = 0; + message.objectType = 0; break; - case "NOTIFY_OWNER": + case "CHECK_SA_ON_SF": case 1: - message.timerNotificationType = 1; + message.objectType = 1; break; - case "NOTIFY_PRIVILEGED_USERS": + case "CHECK_SA_ON_RECORD": case 2: - message.timerNotificationType = 2; + message.objectType = 2; break; } return message; }; /** - * Creates a plain object from a TimeLimitedAccessRequest message. Also converts values to other types if specified. + * Creates a plain object from an IsObjectShareAdmin message. Also converts values to other types if specified. * @function toObject - * @memberof Records.TimeLimitedAccessRequest + * @memberof Records.IsObjectShareAdmin * @static - * @param {Records.TimeLimitedAccessRequest} message TimeLimitedAccessRequest + * @param {Records.IsObjectShareAdmin} message IsObjectShareAdmin * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimeLimitedAccessRequest.toObject = function toObject(message, options) { + IsObjectShareAdmin.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.accountUid = []; - object.teamUid = []; - object.recordUid = []; - } if (options.defaults) { if (options.bytes === String) - object.sharedObjectUid = ""; + object.uid = ""; else { - object.sharedObjectUid = []; + object.uid = []; if (options.bytes !== Array) - object.sharedObjectUid = $util.newBuffer(object.sharedObjectUid); + object.uid = $util.newBuffer(object.uid); } - object.timeLimitedAccessType = options.enums === String ? "INVALID_TIME_LIMITED_ACCESS_TYPE" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; - } - if (message.accountUid && message.accountUid.length) { - object.accountUid = []; - for (let j = 0; j < message.accountUid.length; ++j) - object.accountUid[j] = options.bytes === String ? $util.base64.encode(message.accountUid[j], 0, message.accountUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid[j]) : message.accountUid[j]; - } - if (message.teamUid && message.teamUid.length) { - object.teamUid = []; - for (let j = 0; j < message.teamUid.length; ++j) - object.teamUid[j] = options.bytes === String ? $util.base64.encode(message.teamUid[j], 0, message.teamUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid[j]) : message.teamUid[j]; - } - if (message.recordUid && message.recordUid.length) { - object.recordUid = []; - 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]; + object.isAdmin = false; + object.objectType = options.enums === String ? "CHECK_SA_INVALID_TYPE" : 0; } - if (message.sharedObjectUid != null && message.hasOwnProperty("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")) - object.timeLimitedAccessType = options.enums === String ? $root.Records.TimeLimitedAccessType[message.timeLimitedAccessType] === undefined ? message.timeLimitedAccessType : $root.Records.TimeLimitedAccessType[message.timeLimitedAccessType] : message.timeLimitedAccessType; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") - object.expiration = options.longs === String ? String(message.expiration) : message.expiration; - else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) - object.timerNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.Records.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; + if (message.isAdmin != null && message.hasOwnProperty("isAdmin")) + object.isAdmin = message.isAdmin; + if (message.objectType != null && message.hasOwnProperty("objectType")) + object.objectType = options.enums === String ? $root.Records.CheckShareAdminObjectType[message.objectType] === undefined ? message.objectType : $root.Records.CheckShareAdminObjectType[message.objectType] : message.objectType; return object; }; /** - * Converts this TimeLimitedAccessRequest to JSON. + * Converts this IsObjectShareAdmin to JSON. * @function toJSON - * @memberof Records.TimeLimitedAccessRequest + * @memberof Records.IsObjectShareAdmin * @instance * @returns {Object.} JSON object */ - TimeLimitedAccessRequest.prototype.toJSON = function toJSON() { + IsObjectShareAdmin.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TimeLimitedAccessRequest + * Gets the default type url for IsObjectShareAdmin * @function getTypeUrl - * @memberof Records.TimeLimitedAccessRequest + * @memberof Records.IsObjectShareAdmin * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TimeLimitedAccessRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + IsObjectShareAdmin.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.TimeLimitedAccessRequest"; + return typeUrlPrefix + "/Records.IsObjectShareAdmin"; }; - return TimeLimitedAccessRequest; + return IsObjectShareAdmin; })(); - Records.TimeLimitedAccessStatus = (function() { + Records.AmIShareAdmin = (function() { /** - * Properties of a TimeLimitedAccessStatus. + * Properties of an AmIShareAdmin. * @memberof Records - * @interface ITimeLimitedAccessStatus - * @property {Uint8Array|null} [uid] TimeLimitedAccessStatus uid - * @property {string|null} [message] TimeLimitedAccessStatus message + * @interface IAmIShareAdmin + * @property {Array.|null} [isObjectShareAdmin] AmIShareAdmin isObjectShareAdmin */ /** - * Constructs a new TimeLimitedAccessStatus. + * Constructs a new AmIShareAdmin. * @memberof Records - * @classdesc Represents a TimeLimitedAccessStatus. - * @implements ITimeLimitedAccessStatus + * @classdesc Represents an AmIShareAdmin. + * @implements IAmIShareAdmin * @constructor - * @param {Records.ITimeLimitedAccessStatus=} [properties] Properties to set + * @param {Records.IAmIShareAdmin=} [properties] Properties to set */ - function TimeLimitedAccessStatus(properties) { + function AmIShareAdmin(properties) { + this.isObjectShareAdmin = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -193849,89 +196038,78 @@ export const Records = $root.Records = (() => { } /** - * TimeLimitedAccessStatus uid. - * @member {Uint8Array} uid - * @memberof Records.TimeLimitedAccessStatus - * @instance - */ - TimeLimitedAccessStatus.prototype.uid = $util.newBuffer([]); - - /** - * TimeLimitedAccessStatus message. - * @member {string} message - * @memberof Records.TimeLimitedAccessStatus + * AmIShareAdmin isObjectShareAdmin. + * @member {Array.} isObjectShareAdmin + * @memberof Records.AmIShareAdmin * @instance */ - TimeLimitedAccessStatus.prototype.message = ""; + AmIShareAdmin.prototype.isObjectShareAdmin = $util.emptyArray; /** - * Creates a new TimeLimitedAccessStatus instance using the specified properties. + * Creates a new AmIShareAdmin instance using the specified properties. * @function create - * @memberof Records.TimeLimitedAccessStatus + * @memberof Records.AmIShareAdmin * @static - * @param {Records.ITimeLimitedAccessStatus=} [properties] Properties to set - * @returns {Records.TimeLimitedAccessStatus} TimeLimitedAccessStatus instance + * @param {Records.IAmIShareAdmin=} [properties] Properties to set + * @returns {Records.AmIShareAdmin} AmIShareAdmin instance */ - TimeLimitedAccessStatus.create = function create(properties) { - return new TimeLimitedAccessStatus(properties); + AmIShareAdmin.create = function create(properties) { + return new AmIShareAdmin(properties); }; /** - * Encodes the specified TimeLimitedAccessStatus message. Does not implicitly {@link Records.TimeLimitedAccessStatus.verify|verify} messages. + * Encodes the specified AmIShareAdmin message. Does not implicitly {@link Records.AmIShareAdmin.verify|verify} messages. * @function encode - * @memberof Records.TimeLimitedAccessStatus + * @memberof Records.AmIShareAdmin * @static - * @param {Records.ITimeLimitedAccessStatus} message TimeLimitedAccessStatus message or plain object to encode + * @param {Records.IAmIShareAdmin} message AmIShareAdmin message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimeLimitedAccessStatus.encode = function encode(message, writer) { + AmIShareAdmin.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.isObjectShareAdmin != null && message.isObjectShareAdmin.length) + for (let i = 0; i < message.isObjectShareAdmin.length; ++i) + $root.Records.IsObjectShareAdmin.encode(message.isObjectShareAdmin[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified TimeLimitedAccessStatus message, length delimited. Does not implicitly {@link Records.TimeLimitedAccessStatus.verify|verify} messages. + * Encodes the specified AmIShareAdmin message, length delimited. Does not implicitly {@link Records.AmIShareAdmin.verify|verify} messages. * @function encodeDelimited - * @memberof Records.TimeLimitedAccessStatus + * @memberof Records.AmIShareAdmin * @static - * @param {Records.ITimeLimitedAccessStatus} message TimeLimitedAccessStatus message or plain object to encode + * @param {Records.IAmIShareAdmin} message AmIShareAdmin message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimeLimitedAccessStatus.encodeDelimited = function encodeDelimited(message, writer) { + AmIShareAdmin.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TimeLimitedAccessStatus message from the specified reader or buffer. + * Decodes an AmIShareAdmin message from the specified reader or buffer. * @function decode - * @memberof Records.TimeLimitedAccessStatus + * @memberof Records.AmIShareAdmin * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.TimeLimitedAccessStatus} TimeLimitedAccessStatus + * @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 */ - TimeLimitedAccessStatus.decode = function decode(reader, length) { + AmIShareAdmin.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TimeLimitedAccessStatus(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.AmIShareAdmin(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.uid = reader.bytes(); - break; - } - case 2: { - message.message = reader.string(); + if (!(message.isObjectShareAdmin && message.isObjectShareAdmin.length)) + message.isObjectShareAdmin = []; + message.isObjectShareAdmin.push($root.Records.IsObjectShareAdmin.decode(reader, reader.uint32())); break; } default: @@ -193943,146 +196121,145 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a TimeLimitedAccessStatus message from the specified reader or buffer, length delimited. + * Decodes an AmIShareAdmin message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.TimeLimitedAccessStatus + * @memberof Records.AmIShareAdmin * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.TimeLimitedAccessStatus} TimeLimitedAccessStatus + * @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 */ - TimeLimitedAccessStatus.decodeDelimited = function decodeDelimited(reader) { + AmIShareAdmin.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TimeLimitedAccessStatus message. + * Verifies an AmIShareAdmin message. * @function verify - * @memberof Records.TimeLimitedAccessStatus + * @memberof Records.AmIShareAdmin * @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) { + AmIShareAdmin.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + 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]); + if (error) + return "isObjectShareAdmin." + error; + } + } return null; }; /** - * Creates a TimeLimitedAccessStatus message from a plain object. Also converts values to their respective internal types. + * Creates an AmIShareAdmin message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.TimeLimitedAccessStatus + * @memberof Records.AmIShareAdmin * @static * @param {Object.} object Plain object - * @returns {Records.TimeLimitedAccessStatus} TimeLimitedAccessStatus + * @returns {Records.AmIShareAdmin} AmIShareAdmin */ - TimeLimitedAccessStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Records.TimeLimitedAccessStatus) + AmIShareAdmin.fromObject = function fromObject(object) { + if (object instanceof $root.Records.AmIShareAdmin) return object; - let message = new $root.Records.TimeLimitedAccessStatus(); - if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; - if (object.message != null) - message.message = String(object.message); + let message = new $root.Records.AmIShareAdmin(); + if (object.isObjectShareAdmin) { + if (!Array.isArray(object.isObjectShareAdmin)) + throw TypeError(".Records.AmIShareAdmin.isObjectShareAdmin: array expected"); + message.isObjectShareAdmin = []; + for (let i = 0; i < object.isObjectShareAdmin.length; ++i) { + if (typeof object.isObjectShareAdmin[i] !== "object") + throw TypeError(".Records.AmIShareAdmin.isObjectShareAdmin: object expected"); + message.isObjectShareAdmin[i] = $root.Records.IsObjectShareAdmin.fromObject(object.isObjectShareAdmin[i]); + } + } return message; }; /** - * Creates a plain object from a TimeLimitedAccessStatus message. Also converts values to other types if specified. + * Creates a plain object from an AmIShareAdmin message. Also converts values to other types if specified. * @function toObject - * @memberof Records.TimeLimitedAccessStatus + * @memberof Records.AmIShareAdmin * @static - * @param {Records.TimeLimitedAccessStatus} message TimeLimitedAccessStatus + * @param {Records.AmIShareAdmin} message AmIShareAdmin * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimeLimitedAccessStatus.toObject = function toObject(message, options) { + AmIShareAdmin.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.uid = ""; - else { - object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); - } - object.message = ""; + if (options.arrays || options.defaults) + object.isObjectShareAdmin = []; + if (message.isObjectShareAdmin && message.isObjectShareAdmin.length) { + object.isObjectShareAdmin = []; + for (let j = 0; j < message.isObjectShareAdmin.length; ++j) + object.isObjectShareAdmin[j] = $root.Records.IsObjectShareAdmin.toObject(message.isObjectShareAdmin[j], options); } - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; return object; }; /** - * Converts this TimeLimitedAccessStatus to JSON. + * Converts this AmIShareAdmin to JSON. * @function toJSON - * @memberof Records.TimeLimitedAccessStatus + * @memberof Records.AmIShareAdmin * @instance * @returns {Object.} JSON object */ - TimeLimitedAccessStatus.prototype.toJSON = function toJSON() { + AmIShareAdmin.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TimeLimitedAccessStatus + * Gets the default type url for AmIShareAdmin * @function getTypeUrl - * @memberof Records.TimeLimitedAccessStatus + * @memberof Records.AmIShareAdmin * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TimeLimitedAccessStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AmIShareAdmin.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.TimeLimitedAccessStatus"; + return typeUrlPrefix + "/Records.AmIShareAdmin"; }; - return TimeLimitedAccessStatus; + return AmIShareAdmin; })(); - Records.TimeLimitedAccessResponse = (function() { + Records.RecordShareUpdateRequest = (function() { /** - * Properties of a TimeLimitedAccessResponse. + * Properties of a RecordShareUpdateRequest. * @memberof Records - * @interface ITimeLimitedAccessResponse - * @property {number|Long|null} [revision] TimeLimitedAccessResponse revision - * @property {Array.|null} [userAccessStatus] TimeLimitedAccessResponse userAccessStatus - * @property {Array.|null} [teamAccessStatus] TimeLimitedAccessResponse teamAccessStatus - * @property {Array.|null} [recordAccessStatus] TimeLimitedAccessResponse recordAccessStatus + * @interface IRecordShareUpdateRequest + * @property {Array.|null} [addSharedRecord] RecordShareUpdateRequest addSharedRecord + * @property {Array.|null} [updateSharedRecord] RecordShareUpdateRequest updateSharedRecord + * @property {Array.|null} [removeSharedRecord] RecordShareUpdateRequest removeSharedRecord + * @property {string|null} [pt] RecordShareUpdateRequest pt */ /** - * Constructs a new TimeLimitedAccessResponse. + * Constructs a new RecordShareUpdateRequest. * @memberof Records - * @classdesc Represents a TimeLimitedAccessResponse. - * @implements ITimeLimitedAccessResponse + * @classdesc Represents a RecordShareUpdateRequest. + * @implements IRecordShareUpdateRequest * @constructor - * @param {Records.ITimeLimitedAccessResponse=} [properties] Properties to set + * @param {Records.IRecordShareUpdateRequest=} [properties] Properties to set */ - function TimeLimitedAccessResponse(properties) { - this.userAccessStatus = []; - this.teamAccessStatus = []; - this.recordAccessStatus = []; + function RecordShareUpdateRequest(properties) { + this.addSharedRecord = []; + this.updateSharedRecord = []; + this.removeSharedRecord = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -194090,126 +196267,126 @@ export const Records = $root.Records = (() => { } /** - * TimeLimitedAccessResponse revision. - * @member {number|Long} revision - * @memberof Records.TimeLimitedAccessResponse + * RecordShareUpdateRequest addSharedRecord. + * @member {Array.} addSharedRecord + * @memberof Records.RecordShareUpdateRequest * @instance */ - TimeLimitedAccessResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordShareUpdateRequest.prototype.addSharedRecord = $util.emptyArray; /** - * TimeLimitedAccessResponse userAccessStatus. - * @member {Array.} userAccessStatus - * @memberof Records.TimeLimitedAccessResponse + * RecordShareUpdateRequest updateSharedRecord. + * @member {Array.} updateSharedRecord + * @memberof Records.RecordShareUpdateRequest * @instance */ - TimeLimitedAccessResponse.prototype.userAccessStatus = $util.emptyArray; + RecordShareUpdateRequest.prototype.updateSharedRecord = $util.emptyArray; /** - * TimeLimitedAccessResponse teamAccessStatus. - * @member {Array.} teamAccessStatus - * @memberof Records.TimeLimitedAccessResponse + * RecordShareUpdateRequest removeSharedRecord. + * @member {Array.} removeSharedRecord + * @memberof Records.RecordShareUpdateRequest * @instance */ - TimeLimitedAccessResponse.prototype.teamAccessStatus = $util.emptyArray; + RecordShareUpdateRequest.prototype.removeSharedRecord = $util.emptyArray; /** - * TimeLimitedAccessResponse recordAccessStatus. - * @member {Array.} recordAccessStatus - * @memberof Records.TimeLimitedAccessResponse + * RecordShareUpdateRequest pt. + * @member {string} pt + * @memberof Records.RecordShareUpdateRequest * @instance */ - TimeLimitedAccessResponse.prototype.recordAccessStatus = $util.emptyArray; + RecordShareUpdateRequest.prototype.pt = ""; /** - * Creates a new TimeLimitedAccessResponse instance using the specified properties. + * Creates a new RecordShareUpdateRequest instance using the specified properties. * @function create - * @memberof Records.TimeLimitedAccessResponse + * @memberof Records.RecordShareUpdateRequest * @static - * @param {Records.ITimeLimitedAccessResponse=} [properties] Properties to set - * @returns {Records.TimeLimitedAccessResponse} TimeLimitedAccessResponse instance + * @param {Records.IRecordShareUpdateRequest=} [properties] Properties to set + * @returns {Records.RecordShareUpdateRequest} RecordShareUpdateRequest instance */ - TimeLimitedAccessResponse.create = function create(properties) { - return new TimeLimitedAccessResponse(properties); + RecordShareUpdateRequest.create = function create(properties) { + return new RecordShareUpdateRequest(properties); }; /** - * Encodes the specified TimeLimitedAccessResponse message. Does not implicitly {@link Records.TimeLimitedAccessResponse.verify|verify} messages. + * Encodes the specified RecordShareUpdateRequest message. Does not implicitly {@link Records.RecordShareUpdateRequest.verify|verify} messages. * @function encode - * @memberof Records.TimeLimitedAccessResponse + * @memberof Records.RecordShareUpdateRequest * @static - * @param {Records.ITimeLimitedAccessResponse} message TimeLimitedAccessResponse message or plain object to encode + * @param {Records.IRecordShareUpdateRequest} message RecordShareUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimeLimitedAccessResponse.encode = function encode(message, writer) { + RecordShareUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.revision); - if (message.userAccessStatus != null && message.userAccessStatus.length) - for (let i = 0; i < message.userAccessStatus.length; ++i) - $root.Records.TimeLimitedAccessStatus.encode(message.userAccessStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.teamAccessStatus != null && message.teamAccessStatus.length) - for (let i = 0; i < message.teamAccessStatus.length; ++i) - $root.Records.TimeLimitedAccessStatus.encode(message.teamAccessStatus[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.recordAccessStatus != null && message.recordAccessStatus.length) - for (let i = 0; i < message.recordAccessStatus.length; ++i) - $root.Records.TimeLimitedAccessStatus.encode(message.recordAccessStatus[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.addSharedRecord != null && message.addSharedRecord.length) + for (let i = 0; i < message.addSharedRecord.length; ++i) + $root.Records.SharedRecord.encode(message.addSharedRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateSharedRecord != null && message.updateSharedRecord.length) + for (let i = 0; i < message.updateSharedRecord.length; ++i) + $root.Records.SharedRecord.encode(message.updateSharedRecord[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.removeSharedRecord != null && message.removeSharedRecord.length) + for (let i = 0; i < message.removeSharedRecord.length; ++i) + $root.Records.SharedRecord.encode(message.removeSharedRecord[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.pt != null && Object.hasOwnProperty.call(message, "pt")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pt); return writer; }; /** - * Encodes the specified TimeLimitedAccessResponse message, length delimited. Does not implicitly {@link Records.TimeLimitedAccessResponse.verify|verify} messages. + * Encodes the specified RecordShareUpdateRequest message, length delimited. Does not implicitly {@link Records.RecordShareUpdateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Records.TimeLimitedAccessResponse + * @memberof Records.RecordShareUpdateRequest * @static - * @param {Records.ITimeLimitedAccessResponse} message TimeLimitedAccessResponse message or plain object to encode + * @param {Records.IRecordShareUpdateRequest} message RecordShareUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimeLimitedAccessResponse.encodeDelimited = function encodeDelimited(message, writer) { + RecordShareUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TimeLimitedAccessResponse message from the specified reader or buffer. + * Decodes a RecordShareUpdateRequest message from the specified reader or buffer. * @function decode - * @memberof Records.TimeLimitedAccessResponse + * @memberof Records.RecordShareUpdateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Records.TimeLimitedAccessResponse} TimeLimitedAccessResponse + * @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 */ - TimeLimitedAccessResponse.decode = function decode(reader, length) { + RecordShareUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TimeLimitedAccessResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordShareUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.revision = reader.int64(); + if (!(message.addSharedRecord && message.addSharedRecord.length)) + message.addSharedRecord = []; + message.addSharedRecord.push($root.Records.SharedRecord.decode(reader, reader.uint32())); break; } case 2: { - if (!(message.userAccessStatus && message.userAccessStatus.length)) - message.userAccessStatus = []; - message.userAccessStatus.push($root.Records.TimeLimitedAccessStatus.decode(reader, reader.uint32())); + if (!(message.updateSharedRecord && message.updateSharedRecord.length)) + message.updateSharedRecord = []; + message.updateSharedRecord.push($root.Records.SharedRecord.decode(reader, reader.uint32())); break; } case 3: { - if (!(message.teamAccessStatus && message.teamAccessStatus.length)) - message.teamAccessStatus = []; - message.teamAccessStatus.push($root.Records.TimeLimitedAccessStatus.decode(reader, reader.uint32())); + if (!(message.removeSharedRecord && message.removeSharedRecord.length)) + message.removeSharedRecord = []; + message.removeSharedRecord.push($root.Records.SharedRecord.decode(reader, reader.uint32())); break; } case 4: { - if (!(message.recordAccessStatus && message.recordAccessStatus.length)) - message.recordAccessStatus = []; - message.recordAccessStatus.push($root.Records.TimeLimitedAccessStatus.decode(reader, reader.uint32())); + message.pt = reader.string(); break; } default: @@ -194221,227 +196398,211 @@ export const Records = $root.Records = (() => { }; /** - * Decodes a TimeLimitedAccessResponse message from the specified reader or buffer, length delimited. + * Decodes a RecordShareUpdateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Records.TimeLimitedAccessResponse + * @memberof Records.RecordShareUpdateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Records.TimeLimitedAccessResponse} TimeLimitedAccessResponse + * @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 */ - TimeLimitedAccessResponse.decodeDelimited = function decodeDelimited(reader) { + RecordShareUpdateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TimeLimitedAccessResponse message. + * Verifies a RecordShareUpdateRequest message. * @function verify - * @memberof Records.TimeLimitedAccessResponse + * @memberof Records.RecordShareUpdateRequest * @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) { + RecordShareUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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]); + 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]); if (error) - return "userAccessStatus." + error; + return "addSharedRecord." + 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]); + 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]); if (error) - return "teamAccessStatus." + error; + return "updateSharedRecord." + 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]); + 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]); if (error) - return "recordAccessStatus." + error; + return "removeSharedRecord." + error; } } + if (message.pt != null && message.hasOwnProperty("pt")) + if (!$util.isString(message.pt)) + return "pt: string expected"; return null; }; /** - * Creates a TimeLimitedAccessResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RecordShareUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Records.TimeLimitedAccessResponse + * @memberof Records.RecordShareUpdateRequest * @static * @param {Object.} object Plain object - * @returns {Records.TimeLimitedAccessResponse} TimeLimitedAccessResponse + * @returns {Records.RecordShareUpdateRequest} RecordShareUpdateRequest */ - TimeLimitedAccessResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.TimeLimitedAccessResponse) + RecordShareUpdateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordShareUpdateRequest) return object; - let message = new $root.Records.TimeLimitedAccessResponse(); - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.userAccessStatus) { - if (!Array.isArray(object.userAccessStatus)) - throw TypeError(".Records.TimeLimitedAccessResponse.userAccessStatus: array expected"); - message.userAccessStatus = []; - for (let i = 0; i < object.userAccessStatus.length; ++i) { - if (typeof object.userAccessStatus[i] !== "object") - throw TypeError(".Records.TimeLimitedAccessResponse.userAccessStatus: object expected"); - message.userAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject(object.userAccessStatus[i]); + let message = new $root.Records.RecordShareUpdateRequest(); + if (object.addSharedRecord) { + if (!Array.isArray(object.addSharedRecord)) + throw TypeError(".Records.RecordShareUpdateRequest.addSharedRecord: array expected"); + message.addSharedRecord = []; + for (let i = 0; i < object.addSharedRecord.length; ++i) { + if (typeof object.addSharedRecord[i] !== "object") + throw TypeError(".Records.RecordShareUpdateRequest.addSharedRecord: object expected"); + message.addSharedRecord[i] = $root.Records.SharedRecord.fromObject(object.addSharedRecord[i]); } } - if (object.teamAccessStatus) { - if (!Array.isArray(object.teamAccessStatus)) - throw TypeError(".Records.TimeLimitedAccessResponse.teamAccessStatus: array expected"); - message.teamAccessStatus = []; - for (let i = 0; i < object.teamAccessStatus.length; ++i) { - if (typeof object.teamAccessStatus[i] !== "object") - throw TypeError(".Records.TimeLimitedAccessResponse.teamAccessStatus: object expected"); - message.teamAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject(object.teamAccessStatus[i]); + if (object.updateSharedRecord) { + if (!Array.isArray(object.updateSharedRecord)) + throw TypeError(".Records.RecordShareUpdateRequest.updateSharedRecord: array expected"); + message.updateSharedRecord = []; + for (let i = 0; i < object.updateSharedRecord.length; ++i) { + if (typeof object.updateSharedRecord[i] !== "object") + throw TypeError(".Records.RecordShareUpdateRequest.updateSharedRecord: object expected"); + message.updateSharedRecord[i] = $root.Records.SharedRecord.fromObject(object.updateSharedRecord[i]); } } - if (object.recordAccessStatus) { - if (!Array.isArray(object.recordAccessStatus)) - throw TypeError(".Records.TimeLimitedAccessResponse.recordAccessStatus: array expected"); - message.recordAccessStatus = []; - for (let i = 0; i < object.recordAccessStatus.length; ++i) { - if (typeof object.recordAccessStatus[i] !== "object") - throw TypeError(".Records.TimeLimitedAccessResponse.recordAccessStatus: object expected"); - message.recordAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject(object.recordAccessStatus[i]); + if (object.removeSharedRecord) { + if (!Array.isArray(object.removeSharedRecord)) + throw TypeError(".Records.RecordShareUpdateRequest.removeSharedRecord: array expected"); + message.removeSharedRecord = []; + for (let i = 0; i < object.removeSharedRecord.length; ++i) { + if (typeof object.removeSharedRecord[i] !== "object") + throw TypeError(".Records.RecordShareUpdateRequest.removeSharedRecord: object expected"); + message.removeSharedRecord[i] = $root.Records.SharedRecord.fromObject(object.removeSharedRecord[i]); } } + if (object.pt != null) + message.pt = String(object.pt); return message; }; /** - * Creates a plain object from a TimeLimitedAccessResponse message. Also converts values to other types if specified. + * Creates a plain object from a RecordShareUpdateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Records.TimeLimitedAccessResponse + * @memberof Records.RecordShareUpdateRequest * @static - * @param {Records.TimeLimitedAccessResponse} message TimeLimitedAccessResponse + * @param {Records.RecordShareUpdateRequest} message RecordShareUpdateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimeLimitedAccessResponse.toObject = function toObject(message, options) { + RecordShareUpdateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { - object.userAccessStatus = []; - object.teamAccessStatus = []; - object.recordAccessStatus = []; + object.addSharedRecord = []; + object.updateSharedRecord = []; + object.removeSharedRecord = []; } if (options.defaults) - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") - object.revision = options.longs === String ? String(message.revision) : message.revision; - else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.userAccessStatus && message.userAccessStatus.length) { - object.userAccessStatus = []; - for (let j = 0; j < message.userAccessStatus.length; ++j) - object.userAccessStatus[j] = $root.Records.TimeLimitedAccessStatus.toObject(message.userAccessStatus[j], options); + object.pt = ""; + if (message.addSharedRecord && message.addSharedRecord.length) { + object.addSharedRecord = []; + for (let j = 0; j < message.addSharedRecord.length; ++j) + object.addSharedRecord[j] = $root.Records.SharedRecord.toObject(message.addSharedRecord[j], options); } - if (message.teamAccessStatus && message.teamAccessStatus.length) { - object.teamAccessStatus = []; - for (let j = 0; j < message.teamAccessStatus.length; ++j) - object.teamAccessStatus[j] = $root.Records.TimeLimitedAccessStatus.toObject(message.teamAccessStatus[j], options); + if (message.updateSharedRecord && message.updateSharedRecord.length) { + object.updateSharedRecord = []; + for (let j = 0; j < message.updateSharedRecord.length; ++j) + object.updateSharedRecord[j] = $root.Records.SharedRecord.toObject(message.updateSharedRecord[j], options); } - if (message.recordAccessStatus && message.recordAccessStatus.length) { - object.recordAccessStatus = []; - for (let j = 0; j < message.recordAccessStatus.length; ++j) - object.recordAccessStatus[j] = $root.Records.TimeLimitedAccessStatus.toObject(message.recordAccessStatus[j], options); + if (message.removeSharedRecord && message.removeSharedRecord.length) { + object.removeSharedRecord = []; + for (let j = 0; j < message.removeSharedRecord.length; ++j) + object.removeSharedRecord[j] = $root.Records.SharedRecord.toObject(message.removeSharedRecord[j], options); } + if (message.pt != null && message.hasOwnProperty("pt")) + object.pt = message.pt; return object; }; /** - * Converts this TimeLimitedAccessResponse to JSON. + * Converts this RecordShareUpdateRequest to JSON. * @function toJSON - * @memberof Records.TimeLimitedAccessResponse + * @memberof Records.RecordShareUpdateRequest * @instance * @returns {Object.} JSON object */ - TimeLimitedAccessResponse.prototype.toJSON = function toJSON() { + RecordShareUpdateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TimeLimitedAccessResponse + * Gets the default type url for RecordShareUpdateRequest * @function getTypeUrl - * @memberof Records.TimeLimitedAccessResponse + * @memberof Records.RecordShareUpdateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TimeLimitedAccessResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordShareUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Records.TimeLimitedAccessResponse"; + return typeUrlPrefix + "/Records.RecordShareUpdateRequest"; }; - return TimeLimitedAccessResponse; + return RecordShareUpdateRequest; })(); - return Records; -})(); - -export const Push = $root.Push = (() => { - - /** - * Namespace Push. - * @exports Push - * @namespace - */ - const Push = {}; - - Push.UserRegistrationRequest = (function() { + Records.SharedRecord = (function() { /** - * Properties of a UserRegistrationRequest. - * @memberof Push - * @interface IUserRegistrationRequest - * @property {Uint8Array|null} [messageSessionUid] UserRegistrationRequest messageSessionUid - * @property {number|null} [userId] UserRegistrationRequest userId - * @property {number|null} [enterpriseId] UserRegistrationRequest enterpriseId + * Properties of a SharedRecord. + * @memberof Records + * @interface ISharedRecord + * @property {string|null} [toUsername] SharedRecord toUsername + * @property {Uint8Array|null} [recordUid] SharedRecord recordUid + * @property {Uint8Array|null} [recordKey] SharedRecord recordKey + * @property {Uint8Array|null} [sharedFolderUid] SharedRecord sharedFolderUid + * @property {Uint8Array|null} [teamUid] SharedRecord teamUid + * @property {boolean|null} [editable] SharedRecord editable + * @property {boolean|null} [shareable] SharedRecord shareable + * @property {boolean|null} [transfer] SharedRecord transfer + * @property {boolean|null} [useEccKey] SharedRecord useEccKey + * @property {boolean|null} [removeVaultData] SharedRecord removeVaultData + * @property {number|Long|null} [expiration] SharedRecord expiration + * @property {Records.TimerNotificationType|null} [timerNotificationType] SharedRecord timerNotificationType + * @property {boolean|null} [rotateOnExpiration] SharedRecord rotateOnExpiration */ /** - * Constructs a new UserRegistrationRequest. - * @memberof Push - * @classdesc Represents a UserRegistrationRequest. - * @implements IUserRegistrationRequest + * Constructs a new SharedRecord. + * @memberof Records + * @classdesc Represents a SharedRecord. + * @implements ISharedRecord * @constructor - * @param {Push.IUserRegistrationRequest=} [properties] Properties to set + * @param {Records.ISharedRecord=} [properties] Properties to set */ - function UserRegistrationRequest(properties) { + function SharedRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -194449,103 +196610,243 @@ export const Push = $root.Push = (() => { } /** - * UserRegistrationRequest messageSessionUid. - * @member {Uint8Array} messageSessionUid - * @memberof Push.UserRegistrationRequest + * SharedRecord toUsername. + * @member {string} toUsername + * @memberof Records.SharedRecord * @instance */ - UserRegistrationRequest.prototype.messageSessionUid = $util.newBuffer([]); + SharedRecord.prototype.toUsername = ""; /** - * UserRegistrationRequest userId. - * @member {number} userId - * @memberof Push.UserRegistrationRequest + * SharedRecord recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.SharedRecord * @instance */ - UserRegistrationRequest.prototype.userId = 0; + SharedRecord.prototype.recordUid = $util.newBuffer([]); /** - * UserRegistrationRequest enterpriseId. - * @member {number} enterpriseId - * @memberof Push.UserRegistrationRequest + * SharedRecord recordKey. + * @member {Uint8Array} recordKey + * @memberof Records.SharedRecord * @instance */ - UserRegistrationRequest.prototype.enterpriseId = 0; + SharedRecord.prototype.recordKey = $util.newBuffer([]); /** - * Creates a new UserRegistrationRequest instance using the specified properties. + * SharedRecord sharedFolderUid. + * @member {Uint8Array} sharedFolderUid + * @memberof Records.SharedRecord + * @instance + */ + SharedRecord.prototype.sharedFolderUid = $util.newBuffer([]); + + /** + * SharedRecord teamUid. + * @member {Uint8Array} teamUid + * @memberof Records.SharedRecord + * @instance + */ + SharedRecord.prototype.teamUid = $util.newBuffer([]); + + /** + * SharedRecord editable. + * @member {boolean} editable + * @memberof Records.SharedRecord + * @instance + */ + SharedRecord.prototype.editable = false; + + /** + * SharedRecord shareable. + * @member {boolean} shareable + * @memberof Records.SharedRecord + * @instance + */ + SharedRecord.prototype.shareable = false; + + /** + * SharedRecord transfer. + * @member {boolean} transfer + * @memberof Records.SharedRecord + * @instance + */ + SharedRecord.prototype.transfer = false; + + /** + * SharedRecord useEccKey. + * @member {boolean} useEccKey + * @memberof Records.SharedRecord + * @instance + */ + SharedRecord.prototype.useEccKey = false; + + /** + * SharedRecord removeVaultData. + * @member {boolean} removeVaultData + * @memberof Records.SharedRecord + * @instance + */ + SharedRecord.prototype.removeVaultData = false; + + /** + * SharedRecord expiration. + * @member {number|Long} expiration + * @memberof Records.SharedRecord + * @instance + */ + SharedRecord.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SharedRecord timerNotificationType. + * @member {Records.TimerNotificationType} timerNotificationType + * @memberof Records.SharedRecord + * @instance + */ + SharedRecord.prototype.timerNotificationType = 0; + + /** + * SharedRecord rotateOnExpiration. + * @member {boolean} rotateOnExpiration + * @memberof Records.SharedRecord + * @instance + */ + SharedRecord.prototype.rotateOnExpiration = false; + + /** + * Creates a new SharedRecord instance using the specified properties. * @function create - * @memberof Push.UserRegistrationRequest + * @memberof Records.SharedRecord * @static - * @param {Push.IUserRegistrationRequest=} [properties] Properties to set - * @returns {Push.UserRegistrationRequest} UserRegistrationRequest instance + * @param {Records.ISharedRecord=} [properties] Properties to set + * @returns {Records.SharedRecord} SharedRecord instance */ - UserRegistrationRequest.create = function create(properties) { - return new UserRegistrationRequest(properties); + SharedRecord.create = function create(properties) { + return new SharedRecord(properties); }; /** - * Encodes the specified UserRegistrationRequest message. Does not implicitly {@link Push.UserRegistrationRequest.verify|verify} messages. + * Encodes the specified SharedRecord message. Does not implicitly {@link Records.SharedRecord.verify|verify} messages. * @function encode - * @memberof Push.UserRegistrationRequest + * @memberof Records.SharedRecord * @static - * @param {Push.IUserRegistrationRequest} message UserRegistrationRequest message or plain object to encode + * @param {Records.ISharedRecord} message SharedRecord message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserRegistrationRequest.encode = function encode(message, writer) { + SharedRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.messageSessionUid); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.userId); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.enterpriseId); + if (message.toUsername != null && Object.hasOwnProperty.call(message, "toUsername")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.toUsername); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordKey); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.sharedFolderUid); + if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.teamUid); + if (message.editable != null && Object.hasOwnProperty.call(message, "editable")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.editable); + if (message.shareable != null && Object.hasOwnProperty.call(message, "shareable")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.shareable); + if (message.transfer != null && Object.hasOwnProperty.call(message, "transfer")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.transfer); + if (message.useEccKey != null && Object.hasOwnProperty.call(message, "useEccKey")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.useEccKey); + if (message.removeVaultData != null && Object.hasOwnProperty.call(message, "removeVaultData")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.removeVaultData); + if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) + writer.uint32(/* id 11, wireType 0 =*/88).int64(message.expiration); + if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) + writer.uint32(/* id 12, wireType 0 =*/96).int32(message.timerNotificationType); + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.rotateOnExpiration); return writer; }; /** - * Encodes the specified UserRegistrationRequest message, length delimited. Does not implicitly {@link Push.UserRegistrationRequest.verify|verify} messages. + * Encodes the specified SharedRecord message, length delimited. Does not implicitly {@link Records.SharedRecord.verify|verify} messages. * @function encodeDelimited - * @memberof Push.UserRegistrationRequest + * @memberof Records.SharedRecord * @static - * @param {Push.IUserRegistrationRequest} message UserRegistrationRequest message or plain object to encode + * @param {Records.ISharedRecord} message SharedRecord message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserRegistrationRequest.encodeDelimited = function encodeDelimited(message, writer) { + SharedRecord.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a UserRegistrationRequest message from the specified reader or buffer. + * Decodes a SharedRecord message from the specified reader or buffer. * @function decode - * @memberof Push.UserRegistrationRequest + * @memberof Records.SharedRecord * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Push.UserRegistrationRequest} UserRegistrationRequest + * @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 */ - UserRegistrationRequest.decode = function decode(reader, length) { + SharedRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.UserRegistrationRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.SharedRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.messageSessionUid = reader.bytes(); + message.toUsername = reader.string(); break; } case 2: { - message.userId = reader.int32(); + message.recordUid = reader.bytes(); break; } case 3: { - message.enterpriseId = reader.int32(); + message.recordKey = reader.bytes(); + break; + } + case 4: { + message.sharedFolderUid = reader.bytes(); + break; + } + case 5: { + message.teamUid = reader.bytes(); + break; + } + case 6: { + message.editable = reader.bool(); + break; + } + case 7: { + message.shareable = reader.bool(); + break; + } + case 8: { + message.transfer = reader.bool(); + break; + } + case 9: { + message.useEccKey = reader.bool(); + break; + } + case 10: { + message.removeVaultData = reader.bool(); + break; + } + case 11: { + message.expiration = reader.int64(); + break; + } + case 12: { + message.timerNotificationType = reader.int32(); + break; + } + case 13: { + message.rotateOnExpiration = reader.bool(); break; } default: @@ -194557,186 +196858,298 @@ export const Push = $root.Push = (() => { }; /** - * Decodes a UserRegistrationRequest message from the specified reader or buffer, length delimited. + * Decodes a SharedRecord message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Push.UserRegistrationRequest + * @memberof Records.SharedRecord * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Push.UserRegistrationRequest} UserRegistrationRequest + * @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 */ - UserRegistrationRequest.decodeDelimited = function decodeDelimited(reader) { + SharedRecord.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a UserRegistrationRequest message. + * Verifies a SharedRecord message. * @function verify - * @memberof Push.UserRegistrationRequest + * @memberof Records.SharedRecord * @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) { + SharedRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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"; + 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 UserRegistrationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SharedRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Push.UserRegistrationRequest + * @memberof Records.SharedRecord * @static * @param {Object.} object Plain object - * @returns {Push.UserRegistrationRequest} UserRegistrationRequest + * @returns {Records.SharedRecord} SharedRecord */ - UserRegistrationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Push.UserRegistrationRequest) + SharedRecord.fromObject = function fromObject(object) { + if (object instanceof $root.Records.SharedRecord) return object; - let message = new $root.Push.UserRegistrationRequest(); - if (object.messageSessionUid != null) - if (typeof object.messageSessionUid === "string") - $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); - else if (object.messageSessionUid.length >= 0) - message.messageSessionUid = object.messageSessionUid; - if (object.userId != null) - message.userId = object.userId | 0; - if (object.enterpriseId != null) - message.enterpriseId = object.enterpriseId | 0; + let message = new $root.Records.SharedRecord(); + if (object.toUsername != null) + message.toUsername = String(object.toUsername); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.recordKey != null) + if (typeof object.recordKey === "string") + $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); + else if (object.recordKey.length >= 0) + message.recordKey = object.recordKey; + if (object.sharedFolderUid != null) + if (typeof object.sharedFolderUid === "string") + $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); + else if (object.sharedFolderUid.length >= 0) + message.sharedFolderUid = object.sharedFolderUid; + if (object.teamUid != null) + if (typeof object.teamUid === "string") + $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); + else if (object.teamUid.length >= 0) + message.teamUid = object.teamUid; + if (object.editable != null) + message.editable = Boolean(object.editable); + if (object.shareable != null) + message.shareable = Boolean(object.shareable); + if (object.transfer != null) + message.transfer = Boolean(object.transfer); + if (object.useEccKey != null) + message.useEccKey = Boolean(object.useEccKey); + if (object.removeVaultData != null) + message.removeVaultData = Boolean(object.removeVaultData); + if (object.expiration != null) + if ($util.Long) + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === "string") + message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === "number") + message.expiration = object.expiration; + else if (typeof object.expiration === "object") + message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + switch (object.timerNotificationType) { + default: + if (typeof object.timerNotificationType === "number") { + message.timerNotificationType = object.timerNotificationType; + break; + } + break; + case "NOTIFICATION_OFF": + case 0: + message.timerNotificationType = 0; + break; + case "NOTIFY_OWNER": + case 1: + message.timerNotificationType = 1; + break; + case "NOTIFY_PRIVILEGED_USERS": + case 2: + message.timerNotificationType = 2; + break; + } + if (object.rotateOnExpiration != null) + message.rotateOnExpiration = Boolean(object.rotateOnExpiration); return message; }; /** - * Creates a plain object from a UserRegistrationRequest message. Also converts values to other types if specified. + * Creates a plain object from a SharedRecord message. Also converts values to other types if specified. * @function toObject - * @memberof Push.UserRegistrationRequest + * @memberof Records.SharedRecord * @static - * @param {Push.UserRegistrationRequest} message UserRegistrationRequest + * @param {Records.SharedRecord} message SharedRecord * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserRegistrationRequest.toObject = function toObject(message, options) { + SharedRecord.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { + object.toUsername = ""; if (options.bytes === String) - object.messageSessionUid = ""; + object.recordUid = ""; else { - object.messageSessionUid = []; + object.recordUid = []; if (options.bytes !== Array) - object.messageSessionUid = $util.newBuffer(object.messageSessionUid); + object.recordUid = $util.newBuffer(object.recordUid); } - object.userId = 0; - object.enterpriseId = 0; + if (options.bytes === String) + object.recordKey = ""; + else { + object.recordKey = []; + if (options.bytes !== Array) + object.recordKey = $util.newBuffer(object.recordKey); + } + if (options.bytes === String) + object.sharedFolderUid = ""; + else { + object.sharedFolderUid = []; + if (options.bytes !== Array) + object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + } + if (options.bytes === String) + object.teamUid = ""; + else { + object.teamUid = []; + if (options.bytes !== Array) + object.teamUid = $util.newBuffer(object.teamUid); + } + object.editable = false; + object.shareable = false; + object.transfer = false; + object.useEccKey = false; + object.removeVaultData = false; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.expiration = options.longs === String ? "0" : 0; + object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; + object.rotateOnExpiration = false; } - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - object.enterpriseId = message.enterpriseId; + if (message.toUsername != null && message.hasOwnProperty("toUsername")) + object.toUsername = message.toUsername; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.recordKey != null && message.hasOwnProperty("recordKey")) + object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; + if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; + if (message.teamUid != null && message.hasOwnProperty("teamUid")) + object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; + if (message.editable != null && message.hasOwnProperty("editable")) + object.editable = message.editable; + if (message.shareable != null && message.hasOwnProperty("shareable")) + object.shareable = message.shareable; + if (message.transfer != null && message.hasOwnProperty("transfer")) + object.transfer = message.transfer; + if (message.useEccKey != null && message.hasOwnProperty("useEccKey")) + object.useEccKey = message.useEccKey; + if (message.removeVaultData != null && message.hasOwnProperty("removeVaultData")) + object.removeVaultData = message.removeVaultData; + if (message.expiration != null && message.hasOwnProperty("expiration")) + if (typeof message.expiration === "number") + object.expiration = options.longs === String ? String(message.expiration) : message.expiration; + else + object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; + if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) + object.timerNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.Records.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; + if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + object.rotateOnExpiration = message.rotateOnExpiration; return object; }; /** - * Converts this UserRegistrationRequest to JSON. + * Converts this SharedRecord to JSON. * @function toJSON - * @memberof Push.UserRegistrationRequest + * @memberof Records.SharedRecord * @instance * @returns {Object.} JSON object */ - UserRegistrationRequest.prototype.toJSON = function toJSON() { + SharedRecord.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UserRegistrationRequest + * Gets the default type url for SharedRecord * @function getTypeUrl - * @memberof Push.UserRegistrationRequest + * @memberof Records.SharedRecord * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UserRegistrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SharedRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Push.UserRegistrationRequest"; + return typeUrlPrefix + "/Records.SharedRecord"; }; - return UserRegistrationRequest; - })(); - - /** - * MessageType enum. - * @name Push.MessageType - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} DNA=1 DNA value - * @property {number} SSO=2 SSO value - * @property {number} CHAT=3 CHAT value - * @property {number} USER=4 USER value - * @property {number} ENTERPRISE=5 ENTERPRISE value - * @property {number} KEEPER=6 KEEPER value - * @property {number} SESSION=7 SESSION value - * @property {number} DEVICE=8 DEVICE value - * @property {number} TOTP=9 TOTP value - */ - Push.MessageType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "DNA"] = 1; - values[valuesById[2] = "SSO"] = 2; - values[valuesById[3] = "CHAT"] = 3; - values[valuesById[4] = "USER"] = 4; - values[valuesById[5] = "ENTERPRISE"] = 5; - values[valuesById[6] = "KEEPER"] = 6; - values[valuesById[7] = "SESSION"] = 7; - values[valuesById[8] = "DEVICE"] = 8; - values[valuesById[9] = "TOTP"] = 9; - return values; + return SharedRecord; })(); - Push.KAToPushServerRequest = (function() { + Records.RecordShareUpdateResponse = (function() { /** - * Properties of a KAToPushServerRequest. - * @memberof Push - * @interface IKAToPushServerRequest - * @property {Push.MessageType|null} [messageType] KAToPushServerRequest messageType - * @property {string|null} [message] KAToPushServerRequest message - * @property {Uint8Array|null} [messageSessionUid] KAToPushServerRequest messageSessionUid - * @property {Array.|null} [encryptedDeviceToken] KAToPushServerRequest encryptedDeviceToken - * @property {Array.|null} [userId] KAToPushServerRequest userId - * @property {Array.|null} [enterpriseId] KAToPushServerRequest enterpriseId + * Properties of a RecordShareUpdateResponse. + * @memberof Records + * @interface IRecordShareUpdateResponse + * @property {Array.|null} [addSharedRecordStatus] RecordShareUpdateResponse addSharedRecordStatus + * @property {Array.|null} [updateSharedRecordStatus] RecordShareUpdateResponse updateSharedRecordStatus + * @property {Array.|null} [removeSharedRecordStatus] RecordShareUpdateResponse removeSharedRecordStatus */ /** - * Constructs a new KAToPushServerRequest. - * @memberof Push - * @classdesc Represents a KAToPushServerRequest. - * @implements IKAToPushServerRequest + * Constructs a new RecordShareUpdateResponse. + * @memberof Records + * @classdesc Represents a RecordShareUpdateResponse. + * @implements IRecordShareUpdateResponse * @constructor - * @param {Push.IKAToPushServerRequest=} [properties] Properties to set + * @param {Records.IRecordShareUpdateResponse=} [properties] Properties to set */ - function KAToPushServerRequest(properties) { - this.encryptedDeviceToken = []; - this.userId = []; - this.enterpriseId = []; + function RecordShareUpdateResponse(properties) { + this.addSharedRecordStatus = []; + this.updateSharedRecordStatus = []; + this.removeSharedRecordStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -194744,170 +197157,112 @@ export const Push = $root.Push = (() => { } /** - * KAToPushServerRequest messageType. - * @member {Push.MessageType} messageType - * @memberof Push.KAToPushServerRequest - * @instance - */ - KAToPushServerRequest.prototype.messageType = 0; - - /** - * KAToPushServerRequest message. - * @member {string} message - * @memberof Push.KAToPushServerRequest - * @instance - */ - KAToPushServerRequest.prototype.message = ""; - - /** - * KAToPushServerRequest messageSessionUid. - * @member {Uint8Array} messageSessionUid - * @memberof Push.KAToPushServerRequest - * @instance - */ - KAToPushServerRequest.prototype.messageSessionUid = $util.newBuffer([]); - - /** - * KAToPushServerRequest encryptedDeviceToken. - * @member {Array.} encryptedDeviceToken - * @memberof Push.KAToPushServerRequest + * RecordShareUpdateResponse addSharedRecordStatus. + * @member {Array.} addSharedRecordStatus + * @memberof Records.RecordShareUpdateResponse * @instance */ - KAToPushServerRequest.prototype.encryptedDeviceToken = $util.emptyArray; + RecordShareUpdateResponse.prototype.addSharedRecordStatus = $util.emptyArray; /** - * KAToPushServerRequest userId. - * @member {Array.} userId - * @memberof Push.KAToPushServerRequest + * RecordShareUpdateResponse updateSharedRecordStatus. + * @member {Array.} updateSharedRecordStatus + * @memberof Records.RecordShareUpdateResponse * @instance */ - KAToPushServerRequest.prototype.userId = $util.emptyArray; + RecordShareUpdateResponse.prototype.updateSharedRecordStatus = $util.emptyArray; /** - * KAToPushServerRequest enterpriseId. - * @member {Array.} enterpriseId - * @memberof Push.KAToPushServerRequest + * RecordShareUpdateResponse removeSharedRecordStatus. + * @member {Array.} removeSharedRecordStatus + * @memberof Records.RecordShareUpdateResponse * @instance */ - KAToPushServerRequest.prototype.enterpriseId = $util.emptyArray; + RecordShareUpdateResponse.prototype.removeSharedRecordStatus = $util.emptyArray; /** - * Creates a new KAToPushServerRequest instance using the specified properties. + * Creates a new RecordShareUpdateResponse instance using the specified properties. * @function create - * @memberof Push.KAToPushServerRequest + * @memberof Records.RecordShareUpdateResponse * @static - * @param {Push.IKAToPushServerRequest=} [properties] Properties to set - * @returns {Push.KAToPushServerRequest} KAToPushServerRequest instance + * @param {Records.IRecordShareUpdateResponse=} [properties] Properties to set + * @returns {Records.RecordShareUpdateResponse} RecordShareUpdateResponse instance */ - KAToPushServerRequest.create = function create(properties) { - return new KAToPushServerRequest(properties); + RecordShareUpdateResponse.create = function create(properties) { + return new RecordShareUpdateResponse(properties); }; /** - * Encodes the specified KAToPushServerRequest message. Does not implicitly {@link Push.KAToPushServerRequest.verify|verify} messages. + * Encodes the specified RecordShareUpdateResponse message. Does not implicitly {@link Records.RecordShareUpdateResponse.verify|verify} messages. * @function encode - * @memberof Push.KAToPushServerRequest + * @memberof Records.RecordShareUpdateResponse * @static - * @param {Push.IKAToPushServerRequest} message KAToPushServerRequest message or plain object to encode + * @param {Records.IRecordShareUpdateResponse} message RecordShareUpdateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KAToPushServerRequest.encode = function encode(message, writer) { + RecordShareUpdateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.messageSessionUid); - if (message.encryptedDeviceToken != null && message.encryptedDeviceToken.length) - for (let i = 0; i < message.encryptedDeviceToken.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.encryptedDeviceToken[i]); - if (message.userId != null && message.userId.length) { - writer.uint32(/* id 5, wireType 2 =*/42).fork(); - for (let i = 0; i < message.userId.length; ++i) - writer.int32(message.userId[i]); - writer.ldelim(); - } - if (message.enterpriseId != null && message.enterpriseId.length) { - writer.uint32(/* id 6, wireType 2 =*/50).fork(); - for (let i = 0; i < message.enterpriseId.length; ++i) - writer.int32(message.enterpriseId[i]); - writer.ldelim(); - } + if (message.addSharedRecordStatus != null && message.addSharedRecordStatus.length) + for (let i = 0; i < message.addSharedRecordStatus.length; ++i) + $root.Records.SharedRecordStatus.encode(message.addSharedRecordStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateSharedRecordStatus != null && message.updateSharedRecordStatus.length) + for (let i = 0; i < message.updateSharedRecordStatus.length; ++i) + $root.Records.SharedRecordStatus.encode(message.updateSharedRecordStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.removeSharedRecordStatus != null && message.removeSharedRecordStatus.length) + for (let i = 0; i < message.removeSharedRecordStatus.length; ++i) + $root.Records.SharedRecordStatus.encode(message.removeSharedRecordStatus[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified KAToPushServerRequest message, length delimited. Does not implicitly {@link Push.KAToPushServerRequest.verify|verify} messages. + * Encodes the specified RecordShareUpdateResponse message, length delimited. Does not implicitly {@link Records.RecordShareUpdateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Push.KAToPushServerRequest + * @memberof Records.RecordShareUpdateResponse * @static - * @param {Push.IKAToPushServerRequest} message KAToPushServerRequest message or plain object to encode + * @param {Records.IRecordShareUpdateResponse} message RecordShareUpdateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KAToPushServerRequest.encodeDelimited = function encodeDelimited(message, writer) { + RecordShareUpdateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a KAToPushServerRequest message from the specified reader or buffer. + * Decodes a RecordShareUpdateResponse message from the specified reader or buffer. * @function decode - * @memberof Push.KAToPushServerRequest + * @memberof Records.RecordShareUpdateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Push.KAToPushServerRequest} KAToPushServerRequest + * @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 */ - KAToPushServerRequest.decode = function decode(reader, length) { + RecordShareUpdateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.KAToPushServerRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordShareUpdateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.messageType = reader.int32(); + if (!(message.addSharedRecordStatus && message.addSharedRecordStatus.length)) + message.addSharedRecordStatus = []; + message.addSharedRecordStatus.push($root.Records.SharedRecordStatus.decode(reader, reader.uint32())); break; } case 2: { - message.message = reader.string(); + if (!(message.updateSharedRecordStatus && message.updateSharedRecordStatus.length)) + message.updateSharedRecordStatus = []; + message.updateSharedRecordStatus.push($root.Records.SharedRecordStatus.decode(reader, reader.uint32())); break; } case 3: { - message.messageSessionUid = reader.bytes(); - break; - } - case 4: { - if (!(message.encryptedDeviceToken && message.encryptedDeviceToken.length)) - message.encryptedDeviceToken = []; - message.encryptedDeviceToken.push(reader.bytes()); - break; - } - case 5: { - if (!(message.userId && message.userId.length)) - message.userId = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.userId.push(reader.int32()); - } else - message.userId.push(reader.int32()); - break; - } - case 6: { - if (!(message.enterpriseId && message.enterpriseId.length)) - message.enterpriseId = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.enterpriseId.push(reader.int32()); - } else - message.enterpriseId.push(reader.int32()); + if (!(message.removeSharedRecordStatus && message.removeSharedRecordStatus.length)) + message.removeSharedRecordStatus = []; + message.removeSharedRecordStatus.push($root.Records.SharedRecordStatus.decode(reader, reader.uint32())); break; } default: @@ -194919,274 +197274,193 @@ export const Push = $root.Push = (() => { }; /** - * Decodes a KAToPushServerRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordShareUpdateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Push.KAToPushServerRequest + * @memberof Records.RecordShareUpdateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Push.KAToPushServerRequest} KAToPushServerRequest + * @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 */ - KAToPushServerRequest.decodeDelimited = function decodeDelimited(reader) { + RecordShareUpdateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a KAToPushServerRequest message. + * Verifies a RecordShareUpdateResponse message. * @function verify - * @memberof Push.KAToPushServerRequest + * @memberof Records.RecordShareUpdateResponse * @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) { + RecordShareUpdateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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.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]); + if (error) + return "addSharedRecordStatus." + error; } - 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.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]); + if (error) + return "updateSharedRecordStatus." + error; + } } - 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"; + 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]); + if (error) + return "removeSharedRecordStatus." + error; + } } return null; }; /** - * Creates a KAToPushServerRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordShareUpdateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Push.KAToPushServerRequest + * @memberof Records.RecordShareUpdateResponse * @static * @param {Object.} object Plain object - * @returns {Push.KAToPushServerRequest} KAToPushServerRequest + * @returns {Records.RecordShareUpdateResponse} RecordShareUpdateResponse */ - KAToPushServerRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Push.KAToPushServerRequest) + RecordShareUpdateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordShareUpdateResponse) return object; - let message = new $root.Push.KAToPushServerRequest(); - switch (object.messageType) { - default: - if (typeof object.messageType === "number") { - message.messageType = object.messageType; - break; + let message = new $root.Records.RecordShareUpdateResponse(); + if (object.addSharedRecordStatus) { + if (!Array.isArray(object.addSharedRecordStatus)) + throw TypeError(".Records.RecordShareUpdateResponse.addSharedRecordStatus: array expected"); + message.addSharedRecordStatus = []; + for (let i = 0; i < object.addSharedRecordStatus.length; ++i) { + if (typeof object.addSharedRecordStatus[i] !== "object") + throw TypeError(".Records.RecordShareUpdateResponse.addSharedRecordStatus: object expected"); + message.addSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject(object.addSharedRecordStatus[i]); } - break; - case "UNKNOWN": - case 0: - message.messageType = 0; - break; - case "DNA": - case 1: - message.messageType = 1; - break; - case "SSO": - case 2: - message.messageType = 2; - break; - case "CHAT": - case 3: - message.messageType = 3; - break; - case "USER": - case 4: - message.messageType = 4; - break; - case "ENTERPRISE": - case 5: - message.messageType = 5; - break; - case "KEEPER": - case 6: - message.messageType = 6; - break; - case "SESSION": - case 7: - message.messageType = 7; - break; - case "DEVICE": - case 8: - message.messageType = 8; - break; - case "TOTP": - case 9: - message.messageType = 9; - break; - } - if (object.message != null) - message.message = String(object.message); - if (object.messageSessionUid != null) - if (typeof object.messageSessionUid === "string") - $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); - else if (object.messageSessionUid.length >= 0) - message.messageSessionUid = object.messageSessionUid; - if (object.encryptedDeviceToken) { - if (!Array.isArray(object.encryptedDeviceToken)) - throw TypeError(".Push.KAToPushServerRequest.encryptedDeviceToken: array expected"); - message.encryptedDeviceToken = []; - for (let i = 0; i < object.encryptedDeviceToken.length; ++i) - if (typeof object.encryptedDeviceToken[i] === "string") - $util.base64.decode(object.encryptedDeviceToken[i], message.encryptedDeviceToken[i] = $util.newBuffer($util.base64.length(object.encryptedDeviceToken[i])), 0); - else if (object.encryptedDeviceToken[i].length >= 0) - message.encryptedDeviceToken[i] = object.encryptedDeviceToken[i]; } - if (object.userId) { - if (!Array.isArray(object.userId)) - throw TypeError(".Push.KAToPushServerRequest.userId: array expected"); - message.userId = []; - for (let i = 0; i < object.userId.length; ++i) - message.userId[i] = object.userId[i] | 0; + if (object.updateSharedRecordStatus) { + if (!Array.isArray(object.updateSharedRecordStatus)) + throw TypeError(".Records.RecordShareUpdateResponse.updateSharedRecordStatus: array expected"); + message.updateSharedRecordStatus = []; + for (let i = 0; i < object.updateSharedRecordStatus.length; ++i) { + if (typeof object.updateSharedRecordStatus[i] !== "object") + throw TypeError(".Records.RecordShareUpdateResponse.updateSharedRecordStatus: object expected"); + message.updateSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject(object.updateSharedRecordStatus[i]); + } } - if (object.enterpriseId) { - if (!Array.isArray(object.enterpriseId)) - throw TypeError(".Push.KAToPushServerRequest.enterpriseId: array expected"); - message.enterpriseId = []; - for (let i = 0; i < object.enterpriseId.length; ++i) - message.enterpriseId[i] = object.enterpriseId[i] | 0; + if (object.removeSharedRecordStatus) { + if (!Array.isArray(object.removeSharedRecordStatus)) + throw TypeError(".Records.RecordShareUpdateResponse.removeSharedRecordStatus: array expected"); + message.removeSharedRecordStatus = []; + for (let i = 0; i < object.removeSharedRecordStatus.length; ++i) { + if (typeof object.removeSharedRecordStatus[i] !== "object") + throw TypeError(".Records.RecordShareUpdateResponse.removeSharedRecordStatus: object expected"); + message.removeSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject(object.removeSharedRecordStatus[i]); + } } return message; }; /** - * Creates a plain object from a KAToPushServerRequest message. Also converts values to other types if specified. + * Creates a plain object from a RecordShareUpdateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Push.KAToPushServerRequest + * @memberof Records.RecordShareUpdateResponse * @static - * @param {Push.KAToPushServerRequest} message KAToPushServerRequest + * @param {Records.RecordShareUpdateResponse} message RecordShareUpdateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KAToPushServerRequest.toObject = function toObject(message, options) { + RecordShareUpdateResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { - object.encryptedDeviceToken = []; - object.userId = []; - object.enterpriseId = []; - } - if (options.defaults) { - object.messageType = options.enums === String ? "UNKNOWN" : 0; - object.message = ""; - if (options.bytes === String) - object.messageSessionUid = ""; - else { - object.messageSessionUid = []; - if (options.bytes !== Array) - object.messageSessionUid = $util.newBuffer(object.messageSessionUid); - } + object.addSharedRecordStatus = []; + object.updateSharedRecordStatus = []; + object.removeSharedRecordStatus = []; } - if (message.messageType != null && message.hasOwnProperty("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")) - object.message = message.message; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; - if (message.encryptedDeviceToken && message.encryptedDeviceToken.length) { - object.encryptedDeviceToken = []; - for (let j = 0; j < message.encryptedDeviceToken.length; ++j) - object.encryptedDeviceToken[j] = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken[j], 0, message.encryptedDeviceToken[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken[j]) : message.encryptedDeviceToken[j]; + if (message.addSharedRecordStatus && message.addSharedRecordStatus.length) { + object.addSharedRecordStatus = []; + for (let j = 0; j < message.addSharedRecordStatus.length; ++j) + object.addSharedRecordStatus[j] = $root.Records.SharedRecordStatus.toObject(message.addSharedRecordStatus[j], options); } - if (message.userId && message.userId.length) { - object.userId = []; - for (let j = 0; j < message.userId.length; ++j) - object.userId[j] = message.userId[j]; + if (message.updateSharedRecordStatus && message.updateSharedRecordStatus.length) { + object.updateSharedRecordStatus = []; + for (let j = 0; j < message.updateSharedRecordStatus.length; ++j) + object.updateSharedRecordStatus[j] = $root.Records.SharedRecordStatus.toObject(message.updateSharedRecordStatus[j], options); } - if (message.enterpriseId && message.enterpriseId.length) { - object.enterpriseId = []; - for (let j = 0; j < message.enterpriseId.length; ++j) - object.enterpriseId[j] = message.enterpriseId[j]; + if (message.removeSharedRecordStatus && message.removeSharedRecordStatus.length) { + object.removeSharedRecordStatus = []; + for (let j = 0; j < message.removeSharedRecordStatus.length; ++j) + object.removeSharedRecordStatus[j] = $root.Records.SharedRecordStatus.toObject(message.removeSharedRecordStatus[j], options); } return object; }; /** - * Converts this KAToPushServerRequest to JSON. + * Converts this RecordShareUpdateResponse to JSON. * @function toJSON - * @memberof Push.KAToPushServerRequest + * @memberof Records.RecordShareUpdateResponse * @instance * @returns {Object.} JSON object */ - KAToPushServerRequest.prototype.toJSON = function toJSON() { + RecordShareUpdateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for KAToPushServerRequest + * Gets the default type url for RecordShareUpdateResponse * @function getTypeUrl - * @memberof Push.KAToPushServerRequest + * @memberof Records.RecordShareUpdateResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - KAToPushServerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordShareUpdateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Push.KAToPushServerRequest"; + return typeUrlPrefix + "/Records.RecordShareUpdateResponse"; }; - return KAToPushServerRequest; + return RecordShareUpdateResponse; })(); - Push.WssConnectionRequest = (function() { + Records.SharedRecordStatus = (function() { /** - * Properties of a WssConnectionRequest. - * @memberof Push - * @interface IWssConnectionRequest - * @property {Uint8Array|null} [messageSessionUid] WssConnectionRequest messageSessionUid - * @property {Uint8Array|null} [encryptedDeviceToken] WssConnectionRequest encryptedDeviceToken - * @property {number|Long|null} [deviceTimeStamp] WssConnectionRequest deviceTimeStamp + * Properties of a SharedRecordStatus. + * @memberof Records + * @interface ISharedRecordStatus + * @property {Uint8Array|null} [recordUid] SharedRecordStatus recordUid + * @property {string|null} [status] SharedRecordStatus status + * @property {string|null} [message] SharedRecordStatus message + * @property {string|null} [username] SharedRecordStatus username */ /** - * Constructs a new WssConnectionRequest. - * @memberof Push - * @classdesc Represents a WssConnectionRequest. - * @implements IWssConnectionRequest + * Constructs a new SharedRecordStatus. + * @memberof Records + * @classdesc Represents a SharedRecordStatus. + * @implements ISharedRecordStatus * @constructor - * @param {Push.IWssConnectionRequest=} [properties] Properties to set + * @param {Records.ISharedRecordStatus=} [properties] Properties to set */ - function WssConnectionRequest(properties) { + function SharedRecordStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -195194,103 +197468,117 @@ export const Push = $root.Push = (() => { } /** - * WssConnectionRequest messageSessionUid. - * @member {Uint8Array} messageSessionUid - * @memberof Push.WssConnectionRequest + * SharedRecordStatus recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.SharedRecordStatus * @instance */ - WssConnectionRequest.prototype.messageSessionUid = $util.newBuffer([]); + SharedRecordStatus.prototype.recordUid = $util.newBuffer([]); /** - * WssConnectionRequest encryptedDeviceToken. - * @member {Uint8Array} encryptedDeviceToken - * @memberof Push.WssConnectionRequest + * SharedRecordStatus status. + * @member {string} status + * @memberof Records.SharedRecordStatus * @instance */ - WssConnectionRequest.prototype.encryptedDeviceToken = $util.newBuffer([]); + SharedRecordStatus.prototype.status = ""; /** - * WssConnectionRequest deviceTimeStamp. - * @member {number|Long} deviceTimeStamp - * @memberof Push.WssConnectionRequest + * SharedRecordStatus message. + * @member {string} message + * @memberof Records.SharedRecordStatus * @instance */ - WssConnectionRequest.prototype.deviceTimeStamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SharedRecordStatus.prototype.message = ""; /** - * Creates a new WssConnectionRequest instance using the specified properties. + * SharedRecordStatus username. + * @member {string} username + * @memberof Records.SharedRecordStatus + * @instance + */ + SharedRecordStatus.prototype.username = ""; + + /** + * Creates a new SharedRecordStatus instance using the specified properties. * @function create - * @memberof Push.WssConnectionRequest + * @memberof Records.SharedRecordStatus * @static - * @param {Push.IWssConnectionRequest=} [properties] Properties to set - * @returns {Push.WssConnectionRequest} WssConnectionRequest instance + * @param {Records.ISharedRecordStatus=} [properties] Properties to set + * @returns {Records.SharedRecordStatus} SharedRecordStatus instance */ - WssConnectionRequest.create = function create(properties) { - return new WssConnectionRequest(properties); + SharedRecordStatus.create = function create(properties) { + return new SharedRecordStatus(properties); }; /** - * Encodes the specified WssConnectionRequest message. Does not implicitly {@link Push.WssConnectionRequest.verify|verify} messages. + * Encodes the specified SharedRecordStatus message. Does not implicitly {@link Records.SharedRecordStatus.verify|verify} messages. * @function encode - * @memberof Push.WssConnectionRequest + * @memberof Records.SharedRecordStatus * @static - * @param {Push.IWssConnectionRequest} message WssConnectionRequest message or plain object to encode + * @param {Records.ISharedRecordStatus} message SharedRecordStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WssConnectionRequest.encode = function encode(message, writer) { + SharedRecordStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.messageSessionUid); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedDeviceToken); - if (message.deviceTimeStamp != null && Object.hasOwnProperty.call(message, "deviceTimeStamp")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.deviceTimeStamp); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.status); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.username); return writer; }; /** - * Encodes the specified WssConnectionRequest message, length delimited. Does not implicitly {@link Push.WssConnectionRequest.verify|verify} messages. + * Encodes the specified SharedRecordStatus message, length delimited. Does not implicitly {@link Records.SharedRecordStatus.verify|verify} messages. * @function encodeDelimited - * @memberof Push.WssConnectionRequest + * @memberof Records.SharedRecordStatus * @static - * @param {Push.IWssConnectionRequest} message WssConnectionRequest message or plain object to encode + * @param {Records.ISharedRecordStatus} message SharedRecordStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WssConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) { + SharedRecordStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WssConnectionRequest message from the specified reader or buffer. + * Decodes a SharedRecordStatus message from the specified reader or buffer. * @function decode - * @memberof Push.WssConnectionRequest + * @memberof Records.SharedRecordStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Push.WssConnectionRequest} WssConnectionRequest + * @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 */ - WssConnectionRequest.decode = function decode(reader, length) { + SharedRecordStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.WssConnectionRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.SharedRecordStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.messageSessionUid = reader.bytes(); + message.recordUid = reader.bytes(); break; } case 2: { - message.encryptedDeviceToken = reader.bytes(); + message.status = reader.string(); break; } case 3: { - message.deviceTimeStamp = reader.int64(); + message.message = reader.string(); + break; + } + case 4: { + message.username = reader.string(); break; } default: @@ -195302,172 +197590,158 @@ export const Push = $root.Push = (() => { }; /** - * Decodes a WssConnectionRequest message from the specified reader or buffer, length delimited. + * Decodes a SharedRecordStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Push.WssConnectionRequest + * @memberof Records.SharedRecordStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Push.WssConnectionRequest} WssConnectionRequest + * @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 */ - WssConnectionRequest.decodeDelimited = function decodeDelimited(reader) { + SharedRecordStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WssConnectionRequest message. + * Verifies a SharedRecordStatus message. * @function verify - * @memberof Push.WssConnectionRequest + * @memberof Records.SharedRecordStatus * @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) { + SharedRecordStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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"; - 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"; + 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 WssConnectionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SharedRecordStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Push.WssConnectionRequest + * @memberof Records.SharedRecordStatus * @static * @param {Object.} object Plain object - * @returns {Push.WssConnectionRequest} WssConnectionRequest + * @returns {Records.SharedRecordStatus} SharedRecordStatus */ - WssConnectionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Push.WssConnectionRequest) + SharedRecordStatus.fromObject = function fromObject(object) { + if (object instanceof $root.Records.SharedRecordStatus) return object; - let message = new $root.Push.WssConnectionRequest(); - if (object.messageSessionUid != null) - if (typeof object.messageSessionUid === "string") - $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); - else if (object.messageSessionUid.length >= 0) - message.messageSessionUid = object.messageSessionUid; - if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); - else if (object.encryptedDeviceToken.length >= 0) - message.encryptedDeviceToken = object.encryptedDeviceToken; - if (object.deviceTimeStamp != null) - if ($util.Long) - (message.deviceTimeStamp = $util.Long.fromValue(object.deviceTimeStamp)).unsigned = false; - else if (typeof object.deviceTimeStamp === "string") - message.deviceTimeStamp = parseInt(object.deviceTimeStamp, 10); - else if (typeof object.deviceTimeStamp === "number") - message.deviceTimeStamp = object.deviceTimeStamp; - else if (typeof object.deviceTimeStamp === "object") - message.deviceTimeStamp = new $util.LongBits(object.deviceTimeStamp.low >>> 0, object.deviceTimeStamp.high >>> 0).toNumber(); + let message = new $root.Records.SharedRecordStatus(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.status != null) + message.status = String(object.status); + if (object.message != null) + message.message = String(object.message); + if (object.username != null) + message.username = String(object.username); return message; }; /** - * Creates a plain object from a WssConnectionRequest message. Also converts values to other types if specified. + * Creates a plain object from a SharedRecordStatus message. Also converts values to other types if specified. * @function toObject - * @memberof Push.WssConnectionRequest + * @memberof Records.SharedRecordStatus * @static - * @param {Push.WssConnectionRequest} message WssConnectionRequest + * @param {Records.SharedRecordStatus} message SharedRecordStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WssConnectionRequest.toObject = function toObject(message, options) { + SharedRecordStatus.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { if (options.bytes === String) - object.messageSessionUid = ""; - else { - object.messageSessionUid = []; - if (options.bytes !== Array) - object.messageSessionUid = $util.newBuffer(object.messageSessionUid); - } - if (options.bytes === String) - object.encryptedDeviceToken = ""; + object.recordUid = ""; else { - object.encryptedDeviceToken = []; + object.recordUid = []; if (options.bytes !== Array) - object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); + object.recordUid = $util.newBuffer(object.recordUid); } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.deviceTimeStamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.deviceTimeStamp = options.longs === String ? "0" : 0; + object.status = ""; + object.message = ""; + object.username = ""; } - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.deviceTimeStamp != null && message.hasOwnProperty("deviceTimeStamp")) - if (typeof message.deviceTimeStamp === "number") - object.deviceTimeStamp = options.longs === String ? String(message.deviceTimeStamp) : message.deviceTimeStamp; - else - object.deviceTimeStamp = options.longs === String ? $util.Long.prototype.toString.call(message.deviceTimeStamp) : options.longs === Number ? new $util.LongBits(message.deviceTimeStamp.low >>> 0, message.deviceTimeStamp.high >>> 0).toNumber() : message.deviceTimeStamp; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.status != null && message.hasOwnProperty("status")) + object.status = message.status; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; return object; }; /** - * Converts this WssConnectionRequest to JSON. + * Converts this SharedRecordStatus to JSON. * @function toJSON - * @memberof Push.WssConnectionRequest + * @memberof Records.SharedRecordStatus * @instance * @returns {Object.} JSON object */ - WssConnectionRequest.prototype.toJSON = function toJSON() { + SharedRecordStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for WssConnectionRequest + * Gets the default type url for SharedRecordStatus * @function getTypeUrl - * @memberof Push.WssConnectionRequest + * @memberof Records.SharedRecordStatus * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - WssConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SharedRecordStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Push.WssConnectionRequest"; + return typeUrlPrefix + "/Records.SharedRecordStatus"; }; - return WssConnectionRequest; + return SharedRecordStatus; })(); - Push.WssClientResponse = (function() { + Records.GetRecordPermissionsRequest = (function() { /** - * Properties of a WssClientResponse. - * @memberof Push - * @interface IWssClientResponse - * @property {Push.MessageType|null} [messageType] WssClientResponse messageType - * @property {string|null} [message] WssClientResponse message + * Properties of a GetRecordPermissionsRequest. + * @memberof Records + * @interface IGetRecordPermissionsRequest + * @property {Array.|null} [recordUids] GetRecordPermissionsRequest recordUids + * @property {boolean|null} [isShareAdmin] GetRecordPermissionsRequest isShareAdmin */ /** - * Constructs a new WssClientResponse. - * @memberof Push - * @classdesc Represents a WssClientResponse. - * @implements IWssClientResponse + * Constructs a new GetRecordPermissionsRequest. + * @memberof Records + * @classdesc Represents a GetRecordPermissionsRequest. + * @implements IGetRecordPermissionsRequest * @constructor - * @param {Push.IWssClientResponse=} [properties] Properties to set + * @param {Records.IGetRecordPermissionsRequest=} [properties] Properties to set */ - function WssClientResponse(properties) { + function GetRecordPermissionsRequest(properties) { + this.recordUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -195475,89 +197749,92 @@ export const Push = $root.Push = (() => { } /** - * WssClientResponse messageType. - * @member {Push.MessageType} messageType - * @memberof Push.WssClientResponse + * GetRecordPermissionsRequest recordUids. + * @member {Array.} recordUids + * @memberof Records.GetRecordPermissionsRequest * @instance */ - WssClientResponse.prototype.messageType = 0; + GetRecordPermissionsRequest.prototype.recordUids = $util.emptyArray; /** - * WssClientResponse message. - * @member {string} message - * @memberof Push.WssClientResponse + * GetRecordPermissionsRequest isShareAdmin. + * @member {boolean} isShareAdmin + * @memberof Records.GetRecordPermissionsRequest * @instance */ - WssClientResponse.prototype.message = ""; + GetRecordPermissionsRequest.prototype.isShareAdmin = false; /** - * Creates a new WssClientResponse instance using the specified properties. + * Creates a new GetRecordPermissionsRequest instance using the specified properties. * @function create - * @memberof Push.WssClientResponse + * @memberof Records.GetRecordPermissionsRequest * @static - * @param {Push.IWssClientResponse=} [properties] Properties to set - * @returns {Push.WssClientResponse} WssClientResponse instance + * @param {Records.IGetRecordPermissionsRequest=} [properties] Properties to set + * @returns {Records.GetRecordPermissionsRequest} GetRecordPermissionsRequest instance */ - WssClientResponse.create = function create(properties) { - return new WssClientResponse(properties); + GetRecordPermissionsRequest.create = function create(properties) { + return new GetRecordPermissionsRequest(properties); }; /** - * Encodes the specified WssClientResponse message. Does not implicitly {@link Push.WssClientResponse.verify|verify} messages. + * Encodes the specified GetRecordPermissionsRequest message. Does not implicitly {@link Records.GetRecordPermissionsRequest.verify|verify} messages. * @function encode - * @memberof Push.WssClientResponse + * @memberof Records.GetRecordPermissionsRequest * @static - * @param {Push.IWssClientResponse} message WssClientResponse message or plain object to encode + * @param {Records.IGetRecordPermissionsRequest} message GetRecordPermissionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WssClientResponse.encode = function encode(message, writer) { + GetRecordPermissionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.recordUids != null && message.recordUids.length) + for (let i = 0; i < message.recordUids.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUids[i]); + if (message.isShareAdmin != null && Object.hasOwnProperty.call(message, "isShareAdmin")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isShareAdmin); return writer; }; /** - * Encodes the specified WssClientResponse message, length delimited. Does not implicitly {@link Push.WssClientResponse.verify|verify} messages. + * Encodes the specified GetRecordPermissionsRequest message, length delimited. Does not implicitly {@link Records.GetRecordPermissionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Push.WssClientResponse + * @memberof Records.GetRecordPermissionsRequest * @static - * @param {Push.IWssClientResponse} message WssClientResponse message or plain object to encode + * @param {Records.IGetRecordPermissionsRequest} message GetRecordPermissionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WssClientResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetRecordPermissionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WssClientResponse message from the specified reader or buffer. + * Decodes a GetRecordPermissionsRequest message from the specified reader or buffer. * @function decode - * @memberof Push.WssClientResponse + * @memberof Records.GetRecordPermissionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Push.WssClientResponse} WssClientResponse + * @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 */ - WssClientResponse.decode = function decode(reader, length) { + GetRecordPermissionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.WssClientResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetRecordPermissionsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.messageType = reader.int32(); + if (!(message.recordUids && message.recordUids.length)) + message.recordUids = []; + message.recordUids.push(reader.bytes()); break; } case 2: { - message.message = reader.string(); + message.isShareAdmin = reader.bool(); break; } default: @@ -195569,193 +197846,147 @@ export const Push = $root.Push = (() => { }; /** - * Decodes a WssClientResponse message from the specified reader or buffer, length delimited. + * Decodes a GetRecordPermissionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Push.WssClientResponse + * @memberof Records.GetRecordPermissionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Push.WssClientResponse} WssClientResponse + * @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 */ - WssClientResponse.decodeDelimited = function decodeDelimited(reader) { + GetRecordPermissionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WssClientResponse message. + * Verifies a GetRecordPermissionsRequest message. * @function verify - * @memberof Push.WssClientResponse + * @memberof Records.GetRecordPermissionsRequest * @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) { + GetRecordPermissionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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.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 WssClientResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetRecordPermissionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Push.WssClientResponse + * @memberof Records.GetRecordPermissionsRequest * @static * @param {Object.} object Plain object - * @returns {Push.WssClientResponse} WssClientResponse + * @returns {Records.GetRecordPermissionsRequest} GetRecordPermissionsRequest */ - WssClientResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Push.WssClientResponse) + GetRecordPermissionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Records.GetRecordPermissionsRequest) return object; - let message = new $root.Push.WssClientResponse(); - switch (object.messageType) { - default: - if (typeof object.messageType === "number") { - message.messageType = object.messageType; - break; - } - break; - case "UNKNOWN": - case 0: - message.messageType = 0; - break; - case "DNA": - case 1: - message.messageType = 1; - break; - case "SSO": - case 2: - message.messageType = 2; - break; - case "CHAT": - case 3: - message.messageType = 3; - break; - case "USER": - case 4: - message.messageType = 4; - break; - case "ENTERPRISE": - case 5: - message.messageType = 5; - break; - case "KEEPER": - case 6: - message.messageType = 6; - break; - case "SESSION": - case 7: - message.messageType = 7; - break; - case "DEVICE": - case 8: - message.messageType = 8; - break; - case "TOTP": - case 9: - message.messageType = 9; - break; + let message = new $root.Records.GetRecordPermissionsRequest(); + if (object.recordUids) { + if (!Array.isArray(object.recordUids)) + throw TypeError(".Records.GetRecordPermissionsRequest.recordUids: array expected"); + message.recordUids = []; + for (let i = 0; i < object.recordUids.length; ++i) + if (typeof object.recordUids[i] === "string") + $util.base64.decode(object.recordUids[i], message.recordUids[i] = $util.newBuffer($util.base64.length(object.recordUids[i])), 0); + else if (object.recordUids[i].length >= 0) + message.recordUids[i] = object.recordUids[i]; } - if (object.message != null) - message.message = String(object.message); + if (object.isShareAdmin != null) + message.isShareAdmin = Boolean(object.isShareAdmin); return message; }; /** - * Creates a plain object from a WssClientResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetRecordPermissionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Push.WssClientResponse + * @memberof Records.GetRecordPermissionsRequest * @static - * @param {Push.WssClientResponse} message WssClientResponse + * @param {Records.GetRecordPermissionsRequest} message GetRecordPermissionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WssClientResponse.toObject = function toObject(message, options) { + GetRecordPermissionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.messageType = options.enums === String ? "UNKNOWN" : 0; - object.message = ""; + if (options.arrays || options.defaults) + object.recordUids = []; + if (options.defaults) + object.isShareAdmin = false; + if (message.recordUids && message.recordUids.length) { + object.recordUids = []; + for (let j = 0; j < message.recordUids.length; ++j) + object.recordUids[j] = options.bytes === String ? $util.base64.encode(message.recordUids[j], 0, message.recordUids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUids[j]) : message.recordUids[j]; } - if (message.messageType != null && message.hasOwnProperty("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")) - object.message = message.message; + if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) + object.isShareAdmin = message.isShareAdmin; return object; }; /** - * Converts this WssClientResponse to JSON. + * Converts this GetRecordPermissionsRequest to JSON. * @function toJSON - * @memberof Push.WssClientResponse + * @memberof Records.GetRecordPermissionsRequest * @instance * @returns {Object.} JSON object */ - WssClientResponse.prototype.toJSON = function toJSON() { + GetRecordPermissionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for WssClientResponse + * Gets the default type url for GetRecordPermissionsRequest * @function getTypeUrl - * @memberof Push.WssClientResponse + * @memberof Records.GetRecordPermissionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - WssClientResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetRecordPermissionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Push.WssClientResponse"; + return typeUrlPrefix + "/Records.GetRecordPermissionsRequest"; }; - return WssClientResponse; + return GetRecordPermissionsRequest; })(); - Push.PushServerDeviceRegistrationRequest = (function() { + Records.GetRecordPermissionsResponse = (function() { /** - * Properties of a PushServerDeviceRegistrationRequest. - * @memberof Push - * @interface IPushServerDeviceRegistrationRequest - * @property {Uint8Array|null} [encryptedDeviceToken] PushServerDeviceRegistrationRequest encryptedDeviceToken - * @property {string|null} [pushToken] PushServerDeviceRegistrationRequest pushToken - * @property {string|null} [mobilePushPlatform] PushServerDeviceRegistrationRequest mobilePushPlatform - * @property {Uint8Array|null} [transmissionKey] PushServerDeviceRegistrationRequest transmissionKey + * Properties of a GetRecordPermissionsResponse. + * @memberof Records + * @interface IGetRecordPermissionsResponse + * @property {Array.|null} [recordPermissions] GetRecordPermissionsResponse recordPermissions */ /** - * Constructs a new PushServerDeviceRegistrationRequest. - * @memberof Push - * @classdesc Represents a PushServerDeviceRegistrationRequest. - * @implements IPushServerDeviceRegistrationRequest + * Constructs a new GetRecordPermissionsResponse. + * @memberof Records + * @classdesc Represents a GetRecordPermissionsResponse. + * @implements IGetRecordPermissionsResponse * @constructor - * @param {Push.IPushServerDeviceRegistrationRequest=} [properties] Properties to set + * @param {Records.IGetRecordPermissionsResponse=} [properties] Properties to set */ - function PushServerDeviceRegistrationRequest(properties) { + function GetRecordPermissionsResponse(properties) { + this.recordPermissions = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -195763,117 +197994,78 @@ export const Push = $root.Push = (() => { } /** - * PushServerDeviceRegistrationRequest encryptedDeviceToken. - * @member {Uint8Array} encryptedDeviceToken - * @memberof Push.PushServerDeviceRegistrationRequest - * @instance - */ - PushServerDeviceRegistrationRequest.prototype.encryptedDeviceToken = $util.newBuffer([]); - - /** - * PushServerDeviceRegistrationRequest pushToken. - * @member {string} pushToken - * @memberof Push.PushServerDeviceRegistrationRequest - * @instance - */ - PushServerDeviceRegistrationRequest.prototype.pushToken = ""; - - /** - * PushServerDeviceRegistrationRequest mobilePushPlatform. - * @member {string} mobilePushPlatform - * @memberof Push.PushServerDeviceRegistrationRequest - * @instance - */ - PushServerDeviceRegistrationRequest.prototype.mobilePushPlatform = ""; - - /** - * PushServerDeviceRegistrationRequest transmissionKey. - * @member {Uint8Array} transmissionKey - * @memberof Push.PushServerDeviceRegistrationRequest + * GetRecordPermissionsResponse recordPermissions. + * @member {Array.} recordPermissions + * @memberof Records.GetRecordPermissionsResponse * @instance */ - PushServerDeviceRegistrationRequest.prototype.transmissionKey = $util.newBuffer([]); + GetRecordPermissionsResponse.prototype.recordPermissions = $util.emptyArray; /** - * Creates a new PushServerDeviceRegistrationRequest instance using the specified properties. + * Creates a new GetRecordPermissionsResponse instance using the specified properties. * @function create - * @memberof Push.PushServerDeviceRegistrationRequest + * @memberof Records.GetRecordPermissionsResponse * @static - * @param {Push.IPushServerDeviceRegistrationRequest=} [properties] Properties to set - * @returns {Push.PushServerDeviceRegistrationRequest} PushServerDeviceRegistrationRequest instance + * @param {Records.IGetRecordPermissionsResponse=} [properties] Properties to set + * @returns {Records.GetRecordPermissionsResponse} GetRecordPermissionsResponse instance */ - PushServerDeviceRegistrationRequest.create = function create(properties) { - return new PushServerDeviceRegistrationRequest(properties); + GetRecordPermissionsResponse.create = function create(properties) { + return new GetRecordPermissionsResponse(properties); }; /** - * Encodes the specified PushServerDeviceRegistrationRequest message. Does not implicitly {@link Push.PushServerDeviceRegistrationRequest.verify|verify} messages. + * Encodes the specified GetRecordPermissionsResponse message. Does not implicitly {@link Records.GetRecordPermissionsResponse.verify|verify} messages. * @function encode - * @memberof Push.PushServerDeviceRegistrationRequest + * @memberof Records.GetRecordPermissionsResponse * @static - * @param {Push.IPushServerDeviceRegistrationRequest} message PushServerDeviceRegistrationRequest message or plain object to encode + * @param {Records.IGetRecordPermissionsResponse} message GetRecordPermissionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PushServerDeviceRegistrationRequest.encode = function encode(message, writer) { + GetRecordPermissionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); - if (message.pushToken != null && Object.hasOwnProperty.call(message, "pushToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.pushToken); - if (message.mobilePushPlatform != null && Object.hasOwnProperty.call(message, "mobilePushPlatform")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.mobilePushPlatform); - if (message.transmissionKey != null && Object.hasOwnProperty.call(message, "transmissionKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.transmissionKey); + if (message.recordPermissions != null && message.recordPermissions.length) + for (let i = 0; i < message.recordPermissions.length; ++i) + $root.Records.RecordPermission.encode(message.recordPermissions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified PushServerDeviceRegistrationRequest message, length delimited. Does not implicitly {@link Push.PushServerDeviceRegistrationRequest.verify|verify} messages. + * Encodes the specified GetRecordPermissionsResponse message, length delimited. Does not implicitly {@link Records.GetRecordPermissionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Push.PushServerDeviceRegistrationRequest + * @memberof Records.GetRecordPermissionsResponse * @static - * @param {Push.IPushServerDeviceRegistrationRequest} message PushServerDeviceRegistrationRequest message or plain object to encode + * @param {Records.IGetRecordPermissionsResponse} message GetRecordPermissionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PushServerDeviceRegistrationRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetRecordPermissionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PushServerDeviceRegistrationRequest message from the specified reader or buffer. + * Decodes a GetRecordPermissionsResponse message from the specified reader or buffer. * @function decode - * @memberof Push.PushServerDeviceRegistrationRequest + * @memberof Records.GetRecordPermissionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Push.PushServerDeviceRegistrationRequest} PushServerDeviceRegistrationRequest + * @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 */ - PushServerDeviceRegistrationRequest.decode = function decode(reader, length) { + GetRecordPermissionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.PushServerDeviceRegistrationRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetRecordPermissionsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.encryptedDeviceToken = reader.bytes(); - break; - } - case 2: { - message.pushToken = reader.string(); - break; - } - case 3: { - message.mobilePushPlatform = reader.string(); - break; - } - case 4: { - message.transmissionKey = reader.bytes(); + if (!(message.recordPermissions && message.recordPermissions.length)) + message.recordPermissions = []; + message.recordPermissions.push($root.Records.RecordPermission.decode(reader, reader.uint32())); break; } default: @@ -195885,166 +198077,143 @@ export const Push = $root.Push = (() => { }; /** - * Decodes a PushServerDeviceRegistrationRequest message from the specified reader or buffer, length delimited. + * Decodes a GetRecordPermissionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Push.PushServerDeviceRegistrationRequest + * @memberof Records.GetRecordPermissionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Push.PushServerDeviceRegistrationRequest} PushServerDeviceRegistrationRequest + * @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 */ - PushServerDeviceRegistrationRequest.decodeDelimited = function decodeDelimited(reader) { + GetRecordPermissionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PushServerDeviceRegistrationRequest message. + * Verifies a GetRecordPermissionsResponse message. * @function verify - * @memberof Push.PushServerDeviceRegistrationRequest + * @memberof Records.GetRecordPermissionsResponse * @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) { + GetRecordPermissionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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"; + 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]); + if (error) + return "recordPermissions." + error; + } + } return null; }; /** - * Creates a PushServerDeviceRegistrationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetRecordPermissionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Push.PushServerDeviceRegistrationRequest + * @memberof Records.GetRecordPermissionsResponse * @static * @param {Object.} object Plain object - * @returns {Push.PushServerDeviceRegistrationRequest} PushServerDeviceRegistrationRequest + * @returns {Records.GetRecordPermissionsResponse} GetRecordPermissionsResponse */ - PushServerDeviceRegistrationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Push.PushServerDeviceRegistrationRequest) + GetRecordPermissionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Records.GetRecordPermissionsResponse) return object; - let message = new $root.Push.PushServerDeviceRegistrationRequest(); - if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); - else if (object.encryptedDeviceToken.length >= 0) - message.encryptedDeviceToken = object.encryptedDeviceToken; - if (object.pushToken != null) - message.pushToken = String(object.pushToken); - if (object.mobilePushPlatform != null) - message.mobilePushPlatform = String(object.mobilePushPlatform); - if (object.transmissionKey != null) - if (typeof object.transmissionKey === "string") - $util.base64.decode(object.transmissionKey, message.transmissionKey = $util.newBuffer($util.base64.length(object.transmissionKey)), 0); - else if (object.transmissionKey.length >= 0) - message.transmissionKey = object.transmissionKey; + let message = new $root.Records.GetRecordPermissionsResponse(); + if (object.recordPermissions) { + if (!Array.isArray(object.recordPermissions)) + throw TypeError(".Records.GetRecordPermissionsResponse.recordPermissions: array expected"); + message.recordPermissions = []; + for (let i = 0; i < object.recordPermissions.length; ++i) { + if (typeof object.recordPermissions[i] !== "object") + throw TypeError(".Records.GetRecordPermissionsResponse.recordPermissions: object expected"); + message.recordPermissions[i] = $root.Records.RecordPermission.fromObject(object.recordPermissions[i]); + } + } return message; }; /** - * Creates a plain object from a PushServerDeviceRegistrationRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetRecordPermissionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Push.PushServerDeviceRegistrationRequest + * @memberof Records.GetRecordPermissionsResponse * @static - * @param {Push.PushServerDeviceRegistrationRequest} message PushServerDeviceRegistrationRequest + * @param {Records.GetRecordPermissionsResponse} message GetRecordPermissionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PushServerDeviceRegistrationRequest.toObject = function toObject(message, options) { + GetRecordPermissionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.encryptedDeviceToken = ""; - else { - object.encryptedDeviceToken = []; - if (options.bytes !== Array) - object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); - } - object.pushToken = ""; - object.mobilePushPlatform = ""; - if (options.bytes === String) - object.transmissionKey = ""; - else { - object.transmissionKey = []; - if (options.bytes !== Array) - object.transmissionKey = $util.newBuffer(object.transmissionKey); - } - } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.pushToken != null && message.hasOwnProperty("pushToken")) - object.pushToken = message.pushToken; - if (message.mobilePushPlatform != null && message.hasOwnProperty("mobilePushPlatform")) - object.mobilePushPlatform = message.mobilePushPlatform; - if (message.transmissionKey != null && message.hasOwnProperty("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 (options.arrays || options.defaults) + object.recordPermissions = []; + if (message.recordPermissions && message.recordPermissions.length) { + object.recordPermissions = []; + for (let j = 0; j < message.recordPermissions.length; ++j) + object.recordPermissions[j] = $root.Records.RecordPermission.toObject(message.recordPermissions[j], options); + } return object; }; /** - * Converts this PushServerDeviceRegistrationRequest to JSON. + * Converts this GetRecordPermissionsResponse to JSON. * @function toJSON - * @memberof Push.PushServerDeviceRegistrationRequest + * @memberof Records.GetRecordPermissionsResponse * @instance * @returns {Object.} JSON object */ - PushServerDeviceRegistrationRequest.prototype.toJSON = function toJSON() { + GetRecordPermissionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PushServerDeviceRegistrationRequest + * Gets the default type url for GetRecordPermissionsResponse * @function getTypeUrl - * @memberof Push.PushServerDeviceRegistrationRequest + * @memberof Records.GetRecordPermissionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PushServerDeviceRegistrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetRecordPermissionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Push.PushServerDeviceRegistrationRequest"; + return typeUrlPrefix + "/Records.GetRecordPermissionsResponse"; }; - return PushServerDeviceRegistrationRequest; + return GetRecordPermissionsResponse; })(); - Push.SnsMessage = (function() { + Records.RecordPermission = (function() { /** - * Properties of a SnsMessage. - * @memberof Push - * @interface ISnsMessage - * @property {Push.MessageType|null} [messageType] SnsMessage messageType - * @property {Uint8Array|null} [message] SnsMessage message + * Properties of a RecordPermission. + * @memberof Records + * @interface IRecordPermission + * @property {Uint8Array|null} [recordUid] RecordPermission recordUid + * @property {boolean|null} [owner] RecordPermission owner + * @property {boolean|null} [canEdit] RecordPermission canEdit + * @property {boolean|null} [canShare] RecordPermission canShare + * @property {boolean|null} [canTransfer] RecordPermission canTransfer */ /** - * Constructs a new SnsMessage. - * @memberof Push - * @classdesc Represents a SnsMessage. - * @implements ISnsMessage + * Constructs a new RecordPermission. + * @memberof Records + * @classdesc Represents a RecordPermission. + * @implements IRecordPermission * @constructor - * @param {Push.ISnsMessage=} [properties] Properties to set + * @param {Records.IRecordPermission=} [properties] Properties to set */ - function SnsMessage(properties) { + function RecordPermission(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -196052,89 +198221,131 @@ export const Push = $root.Push = (() => { } /** - * SnsMessage messageType. - * @member {Push.MessageType} messageType - * @memberof Push.SnsMessage + * RecordPermission recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.RecordPermission * @instance */ - SnsMessage.prototype.messageType = 0; + RecordPermission.prototype.recordUid = $util.newBuffer([]); /** - * SnsMessage message. - * @member {Uint8Array} message - * @memberof Push.SnsMessage + * RecordPermission owner. + * @member {boolean} owner + * @memberof Records.RecordPermission * @instance */ - SnsMessage.prototype.message = $util.newBuffer([]); + RecordPermission.prototype.owner = false; /** - * Creates a new SnsMessage instance using the specified properties. + * RecordPermission canEdit. + * @member {boolean} canEdit + * @memberof Records.RecordPermission + * @instance + */ + RecordPermission.prototype.canEdit = false; + + /** + * RecordPermission canShare. + * @member {boolean} canShare + * @memberof Records.RecordPermission + * @instance + */ + RecordPermission.prototype.canShare = false; + + /** + * RecordPermission canTransfer. + * @member {boolean} canTransfer + * @memberof Records.RecordPermission + * @instance + */ + RecordPermission.prototype.canTransfer = false; + + /** + * Creates a new RecordPermission instance using the specified properties. * @function create - * @memberof Push.SnsMessage + * @memberof Records.RecordPermission * @static - * @param {Push.ISnsMessage=} [properties] Properties to set - * @returns {Push.SnsMessage} SnsMessage instance + * @param {Records.IRecordPermission=} [properties] Properties to set + * @returns {Records.RecordPermission} RecordPermission instance */ - SnsMessage.create = function create(properties) { - return new SnsMessage(properties); + RecordPermission.create = function create(properties) { + return new RecordPermission(properties); }; /** - * Encodes the specified SnsMessage message. Does not implicitly {@link Push.SnsMessage.verify|verify} messages. + * Encodes the specified RecordPermission message. Does not implicitly {@link Records.RecordPermission.verify|verify} messages. * @function encode - * @memberof Push.SnsMessage + * @memberof Records.RecordPermission * @static - * @param {Push.ISnsMessage} message SnsMessage message or plain object to encode + * @param {Records.IRecordPermission} message RecordPermission message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SnsMessage.encode = function encode(message, writer) { + RecordPermission.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.message); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.owner); + if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.canEdit); + if (message.canShare != null && Object.hasOwnProperty.call(message, "canShare")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canShare); + if (message.canTransfer != null && Object.hasOwnProperty.call(message, "canTransfer")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.canTransfer); return writer; }; /** - * Encodes the specified SnsMessage message, length delimited. Does not implicitly {@link Push.SnsMessage.verify|verify} messages. + * Encodes the specified RecordPermission message, length delimited. Does not implicitly {@link Records.RecordPermission.verify|verify} messages. * @function encodeDelimited - * @memberof Push.SnsMessage + * @memberof Records.RecordPermission * @static - * @param {Push.ISnsMessage} message SnsMessage message or plain object to encode + * @param {Records.IRecordPermission} message RecordPermission message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SnsMessage.encodeDelimited = function encodeDelimited(message, writer) { + RecordPermission.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SnsMessage message from the specified reader or buffer. + * Decodes a RecordPermission message from the specified reader or buffer. * @function decode - * @memberof Push.SnsMessage + * @memberof Records.RecordPermission * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Push.SnsMessage} SnsMessage + * @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 */ - SnsMessage.decode = function decode(reader, length) { + RecordPermission.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.SnsMessage(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordPermission(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.messageType = reader.int32(); + message.recordUid = reader.bytes(); break; } case 2: { - message.message = reader.bytes(); + message.owner = reader.bool(); + break; + } + case 3: { + message.canEdit = reader.bool(); + break; + } + case 4: { + message.canShare = reader.bool(); + break; + } + case 5: { + message.canTransfer = reader.bool(); break; } default: @@ -196146,212 +198357,167 @@ export const Push = $root.Push = (() => { }; /** - * Decodes a SnsMessage message from the specified reader or buffer, length delimited. + * Decodes a RecordPermission message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Push.SnsMessage + * @memberof Records.RecordPermission * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Push.SnsMessage} SnsMessage + * @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 */ - SnsMessage.decodeDelimited = function decodeDelimited(reader) { + RecordPermission.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SnsMessage message. + * Verifies a RecordPermission message. * @function verify - * @memberof Push.SnsMessage + * @memberof Records.RecordPermission * @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) { + RecordPermission.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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 SnsMessage message from a plain object. Also converts values to their respective internal types. + * Creates a RecordPermission message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Push.SnsMessage + * @memberof Records.RecordPermission * @static * @param {Object.} object Plain object - * @returns {Push.SnsMessage} SnsMessage + * @returns {Records.RecordPermission} RecordPermission */ - SnsMessage.fromObject = function fromObject(object) { - if (object instanceof $root.Push.SnsMessage) + RecordPermission.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordPermission) return object; - let message = new $root.Push.SnsMessage(); - switch (object.messageType) { - default: - if (typeof object.messageType === "number") { - message.messageType = object.messageType; - break; - } - break; - case "UNKNOWN": - case 0: - message.messageType = 0; - break; - case "DNA": - case 1: - message.messageType = 1; - break; - case "SSO": - case 2: - message.messageType = 2; - break; - case "CHAT": - case 3: - message.messageType = 3; - break; - case "USER": - case 4: - message.messageType = 4; - break; - case "ENTERPRISE": - case 5: - message.messageType = 5; - break; - case "KEEPER": - case 6: - message.messageType = 6; - break; - case "SESSION": - case 7: - message.messageType = 7; - break; - case "DEVICE": - case 8: - message.messageType = 8; - break; - case "TOTP": - case 9: - message.messageType = 9; - break; - } - if (object.message != null) - if (typeof object.message === "string") - $util.base64.decode(object.message, message.message = $util.newBuffer($util.base64.length(object.message)), 0); - else if (object.message.length >= 0) - message.message = object.message; + let message = new $root.Records.RecordPermission(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.owner != null) + message.owner = Boolean(object.owner); + if (object.canEdit != null) + message.canEdit = Boolean(object.canEdit); + if (object.canShare != null) + message.canShare = Boolean(object.canShare); + if (object.canTransfer != null) + message.canTransfer = Boolean(object.canTransfer); return message; }; /** - * Creates a plain object from a SnsMessage message. Also converts values to other types if specified. + * Creates a plain object from a RecordPermission message. Also converts values to other types if specified. * @function toObject - * @memberof Push.SnsMessage + * @memberof Records.RecordPermission * @static - * @param {Push.SnsMessage} message SnsMessage + * @param {Records.RecordPermission} message RecordPermission * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SnsMessage.toObject = function toObject(message, options) { + RecordPermission.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.messageType = options.enums === String ? "UNKNOWN" : 0; if (options.bytes === String) - object.message = ""; + object.recordUid = ""; else { - object.message = []; + object.recordUid = []; if (options.bytes !== Array) - object.message = $util.newBuffer(object.message); + object.recordUid = $util.newBuffer(object.recordUid); } + object.owner = false; + object.canEdit = false; + object.canShare = false; + object.canTransfer = false; } - if (message.messageType != null && message.hasOwnProperty("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")) - 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; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.owner != null && message.hasOwnProperty("owner")) + object.owner = message.owner; + if (message.canEdit != null && message.hasOwnProperty("canEdit")) + object.canEdit = message.canEdit; + if (message.canShare != null && message.hasOwnProperty("canShare")) + object.canShare = message.canShare; + if (message.canTransfer != null && message.hasOwnProperty("canTransfer")) + object.canTransfer = message.canTransfer; return object; }; /** - * Converts this SnsMessage to JSON. + * Converts this RecordPermission to JSON. * @function toJSON - * @memberof Push.SnsMessage + * @memberof Records.RecordPermission * @instance * @returns {Object.} JSON object */ - SnsMessage.prototype.toJSON = function toJSON() { + RecordPermission.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SnsMessage + * Gets the default type url for RecordPermission * @function getTypeUrl - * @memberof Push.SnsMessage + * @memberof Records.RecordPermission * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SnsMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordPermission.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Push.SnsMessage"; + return typeUrlPrefix + "/Records.RecordPermission"; }; - return SnsMessage; + return RecordPermission; })(); - return Push; -})(); - -export const ServiceLogger = $root.ServiceLogger = (() => { - - /** - * Namespace ServiceLogger. - * @exports ServiceLogger - * @namespace - */ - const ServiceLogger = {}; - - ServiceLogger.IdRange = (function() { + Records.GetShareObjectsRequest = (function() { /** - * Properties of an IdRange. - * @memberof ServiceLogger - * @interface IIdRange - * @property {number|Long|null} [startingId] IdRange startingId - * @property {number|Long|null} [endingId] IdRange endingId + * Properties of a GetShareObjectsRequest. + * @memberof Records + * @interface IGetShareObjectsRequest + * @property {string|null} [startWith] GetShareObjectsRequest startWith + * @property {string|null} [contains] GetShareObjectsRequest contains + * @property {boolean|null} [filtered] GetShareObjectsRequest filtered + * @property {Uint8Array|null} [sharedFolderUid] GetShareObjectsRequest sharedFolderUid */ /** - * Constructs a new IdRange. - * @memberof ServiceLogger - * @classdesc Specifies the first and last IDs of a range of IDs so that a Request can ask for information about a range of IDs. - * @implements IIdRange + * Constructs a new GetShareObjectsRequest. + * @memberof Records + * @classdesc Represents a GetShareObjectsRequest. + * @implements IGetShareObjectsRequest * @constructor - * @param {ServiceLogger.IIdRange=} [properties] Properties to set + * @param {Records.IGetShareObjectsRequest=} [properties] Properties to set */ - function IdRange(properties) { + function GetShareObjectsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -196359,89 +198525,117 @@ export const ServiceLogger = $root.ServiceLogger = (() => { } /** - * IdRange startingId. - * @member {number|Long} startingId - * @memberof ServiceLogger.IdRange + * GetShareObjectsRequest startWith. + * @member {string} startWith + * @memberof Records.GetShareObjectsRequest * @instance */ - IdRange.prototype.startingId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + GetShareObjectsRequest.prototype.startWith = ""; /** - * IdRange endingId. - * @member {number|Long} endingId - * @memberof ServiceLogger.IdRange + * GetShareObjectsRequest contains. + * @member {string} contains + * @memberof Records.GetShareObjectsRequest * @instance */ - IdRange.prototype.endingId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + GetShareObjectsRequest.prototype.contains = ""; /** - * Creates a new IdRange instance using the specified properties. + * GetShareObjectsRequest filtered. + * @member {boolean} filtered + * @memberof Records.GetShareObjectsRequest + * @instance + */ + GetShareObjectsRequest.prototype.filtered = false; + + /** + * GetShareObjectsRequest sharedFolderUid. + * @member {Uint8Array} sharedFolderUid + * @memberof Records.GetShareObjectsRequest + * @instance + */ + GetShareObjectsRequest.prototype.sharedFolderUid = $util.newBuffer([]); + + /** + * Creates a new GetShareObjectsRequest instance using the specified properties. * @function create - * @memberof ServiceLogger.IdRange + * @memberof Records.GetShareObjectsRequest * @static - * @param {ServiceLogger.IIdRange=} [properties] Properties to set - * @returns {ServiceLogger.IdRange} IdRange instance + * @param {Records.IGetShareObjectsRequest=} [properties] Properties to set + * @returns {Records.GetShareObjectsRequest} GetShareObjectsRequest instance */ - IdRange.create = function create(properties) { - return new IdRange(properties); + GetShareObjectsRequest.create = function create(properties) { + return new GetShareObjectsRequest(properties); }; /** - * Encodes the specified IdRange message. Does not implicitly {@link ServiceLogger.IdRange.verify|verify} messages. + * Encodes the specified GetShareObjectsRequest message. Does not implicitly {@link Records.GetShareObjectsRequest.verify|verify} messages. * @function encode - * @memberof ServiceLogger.IdRange + * @memberof Records.GetShareObjectsRequest * @static - * @param {ServiceLogger.IIdRange} message IdRange message or plain object to encode + * @param {Records.IGetShareObjectsRequest} message GetShareObjectsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdRange.encode = function encode(message, writer) { + GetShareObjectsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startingId != null && Object.hasOwnProperty.call(message, "startingId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.startingId); - if (message.endingId != null && Object.hasOwnProperty.call(message, "endingId")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.endingId); + if (message.startWith != null && Object.hasOwnProperty.call(message, "startWith")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.startWith); + if (message.contains != null && Object.hasOwnProperty.call(message, "contains")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.contains); + if (message.filtered != null && Object.hasOwnProperty.call(message, "filtered")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.filtered); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.sharedFolderUid); return writer; }; /** - * Encodes the specified IdRange message, length delimited. Does not implicitly {@link ServiceLogger.IdRange.verify|verify} messages. + * Encodes the specified GetShareObjectsRequest message, length delimited. Does not implicitly {@link Records.GetShareObjectsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ServiceLogger.IdRange + * @memberof Records.GetShareObjectsRequest * @static - * @param {ServiceLogger.IIdRange} message IdRange message or plain object to encode + * @param {Records.IGetShareObjectsRequest} message GetShareObjectsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdRange.encodeDelimited = function encodeDelimited(message, writer) { + GetShareObjectsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IdRange message from the specified reader or buffer. + * Decodes a GetShareObjectsRequest message from the specified reader or buffer. * @function decode - * @memberof ServiceLogger.IdRange + * @memberof Records.GetShareObjectsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ServiceLogger.IdRange} IdRange + * @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 */ - IdRange.decode = function decode(reader, length) { + GetShareObjectsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.IdRange(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetShareObjectsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.startingId = reader.uint64(); + message.startWith = reader.string(); break; } case 2: { - message.endingId = reader.uint64(); + message.contains = reader.string(); + break; + } + case 3: { + message.filtered = reader.bool(); + break; + } + case 4: { + message.sharedFolderUid = reader.bytes(); break; } default: @@ -196453,161 +198647,169 @@ export const ServiceLogger = $root.ServiceLogger = (() => { }; /** - * Decodes an IdRange message from the specified reader or buffer, length delimited. + * Decodes a GetShareObjectsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ServiceLogger.IdRange + * @memberof Records.GetShareObjectsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.IdRange} IdRange + * @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 */ - IdRange.decodeDelimited = function decodeDelimited(reader) { + GetShareObjectsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IdRange message. + * Verifies a GetShareObjectsRequest message. * @function verify - * @memberof ServiceLogger.IdRange + * @memberof Records.GetShareObjectsRequest * @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) { + GetShareObjectsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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 an IdRange message from a plain object. Also converts values to their respective internal types. + * Creates a GetShareObjectsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ServiceLogger.IdRange + * @memberof Records.GetShareObjectsRequest * @static * @param {Object.} object Plain object - * @returns {ServiceLogger.IdRange} IdRange + * @returns {Records.GetShareObjectsRequest} GetShareObjectsRequest */ - IdRange.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.IdRange) + GetShareObjectsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Records.GetShareObjectsRequest) return object; - let message = new $root.ServiceLogger.IdRange(); - if (object.startingId != null) - if ($util.Long) - (message.startingId = $util.Long.fromValue(object.startingId)).unsigned = true; - else if (typeof object.startingId === "string") - message.startingId = parseInt(object.startingId, 10); - else if (typeof object.startingId === "number") - message.startingId = object.startingId; - else if (typeof object.startingId === "object") - message.startingId = new $util.LongBits(object.startingId.low >>> 0, object.startingId.high >>> 0).toNumber(true); - if (object.endingId != null) - if ($util.Long) - (message.endingId = $util.Long.fromValue(object.endingId)).unsigned = true; - else if (typeof object.endingId === "string") - message.endingId = parseInt(object.endingId, 10); - else if (typeof object.endingId === "number") - message.endingId = object.endingId; - else if (typeof object.endingId === "object") - message.endingId = new $util.LongBits(object.endingId.low >>> 0, object.endingId.high >>> 0).toNumber(true); + let message = new $root.Records.GetShareObjectsRequest(); + if (object.startWith != null) + message.startWith = String(object.startWith); + if (object.contains != null) + message.contains = String(object.contains); + if (object.filtered != null) + message.filtered = Boolean(object.filtered); + if (object.sharedFolderUid != null) + if (typeof object.sharedFolderUid === "string") + $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); + else if (object.sharedFolderUid.length >= 0) + message.sharedFolderUid = object.sharedFolderUid; return message; }; /** - * Creates a plain object from an IdRange message. Also converts values to other types if specified. + * Creates a plain object from a GetShareObjectsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ServiceLogger.IdRange + * @memberof Records.GetShareObjectsRequest * @static - * @param {ServiceLogger.IdRange} message IdRange + * @param {Records.GetShareObjectsRequest} message GetShareObjectsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IdRange.toObject = function toObject(message, options) { + GetShareObjectsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.startingId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.startingId = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.endingId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.endingId = options.longs === String ? "0" : 0; + object.startWith = ""; + object.contains = ""; + object.filtered = false; + if (options.bytes === String) + object.sharedFolderUid = ""; + else { + object.sharedFolderUid = []; + if (options.bytes !== Array) + object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + } } - if (message.startingId != null && message.hasOwnProperty("startingId")) - if (typeof message.startingId === "number") - object.startingId = options.longs === String ? String(message.startingId) : message.startingId; - else - object.startingId = options.longs === String ? $util.Long.prototype.toString.call(message.startingId) : options.longs === Number ? new $util.LongBits(message.startingId.low >>> 0, message.startingId.high >>> 0).toNumber(true) : message.startingId; - if (message.endingId != null && message.hasOwnProperty("endingId")) - if (typeof message.endingId === "number") - object.endingId = options.longs === String ? String(message.endingId) : message.endingId; - else - object.endingId = options.longs === String ? $util.Long.prototype.toString.call(message.endingId) : options.longs === Number ? new $util.LongBits(message.endingId.low >>> 0, message.endingId.high >>> 0).toNumber(true) : message.endingId; + if (message.startWith != null && message.hasOwnProperty("startWith")) + object.startWith = message.startWith; + if (message.contains != null && message.hasOwnProperty("contains")) + object.contains = message.contains; + if (message.filtered != null && message.hasOwnProperty("filtered")) + object.filtered = message.filtered; + if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; return object; }; /** - * Converts this IdRange to JSON. + * Converts this GetShareObjectsRequest to JSON. * @function toJSON - * @memberof ServiceLogger.IdRange + * @memberof Records.GetShareObjectsRequest * @instance * @returns {Object.} JSON object */ - IdRange.prototype.toJSON = function toJSON() { + GetShareObjectsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for IdRange + * Gets the default type url for GetShareObjectsRequest * @function getTypeUrl - * @memberof ServiceLogger.IdRange + * @memberof Records.GetShareObjectsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - IdRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetShareObjectsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/ServiceLogger.IdRange"; + return typeUrlPrefix + "/Records.GetShareObjectsRequest"; }; - return IdRange; + return GetShareObjectsRequest; })(); - ServiceLogger.ServiceInfoSpecifier = (function() { + Records.GetShareObjectsResponse = (function() { /** - * Properties of a ServiceInfoSpecifier. - * @memberof ServiceLogger - * @interface IServiceInfoSpecifier - * @property {boolean|null} [all] ServiceInfoSpecifier all - * @property {number|Long|null} [serviceInfoId] ServiceInfoSpecifier serviceInfoId - * @property {string|null} [name] ServiceInfoSpecifier name + * Properties of a GetShareObjectsResponse. + * @memberof Records + * @interface IGetShareObjectsResponse + * @property {Array.|null} [shareRelationships] GetShareObjectsResponse shareRelationships + * @property {Array.|null} [shareFamilyUsers] GetShareObjectsResponse shareFamilyUsers + * @property {Array.|null} [shareEnterpriseUsers] GetShareObjectsResponse shareEnterpriseUsers + * @property {Array.|null} [shareTeams] GetShareObjectsResponse shareTeams + * @property {Array.|null} [shareMCTeams] GetShareObjectsResponse shareMCTeams + * @property {Array.|null} [shareMCEnterpriseUsers] GetShareObjectsResponse shareMCEnterpriseUsers + * @property {Array.|null} [shareEnterpriseNames] GetShareObjectsResponse shareEnterpriseNames */ /** - * Constructs a new ServiceInfoSpecifier. - * @memberof ServiceLogger - * @classdesc Used in ServiceInfoRequest - * @implements IServiceInfoSpecifier + * Constructs a new GetShareObjectsResponse. + * @memberof Records + * @classdesc Represents a GetShareObjectsResponse. + * @implements IGetShareObjectsResponse * @constructor - * @param {ServiceLogger.IServiceInfoSpecifier=} [properties] Properties to set + * @param {Records.IGetShareObjectsResponse=} [properties] Properties to set */ - function ServiceInfoSpecifier(properties) { + function GetShareObjectsResponse(properties) { + this.shareRelationships = []; + this.shareFamilyUsers = []; + this.shareEnterpriseUsers = []; + this.shareTeams = []; + this.shareMCTeams = []; + this.shareMCEnterpriseUsers = []; + this.shareEnterpriseNames = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -196615,103 +198817,180 @@ export const ServiceLogger = $root.ServiceLogger = (() => { } /** - * ServiceInfoSpecifier all. - * @member {boolean} all - * @memberof ServiceLogger.ServiceInfoSpecifier + * GetShareObjectsResponse shareRelationships. + * @member {Array.} shareRelationships + * @memberof Records.GetShareObjectsResponse * @instance */ - ServiceInfoSpecifier.prototype.all = false; + GetShareObjectsResponse.prototype.shareRelationships = $util.emptyArray; /** - * ServiceInfoSpecifier serviceInfoId. - * @member {number|Long} serviceInfoId - * @memberof ServiceLogger.ServiceInfoSpecifier + * GetShareObjectsResponse shareFamilyUsers. + * @member {Array.} shareFamilyUsers + * @memberof Records.GetShareObjectsResponse * @instance */ - ServiceInfoSpecifier.prototype.serviceInfoId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + GetShareObjectsResponse.prototype.shareFamilyUsers = $util.emptyArray; /** - * ServiceInfoSpecifier name. - * @member {string} name - * @memberof ServiceLogger.ServiceInfoSpecifier + * GetShareObjectsResponse shareEnterpriseUsers. + * @member {Array.} shareEnterpriseUsers + * @memberof Records.GetShareObjectsResponse * @instance */ - ServiceInfoSpecifier.prototype.name = ""; + GetShareObjectsResponse.prototype.shareEnterpriseUsers = $util.emptyArray; /** - * Creates a new ServiceInfoSpecifier instance using the specified properties. + * GetShareObjectsResponse shareTeams. + * @member {Array.} shareTeams + * @memberof Records.GetShareObjectsResponse + * @instance + */ + GetShareObjectsResponse.prototype.shareTeams = $util.emptyArray; + + /** + * GetShareObjectsResponse shareMCTeams. + * @member {Array.} shareMCTeams + * @memberof Records.GetShareObjectsResponse + * @instance + */ + GetShareObjectsResponse.prototype.shareMCTeams = $util.emptyArray; + + /** + * GetShareObjectsResponse shareMCEnterpriseUsers. + * @member {Array.} shareMCEnterpriseUsers + * @memberof Records.GetShareObjectsResponse + * @instance + */ + GetShareObjectsResponse.prototype.shareMCEnterpriseUsers = $util.emptyArray; + + /** + * GetShareObjectsResponse shareEnterpriseNames. + * @member {Array.} shareEnterpriseNames + * @memberof Records.GetShareObjectsResponse + * @instance + */ + GetShareObjectsResponse.prototype.shareEnterpriseNames = $util.emptyArray; + + /** + * Creates a new GetShareObjectsResponse instance using the specified properties. * @function create - * @memberof ServiceLogger.ServiceInfoSpecifier + * @memberof Records.GetShareObjectsResponse * @static - * @param {ServiceLogger.IServiceInfoSpecifier=} [properties] Properties to set - * @returns {ServiceLogger.ServiceInfoSpecifier} ServiceInfoSpecifier instance + * @param {Records.IGetShareObjectsResponse=} [properties] Properties to set + * @returns {Records.GetShareObjectsResponse} GetShareObjectsResponse instance */ - ServiceInfoSpecifier.create = function create(properties) { - return new ServiceInfoSpecifier(properties); + GetShareObjectsResponse.create = function create(properties) { + return new GetShareObjectsResponse(properties); }; /** - * Encodes the specified ServiceInfoSpecifier message. Does not implicitly {@link ServiceLogger.ServiceInfoSpecifier.verify|verify} messages. + * Encodes the specified GetShareObjectsResponse message. Does not implicitly {@link Records.GetShareObjectsResponse.verify|verify} messages. * @function encode - * @memberof ServiceLogger.ServiceInfoSpecifier + * @memberof Records.GetShareObjectsResponse * @static - * @param {ServiceLogger.IServiceInfoSpecifier} message ServiceInfoSpecifier message or plain object to encode + * @param {Records.IGetShareObjectsResponse} message GetShareObjectsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceInfoSpecifier.encode = function encode(message, writer) { + GetShareObjectsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.all != null && Object.hasOwnProperty.call(message, "all")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.all); - if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "serviceInfoId")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.serviceInfoId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + if (message.shareRelationships != null && message.shareRelationships.length) + for (let i = 0; i < message.shareRelationships.length; ++i) + $root.Records.ShareUser.encode(message.shareRelationships[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.shareFamilyUsers != null && message.shareFamilyUsers.length) + for (let i = 0; i < message.shareFamilyUsers.length; ++i) + $root.Records.ShareUser.encode(message.shareFamilyUsers[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.shareEnterpriseUsers != null && message.shareEnterpriseUsers.length) + for (let i = 0; i < message.shareEnterpriseUsers.length; ++i) + $root.Records.ShareUser.encode(message.shareEnterpriseUsers[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.shareTeams != null && message.shareTeams.length) + for (let i = 0; i < message.shareTeams.length; ++i) + $root.Records.ShareTeam.encode(message.shareTeams[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.shareMCTeams != null && message.shareMCTeams.length) + for (let i = 0; i < message.shareMCTeams.length; ++i) + $root.Records.ShareTeam.encode(message.shareMCTeams[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.shareMCEnterpriseUsers != null && message.shareMCEnterpriseUsers.length) + for (let i = 0; i < message.shareMCEnterpriseUsers.length; ++i) + $root.Records.ShareUser.encode(message.shareMCEnterpriseUsers[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.shareEnterpriseNames != null && message.shareEnterpriseNames.length) + for (let i = 0; i < message.shareEnterpriseNames.length; ++i) + $root.Records.ShareEnterprise.encode(message.shareEnterpriseNames[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified ServiceInfoSpecifier message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoSpecifier.verify|verify} messages. + * Encodes the specified GetShareObjectsResponse message, length delimited. Does not implicitly {@link Records.GetShareObjectsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ServiceLogger.ServiceInfoSpecifier + * @memberof Records.GetShareObjectsResponse * @static - * @param {ServiceLogger.IServiceInfoSpecifier} message ServiceInfoSpecifier message or plain object to encode + * @param {Records.IGetShareObjectsResponse} message GetShareObjectsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceInfoSpecifier.encodeDelimited = function encodeDelimited(message, writer) { + GetShareObjectsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceInfoSpecifier message from the specified reader or buffer. + * Decodes a GetShareObjectsResponse message from the specified reader or buffer. * @function decode - * @memberof ServiceLogger.ServiceInfoSpecifier + * @memberof Records.GetShareObjectsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ServiceLogger.ServiceInfoSpecifier} ServiceInfoSpecifier + * @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 */ - ServiceInfoSpecifier.decode = function decode(reader, length) { + GetShareObjectsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceInfoSpecifier(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetShareObjectsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.all = reader.bool(); + if (!(message.shareRelationships && message.shareRelationships.length)) + message.shareRelationships = []; + message.shareRelationships.push($root.Records.ShareUser.decode(reader, reader.uint32())); break; } case 2: { - message.serviceInfoId = reader.uint64(); + if (!(message.shareFamilyUsers && message.shareFamilyUsers.length)) + message.shareFamilyUsers = []; + message.shareFamilyUsers.push($root.Records.ShareUser.decode(reader, reader.uint32())); break; } case 3: { - message.name = reader.string(); + if (!(message.shareEnterpriseUsers && message.shareEnterpriseUsers.length)) + message.shareEnterpriseUsers = []; + message.shareEnterpriseUsers.push($root.Records.ShareUser.decode(reader, reader.uint32())); + break; + } + case 4: { + if (!(message.shareTeams && message.shareTeams.length)) + message.shareTeams = []; + message.shareTeams.push($root.Records.ShareTeam.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.shareMCTeams && message.shareMCTeams.length)) + message.shareMCTeams = []; + message.shareMCTeams.push($root.Records.ShareTeam.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.shareMCEnterpriseUsers && message.shareMCEnterpriseUsers.length)) + message.shareMCEnterpriseUsers = []; + message.shareMCEnterpriseUsers.push($root.Records.ShareUser.decode(reader, reader.uint32())); + break; + } + case 7: { + if (!(message.shareEnterpriseNames && message.shareEnterpriseNames.length)) + message.shareEnterpriseNames = []; + message.shareEnterpriseNames.push($root.Records.ShareEnterprise.decode(reader, reader.uint32())); break; } default: @@ -196723,154 +199002,296 @@ export const ServiceLogger = $root.ServiceLogger = (() => { }; /** - * Decodes a ServiceInfoSpecifier message from the specified reader or buffer, length delimited. + * Decodes a GetShareObjectsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ServiceLogger.ServiceInfoSpecifier + * @memberof Records.GetShareObjectsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceInfoSpecifier} ServiceInfoSpecifier + * @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 */ - ServiceInfoSpecifier.decodeDelimited = function decodeDelimited(reader) { + GetShareObjectsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceInfoSpecifier message. + * Verifies a GetShareObjectsResponse message. * @function verify - * @memberof ServiceLogger.ServiceInfoSpecifier + * @memberof Records.GetShareObjectsResponse * @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) { + GetShareObjectsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + if (error) + return "shareEnterpriseNames." + error; + } + } return null; }; /** - * Creates a ServiceInfoSpecifier message from a plain object. Also converts values to their respective internal types. + * Creates a GetShareObjectsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ServiceLogger.ServiceInfoSpecifier + * @memberof Records.GetShareObjectsResponse * @static * @param {Object.} object Plain object - * @returns {ServiceLogger.ServiceInfoSpecifier} ServiceInfoSpecifier + * @returns {Records.GetShareObjectsResponse} GetShareObjectsResponse */ - ServiceInfoSpecifier.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceInfoSpecifier) + GetShareObjectsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Records.GetShareObjectsResponse) return object; - let message = new $root.ServiceLogger.ServiceInfoSpecifier(); - if (object.all != null) - message.all = Boolean(object.all); - if (object.serviceInfoId != null) - if ($util.Long) - (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; - else if (typeof object.serviceInfoId === "string") - message.serviceInfoId = parseInt(object.serviceInfoId, 10); - else if (typeof object.serviceInfoId === "number") - message.serviceInfoId = object.serviceInfoId; - else if (typeof object.serviceInfoId === "object") - message.serviceInfoId = new $util.LongBits(object.serviceInfoId.low >>> 0, object.serviceInfoId.high >>> 0).toNumber(true); - if (object.name != null) - message.name = String(object.name); + let message = new $root.Records.GetShareObjectsResponse(); + if (object.shareRelationships) { + if (!Array.isArray(object.shareRelationships)) + throw TypeError(".Records.GetShareObjectsResponse.shareRelationships: array expected"); + message.shareRelationships = []; + for (let i = 0; i < object.shareRelationships.length; ++i) { + if (typeof object.shareRelationships[i] !== "object") + throw TypeError(".Records.GetShareObjectsResponse.shareRelationships: object expected"); + message.shareRelationships[i] = $root.Records.ShareUser.fromObject(object.shareRelationships[i]); + } + } + if (object.shareFamilyUsers) { + if (!Array.isArray(object.shareFamilyUsers)) + throw TypeError(".Records.GetShareObjectsResponse.shareFamilyUsers: array expected"); + message.shareFamilyUsers = []; + for (let i = 0; i < object.shareFamilyUsers.length; ++i) { + if (typeof object.shareFamilyUsers[i] !== "object") + throw TypeError(".Records.GetShareObjectsResponse.shareFamilyUsers: object expected"); + message.shareFamilyUsers[i] = $root.Records.ShareUser.fromObject(object.shareFamilyUsers[i]); + } + } + if (object.shareEnterpriseUsers) { + if (!Array.isArray(object.shareEnterpriseUsers)) + throw TypeError(".Records.GetShareObjectsResponse.shareEnterpriseUsers: array expected"); + message.shareEnterpriseUsers = []; + for (let i = 0; i < object.shareEnterpriseUsers.length; ++i) { + if (typeof object.shareEnterpriseUsers[i] !== "object") + throw TypeError(".Records.GetShareObjectsResponse.shareEnterpriseUsers: object expected"); + message.shareEnterpriseUsers[i] = $root.Records.ShareUser.fromObject(object.shareEnterpriseUsers[i]); + } + } + if (object.shareTeams) { + if (!Array.isArray(object.shareTeams)) + throw TypeError(".Records.GetShareObjectsResponse.shareTeams: array expected"); + message.shareTeams = []; + for (let i = 0; i < object.shareTeams.length; ++i) { + if (typeof object.shareTeams[i] !== "object") + throw TypeError(".Records.GetShareObjectsResponse.shareTeams: object expected"); + message.shareTeams[i] = $root.Records.ShareTeam.fromObject(object.shareTeams[i]); + } + } + if (object.shareMCTeams) { + if (!Array.isArray(object.shareMCTeams)) + throw TypeError(".Records.GetShareObjectsResponse.shareMCTeams: array expected"); + message.shareMCTeams = []; + for (let i = 0; i < object.shareMCTeams.length; ++i) { + if (typeof object.shareMCTeams[i] !== "object") + throw TypeError(".Records.GetShareObjectsResponse.shareMCTeams: object expected"); + message.shareMCTeams[i] = $root.Records.ShareTeam.fromObject(object.shareMCTeams[i]); + } + } + if (object.shareMCEnterpriseUsers) { + if (!Array.isArray(object.shareMCEnterpriseUsers)) + throw TypeError(".Records.GetShareObjectsResponse.shareMCEnterpriseUsers: array expected"); + message.shareMCEnterpriseUsers = []; + for (let i = 0; i < object.shareMCEnterpriseUsers.length; ++i) { + if (typeof object.shareMCEnterpriseUsers[i] !== "object") + throw TypeError(".Records.GetShareObjectsResponse.shareMCEnterpriseUsers: object expected"); + message.shareMCEnterpriseUsers[i] = $root.Records.ShareUser.fromObject(object.shareMCEnterpriseUsers[i]); + } + } + if (object.shareEnterpriseNames) { + if (!Array.isArray(object.shareEnterpriseNames)) + throw TypeError(".Records.GetShareObjectsResponse.shareEnterpriseNames: array expected"); + message.shareEnterpriseNames = []; + for (let i = 0; i < object.shareEnterpriseNames.length; ++i) { + if (typeof object.shareEnterpriseNames[i] !== "object") + throw TypeError(".Records.GetShareObjectsResponse.shareEnterpriseNames: object expected"); + message.shareEnterpriseNames[i] = $root.Records.ShareEnterprise.fromObject(object.shareEnterpriseNames[i]); + } + } return message; }; /** - * Creates a plain object from a ServiceInfoSpecifier message. Also converts values to other types if specified. + * Creates a plain object from a GetShareObjectsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ServiceLogger.ServiceInfoSpecifier + * @memberof Records.GetShareObjectsResponse * @static - * @param {ServiceLogger.ServiceInfoSpecifier} message ServiceInfoSpecifier + * @param {Records.GetShareObjectsResponse} message GetShareObjectsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceInfoSpecifier.toObject = function toObject(message, options) { + GetShareObjectsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.all = false; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceInfoId = options.longs === String ? "0" : 0; - object.name = ""; + if (options.arrays || options.defaults) { + object.shareRelationships = []; + object.shareFamilyUsers = []; + object.shareEnterpriseUsers = []; + object.shareTeams = []; + object.shareMCTeams = []; + object.shareMCEnterpriseUsers = []; + object.shareEnterpriseNames = []; } - if (message.all != null && message.hasOwnProperty("all")) - object.all = message.all; - if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) - 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")) - object.name = message.name; - return object; - }; - - /** - * Converts this ServiceInfoSpecifier to JSON. - * @function toJSON - * @memberof ServiceLogger.ServiceInfoSpecifier - * @instance - * @returns {Object.} JSON object - */ - ServiceInfoSpecifier.prototype.toJSON = function toJSON() { + if (message.shareRelationships && message.shareRelationships.length) { + object.shareRelationships = []; + for (let j = 0; j < message.shareRelationships.length; ++j) + object.shareRelationships[j] = $root.Records.ShareUser.toObject(message.shareRelationships[j], options); + } + if (message.shareFamilyUsers && message.shareFamilyUsers.length) { + object.shareFamilyUsers = []; + for (let j = 0; j < message.shareFamilyUsers.length; ++j) + object.shareFamilyUsers[j] = $root.Records.ShareUser.toObject(message.shareFamilyUsers[j], options); + } + if (message.shareEnterpriseUsers && message.shareEnterpriseUsers.length) { + object.shareEnterpriseUsers = []; + for (let j = 0; j < message.shareEnterpriseUsers.length; ++j) + object.shareEnterpriseUsers[j] = $root.Records.ShareUser.toObject(message.shareEnterpriseUsers[j], options); + } + if (message.shareTeams && message.shareTeams.length) { + object.shareTeams = []; + for (let j = 0; j < message.shareTeams.length; ++j) + object.shareTeams[j] = $root.Records.ShareTeam.toObject(message.shareTeams[j], options); + } + if (message.shareMCTeams && message.shareMCTeams.length) { + object.shareMCTeams = []; + for (let j = 0; j < message.shareMCTeams.length; ++j) + object.shareMCTeams[j] = $root.Records.ShareTeam.toObject(message.shareMCTeams[j], options); + } + if (message.shareMCEnterpriseUsers && message.shareMCEnterpriseUsers.length) { + object.shareMCEnterpriseUsers = []; + for (let j = 0; j < message.shareMCEnterpriseUsers.length; ++j) + object.shareMCEnterpriseUsers[j] = $root.Records.ShareUser.toObject(message.shareMCEnterpriseUsers[j], options); + } + if (message.shareEnterpriseNames && message.shareEnterpriseNames.length) { + object.shareEnterpriseNames = []; + for (let j = 0; j < message.shareEnterpriseNames.length; ++j) + object.shareEnterpriseNames[j] = $root.Records.ShareEnterprise.toObject(message.shareEnterpriseNames[j], options); + } + return object; + }; + + /** + * Converts this GetShareObjectsResponse to JSON. + * @function toJSON + * @memberof Records.GetShareObjectsResponse + * @instance + * @returns {Object.} JSON object + */ + GetShareObjectsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ServiceInfoSpecifier + * Gets the default type url for GetShareObjectsResponse * @function getTypeUrl - * @memberof ServiceLogger.ServiceInfoSpecifier + * @memberof Records.GetShareObjectsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ServiceInfoSpecifier.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetShareObjectsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/ServiceLogger.ServiceInfoSpecifier"; + return typeUrlPrefix + "/Records.GetShareObjectsResponse"; }; - return ServiceInfoSpecifier; + return GetShareObjectsResponse; })(); - ServiceLogger.ServiceInfoRequest = (function() { + Records.ShareUser = (function() { /** - * Properties of a ServiceInfoRequest. - * @memberof ServiceLogger - * @interface IServiceInfoRequest - * @property {Array.|null} [serviceInfoSpecifier] ServiceInfoRequest serviceInfoSpecifier + * Properties of a ShareUser. + * @memberof Records + * @interface IShareUser + * @property {string|null} [username] ShareUser username + * @property {string|null} [fullname] ShareUser fullname + * @property {number|null} [enterpriseId] ShareUser enterpriseId + * @property {Records.ShareStatus|null} [status] ShareUser status + * @property {boolean|null} [isShareAdmin] ShareUser isShareAdmin + * @property {boolean|null} [isAdminOfSharedFolderOwner] ShareUser isAdminOfSharedFolderOwner + * @property {Uint8Array|null} [userAccountUid] ShareUser userAccountUid */ /** - * Constructs a new ServiceInfoRequest. - * @memberof ServiceLogger - * @classdesc Request information about one or more services by ID or name, or retrieve all. - * @implements IServiceInfoRequest + * Constructs a new ShareUser. + * @memberof Records + * @classdesc Represents a ShareUser. + * @implements IShareUser * @constructor - * @param {ServiceLogger.IServiceInfoRequest=} [properties] Properties to set + * @param {Records.IShareUser=} [properties] Properties to set */ - function ServiceInfoRequest(properties) { - this.serviceInfoSpecifier = []; + function ShareUser(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -196878,78 +199299,159 @@ export const ServiceLogger = $root.ServiceLogger = (() => { } /** - * ServiceInfoRequest serviceInfoSpecifier. - * @member {Array.} serviceInfoSpecifier - * @memberof ServiceLogger.ServiceInfoRequest + * ShareUser username. + * @member {string} username + * @memberof Records.ShareUser * @instance */ - ServiceInfoRequest.prototype.serviceInfoSpecifier = $util.emptyArray; + ShareUser.prototype.username = ""; /** - * Creates a new ServiceInfoRequest instance using the specified properties. + * ShareUser fullname. + * @member {string} fullname + * @memberof Records.ShareUser + * @instance + */ + ShareUser.prototype.fullname = ""; + + /** + * ShareUser enterpriseId. + * @member {number} enterpriseId + * @memberof Records.ShareUser + * @instance + */ + ShareUser.prototype.enterpriseId = 0; + + /** + * ShareUser status. + * @member {Records.ShareStatus} status + * @memberof Records.ShareUser + * @instance + */ + ShareUser.prototype.status = 0; + + /** + * ShareUser isShareAdmin. + * @member {boolean} isShareAdmin + * @memberof Records.ShareUser + * @instance + */ + ShareUser.prototype.isShareAdmin = false; + + /** + * ShareUser isAdminOfSharedFolderOwner. + * @member {boolean} isAdminOfSharedFolderOwner + * @memberof Records.ShareUser + * @instance + */ + ShareUser.prototype.isAdminOfSharedFolderOwner = false; + + /** + * ShareUser userAccountUid. + * @member {Uint8Array} userAccountUid + * @memberof Records.ShareUser + * @instance + */ + ShareUser.prototype.userAccountUid = $util.newBuffer([]); + + /** + * Creates a new ShareUser instance using the specified properties. * @function create - * @memberof ServiceLogger.ServiceInfoRequest + * @memberof Records.ShareUser * @static - * @param {ServiceLogger.IServiceInfoRequest=} [properties] Properties to set - * @returns {ServiceLogger.ServiceInfoRequest} ServiceInfoRequest instance + * @param {Records.IShareUser=} [properties] Properties to set + * @returns {Records.ShareUser} ShareUser instance */ - ServiceInfoRequest.create = function create(properties) { - return new ServiceInfoRequest(properties); + ShareUser.create = function create(properties) { + return new ShareUser(properties); }; /** - * Encodes the specified ServiceInfoRequest message. Does not implicitly {@link ServiceLogger.ServiceInfoRequest.verify|verify} messages. + * Encodes the specified ShareUser message. Does not implicitly {@link Records.ShareUser.verify|verify} messages. * @function encode - * @memberof ServiceLogger.ServiceInfoRequest + * @memberof Records.ShareUser * @static - * @param {ServiceLogger.IServiceInfoRequest} message ServiceInfoRequest message or plain object to encode + * @param {Records.IShareUser} message ShareUser message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceInfoRequest.encode = function encode(message, writer) { + ShareUser.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.serviceInfoSpecifier != null && message.serviceInfoSpecifier.length) - for (let i = 0; i < message.serviceInfoSpecifier.length; ++i) - $root.ServiceLogger.ServiceInfoSpecifier.encode(message.serviceInfoSpecifier[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); + if (message.fullname != null && Object.hasOwnProperty.call(message, "fullname")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.fullname); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.enterpriseId); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status); + if (message.isShareAdmin != null && Object.hasOwnProperty.call(message, "isShareAdmin")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isShareAdmin); + if (message.isAdminOfSharedFolderOwner != null && Object.hasOwnProperty.call(message, "isAdminOfSharedFolderOwner")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isAdminOfSharedFolderOwner); + if (message.userAccountUid != null && Object.hasOwnProperty.call(message, "userAccountUid")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.userAccountUid); return writer; }; /** - * Encodes the specified ServiceInfoRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoRequest.verify|verify} messages. + * Encodes the specified ShareUser message, length delimited. Does not implicitly {@link Records.ShareUser.verify|verify} messages. * @function encodeDelimited - * @memberof ServiceLogger.ServiceInfoRequest + * @memberof Records.ShareUser * @static - * @param {ServiceLogger.IServiceInfoRequest} message ServiceInfoRequest message or plain object to encode + * @param {Records.IShareUser} message ShareUser message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { + ShareUser.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceInfoRequest message from the specified reader or buffer. + * Decodes a ShareUser message from the specified reader or buffer. * @function decode - * @memberof ServiceLogger.ServiceInfoRequest + * @memberof Records.ShareUser * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ServiceLogger.ServiceInfoRequest} ServiceInfoRequest + * @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 */ - ServiceInfoRequest.decode = function decode(reader, length) { + ShareUser.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceInfoRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.ShareUser(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.serviceInfoSpecifier && message.serviceInfoSpecifier.length)) - message.serviceInfoSpecifier = []; - message.serviceInfoSpecifier.push($root.ServiceLogger.ServiceInfoSpecifier.decode(reader, reader.uint32())); + message.username = reader.string(); + break; + } + case 2: { + message.fullname = reader.string(); + break; + } + case 3: { + message.enterpriseId = reader.int32(); + break; + } + case 4: { + message.status = reader.int32(); + break; + } + case 5: { + message.isShareAdmin = reader.bool(); + break; + } + case 6: { + message.isAdminOfSharedFolderOwner = reader.bool(); + break; + } + case 7: { + message.userAccountUid = reader.bytes(); break; } default: @@ -196961,143 +199463,206 @@ export const ServiceLogger = $root.ServiceLogger = (() => { }; /** - * Decodes a ServiceInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a ShareUser message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ServiceLogger.ServiceInfoRequest + * @memberof Records.ShareUser * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceInfoRequest} ServiceInfoRequest + * @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 */ - ServiceInfoRequest.decodeDelimited = function decodeDelimited(reader) { + ShareUser.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceInfoRequest message. + * Verifies a ShareUser message. * @function verify - * @memberof ServiceLogger.ServiceInfoRequest + * @memberof Records.ShareUser * @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) { + ShareUser.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "serviceInfoSpecifier." + error; + 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 ServiceInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ShareUser message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ServiceLogger.ServiceInfoRequest + * @memberof Records.ShareUser * @static * @param {Object.} object Plain object - * @returns {ServiceLogger.ServiceInfoRequest} ServiceInfoRequest + * @returns {Records.ShareUser} ShareUser */ - ServiceInfoRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceInfoRequest) + ShareUser.fromObject = function fromObject(object) { + if (object instanceof $root.Records.ShareUser) return object; - let message = new $root.ServiceLogger.ServiceInfoRequest(); - if (object.serviceInfoSpecifier) { - if (!Array.isArray(object.serviceInfoSpecifier)) - throw TypeError(".ServiceLogger.ServiceInfoRequest.serviceInfoSpecifier: array expected"); - message.serviceInfoSpecifier = []; - for (let i = 0; i < object.serviceInfoSpecifier.length; ++i) { - if (typeof object.serviceInfoSpecifier[i] !== "object") - throw TypeError(".ServiceLogger.ServiceInfoRequest.serviceInfoSpecifier: object expected"); - message.serviceInfoSpecifier[i] = $root.ServiceLogger.ServiceInfoSpecifier.fromObject(object.serviceInfoSpecifier[i]); + let message = new $root.Records.ShareUser(); + if (object.username != null) + message.username = String(object.username); + if (object.fullname != null) + message.fullname = String(object.fullname); + if (object.enterpriseId != null) + message.enterpriseId = object.enterpriseId | 0; + switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; } + break; + case "ACTIVE": + case 0: + message.status = 0; + break; + case "BLOCK": + case 1: + message.status = 1; + break; + case "INVITED": + case 2: + message.status = 2; + break; } + if (object.isShareAdmin != null) + message.isShareAdmin = Boolean(object.isShareAdmin); + if (object.isAdminOfSharedFolderOwner != null) + message.isAdminOfSharedFolderOwner = Boolean(object.isAdminOfSharedFolderOwner); + if (object.userAccountUid != null) + if (typeof object.userAccountUid === "string") + $util.base64.decode(object.userAccountUid, message.userAccountUid = $util.newBuffer($util.base64.length(object.userAccountUid)), 0); + else if (object.userAccountUid.length >= 0) + message.userAccountUid = object.userAccountUid; return message; }; /** - * Creates a plain object from a ServiceInfoRequest message. Also converts values to other types if specified. + * Creates a plain object from a ShareUser message. Also converts values to other types if specified. * @function toObject - * @memberof ServiceLogger.ServiceInfoRequest + * @memberof Records.ShareUser * @static - * @param {ServiceLogger.ServiceInfoRequest} message ServiceInfoRequest + * @param {Records.ShareUser} message ShareUser * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceInfoRequest.toObject = function toObject(message, options) { + ShareUser.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.serviceInfoSpecifier = []; - if (message.serviceInfoSpecifier && message.serviceInfoSpecifier.length) { - object.serviceInfoSpecifier = []; - for (let j = 0; j < message.serviceInfoSpecifier.length; ++j) - object.serviceInfoSpecifier[j] = $root.ServiceLogger.ServiceInfoSpecifier.toObject(message.serviceInfoSpecifier[j], options); + if (options.defaults) { + object.username = ""; + object.fullname = ""; + object.enterpriseId = 0; + object.status = options.enums === String ? "ACTIVE" : 0; + object.isShareAdmin = false; + object.isAdminOfSharedFolderOwner = false; + if (options.bytes === String) + object.userAccountUid = ""; + else { + object.userAccountUid = []; + if (options.bytes !== Array) + object.userAccountUid = $util.newBuffer(object.userAccountUid); + } } + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.fullname != null && message.hasOwnProperty("fullname")) + object.fullname = message.fullname; + if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + object.enterpriseId = message.enterpriseId; + if (message.status != null && message.hasOwnProperty("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")) + object.isShareAdmin = message.isShareAdmin; + if (message.isAdminOfSharedFolderOwner != null && message.hasOwnProperty("isAdminOfSharedFolderOwner")) + object.isAdminOfSharedFolderOwner = message.isAdminOfSharedFolderOwner; + if (message.userAccountUid != null && message.hasOwnProperty("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; }; /** - * Converts this ServiceInfoRequest to JSON. + * Converts this ShareUser to JSON. * @function toJSON - * @memberof ServiceLogger.ServiceInfoRequest + * @memberof Records.ShareUser * @instance * @returns {Object.} JSON object */ - ServiceInfoRequest.prototype.toJSON = function toJSON() { + ShareUser.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ServiceInfoRequest + * Gets the default type url for ShareUser * @function getTypeUrl - * @memberof ServiceLogger.ServiceInfoRequest + * @memberof Records.ShareUser * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ServiceInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShareUser.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/ServiceLogger.ServiceInfoRequest"; + return typeUrlPrefix + "/Records.ShareUser"; }; - return ServiceInfoRequest; + return ShareUser; })(); - ServiceLogger.ServiceInfoRecord = (function() { + Records.ShareTeam = (function() { /** - * Properties of a ServiceInfoRecord. - * @memberof ServiceLogger - * @interface IServiceInfoRecord - * @property {number|Long|null} [serviceInfoId] ServiceInfoRecord serviceInfoId - * @property {string|null} [name] ServiceInfoRecord name - * @property {number|null} [deleteAfter] ServiceInfoRecord deleteAfter - * @property {string|null} [deleteAfterTimeUnits] ServiceInfoRecord deleteAfterTimeUnits - * @property {boolean|null} [isShortTermLogging] ServiceInfoRecord isShortTermLogging + * Properties of a ShareTeam. + * @memberof Records + * @interface IShareTeam + * @property {string|null} [teamname] ShareTeam teamname + * @property {number|null} [enterpriseId] ShareTeam enterpriseId + * @property {Uint8Array|null} [teamUid] ShareTeam teamUid */ /** - * Constructs a new ServiceInfoRecord. - * @memberof ServiceLogger - * @classdesc Used in ServiceInfoResponse - * @implements IServiceInfoRecord + * Constructs a new ShareTeam. + * @memberof Records + * @classdesc Represents a ShareTeam. + * @implements IShareTeam * @constructor - * @param {ServiceLogger.IServiceInfoRecord=} [properties] Properties to set + * @param {Records.IShareTeam=} [properties] Properties to set */ - function ServiceInfoRecord(properties) { + function ShareTeam(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -197105,131 +199670,103 @@ export const ServiceLogger = $root.ServiceLogger = (() => { } /** - * ServiceInfoRecord serviceInfoId. - * @member {number|Long} serviceInfoId - * @memberof ServiceLogger.ServiceInfoRecord - * @instance - */ - ServiceInfoRecord.prototype.serviceInfoId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * ServiceInfoRecord name. - * @member {string} name - * @memberof ServiceLogger.ServiceInfoRecord - * @instance - */ - ServiceInfoRecord.prototype.name = ""; - - /** - * ServiceInfoRecord deleteAfter. - * @member {number} deleteAfter - * @memberof ServiceLogger.ServiceInfoRecord + * ShareTeam teamname. + * @member {string} teamname + * @memberof Records.ShareTeam * @instance */ - ServiceInfoRecord.prototype.deleteAfter = 0; + ShareTeam.prototype.teamname = ""; /** - * ServiceInfoRecord deleteAfterTimeUnits. - * @member {string} deleteAfterTimeUnits - * @memberof ServiceLogger.ServiceInfoRecord + * ShareTeam enterpriseId. + * @member {number} enterpriseId + * @memberof Records.ShareTeam * @instance */ - ServiceInfoRecord.prototype.deleteAfterTimeUnits = ""; + ShareTeam.prototype.enterpriseId = 0; /** - * ServiceInfoRecord isShortTermLogging. - * @member {boolean} isShortTermLogging - * @memberof ServiceLogger.ServiceInfoRecord + * ShareTeam teamUid. + * @member {Uint8Array} teamUid + * @memberof Records.ShareTeam * @instance */ - ServiceInfoRecord.prototype.isShortTermLogging = false; + ShareTeam.prototype.teamUid = $util.newBuffer([]); /** - * Creates a new ServiceInfoRecord instance using the specified properties. + * Creates a new ShareTeam instance using the specified properties. * @function create - * @memberof ServiceLogger.ServiceInfoRecord + * @memberof Records.ShareTeam * @static - * @param {ServiceLogger.IServiceInfoRecord=} [properties] Properties to set - * @returns {ServiceLogger.ServiceInfoRecord} ServiceInfoRecord instance + * @param {Records.IShareTeam=} [properties] Properties to set + * @returns {Records.ShareTeam} ShareTeam instance */ - ServiceInfoRecord.create = function create(properties) { - return new ServiceInfoRecord(properties); + ShareTeam.create = function create(properties) { + return new ShareTeam(properties); }; /** - * Encodes the specified ServiceInfoRecord message. Does not implicitly {@link ServiceLogger.ServiceInfoRecord.verify|verify} messages. + * Encodes the specified ShareTeam message. Does not implicitly {@link Records.ShareTeam.verify|verify} messages. * @function encode - * @memberof ServiceLogger.ServiceInfoRecord + * @memberof Records.ShareTeam * @static - * @param {ServiceLogger.IServiceInfoRecord} message ServiceInfoRecord message or plain object to encode + * @param {Records.IShareTeam} message ShareTeam message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceInfoRecord.encode = function encode(message, writer) { + ShareTeam.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "serviceInfoId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.serviceInfoId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.deleteAfter != null && Object.hasOwnProperty.call(message, "deleteAfter")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.deleteAfter); - if (message.deleteAfterTimeUnits != null && Object.hasOwnProperty.call(message, "deleteAfterTimeUnits")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.deleteAfterTimeUnits); - if (message.isShortTermLogging != null && Object.hasOwnProperty.call(message, "isShortTermLogging")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isShortTermLogging); + if (message.teamname != null && Object.hasOwnProperty.call(message, "teamname")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.teamname); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enterpriseId); + if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.teamUid); return writer; }; /** - * Encodes the specified ServiceInfoRecord message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoRecord.verify|verify} messages. + * Encodes the specified ShareTeam message, length delimited. Does not implicitly {@link Records.ShareTeam.verify|verify} messages. * @function encodeDelimited - * @memberof ServiceLogger.ServiceInfoRecord + * @memberof Records.ShareTeam * @static - * @param {ServiceLogger.IServiceInfoRecord} message ServiceInfoRecord message or plain object to encode + * @param {Records.IShareTeam} message ShareTeam message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceInfoRecord.encodeDelimited = function encodeDelimited(message, writer) { + ShareTeam.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceInfoRecord message from the specified reader or buffer. + * Decodes a ShareTeam message from the specified reader or buffer. * @function decode - * @memberof ServiceLogger.ServiceInfoRecord + * @memberof Records.ShareTeam * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ServiceLogger.ServiceInfoRecord} ServiceInfoRecord + * @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 */ - ServiceInfoRecord.decode = function decode(reader, length) { + ShareTeam.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceInfoRecord(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.ShareTeam(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.serviceInfoId = reader.uint64(); + message.teamname = reader.string(); break; } case 2: { - message.name = reader.string(); + message.enterpriseId = reader.int32(); break; } case 3: { - message.deleteAfter = reader.uint32(); - break; - } - case 4: { - message.deleteAfterTimeUnits = reader.string(); - break; - } - case 5: { - message.isShortTermLogging = reader.bool(); + message.teamUid = reader.bytes(); break; } default: @@ -197241,170 +199778,149 @@ export const ServiceLogger = $root.ServiceLogger = (() => { }; /** - * Decodes a ServiceInfoRecord message from the specified reader or buffer, length delimited. + * Decodes a ShareTeam message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ServiceLogger.ServiceInfoRecord + * @memberof Records.ShareTeam * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceInfoRecord} ServiceInfoRecord + * @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 */ - ServiceInfoRecord.decodeDelimited = function decodeDelimited(reader) { + ShareTeam.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceInfoRecord message. + * Verifies a ShareTeam message. * @function verify - * @memberof ServiceLogger.ServiceInfoRecord + * @memberof Records.ShareTeam * @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) { + ShareTeam.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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"; - 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"; + 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 ServiceInfoRecord message from a plain object. Also converts values to their respective internal types. + * Creates a ShareTeam message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ServiceLogger.ServiceInfoRecord + * @memberof Records.ShareTeam * @static * @param {Object.} object Plain object - * @returns {ServiceLogger.ServiceInfoRecord} ServiceInfoRecord + * @returns {Records.ShareTeam} ShareTeam */ - ServiceInfoRecord.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceInfoRecord) + ShareTeam.fromObject = function fromObject(object) { + if (object instanceof $root.Records.ShareTeam) return object; - let message = new $root.ServiceLogger.ServiceInfoRecord(); - if (object.serviceInfoId != null) - if ($util.Long) - (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; - else if (typeof object.serviceInfoId === "string") - message.serviceInfoId = parseInt(object.serviceInfoId, 10); - else if (typeof object.serviceInfoId === "number") - message.serviceInfoId = object.serviceInfoId; - else if (typeof object.serviceInfoId === "object") - message.serviceInfoId = new $util.LongBits(object.serviceInfoId.low >>> 0, object.serviceInfoId.high >>> 0).toNumber(true); - if (object.name != null) - message.name = String(object.name); - if (object.deleteAfter != null) - message.deleteAfter = object.deleteAfter >>> 0; - if (object.deleteAfterTimeUnits != null) - message.deleteAfterTimeUnits = String(object.deleteAfterTimeUnits); - if (object.isShortTermLogging != null) - message.isShortTermLogging = Boolean(object.isShortTermLogging); + let message = new $root.Records.ShareTeam(); + if (object.teamname != null) + message.teamname = String(object.teamname); + if (object.enterpriseId != null) + message.enterpriseId = object.enterpriseId | 0; + if (object.teamUid != null) + if (typeof object.teamUid === "string") + $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); + else if (object.teamUid.length >= 0) + message.teamUid = object.teamUid; return message; }; /** - * Creates a plain object from a ServiceInfoRecord message. Also converts values to other types if specified. + * Creates a plain object from a ShareTeam message. Also converts values to other types if specified. * @function toObject - * @memberof ServiceLogger.ServiceInfoRecord + * @memberof Records.ShareTeam * @static - * @param {ServiceLogger.ServiceInfoRecord} message ServiceInfoRecord + * @param {Records.ShareTeam} message ShareTeam * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceInfoRecord.toObject = function toObject(message, options) { + ShareTeam.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceInfoId = options.longs === String ? "0" : 0; - object.name = ""; - object.deleteAfter = 0; - object.deleteAfterTimeUnits = ""; - object.isShortTermLogging = false; + object.teamname = ""; + object.enterpriseId = 0; + if (options.bytes === String) + object.teamUid = ""; + else { + object.teamUid = []; + if (options.bytes !== Array) + object.teamUid = $util.newBuffer(object.teamUid); + } } - if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) - 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")) - object.name = message.name; - if (message.deleteAfter != null && message.hasOwnProperty("deleteAfter")) - object.deleteAfter = message.deleteAfter; - if (message.deleteAfterTimeUnits != null && message.hasOwnProperty("deleteAfterTimeUnits")) - object.deleteAfterTimeUnits = message.deleteAfterTimeUnits; - if (message.isShortTermLogging != null && message.hasOwnProperty("isShortTermLogging")) - object.isShortTermLogging = message.isShortTermLogging; + if (message.teamname != null && message.hasOwnProperty("teamname")) + object.teamname = message.teamname; + if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + object.enterpriseId = message.enterpriseId; + if (message.teamUid != null && message.hasOwnProperty("teamUid")) + object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; return object; }; /** - * Converts this ServiceInfoRecord to JSON. + * Converts this ShareTeam to JSON. * @function toJSON - * @memberof ServiceLogger.ServiceInfoRecord + * @memberof Records.ShareTeam * @instance * @returns {Object.} JSON object */ - ServiceInfoRecord.prototype.toJSON = function toJSON() { + ShareTeam.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ServiceInfoRecord + * Gets the default type url for ShareTeam * @function getTypeUrl - * @memberof ServiceLogger.ServiceInfoRecord + * @memberof Records.ShareTeam * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ServiceInfoRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShareTeam.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/ServiceLogger.ServiceInfoRecord"; + return typeUrlPrefix + "/Records.ShareTeam"; }; - return ServiceInfoRecord; + return ShareTeam; })(); - ServiceLogger.ServiceInfoResponse = (function() { + Records.ShareEnterprise = (function() { /** - * Properties of a ServiceInfoResponse. - * @memberof ServiceLogger - * @interface IServiceInfoResponse - * @property {Array.|null} [serviceInfoRecord] ServiceInfoResponse serviceInfoRecord + * Properties of a ShareEnterprise. + * @memberof Records + * @interface IShareEnterprise + * @property {string|null} [enterprisename] ShareEnterprise enterprisename + * @property {number|null} [enterpriseId] ShareEnterprise enterpriseId */ /** - * Constructs a new ServiceInfoResponse. - * @memberof ServiceLogger - * @classdesc Returns information about Services - * @implements IServiceInfoResponse + * Constructs a new ShareEnterprise. + * @memberof Records + * @classdesc Represents a ShareEnterprise. + * @implements IShareEnterprise * @constructor - * @param {ServiceLogger.IServiceInfoResponse=} [properties] Properties to set + * @param {Records.IShareEnterprise=} [properties] Properties to set */ - function ServiceInfoResponse(properties) { - this.serviceInfoRecord = []; + function ShareEnterprise(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -197412,78 +199928,89 @@ export const ServiceLogger = $root.ServiceLogger = (() => { } /** - * ServiceInfoResponse serviceInfoRecord. - * @member {Array.} serviceInfoRecord - * @memberof ServiceLogger.ServiceInfoResponse + * ShareEnterprise enterprisename. + * @member {string} enterprisename + * @memberof Records.ShareEnterprise * @instance */ - ServiceInfoResponse.prototype.serviceInfoRecord = $util.emptyArray; + ShareEnterprise.prototype.enterprisename = ""; /** - * Creates a new ServiceInfoResponse instance using the specified properties. + * ShareEnterprise enterpriseId. + * @member {number} enterpriseId + * @memberof Records.ShareEnterprise + * @instance + */ + ShareEnterprise.prototype.enterpriseId = 0; + + /** + * Creates a new ShareEnterprise instance using the specified properties. * @function create - * @memberof ServiceLogger.ServiceInfoResponse + * @memberof Records.ShareEnterprise * @static - * @param {ServiceLogger.IServiceInfoResponse=} [properties] Properties to set - * @returns {ServiceLogger.ServiceInfoResponse} ServiceInfoResponse instance + * @param {Records.IShareEnterprise=} [properties] Properties to set + * @returns {Records.ShareEnterprise} ShareEnterprise instance */ - ServiceInfoResponse.create = function create(properties) { - return new ServiceInfoResponse(properties); + ShareEnterprise.create = function create(properties) { + return new ShareEnterprise(properties); }; /** - * Encodes the specified ServiceInfoResponse message. Does not implicitly {@link ServiceLogger.ServiceInfoResponse.verify|verify} messages. + * Encodes the specified ShareEnterprise message. Does not implicitly {@link Records.ShareEnterprise.verify|verify} messages. * @function encode - * @memberof ServiceLogger.ServiceInfoResponse + * @memberof Records.ShareEnterprise * @static - * @param {ServiceLogger.IServiceInfoResponse} message ServiceInfoResponse message or plain object to encode + * @param {Records.IShareEnterprise} message ShareEnterprise message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceInfoResponse.encode = function encode(message, writer) { + ShareEnterprise.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.serviceInfoRecord != null && message.serviceInfoRecord.length) - for (let i = 0; i < message.serviceInfoRecord.length; ++i) - $root.ServiceLogger.ServiceInfoRecord.encode(message.serviceInfoRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.enterprisename != null && Object.hasOwnProperty.call(message, "enterprisename")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.enterprisename); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enterpriseId); return writer; }; /** - * Encodes the specified ServiceInfoResponse message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoResponse.verify|verify} messages. + * Encodes the specified ShareEnterprise message, length delimited. Does not implicitly {@link Records.ShareEnterprise.verify|verify} messages. * @function encodeDelimited - * @memberof ServiceLogger.ServiceInfoResponse + * @memberof Records.ShareEnterprise * @static - * @param {ServiceLogger.IServiceInfoResponse} message ServiceInfoResponse message or plain object to encode + * @param {Records.IShareEnterprise} message ShareEnterprise message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { + ShareEnterprise.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceInfoResponse message from the specified reader or buffer. + * Decodes a ShareEnterprise message from the specified reader or buffer. * @function decode - * @memberof ServiceLogger.ServiceInfoResponse + * @memberof Records.ShareEnterprise * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ServiceLogger.ServiceInfoResponse} ServiceInfoResponse + * @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 */ - ServiceInfoResponse.decode = function decode(reader, length) { + ShareEnterprise.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceInfoResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.ShareEnterprise(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.serviceInfoRecord && message.serviceInfoRecord.length)) - message.serviceInfoRecord = []; - message.serviceInfoRecord.push($root.ServiceLogger.ServiceInfoRecord.decode(reader, reader.uint32())); + message.enterprisename = reader.string(); + break; + } + case 2: { + message.enterpriseId = reader.int32(); break; } default: @@ -197495,140 +200022,148 @@ export const ServiceLogger = $root.ServiceLogger = (() => { }; /** - * Decodes a ServiceInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a ShareEnterprise message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ServiceLogger.ServiceInfoResponse + * @memberof Records.ShareEnterprise * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceInfoResponse} ServiceInfoResponse + * @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 */ - ServiceInfoResponse.decodeDelimited = function decodeDelimited(reader) { + ShareEnterprise.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceInfoResponse message. + * Verifies a ShareEnterprise message. * @function verify - * @memberof ServiceLogger.ServiceInfoResponse + * @memberof Records.ShareEnterprise * @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) { + ShareEnterprise.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "serviceInfoRecord." + error; - } - } + 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 ServiceInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ShareEnterprise message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ServiceLogger.ServiceInfoResponse + * @memberof Records.ShareEnterprise * @static * @param {Object.} object Plain object - * @returns {ServiceLogger.ServiceInfoResponse} ServiceInfoResponse + * @returns {Records.ShareEnterprise} ShareEnterprise */ - ServiceInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceInfoResponse) + ShareEnterprise.fromObject = function fromObject(object) { + if (object instanceof $root.Records.ShareEnterprise) return object; - let message = new $root.ServiceLogger.ServiceInfoResponse(); - if (object.serviceInfoRecord) { - if (!Array.isArray(object.serviceInfoRecord)) - throw TypeError(".ServiceLogger.ServiceInfoResponse.serviceInfoRecord: array expected"); - message.serviceInfoRecord = []; - for (let i = 0; i < object.serviceInfoRecord.length; ++i) { - if (typeof object.serviceInfoRecord[i] !== "object") - throw TypeError(".ServiceLogger.ServiceInfoResponse.serviceInfoRecord: object expected"); - message.serviceInfoRecord[i] = $root.ServiceLogger.ServiceInfoRecord.fromObject(object.serviceInfoRecord[i]); - } - } + let message = new $root.Records.ShareEnterprise(); + if (object.enterprisename != null) + message.enterprisename = String(object.enterprisename); + if (object.enterpriseId != null) + message.enterpriseId = object.enterpriseId | 0; return message; }; /** - * Creates a plain object from a ServiceInfoResponse message. Also converts values to other types if specified. + * Creates a plain object from a ShareEnterprise message. Also converts values to other types if specified. * @function toObject - * @memberof ServiceLogger.ServiceInfoResponse + * @memberof Records.ShareEnterprise * @static - * @param {ServiceLogger.ServiceInfoResponse} message ServiceInfoResponse + * @param {Records.ShareEnterprise} message ShareEnterprise * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceInfoResponse.toObject = function toObject(message, options) { + ShareEnterprise.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.serviceInfoRecord = []; - if (message.serviceInfoRecord && message.serviceInfoRecord.length) { - object.serviceInfoRecord = []; - for (let j = 0; j < message.serviceInfoRecord.length; ++j) - object.serviceInfoRecord[j] = $root.ServiceLogger.ServiceInfoRecord.toObject(message.serviceInfoRecord[j], options); + if (options.defaults) { + object.enterprisename = ""; + object.enterpriseId = 0; } + if (message.enterprisename != null && message.hasOwnProperty("enterprisename")) + object.enterprisename = message.enterprisename; + if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + object.enterpriseId = message.enterpriseId; return object; }; /** - * Converts this ServiceInfoResponse to JSON. + * Converts this ShareEnterprise to JSON. * @function toJSON - * @memberof ServiceLogger.ServiceInfoResponse + * @memberof Records.ShareEnterprise * @instance * @returns {Object.} JSON object */ - ServiceInfoResponse.prototype.toJSON = function toJSON() { + ShareEnterprise.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ServiceInfoResponse + * Gets the default type url for ShareEnterprise * @function getTypeUrl - * @memberof ServiceLogger.ServiceInfoResponse + * @memberof Records.ShareEnterprise * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ServiceInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShareEnterprise.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/ServiceLogger.ServiceInfoResponse"; + return typeUrlPrefix + "/Records.ShareEnterprise"; }; - return ServiceInfoResponse; + return ShareEnterprise; })(); - ServiceLogger.ServiceInfoUpdateRequest = (function() { + /** + * ShareStatus enum. + * @name Records.ShareStatus + * @enum {number} + * @property {number} ACTIVE=0 ACTIVE value + * @property {number} BLOCK=1 BLOCK value + * @property {number} INVITED=2 INVITED value + */ + Records.ShareStatus = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACTIVE"] = 0; + values[valuesById[1] = "BLOCK"] = 1; + values[valuesById[2] = "INVITED"] = 2; + return values; + })(); + + Records.RecordsOnwershipTransferRequest = (function() { /** - * Properties of a ServiceInfoUpdateRequest. - * @memberof ServiceLogger - * @interface IServiceInfoUpdateRequest - * @property {Array.|null} [serviceInfoRecord] ServiceInfoUpdateRequest serviceInfoRecord + * Properties of a RecordsOnwershipTransferRequest. + * @memberof Records + * @interface IRecordsOnwershipTransferRequest + * @property {Array.|null} [transferRecords] RecordsOnwershipTransferRequest transferRecords */ /** - * Constructs a new ServiceInfoUpdateRequest. - * @memberof ServiceLogger - * @classdesc Update one or more ServiceInfo records by their IDs - * @implements IServiceInfoUpdateRequest + * Constructs a new RecordsOnwershipTransferRequest. + * @memberof Records + * @classdesc Represents a RecordsOnwershipTransferRequest. + * @implements IRecordsOnwershipTransferRequest * @constructor - * @param {ServiceLogger.IServiceInfoUpdateRequest=} [properties] Properties to set + * @param {Records.IRecordsOnwershipTransferRequest=} [properties] Properties to set */ - function ServiceInfoUpdateRequest(properties) { - this.serviceInfoRecord = []; + function RecordsOnwershipTransferRequest(properties) { + this.transferRecords = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -197636,78 +200171,78 @@ export const ServiceLogger = $root.ServiceLogger = (() => { } /** - * ServiceInfoUpdateRequest serviceInfoRecord. - * @member {Array.} serviceInfoRecord - * @memberof ServiceLogger.ServiceInfoUpdateRequest + * RecordsOnwershipTransferRequest transferRecords. + * @member {Array.} transferRecords + * @memberof Records.RecordsOnwershipTransferRequest * @instance */ - ServiceInfoUpdateRequest.prototype.serviceInfoRecord = $util.emptyArray; + RecordsOnwershipTransferRequest.prototype.transferRecords = $util.emptyArray; /** - * Creates a new ServiceInfoUpdateRequest instance using the specified properties. + * Creates a new RecordsOnwershipTransferRequest instance using the specified properties. * @function create - * @memberof ServiceLogger.ServiceInfoUpdateRequest + * @memberof Records.RecordsOnwershipTransferRequest * @static - * @param {ServiceLogger.IServiceInfoUpdateRequest=} [properties] Properties to set - * @returns {ServiceLogger.ServiceInfoUpdateRequest} ServiceInfoUpdateRequest instance + * @param {Records.IRecordsOnwershipTransferRequest=} [properties] Properties to set + * @returns {Records.RecordsOnwershipTransferRequest} RecordsOnwershipTransferRequest instance */ - ServiceInfoUpdateRequest.create = function create(properties) { - return new ServiceInfoUpdateRequest(properties); + RecordsOnwershipTransferRequest.create = function create(properties) { + return new RecordsOnwershipTransferRequest(properties); }; /** - * Encodes the specified ServiceInfoUpdateRequest message. Does not implicitly {@link ServiceLogger.ServiceInfoUpdateRequest.verify|verify} messages. + * Encodes the specified RecordsOnwershipTransferRequest message. Does not implicitly {@link Records.RecordsOnwershipTransferRequest.verify|verify} messages. * @function encode - * @memberof ServiceLogger.ServiceInfoUpdateRequest + * @memberof Records.RecordsOnwershipTransferRequest * @static - * @param {ServiceLogger.IServiceInfoUpdateRequest} message ServiceInfoUpdateRequest message or plain object to encode + * @param {Records.IRecordsOnwershipTransferRequest} message RecordsOnwershipTransferRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceInfoUpdateRequest.encode = function encode(message, writer) { + RecordsOnwershipTransferRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.serviceInfoRecord != null && message.serviceInfoRecord.length) - for (let i = 0; i < message.serviceInfoRecord.length; ++i) - $root.ServiceLogger.ServiceInfoRecord.encode(message.serviceInfoRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.transferRecords != null && message.transferRecords.length) + for (let i = 0; i < message.transferRecords.length; ++i) + $root.Records.TransferRecord.encode(message.transferRecords[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ServiceInfoUpdateRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoUpdateRequest.verify|verify} messages. + * Encodes the specified RecordsOnwershipTransferRequest message, length delimited. Does not implicitly {@link Records.RecordsOnwershipTransferRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ServiceLogger.ServiceInfoUpdateRequest + * @memberof Records.RecordsOnwershipTransferRequest * @static - * @param {ServiceLogger.IServiceInfoUpdateRequest} message ServiceInfoUpdateRequest message or plain object to encode + * @param {Records.IRecordsOnwershipTransferRequest} message RecordsOnwershipTransferRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceInfoUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { + RecordsOnwershipTransferRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceInfoUpdateRequest message from the specified reader or buffer. + * Decodes a RecordsOnwershipTransferRequest message from the specified reader or buffer. * @function decode - * @memberof ServiceLogger.ServiceInfoUpdateRequest + * @memberof Records.RecordsOnwershipTransferRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ServiceLogger.ServiceInfoUpdateRequest} ServiceInfoUpdateRequest + * @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 */ - ServiceInfoUpdateRequest.decode = function decode(reader, length) { + RecordsOnwershipTransferRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceInfoUpdateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsOnwershipTransferRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.serviceInfoRecord && message.serviceInfoRecord.length)) - message.serviceInfoRecord = []; - message.serviceInfoRecord.push($root.ServiceLogger.ServiceInfoRecord.decode(reader, reader.uint32())); + if (!(message.transferRecords && message.transferRecords.length)) + message.transferRecords = []; + message.transferRecords.push($root.Records.TransferRecord.decode(reader, reader.uint32())); break; } default: @@ -197719,143 +200254,142 @@ export const ServiceLogger = $root.ServiceLogger = (() => { }; /** - * Decodes a ServiceInfoUpdateRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordsOnwershipTransferRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ServiceLogger.ServiceInfoUpdateRequest + * @memberof Records.RecordsOnwershipTransferRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceInfoUpdateRequest} ServiceInfoUpdateRequest + * @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 */ - ServiceInfoUpdateRequest.decodeDelimited = function decodeDelimited(reader) { + RecordsOnwershipTransferRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceInfoUpdateRequest message. + * Verifies a RecordsOnwershipTransferRequest message. * @function verify - * @memberof ServiceLogger.ServiceInfoUpdateRequest + * @memberof Records.RecordsOnwershipTransferRequest * @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) { + RecordsOnwershipTransferRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); + 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]); if (error) - return "serviceInfoRecord." + error; + return "transferRecords." + error; } } return null; }; /** - * Creates a ServiceInfoUpdateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsOnwershipTransferRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ServiceLogger.ServiceInfoUpdateRequest + * @memberof Records.RecordsOnwershipTransferRequest * @static * @param {Object.} object Plain object - * @returns {ServiceLogger.ServiceInfoUpdateRequest} ServiceInfoUpdateRequest + * @returns {Records.RecordsOnwershipTransferRequest} RecordsOnwershipTransferRequest */ - ServiceInfoUpdateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceInfoUpdateRequest) + RecordsOnwershipTransferRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordsOnwershipTransferRequest) return object; - let message = new $root.ServiceLogger.ServiceInfoUpdateRequest(); - if (object.serviceInfoRecord) { - if (!Array.isArray(object.serviceInfoRecord)) - throw TypeError(".ServiceLogger.ServiceInfoUpdateRequest.serviceInfoRecord: array expected"); - message.serviceInfoRecord = []; - for (let i = 0; i < object.serviceInfoRecord.length; ++i) { - if (typeof object.serviceInfoRecord[i] !== "object") - throw TypeError(".ServiceLogger.ServiceInfoUpdateRequest.serviceInfoRecord: object expected"); - message.serviceInfoRecord[i] = $root.ServiceLogger.ServiceInfoRecord.fromObject(object.serviceInfoRecord[i]); + let message = new $root.Records.RecordsOnwershipTransferRequest(); + if (object.transferRecords) { + if (!Array.isArray(object.transferRecords)) + throw TypeError(".Records.RecordsOnwershipTransferRequest.transferRecords: array expected"); + message.transferRecords = []; + for (let i = 0; i < object.transferRecords.length; ++i) { + if (typeof object.transferRecords[i] !== "object") + throw TypeError(".Records.RecordsOnwershipTransferRequest.transferRecords: object expected"); + message.transferRecords[i] = $root.Records.TransferRecord.fromObject(object.transferRecords[i]); } } return message; }; /** - * Creates a plain object from a ServiceInfoUpdateRequest message. Also converts values to other types if specified. + * Creates a plain object from a RecordsOnwershipTransferRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ServiceLogger.ServiceInfoUpdateRequest + * @memberof Records.RecordsOnwershipTransferRequest * @static - * @param {ServiceLogger.ServiceInfoUpdateRequest} message ServiceInfoUpdateRequest + * @param {Records.RecordsOnwershipTransferRequest} message RecordsOnwershipTransferRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceInfoUpdateRequest.toObject = function toObject(message, options) { + RecordsOnwershipTransferRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.serviceInfoRecord = []; - if (message.serviceInfoRecord && message.serviceInfoRecord.length) { - object.serviceInfoRecord = []; - for (let j = 0; j < message.serviceInfoRecord.length; ++j) - object.serviceInfoRecord[j] = $root.ServiceLogger.ServiceInfoRecord.toObject(message.serviceInfoRecord[j], options); + object.transferRecords = []; + if (message.transferRecords && message.transferRecords.length) { + object.transferRecords = []; + for (let j = 0; j < message.transferRecords.length; ++j) + object.transferRecords[j] = $root.Records.TransferRecord.toObject(message.transferRecords[j], options); } return object; }; /** - * Converts this ServiceInfoUpdateRequest to JSON. + * Converts this RecordsOnwershipTransferRequest to JSON. * @function toJSON - * @memberof ServiceLogger.ServiceInfoUpdateRequest + * @memberof Records.RecordsOnwershipTransferRequest * @instance * @returns {Object.} JSON object */ - ServiceInfoUpdateRequest.prototype.toJSON = function toJSON() { + RecordsOnwershipTransferRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ServiceInfoUpdateRequest + * Gets the default type url for RecordsOnwershipTransferRequest * @function getTypeUrl - * @memberof ServiceLogger.ServiceInfoUpdateRequest + * @memberof Records.RecordsOnwershipTransferRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ServiceInfoUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordsOnwershipTransferRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/ServiceLogger.ServiceInfoUpdateRequest"; + return typeUrlPrefix + "/Records.RecordsOnwershipTransferRequest"; }; - return ServiceInfoUpdateRequest; + return RecordsOnwershipTransferRequest; })(); - ServiceLogger.ServiceRuleSpecifier = (function() { + Records.TransferRecord = (function() { /** - * Properties of a ServiceRuleSpecifier. - * @memberof ServiceLogger - * @interface IServiceRuleSpecifier - * @property {boolean|null} [all] ServiceRuleSpecifier all - * @property {number|Long|null} [serviceRuleId] ServiceRuleSpecifier serviceRuleId - * @property {number|Long|null} [serviceInfoId] ServiceRuleSpecifier serviceInfoId - * @property {Array.|null} [resourceIdRange] ServiceRuleSpecifier resourceIdRange + * Properties of a TransferRecord. + * @memberof Records + * @interface ITransferRecord + * @property {string|null} [username] TransferRecord username + * @property {Uint8Array|null} [recordUid] TransferRecord recordUid + * @property {Uint8Array|null} [recordKey] TransferRecord recordKey + * @property {boolean|null} [useEccKey] TransferRecord useEccKey */ /** - * Constructs a new ServiceRuleSpecifier. - * @memberof ServiceLogger - * @classdesc Represents a ServiceRuleSpecifier. - * @implements IServiceRuleSpecifier + * Constructs a new TransferRecord. + * @memberof Records + * @classdesc Represents a TransferRecord. + * @implements ITransferRecord * @constructor - * @param {ServiceLogger.IServiceRuleSpecifier=} [properties] Properties to set + * @param {Records.ITransferRecord=} [properties] Properties to set */ - function ServiceRuleSpecifier(properties) { - this.resourceIdRange = []; + function TransferRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -197863,120 +200397,117 @@ export const ServiceLogger = $root.ServiceLogger = (() => { } /** - * ServiceRuleSpecifier all. - * @member {boolean} all - * @memberof ServiceLogger.ServiceRuleSpecifier + * TransferRecord username. + * @member {string} username + * @memberof Records.TransferRecord * @instance */ - ServiceRuleSpecifier.prototype.all = false; + TransferRecord.prototype.username = ""; /** - * ServiceRuleSpecifier serviceRuleId. - * @member {number|Long} serviceRuleId - * @memberof ServiceLogger.ServiceRuleSpecifier + * TransferRecord recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.TransferRecord * @instance */ - ServiceRuleSpecifier.prototype.serviceRuleId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + TransferRecord.prototype.recordUid = $util.newBuffer([]); /** - * ServiceRuleSpecifier serviceInfoId. - * @member {number|Long} serviceInfoId - * @memberof ServiceLogger.ServiceRuleSpecifier + * TransferRecord recordKey. + * @member {Uint8Array} recordKey + * @memberof Records.TransferRecord * @instance */ - ServiceRuleSpecifier.prototype.serviceInfoId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + TransferRecord.prototype.recordKey = $util.newBuffer([]); /** - * ServiceRuleSpecifier resourceIdRange. - * @member {Array.} resourceIdRange - * @memberof ServiceLogger.ServiceRuleSpecifier + * TransferRecord useEccKey. + * @member {boolean} useEccKey + * @memberof Records.TransferRecord * @instance */ - ServiceRuleSpecifier.prototype.resourceIdRange = $util.emptyArray; + TransferRecord.prototype.useEccKey = false; /** - * Creates a new ServiceRuleSpecifier instance using the specified properties. + * Creates a new TransferRecord instance using the specified properties. * @function create - * @memberof ServiceLogger.ServiceRuleSpecifier + * @memberof Records.TransferRecord * @static - * @param {ServiceLogger.IServiceRuleSpecifier=} [properties] Properties to set - * @returns {ServiceLogger.ServiceRuleSpecifier} ServiceRuleSpecifier instance + * @param {Records.ITransferRecord=} [properties] Properties to set + * @returns {Records.TransferRecord} TransferRecord instance */ - ServiceRuleSpecifier.create = function create(properties) { - return new ServiceRuleSpecifier(properties); + TransferRecord.create = function create(properties) { + return new TransferRecord(properties); }; /** - * Encodes the specified ServiceRuleSpecifier message. Does not implicitly {@link ServiceLogger.ServiceRuleSpecifier.verify|verify} messages. + * Encodes the specified TransferRecord message. Does not implicitly {@link Records.TransferRecord.verify|verify} messages. * @function encode - * @memberof ServiceLogger.ServiceRuleSpecifier + * @memberof Records.TransferRecord * @static - * @param {ServiceLogger.IServiceRuleSpecifier} message ServiceRuleSpecifier message or plain object to encode + * @param {Records.ITransferRecord} message TransferRecord message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceRuleSpecifier.encode = function encode(message, writer) { + TransferRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.all != null && Object.hasOwnProperty.call(message, "all")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.all); - if (message.serviceRuleId != null && Object.hasOwnProperty.call(message, "serviceRuleId")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.serviceRuleId); - if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "serviceInfoId")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.serviceInfoId); - if (message.resourceIdRange != null && message.resourceIdRange.length) - for (let i = 0; i < message.resourceIdRange.length; ++i) - $root.ServiceLogger.IdRange.encode(message.resourceIdRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordKey); + if (message.useEccKey != null && Object.hasOwnProperty.call(message, "useEccKey")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.useEccKey); return writer; }; /** - * Encodes the specified ServiceRuleSpecifier message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleSpecifier.verify|verify} messages. + * Encodes the specified TransferRecord message, length delimited. Does not implicitly {@link Records.TransferRecord.verify|verify} messages. * @function encodeDelimited - * @memberof ServiceLogger.ServiceRuleSpecifier + * @memberof Records.TransferRecord * @static - * @param {ServiceLogger.IServiceRuleSpecifier} message ServiceRuleSpecifier message or plain object to encode + * @param {Records.ITransferRecord} message TransferRecord message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceRuleSpecifier.encodeDelimited = function encodeDelimited(message, writer) { + TransferRecord.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceRuleSpecifier message from the specified reader or buffer. + * Decodes a TransferRecord message from the specified reader or buffer. * @function decode - * @memberof ServiceLogger.ServiceRuleSpecifier + * @memberof Records.TransferRecord * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ServiceLogger.ServiceRuleSpecifier} ServiceRuleSpecifier + * @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 */ - ServiceRuleSpecifier.decode = function decode(reader, length) { + TransferRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceRuleSpecifier(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TransferRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.all = reader.bool(); + message.username = reader.string(); break; } case 2: { - message.serviceRuleId = reader.uint64(); + message.recordUid = reader.bytes(); break; } case 3: { - message.serviceInfoId = reader.uint64(); + message.recordKey = reader.bytes(); break; } case 4: { - if (!(message.resourceIdRange && message.resourceIdRange.length)) - message.resourceIdRange = []; - message.resourceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32())); + message.useEccKey = reader.bool(); break; } default: @@ -197988,194 +200519,166 @@ export const ServiceLogger = $root.ServiceLogger = (() => { }; /** - * Decodes a ServiceRuleSpecifier message from the specified reader or buffer, length delimited. + * Decodes a TransferRecord message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ServiceLogger.ServiceRuleSpecifier + * @memberof Records.TransferRecord * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceRuleSpecifier} ServiceRuleSpecifier + * @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 */ - ServiceRuleSpecifier.decodeDelimited = function decodeDelimited(reader) { + TransferRecord.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceRuleSpecifier message. + * Verifies a TransferRecord message. * @function verify - * @memberof ServiceLogger.ServiceRuleSpecifier + * @memberof Records.TransferRecord * @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) { + TransferRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "resourceIdRange." + error; - } - } + 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 ServiceRuleSpecifier message from a plain object. Also converts values to their respective internal types. + * Creates a TransferRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ServiceLogger.ServiceRuleSpecifier + * @memberof Records.TransferRecord * @static * @param {Object.} object Plain object - * @returns {ServiceLogger.ServiceRuleSpecifier} ServiceRuleSpecifier + * @returns {Records.TransferRecord} TransferRecord */ - ServiceRuleSpecifier.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceRuleSpecifier) + TransferRecord.fromObject = function fromObject(object) { + if (object instanceof $root.Records.TransferRecord) return object; - let message = new $root.ServiceLogger.ServiceRuleSpecifier(); - if (object.all != null) - message.all = Boolean(object.all); - if (object.serviceRuleId != null) - if ($util.Long) - (message.serviceRuleId = $util.Long.fromValue(object.serviceRuleId)).unsigned = true; - else if (typeof object.serviceRuleId === "string") - message.serviceRuleId = parseInt(object.serviceRuleId, 10); - else if (typeof object.serviceRuleId === "number") - message.serviceRuleId = object.serviceRuleId; - else if (typeof object.serviceRuleId === "object") - message.serviceRuleId = new $util.LongBits(object.serviceRuleId.low >>> 0, object.serviceRuleId.high >>> 0).toNumber(true); - if (object.serviceInfoId != null) - if ($util.Long) - (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; - else if (typeof object.serviceInfoId === "string") - message.serviceInfoId = parseInt(object.serviceInfoId, 10); - else if (typeof object.serviceInfoId === "number") - message.serviceInfoId = object.serviceInfoId; - else if (typeof object.serviceInfoId === "object") - message.serviceInfoId = new $util.LongBits(object.serviceInfoId.low >>> 0, object.serviceInfoId.high >>> 0).toNumber(true); - if (object.resourceIdRange) { - if (!Array.isArray(object.resourceIdRange)) - throw TypeError(".ServiceLogger.ServiceRuleSpecifier.resourceIdRange: array expected"); - message.resourceIdRange = []; - for (let i = 0; i < object.resourceIdRange.length; ++i) { - if (typeof object.resourceIdRange[i] !== "object") - throw TypeError(".ServiceLogger.ServiceRuleSpecifier.resourceIdRange: object expected"); - message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i]); - } - } + let message = new $root.Records.TransferRecord(); + if (object.username != null) + message.username = String(object.username); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.recordKey != null) + if (typeof object.recordKey === "string") + $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); + else if (object.recordKey.length >= 0) + message.recordKey = object.recordKey; + if (object.useEccKey != null) + message.useEccKey = Boolean(object.useEccKey); return message; }; /** - * Creates a plain object from a ServiceRuleSpecifier message. Also converts values to other types if specified. + * Creates a plain object from a TransferRecord message. Also converts values to other types if specified. * @function toObject - * @memberof ServiceLogger.ServiceRuleSpecifier + * @memberof Records.TransferRecord * @static - * @param {ServiceLogger.ServiceRuleSpecifier} message ServiceRuleSpecifier + * @param {Records.TransferRecord} message TransferRecord * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceRuleSpecifier.toObject = function toObject(message, options) { + TransferRecord.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.resourceIdRange = []; if (options.defaults) { - object.all = false; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.serviceRuleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceRuleId = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceInfoId = options.longs === String ? "0" : 0; - } - if (message.all != null && message.hasOwnProperty("all")) - object.all = message.all; - if (message.serviceRuleId != null && message.hasOwnProperty("serviceRuleId")) - if (typeof message.serviceRuleId === "number") - object.serviceRuleId = options.longs === String ? String(message.serviceRuleId) : message.serviceRuleId; - else - object.serviceRuleId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceRuleId) : options.longs === Number ? new $util.LongBits(message.serviceRuleId.low >>> 0, message.serviceRuleId.high >>> 0).toNumber(true) : message.serviceRuleId; - if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) - if (typeof message.serviceInfoId === "number") - object.serviceInfoId = options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; - else - object.serviceInfoId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceInfoId) : options.longs === Number ? new $util.LongBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0).toNumber(true) : message.serviceInfoId; - if (message.resourceIdRange && message.resourceIdRange.length) { - object.resourceIdRange = []; - for (let j = 0; j < message.resourceIdRange.length; ++j) - object.resourceIdRange[j] = $root.ServiceLogger.IdRange.toObject(message.resourceIdRange[j], options); + object.username = ""; + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if (options.bytes === String) + object.recordKey = ""; + else { + object.recordKey = []; + if (options.bytes !== Array) + object.recordKey = $util.newBuffer(object.recordKey); + } + object.useEccKey = false; } + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.recordKey != null && message.hasOwnProperty("recordKey")) + object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; + if (message.useEccKey != null && message.hasOwnProperty("useEccKey")) + object.useEccKey = message.useEccKey; return object; }; /** - * Converts this ServiceRuleSpecifier to JSON. + * Converts this TransferRecord to JSON. * @function toJSON - * @memberof ServiceLogger.ServiceRuleSpecifier + * @memberof Records.TransferRecord * @instance * @returns {Object.} JSON object */ - ServiceRuleSpecifier.prototype.toJSON = function toJSON() { + TransferRecord.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ServiceRuleSpecifier + * Gets the default type url for TransferRecord * @function getTypeUrl - * @memberof ServiceLogger.ServiceRuleSpecifier + * @memberof Records.TransferRecord * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ServiceRuleSpecifier.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TransferRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/ServiceLogger.ServiceRuleSpecifier"; + return typeUrlPrefix + "/Records.TransferRecord"; }; - return ServiceRuleSpecifier; + return TransferRecord; })(); - ServiceLogger.ServiceRuleRequest = (function() { + Records.RecordsOnwershipTransferResponse = (function() { /** - * Properties of a ServiceRuleRequest. - * @memberof ServiceLogger - * @interface IServiceRuleRequest - * @property {Array.|null} [serviceRuleSpecifier] ServiceRuleRequest serviceRuleSpecifier + * Properties of a RecordsOnwershipTransferResponse. + * @memberof Records + * @interface IRecordsOnwershipTransferResponse + * @property {Array.|null} [transferRecordStatus] RecordsOnwershipTransferResponse transferRecordStatus */ /** - * Constructs a new ServiceRuleRequest. - * @memberof ServiceLogger - * @classdesc Represents a ServiceRuleRequest. - * @implements IServiceRuleRequest + * Constructs a new RecordsOnwershipTransferResponse. + * @memberof Records + * @classdesc Represents a RecordsOnwershipTransferResponse. + * @implements IRecordsOnwershipTransferResponse * @constructor - * @param {ServiceLogger.IServiceRuleRequest=} [properties] Properties to set + * @param {Records.IRecordsOnwershipTransferResponse=} [properties] Properties to set */ - function ServiceRuleRequest(properties) { - this.serviceRuleSpecifier = []; + function RecordsOnwershipTransferResponse(properties) { + this.transferRecordStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -198183,78 +200686,78 @@ export const ServiceLogger = $root.ServiceLogger = (() => { } /** - * ServiceRuleRequest serviceRuleSpecifier. - * @member {Array.} serviceRuleSpecifier - * @memberof ServiceLogger.ServiceRuleRequest + * RecordsOnwershipTransferResponse transferRecordStatus. + * @member {Array.} transferRecordStatus + * @memberof Records.RecordsOnwershipTransferResponse * @instance */ - ServiceRuleRequest.prototype.serviceRuleSpecifier = $util.emptyArray; + RecordsOnwershipTransferResponse.prototype.transferRecordStatus = $util.emptyArray; /** - * Creates a new ServiceRuleRequest instance using the specified properties. + * Creates a new RecordsOnwershipTransferResponse instance using the specified properties. * @function create - * @memberof ServiceLogger.ServiceRuleRequest + * @memberof Records.RecordsOnwershipTransferResponse * @static - * @param {ServiceLogger.IServiceRuleRequest=} [properties] Properties to set - * @returns {ServiceLogger.ServiceRuleRequest} ServiceRuleRequest instance + * @param {Records.IRecordsOnwershipTransferResponse=} [properties] Properties to set + * @returns {Records.RecordsOnwershipTransferResponse} RecordsOnwershipTransferResponse instance */ - ServiceRuleRequest.create = function create(properties) { - return new ServiceRuleRequest(properties); + RecordsOnwershipTransferResponse.create = function create(properties) { + return new RecordsOnwershipTransferResponse(properties); }; /** - * Encodes the specified ServiceRuleRequest message. Does not implicitly {@link ServiceLogger.ServiceRuleRequest.verify|verify} messages. + * Encodes the specified RecordsOnwershipTransferResponse message. Does not implicitly {@link Records.RecordsOnwershipTransferResponse.verify|verify} messages. * @function encode - * @memberof ServiceLogger.ServiceRuleRequest + * @memberof Records.RecordsOnwershipTransferResponse * @static - * @param {ServiceLogger.IServiceRuleRequest} message ServiceRuleRequest message or plain object to encode + * @param {Records.IRecordsOnwershipTransferResponse} message RecordsOnwershipTransferResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceRuleRequest.encode = function encode(message, writer) { + RecordsOnwershipTransferResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.serviceRuleSpecifier != null && message.serviceRuleSpecifier.length) - for (let i = 0; i < message.serviceRuleSpecifier.length; ++i) - $root.ServiceLogger.ServiceRuleSpecifier.encode(message.serviceRuleSpecifier[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.transferRecordStatus != null && message.transferRecordStatus.length) + for (let i = 0; i < message.transferRecordStatus.length; ++i) + $root.Records.TransferRecordStatus.encode(message.transferRecordStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ServiceRuleRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleRequest.verify|verify} messages. + * Encodes the specified RecordsOnwershipTransferResponse message, length delimited. Does not implicitly {@link Records.RecordsOnwershipTransferResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ServiceLogger.ServiceRuleRequest + * @memberof Records.RecordsOnwershipTransferResponse * @static - * @param {ServiceLogger.IServiceRuleRequest} message ServiceRuleRequest message or plain object to encode + * @param {Records.IRecordsOnwershipTransferResponse} message RecordsOnwershipTransferResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceRuleRequest.encodeDelimited = function encodeDelimited(message, writer) { + RecordsOnwershipTransferResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceRuleRequest message from the specified reader or buffer. + * Decodes a RecordsOnwershipTransferResponse message from the specified reader or buffer. * @function decode - * @memberof ServiceLogger.ServiceRuleRequest + * @memberof Records.RecordsOnwershipTransferResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ServiceLogger.ServiceRuleRequest} ServiceRuleRequest + * @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 */ - ServiceRuleRequest.decode = function decode(reader, length) { + RecordsOnwershipTransferResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceRuleRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsOnwershipTransferResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.serviceRuleSpecifier && message.serviceRuleSpecifier.length)) - message.serviceRuleSpecifier = []; - message.serviceRuleSpecifier.push($root.ServiceLogger.ServiceRuleSpecifier.decode(reader, reader.uint32())); + if (!(message.transferRecordStatus && message.transferRecordStatus.length)) + message.transferRecordStatus = []; + message.transferRecordStatus.push($root.Records.TransferRecordStatus.decode(reader, reader.uint32())); break; } default: @@ -198266,146 +200769,142 @@ export const ServiceLogger = $root.ServiceLogger = (() => { }; /** - * Decodes a ServiceRuleRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordsOnwershipTransferResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ServiceLogger.ServiceRuleRequest + * @memberof Records.RecordsOnwershipTransferResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceRuleRequest} ServiceRuleRequest + * @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 */ - ServiceRuleRequest.decodeDelimited = function decodeDelimited(reader) { + RecordsOnwershipTransferResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceRuleRequest message. + * Verifies a RecordsOnwershipTransferResponse message. * @function verify - * @memberof ServiceLogger.ServiceRuleRequest + * @memberof Records.RecordsOnwershipTransferResponse * @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) { + RecordsOnwershipTransferResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); + 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]); if (error) - return "serviceRuleSpecifier." + error; + return "transferRecordStatus." + error; } } return null; }; /** - * Creates a ServiceRuleRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsOnwershipTransferResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ServiceLogger.ServiceRuleRequest + * @memberof Records.RecordsOnwershipTransferResponse * @static * @param {Object.} object Plain object - * @returns {ServiceLogger.ServiceRuleRequest} ServiceRuleRequest + * @returns {Records.RecordsOnwershipTransferResponse} RecordsOnwershipTransferResponse */ - ServiceRuleRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceRuleRequest) + RecordsOnwershipTransferResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordsOnwershipTransferResponse) return object; - let message = new $root.ServiceLogger.ServiceRuleRequest(); - if (object.serviceRuleSpecifier) { - if (!Array.isArray(object.serviceRuleSpecifier)) - throw TypeError(".ServiceLogger.ServiceRuleRequest.serviceRuleSpecifier: array expected"); - message.serviceRuleSpecifier = []; - for (let i = 0; i < object.serviceRuleSpecifier.length; ++i) { - if (typeof object.serviceRuleSpecifier[i] !== "object") - throw TypeError(".ServiceLogger.ServiceRuleRequest.serviceRuleSpecifier: object expected"); - message.serviceRuleSpecifier[i] = $root.ServiceLogger.ServiceRuleSpecifier.fromObject(object.serviceRuleSpecifier[i]); + let message = new $root.Records.RecordsOnwershipTransferResponse(); + if (object.transferRecordStatus) { + if (!Array.isArray(object.transferRecordStatus)) + throw TypeError(".Records.RecordsOnwershipTransferResponse.transferRecordStatus: array expected"); + message.transferRecordStatus = []; + for (let i = 0; i < object.transferRecordStatus.length; ++i) { + if (typeof object.transferRecordStatus[i] !== "object") + throw TypeError(".Records.RecordsOnwershipTransferResponse.transferRecordStatus: object expected"); + message.transferRecordStatus[i] = $root.Records.TransferRecordStatus.fromObject(object.transferRecordStatus[i]); } } return message; }; /** - * Creates a plain object from a ServiceRuleRequest message. Also converts values to other types if specified. + * Creates a plain object from a RecordsOnwershipTransferResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ServiceLogger.ServiceRuleRequest + * @memberof Records.RecordsOnwershipTransferResponse * @static - * @param {ServiceLogger.ServiceRuleRequest} message ServiceRuleRequest + * @param {Records.RecordsOnwershipTransferResponse} message RecordsOnwershipTransferResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceRuleRequest.toObject = function toObject(message, options) { + RecordsOnwershipTransferResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.serviceRuleSpecifier = []; - if (message.serviceRuleSpecifier && message.serviceRuleSpecifier.length) { - object.serviceRuleSpecifier = []; - for (let j = 0; j < message.serviceRuleSpecifier.length; ++j) - object.serviceRuleSpecifier[j] = $root.ServiceLogger.ServiceRuleSpecifier.toObject(message.serviceRuleSpecifier[j], options); + object.transferRecordStatus = []; + if (message.transferRecordStatus && message.transferRecordStatus.length) { + object.transferRecordStatus = []; + for (let j = 0; j < message.transferRecordStatus.length; ++j) + object.transferRecordStatus[j] = $root.Records.TransferRecordStatus.toObject(message.transferRecordStatus[j], options); } return object; }; /** - * Converts this ServiceRuleRequest to JSON. + * Converts this RecordsOnwershipTransferResponse to JSON. * @function toJSON - * @memberof ServiceLogger.ServiceRuleRequest + * @memberof Records.RecordsOnwershipTransferResponse * @instance * @returns {Object.} JSON object */ - ServiceRuleRequest.prototype.toJSON = function toJSON() { + RecordsOnwershipTransferResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ServiceRuleRequest + * Gets the default type url for RecordsOnwershipTransferResponse * @function getTypeUrl - * @memberof ServiceLogger.ServiceRuleRequest + * @memberof Records.RecordsOnwershipTransferResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ServiceRuleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordsOnwershipTransferResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/ServiceLogger.ServiceRuleRequest"; + return typeUrlPrefix + "/Records.RecordsOnwershipTransferResponse"; }; - return ServiceRuleRequest; + return RecordsOnwershipTransferResponse; })(); - ServiceLogger.ServiceRuleRecord = (function() { + Records.TransferRecordStatus = (function() { /** - * Properties of a ServiceRuleRecord. - * @memberof ServiceLogger - * @interface IServiceRuleRecord - * @property {number|Long|null} [serviceRuleId] ServiceRuleRecord serviceRuleId - * @property {number|Long|null} [serviceInfoId] ServiceRuleRecord serviceInfoId - * @property {number|Long|null} [resourceId] ServiceRuleRecord resourceId - * @property {boolean|null} [isLoggingEnabled] ServiceRuleRecord isLoggingEnabled - * @property {string|null} [logLevel] ServiceRuleRecord logLevel - * @property {string|null} [ruleStart] ServiceRuleRecord ruleStart - * @property {string|null} [ruleEnd] ServiceRuleRecord ruleEnd - * @property {string|null} [dateModified] ServiceRuleRecord dateModified + * Properties of a TransferRecordStatus. + * @memberof Records + * @interface ITransferRecordStatus + * @property {string|null} [username] TransferRecordStatus username + * @property {Uint8Array|null} [recordUid] TransferRecordStatus recordUid + * @property {string|null} [status] TransferRecordStatus status + * @property {string|null} [message] TransferRecordStatus message */ /** - * Constructs a new ServiceRuleRecord. - * @memberof ServiceLogger - * @classdesc Represents a ServiceRuleRecord. - * @implements IServiceRuleRecord + * Constructs a new TransferRecordStatus. + * @memberof Records + * @classdesc Represents a TransferRecordStatus. + * @implements ITransferRecordStatus * @constructor - * @param {ServiceLogger.IServiceRuleRecord=} [properties] Properties to set + * @param {Records.ITransferRecordStatus=} [properties] Properties to set */ - function ServiceRuleRecord(properties) { + function TransferRecordStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -198413,173 +200912,117 @@ export const ServiceLogger = $root.ServiceLogger = (() => { } /** - * ServiceRuleRecord serviceRuleId. - * @member {number|Long} serviceRuleId - * @memberof ServiceLogger.ServiceRuleRecord - * @instance - */ - ServiceRuleRecord.prototype.serviceRuleId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * ServiceRuleRecord serviceInfoId. - * @member {number|Long} serviceInfoId - * @memberof ServiceLogger.ServiceRuleRecord - * @instance - */ - ServiceRuleRecord.prototype.serviceInfoId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * ServiceRuleRecord resourceId. - * @member {number|Long} resourceId - * @memberof ServiceLogger.ServiceRuleRecord - * @instance - */ - ServiceRuleRecord.prototype.resourceId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * ServiceRuleRecord isLoggingEnabled. - * @member {boolean} isLoggingEnabled - * @memberof ServiceLogger.ServiceRuleRecord - * @instance - */ - ServiceRuleRecord.prototype.isLoggingEnabled = false; - - /** - * ServiceRuleRecord logLevel. - * @member {string} logLevel - * @memberof ServiceLogger.ServiceRuleRecord + * TransferRecordStatus username. + * @member {string} username + * @memberof Records.TransferRecordStatus * @instance */ - ServiceRuleRecord.prototype.logLevel = ""; + TransferRecordStatus.prototype.username = ""; /** - * ServiceRuleRecord ruleStart. - * @member {string} ruleStart - * @memberof ServiceLogger.ServiceRuleRecord + * TransferRecordStatus recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.TransferRecordStatus * @instance */ - ServiceRuleRecord.prototype.ruleStart = ""; + TransferRecordStatus.prototype.recordUid = $util.newBuffer([]); /** - * ServiceRuleRecord ruleEnd. - * @member {string} ruleEnd - * @memberof ServiceLogger.ServiceRuleRecord + * TransferRecordStatus status. + * @member {string} status + * @memberof Records.TransferRecordStatus * @instance */ - ServiceRuleRecord.prototype.ruleEnd = ""; + TransferRecordStatus.prototype.status = ""; /** - * ServiceRuleRecord dateModified. - * @member {string} dateModified - * @memberof ServiceLogger.ServiceRuleRecord + * TransferRecordStatus message. + * @member {string} message + * @memberof Records.TransferRecordStatus * @instance */ - ServiceRuleRecord.prototype.dateModified = ""; + TransferRecordStatus.prototype.message = ""; /** - * Creates a new ServiceRuleRecord instance using the specified properties. + * Creates a new TransferRecordStatus instance using the specified properties. * @function create - * @memberof ServiceLogger.ServiceRuleRecord + * @memberof Records.TransferRecordStatus * @static - * @param {ServiceLogger.IServiceRuleRecord=} [properties] Properties to set - * @returns {ServiceLogger.ServiceRuleRecord} ServiceRuleRecord instance + * @param {Records.ITransferRecordStatus=} [properties] Properties to set + * @returns {Records.TransferRecordStatus} TransferRecordStatus instance */ - ServiceRuleRecord.create = function create(properties) { - return new ServiceRuleRecord(properties); + TransferRecordStatus.create = function create(properties) { + return new TransferRecordStatus(properties); }; /** - * Encodes the specified ServiceRuleRecord message. Does not implicitly {@link ServiceLogger.ServiceRuleRecord.verify|verify} messages. + * Encodes the specified TransferRecordStatus message. Does not implicitly {@link Records.TransferRecordStatus.verify|verify} messages. * @function encode - * @memberof ServiceLogger.ServiceRuleRecord + * @memberof Records.TransferRecordStatus * @static - * @param {ServiceLogger.IServiceRuleRecord} message ServiceRuleRecord message or plain object to encode + * @param {Records.ITransferRecordStatus} message TransferRecordStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceRuleRecord.encode = function encode(message, writer) { + TransferRecordStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.serviceRuleId != null && Object.hasOwnProperty.call(message, "serviceRuleId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.serviceRuleId); - if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "serviceInfoId")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.serviceInfoId); - if (message.resourceId != null && Object.hasOwnProperty.call(message, "resourceId")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.resourceId); - if (message.isLoggingEnabled != null && Object.hasOwnProperty.call(message, "isLoggingEnabled")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isLoggingEnabled); - if (message.logLevel != null && Object.hasOwnProperty.call(message, "logLevel")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.logLevel); - if (message.ruleStart != null && Object.hasOwnProperty.call(message, "ruleStart")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.ruleStart); - if (message.ruleEnd != null && Object.hasOwnProperty.call(message, "ruleEnd")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.ruleEnd); - if (message.dateModified != null && Object.hasOwnProperty.call(message, "dateModified")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.dateModified); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.status); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.message); return writer; }; /** - * Encodes the specified ServiceRuleRecord message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleRecord.verify|verify} messages. + * Encodes the specified TransferRecordStatus message, length delimited. Does not implicitly {@link Records.TransferRecordStatus.verify|verify} messages. * @function encodeDelimited - * @memberof ServiceLogger.ServiceRuleRecord + * @memberof Records.TransferRecordStatus * @static - * @param {ServiceLogger.IServiceRuleRecord} message ServiceRuleRecord message or plain object to encode + * @param {Records.ITransferRecordStatus} message TransferRecordStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceRuleRecord.encodeDelimited = function encodeDelimited(message, writer) { + TransferRecordStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceRuleRecord message from the specified reader or buffer. + * Decodes a TransferRecordStatus message from the specified reader or buffer. * @function decode - * @memberof ServiceLogger.ServiceRuleRecord + * @memberof Records.TransferRecordStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ServiceLogger.ServiceRuleRecord} ServiceRuleRecord + * @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 */ - ServiceRuleRecord.decode = function decode(reader, length) { + TransferRecordStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceRuleRecord(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TransferRecordStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.serviceRuleId = reader.uint64(); + message.username = reader.string(); break; } case 2: { - message.serviceInfoId = reader.uint64(); + message.recordUid = reader.bytes(); break; } case 3: { - message.resourceId = reader.uint64(); + message.status = reader.string(); break; } case 4: { - message.isLoggingEnabled = reader.bool(); - break; - } - case 5: { - message.logLevel = reader.string(); - break; - } - case 6: { - message.ruleStart = reader.string(); - break; - } - case 7: { - message.ruleEnd = reader.string(); - break; - } - case 8: { - message.dateModified = reader.string(); + message.message = reader.string(); break; } default: @@ -198591,222 +201034,159 @@ export const ServiceLogger = $root.ServiceLogger = (() => { }; /** - * Decodes a ServiceRuleRecord message from the specified reader or buffer, length delimited. + * Decodes a TransferRecordStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ServiceLogger.ServiceRuleRecord + * @memberof Records.TransferRecordStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceRuleRecord} ServiceRuleRecord + * @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 */ - ServiceRuleRecord.decodeDelimited = function decodeDelimited(reader) { + TransferRecordStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceRuleRecord message. + * Verifies a TransferRecordStatus message. * @function verify - * @memberof ServiceLogger.ServiceRuleRecord + * @memberof Records.TransferRecordStatus * @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) { + TransferRecordStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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"; + 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 ServiceRuleRecord message from a plain object. Also converts values to their respective internal types. + * Creates a TransferRecordStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ServiceLogger.ServiceRuleRecord + * @memberof Records.TransferRecordStatus * @static * @param {Object.} object Plain object - * @returns {ServiceLogger.ServiceRuleRecord} ServiceRuleRecord + * @returns {Records.TransferRecordStatus} TransferRecordStatus */ - ServiceRuleRecord.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceRuleRecord) + TransferRecordStatus.fromObject = function fromObject(object) { + if (object instanceof $root.Records.TransferRecordStatus) return object; - let message = new $root.ServiceLogger.ServiceRuleRecord(); - if (object.serviceRuleId != null) - if ($util.Long) - (message.serviceRuleId = $util.Long.fromValue(object.serviceRuleId)).unsigned = true; - else if (typeof object.serviceRuleId === "string") - message.serviceRuleId = parseInt(object.serviceRuleId, 10); - else if (typeof object.serviceRuleId === "number") - message.serviceRuleId = object.serviceRuleId; - else if (typeof object.serviceRuleId === "object") - message.serviceRuleId = new $util.LongBits(object.serviceRuleId.low >>> 0, object.serviceRuleId.high >>> 0).toNumber(true); - if (object.serviceInfoId != null) - if ($util.Long) - (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; - else if (typeof object.serviceInfoId === "string") - message.serviceInfoId = parseInt(object.serviceInfoId, 10); - else if (typeof object.serviceInfoId === "number") - message.serviceInfoId = object.serviceInfoId; - else if (typeof object.serviceInfoId === "object") - message.serviceInfoId = new $util.LongBits(object.serviceInfoId.low >>> 0, object.serviceInfoId.high >>> 0).toNumber(true); - if (object.resourceId != null) - if ($util.Long) - (message.resourceId = $util.Long.fromValue(object.resourceId)).unsigned = true; - else if (typeof object.resourceId === "string") - message.resourceId = parseInt(object.resourceId, 10); - else if (typeof object.resourceId === "number") - message.resourceId = object.resourceId; - else if (typeof object.resourceId === "object") - message.resourceId = new $util.LongBits(object.resourceId.low >>> 0, object.resourceId.high >>> 0).toNumber(true); - if (object.isLoggingEnabled != null) - message.isLoggingEnabled = Boolean(object.isLoggingEnabled); - if (object.logLevel != null) - message.logLevel = String(object.logLevel); - if (object.ruleStart != null) - message.ruleStart = String(object.ruleStart); - if (object.ruleEnd != null) - message.ruleEnd = String(object.ruleEnd); - if (object.dateModified != null) - message.dateModified = String(object.dateModified); + let message = new $root.Records.TransferRecordStatus(); + if (object.username != null) + message.username = String(object.username); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.status != null) + message.status = String(object.status); + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a ServiceRuleRecord message. Also converts values to other types if specified. + * Creates a plain object from a TransferRecordStatus message. Also converts values to other types if specified. * @function toObject - * @memberof ServiceLogger.ServiceRuleRecord + * @memberof Records.TransferRecordStatus * @static - * @param {ServiceLogger.ServiceRuleRecord} message ServiceRuleRecord + * @param {Records.TransferRecordStatus} message TransferRecordStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceRuleRecord.toObject = function toObject(message, options) { + TransferRecordStatus.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.serviceRuleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceRuleId = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceInfoId = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.resourceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.resourceId = options.longs === String ? "0" : 0; - object.isLoggingEnabled = false; - object.logLevel = ""; - object.ruleStart = ""; - object.ruleEnd = ""; - object.dateModified = ""; + object.username = ""; + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + object.status = ""; + object.message = ""; } - if (message.serviceRuleId != null && message.hasOwnProperty("serviceRuleId")) - if (typeof message.serviceRuleId === "number") - object.serviceRuleId = options.longs === String ? String(message.serviceRuleId) : message.serviceRuleId; - else - object.serviceRuleId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceRuleId) : options.longs === Number ? new $util.LongBits(message.serviceRuleId.low >>> 0, message.serviceRuleId.high >>> 0).toNumber(true) : message.serviceRuleId; - if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) - if (typeof message.serviceInfoId === "number") - object.serviceInfoId = options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; - else - object.serviceInfoId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceInfoId) : options.longs === Number ? new $util.LongBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0).toNumber(true) : message.serviceInfoId; - if (message.resourceId != null && message.hasOwnProperty("resourceId")) - if (typeof 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")) - object.isLoggingEnabled = message.isLoggingEnabled; - if (message.logLevel != null && message.hasOwnProperty("logLevel")) - object.logLevel = message.logLevel; - if (message.ruleStart != null && message.hasOwnProperty("ruleStart")) - object.ruleStart = message.ruleStart; - if (message.ruleEnd != null && message.hasOwnProperty("ruleEnd")) - object.ruleEnd = message.ruleEnd; - if (message.dateModified != null && message.hasOwnProperty("dateModified")) - object.dateModified = message.dateModified; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.status != null && message.hasOwnProperty("status")) + object.status = message.status; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; return object; }; /** - * Converts this ServiceRuleRecord to JSON. + * Converts this TransferRecordStatus to JSON. * @function toJSON - * @memberof ServiceLogger.ServiceRuleRecord + * @memberof Records.TransferRecordStatus * @instance * @returns {Object.} JSON object */ - ServiceRuleRecord.prototype.toJSON = function toJSON() { + TransferRecordStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ServiceRuleRecord + * Gets the default type url for TransferRecordStatus * @function getTypeUrl - * @memberof ServiceLogger.ServiceRuleRecord + * @memberof Records.TransferRecordStatus * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ServiceRuleRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TransferRecordStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/ServiceLogger.ServiceRuleRecord"; + return typeUrlPrefix + "/Records.TransferRecordStatus"; }; - return ServiceRuleRecord; + return TransferRecordStatus; })(); - ServiceLogger.ServiceRuleResponse = (function() { + Records.RecordsUnshareRequest = (function() { /** - * Properties of a ServiceRuleResponse. - * @memberof ServiceLogger - * @interface IServiceRuleResponse - * @property {Array.|null} [serviceRule] ServiceRuleResponse serviceRule + * Properties of a RecordsUnshareRequest. + * @memberof Records + * @interface IRecordsUnshareRequest + * @property {Array.|null} [sharedFolders] RecordsUnshareRequest sharedFolders + * @property {Array.|null} [users] RecordsUnshareRequest users */ /** - * Constructs a new ServiceRuleResponse. - * @memberof ServiceLogger - * @classdesc Represents a ServiceRuleResponse. - * @implements IServiceRuleResponse + * Constructs a new RecordsUnshareRequest. + * @memberof Records + * @classdesc Represents a RecordsUnshareRequest. + * @implements IRecordsUnshareRequest * @constructor - * @param {ServiceLogger.IServiceRuleResponse=} [properties] Properties to set + * @param {Records.IRecordsUnshareRequest=} [properties] Properties to set */ - function ServiceRuleResponse(properties) { - this.serviceRule = []; + function RecordsUnshareRequest(properties) { + this.sharedFolders = []; + this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -198814,78 +201194,95 @@ export const ServiceLogger = $root.ServiceLogger = (() => { } /** - * ServiceRuleResponse serviceRule. - * @member {Array.} serviceRule - * @memberof ServiceLogger.ServiceRuleResponse + * RecordsUnshareRequest sharedFolders. + * @member {Array.} sharedFolders + * @memberof Records.RecordsUnshareRequest * @instance */ - ServiceRuleResponse.prototype.serviceRule = $util.emptyArray; + RecordsUnshareRequest.prototype.sharedFolders = $util.emptyArray; /** - * Creates a new ServiceRuleResponse instance using the specified properties. + * RecordsUnshareRequest users. + * @member {Array.} users + * @memberof Records.RecordsUnshareRequest + * @instance + */ + RecordsUnshareRequest.prototype.users = $util.emptyArray; + + /** + * Creates a new RecordsUnshareRequest instance using the specified properties. * @function create - * @memberof ServiceLogger.ServiceRuleResponse + * @memberof Records.RecordsUnshareRequest * @static - * @param {ServiceLogger.IServiceRuleResponse=} [properties] Properties to set - * @returns {ServiceLogger.ServiceRuleResponse} ServiceRuleResponse instance + * @param {Records.IRecordsUnshareRequest=} [properties] Properties to set + * @returns {Records.RecordsUnshareRequest} RecordsUnshareRequest instance */ - ServiceRuleResponse.create = function create(properties) { - return new ServiceRuleResponse(properties); + RecordsUnshareRequest.create = function create(properties) { + return new RecordsUnshareRequest(properties); }; /** - * Encodes the specified ServiceRuleResponse message. Does not implicitly {@link ServiceLogger.ServiceRuleResponse.verify|verify} messages. + * Encodes the specified RecordsUnshareRequest message. Does not implicitly {@link Records.RecordsUnshareRequest.verify|verify} messages. * @function encode - * @memberof ServiceLogger.ServiceRuleResponse + * @memberof Records.RecordsUnshareRequest * @static - * @param {ServiceLogger.IServiceRuleResponse} message ServiceRuleResponse message or plain object to encode + * @param {Records.IRecordsUnshareRequest} message RecordsUnshareRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceRuleResponse.encode = function encode(message, writer) { + RecordsUnshareRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.serviceRule != null && message.serviceRule.length) - for (let i = 0; i < message.serviceRule.length; ++i) - $root.ServiceLogger.ServiceRuleRecord.encode(message.serviceRule[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.sharedFolders != null && message.sharedFolders.length) + for (let i = 0; i < message.sharedFolders.length; ++i) + $root.Records.RecordsUnshareFolder.encode(message.sharedFolders[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.users != null && message.users.length) + for (let i = 0; i < message.users.length; ++i) + $root.Records.RecordsUnshareUser.encode(message.users[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ServiceRuleResponse message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleResponse.verify|verify} messages. + * Encodes the specified RecordsUnshareRequest message, length delimited. Does not implicitly {@link Records.RecordsUnshareRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ServiceLogger.ServiceRuleResponse + * @memberof Records.RecordsUnshareRequest * @static - * @param {ServiceLogger.IServiceRuleResponse} message ServiceRuleResponse message or plain object to encode + * @param {Records.IRecordsUnshareRequest} message RecordsUnshareRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceRuleResponse.encodeDelimited = function encodeDelimited(message, writer) { + RecordsUnshareRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceRuleResponse message from the specified reader or buffer. + * Decodes a RecordsUnshareRequest message from the specified reader or buffer. * @function decode - * @memberof ServiceLogger.ServiceRuleResponse + * @memberof Records.RecordsUnshareRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ServiceLogger.ServiceRuleResponse} ServiceRuleResponse + * @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 */ - ServiceRuleResponse.decode = function decode(reader, length) { + RecordsUnshareRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceRuleResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.serviceRule && message.serviceRule.length)) - message.serviceRule = []; - message.serviceRule.push($root.ServiceLogger.ServiceRuleRecord.decode(reader, reader.uint32())); + if (!(message.sharedFolders && message.sharedFolders.length)) + message.sharedFolders = []; + message.sharedFolders.push($root.Records.RecordsUnshareFolder.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.users && message.users.length)) + message.users = []; + message.users.push($root.Records.RecordsUnshareUser.decode(reader, reader.uint32())); break; } default: @@ -198897,140 +201294,168 @@ export const ServiceLogger = $root.ServiceLogger = (() => { }; /** - * Decodes a ServiceRuleResponse message from the specified reader or buffer, length delimited. + * Decodes a RecordsUnshareRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ServiceLogger.ServiceRuleResponse + * @memberof Records.RecordsUnshareRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceRuleResponse} ServiceRuleResponse + * @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 */ - ServiceRuleResponse.decodeDelimited = function decodeDelimited(reader) { + RecordsUnshareRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceRuleResponse message. + * Verifies a RecordsUnshareRequest message. * @function verify - * @memberof ServiceLogger.ServiceRuleResponse + * @memberof Records.RecordsUnshareRequest * @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) { + RecordsUnshareRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); + 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]); if (error) - return "serviceRule." + 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]); + if (error) + return "users." + error; } } return null; }; /** - * Creates a ServiceRuleResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsUnshareRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ServiceLogger.ServiceRuleResponse + * @memberof Records.RecordsUnshareRequest * @static * @param {Object.} object Plain object - * @returns {ServiceLogger.ServiceRuleResponse} ServiceRuleResponse + * @returns {Records.RecordsUnshareRequest} RecordsUnshareRequest */ - ServiceRuleResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceRuleResponse) + RecordsUnshareRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordsUnshareRequest) return object; - let message = new $root.ServiceLogger.ServiceRuleResponse(); - if (object.serviceRule) { - if (!Array.isArray(object.serviceRule)) - throw TypeError(".ServiceLogger.ServiceRuleResponse.serviceRule: array expected"); - message.serviceRule = []; - for (let i = 0; i < object.serviceRule.length; ++i) { - if (typeof object.serviceRule[i] !== "object") - throw TypeError(".ServiceLogger.ServiceRuleResponse.serviceRule: object expected"); - message.serviceRule[i] = $root.ServiceLogger.ServiceRuleRecord.fromObject(object.serviceRule[i]); + let message = new $root.Records.RecordsUnshareRequest(); + if (object.sharedFolders) { + if (!Array.isArray(object.sharedFolders)) + throw TypeError(".Records.RecordsUnshareRequest.sharedFolders: array expected"); + message.sharedFolders = []; + for (let i = 0; i < object.sharedFolders.length; ++i) { + if (typeof object.sharedFolders[i] !== "object") + throw TypeError(".Records.RecordsUnshareRequest.sharedFolders: object expected"); + message.sharedFolders[i] = $root.Records.RecordsUnshareFolder.fromObject(object.sharedFolders[i]); + } + } + if (object.users) { + if (!Array.isArray(object.users)) + throw TypeError(".Records.RecordsUnshareRequest.users: array expected"); + message.users = []; + for (let i = 0; i < object.users.length; ++i) { + if (typeof object.users[i] !== "object") + throw TypeError(".Records.RecordsUnshareRequest.users: object expected"); + message.users[i] = $root.Records.RecordsUnshareUser.fromObject(object.users[i]); } } return message; }; /** - * Creates a plain object from a ServiceRuleResponse message. Also converts values to other types if specified. + * Creates a plain object from a RecordsUnshareRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ServiceLogger.ServiceRuleResponse + * @memberof Records.RecordsUnshareRequest * @static - * @param {ServiceLogger.ServiceRuleResponse} message ServiceRuleResponse + * @param {Records.RecordsUnshareRequest} message RecordsUnshareRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceRuleResponse.toObject = function toObject(message, options) { + RecordsUnshareRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.serviceRule = []; - if (message.serviceRule && message.serviceRule.length) { - object.serviceRule = []; - for (let j = 0; j < message.serviceRule.length; ++j) - object.serviceRule[j] = $root.ServiceLogger.ServiceRuleRecord.toObject(message.serviceRule[j], options); + if (options.arrays || options.defaults) { + object.sharedFolders = []; + object.users = []; + } + if (message.sharedFolders && message.sharedFolders.length) { + object.sharedFolders = []; + for (let j = 0; j < message.sharedFolders.length; ++j) + object.sharedFolders[j] = $root.Records.RecordsUnshareFolder.toObject(message.sharedFolders[j], options); + } + if (message.users && message.users.length) { + object.users = []; + for (let j = 0; j < message.users.length; ++j) + object.users[j] = $root.Records.RecordsUnshareUser.toObject(message.users[j], options); } return object; }; /** - * Converts this ServiceRuleResponse to JSON. + * Converts this RecordsUnshareRequest to JSON. * @function toJSON - * @memberof ServiceLogger.ServiceRuleResponse + * @memberof Records.RecordsUnshareRequest * @instance * @returns {Object.} JSON object */ - ServiceRuleResponse.prototype.toJSON = function toJSON() { + RecordsUnshareRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ServiceRuleResponse + * Gets the default type url for RecordsUnshareRequest * @function getTypeUrl - * @memberof ServiceLogger.ServiceRuleResponse + * @memberof Records.RecordsUnshareRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ServiceRuleResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordsUnshareRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/ServiceLogger.ServiceRuleResponse"; + return typeUrlPrefix + "/Records.RecordsUnshareRequest"; }; - return ServiceRuleResponse; + return RecordsUnshareRequest; })(); - ServiceLogger.ServiceRuleUpdateRequest = (function() { + Records.RecordsUnshareResponse = (function() { /** - * Properties of a ServiceRuleUpdateRequest. - * @memberof ServiceLogger - * @interface IServiceRuleUpdateRequest - * @property {Array.|null} [serviceRuleRecord] ServiceRuleUpdateRequest serviceRuleRecord + * Properties of a RecordsUnshareResponse. + * @memberof Records + * @interface IRecordsUnshareResponse + * @property {Array.|null} [sharedFolders] RecordsUnshareResponse sharedFolders + * @property {Array.|null} [users] RecordsUnshareResponse users */ /** - * Constructs a new ServiceRuleUpdateRequest. - * @memberof ServiceLogger - * @classdesc Update one or more ServiceRule records by their IDs - * @implements IServiceRuleUpdateRequest + * Constructs a new RecordsUnshareResponse. + * @memberof Records + * @classdesc Represents a RecordsUnshareResponse. + * @implements IRecordsUnshareResponse * @constructor - * @param {ServiceLogger.IServiceRuleUpdateRequest=} [properties] Properties to set + * @param {Records.IRecordsUnshareResponse=} [properties] Properties to set */ - function ServiceRuleUpdateRequest(properties) { - this.serviceRuleRecord = []; + function RecordsUnshareResponse(properties) { + this.sharedFolders = []; + this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -199038,78 +201463,95 @@ export const ServiceLogger = $root.ServiceLogger = (() => { } /** - * ServiceRuleUpdateRequest serviceRuleRecord. - * @member {Array.} serviceRuleRecord - * @memberof ServiceLogger.ServiceRuleUpdateRequest + * RecordsUnshareResponse sharedFolders. + * @member {Array.} sharedFolders + * @memberof Records.RecordsUnshareResponse * @instance */ - ServiceRuleUpdateRequest.prototype.serviceRuleRecord = $util.emptyArray; + RecordsUnshareResponse.prototype.sharedFolders = $util.emptyArray; /** - * Creates a new ServiceRuleUpdateRequest instance using the specified properties. + * RecordsUnshareResponse users. + * @member {Array.} users + * @memberof Records.RecordsUnshareResponse + * @instance + */ + RecordsUnshareResponse.prototype.users = $util.emptyArray; + + /** + * Creates a new RecordsUnshareResponse instance using the specified properties. * @function create - * @memberof ServiceLogger.ServiceRuleUpdateRequest + * @memberof Records.RecordsUnshareResponse * @static - * @param {ServiceLogger.IServiceRuleUpdateRequest=} [properties] Properties to set - * @returns {ServiceLogger.ServiceRuleUpdateRequest} ServiceRuleUpdateRequest instance + * @param {Records.IRecordsUnshareResponse=} [properties] Properties to set + * @returns {Records.RecordsUnshareResponse} RecordsUnshareResponse instance */ - ServiceRuleUpdateRequest.create = function create(properties) { - return new ServiceRuleUpdateRequest(properties); + RecordsUnshareResponse.create = function create(properties) { + return new RecordsUnshareResponse(properties); }; /** - * Encodes the specified ServiceRuleUpdateRequest message. Does not implicitly {@link ServiceLogger.ServiceRuleUpdateRequest.verify|verify} messages. + * Encodes the specified RecordsUnshareResponse message. Does not implicitly {@link Records.RecordsUnshareResponse.verify|verify} messages. * @function encode - * @memberof ServiceLogger.ServiceRuleUpdateRequest + * @memberof Records.RecordsUnshareResponse * @static - * @param {ServiceLogger.IServiceRuleUpdateRequest} message ServiceRuleUpdateRequest message or plain object to encode + * @param {Records.IRecordsUnshareResponse} message RecordsUnshareResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceRuleUpdateRequest.encode = function encode(message, writer) { + RecordsUnshareResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.serviceRuleRecord != null && message.serviceRuleRecord.length) - for (let i = 0; i < message.serviceRuleRecord.length; ++i) - $root.ServiceLogger.ServiceRuleRecord.encode(message.serviceRuleRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.sharedFolders != null && message.sharedFolders.length) + for (let i = 0; i < message.sharedFolders.length; ++i) + $root.Records.RecordsUnshareFolderStatus.encode(message.sharedFolders[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.users != null && message.users.length) + for (let i = 0; i < message.users.length; ++i) + $root.Records.RecordsUnshareUserStatus.encode(message.users[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ServiceRuleUpdateRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleUpdateRequest.verify|verify} messages. + * Encodes the specified RecordsUnshareResponse message, length delimited. Does not implicitly {@link Records.RecordsUnshareResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ServiceLogger.ServiceRuleUpdateRequest + * @memberof Records.RecordsUnshareResponse * @static - * @param {ServiceLogger.IServiceRuleUpdateRequest} message ServiceRuleUpdateRequest message or plain object to encode + * @param {Records.IRecordsUnshareResponse} message RecordsUnshareResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceRuleUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { + RecordsUnshareResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceRuleUpdateRequest message from the specified reader or buffer. + * Decodes a RecordsUnshareResponse message from the specified reader or buffer. * @function decode - * @memberof ServiceLogger.ServiceRuleUpdateRequest + * @memberof Records.RecordsUnshareResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ServiceLogger.ServiceRuleUpdateRequest} ServiceRuleUpdateRequest + * @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 */ - ServiceRuleUpdateRequest.decode = function decode(reader, length) { + RecordsUnshareResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceRuleUpdateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.serviceRuleRecord && message.serviceRuleRecord.length)) - message.serviceRuleRecord = []; - message.serviceRuleRecord.push($root.ServiceLogger.ServiceRuleRecord.decode(reader, reader.uint32())); + if (!(message.sharedFolders && message.sharedFolders.length)) + message.sharedFolders = []; + message.sharedFolders.push($root.Records.RecordsUnshareFolderStatus.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.users && message.users.length)) + message.users = []; + message.users.push($root.Records.RecordsUnshareUserStatus.decode(reader, reader.uint32())); break; } default: @@ -199121,146 +201563,166 @@ export const ServiceLogger = $root.ServiceLogger = (() => { }; /** - * Decodes a ServiceRuleUpdateRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordsUnshareResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ServiceLogger.ServiceRuleUpdateRequest + * @memberof Records.RecordsUnshareResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceRuleUpdateRequest} ServiceRuleUpdateRequest + * @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 */ - ServiceRuleUpdateRequest.decodeDelimited = function decodeDelimited(reader) { + RecordsUnshareResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceRuleUpdateRequest message. + * Verifies a RecordsUnshareResponse message. * @function verify - * @memberof ServiceLogger.ServiceRuleUpdateRequest + * @memberof Records.RecordsUnshareResponse * @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) { + RecordsUnshareResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); + 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]); if (error) - return "serviceRuleRecord." + 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]); + if (error) + return "users." + error; } } return null; }; /** - * Creates a ServiceRuleUpdateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsUnshareResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ServiceLogger.ServiceRuleUpdateRequest + * @memberof Records.RecordsUnshareResponse * @static * @param {Object.} object Plain object - * @returns {ServiceLogger.ServiceRuleUpdateRequest} ServiceRuleUpdateRequest + * @returns {Records.RecordsUnshareResponse} RecordsUnshareResponse */ - ServiceRuleUpdateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceRuleUpdateRequest) + RecordsUnshareResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordsUnshareResponse) return object; - let message = new $root.ServiceLogger.ServiceRuleUpdateRequest(); - if (object.serviceRuleRecord) { - if (!Array.isArray(object.serviceRuleRecord)) - throw TypeError(".ServiceLogger.ServiceRuleUpdateRequest.serviceRuleRecord: array expected"); - message.serviceRuleRecord = []; - for (let i = 0; i < object.serviceRuleRecord.length; ++i) { - if (typeof object.serviceRuleRecord[i] !== "object") - throw TypeError(".ServiceLogger.ServiceRuleUpdateRequest.serviceRuleRecord: object expected"); - message.serviceRuleRecord[i] = $root.ServiceLogger.ServiceRuleRecord.fromObject(object.serviceRuleRecord[i]); + let message = new $root.Records.RecordsUnshareResponse(); + if (object.sharedFolders) { + if (!Array.isArray(object.sharedFolders)) + throw TypeError(".Records.RecordsUnshareResponse.sharedFolders: array expected"); + message.sharedFolders = []; + for (let i = 0; i < object.sharedFolders.length; ++i) { + if (typeof object.sharedFolders[i] !== "object") + throw TypeError(".Records.RecordsUnshareResponse.sharedFolders: object expected"); + message.sharedFolders[i] = $root.Records.RecordsUnshareFolderStatus.fromObject(object.sharedFolders[i]); + } + } + if (object.users) { + if (!Array.isArray(object.users)) + throw TypeError(".Records.RecordsUnshareResponse.users: array expected"); + message.users = []; + for (let i = 0; i < object.users.length; ++i) { + if (typeof object.users[i] !== "object") + throw TypeError(".Records.RecordsUnshareResponse.users: object expected"); + message.users[i] = $root.Records.RecordsUnshareUserStatus.fromObject(object.users[i]); } } return message; }; /** - * Creates a plain object from a ServiceRuleUpdateRequest message. Also converts values to other types if specified. + * Creates a plain object from a RecordsUnshareResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ServiceLogger.ServiceRuleUpdateRequest + * @memberof Records.RecordsUnshareResponse * @static - * @param {ServiceLogger.ServiceRuleUpdateRequest} message ServiceRuleUpdateRequest + * @param {Records.RecordsUnshareResponse} message RecordsUnshareResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceRuleUpdateRequest.toObject = function toObject(message, options) { + RecordsUnshareResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.serviceRuleRecord = []; - if (message.serviceRuleRecord && message.serviceRuleRecord.length) { - object.serviceRuleRecord = []; - for (let j = 0; j < message.serviceRuleRecord.length; ++j) - object.serviceRuleRecord[j] = $root.ServiceLogger.ServiceRuleRecord.toObject(message.serviceRuleRecord[j], options); + if (options.arrays || options.defaults) { + object.sharedFolders = []; + object.users = []; + } + if (message.sharedFolders && message.sharedFolders.length) { + object.sharedFolders = []; + for (let j = 0; j < message.sharedFolders.length; ++j) + object.sharedFolders[j] = $root.Records.RecordsUnshareFolderStatus.toObject(message.sharedFolders[j], options); + } + if (message.users && message.users.length) { + object.users = []; + for (let j = 0; j < message.users.length; ++j) + object.users[j] = $root.Records.RecordsUnshareUserStatus.toObject(message.users[j], options); } return object; }; /** - * Converts this ServiceRuleUpdateRequest to JSON. + * Converts this RecordsUnshareResponse to JSON. * @function toJSON - * @memberof ServiceLogger.ServiceRuleUpdateRequest + * @memberof Records.RecordsUnshareResponse * @instance * @returns {Object.} JSON object */ - ServiceRuleUpdateRequest.prototype.toJSON = function toJSON() { + RecordsUnshareResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ServiceRuleUpdateRequest + * Gets the default type url for RecordsUnshareResponse * @function getTypeUrl - * @memberof ServiceLogger.ServiceRuleUpdateRequest + * @memberof Records.RecordsUnshareResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ServiceRuleUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordsUnshareResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/ServiceLogger.ServiceRuleUpdateRequest"; + return typeUrlPrefix + "/Records.RecordsUnshareResponse"; }; - return ServiceRuleUpdateRequest; + return RecordsUnshareResponse; })(); - ServiceLogger.ServiceLogSpecifier = (function() { + Records.RecordsUnshareFolder = (function() { /** - * Properties of a ServiceLogSpecifier. - * @memberof ServiceLogger - * @interface IServiceLogSpecifier - * @property {boolean|null} [all] ServiceLogSpecifier all - * @property {number|Long|null} [serviceLogId] ServiceLogSpecifier serviceLogId - * @property {Array.|null} [serviceIdRange] ServiceLogSpecifier serviceIdRange - * @property {Array.|null} [resourceIdRange] ServiceLogSpecifier resourceIdRange - * @property {string|null} [startDateTime] ServiceLogSpecifier startDateTime - * @property {string|null} [endDateTime] ServiceLogSpecifier endDateTime + * Properties of a RecordsUnshareFolder. + * @memberof Records + * @interface IRecordsUnshareFolder + * @property {Uint8Array|null} [recordUid] RecordsUnshareFolder recordUid + * @property {Uint8Array|null} [sharedFolderUid] RecordsUnshareFolder sharedFolderUid */ /** - * Constructs a new ServiceLogSpecifier. - * @memberof ServiceLogger - * @classdesc Represents a ServiceLogSpecifier. - * @implements IServiceLogSpecifier + * Constructs a new RecordsUnshareFolder. + * @memberof Records + * @classdesc Represents a RecordsUnshareFolder. + * @implements IRecordsUnshareFolder * @constructor - * @param {ServiceLogger.IServiceLogSpecifier=} [properties] Properties to set + * @param {Records.IRecordsUnshareFolder=} [properties] Properties to set */ - function ServiceLogSpecifier(properties) { - this.serviceIdRange = []; - this.resourceIdRange = []; + function RecordsUnshareFolder(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -199268,151 +201730,89 @@ export const ServiceLogger = $root.ServiceLogger = (() => { } /** - * ServiceLogSpecifier all. - * @member {boolean} all - * @memberof ServiceLogger.ServiceLogSpecifier - * @instance - */ - ServiceLogSpecifier.prototype.all = false; - - /** - * ServiceLogSpecifier serviceLogId. - * @member {number|Long} serviceLogId - * @memberof ServiceLogger.ServiceLogSpecifier - * @instance - */ - ServiceLogSpecifier.prototype.serviceLogId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * ServiceLogSpecifier serviceIdRange. - * @member {Array.} serviceIdRange - * @memberof ServiceLogger.ServiceLogSpecifier - * @instance - */ - ServiceLogSpecifier.prototype.serviceIdRange = $util.emptyArray; - - /** - * ServiceLogSpecifier resourceIdRange. - * @member {Array.} resourceIdRange - * @memberof ServiceLogger.ServiceLogSpecifier - * @instance - */ - ServiceLogSpecifier.prototype.resourceIdRange = $util.emptyArray; - - /** - * ServiceLogSpecifier startDateTime. - * @member {string} startDateTime - * @memberof ServiceLogger.ServiceLogSpecifier + * RecordsUnshareFolder recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.RecordsUnshareFolder * @instance */ - ServiceLogSpecifier.prototype.startDateTime = ""; + RecordsUnshareFolder.prototype.recordUid = $util.newBuffer([]); /** - * ServiceLogSpecifier endDateTime. - * @member {string} endDateTime - * @memberof ServiceLogger.ServiceLogSpecifier + * RecordsUnshareFolder sharedFolderUid. + * @member {Uint8Array} sharedFolderUid + * @memberof Records.RecordsUnshareFolder * @instance */ - ServiceLogSpecifier.prototype.endDateTime = ""; + RecordsUnshareFolder.prototype.sharedFolderUid = $util.newBuffer([]); /** - * Creates a new ServiceLogSpecifier instance using the specified properties. + * Creates a new RecordsUnshareFolder instance using the specified properties. * @function create - * @memberof ServiceLogger.ServiceLogSpecifier + * @memberof Records.RecordsUnshareFolder * @static - * @param {ServiceLogger.IServiceLogSpecifier=} [properties] Properties to set - * @returns {ServiceLogger.ServiceLogSpecifier} ServiceLogSpecifier instance + * @param {Records.IRecordsUnshareFolder=} [properties] Properties to set + * @returns {Records.RecordsUnshareFolder} RecordsUnshareFolder instance */ - ServiceLogSpecifier.create = function create(properties) { - return new ServiceLogSpecifier(properties); + RecordsUnshareFolder.create = function create(properties) { + return new RecordsUnshareFolder(properties); }; /** - * Encodes the specified ServiceLogSpecifier message. Does not implicitly {@link ServiceLogger.ServiceLogSpecifier.verify|verify} messages. + * Encodes the specified RecordsUnshareFolder message. Does not implicitly {@link Records.RecordsUnshareFolder.verify|verify} messages. * @function encode - * @memberof ServiceLogger.ServiceLogSpecifier + * @memberof Records.RecordsUnshareFolder * @static - * @param {ServiceLogger.IServiceLogSpecifier} message ServiceLogSpecifier message or plain object to encode + * @param {Records.IRecordsUnshareFolder} message RecordsUnshareFolder message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogSpecifier.encode = function encode(message, writer) { + RecordsUnshareFolder.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.all != null && Object.hasOwnProperty.call(message, "all")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.all); - if (message.serviceLogId != null && Object.hasOwnProperty.call(message, "serviceLogId")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.serviceLogId); - if (message.serviceIdRange != null && message.serviceIdRange.length) - for (let i = 0; i < message.serviceIdRange.length; ++i) - $root.ServiceLogger.IdRange.encode(message.serviceIdRange[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.resourceIdRange != null && message.resourceIdRange.length) - for (let i = 0; i < message.resourceIdRange.length; ++i) - $root.ServiceLogger.IdRange.encode(message.resourceIdRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.startDateTime != null && Object.hasOwnProperty.call(message, "startDateTime")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.startDateTime); - if (message.endDateTime != null && Object.hasOwnProperty.call(message, "endDateTime")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.endDateTime); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sharedFolderUid); return writer; }; /** - * Encodes the specified ServiceLogSpecifier message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogSpecifier.verify|verify} messages. + * Encodes the specified RecordsUnshareFolder message, length delimited. Does not implicitly {@link Records.RecordsUnshareFolder.verify|verify} messages. * @function encodeDelimited - * @memberof ServiceLogger.ServiceLogSpecifier + * @memberof Records.RecordsUnshareFolder * @static - * @param {ServiceLogger.IServiceLogSpecifier} message ServiceLogSpecifier message or plain object to encode + * @param {Records.IRecordsUnshareFolder} message RecordsUnshareFolder message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogSpecifier.encodeDelimited = function encodeDelimited(message, writer) { + RecordsUnshareFolder.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceLogSpecifier message from the specified reader or buffer. + * Decodes a RecordsUnshareFolder message from the specified reader or buffer. * @function decode - * @memberof ServiceLogger.ServiceLogSpecifier + * @memberof Records.RecordsUnshareFolder * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ServiceLogger.ServiceLogSpecifier} ServiceLogSpecifier + * @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 */ - ServiceLogSpecifier.decode = function decode(reader, length) { + RecordsUnshareFolder.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogSpecifier(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareFolder(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.all = reader.bool(); + message.recordUid = reader.bytes(); break; } case 2: { - message.serviceLogId = reader.uint64(); - break; - } - case 3: { - if (!(message.serviceIdRange && message.serviceIdRange.length)) - message.serviceIdRange = []; - message.serviceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32())); - break; - } - case 4: { - if (!(message.resourceIdRange && message.resourceIdRange.length)) - message.resourceIdRange = []; - message.resourceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32())); - break; - } - case 5: { - message.startDateTime = reader.string(); - break; - } - case 6: { - message.endDateTime = reader.string(); + message.sharedFolderUid = reader.bytes(); break; } default: @@ -199424,214 +201824,150 @@ export const ServiceLogger = $root.ServiceLogger = (() => { }; /** - * Decodes a ServiceLogSpecifier message from the specified reader or buffer, length delimited. + * Decodes a RecordsUnshareFolder message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ServiceLogger.ServiceLogSpecifier + * @memberof Records.RecordsUnshareFolder * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceLogSpecifier} ServiceLogSpecifier + * @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 */ - ServiceLogSpecifier.decodeDelimited = function decodeDelimited(reader) { + RecordsUnshareFolder.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceLogSpecifier message. + * Verifies a RecordsUnshareFolder message. * @function verify - * @memberof ServiceLogger.ServiceLogSpecifier + * @memberof Records.RecordsUnshareFolder * @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) { + RecordsUnshareFolder.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - 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]); - 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"; + 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 ServiceLogSpecifier message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsUnshareFolder message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ServiceLogger.ServiceLogSpecifier + * @memberof Records.RecordsUnshareFolder * @static * @param {Object.} object Plain object - * @returns {ServiceLogger.ServiceLogSpecifier} ServiceLogSpecifier + * @returns {Records.RecordsUnshareFolder} RecordsUnshareFolder */ - ServiceLogSpecifier.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceLogSpecifier) + RecordsUnshareFolder.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordsUnshareFolder) return object; - let message = new $root.ServiceLogger.ServiceLogSpecifier(); - if (object.all != null) - message.all = Boolean(object.all); - if (object.serviceLogId != null) - if ($util.Long) - (message.serviceLogId = $util.Long.fromValue(object.serviceLogId)).unsigned = true; - else if (typeof object.serviceLogId === "string") - message.serviceLogId = parseInt(object.serviceLogId, 10); - else if (typeof object.serviceLogId === "number") - message.serviceLogId = object.serviceLogId; - else if (typeof object.serviceLogId === "object") - message.serviceLogId = new $util.LongBits(object.serviceLogId.low >>> 0, object.serviceLogId.high >>> 0).toNumber(true); - if (object.serviceIdRange) { - if (!Array.isArray(object.serviceIdRange)) - throw TypeError(".ServiceLogger.ServiceLogSpecifier.serviceIdRange: array expected"); - message.serviceIdRange = []; - for (let i = 0; i < object.serviceIdRange.length; ++i) { - if (typeof object.serviceIdRange[i] !== "object") - throw TypeError(".ServiceLogger.ServiceLogSpecifier.serviceIdRange: object expected"); - message.serviceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.serviceIdRange[i]); - } - } - if (object.resourceIdRange) { - if (!Array.isArray(object.resourceIdRange)) - throw TypeError(".ServiceLogger.ServiceLogSpecifier.resourceIdRange: array expected"); - message.resourceIdRange = []; - for (let i = 0; i < object.resourceIdRange.length; ++i) { - if (typeof object.resourceIdRange[i] !== "object") - throw TypeError(".ServiceLogger.ServiceLogSpecifier.resourceIdRange: object expected"); - message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i]); - } - } - if (object.startDateTime != null) - message.startDateTime = String(object.startDateTime); - if (object.endDateTime != null) - message.endDateTime = String(object.endDateTime); + let message = new $root.Records.RecordsUnshareFolder(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.sharedFolderUid != null) + if (typeof object.sharedFolderUid === "string") + $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); + else if (object.sharedFolderUid.length >= 0) + message.sharedFolderUid = object.sharedFolderUid; return message; }; /** - * Creates a plain object from a ServiceLogSpecifier message. Also converts values to other types if specified. + * Creates a plain object from a RecordsUnshareFolder message. Also converts values to other types if specified. * @function toObject - * @memberof ServiceLogger.ServiceLogSpecifier + * @memberof Records.RecordsUnshareFolder * @static - * @param {ServiceLogger.ServiceLogSpecifier} message ServiceLogSpecifier + * @param {Records.RecordsUnshareFolder} message RecordsUnshareFolder * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceLogSpecifier.toObject = function toObject(message, options) { + RecordsUnshareFolder.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.serviceIdRange = []; - object.resourceIdRange = []; - } if (options.defaults) { - object.all = false; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.serviceLogId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceLogId = options.longs === String ? "0" : 0; - object.startDateTime = ""; - object.endDateTime = ""; - } - if (message.all != null && message.hasOwnProperty("all")) - object.all = message.all; - if (message.serviceLogId != null && message.hasOwnProperty("serviceLogId")) - if (typeof message.serviceLogId === "number") - object.serviceLogId = options.longs === String ? String(message.serviceLogId) : message.serviceLogId; - else - object.serviceLogId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceLogId) : options.longs === Number ? new $util.LongBits(message.serviceLogId.low >>> 0, message.serviceLogId.high >>> 0).toNumber(true) : message.serviceLogId; - if (message.serviceIdRange && message.serviceIdRange.length) { - object.serviceIdRange = []; - for (let j = 0; j < message.serviceIdRange.length; ++j) - object.serviceIdRange[j] = $root.ServiceLogger.IdRange.toObject(message.serviceIdRange[j], options); - } - 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); + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if (options.bytes === String) + object.sharedFolderUid = ""; + else { + object.sharedFolderUid = []; + if (options.bytes !== Array) + object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + } } - if (message.startDateTime != null && message.hasOwnProperty("startDateTime")) - object.startDateTime = message.startDateTime; - if (message.endDateTime != null && message.hasOwnProperty("endDateTime")) - object.endDateTime = message.endDateTime; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; return object; }; /** - * Converts this ServiceLogSpecifier to JSON. + * Converts this RecordsUnshareFolder to JSON. * @function toJSON - * @memberof ServiceLogger.ServiceLogSpecifier + * @memberof Records.RecordsUnshareFolder * @instance * @returns {Object.} JSON object */ - ServiceLogSpecifier.prototype.toJSON = function toJSON() { + RecordsUnshareFolder.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ServiceLogSpecifier + * Gets the default type url for RecordsUnshareFolder * @function getTypeUrl - * @memberof ServiceLogger.ServiceLogSpecifier + * @memberof Records.RecordsUnshareFolder * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ServiceLogSpecifier.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordsUnshareFolder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/ServiceLogger.ServiceLogSpecifier"; + return typeUrlPrefix + "/Records.RecordsUnshareFolder"; }; - return ServiceLogSpecifier; + return RecordsUnshareFolder; })(); - ServiceLogger.ServiceLogGetRequest = (function() { + Records.RecordsUnshareUser = (function() { /** - * Properties of a ServiceLogGetRequest. - * @memberof ServiceLogger - * @interface IServiceLogGetRequest - * @property {Array.|null} [serviceLogSpecifier] ServiceLogGetRequest serviceLogSpecifier + * Properties of a RecordsUnshareUser. + * @memberof Records + * @interface IRecordsUnshareUser + * @property {Uint8Array|null} [recordUid] RecordsUnshareUser recordUid + * @property {Uint8Array|null} [accountUid] RecordsUnshareUser accountUid */ /** - * Constructs a new ServiceLogGetRequest. - * @memberof ServiceLogger - * @classdesc Represents a ServiceLogGetRequest. - * @implements IServiceLogGetRequest + * Constructs a new RecordsUnshareUser. + * @memberof Records + * @classdesc Represents a RecordsUnshareUser. + * @implements IRecordsUnshareUser * @constructor - * @param {ServiceLogger.IServiceLogGetRequest=} [properties] Properties to set + * @param {Records.IRecordsUnshareUser=} [properties] Properties to set */ - function ServiceLogGetRequest(properties) { - this.serviceLogSpecifier = []; + function RecordsUnshareUser(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -199639,78 +201975,89 @@ export const ServiceLogger = $root.ServiceLogger = (() => { } /** - * ServiceLogGetRequest serviceLogSpecifier. - * @member {Array.} serviceLogSpecifier - * @memberof ServiceLogger.ServiceLogGetRequest + * RecordsUnshareUser recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.RecordsUnshareUser * @instance */ - ServiceLogGetRequest.prototype.serviceLogSpecifier = $util.emptyArray; + RecordsUnshareUser.prototype.recordUid = $util.newBuffer([]); /** - * Creates a new ServiceLogGetRequest instance using the specified properties. + * RecordsUnshareUser accountUid. + * @member {Uint8Array} accountUid + * @memberof Records.RecordsUnshareUser + * @instance + */ + RecordsUnshareUser.prototype.accountUid = $util.newBuffer([]); + + /** + * Creates a new RecordsUnshareUser instance using the specified properties. * @function create - * @memberof ServiceLogger.ServiceLogGetRequest + * @memberof Records.RecordsUnshareUser * @static - * @param {ServiceLogger.IServiceLogGetRequest=} [properties] Properties to set - * @returns {ServiceLogger.ServiceLogGetRequest} ServiceLogGetRequest instance + * @param {Records.IRecordsUnshareUser=} [properties] Properties to set + * @returns {Records.RecordsUnshareUser} RecordsUnshareUser instance */ - ServiceLogGetRequest.create = function create(properties) { - return new ServiceLogGetRequest(properties); + RecordsUnshareUser.create = function create(properties) { + return new RecordsUnshareUser(properties); }; /** - * Encodes the specified ServiceLogGetRequest message. Does not implicitly {@link ServiceLogger.ServiceLogGetRequest.verify|verify} messages. + * Encodes the specified RecordsUnshareUser message. Does not implicitly {@link Records.RecordsUnshareUser.verify|verify} messages. * @function encode - * @memberof ServiceLogger.ServiceLogGetRequest + * @memberof Records.RecordsUnshareUser * @static - * @param {ServiceLogger.IServiceLogGetRequest} message ServiceLogGetRequest message or plain object to encode + * @param {Records.IRecordsUnshareUser} message RecordsUnshareUser message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogGetRequest.encode = function encode(message, writer) { + RecordsUnshareUser.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.serviceLogSpecifier != null && message.serviceLogSpecifier.length) - for (let i = 0; i < message.serviceLogSpecifier.length; ++i) - $root.ServiceLogger.ServiceLogSpecifier.encode(message.serviceLogSpecifier[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.accountUid); return writer; }; /** - * Encodes the specified ServiceLogGetRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogGetRequest.verify|verify} messages. + * Encodes the specified RecordsUnshareUser message, length delimited. Does not implicitly {@link Records.RecordsUnshareUser.verify|verify} messages. * @function encodeDelimited - * @memberof ServiceLogger.ServiceLogGetRequest + * @memberof Records.RecordsUnshareUser * @static - * @param {ServiceLogger.IServiceLogGetRequest} message ServiceLogGetRequest message or plain object to encode + * @param {Records.IRecordsUnshareUser} message RecordsUnshareUser message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogGetRequest.encodeDelimited = function encodeDelimited(message, writer) { + RecordsUnshareUser.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceLogGetRequest message from the specified reader or buffer. + * Decodes a RecordsUnshareUser message from the specified reader or buffer. * @function decode - * @memberof ServiceLogger.ServiceLogGetRequest + * @memberof Records.RecordsUnshareUser * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ServiceLogger.ServiceLogGetRequest} ServiceLogGetRequest + * @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 */ - ServiceLogGetRequest.decode = function decode(reader, length) { + RecordsUnshareUser.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogGetRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareUser(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.serviceLogSpecifier && message.serviceLogSpecifier.length)) - message.serviceLogSpecifier = []; - message.serviceLogSpecifier.push($root.ServiceLogger.ServiceLogSpecifier.decode(reader, reader.uint32())); + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.accountUid = reader.bytes(); break; } default: @@ -199722,146 +202069,150 @@ export const ServiceLogger = $root.ServiceLogger = (() => { }; /** - * Decodes a ServiceLogGetRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordsUnshareUser message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ServiceLogger.ServiceLogGetRequest + * @memberof Records.RecordsUnshareUser * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceLogGetRequest} ServiceLogGetRequest + * @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 */ - ServiceLogGetRequest.decodeDelimited = function decodeDelimited(reader) { + RecordsUnshareUser.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceLogGetRequest message. + * Verifies a RecordsUnshareUser message. * @function verify - * @memberof ServiceLogger.ServiceLogGetRequest + * @memberof Records.RecordsUnshareUser * @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) { + RecordsUnshareUser.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "serviceLogSpecifier." + error; - } - } + 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 ServiceLogGetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsUnshareUser message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ServiceLogger.ServiceLogGetRequest + * @memberof Records.RecordsUnshareUser * @static * @param {Object.} object Plain object - * @returns {ServiceLogger.ServiceLogGetRequest} ServiceLogGetRequest + * @returns {Records.RecordsUnshareUser} RecordsUnshareUser */ - ServiceLogGetRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceLogGetRequest) + RecordsUnshareUser.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordsUnshareUser) return object; - let message = new $root.ServiceLogger.ServiceLogGetRequest(); - if (object.serviceLogSpecifier) { - if (!Array.isArray(object.serviceLogSpecifier)) - throw TypeError(".ServiceLogger.ServiceLogGetRequest.serviceLogSpecifier: array expected"); - message.serviceLogSpecifier = []; - for (let i = 0; i < object.serviceLogSpecifier.length; ++i) { - if (typeof object.serviceLogSpecifier[i] !== "object") - throw TypeError(".ServiceLogger.ServiceLogGetRequest.serviceLogSpecifier: object expected"); - message.serviceLogSpecifier[i] = $root.ServiceLogger.ServiceLogSpecifier.fromObject(object.serviceLogSpecifier[i]); - } - } + let message = new $root.Records.RecordsUnshareUser(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.accountUid != null) + if (typeof object.accountUid === "string") + $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); + else if (object.accountUid.length >= 0) + message.accountUid = object.accountUid; return message; }; /** - * Creates a plain object from a ServiceLogGetRequest message. Also converts values to other types if specified. + * Creates a plain object from a RecordsUnshareUser message. Also converts values to other types if specified. * @function toObject - * @memberof ServiceLogger.ServiceLogGetRequest + * @memberof Records.RecordsUnshareUser * @static - * @param {ServiceLogger.ServiceLogGetRequest} message ServiceLogGetRequest + * @param {Records.RecordsUnshareUser} message RecordsUnshareUser * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceLogGetRequest.toObject = function toObject(message, options) { + RecordsUnshareUser.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.serviceLogSpecifier = []; - if (message.serviceLogSpecifier && message.serviceLogSpecifier.length) { - object.serviceLogSpecifier = []; - for (let j = 0; j < message.serviceLogSpecifier.length; ++j) - object.serviceLogSpecifier[j] = $root.ServiceLogger.ServiceLogSpecifier.toObject(message.serviceLogSpecifier[j], options); + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if (options.bytes === String) + object.accountUid = ""; + else { + object.accountUid = []; + if (options.bytes !== Array) + object.accountUid = $util.newBuffer(object.accountUid); + } } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.accountUid != null && message.hasOwnProperty("accountUid")) + object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; return object; }; /** - * Converts this ServiceLogGetRequest to JSON. + * Converts this RecordsUnshareUser to JSON. * @function toJSON - * @memberof ServiceLogger.ServiceLogGetRequest + * @memberof Records.RecordsUnshareUser * @instance * @returns {Object.} JSON object */ - ServiceLogGetRequest.prototype.toJSON = function toJSON() { + RecordsUnshareUser.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ServiceLogGetRequest + * Gets the default type url for RecordsUnshareUser * @function getTypeUrl - * @memberof ServiceLogger.ServiceLogGetRequest + * @memberof Records.RecordsUnshareUser * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ServiceLogGetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordsUnshareUser.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/ServiceLogger.ServiceLogGetRequest"; + return typeUrlPrefix + "/Records.RecordsUnshareUser"; }; - return ServiceLogGetRequest; + return RecordsUnshareUser; })(); - ServiceLogger.ServiceLogRecord = (function() { + Records.RecordsUnshareFolderStatus = (function() { /** - * Properties of a ServiceLogRecord. - * @memberof ServiceLogger - * @interface IServiceLogRecord - * @property {number|Long|null} [serviceLogId] ServiceLogRecord serviceLogId - * @property {number|Long|null} [serviceInfoId] ServiceLogRecord serviceInfoId - * @property {number|Long|null} [resourceId] ServiceLogRecord resourceId - * @property {string|null} [logger] ServiceLogRecord logger - * @property {string|null} [logLevel] ServiceLogRecord logLevel - * @property {string|null} [message] ServiceLogRecord message - * @property {string|null} [exception] ServiceLogRecord exception - * @property {string|null} [dateCreated] ServiceLogRecord dateCreated + * Properties of a RecordsUnshareFolderStatus. + * @memberof Records + * @interface IRecordsUnshareFolderStatus + * @property {Uint8Array|null} [recordUid] RecordsUnshareFolderStatus recordUid + * @property {Uint8Array|null} [sharedFolderUid] RecordsUnshareFolderStatus sharedFolderUid */ /** - * Constructs a new ServiceLogRecord. - * @memberof ServiceLogger - * @classdesc Represents a ServiceLogRecord. - * @implements IServiceLogRecord + * Constructs a new RecordsUnshareFolderStatus. + * @memberof Records + * @classdesc Represents a RecordsUnshareFolderStatus. + * @implements IRecordsUnshareFolderStatus * @constructor - * @param {ServiceLogger.IServiceLogRecord=} [properties] Properties to set + * @param {Records.IRecordsUnshareFolderStatus=} [properties] Properties to set */ - function ServiceLogRecord(properties) { + function RecordsUnshareFolderStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -199869,173 +202220,89 @@ export const ServiceLogger = $root.ServiceLogger = (() => { } /** - * ServiceLogRecord serviceLogId. - * @member {number|Long} serviceLogId - * @memberof ServiceLogger.ServiceLogRecord - * @instance - */ - ServiceLogRecord.prototype.serviceLogId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * ServiceLogRecord serviceInfoId. - * @member {number|Long} serviceInfoId - * @memberof ServiceLogger.ServiceLogRecord - * @instance - */ - ServiceLogRecord.prototype.serviceInfoId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * ServiceLogRecord resourceId. - * @member {number|Long} resourceId - * @memberof ServiceLogger.ServiceLogRecord - * @instance - */ - ServiceLogRecord.prototype.resourceId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * ServiceLogRecord logger. - * @member {string} logger - * @memberof ServiceLogger.ServiceLogRecord - * @instance - */ - ServiceLogRecord.prototype.logger = ""; - - /** - * ServiceLogRecord logLevel. - * @member {string} logLevel - * @memberof ServiceLogger.ServiceLogRecord - * @instance - */ - ServiceLogRecord.prototype.logLevel = ""; - - /** - * ServiceLogRecord message. - * @member {string} message - * @memberof ServiceLogger.ServiceLogRecord - * @instance - */ - ServiceLogRecord.prototype.message = ""; - - /** - * ServiceLogRecord exception. - * @member {string} exception - * @memberof ServiceLogger.ServiceLogRecord + * RecordsUnshareFolderStatus recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.RecordsUnshareFolderStatus * @instance */ - ServiceLogRecord.prototype.exception = ""; + RecordsUnshareFolderStatus.prototype.recordUid = $util.newBuffer([]); /** - * ServiceLogRecord dateCreated. - * @member {string} dateCreated - * @memberof ServiceLogger.ServiceLogRecord + * RecordsUnshareFolderStatus sharedFolderUid. + * @member {Uint8Array} sharedFolderUid + * @memberof Records.RecordsUnshareFolderStatus * @instance */ - ServiceLogRecord.prototype.dateCreated = ""; + RecordsUnshareFolderStatus.prototype.sharedFolderUid = $util.newBuffer([]); /** - * Creates a new ServiceLogRecord instance using the specified properties. + * Creates a new RecordsUnshareFolderStatus instance using the specified properties. * @function create - * @memberof ServiceLogger.ServiceLogRecord + * @memberof Records.RecordsUnshareFolderStatus * @static - * @param {ServiceLogger.IServiceLogRecord=} [properties] Properties to set - * @returns {ServiceLogger.ServiceLogRecord} ServiceLogRecord instance + * @param {Records.IRecordsUnshareFolderStatus=} [properties] Properties to set + * @returns {Records.RecordsUnshareFolderStatus} RecordsUnshareFolderStatus instance */ - ServiceLogRecord.create = function create(properties) { - return new ServiceLogRecord(properties); + RecordsUnshareFolderStatus.create = function create(properties) { + return new RecordsUnshareFolderStatus(properties); }; /** - * Encodes the specified ServiceLogRecord message. Does not implicitly {@link ServiceLogger.ServiceLogRecord.verify|verify} messages. + * Encodes the specified RecordsUnshareFolderStatus message. Does not implicitly {@link Records.RecordsUnshareFolderStatus.verify|verify} messages. * @function encode - * @memberof ServiceLogger.ServiceLogRecord + * @memberof Records.RecordsUnshareFolderStatus * @static - * @param {ServiceLogger.IServiceLogRecord} message ServiceLogRecord message or plain object to encode + * @param {Records.IRecordsUnshareFolderStatus} message RecordsUnshareFolderStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogRecord.encode = function encode(message, writer) { + RecordsUnshareFolderStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.serviceLogId != null && Object.hasOwnProperty.call(message, "serviceLogId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.serviceLogId); - if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "serviceInfoId")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.serviceInfoId); - if (message.resourceId != null && Object.hasOwnProperty.call(message, "resourceId")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.resourceId); - if (message.logger != null && Object.hasOwnProperty.call(message, "logger")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.logger); - if (message.logLevel != null && Object.hasOwnProperty.call(message, "logLevel")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.logLevel); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.message); - if (message.exception != null && Object.hasOwnProperty.call(message, "exception")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.exception); - if (message.dateCreated != null && Object.hasOwnProperty.call(message, "dateCreated")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.dateCreated); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sharedFolderUid); return writer; }; /** - * Encodes the specified ServiceLogRecord message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogRecord.verify|verify} messages. + * Encodes the specified RecordsUnshareFolderStatus message, length delimited. Does not implicitly {@link Records.RecordsUnshareFolderStatus.verify|verify} messages. * @function encodeDelimited - * @memberof ServiceLogger.ServiceLogRecord + * @memberof Records.RecordsUnshareFolderStatus * @static - * @param {ServiceLogger.IServiceLogRecord} message ServiceLogRecord message or plain object to encode + * @param {Records.IRecordsUnshareFolderStatus} message RecordsUnshareFolderStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogRecord.encodeDelimited = function encodeDelimited(message, writer) { + RecordsUnshareFolderStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceLogRecord message from the specified reader or buffer. + * Decodes a RecordsUnshareFolderStatus message from the specified reader or buffer. * @function decode - * @memberof ServiceLogger.ServiceLogRecord + * @memberof Records.RecordsUnshareFolderStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ServiceLogger.ServiceLogRecord} ServiceLogRecord + * @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 */ - ServiceLogRecord.decode = function decode(reader, length) { + RecordsUnshareFolderStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogRecord(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareFolderStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.serviceLogId = reader.uint64(); + message.recordUid = reader.bytes(); break; } case 2: { - message.serviceInfoId = reader.uint64(); - break; - } - case 3: { - message.resourceId = reader.uint64(); - break; - } - case 4: { - message.logger = reader.string(); - break; - } - case 5: { - message.logLevel = reader.string(); - break; - } - case 6: { - message.message = reader.string(); - break; - } - case 7: { - message.exception = reader.string(); - break; - } - case 8: { - message.dateCreated = reader.string(); + message.sharedFolderUid = reader.bytes(); break; } default: @@ -200047,222 +202314,150 @@ export const ServiceLogger = $root.ServiceLogger = (() => { }; /** - * Decodes a ServiceLogRecord message from the specified reader or buffer, length delimited. + * Decodes a RecordsUnshareFolderStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ServiceLogger.ServiceLogRecord + * @memberof Records.RecordsUnshareFolderStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceLogRecord} ServiceLogRecord + * @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 */ - ServiceLogRecord.decodeDelimited = function decodeDelimited(reader) { + RecordsUnshareFolderStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceLogRecord message. + * Verifies a RecordsUnshareFolderStatus message. * @function verify - * @memberof ServiceLogger.ServiceLogRecord + * @memberof Records.RecordsUnshareFolderStatus * @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) { + RecordsUnshareFolderStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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"; + 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 ServiceLogRecord message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsUnshareFolderStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ServiceLogger.ServiceLogRecord + * @memberof Records.RecordsUnshareFolderStatus * @static * @param {Object.} object Plain object - * @returns {ServiceLogger.ServiceLogRecord} ServiceLogRecord + * @returns {Records.RecordsUnshareFolderStatus} RecordsUnshareFolderStatus */ - ServiceLogRecord.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceLogRecord) + RecordsUnshareFolderStatus.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordsUnshareFolderStatus) return object; - let message = new $root.ServiceLogger.ServiceLogRecord(); - if (object.serviceLogId != null) - if ($util.Long) - (message.serviceLogId = $util.Long.fromValue(object.serviceLogId)).unsigned = true; - else if (typeof object.serviceLogId === "string") - message.serviceLogId = parseInt(object.serviceLogId, 10); - else if (typeof object.serviceLogId === "number") - message.serviceLogId = object.serviceLogId; - else if (typeof object.serviceLogId === "object") - message.serviceLogId = new $util.LongBits(object.serviceLogId.low >>> 0, object.serviceLogId.high >>> 0).toNumber(true); - if (object.serviceInfoId != null) - if ($util.Long) - (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; - else if (typeof object.serviceInfoId === "string") - message.serviceInfoId = parseInt(object.serviceInfoId, 10); - else if (typeof object.serviceInfoId === "number") - message.serviceInfoId = object.serviceInfoId; - else if (typeof object.serviceInfoId === "object") - message.serviceInfoId = new $util.LongBits(object.serviceInfoId.low >>> 0, object.serviceInfoId.high >>> 0).toNumber(true); - if (object.resourceId != null) - if ($util.Long) - (message.resourceId = $util.Long.fromValue(object.resourceId)).unsigned = true; - else if (typeof object.resourceId === "string") - message.resourceId = parseInt(object.resourceId, 10); - else if (typeof object.resourceId === "number") - message.resourceId = object.resourceId; - else if (typeof object.resourceId === "object") - message.resourceId = new $util.LongBits(object.resourceId.low >>> 0, object.resourceId.high >>> 0).toNumber(true); - if (object.logger != null) - message.logger = String(object.logger); - if (object.logLevel != null) - message.logLevel = String(object.logLevel); - if (object.message != null) - message.message = String(object.message); - if (object.exception != null) - message.exception = String(object.exception); - if (object.dateCreated != null) - message.dateCreated = String(object.dateCreated); + let message = new $root.Records.RecordsUnshareFolderStatus(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.sharedFolderUid != null) + if (typeof object.sharedFolderUid === "string") + $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); + else if (object.sharedFolderUid.length >= 0) + message.sharedFolderUid = object.sharedFolderUid; return message; }; /** - * Creates a plain object from a ServiceLogRecord message. Also converts values to other types if specified. + * Creates a plain object from a RecordsUnshareFolderStatus message. Also converts values to other types if specified. * @function toObject - * @memberof ServiceLogger.ServiceLogRecord + * @memberof Records.RecordsUnshareFolderStatus * @static - * @param {ServiceLogger.ServiceLogRecord} message ServiceLogRecord + * @param {Records.RecordsUnshareFolderStatus} message RecordsUnshareFolderStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceLogRecord.toObject = function toObject(message, options) { + RecordsUnshareFolderStatus.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.serviceLogId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceLogId = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceInfoId = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.resourceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.resourceId = options.longs === String ? "0" : 0; - object.logger = ""; - object.logLevel = ""; - object.message = ""; - object.exception = ""; - object.dateCreated = ""; + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if (options.bytes === String) + object.sharedFolderUid = ""; + else { + object.sharedFolderUid = []; + if (options.bytes !== Array) + object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + } } - if (message.serviceLogId != null && message.hasOwnProperty("serviceLogId")) - if (typeof message.serviceLogId === "number") - object.serviceLogId = options.longs === String ? String(message.serviceLogId) : message.serviceLogId; - else - object.serviceLogId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceLogId) : options.longs === Number ? new $util.LongBits(message.serviceLogId.low >>> 0, message.serviceLogId.high >>> 0).toNumber(true) : message.serviceLogId; - if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) - if (typeof message.serviceInfoId === "number") - object.serviceInfoId = options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; - else - object.serviceInfoId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceInfoId) : options.longs === Number ? new $util.LongBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0).toNumber(true) : message.serviceInfoId; - if (message.resourceId != null && message.hasOwnProperty("resourceId")) - if (typeof 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")) - object.logger = message.logger; - if (message.logLevel != null && message.hasOwnProperty("logLevel")) - object.logLevel = message.logLevel; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.exception != null && message.hasOwnProperty("exception")) - object.exception = message.exception; - if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) - object.dateCreated = message.dateCreated; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; return object; }; /** - * Converts this ServiceLogRecord to JSON. + * Converts this RecordsUnshareFolderStatus to JSON. * @function toJSON - * @memberof ServiceLogger.ServiceLogRecord + * @memberof Records.RecordsUnshareFolderStatus * @instance * @returns {Object.} JSON object */ - ServiceLogRecord.prototype.toJSON = function toJSON() { + RecordsUnshareFolderStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ServiceLogRecord + * Gets the default type url for RecordsUnshareFolderStatus * @function getTypeUrl - * @memberof ServiceLogger.ServiceLogRecord + * @memberof Records.RecordsUnshareFolderStatus * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ServiceLogRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordsUnshareFolderStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/ServiceLogger.ServiceLogRecord"; + return typeUrlPrefix + "/Records.RecordsUnshareFolderStatus"; }; - return ServiceLogRecord; + return RecordsUnshareFolderStatus; })(); - ServiceLogger.ServiceLogAddRequest = (function() { + Records.RecordsUnshareUserStatus = (function() { /** - * Properties of a ServiceLogAddRequest. - * @memberof ServiceLogger - * @interface IServiceLogAddRequest - * @property {Array.|null} [entry] ServiceLogAddRequest entry + * Properties of a RecordsUnshareUserStatus. + * @memberof Records + * @interface IRecordsUnshareUserStatus + * @property {Uint8Array|null} [recordUid] RecordsUnshareUserStatus recordUid + * @property {Uint8Array|null} [accountUid] RecordsUnshareUserStatus accountUid */ /** - * Constructs a new ServiceLogAddRequest. - * @memberof ServiceLogger - * @classdesc Represents a ServiceLogAddRequest. - * @implements IServiceLogAddRequest + * Constructs a new RecordsUnshareUserStatus. + * @memberof Records + * @classdesc Represents a RecordsUnshareUserStatus. + * @implements IRecordsUnshareUserStatus * @constructor - * @param {ServiceLogger.IServiceLogAddRequest=} [properties] Properties to set + * @param {Records.IRecordsUnshareUserStatus=} [properties] Properties to set */ - function ServiceLogAddRequest(properties) { - this.entry = []; + function RecordsUnshareUserStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -200270,78 +202465,89 @@ export const ServiceLogger = $root.ServiceLogger = (() => { } /** - * ServiceLogAddRequest entry. - * @member {Array.} entry - * @memberof ServiceLogger.ServiceLogAddRequest + * RecordsUnshareUserStatus recordUid. + * @member {Uint8Array} recordUid + * @memberof Records.RecordsUnshareUserStatus * @instance */ - ServiceLogAddRequest.prototype.entry = $util.emptyArray; + RecordsUnshareUserStatus.prototype.recordUid = $util.newBuffer([]); /** - * Creates a new ServiceLogAddRequest instance using the specified properties. + * RecordsUnshareUserStatus accountUid. + * @member {Uint8Array} accountUid + * @memberof Records.RecordsUnshareUserStatus + * @instance + */ + RecordsUnshareUserStatus.prototype.accountUid = $util.newBuffer([]); + + /** + * Creates a new RecordsUnshareUserStatus instance using the specified properties. * @function create - * @memberof ServiceLogger.ServiceLogAddRequest + * @memberof Records.RecordsUnshareUserStatus * @static - * @param {ServiceLogger.IServiceLogAddRequest=} [properties] Properties to set - * @returns {ServiceLogger.ServiceLogAddRequest} ServiceLogAddRequest instance + * @param {Records.IRecordsUnshareUserStatus=} [properties] Properties to set + * @returns {Records.RecordsUnshareUserStatus} RecordsUnshareUserStatus instance */ - ServiceLogAddRequest.create = function create(properties) { - return new ServiceLogAddRequest(properties); + RecordsUnshareUserStatus.create = function create(properties) { + return new RecordsUnshareUserStatus(properties); }; /** - * Encodes the specified ServiceLogAddRequest message. Does not implicitly {@link ServiceLogger.ServiceLogAddRequest.verify|verify} messages. + * Encodes the specified RecordsUnshareUserStatus message. Does not implicitly {@link Records.RecordsUnshareUserStatus.verify|verify} messages. * @function encode - * @memberof ServiceLogger.ServiceLogAddRequest + * @memberof Records.RecordsUnshareUserStatus * @static - * @param {ServiceLogger.IServiceLogAddRequest} message ServiceLogAddRequest message or plain object to encode + * @param {Records.IRecordsUnshareUserStatus} message RecordsUnshareUserStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogAddRequest.encode = function encode(message, writer) { + RecordsUnshareUserStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entry != null && message.entry.length) - for (let i = 0; i < message.entry.length; ++i) - $root.ServiceLogger.ServiceLogRecord.encode(message.entry[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.accountUid); return writer; }; /** - * Encodes the specified ServiceLogAddRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogAddRequest.verify|verify} messages. + * Encodes the specified RecordsUnshareUserStatus message, length delimited. Does not implicitly {@link Records.RecordsUnshareUserStatus.verify|verify} messages. * @function encodeDelimited - * @memberof ServiceLogger.ServiceLogAddRequest + * @memberof Records.RecordsUnshareUserStatus * @static - * @param {ServiceLogger.IServiceLogAddRequest} message ServiceLogAddRequest message or plain object to encode + * @param {Records.IRecordsUnshareUserStatus} message RecordsUnshareUserStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogAddRequest.encodeDelimited = function encodeDelimited(message, writer) { + RecordsUnshareUserStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceLogAddRequest message from the specified reader or buffer. + * Decodes a RecordsUnshareUserStatus message from the specified reader or buffer. * @function decode - * @memberof ServiceLogger.ServiceLogAddRequest + * @memberof Records.RecordsUnshareUserStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ServiceLogger.ServiceLogAddRequest} ServiceLogAddRequest + * @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 */ - ServiceLogAddRequest.decode = function decode(reader, length) { + RecordsUnshareUserStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogAddRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareUserStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.entry && message.entry.length)) - message.entry = []; - message.entry.push($root.ServiceLogger.ServiceLogRecord.decode(reader, reader.uint32())); + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.accountUid = reader.bytes(); break; } default: @@ -200353,140 +202559,209 @@ export const ServiceLogger = $root.ServiceLogger = (() => { }; /** - * Decodes a ServiceLogAddRequest message from the specified reader or buffer, length delimited. + * Decodes a RecordsUnshareUserStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ServiceLogger.ServiceLogAddRequest + * @memberof Records.RecordsUnshareUserStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceLogAddRequest} ServiceLogAddRequest + * @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 */ - ServiceLogAddRequest.decodeDelimited = function decodeDelimited(reader) { + RecordsUnshareUserStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceLogAddRequest message. + * Verifies a RecordsUnshareUserStatus message. * @function verify - * @memberof ServiceLogger.ServiceLogAddRequest + * @memberof Records.RecordsUnshareUserStatus * @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) { + RecordsUnshareUserStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.ServiceLogger.ServiceLogRecord.verify(message.entry[i]); - if (error) - return "entry." + error; - } - } + 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 ServiceLogAddRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordsUnshareUserStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ServiceLogger.ServiceLogAddRequest + * @memberof Records.RecordsUnshareUserStatus * @static * @param {Object.} object Plain object - * @returns {ServiceLogger.ServiceLogAddRequest} ServiceLogAddRequest + * @returns {Records.RecordsUnshareUserStatus} RecordsUnshareUserStatus */ - ServiceLogAddRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceLogAddRequest) + RecordsUnshareUserStatus.fromObject = function fromObject(object) { + if (object instanceof $root.Records.RecordsUnshareUserStatus) return object; - let message = new $root.ServiceLogger.ServiceLogAddRequest(); - if (object.entry) { - if (!Array.isArray(object.entry)) - throw TypeError(".ServiceLogger.ServiceLogAddRequest.entry: array expected"); - message.entry = []; - for (let i = 0; i < object.entry.length; ++i) { - if (typeof object.entry[i] !== "object") - throw TypeError(".ServiceLogger.ServiceLogAddRequest.entry: object expected"); - message.entry[i] = $root.ServiceLogger.ServiceLogRecord.fromObject(object.entry[i]); - } - } + let message = new $root.Records.RecordsUnshareUserStatus(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.accountUid != null) + if (typeof object.accountUid === "string") + $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); + else if (object.accountUid.length >= 0) + message.accountUid = object.accountUid; return message; }; /** - * Creates a plain object from a ServiceLogAddRequest message. Also converts values to other types if specified. + * Creates a plain object from a RecordsUnshareUserStatus message. Also converts values to other types if specified. * @function toObject - * @memberof ServiceLogger.ServiceLogAddRequest + * @memberof Records.RecordsUnshareUserStatus * @static - * @param {ServiceLogger.ServiceLogAddRequest} message ServiceLogAddRequest + * @param {Records.RecordsUnshareUserStatus} message RecordsUnshareUserStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceLogAddRequest.toObject = function toObject(message, options) { + RecordsUnshareUserStatus.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.entry = []; - if (message.entry && message.entry.length) { - object.entry = []; - for (let j = 0; j < message.entry.length; ++j) - object.entry[j] = $root.ServiceLogger.ServiceLogRecord.toObject(message.entry[j], options); + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if (options.bytes === String) + object.accountUid = ""; + else { + object.accountUid = []; + if (options.bytes !== Array) + object.accountUid = $util.newBuffer(object.accountUid); + } } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.accountUid != null && message.hasOwnProperty("accountUid")) + object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; return object; }; /** - * Converts this ServiceLogAddRequest to JSON. + * Converts this RecordsUnshareUserStatus to JSON. * @function toJSON - * @memberof ServiceLogger.ServiceLogAddRequest + * @memberof Records.RecordsUnshareUserStatus * @instance * @returns {Object.} JSON object */ - ServiceLogAddRequest.prototype.toJSON = function toJSON() { + RecordsUnshareUserStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ServiceLogAddRequest + * Gets the default type url for RecordsUnshareUserStatus * @function getTypeUrl - * @memberof ServiceLogger.ServiceLogAddRequest + * @memberof Records.RecordsUnshareUserStatus * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ServiceLogAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecordsUnshareUserStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/ServiceLogger.ServiceLogAddRequest"; + return typeUrlPrefix + "/Records.RecordsUnshareUserStatus"; }; - return ServiceLogAddRequest; + return RecordsUnshareUserStatus; })(); - ServiceLogger.ServiceLogResponse = (function() { + /** + * RecordTransactionType enum. + * @name Records.RecordTransactionType + * @enum {number} + * @property {number} RTT_GENERAL=0 RTT_GENERAL value + * @property {number} RTT_ROTATION=1 RTT_ROTATION value + */ + Records.RecordTransactionType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RTT_GENERAL"] = 0; + values[valuesById[1] = "RTT_ROTATION"] = 1; + return values; + })(); + + /** + * TimeLimitedAccessType enum. + * @name Records.TimeLimitedAccessType + * @enum {number} + * @property {number} INVALID_TIME_LIMITED_ACCESS_TYPE=0 INVALID_TIME_LIMITED_ACCESS_TYPE value + * @property {number} USER_ACCESS_TO_RECORD=1 USER_ACCESS_TO_RECORD value + * @property {number} USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER=2 USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER value + * @property {number} RECORD_ACCESS_TO_SHAREDFOLDER=3 RECORD_ACCESS_TO_SHAREDFOLDER value + * @property {number} USER_ACCESS_TO_SHAREDFOLDER=4 USER_ACCESS_TO_SHAREDFOLDER value + * @property {number} TEAM_ACCESS_TO_SHAREDFOLDER=5 TEAM_ACCESS_TO_SHAREDFOLDER value + * @property {number} RECORD_ACCESS_TO_FOLDER=6 RECORD_ACCESS_TO_FOLDER value + * @property {number} USER_ACCESS_TO_FOLDER=7 USER_ACCESS_TO_FOLDER value + * @property {number} TEAM_ACCESS_TO_FOLDER=8 TEAM_ACCESS_TO_FOLDER value + * @property {number} USER_OR_TEAM_ACCESS_TO_FOLDER=9 USER_OR_TEAM_ACCESS_TO_FOLDER value + */ + Records.TimeLimitedAccessType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INVALID_TIME_LIMITED_ACCESS_TYPE"] = 0; + values[valuesById[1] = "USER_ACCESS_TO_RECORD"] = 1; + values[valuesById[2] = "USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER"] = 2; + values[valuesById[3] = "RECORD_ACCESS_TO_SHAREDFOLDER"] = 3; + values[valuesById[4] = "USER_ACCESS_TO_SHAREDFOLDER"] = 4; + values[valuesById[5] = "TEAM_ACCESS_TO_SHAREDFOLDER"] = 5; + values[valuesById[6] = "RECORD_ACCESS_TO_FOLDER"] = 6; + values[valuesById[7] = "USER_ACCESS_TO_FOLDER"] = 7; + values[valuesById[8] = "TEAM_ACCESS_TO_FOLDER"] = 8; + values[valuesById[9] = "USER_OR_TEAM_ACCESS_TO_FOLDER"] = 9; + return values; + })(); + + /** + * TimerNotificationType enum. + * @name Records.TimerNotificationType + * @enum {number} + * @property {number} NOTIFICATION_OFF=0 NOTIFICATION_OFF value + * @property {number} NOTIFY_OWNER=1 NOTIFY_OWNER value + * @property {number} NOTIFY_PRIVILEGED_USERS=2 NOTIFY_PRIVILEGED_USERS value + */ + Records.TimerNotificationType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NOTIFICATION_OFF"] = 0; + values[valuesById[1] = "NOTIFY_OWNER"] = 1; + values[valuesById[2] = "NOTIFY_PRIVILEGED_USERS"] = 2; + return values; + })(); + + Records.TimedAccessCallbackPayload = (function() { /** - * Properties of a ServiceLogResponse. - * @memberof ServiceLogger - * @interface IServiceLogResponse - * @property {Array.|null} [entry] ServiceLogResponse entry + * Properties of a TimedAccessCallbackPayload. + * @memberof Records + * @interface ITimedAccessCallbackPayload + * @property {Records.TimeLimitedAccessType|null} [timeLimitedAccessType] TimedAccessCallbackPayload timeLimitedAccessType */ /** - * Constructs a new ServiceLogResponse. - * @memberof ServiceLogger - * @classdesc Represents a ServiceLogResponse. - * @implements IServiceLogResponse + * Constructs a new TimedAccessCallbackPayload. + * @memberof Records + * @classdesc Represents a TimedAccessCallbackPayload. + * @implements ITimedAccessCallbackPayload * @constructor - * @param {ServiceLogger.IServiceLogResponse=} [properties] Properties to set + * @param {Records.ITimedAccessCallbackPayload=} [properties] Properties to set */ - function ServiceLogResponse(properties) { - this.entry = []; + function TimedAccessCallbackPayload(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -200494,78 +202769,75 @@ export const ServiceLogger = $root.ServiceLogger = (() => { } /** - * ServiceLogResponse entry. - * @member {Array.} entry - * @memberof ServiceLogger.ServiceLogResponse + * TimedAccessCallbackPayload timeLimitedAccessType. + * @member {Records.TimeLimitedAccessType} timeLimitedAccessType + * @memberof Records.TimedAccessCallbackPayload * @instance */ - ServiceLogResponse.prototype.entry = $util.emptyArray; + TimedAccessCallbackPayload.prototype.timeLimitedAccessType = 0; /** - * Creates a new ServiceLogResponse instance using the specified properties. + * Creates a new TimedAccessCallbackPayload instance using the specified properties. * @function create - * @memberof ServiceLogger.ServiceLogResponse + * @memberof Records.TimedAccessCallbackPayload * @static - * @param {ServiceLogger.IServiceLogResponse=} [properties] Properties to set - * @returns {ServiceLogger.ServiceLogResponse} ServiceLogResponse instance + * @param {Records.ITimedAccessCallbackPayload=} [properties] Properties to set + * @returns {Records.TimedAccessCallbackPayload} TimedAccessCallbackPayload instance */ - ServiceLogResponse.create = function create(properties) { - return new ServiceLogResponse(properties); + TimedAccessCallbackPayload.create = function create(properties) { + return new TimedAccessCallbackPayload(properties); }; /** - * Encodes the specified ServiceLogResponse message. Does not implicitly {@link ServiceLogger.ServiceLogResponse.verify|verify} messages. + * Encodes the specified TimedAccessCallbackPayload message. Does not implicitly {@link Records.TimedAccessCallbackPayload.verify|verify} messages. * @function encode - * @memberof ServiceLogger.ServiceLogResponse + * @memberof Records.TimedAccessCallbackPayload * @static - * @param {ServiceLogger.IServiceLogResponse} message ServiceLogResponse message or plain object to encode + * @param {Records.ITimedAccessCallbackPayload} message TimedAccessCallbackPayload message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogResponse.encode = function encode(message, writer) { + TimedAccessCallbackPayload.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entry != null && message.entry.length) - for (let i = 0; i < message.entry.length; ++i) - $root.ServiceLogger.ServiceLogRecord.encode(message.entry[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.timeLimitedAccessType != null && Object.hasOwnProperty.call(message, "timeLimitedAccessType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.timeLimitedAccessType); return writer; }; /** - * Encodes the specified ServiceLogResponse message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogResponse.verify|verify} messages. + * Encodes the specified TimedAccessCallbackPayload message, length delimited. Does not implicitly {@link Records.TimedAccessCallbackPayload.verify|verify} messages. * @function encodeDelimited - * @memberof ServiceLogger.ServiceLogResponse + * @memberof Records.TimedAccessCallbackPayload * @static - * @param {ServiceLogger.IServiceLogResponse} message ServiceLogResponse message or plain object to encode + * @param {Records.ITimedAccessCallbackPayload} message TimedAccessCallbackPayload message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogResponse.encodeDelimited = function encodeDelimited(message, writer) { + TimedAccessCallbackPayload.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceLogResponse message from the specified reader or buffer. + * Decodes a TimedAccessCallbackPayload message from the specified reader or buffer. * @function decode - * @memberof ServiceLogger.ServiceLogResponse + * @memberof Records.TimedAccessCallbackPayload * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ServiceLogger.ServiceLogResponse} ServiceLogResponse + * @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 */ - ServiceLogResponse.decode = function decode(reader, length) { + TimedAccessCallbackPayload.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TimedAccessCallbackPayload(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.entry && message.entry.length)) - message.entry = []; - message.entry.push($root.ServiceLogger.ServiceLogRecord.decode(reader, reader.uint32())); + message.timeLimitedAccessType = reader.int32(); break; } default: @@ -200577,144 +202849,190 @@ export const ServiceLogger = $root.ServiceLogger = (() => { }; /** - * Decodes a ServiceLogResponse message from the specified reader or buffer, length delimited. + * Decodes a TimedAccessCallbackPayload message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ServiceLogger.ServiceLogResponse + * @memberof Records.TimedAccessCallbackPayload * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceLogResponse} ServiceLogResponse + * @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 */ - ServiceLogResponse.decodeDelimited = function decodeDelimited(reader) { + TimedAccessCallbackPayload.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceLogResponse message. + * Verifies a TimedAccessCallbackPayload message. * @function verify - * @memberof ServiceLogger.ServiceLogResponse + * @memberof Records.TimedAccessCallbackPayload * @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) { + TimedAccessCallbackPayload.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.ServiceLogger.ServiceLogRecord.verify(message.entry[i]); - if (error) - return "entry." + error; + 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 ServiceLogResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TimedAccessCallbackPayload message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ServiceLogger.ServiceLogResponse + * @memberof Records.TimedAccessCallbackPayload * @static * @param {Object.} object Plain object - * @returns {ServiceLogger.ServiceLogResponse} ServiceLogResponse + * @returns {Records.TimedAccessCallbackPayload} TimedAccessCallbackPayload */ - ServiceLogResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceLogResponse) + TimedAccessCallbackPayload.fromObject = function fromObject(object) { + if (object instanceof $root.Records.TimedAccessCallbackPayload) return object; - let message = new $root.ServiceLogger.ServiceLogResponse(); - if (object.entry) { - if (!Array.isArray(object.entry)) - throw TypeError(".ServiceLogger.ServiceLogResponse.entry: array expected"); - message.entry = []; - for (let i = 0; i < object.entry.length; ++i) { - if (typeof object.entry[i] !== "object") - throw TypeError(".ServiceLogger.ServiceLogResponse.entry: object expected"); - message.entry[i] = $root.ServiceLogger.ServiceLogRecord.fromObject(object.entry[i]); + let message = new $root.Records.TimedAccessCallbackPayload(); + switch (object.timeLimitedAccessType) { + default: + if (typeof object.timeLimitedAccessType === "number") { + message.timeLimitedAccessType = object.timeLimitedAccessType; + break; } + break; + case "INVALID_TIME_LIMITED_ACCESS_TYPE": + case 0: + message.timeLimitedAccessType = 0; + break; + case "USER_ACCESS_TO_RECORD": + case 1: + message.timeLimitedAccessType = 1; + break; + case "USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER": + case 2: + message.timeLimitedAccessType = 2; + break; + case "RECORD_ACCESS_TO_SHAREDFOLDER": + case 3: + message.timeLimitedAccessType = 3; + break; + case "USER_ACCESS_TO_SHAREDFOLDER": + case 4: + message.timeLimitedAccessType = 4; + break; + case "TEAM_ACCESS_TO_SHAREDFOLDER": + case 5: + message.timeLimitedAccessType = 5; + break; + case "RECORD_ACCESS_TO_FOLDER": + case 6: + message.timeLimitedAccessType = 6; + break; + case "USER_ACCESS_TO_FOLDER": + case 7: + message.timeLimitedAccessType = 7; + break; + case "TEAM_ACCESS_TO_FOLDER": + case 8: + message.timeLimitedAccessType = 8; + break; + case "USER_OR_TEAM_ACCESS_TO_FOLDER": + case 9: + message.timeLimitedAccessType = 9; + break; } return message; }; /** - * Creates a plain object from a ServiceLogResponse message. Also converts values to other types if specified. + * Creates a plain object from a TimedAccessCallbackPayload message. Also converts values to other types if specified. * @function toObject - * @memberof ServiceLogger.ServiceLogResponse + * @memberof Records.TimedAccessCallbackPayload * @static - * @param {ServiceLogger.ServiceLogResponse} message ServiceLogResponse + * @param {Records.TimedAccessCallbackPayload} message TimedAccessCallbackPayload * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceLogResponse.toObject = function toObject(message, options) { + TimedAccessCallbackPayload.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.entry = []; - if (message.entry && message.entry.length) { - object.entry = []; - for (let j = 0; j < message.entry.length; ++j) - object.entry[j] = $root.ServiceLogger.ServiceLogRecord.toObject(message.entry[j], options); - } + if (options.defaults) + object.timeLimitedAccessType = options.enums === String ? "INVALID_TIME_LIMITED_ACCESS_TYPE" : 0; + if (message.timeLimitedAccessType != null && message.hasOwnProperty("timeLimitedAccessType")) + object.timeLimitedAccessType = options.enums === String ? $root.Records.TimeLimitedAccessType[message.timeLimitedAccessType] === undefined ? message.timeLimitedAccessType : $root.Records.TimeLimitedAccessType[message.timeLimitedAccessType] : message.timeLimitedAccessType; return object; }; /** - * Converts this ServiceLogResponse to JSON. + * Converts this TimedAccessCallbackPayload to JSON. * @function toJSON - * @memberof ServiceLogger.ServiceLogResponse + * @memberof Records.TimedAccessCallbackPayload * @instance * @returns {Object.} JSON object */ - ServiceLogResponse.prototype.toJSON = function toJSON() { + TimedAccessCallbackPayload.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ServiceLogResponse + * Gets the default type url for TimedAccessCallbackPayload * @function getTypeUrl - * @memberof ServiceLogger.ServiceLogResponse + * @memberof Records.TimedAccessCallbackPayload * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ServiceLogResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TimedAccessCallbackPayload.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/ServiceLogger.ServiceLogResponse"; + return typeUrlPrefix + "/Records.TimedAccessCallbackPayload"; }; - return ServiceLogResponse; + return TimedAccessCallbackPayload; })(); - ServiceLogger.ServiceLogClearRequest = (function() { + Records.TimeLimitedAccessRequest = (function() { /** - * Properties of a ServiceLogClearRequest. - * @memberof ServiceLogger - * @interface IServiceLogClearRequest - * @property {boolean|null} [useDefaults] ServiceLogClearRequest useDefaults - * @property {number|Long|null} [serviceTypeId] ServiceLogClearRequest serviceTypeId - * @property {number|null} [daysOld] ServiceLogClearRequest daysOld - * @property {number|null} [hoursOld] ServiceLogClearRequest hoursOld - * @property {Array.|null} [resourceIdRange] ServiceLogClearRequest resourceIdRange + * Properties of a TimeLimitedAccessRequest. + * @memberof Records + * @interface ITimeLimitedAccessRequest + * @property {Array.|null} [accountUid] TimeLimitedAccessRequest accountUid + * @property {Array.|null} [teamUid] TimeLimitedAccessRequest teamUid + * @property {Array.|null} [recordUid] TimeLimitedAccessRequest recordUid + * @property {Uint8Array|null} [sharedObjectUid] TimeLimitedAccessRequest sharedObjectUid + * @property {Records.TimeLimitedAccessType|null} [timeLimitedAccessType] TimeLimitedAccessRequest timeLimitedAccessType + * @property {number|Long|null} [expiration] TimeLimitedAccessRequest expiration + * @property {Records.TimerNotificationType|null} [timerNotificationType] TimeLimitedAccessRequest timerNotificationType */ /** - * Constructs a new ServiceLogClearRequest. - * @memberof ServiceLogger - * @classdesc This is a request to clear the SSO Service Provider log - * @implements IServiceLogClearRequest + * Constructs a new TimeLimitedAccessRequest. + * @memberof Records + * @classdesc Represents a TimeLimitedAccessRequest. + * @implements ITimeLimitedAccessRequest * @constructor - * @param {ServiceLogger.IServiceLogClearRequest=} [properties] Properties to set + * @param {Records.ITimeLimitedAccessRequest=} [properties] Properties to set */ - function ServiceLogClearRequest(properties) { - this.resourceIdRange = []; + function TimeLimitedAccessRequest(properties) { + this.accountUid = []; + this.teamUid = []; + this.recordUid = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -200722,134 +203040,168 @@ export const ServiceLogger = $root.ServiceLogger = (() => { } /** - * ServiceLogClearRequest useDefaults. - * @member {boolean} useDefaults - * @memberof ServiceLogger.ServiceLogClearRequest + * TimeLimitedAccessRequest accountUid. + * @member {Array.} accountUid + * @memberof Records.TimeLimitedAccessRequest * @instance */ - ServiceLogClearRequest.prototype.useDefaults = false; + TimeLimitedAccessRequest.prototype.accountUid = $util.emptyArray; /** - * ServiceLogClearRequest serviceTypeId. - * @member {number|Long} serviceTypeId - * @memberof ServiceLogger.ServiceLogClearRequest + * TimeLimitedAccessRequest teamUid. + * @member {Array.} teamUid + * @memberof Records.TimeLimitedAccessRequest * @instance */ - ServiceLogClearRequest.prototype.serviceTypeId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + TimeLimitedAccessRequest.prototype.teamUid = $util.emptyArray; /** - * ServiceLogClearRequest daysOld. - * @member {number} daysOld - * @memberof ServiceLogger.ServiceLogClearRequest + * TimeLimitedAccessRequest recordUid. + * @member {Array.} recordUid + * @memberof Records.TimeLimitedAccessRequest * @instance */ - ServiceLogClearRequest.prototype.daysOld = 0; + TimeLimitedAccessRequest.prototype.recordUid = $util.emptyArray; /** - * ServiceLogClearRequest hoursOld. - * @member {number} hoursOld - * @memberof ServiceLogger.ServiceLogClearRequest + * TimeLimitedAccessRequest sharedObjectUid. + * @member {Uint8Array} sharedObjectUid + * @memberof Records.TimeLimitedAccessRequest * @instance */ - ServiceLogClearRequest.prototype.hoursOld = 0; + TimeLimitedAccessRequest.prototype.sharedObjectUid = $util.newBuffer([]); /** - * ServiceLogClearRequest resourceIdRange. - * @member {Array.} resourceIdRange - * @memberof ServiceLogger.ServiceLogClearRequest + * TimeLimitedAccessRequest timeLimitedAccessType. + * @member {Records.TimeLimitedAccessType} timeLimitedAccessType + * @memberof Records.TimeLimitedAccessRequest * @instance */ - ServiceLogClearRequest.prototype.resourceIdRange = $util.emptyArray; + TimeLimitedAccessRequest.prototype.timeLimitedAccessType = 0; /** - * Creates a new ServiceLogClearRequest instance using the specified properties. + * TimeLimitedAccessRequest expiration. + * @member {number|Long} expiration + * @memberof Records.TimeLimitedAccessRequest + * @instance + */ + TimeLimitedAccessRequest.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * TimeLimitedAccessRequest timerNotificationType. + * @member {Records.TimerNotificationType} timerNotificationType + * @memberof Records.TimeLimitedAccessRequest + * @instance + */ + TimeLimitedAccessRequest.prototype.timerNotificationType = 0; + + /** + * Creates a new TimeLimitedAccessRequest instance using the specified properties. * @function create - * @memberof ServiceLogger.ServiceLogClearRequest + * @memberof Records.TimeLimitedAccessRequest * @static - * @param {ServiceLogger.IServiceLogClearRequest=} [properties] Properties to set - * @returns {ServiceLogger.ServiceLogClearRequest} ServiceLogClearRequest instance + * @param {Records.ITimeLimitedAccessRequest=} [properties] Properties to set + * @returns {Records.TimeLimitedAccessRequest} TimeLimitedAccessRequest instance */ - ServiceLogClearRequest.create = function create(properties) { - return new ServiceLogClearRequest(properties); + TimeLimitedAccessRequest.create = function create(properties) { + return new TimeLimitedAccessRequest(properties); }; /** - * Encodes the specified ServiceLogClearRequest message. Does not implicitly {@link ServiceLogger.ServiceLogClearRequest.verify|verify} messages. + * Encodes the specified TimeLimitedAccessRequest message. Does not implicitly {@link Records.TimeLimitedAccessRequest.verify|verify} messages. * @function encode - * @memberof ServiceLogger.ServiceLogClearRequest + * @memberof Records.TimeLimitedAccessRequest * @static - * @param {ServiceLogger.IServiceLogClearRequest} message ServiceLogClearRequest message or plain object to encode + * @param {Records.ITimeLimitedAccessRequest} message TimeLimitedAccessRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogClearRequest.encode = function encode(message, writer) { + TimeLimitedAccessRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.useDefaults != null && Object.hasOwnProperty.call(message, "useDefaults")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useDefaults); - if (message.serviceTypeId != null && Object.hasOwnProperty.call(message, "serviceTypeId")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.serviceTypeId); - if (message.daysOld != null && Object.hasOwnProperty.call(message, "daysOld")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.daysOld); - if (message.hoursOld != null && Object.hasOwnProperty.call(message, "hoursOld")) - writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.hoursOld); - if (message.resourceIdRange != null && message.resourceIdRange.length) - for (let i = 0; i < message.resourceIdRange.length; ++i) - $root.ServiceLogger.IdRange.encode(message.resourceIdRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.accountUid != null && message.accountUid.length) + for (let i = 0; i < message.accountUid.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.accountUid[i]); + if (message.teamUid != null && message.teamUid.length) + for (let i = 0; i < message.teamUid.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.teamUid[i]); + if (message.recordUid != null && message.recordUid.length) + for (let i = 0; i < message.recordUid.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordUid[i]); + if (message.sharedObjectUid != null && Object.hasOwnProperty.call(message, "sharedObjectUid")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.sharedObjectUid); + if (message.timeLimitedAccessType != null && Object.hasOwnProperty.call(message, "timeLimitedAccessType")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.timeLimitedAccessType); + if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.expiration); + if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.timerNotificationType); return writer; }; /** - * Encodes the specified ServiceLogClearRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogClearRequest.verify|verify} messages. + * Encodes the specified TimeLimitedAccessRequest message, length delimited. Does not implicitly {@link Records.TimeLimitedAccessRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ServiceLogger.ServiceLogClearRequest + * @memberof Records.TimeLimitedAccessRequest * @static - * @param {ServiceLogger.IServiceLogClearRequest} message ServiceLogClearRequest message or plain object to encode + * @param {Records.ITimeLimitedAccessRequest} message TimeLimitedAccessRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogClearRequest.encodeDelimited = function encodeDelimited(message, writer) { + TimeLimitedAccessRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceLogClearRequest message from the specified reader or buffer. + * Decodes a TimeLimitedAccessRequest message from the specified reader or buffer. * @function decode - * @memberof ServiceLogger.ServiceLogClearRequest + * @memberof Records.TimeLimitedAccessRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ServiceLogger.ServiceLogClearRequest} ServiceLogClearRequest + * @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 */ - ServiceLogClearRequest.decode = function decode(reader, length) { + TimeLimitedAccessRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogClearRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TimeLimitedAccessRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.useDefaults = reader.bool(); + if (!(message.accountUid && message.accountUid.length)) + message.accountUid = []; + message.accountUid.push(reader.bytes()); break; } case 2: { - message.serviceTypeId = reader.uint64(); + if (!(message.teamUid && message.teamUid.length)) + message.teamUid = []; + message.teamUid.push(reader.bytes()); break; } case 3: { - message.daysOld = reader.uint32(); + if (!(message.recordUid && message.recordUid.length)) + message.recordUid = []; + message.recordUid.push(reader.bytes()); break; } case 4: { - message.hoursOld = reader.uint32(); + message.sharedObjectUid = reader.bytes(); break; } case 5: { - if (!(message.resourceIdRange && message.resourceIdRange.length)) - message.resourceIdRange = []; - message.resourceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32())); + message.timeLimitedAccessType = reader.int32(); + break; + } + case 6: { + message.expiration = reader.int64(); + break; + } + case 7: { + message.timerNotificationType = reader.int32(); break; } default: @@ -200861,192 +203213,325 @@ export const ServiceLogger = $root.ServiceLogger = (() => { }; /** - * Decodes a ServiceLogClearRequest message from the specified reader or buffer, length delimited. + * Decodes a TimeLimitedAccessRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ServiceLogger.ServiceLogClearRequest + * @memberof Records.TimeLimitedAccessRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceLogClearRequest} ServiceLogClearRequest + * @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 */ - ServiceLogClearRequest.decodeDelimited = function decodeDelimited(reader) { + TimeLimitedAccessRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceLogClearRequest message. + * Verifies a TimeLimitedAccessRequest message. * @function verify - * @memberof ServiceLogger.ServiceLogClearRequest + * @memberof Records.TimeLimitedAccessRequest * @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) { + TimeLimitedAccessRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "resourceIdRange." + error; - } + 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 ServiceLogClearRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TimeLimitedAccessRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ServiceLogger.ServiceLogClearRequest + * @memberof Records.TimeLimitedAccessRequest * @static * @param {Object.} object Plain object - * @returns {ServiceLogger.ServiceLogClearRequest} ServiceLogClearRequest + * @returns {Records.TimeLimitedAccessRequest} TimeLimitedAccessRequest */ - ServiceLogClearRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceLogClearRequest) + TimeLimitedAccessRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Records.TimeLimitedAccessRequest) return object; - let message = new $root.ServiceLogger.ServiceLogClearRequest(); - if (object.useDefaults != null) - message.useDefaults = Boolean(object.useDefaults); - if (object.serviceTypeId != null) + let message = new $root.Records.TimeLimitedAccessRequest(); + if (object.accountUid) { + if (!Array.isArray(object.accountUid)) + throw TypeError(".Records.TimeLimitedAccessRequest.accountUid: array expected"); + message.accountUid = []; + for (let i = 0; i < object.accountUid.length; ++i) + if (typeof object.accountUid[i] === "string") + $util.base64.decode(object.accountUid[i], message.accountUid[i] = $util.newBuffer($util.base64.length(object.accountUid[i])), 0); + else if (object.accountUid[i].length >= 0) + message.accountUid[i] = object.accountUid[i]; + } + if (object.teamUid) { + if (!Array.isArray(object.teamUid)) + throw TypeError(".Records.TimeLimitedAccessRequest.teamUid: array expected"); + message.teamUid = []; + for (let i = 0; i < object.teamUid.length; ++i) + if (typeof object.teamUid[i] === "string") + $util.base64.decode(object.teamUid[i], message.teamUid[i] = $util.newBuffer($util.base64.length(object.teamUid[i])), 0); + else if (object.teamUid[i].length >= 0) + message.teamUid[i] = object.teamUid[i]; + } + if (object.recordUid) { + if (!Array.isArray(object.recordUid)) + throw TypeError(".Records.TimeLimitedAccessRequest.recordUid: array expected"); + message.recordUid = []; + for (let i = 0; i < object.recordUid.length; ++i) + if (typeof object.recordUid[i] === "string") + $util.base64.decode(object.recordUid[i], message.recordUid[i] = $util.newBuffer($util.base64.length(object.recordUid[i])), 0); + else if (object.recordUid[i].length >= 0) + message.recordUid[i] = object.recordUid[i]; + } + if (object.sharedObjectUid != null) + if (typeof object.sharedObjectUid === "string") + $util.base64.decode(object.sharedObjectUid, message.sharedObjectUid = $util.newBuffer($util.base64.length(object.sharedObjectUid)), 0); + else if (object.sharedObjectUid.length >= 0) + message.sharedObjectUid = object.sharedObjectUid; + switch (object.timeLimitedAccessType) { + default: + if (typeof object.timeLimitedAccessType === "number") { + message.timeLimitedAccessType = object.timeLimitedAccessType; + break; + } + break; + case "INVALID_TIME_LIMITED_ACCESS_TYPE": + case 0: + message.timeLimitedAccessType = 0; + break; + case "USER_ACCESS_TO_RECORD": + case 1: + message.timeLimitedAccessType = 1; + break; + case "USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER": + case 2: + message.timeLimitedAccessType = 2; + break; + case "RECORD_ACCESS_TO_SHAREDFOLDER": + case 3: + message.timeLimitedAccessType = 3; + break; + case "USER_ACCESS_TO_SHAREDFOLDER": + case 4: + message.timeLimitedAccessType = 4; + break; + case "TEAM_ACCESS_TO_SHAREDFOLDER": + case 5: + message.timeLimitedAccessType = 5; + break; + case "RECORD_ACCESS_TO_FOLDER": + case 6: + message.timeLimitedAccessType = 6; + break; + case "USER_ACCESS_TO_FOLDER": + case 7: + message.timeLimitedAccessType = 7; + break; + case "TEAM_ACCESS_TO_FOLDER": + case 8: + message.timeLimitedAccessType = 8; + break; + case "USER_OR_TEAM_ACCESS_TO_FOLDER": + case 9: + message.timeLimitedAccessType = 9; + break; + } + if (object.expiration != null) if ($util.Long) - (message.serviceTypeId = $util.Long.fromValue(object.serviceTypeId)).unsigned = true; - else if (typeof object.serviceTypeId === "string") - message.serviceTypeId = parseInt(object.serviceTypeId, 10); - else if (typeof object.serviceTypeId === "number") - message.serviceTypeId = object.serviceTypeId; - else if (typeof object.serviceTypeId === "object") - message.serviceTypeId = new $util.LongBits(object.serviceTypeId.low >>> 0, object.serviceTypeId.high >>> 0).toNumber(true); - if (object.daysOld != null) - message.daysOld = object.daysOld >>> 0; - if (object.hoursOld != null) - message.hoursOld = object.hoursOld >>> 0; - if (object.resourceIdRange) { - if (!Array.isArray(object.resourceIdRange)) - throw TypeError(".ServiceLogger.ServiceLogClearRequest.resourceIdRange: array expected"); - message.resourceIdRange = []; - for (let i = 0; i < object.resourceIdRange.length; ++i) { - if (typeof object.resourceIdRange[i] !== "object") - throw TypeError(".ServiceLogger.ServiceLogClearRequest.resourceIdRange: object expected"); - message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i]); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === "string") + message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === "number") + message.expiration = object.expiration; + else if (typeof object.expiration === "object") + message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + switch (object.timerNotificationType) { + default: + if (typeof object.timerNotificationType === "number") { + message.timerNotificationType = object.timerNotificationType; + break; } + break; + case "NOTIFICATION_OFF": + case 0: + message.timerNotificationType = 0; + break; + case "NOTIFY_OWNER": + case 1: + message.timerNotificationType = 1; + break; + case "NOTIFY_PRIVILEGED_USERS": + case 2: + message.timerNotificationType = 2; + break; } return message; }; /** - * Creates a plain object from a ServiceLogClearRequest message. Also converts values to other types if specified. + * Creates a plain object from a TimeLimitedAccessRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ServiceLogger.ServiceLogClearRequest + * @memberof Records.TimeLimitedAccessRequest * @static - * @param {ServiceLogger.ServiceLogClearRequest} message ServiceLogClearRequest + * @param {Records.TimeLimitedAccessRequest} message TimeLimitedAccessRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceLogClearRequest.toObject = function toObject(message, options) { + TimeLimitedAccessRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.resourceIdRange = []; + if (options.arrays || options.defaults) { + object.accountUid = []; + object.teamUid = []; + object.recordUid = []; + } if (options.defaults) { - object.useDefaults = false; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.serviceTypeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceTypeId = options.longs === String ? "0" : 0; - object.daysOld = 0; - object.hoursOld = 0; + if (options.bytes === String) + object.sharedObjectUid = ""; + else { + object.sharedObjectUid = []; + if (options.bytes !== Array) + object.sharedObjectUid = $util.newBuffer(object.sharedObjectUid); + } + object.timeLimitedAccessType = options.enums === String ? "INVALID_TIME_LIMITED_ACCESS_TYPE" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.expiration = options.longs === String ? "0" : 0; + object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; } - if (message.useDefaults != null && message.hasOwnProperty("useDefaults")) - object.useDefaults = message.useDefaults; - if (message.serviceTypeId != null && message.hasOwnProperty("serviceTypeId")) - 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")) - object.daysOld = message.daysOld; - if (message.hoursOld != null && message.hasOwnProperty("hoursOld")) - object.hoursOld = message.hoursOld; - 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); + if (message.accountUid && message.accountUid.length) { + object.accountUid = []; + for (let j = 0; j < message.accountUid.length; ++j) + object.accountUid[j] = options.bytes === String ? $util.base64.encode(message.accountUid[j], 0, message.accountUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid[j]) : message.accountUid[j]; + } + if (message.teamUid && message.teamUid.length) { + object.teamUid = []; + for (let j = 0; j < message.teamUid.length; ++j) + object.teamUid[j] = options.bytes === String ? $util.base64.encode(message.teamUid[j], 0, message.teamUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid[j]) : message.teamUid[j]; } + if (message.recordUid && message.recordUid.length) { + object.recordUid = []; + 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")) + 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")) + object.timeLimitedAccessType = options.enums === String ? $root.Records.TimeLimitedAccessType[message.timeLimitedAccessType] === undefined ? message.timeLimitedAccessType : $root.Records.TimeLimitedAccessType[message.timeLimitedAccessType] : message.timeLimitedAccessType; + if (message.expiration != null && message.hasOwnProperty("expiration")) + if (typeof message.expiration === "number") + object.expiration = options.longs === String ? String(message.expiration) : message.expiration; + else + object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; + if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) + object.timerNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.Records.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; return object; }; /** - * Converts this ServiceLogClearRequest to JSON. + * Converts this TimeLimitedAccessRequest to JSON. * @function toJSON - * @memberof ServiceLogger.ServiceLogClearRequest + * @memberof Records.TimeLimitedAccessRequest * @instance * @returns {Object.} JSON object */ - ServiceLogClearRequest.prototype.toJSON = function toJSON() { + TimeLimitedAccessRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ServiceLogClearRequest + * Gets the default type url for TimeLimitedAccessRequest * @function getTypeUrl - * @memberof ServiceLogger.ServiceLogClearRequest + * @memberof Records.TimeLimitedAccessRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ServiceLogClearRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TimeLimitedAccessRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/ServiceLogger.ServiceLogClearRequest"; + return typeUrlPrefix + "/Records.TimeLimitedAccessRequest"; }; - return ServiceLogClearRequest; + return TimeLimitedAccessRequest; })(); - ServiceLogger.ServiceLogClearResponse = (function() { + Records.TimeLimitedAccessStatus = (function() { /** - * Properties of a ServiceLogClearResponse. - * @memberof ServiceLogger - * @interface IServiceLogClearResponse - * @property {number|Long|null} [serviceTypeId] ServiceLogClearResponse serviceTypeId - * @property {string|null} [serviceName] ServiceLogClearResponse serviceName - * @property {Array.|null} [resourceIdRange] ServiceLogClearResponse resourceIdRange - * @property {number|null} [numDeleted] ServiceLogClearResponse numDeleted - * @property {number|null} [numRemaining] ServiceLogClearResponse numRemaining + * Properties of a TimeLimitedAccessStatus. + * @memberof Records + * @interface ITimeLimitedAccessStatus + * @property {Uint8Array|null} [uid] TimeLimitedAccessStatus uid + * @property {string|null} [message] TimeLimitedAccessStatus message */ /** - * Constructs a new ServiceLogClearResponse. - * @memberof ServiceLogger - * @classdesc This is the response from the sso_log_clear command - * @implements IServiceLogClearResponse + * Constructs a new TimeLimitedAccessStatus. + * @memberof Records + * @classdesc Represents a TimeLimitedAccessStatus. + * @implements ITimeLimitedAccessStatus * @constructor - * @param {ServiceLogger.IServiceLogClearResponse=} [properties] Properties to set + * @param {Records.ITimeLimitedAccessStatus=} [properties] Properties to set */ - function ServiceLogClearResponse(properties) { - this.resourceIdRange = []; + function TimeLimitedAccessStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -201054,134 +203539,89 @@ export const ServiceLogger = $root.ServiceLogger = (() => { } /** - * ServiceLogClearResponse serviceTypeId. - * @member {number|Long} serviceTypeId - * @memberof ServiceLogger.ServiceLogClearResponse - * @instance - */ - ServiceLogClearResponse.prototype.serviceTypeId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * ServiceLogClearResponse serviceName. - * @member {string} serviceName - * @memberof ServiceLogger.ServiceLogClearResponse - * @instance - */ - ServiceLogClearResponse.prototype.serviceName = ""; - - /** - * ServiceLogClearResponse resourceIdRange. - * @member {Array.} resourceIdRange - * @memberof ServiceLogger.ServiceLogClearResponse - * @instance - */ - ServiceLogClearResponse.prototype.resourceIdRange = $util.emptyArray; - - /** - * ServiceLogClearResponse numDeleted. - * @member {number} numDeleted - * @memberof ServiceLogger.ServiceLogClearResponse + * TimeLimitedAccessStatus uid. + * @member {Uint8Array} uid + * @memberof Records.TimeLimitedAccessStatus * @instance */ - ServiceLogClearResponse.prototype.numDeleted = 0; + TimeLimitedAccessStatus.prototype.uid = $util.newBuffer([]); /** - * ServiceLogClearResponse numRemaining. - * @member {number} numRemaining - * @memberof ServiceLogger.ServiceLogClearResponse + * TimeLimitedAccessStatus message. + * @member {string} message + * @memberof Records.TimeLimitedAccessStatus * @instance */ - ServiceLogClearResponse.prototype.numRemaining = 0; + TimeLimitedAccessStatus.prototype.message = ""; /** - * Creates a new ServiceLogClearResponse instance using the specified properties. + * Creates a new TimeLimitedAccessStatus instance using the specified properties. * @function create - * @memberof ServiceLogger.ServiceLogClearResponse + * @memberof Records.TimeLimitedAccessStatus * @static - * @param {ServiceLogger.IServiceLogClearResponse=} [properties] Properties to set - * @returns {ServiceLogger.ServiceLogClearResponse} ServiceLogClearResponse instance + * @param {Records.ITimeLimitedAccessStatus=} [properties] Properties to set + * @returns {Records.TimeLimitedAccessStatus} TimeLimitedAccessStatus instance */ - ServiceLogClearResponse.create = function create(properties) { - return new ServiceLogClearResponse(properties); + TimeLimitedAccessStatus.create = function create(properties) { + return new TimeLimitedAccessStatus(properties); }; /** - * Encodes the specified ServiceLogClearResponse message. Does not implicitly {@link ServiceLogger.ServiceLogClearResponse.verify|verify} messages. + * Encodes the specified TimeLimitedAccessStatus message. Does not implicitly {@link Records.TimeLimitedAccessStatus.verify|verify} messages. * @function encode - * @memberof ServiceLogger.ServiceLogClearResponse + * @memberof Records.TimeLimitedAccessStatus * @static - * @param {ServiceLogger.IServiceLogClearResponse} message ServiceLogClearResponse message or plain object to encode + * @param {Records.ITimeLimitedAccessStatus} message TimeLimitedAccessStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogClearResponse.encode = function encode(message, writer) { + TimeLimitedAccessStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.serviceTypeId != null && Object.hasOwnProperty.call(message, "serviceTypeId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.serviceTypeId); - if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceName); - if (message.resourceIdRange != null && message.resourceIdRange.length) - for (let i = 0; i < message.resourceIdRange.length; ++i) - $root.ServiceLogger.IdRange.encode(message.resourceIdRange[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.numDeleted != null && Object.hasOwnProperty.call(message, "numDeleted")) - writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.numDeleted); - if (message.numRemaining != null && Object.hasOwnProperty.call(message, "numRemaining")) - writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.numRemaining); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); return writer; }; /** - * Encodes the specified ServiceLogClearResponse message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogClearResponse.verify|verify} messages. + * Encodes the specified TimeLimitedAccessStatus message, length delimited. Does not implicitly {@link Records.TimeLimitedAccessStatus.verify|verify} messages. * @function encodeDelimited - * @memberof ServiceLogger.ServiceLogClearResponse + * @memberof Records.TimeLimitedAccessStatus * @static - * @param {ServiceLogger.IServiceLogClearResponse} message ServiceLogClearResponse message or plain object to encode + * @param {Records.ITimeLimitedAccessStatus} message TimeLimitedAccessStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogClearResponse.encodeDelimited = function encodeDelimited(message, writer) { + TimeLimitedAccessStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceLogClearResponse message from the specified reader or buffer. + * Decodes a TimeLimitedAccessStatus message from the specified reader or buffer. * @function decode - * @memberof ServiceLogger.ServiceLogClearResponse + * @memberof Records.TimeLimitedAccessStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ServiceLogger.ServiceLogClearResponse} ServiceLogClearResponse + * @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 */ - ServiceLogClearResponse.decode = function decode(reader, length) { + TimeLimitedAccessStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogClearResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TimeLimitedAccessStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.serviceTypeId = reader.uint64(); + message.uid = reader.bytes(); break; } case 2: { - message.serviceName = reader.string(); - break; - } - case 3: { - if (!(message.resourceIdRange && message.resourceIdRange.length)) - message.resourceIdRange = []; - message.resourceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32())); - break; - } - case 4: { - message.numDeleted = reader.uint32(); - break; - } - case 5: { - message.numRemaining = reader.uint32(); + message.message = reader.string(); break; } default: @@ -201193,214 +203633,146 @@ export const ServiceLogger = $root.ServiceLogger = (() => { }; /** - * Decodes a ServiceLogClearResponse message from the specified reader or buffer, length delimited. + * Decodes a TimeLimitedAccessStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ServiceLogger.ServiceLogClearResponse + * @memberof Records.TimeLimitedAccessStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ServiceLogger.ServiceLogClearResponse} ServiceLogClearResponse + * @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 */ - ServiceLogClearResponse.decodeDelimited = function decodeDelimited(reader) { + TimeLimitedAccessStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceLogClearResponse message. + * Verifies a TimeLimitedAccessStatus message. * @function verify - * @memberof ServiceLogger.ServiceLogClearResponse + * @memberof Records.TimeLimitedAccessStatus * @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) { + TimeLimitedAccessStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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]); - 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"; + 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 ServiceLogClearResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TimeLimitedAccessStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ServiceLogger.ServiceLogClearResponse + * @memberof Records.TimeLimitedAccessStatus * @static * @param {Object.} object Plain object - * @returns {ServiceLogger.ServiceLogClearResponse} ServiceLogClearResponse + * @returns {Records.TimeLimitedAccessStatus} TimeLimitedAccessStatus */ - ServiceLogClearResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceLogClearResponse) + TimeLimitedAccessStatus.fromObject = function fromObject(object) { + if (object instanceof $root.Records.TimeLimitedAccessStatus) return object; - let message = new $root.ServiceLogger.ServiceLogClearResponse(); - if (object.serviceTypeId != null) - if ($util.Long) - (message.serviceTypeId = $util.Long.fromValue(object.serviceTypeId)).unsigned = true; - else if (typeof object.serviceTypeId === "string") - message.serviceTypeId = parseInt(object.serviceTypeId, 10); - else if (typeof object.serviceTypeId === "number") - message.serviceTypeId = object.serviceTypeId; - else if (typeof object.serviceTypeId === "object") - message.serviceTypeId = new $util.LongBits(object.serviceTypeId.low >>> 0, object.serviceTypeId.high >>> 0).toNumber(true); - if (object.serviceName != null) - message.serviceName = String(object.serviceName); - if (object.resourceIdRange) { - if (!Array.isArray(object.resourceIdRange)) - throw TypeError(".ServiceLogger.ServiceLogClearResponse.resourceIdRange: array expected"); - message.resourceIdRange = []; - for (let i = 0; i < object.resourceIdRange.length; ++i) { - if (typeof object.resourceIdRange[i] !== "object") - throw TypeError(".ServiceLogger.ServiceLogClearResponse.resourceIdRange: object expected"); - message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i]); - } - } - if (object.numDeleted != null) - message.numDeleted = object.numDeleted >>> 0; - if (object.numRemaining != null) - message.numRemaining = object.numRemaining >>> 0; + let message = new $root.Records.TimeLimitedAccessStatus(); + if (object.uid != null) + if (typeof object.uid === "string") + $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); + else if (object.uid.length >= 0) + message.uid = object.uid; + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a ServiceLogClearResponse message. Also converts values to other types if specified. + * Creates a plain object from a TimeLimitedAccessStatus message. Also converts values to other types if specified. * @function toObject - * @memberof ServiceLogger.ServiceLogClearResponse + * @memberof Records.TimeLimitedAccessStatus * @static - * @param {ServiceLogger.ServiceLogClearResponse} message ServiceLogClearResponse + * @param {Records.TimeLimitedAccessStatus} message TimeLimitedAccessStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceLogClearResponse.toObject = function toObject(message, options) { + TimeLimitedAccessStatus.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.resourceIdRange = []; if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.serviceTypeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceTypeId = options.longs === String ? "0" : 0; - object.serviceName = ""; - object.numDeleted = 0; - object.numRemaining = 0; - } - if (message.serviceTypeId != null && message.hasOwnProperty("serviceTypeId")) - 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")) - 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); + if (options.bytes === String) + object.uid = ""; + else { + object.uid = []; + if (options.bytes !== Array) + object.uid = $util.newBuffer(object.uid); + } + object.message = ""; } - if (message.numDeleted != null && message.hasOwnProperty("numDeleted")) - object.numDeleted = message.numDeleted; - if (message.numRemaining != null && message.hasOwnProperty("numRemaining")) - object.numRemaining = message.numRemaining; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; return object; }; /** - * Converts this ServiceLogClearResponse to JSON. + * Converts this TimeLimitedAccessStatus to JSON. * @function toJSON - * @memberof ServiceLogger.ServiceLogClearResponse + * @memberof Records.TimeLimitedAccessStatus * @instance * @returns {Object.} JSON object */ - ServiceLogClearResponse.prototype.toJSON = function toJSON() { + TimeLimitedAccessStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ServiceLogClearResponse + * Gets the default type url for TimeLimitedAccessStatus * @function getTypeUrl - * @memberof ServiceLogger.ServiceLogClearResponse + * @memberof Records.TimeLimitedAccessStatus * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ServiceLogClearResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TimeLimitedAccessStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/ServiceLogger.ServiceLogClearResponse"; + return typeUrlPrefix + "/Records.TimeLimitedAccessStatus"; }; - return ServiceLogClearResponse; - })(); - - return ServiceLogger; -})(); - -export const Vault = $root.Vault = (() => { - - /** - * Namespace Vault. - * @exports Vault - * @namespace - */ - const Vault = {}; - - /** - * CacheStatus enum. - * @name Vault.CacheStatus - * @enum {number} - * @property {number} KEEP=0 KEEP value - * @property {number} CLEAR=1 CLEAR value - */ - Vault.CacheStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "KEEP"] = 0; - values[valuesById[1] = "CLEAR"] = 1; - return values; + return TimeLimitedAccessStatus; })(); - Vault.SyncDownRequest = (function() { + Records.TimeLimitedAccessResponse = (function() { /** - * Properties of a SyncDownRequest. - * @memberof Vault - * @interface ISyncDownRequest - * @property {Uint8Array|null} [continuationToken] SyncDownRequest continuationToken - * @property {number|null} [dataVersion] SyncDownRequest dataVersion + * Properties of a TimeLimitedAccessResponse. + * @memberof Records + * @interface ITimeLimitedAccessResponse + * @property {number|Long|null} [revision] TimeLimitedAccessResponse revision + * @property {Array.|null} [userAccessStatus] TimeLimitedAccessResponse userAccessStatus + * @property {Array.|null} [teamAccessStatus] TimeLimitedAccessResponse teamAccessStatus + * @property {Array.|null} [recordAccessStatus] TimeLimitedAccessResponse recordAccessStatus */ /** - * Constructs a new SyncDownRequest. - * @memberof Vault - * @classdesc Represents a SyncDownRequest. - * @implements ISyncDownRequest + * Constructs a new TimeLimitedAccessResponse. + * @memberof Records + * @classdesc Represents a TimeLimitedAccessResponse. + * @implements ITimeLimitedAccessResponse * @constructor - * @param {Vault.ISyncDownRequest=} [properties] Properties to set + * @param {Records.ITimeLimitedAccessResponse=} [properties] Properties to set */ - function SyncDownRequest(properties) { + function TimeLimitedAccessResponse(properties) { + this.userAccessStatus = []; + this.teamAccessStatus = []; + this.recordAccessStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -201408,89 +203780,126 @@ export const Vault = $root.Vault = (() => { } /** - * SyncDownRequest continuationToken. - * @member {Uint8Array} continuationToken - * @memberof Vault.SyncDownRequest + * TimeLimitedAccessResponse revision. + * @member {number|Long} revision + * @memberof Records.TimeLimitedAccessResponse * @instance */ - SyncDownRequest.prototype.continuationToken = $util.newBuffer([]); + TimeLimitedAccessResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * SyncDownRequest dataVersion. - * @member {number} dataVersion - * @memberof Vault.SyncDownRequest + * TimeLimitedAccessResponse userAccessStatus. + * @member {Array.} userAccessStatus + * @memberof Records.TimeLimitedAccessResponse * @instance */ - SyncDownRequest.prototype.dataVersion = 0; + TimeLimitedAccessResponse.prototype.userAccessStatus = $util.emptyArray; /** - * Creates a new SyncDownRequest instance using the specified properties. + * TimeLimitedAccessResponse teamAccessStatus. + * @member {Array.} teamAccessStatus + * @memberof Records.TimeLimitedAccessResponse + * @instance + */ + TimeLimitedAccessResponse.prototype.teamAccessStatus = $util.emptyArray; + + /** + * TimeLimitedAccessResponse recordAccessStatus. + * @member {Array.} recordAccessStatus + * @memberof Records.TimeLimitedAccessResponse + * @instance + */ + TimeLimitedAccessResponse.prototype.recordAccessStatus = $util.emptyArray; + + /** + * Creates a new TimeLimitedAccessResponse instance using the specified properties. * @function create - * @memberof Vault.SyncDownRequest + * @memberof Records.TimeLimitedAccessResponse * @static - * @param {Vault.ISyncDownRequest=} [properties] Properties to set - * @returns {Vault.SyncDownRequest} SyncDownRequest instance + * @param {Records.ITimeLimitedAccessResponse=} [properties] Properties to set + * @returns {Records.TimeLimitedAccessResponse} TimeLimitedAccessResponse instance */ - SyncDownRequest.create = function create(properties) { - return new SyncDownRequest(properties); + TimeLimitedAccessResponse.create = function create(properties) { + return new TimeLimitedAccessResponse(properties); }; /** - * Encodes the specified SyncDownRequest message. Does not implicitly {@link Vault.SyncDownRequest.verify|verify} messages. + * Encodes the specified TimeLimitedAccessResponse message. Does not implicitly {@link Records.TimeLimitedAccessResponse.verify|verify} messages. * @function encode - * @memberof Vault.SyncDownRequest + * @memberof Records.TimeLimitedAccessResponse * @static - * @param {Vault.ISyncDownRequest} message SyncDownRequest message or plain object to encode + * @param {Records.ITimeLimitedAccessResponse} message TimeLimitedAccessResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SyncDownRequest.encode = function encode(message, writer) { + TimeLimitedAccessResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.continuationToken); - if (message.dataVersion != null && Object.hasOwnProperty.call(message, "dataVersion")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.dataVersion); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.revision); + if (message.userAccessStatus != null && message.userAccessStatus.length) + for (let i = 0; i < message.userAccessStatus.length; ++i) + $root.Records.TimeLimitedAccessStatus.encode(message.userAccessStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.teamAccessStatus != null && message.teamAccessStatus.length) + for (let i = 0; i < message.teamAccessStatus.length; ++i) + $root.Records.TimeLimitedAccessStatus.encode(message.teamAccessStatus[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.recordAccessStatus != null && message.recordAccessStatus.length) + for (let i = 0; i < message.recordAccessStatus.length; ++i) + $root.Records.TimeLimitedAccessStatus.encode(message.recordAccessStatus[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified SyncDownRequest message, length delimited. Does not implicitly {@link Vault.SyncDownRequest.verify|verify} messages. + * Encodes the specified TimeLimitedAccessResponse message, length delimited. Does not implicitly {@link Records.TimeLimitedAccessResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.SyncDownRequest + * @memberof Records.TimeLimitedAccessResponse * @static - * @param {Vault.ISyncDownRequest} message SyncDownRequest message or plain object to encode + * @param {Records.ITimeLimitedAccessResponse} message TimeLimitedAccessResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SyncDownRequest.encodeDelimited = function encodeDelimited(message, writer) { + TimeLimitedAccessResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SyncDownRequest message from the specified reader or buffer. + * Decodes a TimeLimitedAccessResponse message from the specified reader or buffer. * @function decode - * @memberof Vault.SyncDownRequest + * @memberof Records.TimeLimitedAccessResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.SyncDownRequest} SyncDownRequest + * @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 */ - SyncDownRequest.decode = function decode(reader, length) { + TimeLimitedAccessResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SyncDownRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TimeLimitedAccessResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.continuationToken = reader.bytes(); + message.revision = reader.int64(); break; } case 2: { - message.dataVersion = reader.int32(); + if (!(message.userAccessStatus && message.userAccessStatus.length)) + message.userAccessStatus = []; + message.userAccessStatus.push($root.Records.TimeLimitedAccessStatus.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.teamAccessStatus && message.teamAccessStatus.length)) + message.teamAccessStatus = []; + message.teamAccessStatus.push($root.Records.TimeLimitedAccessStatus.decode(reader, reader.uint32())); + break; + } + case 4: { + if (!(message.recordAccessStatus && message.recordAccessStatus.length)) + message.recordAccessStatus = []; + message.recordAccessStatus.push($root.Records.TimeLimitedAccessStatus.decode(reader, reader.uint32())); break; } default: @@ -201502,226 +203911,564 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a SyncDownRequest message from the specified reader or buffer, length delimited. + * Decodes a TimeLimitedAccessResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.SyncDownRequest + * @memberof Records.TimeLimitedAccessResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SyncDownRequest} SyncDownRequest + * @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 */ - SyncDownRequest.decodeDelimited = function decodeDelimited(reader) { + TimeLimitedAccessResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SyncDownRequest message. + * Verifies a TimeLimitedAccessResponse message. * @function verify - * @memberof Vault.SyncDownRequest + * @memberof Records.TimeLimitedAccessResponse * @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) { + TimeLimitedAccessResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.dataVersion != null && message.hasOwnProperty("dataVersion")) - if (!$util.isInteger(message.dataVersion)) - return "dataVersion: 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"; + 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]); + 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]); + 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]); + if (error) + return "recordAccessStatus." + error; + } + } return null; }; /** - * Creates a SyncDownRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TimeLimitedAccessResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.SyncDownRequest + * @memberof Records.TimeLimitedAccessResponse * @static * @param {Object.} object Plain object - * @returns {Vault.SyncDownRequest} SyncDownRequest + * @returns {Records.TimeLimitedAccessResponse} TimeLimitedAccessResponse */ - SyncDownRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SyncDownRequest) + TimeLimitedAccessResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Records.TimeLimitedAccessResponse) return object; - let message = new $root.Vault.SyncDownRequest(); - if (object.continuationToken != null) - if (typeof object.continuationToken === "string") - $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); - else if (object.continuationToken.length >= 0) - message.continuationToken = object.continuationToken; - if (object.dataVersion != null) - message.dataVersion = object.dataVersion | 0; + let message = new $root.Records.TimeLimitedAccessResponse(); + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if (object.userAccessStatus) { + if (!Array.isArray(object.userAccessStatus)) + throw TypeError(".Records.TimeLimitedAccessResponse.userAccessStatus: array expected"); + message.userAccessStatus = []; + for (let i = 0; i < object.userAccessStatus.length; ++i) { + if (typeof object.userAccessStatus[i] !== "object") + throw TypeError(".Records.TimeLimitedAccessResponse.userAccessStatus: object expected"); + message.userAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject(object.userAccessStatus[i]); + } + } + if (object.teamAccessStatus) { + if (!Array.isArray(object.teamAccessStatus)) + throw TypeError(".Records.TimeLimitedAccessResponse.teamAccessStatus: array expected"); + message.teamAccessStatus = []; + for (let i = 0; i < object.teamAccessStatus.length; ++i) { + if (typeof object.teamAccessStatus[i] !== "object") + throw TypeError(".Records.TimeLimitedAccessResponse.teamAccessStatus: object expected"); + message.teamAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject(object.teamAccessStatus[i]); + } + } + if (object.recordAccessStatus) { + if (!Array.isArray(object.recordAccessStatus)) + throw TypeError(".Records.TimeLimitedAccessResponse.recordAccessStatus: array expected"); + message.recordAccessStatus = []; + for (let i = 0; i < object.recordAccessStatus.length; ++i) { + if (typeof object.recordAccessStatus[i] !== "object") + throw TypeError(".Records.TimeLimitedAccessResponse.recordAccessStatus: object expected"); + message.recordAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject(object.recordAccessStatus[i]); + } + } return message; }; /** - * Creates a plain object from a SyncDownRequest message. Also converts values to other types if specified. + * Creates a plain object from a TimeLimitedAccessResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.SyncDownRequest + * @memberof Records.TimeLimitedAccessResponse * @static - * @param {Vault.SyncDownRequest} message SyncDownRequest + * @param {Records.TimeLimitedAccessResponse} message TimeLimitedAccessResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SyncDownRequest.toObject = function toObject(message, options) { + TimeLimitedAccessResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.continuationToken = ""; - else { - object.continuationToken = []; - if (options.bytes !== Array) - object.continuationToken = $util.newBuffer(object.continuationToken); - } - object.dataVersion = 0; + if (options.arrays || options.defaults) { + object.userAccessStatus = []; + object.teamAccessStatus = []; + object.recordAccessStatus = []; + } + if (options.defaults) + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof message.revision === "number") + object.revision = options.longs === String ? String(message.revision) : message.revision; + else + object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + if (message.userAccessStatus && message.userAccessStatus.length) { + object.userAccessStatus = []; + for (let j = 0; j < message.userAccessStatus.length; ++j) + object.userAccessStatus[j] = $root.Records.TimeLimitedAccessStatus.toObject(message.userAccessStatus[j], options); + } + if (message.teamAccessStatus && message.teamAccessStatus.length) { + object.teamAccessStatus = []; + for (let j = 0; j < message.teamAccessStatus.length; ++j) + object.teamAccessStatus[j] = $root.Records.TimeLimitedAccessStatus.toObject(message.teamAccessStatus[j], options); + } + if (message.recordAccessStatus && message.recordAccessStatus.length) { + object.recordAccessStatus = []; + for (let j = 0; j < message.recordAccessStatus.length; ++j) + object.recordAccessStatus[j] = $root.Records.TimeLimitedAccessStatus.toObject(message.recordAccessStatus[j], options); } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; - if (message.dataVersion != null && message.hasOwnProperty("dataVersion")) - object.dataVersion = message.dataVersion; return object; }; /** - * Converts this SyncDownRequest to JSON. + * Converts this TimeLimitedAccessResponse to JSON. * @function toJSON - * @memberof Vault.SyncDownRequest + * @memberof Records.TimeLimitedAccessResponse * @instance * @returns {Object.} JSON object */ - SyncDownRequest.prototype.toJSON = function toJSON() { + TimeLimitedAccessResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SyncDownRequest + * Gets the default type url for TimeLimitedAccessResponse * @function getTypeUrl - * @memberof Vault.SyncDownRequest + * @memberof Records.TimeLimitedAccessResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SyncDownRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TimeLimitedAccessResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.SyncDownRequest"; + return typeUrlPrefix + "/Records.TimeLimitedAccessResponse"; }; - return SyncDownRequest; + return TimeLimitedAccessResponse; })(); - Vault.SyncDownResponse = (function() { + return Records; +})(); + +export const common = $root.common = (() => { + + /** + * Namespace common. + * @exports common + * @namespace + */ + const common = {}; + + common.tla = (function() { /** - * Properties of a SyncDownResponse. - * @memberof Vault - * @interface ISyncDownResponse - * @property {Uint8Array|null} [continuationToken] SyncDownResponse continuationToken - * @property {boolean|null} [hasMore] SyncDownResponse hasMore - * @property {Vault.CacheStatus|null} [cacheStatus] SyncDownResponse cacheStatus - * @property {Array.|null} [userFolders] SyncDownResponse userFolders - * @property {Array.|null} [sharedFolders] SyncDownResponse sharedFolders - * @property {Array.|null} [userFolderSharedFolders] SyncDownResponse userFolderSharedFolders - * @property {Array.|null} [sharedFolderFolders] SyncDownResponse sharedFolderFolders - * @property {Array.|null} [records] SyncDownResponse records - * @property {Array.|null} [recordMetaData] SyncDownResponse recordMetaData - * @property {Array.|null} [nonSharedData] SyncDownResponse nonSharedData - * @property {Array.|null} [recordLinks] SyncDownResponse recordLinks - * @property {Array.|null} [userFolderRecords] SyncDownResponse userFolderRecords - * @property {Array.|null} [sharedFolderRecords] SyncDownResponse sharedFolderRecords - * @property {Array.|null} [sharedFolderFolderRecords] SyncDownResponse sharedFolderFolderRecords - * @property {Array.|null} [sharedFolderUsers] SyncDownResponse sharedFolderUsers - * @property {Array.|null} [sharedFolderTeams] SyncDownResponse sharedFolderTeams - * @property {Array.|null} [recordAddAuditData] SyncDownResponse recordAddAuditData - * @property {Array.|null} [teams] SyncDownResponse teams - * @property {Array.|null} [sharingChanges] SyncDownResponse sharingChanges - * @property {Vault.IProfile|null} [profile] SyncDownResponse profile - * @property {Vault.IProfilePic|null} [profilePic] SyncDownResponse profilePic - * @property {Array.|null} [pendingTeamMembers] SyncDownResponse pendingTeamMembers - * @property {Array.|null} [breachWatchRecords] SyncDownResponse breachWatchRecords - * @property {Array.|null} [userAuths] SyncDownResponse userAuths - * @property {Array.|null} [breachWatchSecurityData] SyncDownResponse breachWatchSecurityData - * @property {Vault.IReusedPasswords|null} [reusedPasswords] SyncDownResponse reusedPasswords - * @property {Array.|null} [removedUserFolders] SyncDownResponse removedUserFolders - * @property {Array.|null} [removedSharedFolders] SyncDownResponse removedSharedFolders - * @property {Array.|null} [removedUserFolderSharedFolders] SyncDownResponse removedUserFolderSharedFolders - * @property {Array.|null} [removedSharedFolderFolders] SyncDownResponse removedSharedFolderFolders - * @property {Array.|null} [removedRecords] SyncDownResponse removedRecords - * @property {Array.|null} [removedRecordLinks] SyncDownResponse removedRecordLinks - * @property {Array.|null} [removedUserFolderRecords] SyncDownResponse removedUserFolderRecords - * @property {Array.|null} [removedSharedFolderRecords] SyncDownResponse removedSharedFolderRecords - * @property {Array.|null} [removedSharedFolderFolderRecords] SyncDownResponse removedSharedFolderFolderRecords - * @property {Array.|null} [removedSharedFolderUsers] SyncDownResponse removedSharedFolderUsers - * @property {Array.|null} [removedSharedFolderTeams] SyncDownResponse removedSharedFolderTeams - * @property {Array.|null} [removedTeams] SyncDownResponse removedTeams - * @property {Array.|null} [ksmAppShares] SyncDownResponse ksmAppShares - * @property {Array.|null} [ksmAppClients] SyncDownResponse ksmAppClients - * @property {Array.|null} [shareInvitations] SyncDownResponse shareInvitations - * @property {Vault.ISyncDiagnostics|null} [diagnostics] SyncDownResponse diagnostics - * @property {Array.|null} [recordRotations] SyncDownResponse recordRotations - * @property {Array.|null} [users] SyncDownResponse users - * @property {Array.|null} [removedUsers] SyncDownResponse removedUsers - * @property {Array.|null} [securityScoreData] SyncDownResponse securityScoreData - * @property {Array.|null} [notificationSync] SyncDownResponse notificationSync + * Namespace tla. + * @memberof common + * @namespace + */ + const tla = {}; + + tla.TLAProperties = (function() { + + /** + * Properties of a TLAProperties. + * @memberof common.tla + * @interface ITLAProperties + * @property {number|Long|null} [expiration] Expiration time (in milliseconds) for the user's access to the record. + * @property {common.tla.TimerNotificationType|null} [timerNotificationType] Notification settings for access expiration events. + * Possible values: + * - NOTIFICATION_OFF = 0 + * - NOTIFY_OWNER = 1 + * - NOTIFY_PRIVILEGED_USERS = 2 + * @property {boolean|null} [rotateOnExpiration] Indicates whether access should be rotated automatically when it expires. + */ + + /** + * Constructs a new TLAProperties. + * @memberof common.tla + * @classdesc Properties related to time-limited access (TLA) for a record. + * Includes expiration settings, notification preferences, and rotation behavior. + * @implements ITLAProperties + * @constructor + * @param {common.tla.ITLAProperties=} [properties] Properties to set + */ + function TLAProperties(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Expiration time (in milliseconds) for the user's access to the record. + * @member {number|Long} expiration + * @memberof common.tla.TLAProperties + * @instance + */ + TLAProperties.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Notification settings for access expiration events. + * Possible values: + * - NOTIFICATION_OFF = 0 + * - NOTIFY_OWNER = 1 + * - NOTIFY_PRIVILEGED_USERS = 2 + * @member {common.tla.TimerNotificationType} timerNotificationType + * @memberof common.tla.TLAProperties + * @instance + */ + TLAProperties.prototype.timerNotificationType = 0; + + /** + * Indicates whether access should be rotated automatically when it expires. + * @member {boolean} rotateOnExpiration + * @memberof common.tla.TLAProperties + * @instance + */ + TLAProperties.prototype.rotateOnExpiration = false; + + /** + * Creates a new TLAProperties instance using the specified properties. + * @function create + * @memberof common.tla.TLAProperties + * @static + * @param {common.tla.ITLAProperties=} [properties] Properties to set + * @returns {common.tla.TLAProperties} TLAProperties instance + */ + TLAProperties.create = function create(properties) { + return new TLAProperties(properties); + }; + + /** + * Encodes the specified TLAProperties message. Does not implicitly {@link common.tla.TLAProperties.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.expiration); + if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.timerNotificationType); + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.rotateOnExpiration); + 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 + * @memberof common.tla.TLAProperties + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.tla.TLAProperties(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.expiration = reader.int64(); + break; + } + case 2: { + message.timerNotificationType = reader.int32(); + break; + } + case 3: { + message.rotateOnExpiration = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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 TLAProperties message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof common.tla.TLAProperties + * @static + * @param {Object.} object Plain object + * @returns {common.tla.TLAProperties} TLAProperties + */ + TLAProperties.fromObject = function fromObject(object) { + if (object instanceof $root.common.tla.TLAProperties) + return object; + let message = new $root.common.tla.TLAProperties(); + if (object.expiration != null) + if ($util.Long) + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === "string") + message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === "number") + message.expiration = object.expiration; + else if (typeof object.expiration === "object") + message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + switch (object.timerNotificationType) { + default: + if (typeof object.timerNotificationType === "number") { + message.timerNotificationType = object.timerNotificationType; + break; + } + break; + case "NOTIFICATION_OFF": + case 0: + message.timerNotificationType = 0; + break; + case "NOTIFY_OWNER": + case 1: + message.timerNotificationType = 1; + break; + case "NOTIFY_PRIVILEGED_USERS": + case 2: + message.timerNotificationType = 2; + break; + } + if (object.rotateOnExpiration != null) + message.rotateOnExpiration = Boolean(object.rotateOnExpiration); + return message; + }; + + /** + * Creates a plain object from a TLAProperties message. Also converts values to other types if specified. + * @function toObject + * @memberof common.tla.TLAProperties + * @static + * @param {common.tla.TLAProperties} message TLAProperties + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TLAProperties.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.expiration = options.longs === String ? "0" : 0; + object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; + object.rotateOnExpiration = false; + } + if (message.expiration != null && message.hasOwnProperty("expiration")) + if (typeof message.expiration === "number") + object.expiration = options.longs === String ? String(message.expiration) : message.expiration; + else + object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; + if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) + object.timerNotificationType = options.enums === String ? $root.common.tla.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.common.tla.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; + if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + object.rotateOnExpiration = message.rotateOnExpiration; + return object; + }; + + /** + * Converts this TLAProperties to JSON. + * @function toJSON + * @memberof common.tla.TLAProperties + * @instance + * @returns {Object.} JSON object + */ + TLAProperties.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TLAProperties + * @function getTypeUrl + * @memberof common.tla.TLAProperties + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TLAProperties.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/common.tla.TLAProperties"; + }; + + return TLAProperties; + })(); + + /** + * Enum representing notification settings for access expiration events. + * @name common.tla.TimerNotificationType + * @enum {number} + * @property {number} NOTIFICATION_OFF=0 Notifications are turned off. + * @property {number} NOTIFY_OWNER=1 Notify the owner when access expiration occurs. + * @property {number} NOTIFY_PRIVILEGED_USERS=2 Notify privileged users when access expiration occurs. + */ + tla.TimerNotificationType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NOTIFICATION_OFF"] = 0; + values[valuesById[1] = "NOTIFY_OWNER"] = 1; + values[valuesById[2] = "NOTIFY_PRIVILEGED_USERS"] = 2; + return values; + })(); + + return tla; + })(); + + return common; +})(); + +export const Push = $root.Push = (() => { + + /** + * Namespace Push. + * @exports Push + * @namespace + */ + const Push = {}; + + Push.UserRegistrationRequest = (function() { + + /** + * Properties of a UserRegistrationRequest. + * @memberof Push + * @interface IUserRegistrationRequest + * @property {Uint8Array|null} [messageSessionUid] UserRegistrationRequest messageSessionUid + * @property {number|null} [userId] UserRegistrationRequest userId + * @property {number|null} [enterpriseId] UserRegistrationRequest enterpriseId */ /** - * Constructs a new SyncDownResponse. - * @memberof Vault - * @classdesc Represents a SyncDownResponse. - * @implements ISyncDownResponse + * Constructs a new UserRegistrationRequest. + * @memberof Push + * @classdesc Represents a UserRegistrationRequest. + * @implements IUserRegistrationRequest * @constructor - * @param {Vault.ISyncDownResponse=} [properties] Properties to set + * @param {Push.IUserRegistrationRequest=} [properties] Properties to set */ - function SyncDownResponse(properties) { - this.userFolders = []; - this.sharedFolders = []; - this.userFolderSharedFolders = []; - this.sharedFolderFolders = []; - this.records = []; - this.recordMetaData = []; - this.nonSharedData = []; - this.recordLinks = []; - this.userFolderRecords = []; - this.sharedFolderRecords = []; - this.sharedFolderFolderRecords = []; - this.sharedFolderUsers = []; - this.sharedFolderTeams = []; - this.recordAddAuditData = []; - this.teams = []; - this.sharingChanges = []; - this.pendingTeamMembers = []; - this.breachWatchRecords = []; - this.userAuths = []; - this.breachWatchSecurityData = []; - this.removedUserFolders = []; - this.removedSharedFolders = []; - this.removedUserFolderSharedFolders = []; - this.removedSharedFolderFolders = []; - this.removedRecords = []; - this.removedRecordLinks = []; - this.removedUserFolderRecords = []; - this.removedSharedFolderRecords = []; - this.removedSharedFolderFolderRecords = []; - this.removedSharedFolderUsers = []; - this.removedSharedFolderTeams = []; - this.removedTeams = []; - this.ksmAppShares = []; - this.ksmAppClients = []; - this.shareInvitations = []; - this.recordRotations = []; - this.users = []; - this.removedUsers = []; - this.securityScoreData = []; - this.notificationSync = []; + function UserRegistrationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -201729,839 +204476,465 @@ export const Vault = $root.Vault = (() => { } /** - * SyncDownResponse continuationToken. - * @member {Uint8Array} continuationToken - * @memberof Vault.SyncDownResponse + * UserRegistrationRequest messageSessionUid. + * @member {Uint8Array} messageSessionUid + * @memberof Push.UserRegistrationRequest * @instance */ - SyncDownResponse.prototype.continuationToken = $util.newBuffer([]); + UserRegistrationRequest.prototype.messageSessionUid = $util.newBuffer([]); /** - * SyncDownResponse hasMore. - * @member {boolean} hasMore - * @memberof Vault.SyncDownResponse + * UserRegistrationRequest userId. + * @member {number} userId + * @memberof Push.UserRegistrationRequest * @instance */ - SyncDownResponse.prototype.hasMore = false; + UserRegistrationRequest.prototype.userId = 0; /** - * SyncDownResponse cacheStatus. - * @member {Vault.CacheStatus} cacheStatus - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.cacheStatus = 0; - - /** - * SyncDownResponse userFolders. - * @member {Array.} userFolders - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.userFolders = $util.emptyArray; - - /** - * SyncDownResponse sharedFolders. - * @member {Array.} sharedFolders - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.sharedFolders = $util.emptyArray; - - /** - * SyncDownResponse userFolderSharedFolders. - * @member {Array.} userFolderSharedFolders - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.userFolderSharedFolders = $util.emptyArray; - - /** - * SyncDownResponse sharedFolderFolders. - * @member {Array.} sharedFolderFolders - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.sharedFolderFolders = $util.emptyArray; - - /** - * SyncDownResponse records. - * @member {Array.} records - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.records = $util.emptyArray; - - /** - * SyncDownResponse recordMetaData. - * @member {Array.} recordMetaData - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.recordMetaData = $util.emptyArray; - - /** - * SyncDownResponse nonSharedData. - * @member {Array.} nonSharedData - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.nonSharedData = $util.emptyArray; - - /** - * SyncDownResponse recordLinks. - * @member {Array.} recordLinks - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.recordLinks = $util.emptyArray; - - /** - * SyncDownResponse userFolderRecords. - * @member {Array.} userFolderRecords - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.userFolderRecords = $util.emptyArray; - - /** - * SyncDownResponse sharedFolderRecords. - * @member {Array.} sharedFolderRecords - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.sharedFolderRecords = $util.emptyArray; - - /** - * SyncDownResponse sharedFolderFolderRecords. - * @member {Array.} sharedFolderFolderRecords - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.sharedFolderFolderRecords = $util.emptyArray; - - /** - * SyncDownResponse sharedFolderUsers. - * @member {Array.} sharedFolderUsers - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.sharedFolderUsers = $util.emptyArray; - - /** - * SyncDownResponse sharedFolderTeams. - * @member {Array.} sharedFolderTeams - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.sharedFolderTeams = $util.emptyArray; - - /** - * SyncDownResponse recordAddAuditData. - * @member {Array.} recordAddAuditData - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.recordAddAuditData = $util.emptyArray; - - /** - * SyncDownResponse teams. - * @member {Array.} teams - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.teams = $util.emptyArray; - - /** - * SyncDownResponse sharingChanges. - * @member {Array.} sharingChanges - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.sharingChanges = $util.emptyArray; - - /** - * SyncDownResponse profile. - * @member {Vault.IProfile|null|undefined} profile - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.profile = null; - - /** - * SyncDownResponse profilePic. - * @member {Vault.IProfilePic|null|undefined} profilePic - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.profilePic = null; - - /** - * SyncDownResponse pendingTeamMembers. - * @member {Array.} pendingTeamMembers - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.pendingTeamMembers = $util.emptyArray; - - /** - * SyncDownResponse breachWatchRecords. - * @member {Array.} breachWatchRecords - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.breachWatchRecords = $util.emptyArray; - - /** - * SyncDownResponse userAuths. - * @member {Array.} userAuths - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.userAuths = $util.emptyArray; - - /** - * SyncDownResponse breachWatchSecurityData. - * @member {Array.} breachWatchSecurityData - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.breachWatchSecurityData = $util.emptyArray; - - /** - * SyncDownResponse reusedPasswords. - * @member {Vault.IReusedPasswords|null|undefined} reusedPasswords - * @memberof Vault.SyncDownResponse + * UserRegistrationRequest enterpriseId. + * @member {number} enterpriseId + * @memberof Push.UserRegistrationRequest * @instance */ - SyncDownResponse.prototype.reusedPasswords = null; + UserRegistrationRequest.prototype.enterpriseId = 0; /** - * SyncDownResponse removedUserFolders. - * @member {Array.} removedUserFolders - * @memberof Vault.SyncDownResponse - * @instance + * Creates a new UserRegistrationRequest instance using the specified properties. + * @function create + * @memberof Push.UserRegistrationRequest + * @static + * @param {Push.IUserRegistrationRequest=} [properties] Properties to set + * @returns {Push.UserRegistrationRequest} UserRegistrationRequest instance */ - SyncDownResponse.prototype.removedUserFolders = $util.emptyArray; + UserRegistrationRequest.create = function create(properties) { + return new UserRegistrationRequest(properties); + }; /** - * SyncDownResponse removedSharedFolders. - * @member {Array.} removedSharedFolders - * @memberof Vault.SyncDownResponse - * @instance + * Encodes the specified UserRegistrationRequest message. Does not implicitly {@link Push.UserRegistrationRequest.verify|verify} messages. + * @function encode + * @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 */ - SyncDownResponse.prototype.removedSharedFolders = $util.emptyArray; + UserRegistrationRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.messageSessionUid); + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.userId); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.enterpriseId); + return writer; + }; /** - * SyncDownResponse removedUserFolderSharedFolders. - * @member {Array.} removedUserFolderSharedFolders - * @memberof Vault.SyncDownResponse - * @instance + * 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 */ - SyncDownResponse.prototype.removedUserFolderSharedFolders = $util.emptyArray; + UserRegistrationRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * SyncDownResponse removedSharedFolderFolders. - * @member {Array.} removedSharedFolderFolders - * @memberof Vault.SyncDownResponse - * @instance + * Decodes a UserRegistrationRequest message from the specified reader or buffer. + * @function decode + * @memberof Push.UserRegistrationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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 */ - SyncDownResponse.prototype.removedSharedFolderFolders = $util.emptyArray; + UserRegistrationRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.UserRegistrationRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.messageSessionUid = reader.bytes(); + break; + } + case 2: { + message.userId = reader.int32(); + break; + } + case 3: { + message.enterpriseId = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * SyncDownResponse removedRecords. - * @member {Array.} removedRecords - * @memberof Vault.SyncDownResponse - * @instance + * 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 */ - SyncDownResponse.prototype.removedRecords = $util.emptyArray; + UserRegistrationRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * SyncDownResponse removedRecordLinks. - * @member {Array.} removedRecordLinks - * @memberof Vault.SyncDownResponse - * @instance + * 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 */ - SyncDownResponse.prototype.removedRecordLinks = $util.emptyArray; + UserRegistrationRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object 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.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; + }; /** - * SyncDownResponse removedUserFolderRecords. - * @member {Array.} removedUserFolderRecords - * @memberof Vault.SyncDownResponse - * @instance + * Creates a UserRegistrationRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Push.UserRegistrationRequest + * @static + * @param {Object.} object Plain object + * @returns {Push.UserRegistrationRequest} UserRegistrationRequest */ - SyncDownResponse.prototype.removedUserFolderRecords = $util.emptyArray; + UserRegistrationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Push.UserRegistrationRequest) + return object; + let message = new $root.Push.UserRegistrationRequest(); + if (object.messageSessionUid != null) + if (typeof object.messageSessionUid === "string") + $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); + else if (object.messageSessionUid.length >= 0) + message.messageSessionUid = object.messageSessionUid; + if (object.userId != null) + message.userId = object.userId | 0; + if (object.enterpriseId != null) + message.enterpriseId = object.enterpriseId | 0; + return message; + }; /** - * SyncDownResponse removedSharedFolderRecords. - * @member {Array.} removedSharedFolderRecords - * @memberof Vault.SyncDownResponse - * @instance + * Creates a plain object from a UserRegistrationRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof Push.UserRegistrationRequest + * @static + * @param {Push.UserRegistrationRequest} message UserRegistrationRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - SyncDownResponse.prototype.removedSharedFolderRecords = $util.emptyArray; + UserRegistrationRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.messageSessionUid = ""; + else { + object.messageSessionUid = []; + if (options.bytes !== Array) + object.messageSessionUid = $util.newBuffer(object.messageSessionUid); + } + object.userId = 0; + object.enterpriseId = 0; + } + if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) + object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; + if (message.userId != null && message.hasOwnProperty("userId")) + object.userId = message.userId; + if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + object.enterpriseId = message.enterpriseId; + return object; + }; /** - * SyncDownResponse removedSharedFolderFolderRecords. - * @member {Array.} removedSharedFolderFolderRecords - * @memberof Vault.SyncDownResponse + * Converts this UserRegistrationRequest to JSON. + * @function toJSON + * @memberof Push.UserRegistrationRequest * @instance + * @returns {Object.} JSON object */ - SyncDownResponse.prototype.removedSharedFolderFolderRecords = $util.emptyArray; + UserRegistrationRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * SyncDownResponse removedSharedFolderUsers. - * @member {Array.} removedSharedFolderUsers - * @memberof Vault.SyncDownResponse - * @instance + * Gets the default type url for UserRegistrationRequest + * @function getTypeUrl + * @memberof Push.UserRegistrationRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - SyncDownResponse.prototype.removedSharedFolderUsers = $util.emptyArray; + UserRegistrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Push.UserRegistrationRequest"; + }; - /** - * SyncDownResponse removedSharedFolderTeams. - * @member {Array.} removedSharedFolderTeams - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.removedSharedFolderTeams = $util.emptyArray; + return UserRegistrationRequest; + })(); - /** - * SyncDownResponse removedTeams. - * @member {Array.} removedTeams - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.removedTeams = $util.emptyArray; + /** + * MessageType enum. + * @name Push.MessageType + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} DNA=1 DNA value + * @property {number} SSO=2 SSO value + * @property {number} CHAT=3 CHAT value + * @property {number} USER=4 USER value + * @property {number} ENTERPRISE=5 ENTERPRISE value + * @property {number} KEEPER=6 KEEPER value + * @property {number} SESSION=7 SESSION value + * @property {number} DEVICE=8 DEVICE value + * @property {number} TOTP=9 TOTP value + */ + Push.MessageType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "DNA"] = 1; + values[valuesById[2] = "SSO"] = 2; + values[valuesById[3] = "CHAT"] = 3; + values[valuesById[4] = "USER"] = 4; + values[valuesById[5] = "ENTERPRISE"] = 5; + values[valuesById[6] = "KEEPER"] = 6; + values[valuesById[7] = "SESSION"] = 7; + values[valuesById[8] = "DEVICE"] = 8; + values[valuesById[9] = "TOTP"] = 9; + return values; + })(); - /** - * SyncDownResponse ksmAppShares. - * @member {Array.} ksmAppShares - * @memberof Vault.SyncDownResponse - * @instance - */ - SyncDownResponse.prototype.ksmAppShares = $util.emptyArray; + Push.KAToPushServerRequest = (function() { /** - * SyncDownResponse ksmAppClients. - * @member {Array.} ksmAppClients - * @memberof Vault.SyncDownResponse - * @instance + * Properties of a KAToPushServerRequest. + * @memberof Push + * @interface IKAToPushServerRequest + * @property {Push.MessageType|null} [messageType] KAToPushServerRequest messageType + * @property {string|null} [message] KAToPushServerRequest message + * @property {Uint8Array|null} [messageSessionUid] KAToPushServerRequest messageSessionUid + * @property {Array.|null} [encryptedDeviceToken] KAToPushServerRequest encryptedDeviceToken + * @property {Array.|null} [userId] KAToPushServerRequest userId + * @property {Array.|null} [enterpriseId] KAToPushServerRequest enterpriseId */ - SyncDownResponse.prototype.ksmAppClients = $util.emptyArray; /** - * SyncDownResponse shareInvitations. - * @member {Array.} shareInvitations - * @memberof Vault.SyncDownResponse - * @instance + * Constructs a new KAToPushServerRequest. + * @memberof Push + * @classdesc Represents a KAToPushServerRequest. + * @implements IKAToPushServerRequest + * @constructor + * @param {Push.IKAToPushServerRequest=} [properties] Properties to set */ - SyncDownResponse.prototype.shareInvitations = $util.emptyArray; + function KAToPushServerRequest(properties) { + this.encryptedDeviceToken = []; + this.userId = []; + this.enterpriseId = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * SyncDownResponse diagnostics. - * @member {Vault.ISyncDiagnostics|null|undefined} diagnostics - * @memberof Vault.SyncDownResponse + * KAToPushServerRequest messageType. + * @member {Push.MessageType} messageType + * @memberof Push.KAToPushServerRequest * @instance */ - SyncDownResponse.prototype.diagnostics = null; + KAToPushServerRequest.prototype.messageType = 0; /** - * SyncDownResponse recordRotations. - * @member {Array.} recordRotations - * @memberof Vault.SyncDownResponse + * KAToPushServerRequest message. + * @member {string} message + * @memberof Push.KAToPushServerRequest * @instance */ - SyncDownResponse.prototype.recordRotations = $util.emptyArray; + KAToPushServerRequest.prototype.message = ""; /** - * SyncDownResponse users. - * @member {Array.} users - * @memberof Vault.SyncDownResponse + * KAToPushServerRequest messageSessionUid. + * @member {Uint8Array} messageSessionUid + * @memberof Push.KAToPushServerRequest * @instance */ - SyncDownResponse.prototype.users = $util.emptyArray; + KAToPushServerRequest.prototype.messageSessionUid = $util.newBuffer([]); /** - * SyncDownResponse removedUsers. - * @member {Array.} removedUsers - * @memberof Vault.SyncDownResponse + * KAToPushServerRequest encryptedDeviceToken. + * @member {Array.} encryptedDeviceToken + * @memberof Push.KAToPushServerRequest * @instance */ - SyncDownResponse.prototype.removedUsers = $util.emptyArray; + KAToPushServerRequest.prototype.encryptedDeviceToken = $util.emptyArray; /** - * SyncDownResponse securityScoreData. - * @member {Array.} securityScoreData - * @memberof Vault.SyncDownResponse + * KAToPushServerRequest userId. + * @member {Array.} userId + * @memberof Push.KAToPushServerRequest * @instance */ - SyncDownResponse.prototype.securityScoreData = $util.emptyArray; + KAToPushServerRequest.prototype.userId = $util.emptyArray; /** - * SyncDownResponse notificationSync. - * @member {Array.} notificationSync - * @memberof Vault.SyncDownResponse + * KAToPushServerRequest enterpriseId. + * @member {Array.} enterpriseId + * @memberof Push.KAToPushServerRequest * @instance */ - SyncDownResponse.prototype.notificationSync = $util.emptyArray; + KAToPushServerRequest.prototype.enterpriseId = $util.emptyArray; /** - * Creates a new SyncDownResponse instance using the specified properties. + * Creates a new KAToPushServerRequest instance using the specified properties. * @function create - * @memberof Vault.SyncDownResponse + * @memberof Push.KAToPushServerRequest * @static - * @param {Vault.ISyncDownResponse=} [properties] Properties to set - * @returns {Vault.SyncDownResponse} SyncDownResponse instance + * @param {Push.IKAToPushServerRequest=} [properties] Properties to set + * @returns {Push.KAToPushServerRequest} KAToPushServerRequest instance */ - SyncDownResponse.create = function create(properties) { - return new SyncDownResponse(properties); + KAToPushServerRequest.create = function create(properties) { + return new KAToPushServerRequest(properties); }; /** - * Encodes the specified SyncDownResponse message. Does not implicitly {@link Vault.SyncDownResponse.verify|verify} messages. + * Encodes the specified KAToPushServerRequest message. Does not implicitly {@link Push.KAToPushServerRequest.verify|verify} messages. * @function encode - * @memberof Vault.SyncDownResponse + * @memberof Push.KAToPushServerRequest * @static - * @param {Vault.ISyncDownResponse} message SyncDownResponse message or plain object to encode + * @param {Push.IKAToPushServerRequest} message KAToPushServerRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SyncDownResponse.encode = function encode(message, writer) { + KAToPushServerRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.continuationToken); - if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.hasMore); - if (message.cacheStatus != null && Object.hasOwnProperty.call(message, "cacheStatus")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.cacheStatus); - if (message.userFolders != null && message.userFolders.length) - for (let i = 0; i < message.userFolders.length; ++i) - $root.Vault.UserFolder.encode(message.userFolders[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.sharedFolders != null && message.sharedFolders.length) - for (let i = 0; i < message.sharedFolders.length; ++i) - $root.Vault.SharedFolder.encode(message.sharedFolders[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.userFolderSharedFolders != null && message.userFolderSharedFolders.length) - for (let i = 0; i < message.userFolderSharedFolders.length; ++i) - $root.Vault.UserFolderSharedFolder.encode(message.userFolderSharedFolders[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.sharedFolderFolders != null && message.sharedFolderFolders.length) - for (let i = 0; i < message.sharedFolderFolders.length; ++i) - $root.Vault.SharedFolderFolder.encode(message.sharedFolderFolders[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.records != null && message.records.length) - for (let i = 0; i < message.records.length; ++i) - $root.Vault.Record.encode(message.records[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.recordMetaData != null && message.recordMetaData.length) - for (let i = 0; i < message.recordMetaData.length; ++i) - $root.Vault.RecordMetaData.encode(message.recordMetaData[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.nonSharedData != null && message.nonSharedData.length) - for (let i = 0; i < message.nonSharedData.length; ++i) - $root.Vault.NonSharedData.encode(message.nonSharedData[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.recordLinks != null && message.recordLinks.length) - for (let i = 0; i < message.recordLinks.length; ++i) - $root.Vault.RecordLink.encode(message.recordLinks[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.userFolderRecords != null && message.userFolderRecords.length) - for (let i = 0; i < message.userFolderRecords.length; ++i) - $root.Vault.UserFolderRecord.encode(message.userFolderRecords[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.sharedFolderRecords != null && message.sharedFolderRecords.length) - for (let i = 0; i < message.sharedFolderRecords.length; ++i) - $root.Vault.SharedFolderRecord.encode(message.sharedFolderRecords[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.sharedFolderFolderRecords != null && message.sharedFolderFolderRecords.length) - for (let i = 0; i < message.sharedFolderFolderRecords.length; ++i) - $root.Vault.SharedFolderFolderRecord.encode(message.sharedFolderFolderRecords[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.sharedFolderUsers != null && message.sharedFolderUsers.length) - for (let i = 0; i < message.sharedFolderUsers.length; ++i) - $root.Vault.SharedFolderUser.encode(message.sharedFolderUsers[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.sharedFolderTeams != null && message.sharedFolderTeams.length) - for (let i = 0; i < message.sharedFolderTeams.length; ++i) - $root.Vault.SharedFolderTeam.encode(message.sharedFolderTeams[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.recordAddAuditData != null && message.recordAddAuditData.length) - for (let i = 0; i < message.recordAddAuditData.length; ++i) - writer.uint32(/* id 17, wireType 2 =*/138).bytes(message.recordAddAuditData[i]); - if (message.teams != null && message.teams.length) - for (let i = 0; i < message.teams.length; ++i) - $root.Vault.Team.encode(message.teams[i], writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - if (message.sharingChanges != null && message.sharingChanges.length) - for (let i = 0; i < message.sharingChanges.length; ++i) - $root.Vault.SharingChange.encode(message.sharingChanges[i], writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); - if (message.profile != null && Object.hasOwnProperty.call(message, "profile")) - $root.Vault.Profile.encode(message.profile, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.profilePic != null && Object.hasOwnProperty.call(message, "profilePic")) - $root.Vault.ProfilePic.encode(message.profilePic, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - if (message.pendingTeamMembers != null && message.pendingTeamMembers.length) - for (let i = 0; i < message.pendingTeamMembers.length; ++i) - $root.Vault.PendingTeamMember.encode(message.pendingTeamMembers[i], writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); - if (message.breachWatchRecords != null && message.breachWatchRecords.length) - for (let i = 0; i < message.breachWatchRecords.length; ++i) - $root.Vault.BreachWatchRecord.encode(message.breachWatchRecords[i], writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); - if (message.userAuths != null && message.userAuths.length) - for (let i = 0; i < message.userAuths.length; ++i) - $root.Vault.UserAuth.encode(message.userAuths[i], writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); - if (message.breachWatchSecurityData != null && message.breachWatchSecurityData.length) - for (let i = 0; i < message.breachWatchSecurityData.length; ++i) - $root.Vault.BreachWatchSecurityData.encode(message.breachWatchSecurityData[i], writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); - if (message.reusedPasswords != null && Object.hasOwnProperty.call(message, "reusedPasswords")) - $root.Vault.ReusedPasswords.encode(message.reusedPasswords, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); - if (message.removedUserFolders != null && message.removedUserFolders.length) - for (let i = 0; i < message.removedUserFolders.length; ++i) - writer.uint32(/* id 27, wireType 2 =*/218).bytes(message.removedUserFolders[i]); - if (message.removedSharedFolders != null && message.removedSharedFolders.length) - for (let i = 0; i < message.removedSharedFolders.length; ++i) - writer.uint32(/* id 28, wireType 2 =*/226).bytes(message.removedSharedFolders[i]); - if (message.removedUserFolderSharedFolders != null && message.removedUserFolderSharedFolders.length) - for (let i = 0; i < message.removedUserFolderSharedFolders.length; ++i) - $root.Vault.UserFolderSharedFolder.encode(message.removedUserFolderSharedFolders[i], writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim(); - if (message.removedSharedFolderFolders != null && message.removedSharedFolderFolders.length) - for (let i = 0; i < message.removedSharedFolderFolders.length; ++i) - $root.Vault.SharedFolderFolder.encode(message.removedSharedFolderFolders[i], writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim(); - if (message.removedRecords != null && message.removedRecords.length) - for (let i = 0; i < message.removedRecords.length; ++i) - writer.uint32(/* id 31, wireType 2 =*/250).bytes(message.removedRecords[i]); - if (message.removedRecordLinks != null && message.removedRecordLinks.length) - for (let i = 0; i < message.removedRecordLinks.length; ++i) - $root.Vault.RecordLink.encode(message.removedRecordLinks[i], writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); - if (message.removedUserFolderRecords != null && message.removedUserFolderRecords.length) - for (let i = 0; i < message.removedUserFolderRecords.length; ++i) - $root.Vault.UserFolderRecord.encode(message.removedUserFolderRecords[i], writer.uint32(/* id 33, wireType 2 =*/266).fork()).ldelim(); - if (message.removedSharedFolderRecords != null && message.removedSharedFolderRecords.length) - for (let i = 0; i < message.removedSharedFolderRecords.length; ++i) - $root.Vault.SharedFolderRecord.encode(message.removedSharedFolderRecords[i], writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim(); - if (message.removedSharedFolderFolderRecords != null && message.removedSharedFolderFolderRecords.length) - for (let i = 0; i < message.removedSharedFolderFolderRecords.length; ++i) - $root.Vault.SharedFolderFolderRecord.encode(message.removedSharedFolderFolderRecords[i], writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim(); - if (message.removedSharedFolderUsers != null && message.removedSharedFolderUsers.length) - for (let i = 0; i < message.removedSharedFolderUsers.length; ++i) - $root.Vault.SharedFolderUser.encode(message.removedSharedFolderUsers[i], writer.uint32(/* id 36, wireType 2 =*/290).fork()).ldelim(); - if (message.removedSharedFolderTeams != null && message.removedSharedFolderTeams.length) - for (let i = 0; i < message.removedSharedFolderTeams.length; ++i) - $root.Vault.SharedFolderTeam.encode(message.removedSharedFolderTeams[i], writer.uint32(/* id 37, wireType 2 =*/298).fork()).ldelim(); - if (message.removedTeams != null && message.removedTeams.length) - for (let i = 0; i < message.removedTeams.length; ++i) - writer.uint32(/* id 38, wireType 2 =*/306).bytes(message.removedTeams[i]); - if (message.ksmAppShares != null && message.ksmAppShares.length) - for (let i = 0; i < message.ksmAppShares.length; ++i) - $root.Vault.KsmChange.encode(message.ksmAppShares[i], writer.uint32(/* id 39, wireType 2 =*/314).fork()).ldelim(); - if (message.ksmAppClients != null && message.ksmAppClients.length) - for (let i = 0; i < message.ksmAppClients.length; ++i) - $root.Vault.KsmChange.encode(message.ksmAppClients[i], writer.uint32(/* id 40, wireType 2 =*/322).fork()).ldelim(); - if (message.shareInvitations != null && message.shareInvitations.length) - for (let i = 0; i < message.shareInvitations.length; ++i) - $root.Vault.ShareInvitation.encode(message.shareInvitations[i], writer.uint32(/* id 41, wireType 2 =*/330).fork()).ldelim(); - if (message.diagnostics != null && Object.hasOwnProperty.call(message, "diagnostics")) - $root.Vault.SyncDiagnostics.encode(message.diagnostics, writer.uint32(/* id 42, wireType 2 =*/338).fork()).ldelim(); - if (message.recordRotations != null && message.recordRotations.length) - for (let i = 0; i < message.recordRotations.length; ++i) - $root.Vault.RecordRotation.encode(message.recordRotations[i], writer.uint32(/* id 43, wireType 2 =*/346).fork()).ldelim(); - if (message.users != null && message.users.length) - for (let i = 0; i < message.users.length; ++i) - $root.Vault.User.encode(message.users[i], writer.uint32(/* id 44, wireType 2 =*/354).fork()).ldelim(); - if (message.removedUsers != null && message.removedUsers.length) - for (let i = 0; i < message.removedUsers.length; ++i) - writer.uint32(/* id 45, wireType 2 =*/362).bytes(message.removedUsers[i]); - if (message.securityScoreData != null && message.securityScoreData.length) - for (let i = 0; i < message.securityScoreData.length; ++i) - $root.Vault.SecurityScoreData.encode(message.securityScoreData[i], writer.uint32(/* id 46, wireType 2 =*/370).fork()).ldelim(); - if (message.notificationSync != null && message.notificationSync.length) - for (let i = 0; i < message.notificationSync.length; ++i) - $root.NotificationCenter.NotificationWrapper.encode(message.notificationSync[i], writer.uint32(/* id 47, wireType 2 =*/378).fork()).ldelim(); + if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.messageSessionUid); + if (message.encryptedDeviceToken != null && message.encryptedDeviceToken.length) + for (let i = 0; i < message.encryptedDeviceToken.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.encryptedDeviceToken[i]); + if (message.userId != null && message.userId.length) { + writer.uint32(/* id 5, wireType 2 =*/42).fork(); + for (let i = 0; i < message.userId.length; ++i) + writer.int32(message.userId[i]); + writer.ldelim(); + } + if (message.enterpriseId != null && message.enterpriseId.length) { + writer.uint32(/* id 6, wireType 2 =*/50).fork(); + for (let i = 0; i < message.enterpriseId.length; ++i) + writer.int32(message.enterpriseId[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified SyncDownResponse message, length delimited. Does not implicitly {@link Vault.SyncDownResponse.verify|verify} messages. + * Encodes the specified KAToPushServerRequest message, length delimited. Does not implicitly {@link Push.KAToPushServerRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.SyncDownResponse + * @memberof Push.KAToPushServerRequest * @static - * @param {Vault.ISyncDownResponse} message SyncDownResponse message or plain object to encode + * @param {Push.IKAToPushServerRequest} message KAToPushServerRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SyncDownResponse.encodeDelimited = function encodeDelimited(message, writer) { + KAToPushServerRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SyncDownResponse message from the specified reader or buffer. + * Decodes a KAToPushServerRequest message from the specified reader or buffer. * @function decode - * @memberof Vault.SyncDownResponse + * @memberof Push.KAToPushServerRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.SyncDownResponse} SyncDownResponse + * @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 */ - SyncDownResponse.decode = function decode(reader, length) { + KAToPushServerRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SyncDownResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.KAToPushServerRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.continuationToken = reader.bytes(); + message.messageType = reader.int32(); break; } case 2: { - message.hasMore = reader.bool(); + message.message = reader.string(); break; } case 3: { - message.cacheStatus = reader.int32(); + message.messageSessionUid = reader.bytes(); break; } case 4: { - if (!(message.userFolders && message.userFolders.length)) - message.userFolders = []; - message.userFolders.push($root.Vault.UserFolder.decode(reader, reader.uint32())); + if (!(message.encryptedDeviceToken && message.encryptedDeviceToken.length)) + message.encryptedDeviceToken = []; + message.encryptedDeviceToken.push(reader.bytes()); break; } case 5: { - if (!(message.sharedFolders && message.sharedFolders.length)) - message.sharedFolders = []; - message.sharedFolders.push($root.Vault.SharedFolder.decode(reader, reader.uint32())); + if (!(message.userId && message.userId.length)) + message.userId = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.userId.push(reader.int32()); + } else + message.userId.push(reader.int32()); break; } case 6: { - if (!(message.userFolderSharedFolders && message.userFolderSharedFolders.length)) - message.userFolderSharedFolders = []; - message.userFolderSharedFolders.push($root.Vault.UserFolderSharedFolder.decode(reader, reader.uint32())); - break; - } - case 7: { - if (!(message.sharedFolderFolders && message.sharedFolderFolders.length)) - message.sharedFolderFolders = []; - message.sharedFolderFolders.push($root.Vault.SharedFolderFolder.decode(reader, reader.uint32())); - break; - } - case 8: { - if (!(message.records && message.records.length)) - message.records = []; - message.records.push($root.Vault.Record.decode(reader, reader.uint32())); - break; - } - case 9: { - if (!(message.recordMetaData && message.recordMetaData.length)) - message.recordMetaData = []; - message.recordMetaData.push($root.Vault.RecordMetaData.decode(reader, reader.uint32())); - break; - } - case 10: { - if (!(message.nonSharedData && message.nonSharedData.length)) - message.nonSharedData = []; - message.nonSharedData.push($root.Vault.NonSharedData.decode(reader, reader.uint32())); - break; - } - case 11: { - if (!(message.recordLinks && message.recordLinks.length)) - message.recordLinks = []; - message.recordLinks.push($root.Vault.RecordLink.decode(reader, reader.uint32())); - break; - } - case 12: { - if (!(message.userFolderRecords && message.userFolderRecords.length)) - message.userFolderRecords = []; - message.userFolderRecords.push($root.Vault.UserFolderRecord.decode(reader, reader.uint32())); - break; - } - case 13: { - if (!(message.sharedFolderRecords && message.sharedFolderRecords.length)) - message.sharedFolderRecords = []; - message.sharedFolderRecords.push($root.Vault.SharedFolderRecord.decode(reader, reader.uint32())); - break; - } - case 14: { - if (!(message.sharedFolderFolderRecords && message.sharedFolderFolderRecords.length)) - message.sharedFolderFolderRecords = []; - message.sharedFolderFolderRecords.push($root.Vault.SharedFolderFolderRecord.decode(reader, reader.uint32())); - break; - } - case 15: { - if (!(message.sharedFolderUsers && message.sharedFolderUsers.length)) - message.sharedFolderUsers = []; - message.sharedFolderUsers.push($root.Vault.SharedFolderUser.decode(reader, reader.uint32())); - break; - } - case 16: { - if (!(message.sharedFolderTeams && message.sharedFolderTeams.length)) - message.sharedFolderTeams = []; - message.sharedFolderTeams.push($root.Vault.SharedFolderTeam.decode(reader, reader.uint32())); - break; - } - case 17: { - if (!(message.recordAddAuditData && message.recordAddAuditData.length)) - message.recordAddAuditData = []; - message.recordAddAuditData.push(reader.bytes()); - break; - } - case 18: { - if (!(message.teams && message.teams.length)) - message.teams = []; - message.teams.push($root.Vault.Team.decode(reader, reader.uint32())); - break; - } - case 19: { - if (!(message.sharingChanges && message.sharingChanges.length)) - message.sharingChanges = []; - message.sharingChanges.push($root.Vault.SharingChange.decode(reader, reader.uint32())); - break; - } - case 20: { - message.profile = $root.Vault.Profile.decode(reader, reader.uint32()); - break; - } - case 21: { - message.profilePic = $root.Vault.ProfilePic.decode(reader, reader.uint32()); - break; - } - case 22: { - if (!(message.pendingTeamMembers && message.pendingTeamMembers.length)) - message.pendingTeamMembers = []; - message.pendingTeamMembers.push($root.Vault.PendingTeamMember.decode(reader, reader.uint32())); - break; - } - case 23: { - if (!(message.breachWatchRecords && message.breachWatchRecords.length)) - message.breachWatchRecords = []; - message.breachWatchRecords.push($root.Vault.BreachWatchRecord.decode(reader, reader.uint32())); - break; - } - case 24: { - if (!(message.userAuths && message.userAuths.length)) - message.userAuths = []; - message.userAuths.push($root.Vault.UserAuth.decode(reader, reader.uint32())); - break; - } - case 25: { - if (!(message.breachWatchSecurityData && message.breachWatchSecurityData.length)) - message.breachWatchSecurityData = []; - message.breachWatchSecurityData.push($root.Vault.BreachWatchSecurityData.decode(reader, reader.uint32())); - break; - } - case 26: { - message.reusedPasswords = $root.Vault.ReusedPasswords.decode(reader, reader.uint32()); - break; - } - case 27: { - if (!(message.removedUserFolders && message.removedUserFolders.length)) - message.removedUserFolders = []; - message.removedUserFolders.push(reader.bytes()); - break; - } - case 28: { - if (!(message.removedSharedFolders && message.removedSharedFolders.length)) - message.removedSharedFolders = []; - message.removedSharedFolders.push(reader.bytes()); - break; - } - case 29: { - if (!(message.removedUserFolderSharedFolders && message.removedUserFolderSharedFolders.length)) - message.removedUserFolderSharedFolders = []; - message.removedUserFolderSharedFolders.push($root.Vault.UserFolderSharedFolder.decode(reader, reader.uint32())); - break; - } - case 30: { - if (!(message.removedSharedFolderFolders && message.removedSharedFolderFolders.length)) - message.removedSharedFolderFolders = []; - message.removedSharedFolderFolders.push($root.Vault.SharedFolderFolder.decode(reader, reader.uint32())); - break; - } - case 31: { - if (!(message.removedRecords && message.removedRecords.length)) - message.removedRecords = []; - message.removedRecords.push(reader.bytes()); - break; - } - case 32: { - if (!(message.removedRecordLinks && message.removedRecordLinks.length)) - message.removedRecordLinks = []; - message.removedRecordLinks.push($root.Vault.RecordLink.decode(reader, reader.uint32())); - break; - } - case 33: { - if (!(message.removedUserFolderRecords && message.removedUserFolderRecords.length)) - message.removedUserFolderRecords = []; - message.removedUserFolderRecords.push($root.Vault.UserFolderRecord.decode(reader, reader.uint32())); - break; - } - case 34: { - if (!(message.removedSharedFolderRecords && message.removedSharedFolderRecords.length)) - message.removedSharedFolderRecords = []; - message.removedSharedFolderRecords.push($root.Vault.SharedFolderRecord.decode(reader, reader.uint32())); - break; - } - case 35: { - if (!(message.removedSharedFolderFolderRecords && message.removedSharedFolderFolderRecords.length)) - message.removedSharedFolderFolderRecords = []; - message.removedSharedFolderFolderRecords.push($root.Vault.SharedFolderFolderRecord.decode(reader, reader.uint32())); - break; - } - case 36: { - if (!(message.removedSharedFolderUsers && message.removedSharedFolderUsers.length)) - message.removedSharedFolderUsers = []; - message.removedSharedFolderUsers.push($root.Vault.SharedFolderUser.decode(reader, reader.uint32())); - break; - } - case 37: { - if (!(message.removedSharedFolderTeams && message.removedSharedFolderTeams.length)) - message.removedSharedFolderTeams = []; - message.removedSharedFolderTeams.push($root.Vault.SharedFolderTeam.decode(reader, reader.uint32())); - break; - } - case 38: { - if (!(message.removedTeams && message.removedTeams.length)) - message.removedTeams = []; - message.removedTeams.push(reader.bytes()); - break; - } - case 39: { - if (!(message.ksmAppShares && message.ksmAppShares.length)) - message.ksmAppShares = []; - message.ksmAppShares.push($root.Vault.KsmChange.decode(reader, reader.uint32())); - break; - } - case 40: { - if (!(message.ksmAppClients && message.ksmAppClients.length)) - message.ksmAppClients = []; - message.ksmAppClients.push($root.Vault.KsmChange.decode(reader, reader.uint32())); - break; - } - case 41: { - if (!(message.shareInvitations && message.shareInvitations.length)) - message.shareInvitations = []; - message.shareInvitations.push($root.Vault.ShareInvitation.decode(reader, reader.uint32())); - break; - } - case 42: { - message.diagnostics = $root.Vault.SyncDiagnostics.decode(reader, reader.uint32()); - break; - } - case 43: { - if (!(message.recordRotations && message.recordRotations.length)) - message.recordRotations = []; - message.recordRotations.push($root.Vault.RecordRotation.decode(reader, reader.uint32())); - break; - } - case 44: { - if (!(message.users && message.users.length)) - message.users = []; - message.users.push($root.Vault.User.decode(reader, reader.uint32())); - break; - } - case 45: { - if (!(message.removedUsers && message.removedUsers.length)) - message.removedUsers = []; - message.removedUsers.push(reader.bytes()); - break; - } - case 46: { - if (!(message.securityScoreData && message.securityScoreData.length)) - message.securityScoreData = []; - message.securityScoreData.push($root.Vault.SecurityScoreData.decode(reader, reader.uint32())); - break; - } - case 47: { - if (!(message.notificationSync && message.notificationSync.length)) - message.notificationSync = []; - message.notificationSync.push($root.NotificationCenter.NotificationWrapper.decode(reader, reader.uint32())); + if (!(message.enterpriseId && message.enterpriseId.length)) + message.enterpriseId = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.enterpriseId.push(reader.int32()); + } else + message.enterpriseId.push(reader.int32()); break; } default: @@ -202573,1214 +204946,274 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a SyncDownResponse message from the specified reader or buffer, length delimited. + * Decodes a KAToPushServerRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.SyncDownResponse + * @memberof Push.KAToPushServerRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SyncDownResponse} SyncDownResponse + * @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 */ - SyncDownResponse.decodeDelimited = function decodeDelimited(reader) { + KAToPushServerRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SyncDownResponse message. + * Verifies a KAToPushServerRequest message. * @function verify - * @memberof Vault.SyncDownResponse + * @memberof Push.KAToPushServerRequest * @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) { + KAToPushServerRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.hasMore != null && message.hasOwnProperty("hasMore")) - if (typeof message.hasMore !== "boolean") - return "hasMore: boolean expected"; - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) - switch (message.cacheStatus) { + if (message.messageType != null && message.hasOwnProperty("messageType")) + switch (message.messageType) { default: - return "cacheStatus: enum value expected"; + 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.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]); - 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]); - 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]); - 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]); - 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]); - 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]); - 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]); - 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]); - 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]); - 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]); - 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]); - 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]); - 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]); - 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]); - 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]); - if (error) - return "sharingChanges." + error; - } - } - if (message.profile != null && message.hasOwnProperty("profile")) { - let error = $root.Vault.Profile.verify(message.profile); - if (error) - return "profile." + error; - } - if (message.profilePic != null && message.hasOwnProperty("profilePic")) { - let error = $root.Vault.ProfilePic.verify(message.profilePic); - 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]); - 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]); - 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]); - 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]); - if (error) - return "breachWatchSecurityData." + error; - } - } - if (message.reusedPasswords != null && message.hasOwnProperty("reusedPasswords")) { - let error = $root.Vault.ReusedPasswords.verify(message.reusedPasswords); - 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]); - 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]); - 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]); - 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]); - 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]); - 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]); - 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]); - 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]); - 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]); - 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]); - 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]); - if (error) - return "shareInvitations." + error; - } - } - if (message.diagnostics != null && message.hasOwnProperty("diagnostics")) { - let error = $root.Vault.SyncDiagnostics.verify(message.diagnostics); - 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]); - 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]); - 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.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.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]); - if (error) - return "securityScoreData." + error; - } + 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.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]); - if (error) - return "notificationSync." + error; - } + 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 SyncDownResponse message from a plain object. Also converts values to their respective internal types. + * Creates a KAToPushServerRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.SyncDownResponse + * @memberof Push.KAToPushServerRequest * @static * @param {Object.} object Plain object - * @returns {Vault.SyncDownResponse} SyncDownResponse + * @returns {Push.KAToPushServerRequest} KAToPushServerRequest */ - SyncDownResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SyncDownResponse) + KAToPushServerRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Push.KAToPushServerRequest) return object; - let message = new $root.Vault.SyncDownResponse(); - if (object.continuationToken != null) - if (typeof object.continuationToken === "string") - $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); - else if (object.continuationToken.length >= 0) - message.continuationToken = object.continuationToken; - if (object.hasMore != null) - message.hasMore = Boolean(object.hasMore); - switch (object.cacheStatus) { + let message = new $root.Push.KAToPushServerRequest(); + switch (object.messageType) { default: - if (typeof object.cacheStatus === "number") { - message.cacheStatus = object.cacheStatus; + if (typeof object.messageType === "number") { + message.messageType = object.messageType; break; } break; - case "KEEP": + case "UNKNOWN": case 0: - message.cacheStatus = 0; + message.messageType = 0; break; - case "CLEAR": + case "DNA": case 1: - message.cacheStatus = 1; + message.messageType = 1; + break; + case "SSO": + case 2: + message.messageType = 2; + break; + case "CHAT": + case 3: + message.messageType = 3; + break; + case "USER": + case 4: + message.messageType = 4; + break; + case "ENTERPRISE": + case 5: + message.messageType = 5; + break; + case "KEEPER": + case 6: + message.messageType = 6; + break; + case "SESSION": + case 7: + message.messageType = 7; + break; + case "DEVICE": + case 8: + message.messageType = 8; + break; + case "TOTP": + case 9: + message.messageType = 9; break; } - if (object.userFolders) { - if (!Array.isArray(object.userFolders)) - throw TypeError(".Vault.SyncDownResponse.userFolders: array expected"); - message.userFolders = []; - for (let i = 0; i < object.userFolders.length; ++i) { - if (typeof object.userFolders[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.userFolders: object expected"); - message.userFolders[i] = $root.Vault.UserFolder.fromObject(object.userFolders[i]); - } - } - if (object.sharedFolders) { - if (!Array.isArray(object.sharedFolders)) - throw TypeError(".Vault.SyncDownResponse.sharedFolders: array expected"); - message.sharedFolders = []; - for (let i = 0; i < object.sharedFolders.length; ++i) { - if (typeof object.sharedFolders[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.sharedFolders: object expected"); - message.sharedFolders[i] = $root.Vault.SharedFolder.fromObject(object.sharedFolders[i]); - } - } - if (object.userFolderSharedFolders) { - if (!Array.isArray(object.userFolderSharedFolders)) - throw TypeError(".Vault.SyncDownResponse.userFolderSharedFolders: array expected"); - message.userFolderSharedFolders = []; - for (let i = 0; i < object.userFolderSharedFolders.length; ++i) { - if (typeof object.userFolderSharedFolders[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.userFolderSharedFolders: object expected"); - message.userFolderSharedFolders[i] = $root.Vault.UserFolderSharedFolder.fromObject(object.userFolderSharedFolders[i]); - } - } - if (object.sharedFolderFolders) { - if (!Array.isArray(object.sharedFolderFolders)) - throw TypeError(".Vault.SyncDownResponse.sharedFolderFolders: array expected"); - message.sharedFolderFolders = []; - for (let i = 0; i < object.sharedFolderFolders.length; ++i) { - if (typeof object.sharedFolderFolders[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.sharedFolderFolders: object expected"); - message.sharedFolderFolders[i] = $root.Vault.SharedFolderFolder.fromObject(object.sharedFolderFolders[i]); - } - } - if (object.records) { - if (!Array.isArray(object.records)) - throw TypeError(".Vault.SyncDownResponse.records: array expected"); - message.records = []; - for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.records: object expected"); - message.records[i] = $root.Vault.Record.fromObject(object.records[i]); - } - } - if (object.recordMetaData) { - if (!Array.isArray(object.recordMetaData)) - throw TypeError(".Vault.SyncDownResponse.recordMetaData: array expected"); - message.recordMetaData = []; - for (let i = 0; i < object.recordMetaData.length; ++i) { - if (typeof object.recordMetaData[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.recordMetaData: object expected"); - message.recordMetaData[i] = $root.Vault.RecordMetaData.fromObject(object.recordMetaData[i]); - } - } - if (object.nonSharedData) { - if (!Array.isArray(object.nonSharedData)) - throw TypeError(".Vault.SyncDownResponse.nonSharedData: array expected"); - message.nonSharedData = []; - for (let i = 0; i < object.nonSharedData.length; ++i) { - if (typeof object.nonSharedData[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.nonSharedData: object expected"); - message.nonSharedData[i] = $root.Vault.NonSharedData.fromObject(object.nonSharedData[i]); - } - } - if (object.recordLinks) { - if (!Array.isArray(object.recordLinks)) - throw TypeError(".Vault.SyncDownResponse.recordLinks: array expected"); - message.recordLinks = []; - for (let i = 0; i < object.recordLinks.length; ++i) { - if (typeof object.recordLinks[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.recordLinks: object expected"); - message.recordLinks[i] = $root.Vault.RecordLink.fromObject(object.recordLinks[i]); - } - } - if (object.userFolderRecords) { - if (!Array.isArray(object.userFolderRecords)) - throw TypeError(".Vault.SyncDownResponse.userFolderRecords: array expected"); - message.userFolderRecords = []; - for (let i = 0; i < object.userFolderRecords.length; ++i) { - if (typeof object.userFolderRecords[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.userFolderRecords: object expected"); - message.userFolderRecords[i] = $root.Vault.UserFolderRecord.fromObject(object.userFolderRecords[i]); - } - } - if (object.sharedFolderRecords) { - if (!Array.isArray(object.sharedFolderRecords)) - throw TypeError(".Vault.SyncDownResponse.sharedFolderRecords: array expected"); - message.sharedFolderRecords = []; - for (let i = 0; i < object.sharedFolderRecords.length; ++i) { - if (typeof object.sharedFolderRecords[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.sharedFolderRecords: object expected"); - message.sharedFolderRecords[i] = $root.Vault.SharedFolderRecord.fromObject(object.sharedFolderRecords[i]); - } - } - if (object.sharedFolderFolderRecords) { - if (!Array.isArray(object.sharedFolderFolderRecords)) - throw TypeError(".Vault.SyncDownResponse.sharedFolderFolderRecords: array expected"); - message.sharedFolderFolderRecords = []; - for (let i = 0; i < object.sharedFolderFolderRecords.length; ++i) { - if (typeof object.sharedFolderFolderRecords[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.sharedFolderFolderRecords: object expected"); - message.sharedFolderFolderRecords[i] = $root.Vault.SharedFolderFolderRecord.fromObject(object.sharedFolderFolderRecords[i]); - } - } - if (object.sharedFolderUsers) { - if (!Array.isArray(object.sharedFolderUsers)) - throw TypeError(".Vault.SyncDownResponse.sharedFolderUsers: array expected"); - message.sharedFolderUsers = []; - for (let i = 0; i < object.sharedFolderUsers.length; ++i) { - if (typeof object.sharedFolderUsers[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.sharedFolderUsers: object expected"); - message.sharedFolderUsers[i] = $root.Vault.SharedFolderUser.fromObject(object.sharedFolderUsers[i]); - } - } - if (object.sharedFolderTeams) { - if (!Array.isArray(object.sharedFolderTeams)) - throw TypeError(".Vault.SyncDownResponse.sharedFolderTeams: array expected"); - message.sharedFolderTeams = []; - for (let i = 0; i < object.sharedFolderTeams.length; ++i) { - if (typeof object.sharedFolderTeams[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.sharedFolderTeams: object expected"); - message.sharedFolderTeams[i] = $root.Vault.SharedFolderTeam.fromObject(object.sharedFolderTeams[i]); - } - } - if (object.recordAddAuditData) { - if (!Array.isArray(object.recordAddAuditData)) - throw TypeError(".Vault.SyncDownResponse.recordAddAuditData: array expected"); - message.recordAddAuditData = []; - for (let i = 0; i < object.recordAddAuditData.length; ++i) - if (typeof object.recordAddAuditData[i] === "string") - $util.base64.decode(object.recordAddAuditData[i], message.recordAddAuditData[i] = $util.newBuffer($util.base64.length(object.recordAddAuditData[i])), 0); - else if (object.recordAddAuditData[i].length >= 0) - message.recordAddAuditData[i] = object.recordAddAuditData[i]; - } - if (object.teams) { - if (!Array.isArray(object.teams)) - throw TypeError(".Vault.SyncDownResponse.teams: array expected"); - message.teams = []; - for (let i = 0; i < object.teams.length; ++i) { - if (typeof object.teams[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.teams: object expected"); - message.teams[i] = $root.Vault.Team.fromObject(object.teams[i]); - } - } - if (object.sharingChanges) { - if (!Array.isArray(object.sharingChanges)) - throw TypeError(".Vault.SyncDownResponse.sharingChanges: array expected"); - message.sharingChanges = []; - for (let i = 0; i < object.sharingChanges.length; ++i) { - if (typeof object.sharingChanges[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.sharingChanges: object expected"); - message.sharingChanges[i] = $root.Vault.SharingChange.fromObject(object.sharingChanges[i]); - } - } - if (object.profile != null) { - if (typeof object.profile !== "object") - throw TypeError(".Vault.SyncDownResponse.profile: object expected"); - message.profile = $root.Vault.Profile.fromObject(object.profile); - } - if (object.profilePic != null) { - if (typeof object.profilePic !== "object") - throw TypeError(".Vault.SyncDownResponse.profilePic: object expected"); - message.profilePic = $root.Vault.ProfilePic.fromObject(object.profilePic); - } - if (object.pendingTeamMembers) { - if (!Array.isArray(object.pendingTeamMembers)) - throw TypeError(".Vault.SyncDownResponse.pendingTeamMembers: array expected"); - message.pendingTeamMembers = []; - for (let i = 0; i < object.pendingTeamMembers.length; ++i) { - if (typeof object.pendingTeamMembers[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.pendingTeamMembers: object expected"); - message.pendingTeamMembers[i] = $root.Vault.PendingTeamMember.fromObject(object.pendingTeamMembers[i]); - } - } - if (object.breachWatchRecords) { - if (!Array.isArray(object.breachWatchRecords)) - throw TypeError(".Vault.SyncDownResponse.breachWatchRecords: array expected"); - message.breachWatchRecords = []; - for (let i = 0; i < object.breachWatchRecords.length; ++i) { - if (typeof object.breachWatchRecords[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.breachWatchRecords: object expected"); - message.breachWatchRecords[i] = $root.Vault.BreachWatchRecord.fromObject(object.breachWatchRecords[i]); - } - } - if (object.userAuths) { - if (!Array.isArray(object.userAuths)) - throw TypeError(".Vault.SyncDownResponse.userAuths: array expected"); - message.userAuths = []; - for (let i = 0; i < object.userAuths.length; ++i) { - if (typeof object.userAuths[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.userAuths: object expected"); - message.userAuths[i] = $root.Vault.UserAuth.fromObject(object.userAuths[i]); - } - } - if (object.breachWatchSecurityData) { - if (!Array.isArray(object.breachWatchSecurityData)) - throw TypeError(".Vault.SyncDownResponse.breachWatchSecurityData: array expected"); - message.breachWatchSecurityData = []; - for (let i = 0; i < object.breachWatchSecurityData.length; ++i) { - if (typeof object.breachWatchSecurityData[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.breachWatchSecurityData: object expected"); - message.breachWatchSecurityData[i] = $root.Vault.BreachWatchSecurityData.fromObject(object.breachWatchSecurityData[i]); - } - } - if (object.reusedPasswords != null) { - if (typeof object.reusedPasswords !== "object") - throw TypeError(".Vault.SyncDownResponse.reusedPasswords: object expected"); - message.reusedPasswords = $root.Vault.ReusedPasswords.fromObject(object.reusedPasswords); - } - if (object.removedUserFolders) { - if (!Array.isArray(object.removedUserFolders)) - throw TypeError(".Vault.SyncDownResponse.removedUserFolders: array expected"); - message.removedUserFolders = []; - for (let i = 0; i < object.removedUserFolders.length; ++i) - if (typeof object.removedUserFolders[i] === "string") - $util.base64.decode(object.removedUserFolders[i], message.removedUserFolders[i] = $util.newBuffer($util.base64.length(object.removedUserFolders[i])), 0); - else if (object.removedUserFolders[i].length >= 0) - message.removedUserFolders[i] = object.removedUserFolders[i]; - } - if (object.removedSharedFolders) { - if (!Array.isArray(object.removedSharedFolders)) - throw TypeError(".Vault.SyncDownResponse.removedSharedFolders: array expected"); - message.removedSharedFolders = []; - for (let i = 0; i < object.removedSharedFolders.length; ++i) - if (typeof object.removedSharedFolders[i] === "string") - $util.base64.decode(object.removedSharedFolders[i], message.removedSharedFolders[i] = $util.newBuffer($util.base64.length(object.removedSharedFolders[i])), 0); - else if (object.removedSharedFolders[i].length >= 0) - message.removedSharedFolders[i] = object.removedSharedFolders[i]; - } - if (object.removedUserFolderSharedFolders) { - if (!Array.isArray(object.removedUserFolderSharedFolders)) - throw TypeError(".Vault.SyncDownResponse.removedUserFolderSharedFolders: array expected"); - message.removedUserFolderSharedFolders = []; - for (let i = 0; i < object.removedUserFolderSharedFolders.length; ++i) { - if (typeof object.removedUserFolderSharedFolders[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.removedUserFolderSharedFolders: object expected"); - message.removedUserFolderSharedFolders[i] = $root.Vault.UserFolderSharedFolder.fromObject(object.removedUserFolderSharedFolders[i]); - } - } - if (object.removedSharedFolderFolders) { - if (!Array.isArray(object.removedSharedFolderFolders)) - throw TypeError(".Vault.SyncDownResponse.removedSharedFolderFolders: array expected"); - message.removedSharedFolderFolders = []; - for (let i = 0; i < object.removedSharedFolderFolders.length; ++i) { - if (typeof object.removedSharedFolderFolders[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.removedSharedFolderFolders: object expected"); - message.removedSharedFolderFolders[i] = $root.Vault.SharedFolderFolder.fromObject(object.removedSharedFolderFolders[i]); - } - } - if (object.removedRecords) { - if (!Array.isArray(object.removedRecords)) - throw TypeError(".Vault.SyncDownResponse.removedRecords: array expected"); - message.removedRecords = []; - for (let i = 0; i < object.removedRecords.length; ++i) - if (typeof object.removedRecords[i] === "string") - $util.base64.decode(object.removedRecords[i], message.removedRecords[i] = $util.newBuffer($util.base64.length(object.removedRecords[i])), 0); - else if (object.removedRecords[i].length >= 0) - message.removedRecords[i] = object.removedRecords[i]; - } - if (object.removedRecordLinks) { - if (!Array.isArray(object.removedRecordLinks)) - throw TypeError(".Vault.SyncDownResponse.removedRecordLinks: array expected"); - message.removedRecordLinks = []; - for (let i = 0; i < object.removedRecordLinks.length; ++i) { - if (typeof object.removedRecordLinks[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.removedRecordLinks: object expected"); - message.removedRecordLinks[i] = $root.Vault.RecordLink.fromObject(object.removedRecordLinks[i]); - } - } - if (object.removedUserFolderRecords) { - if (!Array.isArray(object.removedUserFolderRecords)) - throw TypeError(".Vault.SyncDownResponse.removedUserFolderRecords: array expected"); - message.removedUserFolderRecords = []; - for (let i = 0; i < object.removedUserFolderRecords.length; ++i) { - if (typeof object.removedUserFolderRecords[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.removedUserFolderRecords: object expected"); - message.removedUserFolderRecords[i] = $root.Vault.UserFolderRecord.fromObject(object.removedUserFolderRecords[i]); - } - } - if (object.removedSharedFolderRecords) { - if (!Array.isArray(object.removedSharedFolderRecords)) - throw TypeError(".Vault.SyncDownResponse.removedSharedFolderRecords: array expected"); - message.removedSharedFolderRecords = []; - for (let i = 0; i < object.removedSharedFolderRecords.length; ++i) { - if (typeof object.removedSharedFolderRecords[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.removedSharedFolderRecords: object expected"); - message.removedSharedFolderRecords[i] = $root.Vault.SharedFolderRecord.fromObject(object.removedSharedFolderRecords[i]); - } - } - if (object.removedSharedFolderFolderRecords) { - if (!Array.isArray(object.removedSharedFolderFolderRecords)) - throw TypeError(".Vault.SyncDownResponse.removedSharedFolderFolderRecords: array expected"); - message.removedSharedFolderFolderRecords = []; - for (let i = 0; i < object.removedSharedFolderFolderRecords.length; ++i) { - if (typeof object.removedSharedFolderFolderRecords[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.removedSharedFolderFolderRecords: object expected"); - message.removedSharedFolderFolderRecords[i] = $root.Vault.SharedFolderFolderRecord.fromObject(object.removedSharedFolderFolderRecords[i]); - } - } - if (object.removedSharedFolderUsers) { - if (!Array.isArray(object.removedSharedFolderUsers)) - throw TypeError(".Vault.SyncDownResponse.removedSharedFolderUsers: array expected"); - message.removedSharedFolderUsers = []; - for (let i = 0; i < object.removedSharedFolderUsers.length; ++i) { - if (typeof object.removedSharedFolderUsers[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.removedSharedFolderUsers: object expected"); - message.removedSharedFolderUsers[i] = $root.Vault.SharedFolderUser.fromObject(object.removedSharedFolderUsers[i]); - } - } - if (object.removedSharedFolderTeams) { - if (!Array.isArray(object.removedSharedFolderTeams)) - throw TypeError(".Vault.SyncDownResponse.removedSharedFolderTeams: array expected"); - message.removedSharedFolderTeams = []; - for (let i = 0; i < object.removedSharedFolderTeams.length; ++i) { - if (typeof object.removedSharedFolderTeams[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.removedSharedFolderTeams: object expected"); - message.removedSharedFolderTeams[i] = $root.Vault.SharedFolderTeam.fromObject(object.removedSharedFolderTeams[i]); - } - } - if (object.removedTeams) { - if (!Array.isArray(object.removedTeams)) - throw TypeError(".Vault.SyncDownResponse.removedTeams: array expected"); - message.removedTeams = []; - for (let i = 0; i < object.removedTeams.length; ++i) - if (typeof object.removedTeams[i] === "string") - $util.base64.decode(object.removedTeams[i], message.removedTeams[i] = $util.newBuffer($util.base64.length(object.removedTeams[i])), 0); - else if (object.removedTeams[i].length >= 0) - message.removedTeams[i] = object.removedTeams[i]; - } - if (object.ksmAppShares) { - if (!Array.isArray(object.ksmAppShares)) - throw TypeError(".Vault.SyncDownResponse.ksmAppShares: array expected"); - message.ksmAppShares = []; - for (let i = 0; i < object.ksmAppShares.length; ++i) { - if (typeof object.ksmAppShares[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.ksmAppShares: object expected"); - message.ksmAppShares[i] = $root.Vault.KsmChange.fromObject(object.ksmAppShares[i]); - } - } - if (object.ksmAppClients) { - if (!Array.isArray(object.ksmAppClients)) - throw TypeError(".Vault.SyncDownResponse.ksmAppClients: array expected"); - message.ksmAppClients = []; - for (let i = 0; i < object.ksmAppClients.length; ++i) { - if (typeof object.ksmAppClients[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.ksmAppClients: object expected"); - message.ksmAppClients[i] = $root.Vault.KsmChange.fromObject(object.ksmAppClients[i]); - } - } - if (object.shareInvitations) { - if (!Array.isArray(object.shareInvitations)) - throw TypeError(".Vault.SyncDownResponse.shareInvitations: array expected"); - message.shareInvitations = []; - for (let i = 0; i < object.shareInvitations.length; ++i) { - if (typeof object.shareInvitations[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.shareInvitations: object expected"); - message.shareInvitations[i] = $root.Vault.ShareInvitation.fromObject(object.shareInvitations[i]); - } - } - if (object.diagnostics != null) { - if (typeof object.diagnostics !== "object") - throw TypeError(".Vault.SyncDownResponse.diagnostics: object expected"); - message.diagnostics = $root.Vault.SyncDiagnostics.fromObject(object.diagnostics); - } - if (object.recordRotations) { - if (!Array.isArray(object.recordRotations)) - throw TypeError(".Vault.SyncDownResponse.recordRotations: array expected"); - message.recordRotations = []; - for (let i = 0; i < object.recordRotations.length; ++i) { - if (typeof object.recordRotations[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.recordRotations: object expected"); - message.recordRotations[i] = $root.Vault.RecordRotation.fromObject(object.recordRotations[i]); - } - } - if (object.users) { - if (!Array.isArray(object.users)) - throw TypeError(".Vault.SyncDownResponse.users: array expected"); - message.users = []; - for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.users: object expected"); - message.users[i] = $root.Vault.User.fromObject(object.users[i]); - } - } - if (object.removedUsers) { - if (!Array.isArray(object.removedUsers)) - throw TypeError(".Vault.SyncDownResponse.removedUsers: array expected"); - message.removedUsers = []; - for (let i = 0; i < object.removedUsers.length; ++i) - if (typeof object.removedUsers[i] === "string") - $util.base64.decode(object.removedUsers[i], message.removedUsers[i] = $util.newBuffer($util.base64.length(object.removedUsers[i])), 0); - else if (object.removedUsers[i].length >= 0) - message.removedUsers[i] = object.removedUsers[i]; + if (object.message != null) + message.message = String(object.message); + if (object.messageSessionUid != null) + if (typeof object.messageSessionUid === "string") + $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); + else if (object.messageSessionUid.length >= 0) + message.messageSessionUid = object.messageSessionUid; + if (object.encryptedDeviceToken) { + if (!Array.isArray(object.encryptedDeviceToken)) + throw TypeError(".Push.KAToPushServerRequest.encryptedDeviceToken: array expected"); + message.encryptedDeviceToken = []; + for (let i = 0; i < object.encryptedDeviceToken.length; ++i) + if (typeof object.encryptedDeviceToken[i] === "string") + $util.base64.decode(object.encryptedDeviceToken[i], message.encryptedDeviceToken[i] = $util.newBuffer($util.base64.length(object.encryptedDeviceToken[i])), 0); + else if (object.encryptedDeviceToken[i].length >= 0) + message.encryptedDeviceToken[i] = object.encryptedDeviceToken[i]; } - if (object.securityScoreData) { - if (!Array.isArray(object.securityScoreData)) - throw TypeError(".Vault.SyncDownResponse.securityScoreData: array expected"); - message.securityScoreData = []; - for (let i = 0; i < object.securityScoreData.length; ++i) { - if (typeof object.securityScoreData[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.securityScoreData: object expected"); - message.securityScoreData[i] = $root.Vault.SecurityScoreData.fromObject(object.securityScoreData[i]); - } + if (object.userId) { + if (!Array.isArray(object.userId)) + throw TypeError(".Push.KAToPushServerRequest.userId: array expected"); + message.userId = []; + for (let i = 0; i < object.userId.length; ++i) + message.userId[i] = object.userId[i] | 0; } - if (object.notificationSync) { - if (!Array.isArray(object.notificationSync)) - throw TypeError(".Vault.SyncDownResponse.notificationSync: array expected"); - message.notificationSync = []; - for (let i = 0; i < object.notificationSync.length; ++i) { - if (typeof object.notificationSync[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.notificationSync: object expected"); - message.notificationSync[i] = $root.NotificationCenter.NotificationWrapper.fromObject(object.notificationSync[i]); - } + if (object.enterpriseId) { + if (!Array.isArray(object.enterpriseId)) + throw TypeError(".Push.KAToPushServerRequest.enterpriseId: array expected"); + message.enterpriseId = []; + for (let i = 0; i < object.enterpriseId.length; ++i) + message.enterpriseId[i] = object.enterpriseId[i] | 0; } return message; }; /** - * Creates a plain object from a SyncDownResponse message. Also converts values to other types if specified. + * Creates a plain object from a KAToPushServerRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.SyncDownResponse + * @memberof Push.KAToPushServerRequest * @static - * @param {Vault.SyncDownResponse} message SyncDownResponse + * @param {Push.KAToPushServerRequest} message KAToPushServerRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SyncDownResponse.toObject = function toObject(message, options) { + KAToPushServerRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { - object.userFolders = []; - object.sharedFolders = []; - object.userFolderSharedFolders = []; - object.sharedFolderFolders = []; - object.records = []; - object.recordMetaData = []; - object.nonSharedData = []; - object.recordLinks = []; - object.userFolderRecords = []; - object.sharedFolderRecords = []; - object.sharedFolderFolderRecords = []; - object.sharedFolderUsers = []; - object.sharedFolderTeams = []; - object.recordAddAuditData = []; - object.teams = []; - object.sharingChanges = []; - object.pendingTeamMembers = []; - object.breachWatchRecords = []; - object.userAuths = []; - object.breachWatchSecurityData = []; - object.removedUserFolders = []; - object.removedSharedFolders = []; - object.removedUserFolderSharedFolders = []; - object.removedSharedFolderFolders = []; - object.removedRecords = []; - object.removedRecordLinks = []; - object.removedUserFolderRecords = []; - object.removedSharedFolderRecords = []; - object.removedSharedFolderFolderRecords = []; - object.removedSharedFolderUsers = []; - object.removedSharedFolderTeams = []; - object.removedTeams = []; - object.ksmAppShares = []; - object.ksmAppClients = []; - object.shareInvitations = []; - object.recordRotations = []; - object.users = []; - object.removedUsers = []; - object.securityScoreData = []; - object.notificationSync = []; + object.encryptedDeviceToken = []; + object.userId = []; + object.enterpriseId = []; } if (options.defaults) { + object.messageType = options.enums === String ? "UNKNOWN" : 0; + object.message = ""; if (options.bytes === String) - object.continuationToken = ""; + object.messageSessionUid = ""; else { - object.continuationToken = []; + object.messageSessionUid = []; if (options.bytes !== Array) - object.continuationToken = $util.newBuffer(object.continuationToken); + object.messageSessionUid = $util.newBuffer(object.messageSessionUid); } - object.hasMore = false; - object.cacheStatus = options.enums === String ? "KEEP" : 0; - object.profile = null; - object.profilePic = null; - object.reusedPasswords = null; - object.diagnostics = null; } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - object.hasMore = message.hasMore; - if (message.cacheStatus != null && message.hasOwnProperty("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 = []; - for (let j = 0; j < message.userFolders.length; ++j) - object.userFolders[j] = $root.Vault.UserFolder.toObject(message.userFolders[j], options); + if (message.messageType != null && message.hasOwnProperty("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")) + object.message = message.message; + if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) + object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; + if (message.encryptedDeviceToken && message.encryptedDeviceToken.length) { + object.encryptedDeviceToken = []; + for (let j = 0; j < message.encryptedDeviceToken.length; ++j) + object.encryptedDeviceToken[j] = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken[j], 0, message.encryptedDeviceToken[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken[j]) : message.encryptedDeviceToken[j]; } - if (message.sharedFolders && message.sharedFolders.length) { - object.sharedFolders = []; - for (let j = 0; j < message.sharedFolders.length; ++j) - object.sharedFolders[j] = $root.Vault.SharedFolder.toObject(message.sharedFolders[j], options); + if (message.userId && message.userId.length) { + object.userId = []; + for (let j = 0; j < message.userId.length; ++j) + object.userId[j] = message.userId[j]; } - if (message.userFolderSharedFolders && message.userFolderSharedFolders.length) { - object.userFolderSharedFolders = []; - for (let j = 0; j < message.userFolderSharedFolders.length; ++j) - object.userFolderSharedFolders[j] = $root.Vault.UserFolderSharedFolder.toObject(message.userFolderSharedFolders[j], options); - } - if (message.sharedFolderFolders && message.sharedFolderFolders.length) { - object.sharedFolderFolders = []; - for (let j = 0; j < message.sharedFolderFolders.length; ++j) - object.sharedFolderFolders[j] = $root.Vault.SharedFolderFolder.toObject(message.sharedFolderFolders[j], options); - } - if (message.records && message.records.length) { - object.records = []; - for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.Vault.Record.toObject(message.records[j], options); - } - if (message.recordMetaData && message.recordMetaData.length) { - object.recordMetaData = []; - for (let j = 0; j < message.recordMetaData.length; ++j) - object.recordMetaData[j] = $root.Vault.RecordMetaData.toObject(message.recordMetaData[j], options); - } - if (message.nonSharedData && message.nonSharedData.length) { - object.nonSharedData = []; - for (let j = 0; j < message.nonSharedData.length; ++j) - object.nonSharedData[j] = $root.Vault.NonSharedData.toObject(message.nonSharedData[j], options); - } - if (message.recordLinks && message.recordLinks.length) { - object.recordLinks = []; - for (let j = 0; j < message.recordLinks.length; ++j) - object.recordLinks[j] = $root.Vault.RecordLink.toObject(message.recordLinks[j], options); - } - if (message.userFolderRecords && message.userFolderRecords.length) { - object.userFolderRecords = []; - for (let j = 0; j < message.userFolderRecords.length; ++j) - object.userFolderRecords[j] = $root.Vault.UserFolderRecord.toObject(message.userFolderRecords[j], options); - } - if (message.sharedFolderRecords && message.sharedFolderRecords.length) { - object.sharedFolderRecords = []; - for (let j = 0; j < message.sharedFolderRecords.length; ++j) - object.sharedFolderRecords[j] = $root.Vault.SharedFolderRecord.toObject(message.sharedFolderRecords[j], options); - } - if (message.sharedFolderFolderRecords && message.sharedFolderFolderRecords.length) { - object.sharedFolderFolderRecords = []; - for (let j = 0; j < message.sharedFolderFolderRecords.length; ++j) - object.sharedFolderFolderRecords[j] = $root.Vault.SharedFolderFolderRecord.toObject(message.sharedFolderFolderRecords[j], options); - } - if (message.sharedFolderUsers && message.sharedFolderUsers.length) { - object.sharedFolderUsers = []; - for (let j = 0; j < message.sharedFolderUsers.length; ++j) - object.sharedFolderUsers[j] = $root.Vault.SharedFolderUser.toObject(message.sharedFolderUsers[j], options); - } - if (message.sharedFolderTeams && message.sharedFolderTeams.length) { - object.sharedFolderTeams = []; - for (let j = 0; j < message.sharedFolderTeams.length; ++j) - object.sharedFolderTeams[j] = $root.Vault.SharedFolderTeam.toObject(message.sharedFolderTeams[j], options); - } - if (message.recordAddAuditData && message.recordAddAuditData.length) { - object.recordAddAuditData = []; - for (let j = 0; j < message.recordAddAuditData.length; ++j) - object.recordAddAuditData[j] = options.bytes === String ? $util.base64.encode(message.recordAddAuditData[j], 0, message.recordAddAuditData[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordAddAuditData[j]) : message.recordAddAuditData[j]; - } - if (message.teams && message.teams.length) { - object.teams = []; - for (let j = 0; j < message.teams.length; ++j) - object.teams[j] = $root.Vault.Team.toObject(message.teams[j], options); - } - if (message.sharingChanges && message.sharingChanges.length) { - object.sharingChanges = []; - for (let j = 0; j < message.sharingChanges.length; ++j) - object.sharingChanges[j] = $root.Vault.SharingChange.toObject(message.sharingChanges[j], options); - } - if (message.profile != null && message.hasOwnProperty("profile")) - object.profile = $root.Vault.Profile.toObject(message.profile, options); - if (message.profilePic != null && message.hasOwnProperty("profilePic")) - object.profilePic = $root.Vault.ProfilePic.toObject(message.profilePic, options); - if (message.pendingTeamMembers && message.pendingTeamMembers.length) { - object.pendingTeamMembers = []; - for (let j = 0; j < message.pendingTeamMembers.length; ++j) - object.pendingTeamMembers[j] = $root.Vault.PendingTeamMember.toObject(message.pendingTeamMembers[j], options); - } - if (message.breachWatchRecords && message.breachWatchRecords.length) { - object.breachWatchRecords = []; - for (let j = 0; j < message.breachWatchRecords.length; ++j) - object.breachWatchRecords[j] = $root.Vault.BreachWatchRecord.toObject(message.breachWatchRecords[j], options); - } - if (message.userAuths && message.userAuths.length) { - object.userAuths = []; - for (let j = 0; j < message.userAuths.length; ++j) - object.userAuths[j] = $root.Vault.UserAuth.toObject(message.userAuths[j], options); - } - if (message.breachWatchSecurityData && message.breachWatchSecurityData.length) { - object.breachWatchSecurityData = []; - for (let j = 0; j < message.breachWatchSecurityData.length; ++j) - object.breachWatchSecurityData[j] = $root.Vault.BreachWatchSecurityData.toObject(message.breachWatchSecurityData[j], options); - } - if (message.reusedPasswords != null && message.hasOwnProperty("reusedPasswords")) - object.reusedPasswords = $root.Vault.ReusedPasswords.toObject(message.reusedPasswords, options); - if (message.removedUserFolders && message.removedUserFolders.length) { - object.removedUserFolders = []; - for (let j = 0; j < message.removedUserFolders.length; ++j) - object.removedUserFolders[j] = options.bytes === String ? $util.base64.encode(message.removedUserFolders[j], 0, message.removedUserFolders[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.removedUserFolders[j]) : message.removedUserFolders[j]; - } - if (message.removedSharedFolders && message.removedSharedFolders.length) { - object.removedSharedFolders = []; - for (let j = 0; j < message.removedSharedFolders.length; ++j) - object.removedSharedFolders[j] = options.bytes === String ? $util.base64.encode(message.removedSharedFolders[j], 0, message.removedSharedFolders[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.removedSharedFolders[j]) : message.removedSharedFolders[j]; - } - if (message.removedUserFolderSharedFolders && message.removedUserFolderSharedFolders.length) { - object.removedUserFolderSharedFolders = []; - for (let j = 0; j < message.removedUserFolderSharedFolders.length; ++j) - object.removedUserFolderSharedFolders[j] = $root.Vault.UserFolderSharedFolder.toObject(message.removedUserFolderSharedFolders[j], options); - } - if (message.removedSharedFolderFolders && message.removedSharedFolderFolders.length) { - object.removedSharedFolderFolders = []; - for (let j = 0; j < message.removedSharedFolderFolders.length; ++j) - object.removedSharedFolderFolders[j] = $root.Vault.SharedFolderFolder.toObject(message.removedSharedFolderFolders[j], options); - } - if (message.removedRecords && message.removedRecords.length) { - object.removedRecords = []; - for (let j = 0; j < message.removedRecords.length; ++j) - object.removedRecords[j] = options.bytes === String ? $util.base64.encode(message.removedRecords[j], 0, message.removedRecords[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.removedRecords[j]) : message.removedRecords[j]; - } - if (message.removedRecordLinks && message.removedRecordLinks.length) { - object.removedRecordLinks = []; - for (let j = 0; j < message.removedRecordLinks.length; ++j) - object.removedRecordLinks[j] = $root.Vault.RecordLink.toObject(message.removedRecordLinks[j], options); - } - if (message.removedUserFolderRecords && message.removedUserFolderRecords.length) { - object.removedUserFolderRecords = []; - for (let j = 0; j < message.removedUserFolderRecords.length; ++j) - object.removedUserFolderRecords[j] = $root.Vault.UserFolderRecord.toObject(message.removedUserFolderRecords[j], options); - } - if (message.removedSharedFolderRecords && message.removedSharedFolderRecords.length) { - object.removedSharedFolderRecords = []; - for (let j = 0; j < message.removedSharedFolderRecords.length; ++j) - object.removedSharedFolderRecords[j] = $root.Vault.SharedFolderRecord.toObject(message.removedSharedFolderRecords[j], options); - } - if (message.removedSharedFolderFolderRecords && message.removedSharedFolderFolderRecords.length) { - object.removedSharedFolderFolderRecords = []; - for (let j = 0; j < message.removedSharedFolderFolderRecords.length; ++j) - object.removedSharedFolderFolderRecords[j] = $root.Vault.SharedFolderFolderRecord.toObject(message.removedSharedFolderFolderRecords[j], options); - } - if (message.removedSharedFolderUsers && message.removedSharedFolderUsers.length) { - object.removedSharedFolderUsers = []; - for (let j = 0; j < message.removedSharedFolderUsers.length; ++j) - object.removedSharedFolderUsers[j] = $root.Vault.SharedFolderUser.toObject(message.removedSharedFolderUsers[j], options); - } - if (message.removedSharedFolderTeams && message.removedSharedFolderTeams.length) { - object.removedSharedFolderTeams = []; - for (let j = 0; j < message.removedSharedFolderTeams.length; ++j) - object.removedSharedFolderTeams[j] = $root.Vault.SharedFolderTeam.toObject(message.removedSharedFolderTeams[j], options); - } - if (message.removedTeams && message.removedTeams.length) { - object.removedTeams = []; - for (let j = 0; j < message.removedTeams.length; ++j) - object.removedTeams[j] = options.bytes === String ? $util.base64.encode(message.removedTeams[j], 0, message.removedTeams[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.removedTeams[j]) : message.removedTeams[j]; - } - if (message.ksmAppShares && message.ksmAppShares.length) { - object.ksmAppShares = []; - for (let j = 0; j < message.ksmAppShares.length; ++j) - object.ksmAppShares[j] = $root.Vault.KsmChange.toObject(message.ksmAppShares[j], options); - } - if (message.ksmAppClients && message.ksmAppClients.length) { - object.ksmAppClients = []; - for (let j = 0; j < message.ksmAppClients.length; ++j) - object.ksmAppClients[j] = $root.Vault.KsmChange.toObject(message.ksmAppClients[j], options); - } - if (message.shareInvitations && message.shareInvitations.length) { - object.shareInvitations = []; - for (let j = 0; j < message.shareInvitations.length; ++j) - object.shareInvitations[j] = $root.Vault.ShareInvitation.toObject(message.shareInvitations[j], options); - } - if (message.diagnostics != null && message.hasOwnProperty("diagnostics")) - object.diagnostics = $root.Vault.SyncDiagnostics.toObject(message.diagnostics, options); - if (message.recordRotations && message.recordRotations.length) { - object.recordRotations = []; - for (let j = 0; j < message.recordRotations.length; ++j) - object.recordRotations[j] = $root.Vault.RecordRotation.toObject(message.recordRotations[j], options); - } - if (message.users && message.users.length) { - object.users = []; - for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.Vault.User.toObject(message.users[j], options); - } - if (message.removedUsers && message.removedUsers.length) { - object.removedUsers = []; - for (let j = 0; j < message.removedUsers.length; ++j) - object.removedUsers[j] = options.bytes === String ? $util.base64.encode(message.removedUsers[j], 0, message.removedUsers[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.removedUsers[j]) : message.removedUsers[j]; - } - if (message.securityScoreData && message.securityScoreData.length) { - object.securityScoreData = []; - for (let j = 0; j < message.securityScoreData.length; ++j) - object.securityScoreData[j] = $root.Vault.SecurityScoreData.toObject(message.securityScoreData[j], options); - } - if (message.notificationSync && message.notificationSync.length) { - object.notificationSync = []; - for (let j = 0; j < message.notificationSync.length; ++j) - object.notificationSync[j] = $root.NotificationCenter.NotificationWrapper.toObject(message.notificationSync[j], options); + if (message.enterpriseId && message.enterpriseId.length) { + object.enterpriseId = []; + for (let j = 0; j < message.enterpriseId.length; ++j) + object.enterpriseId[j] = message.enterpriseId[j]; } return object; }; /** - * Converts this SyncDownResponse to JSON. + * Converts this KAToPushServerRequest to JSON. * @function toJSON - * @memberof Vault.SyncDownResponse + * @memberof Push.KAToPushServerRequest * @instance * @returns {Object.} JSON object */ - SyncDownResponse.prototype.toJSON = function toJSON() { + KAToPushServerRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SyncDownResponse + * Gets the default type url for KAToPushServerRequest * @function getTypeUrl - * @memberof Vault.SyncDownResponse + * @memberof Push.KAToPushServerRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SyncDownResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + KAToPushServerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.SyncDownResponse"; + return typeUrlPrefix + "/Push.KAToPushServerRequest"; }; - return SyncDownResponse; + return KAToPushServerRequest; })(); - Vault.UserFolder = (function() { + Push.WssConnectionRequest = (function() { /** - * Properties of a UserFolder. - * @memberof Vault - * @interface IUserFolder - * @property {Uint8Array|null} [folderUid] UserFolder folderUid - * @property {Uint8Array|null} [parentUid] UserFolder parentUid - * @property {Uint8Array|null} [userFolderKey] UserFolder userFolderKey - * @property {Records.RecordKeyType|null} [keyType] UserFolder keyType - * @property {number|Long|null} [revision] UserFolder revision - * @property {Uint8Array|null} [data] UserFolder data + * Properties of a WssConnectionRequest. + * @memberof Push + * @interface IWssConnectionRequest + * @property {Uint8Array|null} [messageSessionUid] WssConnectionRequest messageSessionUid + * @property {Uint8Array|null} [encryptedDeviceToken] WssConnectionRequest encryptedDeviceToken + * @property {number|Long|null} [deviceTimeStamp] WssConnectionRequest deviceTimeStamp */ /** - * Constructs a new UserFolder. - * @memberof Vault - * @classdesc Represents a UserFolder. - * @implements IUserFolder + * Constructs a new WssConnectionRequest. + * @memberof Push + * @classdesc Represents a WssConnectionRequest. + * @implements IWssConnectionRequest * @constructor - * @param {Vault.IUserFolder=} [properties] Properties to set + * @param {Push.IWssConnectionRequest=} [properties] Properties to set */ - function UserFolder(properties) { + function WssConnectionRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -203788,145 +205221,103 @@ export const Vault = $root.Vault = (() => { } /** - * UserFolder folderUid. - * @member {Uint8Array} folderUid - * @memberof Vault.UserFolder - * @instance - */ - UserFolder.prototype.folderUid = $util.newBuffer([]); - - /** - * UserFolder parentUid. - * @member {Uint8Array} parentUid - * @memberof Vault.UserFolder - * @instance - */ - UserFolder.prototype.parentUid = $util.newBuffer([]); - - /** - * UserFolder userFolderKey. - * @member {Uint8Array} userFolderKey - * @memberof Vault.UserFolder - * @instance - */ - UserFolder.prototype.userFolderKey = $util.newBuffer([]); - - /** - * UserFolder keyType. - * @member {Records.RecordKeyType} keyType - * @memberof Vault.UserFolder + * WssConnectionRequest messageSessionUid. + * @member {Uint8Array} messageSessionUid + * @memberof Push.WssConnectionRequest * @instance */ - UserFolder.prototype.keyType = 0; + WssConnectionRequest.prototype.messageSessionUid = $util.newBuffer([]); /** - * UserFolder revision. - * @member {number|Long} revision - * @memberof Vault.UserFolder + * WssConnectionRequest encryptedDeviceToken. + * @member {Uint8Array} encryptedDeviceToken + * @memberof Push.WssConnectionRequest * @instance */ - UserFolder.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + WssConnectionRequest.prototype.encryptedDeviceToken = $util.newBuffer([]); /** - * UserFolder data. - * @member {Uint8Array} data - * @memberof Vault.UserFolder + * WssConnectionRequest deviceTimeStamp. + * @member {number|Long} deviceTimeStamp + * @memberof Push.WssConnectionRequest * @instance */ - UserFolder.prototype.data = $util.newBuffer([]); + WssConnectionRequest.prototype.deviceTimeStamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new UserFolder instance using the specified properties. + * Creates a new WssConnectionRequest instance using the specified properties. * @function create - * @memberof Vault.UserFolder + * @memberof Push.WssConnectionRequest * @static - * @param {Vault.IUserFolder=} [properties] Properties to set - * @returns {Vault.UserFolder} UserFolder instance + * @param {Push.IWssConnectionRequest=} [properties] Properties to set + * @returns {Push.WssConnectionRequest} WssConnectionRequest instance */ - UserFolder.create = function create(properties) { - return new UserFolder(properties); + WssConnectionRequest.create = function create(properties) { + return new WssConnectionRequest(properties); }; /** - * Encodes the specified UserFolder message. Does not implicitly {@link Vault.UserFolder.verify|verify} messages. + * Encodes the specified WssConnectionRequest message. Does not implicitly {@link Push.WssConnectionRequest.verify|verify} messages. * @function encode - * @memberof Vault.UserFolder + * @memberof Push.WssConnectionRequest * @static - * @param {Vault.IUserFolder} message UserFolder message or plain object to encode + * @param {Push.IWssConnectionRequest} message WssConnectionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserFolder.encode = function encode(message, writer) { + WssConnectionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); - if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.parentUid); - if (message.userFolderKey != null && Object.hasOwnProperty.call(message, "userFolderKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.userFolderKey); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.keyType); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.revision); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.data); + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.messageSessionUid); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedDeviceToken); + if (message.deviceTimeStamp != null && Object.hasOwnProperty.call(message, "deviceTimeStamp")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.deviceTimeStamp); return writer; }; /** - * Encodes the specified UserFolder message, length delimited. Does not implicitly {@link Vault.UserFolder.verify|verify} messages. + * Encodes the specified WssConnectionRequest message, length delimited. Does not implicitly {@link Push.WssConnectionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.UserFolder + * @memberof Push.WssConnectionRequest * @static - * @param {Vault.IUserFolder} message UserFolder message or plain object to encode + * @param {Push.IWssConnectionRequest} message WssConnectionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserFolder.encodeDelimited = function encodeDelimited(message, writer) { + WssConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a UserFolder message from the specified reader or buffer. + * Decodes a WssConnectionRequest message from the specified reader or buffer. * @function decode - * @memberof Vault.UserFolder + * @memberof Push.WssConnectionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.UserFolder} UserFolder + * @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 */ - UserFolder.decode = function decode(reader, length) { + WssConnectionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.UserFolder(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.WssConnectionRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.folderUid = reader.bytes(); + message.messageSessionUid = reader.bytes(); break; } case 2: { - message.parentUid = reader.bytes(); + message.encryptedDeviceToken = reader.bytes(); break; } case 3: { - message.userFolderKey = reader.bytes(); - break; - } - case 4: { - message.keyType = reader.int32(); - break; - } - case 5: { - message.revision = reader.int64(); - break; - } - case 6: { - message.data = reader.bytes(); + message.deviceTimeStamp = reader.int64(); break; } default: @@ -203938,269 +205329,172 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a UserFolder message from the specified reader or buffer, length delimited. + * Decodes a WssConnectionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.UserFolder + * @memberof Push.WssConnectionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.UserFolder} UserFolder + * @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 */ - UserFolder.decodeDelimited = function decodeDelimited(reader) { + WssConnectionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a UserFolder message. + * Verifies a WssConnectionRequest message. * @function verify - * @memberof Vault.UserFolder + * @memberof Push.WssConnectionRequest * @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) { + WssConnectionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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"; + 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 UserFolder message from a plain object. Also converts values to their respective internal types. + * Creates a WssConnectionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.UserFolder + * @memberof Push.WssConnectionRequest * @static * @param {Object.} object Plain object - * @returns {Vault.UserFolder} UserFolder + * @returns {Push.WssConnectionRequest} WssConnectionRequest */ - UserFolder.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.UserFolder) + WssConnectionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Push.WssConnectionRequest) return object; - let message = new $root.Vault.UserFolder(); - if (object.folderUid != null) - if (typeof object.folderUid === "string") - $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); - else if (object.folderUid.length >= 0) - message.folderUid = object.folderUid; - if (object.parentUid != null) - if (typeof object.parentUid === "string") - $util.base64.decode(object.parentUid, message.parentUid = $util.newBuffer($util.base64.length(object.parentUid)), 0); - else if (object.parentUid.length >= 0) - message.parentUid = object.parentUid; - if (object.userFolderKey != null) - if (typeof object.userFolderKey === "string") - $util.base64.decode(object.userFolderKey, message.userFolderKey = $util.newBuffer($util.base64.length(object.userFolderKey)), 0); - else if (object.userFolderKey.length >= 0) - message.userFolderKey = object.userFolderKey; - switch (object.keyType) { - default: - if (typeof object.keyType === "number") { - message.keyType = object.keyType; - break; - } - break; - case "NO_KEY": - case 0: - message.keyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.keyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.keyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.keyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.keyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.keyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.keyType = 6; - break; - } - if (object.revision != null) + let message = new $root.Push.WssConnectionRequest(); + if (object.messageSessionUid != null) + if (typeof object.messageSessionUid === "string") + $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); + else if (object.messageSessionUid.length >= 0) + message.messageSessionUid = object.messageSessionUid; + if (object.encryptedDeviceToken != null) + if (typeof object.encryptedDeviceToken === "string") + $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + else if (object.encryptedDeviceToken.length >= 0) + message.encryptedDeviceToken = object.encryptedDeviceToken; + if (object.deviceTimeStamp != null) if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + (message.deviceTimeStamp = $util.Long.fromValue(object.deviceTimeStamp)).unsigned = false; + else if (typeof object.deviceTimeStamp === "string") + message.deviceTimeStamp = parseInt(object.deviceTimeStamp, 10); + else if (typeof object.deviceTimeStamp === "number") + message.deviceTimeStamp = object.deviceTimeStamp; + else if (typeof object.deviceTimeStamp === "object") + message.deviceTimeStamp = new $util.LongBits(object.deviceTimeStamp.low >>> 0, object.deviceTimeStamp.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a UserFolder message. Also converts values to other types if specified. + * Creates a plain object from a WssConnectionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.UserFolder + * @memberof Push.WssConnectionRequest * @static - * @param {Vault.UserFolder} message UserFolder + * @param {Push.WssConnectionRequest} message WssConnectionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserFolder.toObject = function toObject(message, options) { + WssConnectionRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { if (options.bytes === String) - object.folderUid = ""; - else { - object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); - } - if (options.bytes === String) - object.parentUid = ""; + object.messageSessionUid = ""; else { - object.parentUid = []; + object.messageSessionUid = []; if (options.bytes !== Array) - object.parentUid = $util.newBuffer(object.parentUid); + object.messageSessionUid = $util.newBuffer(object.messageSessionUid); } if (options.bytes === String) - object.userFolderKey = ""; + object.encryptedDeviceToken = ""; else { - object.userFolderKey = []; + object.encryptedDeviceToken = []; if (options.bytes !== Array) - object.userFolderKey = $util.newBuffer(object.userFolderKey); + object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } - object.keyType = options.enums === String ? "NO_KEY" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.deviceTimeStamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } + object.deviceTimeStamp = options.longs === String ? "0" : 0; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; - if (message.parentUid != null && message.hasOwnProperty("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")) - 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")) - object.keyType = options.enums === String ? $root.Records.RecordKeyType[message.keyType] === undefined ? message.keyType : $root.Records.RecordKeyType[message.keyType] : message.keyType; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") - object.revision = options.longs === String ? String(message.revision) : message.revision; + if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) + object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; + if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; + if (message.deviceTimeStamp != null && message.hasOwnProperty("deviceTimeStamp")) + if (typeof message.deviceTimeStamp === "number") + object.deviceTimeStamp = options.longs === String ? String(message.deviceTimeStamp) : message.deviceTimeStamp; 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")) - 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; + object.deviceTimeStamp = options.longs === String ? $util.Long.prototype.toString.call(message.deviceTimeStamp) : options.longs === Number ? new $util.LongBits(message.deviceTimeStamp.low >>> 0, message.deviceTimeStamp.high >>> 0).toNumber() : message.deviceTimeStamp; return object; }; /** - * Converts this UserFolder to JSON. + * Converts this WssConnectionRequest to JSON. * @function toJSON - * @memberof Vault.UserFolder + * @memberof Push.WssConnectionRequest * @instance * @returns {Object.} JSON object */ - UserFolder.prototype.toJSON = function toJSON() { + WssConnectionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UserFolder + * Gets the default type url for WssConnectionRequest * @function getTypeUrl - * @memberof Vault.UserFolder + * @memberof Push.WssConnectionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UserFolder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + WssConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.UserFolder"; + return typeUrlPrefix + "/Push.WssConnectionRequest"; }; - return UserFolder; + return WssConnectionRequest; })(); - Vault.SharedFolder = (function() { + Push.WssClientResponse = (function() { /** - * Properties of a SharedFolder. - * @memberof Vault - * @interface ISharedFolder - * @property {Uint8Array|null} [sharedFolderUid] SharedFolder sharedFolderUid - * @property {number|Long|null} [revision] SharedFolder revision - * @property {Uint8Array|null} [sharedFolderKey] SharedFolder sharedFolderKey - * @property {Records.RecordKeyType|null} [keyType] SharedFolder keyType - * @property {Uint8Array|null} [data] SharedFolder data - * @property {boolean|null} [defaultManageRecords] SharedFolder defaultManageRecords - * @property {boolean|null} [defaultManageUsers] SharedFolder defaultManageUsers - * @property {boolean|null} [defaultCanEdit] SharedFolder defaultCanEdit - * @property {boolean|null} [defaultCanReshare] SharedFolder defaultCanReshare - * @property {Vault.CacheStatus|null} [cacheStatus] SharedFolder cacheStatus - * @property {string|null} [owner] SharedFolder owner - * @property {Uint8Array|null} [ownerAccountUid] SharedFolder ownerAccountUid - * @property {Uint8Array|null} [name] SharedFolder name + * Properties of a WssClientResponse. + * @memberof Push + * @interface IWssClientResponse + * @property {Push.MessageType|null} [messageType] WssClientResponse messageType + * @property {string|null} [message] WssClientResponse message */ /** - * Constructs a new SharedFolder. - * @memberof Vault - * @classdesc Represents a SharedFolder. - * @implements ISharedFolder + * Constructs a new WssClientResponse. + * @memberof Push + * @classdesc Represents a WssClientResponse. + * @implements IWssClientResponse * @constructor - * @param {Vault.ISharedFolder=} [properties] Properties to set + * @param {Push.IWssClientResponse=} [properties] Properties to set */ - function SharedFolder(properties) { + function WssClientResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -204208,243 +205502,89 @@ export const Vault = $root.Vault = (() => { } /** - * SharedFolder sharedFolderUid. - * @member {Uint8Array} sharedFolderUid - * @memberof Vault.SharedFolder - * @instance - */ - SharedFolder.prototype.sharedFolderUid = $util.newBuffer([]); - - /** - * SharedFolder revision. - * @member {number|Long} revision - * @memberof Vault.SharedFolder - * @instance - */ - SharedFolder.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * SharedFolder sharedFolderKey. - * @member {Uint8Array} sharedFolderKey - * @memberof Vault.SharedFolder - * @instance - */ - SharedFolder.prototype.sharedFolderKey = $util.newBuffer([]); - - /** - * SharedFolder keyType. - * @member {Records.RecordKeyType} keyType - * @memberof Vault.SharedFolder - * @instance - */ - SharedFolder.prototype.keyType = 0; - - /** - * SharedFolder data. - * @member {Uint8Array} data - * @memberof Vault.SharedFolder - * @instance - */ - SharedFolder.prototype.data = $util.newBuffer([]); - - /** - * SharedFolder defaultManageRecords. - * @member {boolean} defaultManageRecords - * @memberof Vault.SharedFolder - * @instance - */ - SharedFolder.prototype.defaultManageRecords = false; - - /** - * SharedFolder defaultManageUsers. - * @member {boolean} defaultManageUsers - * @memberof Vault.SharedFolder - * @instance - */ - SharedFolder.prototype.defaultManageUsers = false; - - /** - * SharedFolder defaultCanEdit. - * @member {boolean} defaultCanEdit - * @memberof Vault.SharedFolder - * @instance - */ - SharedFolder.prototype.defaultCanEdit = false; - - /** - * SharedFolder defaultCanReshare. - * @member {boolean} defaultCanReshare - * @memberof Vault.SharedFolder - * @instance - */ - SharedFolder.prototype.defaultCanReshare = false; - - /** - * SharedFolder cacheStatus. - * @member {Vault.CacheStatus} cacheStatus - * @memberof Vault.SharedFolder - * @instance - */ - SharedFolder.prototype.cacheStatus = 0; - - /** - * SharedFolder owner. - * @member {string} owner - * @memberof Vault.SharedFolder - * @instance - */ - SharedFolder.prototype.owner = ""; - - /** - * SharedFolder ownerAccountUid. - * @member {Uint8Array} ownerAccountUid - * @memberof Vault.SharedFolder + * WssClientResponse messageType. + * @member {Push.MessageType} messageType + * @memberof Push.WssClientResponse * @instance */ - SharedFolder.prototype.ownerAccountUid = $util.newBuffer([]); + WssClientResponse.prototype.messageType = 0; /** - * SharedFolder name. - * @member {Uint8Array} name - * @memberof Vault.SharedFolder + * WssClientResponse message. + * @member {string} message + * @memberof Push.WssClientResponse * @instance */ - SharedFolder.prototype.name = $util.newBuffer([]); + WssClientResponse.prototype.message = ""; /** - * Creates a new SharedFolder instance using the specified properties. + * Creates a new WssClientResponse instance using the specified properties. * @function create - * @memberof Vault.SharedFolder + * @memberof Push.WssClientResponse * @static - * @param {Vault.ISharedFolder=} [properties] Properties to set - * @returns {Vault.SharedFolder} SharedFolder instance + * @param {Push.IWssClientResponse=} [properties] Properties to set + * @returns {Push.WssClientResponse} WssClientResponse instance */ - SharedFolder.create = function create(properties) { - return new SharedFolder(properties); + WssClientResponse.create = function create(properties) { + return new WssClientResponse(properties); }; /** - * Encodes the specified SharedFolder message. Does not implicitly {@link Vault.SharedFolder.verify|verify} messages. + * Encodes the specified WssClientResponse message. Does not implicitly {@link Push.WssClientResponse.verify|verify} messages. * @function encode - * @memberof Vault.SharedFolder + * @memberof Push.WssClientResponse * @static - * @param {Vault.ISharedFolder} message SharedFolder message or plain object to encode + * @param {Push.IWssClientResponse} message WssClientResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolder.encode = function encode(message, writer) { + WssClientResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); - if (message.sharedFolderKey != null && Object.hasOwnProperty.call(message, "sharedFolderKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.sharedFolderKey); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.keyType); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.data); - if (message.defaultManageRecords != null && Object.hasOwnProperty.call(message, "defaultManageRecords")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.defaultManageRecords); - if (message.defaultManageUsers != null && Object.hasOwnProperty.call(message, "defaultManageUsers")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.defaultManageUsers); - if (message.defaultCanEdit != null && Object.hasOwnProperty.call(message, "defaultCanEdit")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.defaultCanEdit); - if (message.defaultCanReshare != null && Object.hasOwnProperty.call(message, "defaultCanReshare")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.defaultCanReshare); - if (message.cacheStatus != null && Object.hasOwnProperty.call(message, "cacheStatus")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.cacheStatus); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.owner); - if (message.ownerAccountUid != null && Object.hasOwnProperty.call(message, "ownerAccountUid")) - writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.ownerAccountUid); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.name); + if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); return writer; }; /** - * Encodes the specified SharedFolder message, length delimited. Does not implicitly {@link Vault.SharedFolder.verify|verify} messages. + * Encodes the specified WssClientResponse message, length delimited. Does not implicitly {@link Push.WssClientResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.SharedFolder + * @memberof Push.WssClientResponse * @static - * @param {Vault.ISharedFolder} message SharedFolder message or plain object to encode + * @param {Push.IWssClientResponse} message WssClientResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolder.encodeDelimited = function encodeDelimited(message, writer) { + WssClientResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SharedFolder message from the specified reader or buffer. + * Decodes a WssClientResponse message from the specified reader or buffer. * @function decode - * @memberof Vault.SharedFolder + * @memberof Push.WssClientResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.SharedFolder} SharedFolder + * @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 */ - SharedFolder.decode = function decode(reader, length) { + WssClientResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolder(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.WssClientResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.sharedFolderUid = reader.bytes(); + message.messageType = reader.int32(); break; } case 2: { - message.revision = reader.int64(); - break; - } - case 3: { - message.sharedFolderKey = reader.bytes(); - break; - } - case 4: { - message.keyType = reader.int32(); - break; - } - case 5: { - message.data = reader.bytes(); - break; - } - case 6: { - message.defaultManageRecords = reader.bool(); - break; - } - case 7: { - message.defaultManageUsers = reader.bool(); - break; - } - case 8: { - message.defaultCanEdit = reader.bool(); - break; - } - case 9: { - message.defaultCanReshare = reader.bool(); - break; - } - case 10: { - message.cacheStatus = reader.int32(); - break; - } - case 11: { - message.owner = reader.string(); - break; - } - case 12: { - message.ownerAccountUid = reader.bytes(); - break; - } - case 13: { - message.name = reader.bytes(); + message.message = reader.string(); break; } default: @@ -204456,45 +205596,36 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a SharedFolder message from the specified reader or buffer, length delimited. + * Decodes a WssClientResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.SharedFolder + * @memberof Push.WssClientResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SharedFolder} SharedFolder + * @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 */ - SharedFolder.decodeDelimited = function decodeDelimited(reader) { + WssClientResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SharedFolder message. + * Verifies a WssClientResponse message. * @function verify - * @memberof Vault.SharedFolder + * @memberof Push.WssClientResponse * @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) { + WssClientResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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"; - 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) { + if (message.messageType != null && message.hasOwnProperty("messageType")) + switch (message.messageType) { default: - return "keyType: enum value expected"; + return "messageType: enum value expected"; case 0: case 1: case 2: @@ -204502,297 +205633,156 @@ export const Vault = $root.Vault = (() => { case 4: case 5: case 6: + case 7: + case 8: + case 9: 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"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; return null; }; /** - * Creates a SharedFolder message from a plain object. Also converts values to their respective internal types. + * Creates a WssClientResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.SharedFolder + * @memberof Push.WssClientResponse * @static * @param {Object.} object Plain object - * @returns {Vault.SharedFolder} SharedFolder + * @returns {Push.WssClientResponse} WssClientResponse */ - SharedFolder.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SharedFolder) + WssClientResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Push.WssClientResponse) return object; - let message = new $root.Vault.SharedFolder(); - if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.sharedFolderKey != null) - if (typeof object.sharedFolderKey === "string") - $util.base64.decode(object.sharedFolderKey, message.sharedFolderKey = $util.newBuffer($util.base64.length(object.sharedFolderKey)), 0); - else if (object.sharedFolderKey.length >= 0) - message.sharedFolderKey = object.sharedFolderKey; - switch (object.keyType) { + let message = new $root.Push.WssClientResponse(); + switch (object.messageType) { default: - if (typeof object.keyType === "number") { - message.keyType = object.keyType; + if (typeof object.messageType === "number") { + message.messageType = object.messageType; break; } break; - case "NO_KEY": + case "UNKNOWN": case 0: - message.keyType = 0; + message.messageType = 0; break; - case "ENCRYPTED_BY_DATA_KEY": + case "DNA": case 1: - message.keyType = 1; + message.messageType = 1; break; - case "ENCRYPTED_BY_PUBLIC_KEY": + case "SSO": case 2: - message.keyType = 2; + message.messageType = 2; break; - case "ENCRYPTED_BY_DATA_KEY_GCM": + case "CHAT": case 3: - message.keyType = 3; + message.messageType = 3; break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": + case "USER": case 4: - message.keyType = 4; + message.messageType = 4; break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": + case "ENTERPRISE": case 5: - message.keyType = 5; + message.messageType = 5; break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": + case "KEEPER": case 6: - message.keyType = 6; + message.messageType = 6; break; - } - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - if (object.defaultManageRecords != null) - message.defaultManageRecords = Boolean(object.defaultManageRecords); - if (object.defaultManageUsers != null) - message.defaultManageUsers = Boolean(object.defaultManageUsers); - if (object.defaultCanEdit != null) - message.defaultCanEdit = Boolean(object.defaultCanEdit); - if (object.defaultCanReshare != null) - message.defaultCanReshare = Boolean(object.defaultCanReshare); - switch (object.cacheStatus) { - default: - if (typeof object.cacheStatus === "number") { - message.cacheStatus = object.cacheStatus; - break; - } + case "SESSION": + case 7: + message.messageType = 7; break; - case "KEEP": - case 0: - message.cacheStatus = 0; + case "DEVICE": + case 8: + message.messageType = 8; break; - case "CLEAR": - case 1: - message.cacheStatus = 1; + case "TOTP": + case 9: + message.messageType = 9; break; } - if (object.owner != null) - message.owner = String(object.owner); - if (object.ownerAccountUid != null) - if (typeof object.ownerAccountUid === "string") - $util.base64.decode(object.ownerAccountUid, message.ownerAccountUid = $util.newBuffer($util.base64.length(object.ownerAccountUid)), 0); - else if (object.ownerAccountUid.length >= 0) - message.ownerAccountUid = object.ownerAccountUid; - if (object.name != null) - if (typeof object.name === "string") - $util.base64.decode(object.name, message.name = $util.newBuffer($util.base64.length(object.name)), 0); - else if (object.name.length >= 0) - message.name = object.name; + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a SharedFolder message. Also converts values to other types if specified. + * Creates a plain object from a WssClientResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.SharedFolder + * @memberof Push.WssClientResponse * @static - * @param {Vault.SharedFolder} message SharedFolder + * @param {Push.WssClientResponse} message WssClientResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolder.toObject = function toObject(message, options) { + WssClientResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; - else { - object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.sharedFolderKey = ""; - else { - object.sharedFolderKey = []; - if (options.bytes !== Array) - object.sharedFolderKey = $util.newBuffer(object.sharedFolderKey); - } - object.keyType = options.enums === String ? "NO_KEY" : 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - object.defaultManageRecords = false; - object.defaultManageUsers = false; - object.defaultCanEdit = false; - object.defaultCanReshare = false; - object.cacheStatus = options.enums === String ? "KEEP" : 0; - object.owner = ""; - if (options.bytes === String) - object.ownerAccountUid = ""; - else { - object.ownerAccountUid = []; - if (options.bytes !== Array) - object.ownerAccountUid = $util.newBuffer(object.ownerAccountUid); - } - if (options.bytes === String) - object.name = ""; - else { - object.name = []; - if (options.bytes !== Array) - object.name = $util.newBuffer(object.name); - } + object.messageType = options.enums === String ? "UNKNOWN" : 0; + object.message = ""; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof 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")) - 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")) - 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")) - 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")) - object.defaultManageRecords = message.defaultManageRecords; - if (message.defaultManageUsers != null && message.hasOwnProperty("defaultManageUsers")) - object.defaultManageUsers = message.defaultManageUsers; - if (message.defaultCanEdit != null && message.hasOwnProperty("defaultCanEdit")) - object.defaultCanEdit = message.defaultCanEdit; - if (message.defaultCanReshare != null && message.hasOwnProperty("defaultCanReshare")) - object.defaultCanReshare = message.defaultCanReshare; - if (message.cacheStatus != null && message.hasOwnProperty("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")) - object.owner = message.owner; - if (message.ownerAccountUid != null && message.hasOwnProperty("ownerAccountUid")) - object.ownerAccountUid = options.bytes === String ? $util.base64.encode(message.ownerAccountUid, 0, message.ownerAccountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.ownerAccountUid) : message.ownerAccountUid; - if (message.name != null && message.hasOwnProperty("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; + if (message.messageType != null && message.hasOwnProperty("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")) + object.message = message.message; return object; }; /** - * Converts this SharedFolder to JSON. + * Converts this WssClientResponse to JSON. * @function toJSON - * @memberof Vault.SharedFolder + * @memberof Push.WssClientResponse * @instance * @returns {Object.} JSON object */ - SharedFolder.prototype.toJSON = function toJSON() { + WssClientResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SharedFolder + * Gets the default type url for WssClientResponse * @function getTypeUrl - * @memberof Vault.SharedFolder + * @memberof Push.WssClientResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SharedFolder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + WssClientResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.SharedFolder"; + return typeUrlPrefix + "/Push.WssClientResponse"; }; - return SharedFolder; + return WssClientResponse; })(); - Vault.UserFolderSharedFolder = (function() { + Push.PushServerDeviceRegistrationRequest = (function() { /** - * Properties of a UserFolderSharedFolder. - * @memberof Vault - * @interface IUserFolderSharedFolder - * @property {Uint8Array|null} [folderUid] UserFolderSharedFolder folderUid - * @property {Uint8Array|null} [sharedFolderUid] UserFolderSharedFolder sharedFolderUid - * @property {number|Long|null} [revision] UserFolderSharedFolder revision + * Properties of a PushServerDeviceRegistrationRequest. + * @memberof Push + * @interface IPushServerDeviceRegistrationRequest + * @property {Uint8Array|null} [encryptedDeviceToken] PushServerDeviceRegistrationRequest encryptedDeviceToken + * @property {string|null} [pushToken] PushServerDeviceRegistrationRequest pushToken + * @property {string|null} [mobilePushPlatform] PushServerDeviceRegistrationRequest mobilePushPlatform + * @property {Uint8Array|null} [transmissionKey] PushServerDeviceRegistrationRequest transmissionKey */ /** - * Constructs a new UserFolderSharedFolder. - * @memberof Vault - * @classdesc Represents a UserFolderSharedFolder. - * @implements IUserFolderSharedFolder + * Constructs a new PushServerDeviceRegistrationRequest. + * @memberof Push + * @classdesc Represents a PushServerDeviceRegistrationRequest. + * @implements IPushServerDeviceRegistrationRequest * @constructor - * @param {Vault.IUserFolderSharedFolder=} [properties] Properties to set + * @param {Push.IPushServerDeviceRegistrationRequest=} [properties] Properties to set */ - function UserFolderSharedFolder(properties) { + function PushServerDeviceRegistrationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -204800,103 +205790,117 @@ export const Vault = $root.Vault = (() => { } /** - * UserFolderSharedFolder folderUid. - * @member {Uint8Array} folderUid - * @memberof Vault.UserFolderSharedFolder + * PushServerDeviceRegistrationRequest encryptedDeviceToken. + * @member {Uint8Array} encryptedDeviceToken + * @memberof Push.PushServerDeviceRegistrationRequest * @instance */ - UserFolderSharedFolder.prototype.folderUid = $util.newBuffer([]); + PushServerDeviceRegistrationRequest.prototype.encryptedDeviceToken = $util.newBuffer([]); /** - * UserFolderSharedFolder sharedFolderUid. - * @member {Uint8Array} sharedFolderUid - * @memberof Vault.UserFolderSharedFolder + * PushServerDeviceRegistrationRequest pushToken. + * @member {string} pushToken + * @memberof Push.PushServerDeviceRegistrationRequest * @instance */ - UserFolderSharedFolder.prototype.sharedFolderUid = $util.newBuffer([]); + PushServerDeviceRegistrationRequest.prototype.pushToken = ""; /** - * UserFolderSharedFolder revision. - * @member {number|Long} revision - * @memberof Vault.UserFolderSharedFolder + * PushServerDeviceRegistrationRequest mobilePushPlatform. + * @member {string} mobilePushPlatform + * @memberof Push.PushServerDeviceRegistrationRequest * @instance */ - UserFolderSharedFolder.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + PushServerDeviceRegistrationRequest.prototype.mobilePushPlatform = ""; /** - * Creates a new UserFolderSharedFolder instance using the specified properties. + * PushServerDeviceRegistrationRequest transmissionKey. + * @member {Uint8Array} transmissionKey + * @memberof Push.PushServerDeviceRegistrationRequest + * @instance + */ + PushServerDeviceRegistrationRequest.prototype.transmissionKey = $util.newBuffer([]); + + /** + * Creates a new PushServerDeviceRegistrationRequest instance using the specified properties. * @function create - * @memberof Vault.UserFolderSharedFolder + * @memberof Push.PushServerDeviceRegistrationRequest * @static - * @param {Vault.IUserFolderSharedFolder=} [properties] Properties to set - * @returns {Vault.UserFolderSharedFolder} UserFolderSharedFolder instance + * @param {Push.IPushServerDeviceRegistrationRequest=} [properties] Properties to set + * @returns {Push.PushServerDeviceRegistrationRequest} PushServerDeviceRegistrationRequest instance */ - UserFolderSharedFolder.create = function create(properties) { - return new UserFolderSharedFolder(properties); + PushServerDeviceRegistrationRequest.create = function create(properties) { + return new PushServerDeviceRegistrationRequest(properties); }; /** - * Encodes the specified UserFolderSharedFolder message. Does not implicitly {@link Vault.UserFolderSharedFolder.verify|verify} messages. + * Encodes the specified PushServerDeviceRegistrationRequest message. Does not implicitly {@link Push.PushServerDeviceRegistrationRequest.verify|verify} messages. * @function encode - * @memberof Vault.UserFolderSharedFolder + * @memberof Push.PushServerDeviceRegistrationRequest * @static - * @param {Vault.IUserFolderSharedFolder} message UserFolderSharedFolder message or plain object to encode + * @param {Push.IPushServerDeviceRegistrationRequest} message PushServerDeviceRegistrationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserFolderSharedFolder.encode = function encode(message, writer) { + PushServerDeviceRegistrationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sharedFolderUid); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); + if (message.pushToken != null && Object.hasOwnProperty.call(message, "pushToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.pushToken); + if (message.mobilePushPlatform != null && Object.hasOwnProperty.call(message, "mobilePushPlatform")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.mobilePushPlatform); + if (message.transmissionKey != null && Object.hasOwnProperty.call(message, "transmissionKey")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.transmissionKey); return writer; }; /** - * Encodes the specified UserFolderSharedFolder message, length delimited. Does not implicitly {@link Vault.UserFolderSharedFolder.verify|verify} messages. + * Encodes the specified PushServerDeviceRegistrationRequest message, length delimited. Does not implicitly {@link Push.PushServerDeviceRegistrationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.UserFolderSharedFolder + * @memberof Push.PushServerDeviceRegistrationRequest * @static - * @param {Vault.IUserFolderSharedFolder} message UserFolderSharedFolder message or plain object to encode + * @param {Push.IPushServerDeviceRegistrationRequest} message PushServerDeviceRegistrationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserFolderSharedFolder.encodeDelimited = function encodeDelimited(message, writer) { + PushServerDeviceRegistrationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a UserFolderSharedFolder message from the specified reader or buffer. + * Decodes a PushServerDeviceRegistrationRequest message from the specified reader or buffer. * @function decode - * @memberof Vault.UserFolderSharedFolder + * @memberof Push.PushServerDeviceRegistrationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.UserFolderSharedFolder} UserFolderSharedFolder + * @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 */ - UserFolderSharedFolder.decode = function decode(reader, length) { + PushServerDeviceRegistrationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.UserFolderSharedFolder(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.PushServerDeviceRegistrationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.folderUid = reader.bytes(); + message.encryptedDeviceToken = reader.bytes(); break; } case 2: { - message.sharedFolderUid = reader.bytes(); + message.pushToken = reader.string(); break; } case 3: { - message.revision = reader.int64(); + message.mobilePushPlatform = reader.string(); + break; + } + case 4: { + message.transmissionKey = reader.bytes(); break; } default: @@ -204908,177 +205912,166 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a UserFolderSharedFolder message from the specified reader or buffer, length delimited. + * Decodes a PushServerDeviceRegistrationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.UserFolderSharedFolder + * @memberof Push.PushServerDeviceRegistrationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.UserFolderSharedFolder} UserFolderSharedFolder + * @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 */ - UserFolderSharedFolder.decodeDelimited = function decodeDelimited(reader) { + PushServerDeviceRegistrationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a UserFolderSharedFolder message. + * Verifies a PushServerDeviceRegistrationRequest message. * @function verify - * @memberof Vault.UserFolderSharedFolder + * @memberof Push.PushServerDeviceRegistrationRequest * @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) { + PushServerDeviceRegistrationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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.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 UserFolderSharedFolder message from a plain object. Also converts values to their respective internal types. + * Creates a PushServerDeviceRegistrationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.UserFolderSharedFolder + * @memberof Push.PushServerDeviceRegistrationRequest * @static * @param {Object.} object Plain object - * @returns {Vault.UserFolderSharedFolder} UserFolderSharedFolder + * @returns {Push.PushServerDeviceRegistrationRequest} PushServerDeviceRegistrationRequest */ - UserFolderSharedFolder.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.UserFolderSharedFolder) + PushServerDeviceRegistrationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Push.PushServerDeviceRegistrationRequest) return object; - let message = new $root.Vault.UserFolderSharedFolder(); - if (object.folderUid != null) - if (typeof object.folderUid === "string") - $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); - else if (object.folderUid.length >= 0) - message.folderUid = object.folderUid; - if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + let message = new $root.Push.PushServerDeviceRegistrationRequest(); + if (object.encryptedDeviceToken != null) + if (typeof object.encryptedDeviceToken === "string") + $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + else if (object.encryptedDeviceToken.length >= 0) + message.encryptedDeviceToken = object.encryptedDeviceToken; + if (object.pushToken != null) + message.pushToken = String(object.pushToken); + if (object.mobilePushPlatform != null) + message.mobilePushPlatform = String(object.mobilePushPlatform); + if (object.transmissionKey != null) + if (typeof object.transmissionKey === "string") + $util.base64.decode(object.transmissionKey, message.transmissionKey = $util.newBuffer($util.base64.length(object.transmissionKey)), 0); + else if (object.transmissionKey.length >= 0) + message.transmissionKey = object.transmissionKey; return message; }; /** - * Creates a plain object from a UserFolderSharedFolder message. Also converts values to other types if specified. + * Creates a plain object from a PushServerDeviceRegistrationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.UserFolderSharedFolder + * @memberof Push.PushServerDeviceRegistrationRequest * @static - * @param {Vault.UserFolderSharedFolder} message UserFolderSharedFolder + * @param {Push.PushServerDeviceRegistrationRequest} message PushServerDeviceRegistrationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserFolderSharedFolder.toObject = function toObject(message, options) { + PushServerDeviceRegistrationRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { if (options.bytes === String) - object.folderUid = ""; + object.encryptedDeviceToken = ""; else { - object.folderUid = []; + object.encryptedDeviceToken = []; if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } + object.pushToken = ""; + object.mobilePushPlatform = ""; if (options.bytes === String) - object.sharedFolderUid = ""; + object.transmissionKey = ""; else { - object.sharedFolderUid = []; + object.transmissionKey = []; if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + object.transmissionKey = $util.newBuffer(object.transmissionKey); } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof 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.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; + if (message.pushToken != null && message.hasOwnProperty("pushToken")) + object.pushToken = message.pushToken; + if (message.mobilePushPlatform != null && message.hasOwnProperty("mobilePushPlatform")) + object.mobilePushPlatform = message.mobilePushPlatform; + if (message.transmissionKey != null && message.hasOwnProperty("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; }; /** - * Converts this UserFolderSharedFolder to JSON. + * Converts this PushServerDeviceRegistrationRequest to JSON. * @function toJSON - * @memberof Vault.UserFolderSharedFolder + * @memberof Push.PushServerDeviceRegistrationRequest * @instance * @returns {Object.} JSON object */ - UserFolderSharedFolder.prototype.toJSON = function toJSON() { + PushServerDeviceRegistrationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UserFolderSharedFolder + * Gets the default type url for PushServerDeviceRegistrationRequest * @function getTypeUrl - * @memberof Vault.UserFolderSharedFolder + * @memberof Push.PushServerDeviceRegistrationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UserFolderSharedFolder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PushServerDeviceRegistrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.UserFolderSharedFolder"; + return typeUrlPrefix + "/Push.PushServerDeviceRegistrationRequest"; }; - return UserFolderSharedFolder; + return PushServerDeviceRegistrationRequest; })(); - Vault.SharedFolderFolder = (function() { + Push.SnsMessage = (function() { /** - * Properties of a SharedFolderFolder. - * @memberof Vault - * @interface ISharedFolderFolder - * @property {Uint8Array|null} [sharedFolderUid] SharedFolderFolder sharedFolderUid - * @property {Uint8Array|null} [folderUid] SharedFolderFolder folderUid - * @property {Uint8Array|null} [parentUid] SharedFolderFolder parentUid - * @property {Uint8Array|null} [sharedFolderFolderKey] SharedFolderFolder sharedFolderFolderKey - * @property {Records.RecordKeyType|null} [keyType] SharedFolderFolder keyType - * @property {number|Long|null} [revision] SharedFolderFolder revision - * @property {Uint8Array|null} [data] SharedFolderFolder data + * Properties of a SnsMessage. + * @memberof Push + * @interface ISnsMessage + * @property {Push.MessageType|null} [messageType] SnsMessage messageType + * @property {Uint8Array|null} [message] SnsMessage message */ /** - * Constructs a new SharedFolderFolder. - * @memberof Vault - * @classdesc Represents a SharedFolderFolder. - * @implements ISharedFolderFolder + * Constructs a new SnsMessage. + * @memberof Push + * @classdesc Represents a SnsMessage. + * @implements ISnsMessage * @constructor - * @param {Vault.ISharedFolderFolder=} [properties] Properties to set + * @param {Push.ISnsMessage=} [properties] Properties to set */ - function SharedFolderFolder(properties) { + function SnsMessage(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -205086,159 +206079,89 @@ export const Vault = $root.Vault = (() => { } /** - * SharedFolderFolder sharedFolderUid. - * @member {Uint8Array} sharedFolderUid - * @memberof Vault.SharedFolderFolder - * @instance - */ - SharedFolderFolder.prototype.sharedFolderUid = $util.newBuffer([]); - - /** - * SharedFolderFolder folderUid. - * @member {Uint8Array} folderUid - * @memberof Vault.SharedFolderFolder - * @instance - */ - SharedFolderFolder.prototype.folderUid = $util.newBuffer([]); - - /** - * SharedFolderFolder parentUid. - * @member {Uint8Array} parentUid - * @memberof Vault.SharedFolderFolder - * @instance - */ - SharedFolderFolder.prototype.parentUid = $util.newBuffer([]); - - /** - * SharedFolderFolder sharedFolderFolderKey. - * @member {Uint8Array} sharedFolderFolderKey - * @memberof Vault.SharedFolderFolder - * @instance - */ - SharedFolderFolder.prototype.sharedFolderFolderKey = $util.newBuffer([]); - - /** - * SharedFolderFolder keyType. - * @member {Records.RecordKeyType} keyType - * @memberof Vault.SharedFolderFolder - * @instance - */ - SharedFolderFolder.prototype.keyType = 0; - - /** - * SharedFolderFolder revision. - * @member {number|Long} revision - * @memberof Vault.SharedFolderFolder + * SnsMessage messageType. + * @member {Push.MessageType} messageType + * @memberof Push.SnsMessage * @instance */ - SharedFolderFolder.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SnsMessage.prototype.messageType = 0; /** - * SharedFolderFolder data. - * @member {Uint8Array} data - * @memberof Vault.SharedFolderFolder + * SnsMessage message. + * @member {Uint8Array} message + * @memberof Push.SnsMessage * @instance */ - SharedFolderFolder.prototype.data = $util.newBuffer([]); + SnsMessage.prototype.message = $util.newBuffer([]); /** - * Creates a new SharedFolderFolder instance using the specified properties. + * Creates a new SnsMessage instance using the specified properties. * @function create - * @memberof Vault.SharedFolderFolder + * @memberof Push.SnsMessage * @static - * @param {Vault.ISharedFolderFolder=} [properties] Properties to set - * @returns {Vault.SharedFolderFolder} SharedFolderFolder instance + * @param {Push.ISnsMessage=} [properties] Properties to set + * @returns {Push.SnsMessage} SnsMessage instance */ - SharedFolderFolder.create = function create(properties) { - return new SharedFolderFolder(properties); + SnsMessage.create = function create(properties) { + return new SnsMessage(properties); }; /** - * Encodes the specified SharedFolderFolder message. Does not implicitly {@link Vault.SharedFolderFolder.verify|verify} messages. + * Encodes the specified SnsMessage message. Does not implicitly {@link Push.SnsMessage.verify|verify} messages. * @function encode - * @memberof Vault.SharedFolderFolder + * @memberof Push.SnsMessage * @static - * @param {Vault.ISharedFolderFolder} message SharedFolderFolder message or plain object to encode + * @param {Push.ISnsMessage} message SnsMessage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderFolder.encode = function encode(message, writer) { + SnsMessage.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.folderUid); - if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.parentUid); - if (message.sharedFolderFolderKey != null && Object.hasOwnProperty.call(message, "sharedFolderFolderKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.sharedFolderFolderKey); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.keyType); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.revision); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.data); + if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.message); return writer; }; /** - * Encodes the specified SharedFolderFolder message, length delimited. Does not implicitly {@link Vault.SharedFolderFolder.verify|verify} messages. + * Encodes the specified SnsMessage message, length delimited. Does not implicitly {@link Push.SnsMessage.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.SharedFolderFolder + * @memberof Push.SnsMessage * @static - * @param {Vault.ISharedFolderFolder} message SharedFolderFolder message or plain object to encode + * @param {Push.ISnsMessage} message SnsMessage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderFolder.encodeDelimited = function encodeDelimited(message, writer) { + SnsMessage.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SharedFolderFolder message from the specified reader or buffer. + * Decodes a SnsMessage message from the specified reader or buffer. * @function decode - * @memberof Vault.SharedFolderFolder + * @memberof Push.SnsMessage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.SharedFolderFolder} SharedFolderFolder + * @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 */ - SharedFolderFolder.decode = function decode(reader, length) { + SnsMessage.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderFolder(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.SnsMessage(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.sharedFolderUid = reader.bytes(); + message.messageType = reader.int32(); break; } case 2: { - message.folderUid = reader.bytes(); - break; - } - case 3: { - message.parentUid = reader.bytes(); - break; - } - case 4: { - message.sharedFolderFolderKey = reader.bytes(); - break; - } - case 5: { - message.keyType = reader.int32(); - break; - } - case 6: { - message.revision = reader.int64(); - break; - } - case 7: { - message.data = reader.bytes(); + message.message = reader.bytes(); break; } default: @@ -205250,48 +206173,36 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a SharedFolderFolder message from the specified reader or buffer, length delimited. + * Decodes a SnsMessage message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.SharedFolderFolder + * @memberof Push.SnsMessage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SharedFolderFolder} SharedFolderFolder + * @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 */ - SharedFolderFolder.decodeDelimited = function decodeDelimited(reader) { + SnsMessage.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SharedFolderFolder message. + * Verifies a SnsMessage message. * @function verify - * @memberof Vault.SharedFolderFolder + * @memberof Push.SnsMessage * @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) { + SnsMessage.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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) { + if (message.messageType != null && message.hasOwnProperty("messageType")) + switch (message.messageType) { default: - return "keyType: enum value expected"; + return "messageType: enum value expected"; case 0: case 1: case 2: @@ -205299,227 +206210,175 @@ export const Vault = $root.Vault = (() => { case 4: case 5: case 6: + case 7: + case 8: + case 9: 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"; + 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 SharedFolderFolder message from a plain object. Also converts values to their respective internal types. + * Creates a SnsMessage message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.SharedFolderFolder + * @memberof Push.SnsMessage * @static * @param {Object.} object Plain object - * @returns {Vault.SharedFolderFolder} SharedFolderFolder + * @returns {Push.SnsMessage} SnsMessage */ - SharedFolderFolder.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SharedFolderFolder) + SnsMessage.fromObject = function fromObject(object) { + if (object instanceof $root.Push.SnsMessage) return object; - let message = new $root.Vault.SharedFolderFolder(); - if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; - if (object.folderUid != null) - if (typeof object.folderUid === "string") - $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); - else if (object.folderUid.length >= 0) - message.folderUid = object.folderUid; - if (object.parentUid != null) - if (typeof object.parentUid === "string") - $util.base64.decode(object.parentUid, message.parentUid = $util.newBuffer($util.base64.length(object.parentUid)), 0); - else if (object.parentUid.length >= 0) - message.parentUid = object.parentUid; - if (object.sharedFolderFolderKey != null) - if (typeof object.sharedFolderFolderKey === "string") - $util.base64.decode(object.sharedFolderFolderKey, message.sharedFolderFolderKey = $util.newBuffer($util.base64.length(object.sharedFolderFolderKey)), 0); - else if (object.sharedFolderFolderKey.length >= 0) - message.sharedFolderFolderKey = object.sharedFolderFolderKey; - switch (object.keyType) { + let message = new $root.Push.SnsMessage(); + switch (object.messageType) { default: - if (typeof object.keyType === "number") { - message.keyType = object.keyType; + if (typeof object.messageType === "number") { + message.messageType = object.messageType; break; } break; - case "NO_KEY": + case "UNKNOWN": case 0: - message.keyType = 0; + message.messageType = 0; break; - case "ENCRYPTED_BY_DATA_KEY": + case "DNA": case 1: - message.keyType = 1; + message.messageType = 1; break; - case "ENCRYPTED_BY_PUBLIC_KEY": + case "SSO": case 2: - message.keyType = 2; + message.messageType = 2; break; - case "ENCRYPTED_BY_DATA_KEY_GCM": + case "CHAT": case 3: - message.keyType = 3; + message.messageType = 3; break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": + case "USER": case 4: - message.keyType = 4; + message.messageType = 4; break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": + case "ENTERPRISE": case 5: - message.keyType = 5; + message.messageType = 5; break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": + case "KEEPER": case 6: - message.keyType = 6; + message.messageType = 6; + break; + case "SESSION": + case 7: + message.messageType = 7; + break; + case "DEVICE": + case 8: + message.messageType = 8; + break; + case "TOTP": + case 9: + message.messageType = 9; break; } - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (object.message != null) + if (typeof object.message === "string") + $util.base64.decode(object.message, message.message = $util.newBuffer($util.base64.length(object.message)), 0); + else if (object.message.length >= 0) + message.message = object.message; return message; }; /** - * Creates a plain object from a SharedFolderFolder message. Also converts values to other types if specified. + * Creates a plain object from a SnsMessage message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.SharedFolderFolder + * @memberof Push.SnsMessage * @static - * @param {Vault.SharedFolderFolder} message SharedFolderFolder + * @param {Push.SnsMessage} message SnsMessage * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderFolder.toObject = function toObject(message, options) { + SnsMessage.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { + object.messageType = options.enums === String ? "UNKNOWN" : 0; if (options.bytes === String) - object.sharedFolderUid = ""; - else { - object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); - } - if (options.bytes === String) - object.folderUid = ""; - else { - object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); - } - if (options.bytes === String) - object.parentUid = ""; - else { - object.parentUid = []; - if (options.bytes !== Array) - object.parentUid = $util.newBuffer(object.parentUid); - } - if (options.bytes === String) - object.sharedFolderFolderKey = ""; - else { - object.sharedFolderFolderKey = []; - if (options.bytes !== Array) - object.sharedFolderFolderKey = $util.newBuffer(object.sharedFolderFolderKey); - } - object.keyType = options.enums === String ? "NO_KEY" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.data = ""; + object.message = ""; else { - object.data = []; + object.message = []; if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + object.message = $util.newBuffer(object.message); } } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; - if (message.parentUid != null && message.hasOwnProperty("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")) - 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")) - object.keyType = options.enums === String ? $root.Records.RecordKeyType[message.keyType] === undefined ? message.keyType : $root.Records.RecordKeyType[message.keyType] : message.keyType; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof 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")) - 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.messageType != null && message.hasOwnProperty("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")) + 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; }; /** - * Converts this SharedFolderFolder to JSON. + * Converts this SnsMessage to JSON. * @function toJSON - * @memberof Vault.SharedFolderFolder + * @memberof Push.SnsMessage * @instance * @returns {Object.} JSON object */ - SharedFolderFolder.prototype.toJSON = function toJSON() { + SnsMessage.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SharedFolderFolder + * Gets the default type url for SnsMessage * @function getTypeUrl - * @memberof Vault.SharedFolderFolder + * @memberof Push.SnsMessage * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SharedFolderFolder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SnsMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.SharedFolderFolder"; + return typeUrlPrefix + "/Push.SnsMessage"; }; - return SharedFolderFolder; + return SnsMessage; })(); - Vault.SharedFolderKey = (function() { + return Push; +})(); + +export const ServiceLogger = $root.ServiceLogger = (() => { + + /** + * Namespace ServiceLogger. + * @exports ServiceLogger + * @namespace + */ + const ServiceLogger = {}; + + ServiceLogger.IdRange = (function() { /** - * Properties of a SharedFolderKey. - * @memberof Vault - * @interface ISharedFolderKey - * @property {Uint8Array|null} [sharedFolderUid] SharedFolderKey sharedFolderUid - * @property {Uint8Array|null} [sharedFolderKey] SharedFolderKey sharedFolderKey - * @property {Records.RecordKeyType|null} [keyType] SharedFolderKey keyType + * Properties of an IdRange. + * @memberof ServiceLogger + * @interface IIdRange + * @property {number|Long|null} [startingId] IdRange startingId + * @property {number|Long|null} [endingId] IdRange endingId */ /** - * Constructs a new SharedFolderKey. - * @memberof Vault - * @classdesc Represents a SharedFolderKey. - * @implements ISharedFolderKey + * Constructs a new IdRange. + * @memberof ServiceLogger + * @classdesc Specifies the first and last IDs of a range of IDs so that a Request can ask for information about a range of IDs. + * @implements IIdRange * @constructor - * @param {Vault.ISharedFolderKey=} [properties] Properties to set + * @param {ServiceLogger.IIdRange=} [properties] Properties to set */ - function SharedFolderKey(properties) { + function IdRange(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -205527,103 +206386,89 @@ export const Vault = $root.Vault = (() => { } /** - * SharedFolderKey sharedFolderUid. - * @member {Uint8Array} sharedFolderUid - * @memberof Vault.SharedFolderKey - * @instance - */ - SharedFolderKey.prototype.sharedFolderUid = $util.newBuffer([]); - - /** - * SharedFolderKey sharedFolderKey. - * @member {Uint8Array} sharedFolderKey - * @memberof Vault.SharedFolderKey + * IdRange startingId. + * @member {number|Long} startingId + * @memberof ServiceLogger.IdRange * @instance */ - SharedFolderKey.prototype.sharedFolderKey = $util.newBuffer([]); + IdRange.prototype.startingId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * SharedFolderKey keyType. - * @member {Records.RecordKeyType} keyType - * @memberof Vault.SharedFolderKey + * IdRange endingId. + * @member {number|Long} endingId + * @memberof ServiceLogger.IdRange * @instance */ - SharedFolderKey.prototype.keyType = 0; + IdRange.prototype.endingId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Creates a new SharedFolderKey instance using the specified properties. + * Creates a new IdRange instance using the specified properties. * @function create - * @memberof Vault.SharedFolderKey + * @memberof ServiceLogger.IdRange * @static - * @param {Vault.ISharedFolderKey=} [properties] Properties to set - * @returns {Vault.SharedFolderKey} SharedFolderKey instance + * @param {ServiceLogger.IIdRange=} [properties] Properties to set + * @returns {ServiceLogger.IdRange} IdRange instance */ - SharedFolderKey.create = function create(properties) { - return new SharedFolderKey(properties); + IdRange.create = function create(properties) { + return new IdRange(properties); }; /** - * Encodes the specified SharedFolderKey message. Does not implicitly {@link Vault.SharedFolderKey.verify|verify} messages. + * Encodes the specified IdRange message. Does not implicitly {@link ServiceLogger.IdRange.verify|verify} messages. * @function encode - * @memberof Vault.SharedFolderKey + * @memberof ServiceLogger.IdRange * @static - * @param {Vault.ISharedFolderKey} message SharedFolderKey message or plain object to encode + * @param {ServiceLogger.IIdRange} message IdRange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderKey.encode = function encode(message, writer) { + IdRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.sharedFolderKey != null && Object.hasOwnProperty.call(message, "sharedFolderKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sharedFolderKey); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.keyType); + if (message.startingId != null && Object.hasOwnProperty.call(message, "startingId")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.startingId); + if (message.endingId != null && Object.hasOwnProperty.call(message, "endingId")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.endingId); return writer; }; /** - * Encodes the specified SharedFolderKey message, length delimited. Does not implicitly {@link Vault.SharedFolderKey.verify|verify} messages. + * Encodes the specified IdRange message, length delimited. Does not implicitly {@link ServiceLogger.IdRange.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.SharedFolderKey + * @memberof ServiceLogger.IdRange * @static - * @param {Vault.ISharedFolderKey} message SharedFolderKey message or plain object to encode + * @param {ServiceLogger.IIdRange} message IdRange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderKey.encodeDelimited = function encodeDelimited(message, writer) { + IdRange.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SharedFolderKey message from the specified reader or buffer. + * Decodes an IdRange message from the specified reader or buffer. * @function decode - * @memberof Vault.SharedFolderKey + * @memberof ServiceLogger.IdRange * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.SharedFolderKey} SharedFolderKey + * @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 */ - SharedFolderKey.decode = function decode(reader, length) { + IdRange.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderKey(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.IdRange(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.sharedFolderUid = reader.bytes(); + message.startingId = reader.uint64(); break; } case 2: { - message.sharedFolderKey = reader.bytes(); - break; - } - case 3: { - message.keyType = reader.int32(); + message.endingId = reader.uint64(); break; } default: @@ -205635,214 +206480,161 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a SharedFolderKey message from the specified reader or buffer, length delimited. + * Decodes an IdRange message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.SharedFolderKey + * @memberof ServiceLogger.IdRange * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SharedFolderKey} SharedFolderKey + * @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 */ - SharedFolderKey.decodeDelimited = function decodeDelimited(reader) { + IdRange.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SharedFolderKey message. + * Verifies an IdRange message. * @function verify - * @memberof Vault.SharedFolderKey + * @memberof ServiceLogger.IdRange * @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) { + IdRange.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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.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 a SharedFolderKey message from a plain object. Also converts values to their respective internal types. + * Creates an IdRange message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.SharedFolderKey + * @memberof ServiceLogger.IdRange * @static * @param {Object.} object Plain object - * @returns {Vault.SharedFolderKey} SharedFolderKey + * @returns {ServiceLogger.IdRange} IdRange */ - SharedFolderKey.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SharedFolderKey) + IdRange.fromObject = function fromObject(object) { + if (object instanceof $root.ServiceLogger.IdRange) return object; - let message = new $root.Vault.SharedFolderKey(); - if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; - if (object.sharedFolderKey != null) - if (typeof object.sharedFolderKey === "string") - $util.base64.decode(object.sharedFolderKey, message.sharedFolderKey = $util.newBuffer($util.base64.length(object.sharedFolderKey)), 0); - else if (object.sharedFolderKey.length >= 0) - message.sharedFolderKey = object.sharedFolderKey; - switch (object.keyType) { - default: - if (typeof object.keyType === "number") { - message.keyType = object.keyType; - break; - } - break; - case "NO_KEY": - case 0: - message.keyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.keyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.keyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.keyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.keyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.keyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.keyType = 6; - break; - } + let message = new $root.ServiceLogger.IdRange(); + if (object.startingId != null) + if ($util.Long) + (message.startingId = $util.Long.fromValue(object.startingId)).unsigned = true; + else if (typeof object.startingId === "string") + message.startingId = parseInt(object.startingId, 10); + else if (typeof object.startingId === "number") + message.startingId = object.startingId; + else if (typeof object.startingId === "object") + message.startingId = new $util.LongBits(object.startingId.low >>> 0, object.startingId.high >>> 0).toNumber(true); + if (object.endingId != null) + if ($util.Long) + (message.endingId = $util.Long.fromValue(object.endingId)).unsigned = true; + else if (typeof object.endingId === "string") + message.endingId = parseInt(object.endingId, 10); + else if (typeof object.endingId === "number") + message.endingId = object.endingId; + else if (typeof object.endingId === "object") + message.endingId = new $util.LongBits(object.endingId.low >>> 0, object.endingId.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a SharedFolderKey message. Also converts values to other types if specified. + * Creates a plain object from an IdRange message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.SharedFolderKey + * @memberof ServiceLogger.IdRange * @static - * @param {Vault.SharedFolderKey} message SharedFolderKey + * @param {ServiceLogger.IdRange} message IdRange * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderKey.toObject = function toObject(message, options) { + IdRange.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; - else { - object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); - } - if (options.bytes === String) - object.sharedFolderKey = ""; - else { - object.sharedFolderKey = []; - if (options.bytes !== Array) - object.sharedFolderKey = $util.newBuffer(object.sharedFolderKey); - } - object.keyType = options.enums === String ? "NO_KEY" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.startingId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.startingId = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.endingId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.endingId = options.longs === String ? "0" : 0; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) - object.sharedFolderKey = options.bytes === String ? $util.base64.encode(message.sharedFolderKey, 0, message.sharedFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderKey) : message.sharedFolderKey; - if (message.keyType != null && message.hasOwnProperty("keyType")) - object.keyType = options.enums === String ? $root.Records.RecordKeyType[message.keyType] === undefined ? message.keyType : $root.Records.RecordKeyType[message.keyType] : message.keyType; - return object; - }; + if (message.startingId != null && message.hasOwnProperty("startingId")) + if (typeof message.startingId === "number") + object.startingId = options.longs === String ? String(message.startingId) : message.startingId; + else + object.startingId = options.longs === String ? $util.Long.prototype.toString.call(message.startingId) : options.longs === Number ? new $util.LongBits(message.startingId.low >>> 0, message.startingId.high >>> 0).toNumber(true) : message.startingId; + if (message.endingId != null && message.hasOwnProperty("endingId")) + if (typeof message.endingId === "number") + object.endingId = options.longs === String ? String(message.endingId) : message.endingId; + else + object.endingId = options.longs === String ? $util.Long.prototype.toString.call(message.endingId) : options.longs === Number ? new $util.LongBits(message.endingId.low >>> 0, message.endingId.high >>> 0).toNumber(true) : message.endingId; + return object; + }; /** - * Converts this SharedFolderKey to JSON. + * Converts this IdRange to JSON. * @function toJSON - * @memberof Vault.SharedFolderKey + * @memberof ServiceLogger.IdRange * @instance * @returns {Object.} JSON object */ - SharedFolderKey.prototype.toJSON = function toJSON() { + IdRange.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SharedFolderKey + * Gets the default type url for IdRange * @function getTypeUrl - * @memberof Vault.SharedFolderKey + * @memberof ServiceLogger.IdRange * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SharedFolderKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + IdRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.SharedFolderKey"; + return typeUrlPrefix + "/ServiceLogger.IdRange"; }; - return SharedFolderKey; + return IdRange; })(); - Vault.Team = (function() { + ServiceLogger.ServiceInfoSpecifier = (function() { /** - * Properties of a Team. - * @memberof Vault - * @interface ITeam - * @property {Uint8Array|null} [teamUid] Team teamUid - * @property {string|null} [name] Team name - * @property {Uint8Array|null} [teamKey] Team teamKey - * @property {Records.RecordKeyType|null} [teamKeyType] Team teamKeyType - * @property {Uint8Array|null} [teamPrivateKey] Team teamPrivateKey - * @property {boolean|null} [restrictEdit] Team restrictEdit - * @property {boolean|null} [restrictShare] Team restrictShare - * @property {boolean|null} [restrictView] Team restrictView - * @property {Array.|null} [removedSharedFolders] Team removedSharedFolders - * @property {Array.|null} [sharedFolderKeys] Team sharedFolderKeys - * @property {Uint8Array|null} [teamEccPrivateKey] Team teamEccPrivateKey - * @property {Uint8Array|null} [teamEccPublicKey] Team teamEccPublicKey + * Properties of a ServiceInfoSpecifier. + * @memberof ServiceLogger + * @interface IServiceInfoSpecifier + * @property {boolean|null} [all] ServiceInfoSpecifier all + * @property {number|Long|null} [serviceInfoId] ServiceInfoSpecifier serviceInfoId + * @property {string|null} [name] ServiceInfoSpecifier name */ /** - * Constructs a new Team. - * @memberof Vault - * @classdesc Represents a Team. - * @implements ITeam + * Constructs a new ServiceInfoSpecifier. + * @memberof ServiceLogger + * @classdesc Used in ServiceInfoRequest + * @implements IServiceInfoSpecifier * @constructor - * @param {Vault.ITeam=} [properties] Properties to set + * @param {ServiceLogger.IServiceInfoSpecifier=} [properties] Properties to set */ - function Team(properties) { - this.removedSharedFolders = []; - this.sharedFolderKeys = []; + function ServiceInfoSpecifier(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -205850,235 +206642,103 @@ export const Vault = $root.Vault = (() => { } /** - * Team teamUid. - * @member {Uint8Array} teamUid - * @memberof Vault.Team - * @instance - */ - Team.prototype.teamUid = $util.newBuffer([]); - - /** - * Team name. - * @member {string} name - * @memberof Vault.Team - * @instance - */ - Team.prototype.name = ""; - - /** - * Team teamKey. - * @member {Uint8Array} teamKey - * @memberof Vault.Team - * @instance - */ - Team.prototype.teamKey = $util.newBuffer([]); - - /** - * Team teamKeyType. - * @member {Records.RecordKeyType} teamKeyType - * @memberof Vault.Team - * @instance - */ - Team.prototype.teamKeyType = 0; - - /** - * Team teamPrivateKey. - * @member {Uint8Array} teamPrivateKey - * @memberof Vault.Team - * @instance - */ - Team.prototype.teamPrivateKey = $util.newBuffer([]); - - /** - * Team restrictEdit. - * @member {boolean} restrictEdit - * @memberof Vault.Team - * @instance - */ - Team.prototype.restrictEdit = false; - - /** - * Team restrictShare. - * @member {boolean} restrictShare - * @memberof Vault.Team - * @instance - */ - Team.prototype.restrictShare = false; - - /** - * Team restrictView. - * @member {boolean} restrictView - * @memberof Vault.Team - * @instance - */ - Team.prototype.restrictView = false; - - /** - * Team removedSharedFolders. - * @member {Array.} removedSharedFolders - * @memberof Vault.Team - * @instance - */ - Team.prototype.removedSharedFolders = $util.emptyArray; - - /** - * Team sharedFolderKeys. - * @member {Array.} sharedFolderKeys - * @memberof Vault.Team + * ServiceInfoSpecifier all. + * @member {boolean} all + * @memberof ServiceLogger.ServiceInfoSpecifier * @instance */ - Team.prototype.sharedFolderKeys = $util.emptyArray; + ServiceInfoSpecifier.prototype.all = false; /** - * Team teamEccPrivateKey. - * @member {Uint8Array} teamEccPrivateKey - * @memberof Vault.Team + * ServiceInfoSpecifier serviceInfoId. + * @member {number|Long} serviceInfoId + * @memberof ServiceLogger.ServiceInfoSpecifier * @instance */ - Team.prototype.teamEccPrivateKey = $util.newBuffer([]); + ServiceInfoSpecifier.prototype.serviceInfoId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Team teamEccPublicKey. - * @member {Uint8Array} teamEccPublicKey - * @memberof Vault.Team + * ServiceInfoSpecifier name. + * @member {string} name + * @memberof ServiceLogger.ServiceInfoSpecifier * @instance */ - Team.prototype.teamEccPublicKey = $util.newBuffer([]); + ServiceInfoSpecifier.prototype.name = ""; /** - * Creates a new Team instance using the specified properties. + * Creates a new ServiceInfoSpecifier instance using the specified properties. * @function create - * @memberof Vault.Team + * @memberof ServiceLogger.ServiceInfoSpecifier * @static - * @param {Vault.ITeam=} [properties] Properties to set - * @returns {Vault.Team} Team instance + * @param {ServiceLogger.IServiceInfoSpecifier=} [properties] Properties to set + * @returns {ServiceLogger.ServiceInfoSpecifier} ServiceInfoSpecifier instance */ - Team.create = function create(properties) { - return new Team(properties); + ServiceInfoSpecifier.create = function create(properties) { + return new ServiceInfoSpecifier(properties); }; /** - * Encodes the specified Team message. Does not implicitly {@link Vault.Team.verify|verify} messages. + * Encodes the specified ServiceInfoSpecifier message. Does not implicitly {@link ServiceLogger.ServiceInfoSpecifier.verify|verify} messages. * @function encode - * @memberof Vault.Team + * @memberof ServiceLogger.ServiceInfoSpecifier * @static - * @param {Vault.ITeam} message Team message or plain object to encode + * @param {ServiceLogger.IServiceInfoSpecifier} message ServiceInfoSpecifier message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Team.encode = function encode(message, writer) { + ServiceInfoSpecifier.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); + if (message.all != null && Object.hasOwnProperty.call(message, "all")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.all); + if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "serviceInfoId")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.serviceInfoId); if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.teamKey != null && Object.hasOwnProperty.call(message, "teamKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.teamKey); - if (message.teamKeyType != null && Object.hasOwnProperty.call(message, "teamKeyType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.teamKeyType); - if (message.teamPrivateKey != null && Object.hasOwnProperty.call(message, "teamPrivateKey")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.teamPrivateKey); - if (message.restrictEdit != null && Object.hasOwnProperty.call(message, "restrictEdit")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.restrictEdit); - if (message.restrictShare != null && Object.hasOwnProperty.call(message, "restrictShare")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.restrictShare); - if (message.restrictView != null && Object.hasOwnProperty.call(message, "restrictView")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.restrictView); - if (message.removedSharedFolders != null && message.removedSharedFolders.length) - for (let i = 0; i < message.removedSharedFolders.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.removedSharedFolders[i]); - if (message.sharedFolderKeys != null && message.sharedFolderKeys.length) - for (let i = 0; i < message.sharedFolderKeys.length; ++i) - $root.Vault.SharedFolderKey.encode(message.sharedFolderKeys[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.teamEccPrivateKey != null && Object.hasOwnProperty.call(message, "teamEccPrivateKey")) - writer.uint32(/* id 11, wireType 2 =*/90).bytes(message.teamEccPrivateKey); - if (message.teamEccPublicKey != null && Object.hasOwnProperty.call(message, "teamEccPublicKey")) - writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.teamEccPublicKey); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); return writer; }; /** - * Encodes the specified Team message, length delimited. Does not implicitly {@link Vault.Team.verify|verify} messages. + * Encodes the specified ServiceInfoSpecifier message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoSpecifier.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.Team + * @memberof ServiceLogger.ServiceInfoSpecifier * @static - * @param {Vault.ITeam} message Team message or plain object to encode + * @param {ServiceLogger.IServiceInfoSpecifier} message ServiceInfoSpecifier message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Team.encodeDelimited = function encodeDelimited(message, writer) { + ServiceInfoSpecifier.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Team message from the specified reader or buffer. + * Decodes a ServiceInfoSpecifier message from the specified reader or buffer. * @function decode - * @memberof Vault.Team + * @memberof ServiceLogger.ServiceInfoSpecifier * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.Team} Team + * @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 */ - Team.decode = function decode(reader, length) { + ServiceInfoSpecifier.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.Team(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceInfoSpecifier(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.teamUid = reader.bytes(); + message.all = reader.bool(); break; } case 2: { - message.name = reader.string(); + message.serviceInfoId = reader.uint64(); break; } case 3: { - message.teamKey = reader.bytes(); - break; - } - case 4: { - message.teamKeyType = reader.int32(); - break; - } - case 5: { - message.teamPrivateKey = reader.bytes(); - break; - } - case 6: { - message.restrictEdit = reader.bool(); - break; - } - case 7: { - message.restrictShare = reader.bool(); - break; - } - case 8: { - message.restrictView = reader.bool(); - break; - } - case 9: { - if (!(message.removedSharedFolders && message.removedSharedFolders.length)) - message.removedSharedFolders = []; - message.removedSharedFolders.push(reader.bytes()); - break; - } - case 10: { - if (!(message.sharedFolderKeys && message.sharedFolderKeys.length)) - message.sharedFolderKeys = []; - message.sharedFolderKeys.push($root.Vault.SharedFolderKey.decode(reader, reader.uint32())); - break; - } - case 11: { - message.teamEccPrivateKey = reader.bytes(); - break; - } - case 12: { - message.teamEccPublicKey = reader.bytes(); + message.name = reader.string(); break; } default: @@ -206090,343 +206750,154 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a Team message from the specified reader or buffer, length delimited. + * Decodes a ServiceInfoSpecifier message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.Team + * @memberof ServiceLogger.ServiceInfoSpecifier * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.Team} Team + * @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 */ - Team.decodeDelimited = function decodeDelimited(reader) { + ServiceInfoSpecifier.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Team message. + * Verifies a ServiceInfoSpecifier message. * @function verify - * @memberof Vault.Team + * @memberof ServiceLogger.ServiceInfoSpecifier * @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) { + ServiceInfoSpecifier.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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"; - 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]); - 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. + * Creates a ServiceInfoSpecifier message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.Team + * @memberof ServiceLogger.ServiceInfoSpecifier * @static * @param {Object.} object Plain object - * @returns {Vault.Team} Team + * @returns {ServiceLogger.ServiceInfoSpecifier} ServiceInfoSpecifier */ - Team.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.Team) + ServiceInfoSpecifier.fromObject = function fromObject(object) { + if (object instanceof $root.ServiceLogger.ServiceInfoSpecifier) return object; - let message = new $root.Vault.Team(); - if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; + let message = new $root.ServiceLogger.ServiceInfoSpecifier(); + if (object.all != null) + message.all = Boolean(object.all); + if (object.serviceInfoId != null) + if ($util.Long) + (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; + else if (typeof object.serviceInfoId === "string") + message.serviceInfoId = parseInt(object.serviceInfoId, 10); + else if (typeof object.serviceInfoId === "number") + message.serviceInfoId = object.serviceInfoId; + else if (typeof object.serviceInfoId === "object") + message.serviceInfoId = new $util.LongBits(object.serviceInfoId.low >>> 0, object.serviceInfoId.high >>> 0).toNumber(true); if (object.name != null) message.name = String(object.name); - if (object.teamKey != null) - if (typeof object.teamKey === "string") - $util.base64.decode(object.teamKey, message.teamKey = $util.newBuffer($util.base64.length(object.teamKey)), 0); - else if (object.teamKey.length >= 0) - message.teamKey = object.teamKey; - switch (object.teamKeyType) { - default: - if (typeof object.teamKeyType === "number") { - message.teamKeyType = object.teamKeyType; - break; - } - break; - case "NO_KEY": - case 0: - message.teamKeyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.teamKeyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.teamKeyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.teamKeyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.teamKeyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.teamKeyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.teamKeyType = 6; - break; - } - if (object.teamPrivateKey != null) - if (typeof object.teamPrivateKey === "string") - $util.base64.decode(object.teamPrivateKey, message.teamPrivateKey = $util.newBuffer($util.base64.length(object.teamPrivateKey)), 0); - else if (object.teamPrivateKey.length >= 0) - message.teamPrivateKey = object.teamPrivateKey; - if (object.restrictEdit != null) - message.restrictEdit = Boolean(object.restrictEdit); - if (object.restrictShare != null) - message.restrictShare = Boolean(object.restrictShare); - if (object.restrictView != null) - message.restrictView = Boolean(object.restrictView); - if (object.removedSharedFolders) { - if (!Array.isArray(object.removedSharedFolders)) - throw TypeError(".Vault.Team.removedSharedFolders: array expected"); - message.removedSharedFolders = []; - for (let i = 0; i < object.removedSharedFolders.length; ++i) - if (typeof object.removedSharedFolders[i] === "string") - $util.base64.decode(object.removedSharedFolders[i], message.removedSharedFolders[i] = $util.newBuffer($util.base64.length(object.removedSharedFolders[i])), 0); - else if (object.removedSharedFolders[i].length >= 0) - message.removedSharedFolders[i] = object.removedSharedFolders[i]; - } - if (object.sharedFolderKeys) { - if (!Array.isArray(object.sharedFolderKeys)) - throw TypeError(".Vault.Team.sharedFolderKeys: array expected"); - message.sharedFolderKeys = []; - for (let i = 0; i < object.sharedFolderKeys.length; ++i) { - if (typeof object.sharedFolderKeys[i] !== "object") - throw TypeError(".Vault.Team.sharedFolderKeys: object expected"); - message.sharedFolderKeys[i] = $root.Vault.SharedFolderKey.fromObject(object.sharedFolderKeys[i]); - } - } - if (object.teamEccPrivateKey != null) - if (typeof object.teamEccPrivateKey === "string") - $util.base64.decode(object.teamEccPrivateKey, message.teamEccPrivateKey = $util.newBuffer($util.base64.length(object.teamEccPrivateKey)), 0); - else if (object.teamEccPrivateKey.length >= 0) - message.teamEccPrivateKey = object.teamEccPrivateKey; - if (object.teamEccPublicKey != null) - if (typeof object.teamEccPublicKey === "string") - $util.base64.decode(object.teamEccPublicKey, message.teamEccPublicKey = $util.newBuffer($util.base64.length(object.teamEccPublicKey)), 0); - else if (object.teamEccPublicKey.length >= 0) - message.teamEccPublicKey = object.teamEccPublicKey; return message; }; /** - * Creates a plain object from a Team message. Also converts values to other types if specified. + * Creates a plain object from a ServiceInfoSpecifier message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.Team + * @memberof ServiceLogger.ServiceInfoSpecifier * @static - * @param {Vault.Team} message Team + * @param {ServiceLogger.ServiceInfoSpecifier} message ServiceInfoSpecifier * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Team.toObject = function toObject(message, options) { + ServiceInfoSpecifier.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.removedSharedFolders = []; - object.sharedFolderKeys = []; - } if (options.defaults) { - if (options.bytes === String) - object.teamUid = ""; - else { - object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); - } + object.all = false; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.serviceInfoId = options.longs === String ? "0" : 0; object.name = ""; - if (options.bytes === String) - object.teamKey = ""; - else { - object.teamKey = []; - if (options.bytes !== Array) - object.teamKey = $util.newBuffer(object.teamKey); - } - object.teamKeyType = options.enums === String ? "NO_KEY" : 0; - if (options.bytes === String) - object.teamPrivateKey = ""; - else { - object.teamPrivateKey = []; - if (options.bytes !== Array) - object.teamPrivateKey = $util.newBuffer(object.teamPrivateKey); - } - object.restrictEdit = false; - object.restrictShare = false; - object.restrictView = false; - if (options.bytes === String) - object.teamEccPrivateKey = ""; - else { - object.teamEccPrivateKey = []; - if (options.bytes !== Array) - object.teamEccPrivateKey = $util.newBuffer(object.teamEccPrivateKey); - } - if (options.bytes === String) - object.teamEccPublicKey = ""; - else { - object.teamEccPublicKey = []; - if (options.bytes !== Array) - object.teamEccPublicKey = $util.newBuffer(object.teamEccPublicKey); - } } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; + if (message.all != null && message.hasOwnProperty("all")) + object.all = message.all; + if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) + 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")) object.name = message.name; - if (message.teamKey != null && message.hasOwnProperty("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")) - 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")) - 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")) - object.restrictEdit = message.restrictEdit; - if (message.restrictShare != null && message.hasOwnProperty("restrictShare")) - object.restrictShare = message.restrictShare; - if (message.restrictView != null && message.hasOwnProperty("restrictView")) - object.restrictView = message.restrictView; - if (message.removedSharedFolders && message.removedSharedFolders.length) { - object.removedSharedFolders = []; - for (let j = 0; j < message.removedSharedFolders.length; ++j) - object.removedSharedFolders[j] = options.bytes === String ? $util.base64.encode(message.removedSharedFolders[j], 0, message.removedSharedFolders[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.removedSharedFolders[j]) : message.removedSharedFolders[j]; - } - if (message.sharedFolderKeys && message.sharedFolderKeys.length) { - object.sharedFolderKeys = []; - for (let j = 0; j < message.sharedFolderKeys.length; ++j) - object.sharedFolderKeys[j] = $root.Vault.SharedFolderKey.toObject(message.sharedFolderKeys[j], options); - } - if (message.teamEccPrivateKey != null && message.hasOwnProperty("teamEccPrivateKey")) - object.teamEccPrivateKey = options.bytes === String ? $util.base64.encode(message.teamEccPrivateKey, 0, message.teamEccPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamEccPrivateKey) : message.teamEccPrivateKey; - if (message.teamEccPublicKey != null && message.hasOwnProperty("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; }; /** - * Converts this Team to JSON. + * Converts this ServiceInfoSpecifier to JSON. * @function toJSON - * @memberof Vault.Team + * @memberof ServiceLogger.ServiceInfoSpecifier * @instance * @returns {Object.} JSON object */ - Team.prototype.toJSON = function toJSON() { + ServiceInfoSpecifier.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Team + * Gets the default type url for ServiceInfoSpecifier * @function getTypeUrl - * @memberof Vault.Team + * @memberof ServiceLogger.ServiceInfoSpecifier * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Team.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceInfoSpecifier.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.Team"; + return typeUrlPrefix + "/ServiceLogger.ServiceInfoSpecifier"; }; - return Team; + return ServiceInfoSpecifier; })(); - Vault.Record = (function() { + ServiceLogger.ServiceInfoRequest = (function() { /** - * Properties of a Record. - * @memberof Vault - * @interface IRecord - * @property {Uint8Array|null} [recordUid] Record recordUid - * @property {number|Long|null} [revision] Record revision - * @property {number|null} [version] Record version - * @property {boolean|null} [shared] Record shared - * @property {number|Long|null} [clientModifiedTime] Record clientModifiedTime - * @property {Uint8Array|null} [data] Record data - * @property {Uint8Array|null} [extra] Record extra - * @property {string|null} [udata] Record udata - * @property {number|Long|null} [fileSize] Record fileSize - * @property {number|Long|null} [thumbnailSize] Record thumbnailSize + * Properties of a ServiceInfoRequest. + * @memberof ServiceLogger + * @interface IServiceInfoRequest + * @property {Array.|null} [serviceInfoSpecifier] ServiceInfoRequest serviceInfoSpecifier */ /** - * Constructs a new Record. - * @memberof Vault - * @classdesc Represents a Record. - * @implements IRecord + * Constructs a new ServiceInfoRequest. + * @memberof ServiceLogger + * @classdesc Request information about one or more services by ID or name, or retrieve all. + * @implements IServiceInfoRequest * @constructor - * @param {Vault.IRecord=} [properties] Properties to set + * @param {ServiceLogger.IServiceInfoRequest=} [properties] Properties to set */ - function Record(properties) { + function ServiceInfoRequest(properties) { + this.serviceInfoSpecifier = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -206434,201 +206905,78 @@ export const Vault = $root.Vault = (() => { } /** - * Record recordUid. - * @member {Uint8Array} recordUid - * @memberof Vault.Record - * @instance - */ - Record.prototype.recordUid = $util.newBuffer([]); - - /** - * Record revision. - * @member {number|Long} revision - * @memberof Vault.Record - * @instance - */ - Record.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Record version. - * @member {number} version - * @memberof Vault.Record - * @instance - */ - Record.prototype.version = 0; - - /** - * Record shared. - * @member {boolean} shared - * @memberof Vault.Record - * @instance - */ - Record.prototype.shared = false; - - /** - * Record clientModifiedTime. - * @member {number|Long} clientModifiedTime - * @memberof Vault.Record - * @instance - */ - Record.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Record data. - * @member {Uint8Array} data - * @memberof Vault.Record - * @instance - */ - Record.prototype.data = $util.newBuffer([]); - - /** - * Record extra. - * @member {Uint8Array} extra - * @memberof Vault.Record - * @instance - */ - Record.prototype.extra = $util.newBuffer([]); - - /** - * Record udata. - * @member {string} udata - * @memberof Vault.Record - * @instance - */ - Record.prototype.udata = ""; - - /** - * Record fileSize. - * @member {number|Long} fileSize - * @memberof Vault.Record - * @instance - */ - Record.prototype.fileSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Record thumbnailSize. - * @member {number|Long} thumbnailSize - * @memberof Vault.Record + * ServiceInfoRequest serviceInfoSpecifier. + * @member {Array.} serviceInfoSpecifier + * @memberof ServiceLogger.ServiceInfoRequest * @instance */ - Record.prototype.thumbnailSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ServiceInfoRequest.prototype.serviceInfoSpecifier = $util.emptyArray; /** - * Creates a new Record instance using the specified properties. + * Creates a new ServiceInfoRequest instance using the specified properties. * @function create - * @memberof Vault.Record + * @memberof ServiceLogger.ServiceInfoRequest * @static - * @param {Vault.IRecord=} [properties] Properties to set - * @returns {Vault.Record} Record instance + * @param {ServiceLogger.IServiceInfoRequest=} [properties] Properties to set + * @returns {ServiceLogger.ServiceInfoRequest} ServiceInfoRequest instance */ - Record.create = function create(properties) { - return new Record(properties); + ServiceInfoRequest.create = function create(properties) { + return new ServiceInfoRequest(properties); }; /** - * Encodes the specified Record message. Does not implicitly {@link Vault.Record.verify|verify} messages. + * Encodes the specified ServiceInfoRequest message. Does not implicitly {@link ServiceLogger.ServiceInfoRequest.verify|verify} messages. * @function encode - * @memberof Vault.Record + * @memberof ServiceLogger.ServiceInfoRequest * @static - * @param {Vault.IRecord} message Record message or plain object to encode + * @param {ServiceLogger.IServiceInfoRequest} message ServiceInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Record.encode = function encode(message, writer) { + ServiceInfoRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.version); - if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.shared); - if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.clientModifiedTime); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.data); - if (message.extra != null && Object.hasOwnProperty.call(message, "extra")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.extra); - if (message.udata != null && Object.hasOwnProperty.call(message, "udata")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.udata); - if (message.fileSize != null && Object.hasOwnProperty.call(message, "fileSize")) - writer.uint32(/* id 9, wireType 0 =*/72).int64(message.fileSize); - if (message.thumbnailSize != null && Object.hasOwnProperty.call(message, "thumbnailSize")) - writer.uint32(/* id 10, wireType 0 =*/80).int64(message.thumbnailSize); + if (message.serviceInfoSpecifier != null && message.serviceInfoSpecifier.length) + for (let i = 0; i < message.serviceInfoSpecifier.length; ++i) + $root.ServiceLogger.ServiceInfoSpecifier.encode(message.serviceInfoSpecifier[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Record message, length delimited. Does not implicitly {@link Vault.Record.verify|verify} messages. + * Encodes the specified ServiceInfoRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.Record + * @memberof ServiceLogger.ServiceInfoRequest * @static - * @param {Vault.IRecord} message Record message or plain object to encode + * @param {ServiceLogger.IServiceInfoRequest} message ServiceInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Record.encodeDelimited = function encodeDelimited(message, writer) { + ServiceInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Record message from the specified reader or buffer. + * Decodes a ServiceInfoRequest message from the specified reader or buffer. * @function decode - * @memberof Vault.Record + * @memberof ServiceLogger.ServiceInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.Record} Record + * @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 */ - Record.decode = function decode(reader, length) { + ServiceInfoRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.Record(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceInfoRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); - break; - } - case 2: { - message.revision = reader.int64(); - break; - } - case 3: { - message.version = reader.int32(); - break; - } - case 4: { - message.shared = reader.bool(); - break; - } - case 5: { - message.clientModifiedTime = reader.int64(); - break; - } - case 6: { - message.data = reader.bytes(); - break; - } - case 7: { - message.extra = reader.bytes(); - break; - } - case 8: { - message.udata = reader.string(); - break; - } - case 9: { - message.fileSize = reader.int64(); - break; - } - case 10: { - message.thumbnailSize = reader.int64(); + if (!(message.serviceInfoSpecifier && message.serviceInfoSpecifier.length)) + message.serviceInfoSpecifier = []; + message.serviceInfoSpecifier.push($root.ServiceLogger.ServiceInfoSpecifier.decode(reader, reader.uint32())); break; } default: @@ -206640,281 +206988,143 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a Record message from the specified reader or buffer, length delimited. + * Decodes a ServiceInfoRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.Record + * @memberof ServiceLogger.ServiceInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.Record} Record + * @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 */ - Record.decodeDelimited = function decodeDelimited(reader) { + ServiceInfoRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Record message. + * Verifies a ServiceInfoRequest message. * @function verify - * @memberof Vault.Record + * @memberof ServiceLogger.ServiceInfoRequest * @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) { + ServiceInfoRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.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"; + 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]); + if (error) + return "serviceInfoSpecifier." + error; + } + } return null; }; /** - * Creates a Record message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceInfoRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.Record + * @memberof ServiceLogger.ServiceInfoRequest * @static * @param {Object.} object Plain object - * @returns {Vault.Record} Record + * @returns {ServiceLogger.ServiceInfoRequest} ServiceInfoRequest */ - Record.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.Record) + ServiceInfoRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ServiceLogger.ServiceInfoRequest) return object; - let message = new $root.Vault.Record(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.version != null) - message.version = object.version | 0; - if (object.shared != null) - message.shared = Boolean(object.shared); - if (object.clientModifiedTime != null) - if ($util.Long) - (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; - else if (typeof object.clientModifiedTime === "string") - message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); - else if (typeof object.clientModifiedTime === "number") - message.clientModifiedTime = object.clientModifiedTime; - else if (typeof object.clientModifiedTime === "object") - message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - if (object.extra != null) - if (typeof object.extra === "string") - $util.base64.decode(object.extra, message.extra = $util.newBuffer($util.base64.length(object.extra)), 0); - else if (object.extra.length >= 0) - message.extra = object.extra; - if (object.udata != null) - message.udata = String(object.udata); - if (object.fileSize != null) - if ($util.Long) - (message.fileSize = $util.Long.fromValue(object.fileSize)).unsigned = false; - else if (typeof object.fileSize === "string") - message.fileSize = parseInt(object.fileSize, 10); - else if (typeof object.fileSize === "number") - message.fileSize = object.fileSize; - else if (typeof object.fileSize === "object") - message.fileSize = new $util.LongBits(object.fileSize.low >>> 0, object.fileSize.high >>> 0).toNumber(); - if (object.thumbnailSize != null) - if ($util.Long) - (message.thumbnailSize = $util.Long.fromValue(object.thumbnailSize)).unsigned = false; - else if (typeof object.thumbnailSize === "string") - message.thumbnailSize = parseInt(object.thumbnailSize, 10); - else if (typeof object.thumbnailSize === "number") - message.thumbnailSize = object.thumbnailSize; - else if (typeof object.thumbnailSize === "object") - message.thumbnailSize = new $util.LongBits(object.thumbnailSize.low >>> 0, object.thumbnailSize.high >>> 0).toNumber(); + let message = new $root.ServiceLogger.ServiceInfoRequest(); + if (object.serviceInfoSpecifier) { + if (!Array.isArray(object.serviceInfoSpecifier)) + throw TypeError(".ServiceLogger.ServiceInfoRequest.serviceInfoSpecifier: array expected"); + message.serviceInfoSpecifier = []; + for (let i = 0; i < object.serviceInfoSpecifier.length; ++i) { + if (typeof object.serviceInfoSpecifier[i] !== "object") + throw TypeError(".ServiceLogger.ServiceInfoRequest.serviceInfoSpecifier: object expected"); + message.serviceInfoSpecifier[i] = $root.ServiceLogger.ServiceInfoSpecifier.fromObject(object.serviceInfoSpecifier[i]); + } + } return message; }; /** - * Creates a plain object from a Record message. Also converts values to other types if specified. + * Creates a plain object from a ServiceInfoRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.Record + * @memberof ServiceLogger.ServiceInfoRequest * @static - * @param {Vault.Record} message Record + * @param {ServiceLogger.ServiceInfoRequest} message ServiceInfoRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Record.toObject = function toObject(message, options) { + ServiceInfoRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - object.version = 0; - object.shared = false; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.clientModifiedTime = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - if (options.bytes === String) - object.extra = ""; - else { - object.extra = []; - if (options.bytes !== Array) - object.extra = $util.newBuffer(object.extra); - } - object.udata = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.fileSize = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.thumbnailSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.thumbnailSize = options.longs === String ? "0" : 0; + if (options.arrays || options.defaults) + object.serviceInfoSpecifier = []; + if (message.serviceInfoSpecifier && message.serviceInfoSpecifier.length) { + object.serviceInfoSpecifier = []; + for (let j = 0; j < message.serviceInfoSpecifier.length; ++j) + object.serviceInfoSpecifier[j] = $root.ServiceLogger.ServiceInfoSpecifier.toObject(message.serviceInfoSpecifier[j], options); } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof 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")) - object.version = message.version; - if (message.shared != null && message.hasOwnProperty("shared")) - object.shared = message.shared; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof message.clientModifiedTime === "number") - object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; - else - object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.extra != null && message.hasOwnProperty("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")) - object.udata = message.udata; - if (message.fileSize != null && message.hasOwnProperty("fileSize")) - if (typeof message.fileSize === "number") - object.fileSize = options.longs === String ? String(message.fileSize) : message.fileSize; - else - object.fileSize = options.longs === String ? $util.Long.prototype.toString.call(message.fileSize) : options.longs === Number ? new $util.LongBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0).toNumber() : message.fileSize; - if (message.thumbnailSize != null && message.hasOwnProperty("thumbnailSize")) - if (typeof 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; return object; }; /** - * Converts this Record to JSON. + * Converts this ServiceInfoRequest to JSON. * @function toJSON - * @memberof Vault.Record + * @memberof ServiceLogger.ServiceInfoRequest * @instance * @returns {Object.} JSON object */ - Record.prototype.toJSON = function toJSON() { + ServiceInfoRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Record + * Gets the default type url for ServiceInfoRequest * @function getTypeUrl - * @memberof Vault.Record + * @memberof ServiceLogger.ServiceInfoRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Record.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.Record"; + return typeUrlPrefix + "/ServiceLogger.ServiceInfoRequest"; }; - return Record; + return ServiceInfoRequest; })(); - Vault.RecordLink = (function() { + ServiceLogger.ServiceInfoRecord = (function() { /** - * Properties of a RecordLink. - * @memberof Vault - * @interface IRecordLink - * @property {Uint8Array|null} [parentRecordUid] RecordLink parentRecordUid - * @property {Uint8Array|null} [childRecordUid] RecordLink childRecordUid - * @property {Uint8Array|null} [recordKey] RecordLink recordKey - * @property {number|Long|null} [revision] RecordLink revision + * Properties of a ServiceInfoRecord. + * @memberof ServiceLogger + * @interface IServiceInfoRecord + * @property {number|Long|null} [serviceInfoId] ServiceInfoRecord serviceInfoId + * @property {string|null} [name] ServiceInfoRecord name + * @property {number|null} [deleteAfter] ServiceInfoRecord deleteAfter + * @property {string|null} [deleteAfterTimeUnits] ServiceInfoRecord deleteAfterTimeUnits + * @property {boolean|null} [isShortTermLogging] ServiceInfoRecord isShortTermLogging */ /** - * Constructs a new RecordLink. - * @memberof Vault - * @classdesc Represents a RecordLink. - * @implements IRecordLink + * Constructs a new ServiceInfoRecord. + * @memberof ServiceLogger + * @classdesc Used in ServiceInfoResponse + * @implements IServiceInfoRecord * @constructor - * @param {Vault.IRecordLink=} [properties] Properties to set + * @param {ServiceLogger.IServiceInfoRecord=} [properties] Properties to set */ - function RecordLink(properties) { + function ServiceInfoRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -206922,117 +207132,131 @@ export const Vault = $root.Vault = (() => { } /** - * RecordLink parentRecordUid. - * @member {Uint8Array} parentRecordUid - * @memberof Vault.RecordLink + * ServiceInfoRecord serviceInfoId. + * @member {number|Long} serviceInfoId + * @memberof ServiceLogger.ServiceInfoRecord * @instance */ - RecordLink.prototype.parentRecordUid = $util.newBuffer([]); + ServiceInfoRecord.prototype.serviceInfoId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * RecordLink childRecordUid. - * @member {Uint8Array} childRecordUid - * @memberof Vault.RecordLink + * ServiceInfoRecord name. + * @member {string} name + * @memberof ServiceLogger.ServiceInfoRecord * @instance */ - RecordLink.prototype.childRecordUid = $util.newBuffer([]); + ServiceInfoRecord.prototype.name = ""; /** - * RecordLink recordKey. - * @member {Uint8Array} recordKey - * @memberof Vault.RecordLink + * ServiceInfoRecord deleteAfter. + * @member {number} deleteAfter + * @memberof ServiceLogger.ServiceInfoRecord * @instance */ - RecordLink.prototype.recordKey = $util.newBuffer([]); + ServiceInfoRecord.prototype.deleteAfter = 0; /** - * RecordLink revision. - * @member {number|Long} revision - * @memberof Vault.RecordLink + * ServiceInfoRecord deleteAfterTimeUnits. + * @member {string} deleteAfterTimeUnits + * @memberof ServiceLogger.ServiceInfoRecord * @instance */ - RecordLink.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ServiceInfoRecord.prototype.deleteAfterTimeUnits = ""; /** - * Creates a new RecordLink instance using the specified properties. + * ServiceInfoRecord isShortTermLogging. + * @member {boolean} isShortTermLogging + * @memberof ServiceLogger.ServiceInfoRecord + * @instance + */ + ServiceInfoRecord.prototype.isShortTermLogging = false; + + /** + * Creates a new ServiceInfoRecord instance using the specified properties. * @function create - * @memberof Vault.RecordLink + * @memberof ServiceLogger.ServiceInfoRecord * @static - * @param {Vault.IRecordLink=} [properties] Properties to set - * @returns {Vault.RecordLink} RecordLink instance + * @param {ServiceLogger.IServiceInfoRecord=} [properties] Properties to set + * @returns {ServiceLogger.ServiceInfoRecord} ServiceInfoRecord instance */ - RecordLink.create = function create(properties) { - return new RecordLink(properties); + ServiceInfoRecord.create = function create(properties) { + return new ServiceInfoRecord(properties); }; /** - * Encodes the specified RecordLink message. Does not implicitly {@link Vault.RecordLink.verify|verify} messages. + * Encodes the specified ServiceInfoRecord message. Does not implicitly {@link ServiceLogger.ServiceInfoRecord.verify|verify} messages. * @function encode - * @memberof Vault.RecordLink + * @memberof ServiceLogger.ServiceInfoRecord * @static - * @param {Vault.IRecordLink} message RecordLink message or plain object to encode + * @param {ServiceLogger.IServiceInfoRecord} message ServiceInfoRecord message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordLink.encode = function encode(message, writer) { + ServiceInfoRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parentRecordUid != null && Object.hasOwnProperty.call(message, "parentRecordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.parentRecordUid); - if (message.childRecordUid != null && Object.hasOwnProperty.call(message, "childRecordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.childRecordUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordKey); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.revision); + if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "serviceInfoId")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.serviceInfoId); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.deleteAfter != null && Object.hasOwnProperty.call(message, "deleteAfter")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.deleteAfter); + if (message.deleteAfterTimeUnits != null && Object.hasOwnProperty.call(message, "deleteAfterTimeUnits")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.deleteAfterTimeUnits); + if (message.isShortTermLogging != null && Object.hasOwnProperty.call(message, "isShortTermLogging")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isShortTermLogging); return writer; }; /** - * Encodes the specified RecordLink message, length delimited. Does not implicitly {@link Vault.RecordLink.verify|verify} messages. + * Encodes the specified ServiceInfoRecord message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoRecord.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.RecordLink + * @memberof ServiceLogger.ServiceInfoRecord * @static - * @param {Vault.IRecordLink} message RecordLink message or plain object to encode + * @param {ServiceLogger.IServiceInfoRecord} message ServiceInfoRecord message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordLink.encodeDelimited = function encodeDelimited(message, writer) { + ServiceInfoRecord.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordLink message from the specified reader or buffer. + * Decodes a ServiceInfoRecord message from the specified reader or buffer. * @function decode - * @memberof Vault.RecordLink + * @memberof ServiceLogger.ServiceInfoRecord * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.RecordLink} RecordLink + * @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 */ - RecordLink.decode = function decode(reader, length) { + ServiceInfoRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.RecordLink(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceInfoRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parentRecordUid = reader.bytes(); + message.serviceInfoId = reader.uint64(); break; } case 2: { - message.childRecordUid = reader.bytes(); + message.name = reader.string(); break; } case 3: { - message.recordKey = reader.bytes(); + message.deleteAfter = reader.uint32(); break; } case 4: { - message.revision = reader.int64(); + message.deleteAfterTimeUnits = reader.string(); + break; + } + case 5: { + message.isShortTermLogging = reader.bool(); break; } default: @@ -207044,190 +207268,170 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a RecordLink message from the specified reader or buffer, length delimited. + * Decodes a ServiceInfoRecord message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.RecordLink + * @memberof ServiceLogger.ServiceInfoRecord * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.RecordLink} RecordLink + * @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 */ - RecordLink.decodeDelimited = function decodeDelimited(reader) { + ServiceInfoRecord.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordLink message. + * Verifies a ServiceInfoRecord message. * @function verify - * @memberof Vault.RecordLink + * @memberof ServiceLogger.ServiceInfoRecord * @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) { + ServiceInfoRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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 RecordLink message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceInfoRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.RecordLink + * @memberof ServiceLogger.ServiceInfoRecord * @static * @param {Object.} object Plain object - * @returns {Vault.RecordLink} RecordLink + * @returns {ServiceLogger.ServiceInfoRecord} ServiceInfoRecord */ - RecordLink.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.RecordLink) + ServiceInfoRecord.fromObject = function fromObject(object) { + if (object instanceof $root.ServiceLogger.ServiceInfoRecord) return object; - let message = new $root.Vault.RecordLink(); - if (object.parentRecordUid != null) - if (typeof object.parentRecordUid === "string") - $util.base64.decode(object.parentRecordUid, message.parentRecordUid = $util.newBuffer($util.base64.length(object.parentRecordUid)), 0); - else if (object.parentRecordUid.length >= 0) - message.parentRecordUid = object.parentRecordUid; - if (object.childRecordUid != null) - if (typeof object.childRecordUid === "string") - $util.base64.decode(object.childRecordUid, message.childRecordUid = $util.newBuffer($util.base64.length(object.childRecordUid)), 0); - else if (object.childRecordUid.length >= 0) - message.childRecordUid = object.childRecordUid; - if (object.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; - if (object.revision != null) + let message = new $root.ServiceLogger.ServiceInfoRecord(); + if (object.serviceInfoId != null) if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; + else if (typeof object.serviceInfoId === "string") + message.serviceInfoId = parseInt(object.serviceInfoId, 10); + else if (typeof object.serviceInfoId === "number") + message.serviceInfoId = object.serviceInfoId; + else if (typeof object.serviceInfoId === "object") + message.serviceInfoId = new $util.LongBits(object.serviceInfoId.low >>> 0, object.serviceInfoId.high >>> 0).toNumber(true); + if (object.name != null) + message.name = String(object.name); + if (object.deleteAfter != null) + message.deleteAfter = object.deleteAfter >>> 0; + if (object.deleteAfterTimeUnits != null) + message.deleteAfterTimeUnits = String(object.deleteAfterTimeUnits); + if (object.isShortTermLogging != null) + message.isShortTermLogging = Boolean(object.isShortTermLogging); return message; }; /** - * Creates a plain object from a RecordLink message. Also converts values to other types if specified. + * Creates a plain object from a ServiceInfoRecord message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.RecordLink + * @memberof ServiceLogger.ServiceInfoRecord * @static - * @param {Vault.RecordLink} message RecordLink + * @param {ServiceLogger.ServiceInfoRecord} message ServiceInfoRecord * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordLink.toObject = function toObject(message, options) { + ServiceInfoRecord.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.parentRecordUid = ""; - else { - object.parentRecordUid = []; - if (options.bytes !== Array) - object.parentRecordUid = $util.newBuffer(object.parentRecordUid); - } - if (options.bytes === String) - object.childRecordUid = ""; - else { - object.childRecordUid = []; - if (options.bytes !== Array) - object.childRecordUid = $util.newBuffer(object.childRecordUid); - } - if (options.bytes === String) - object.recordKey = ""; - else { - object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); - } if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + let long = new $util.Long(0, 0, true); + object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : 0; + object.serviceInfoId = options.longs === String ? "0" : 0; + object.name = ""; + object.deleteAfter = 0; + object.deleteAfterTimeUnits = ""; + object.isShortTermLogging = false; } - if (message.parentRecordUid != null && message.hasOwnProperty("parentRecordUid")) - object.parentRecordUid = options.bytes === String ? $util.base64.encode(message.parentRecordUid, 0, message.parentRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.parentRecordUid) : message.parentRecordUid; - if (message.childRecordUid != null && message.hasOwnProperty("childRecordUid")) - object.childRecordUid = options.bytes === String ? $util.base64.encode(message.childRecordUid, 0, message.childRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.childRecordUid) : message.childRecordUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") - object.revision = options.longs === String ? String(message.revision) : message.revision; + if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) + if (typeof message.serviceInfoId === "number") + object.serviceInfoId = options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; 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; + 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")) + object.name = message.name; + if (message.deleteAfter != null && message.hasOwnProperty("deleteAfter")) + object.deleteAfter = message.deleteAfter; + if (message.deleteAfterTimeUnits != null && message.hasOwnProperty("deleteAfterTimeUnits")) + object.deleteAfterTimeUnits = message.deleteAfterTimeUnits; + if (message.isShortTermLogging != null && message.hasOwnProperty("isShortTermLogging")) + object.isShortTermLogging = message.isShortTermLogging; return object; }; /** - * Converts this RecordLink to JSON. + * Converts this ServiceInfoRecord to JSON. * @function toJSON - * @memberof Vault.RecordLink + * @memberof ServiceLogger.ServiceInfoRecord * @instance * @returns {Object.} JSON object */ - RecordLink.prototype.toJSON = function toJSON() { + ServiceInfoRecord.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordLink + * Gets the default type url for ServiceInfoRecord * @function getTypeUrl - * @memberof Vault.RecordLink + * @memberof ServiceLogger.ServiceInfoRecord * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceInfoRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.RecordLink"; + return typeUrlPrefix + "/ServiceLogger.ServiceInfoRecord"; }; - return RecordLink; + return ServiceInfoRecord; })(); - Vault.UserFolderRecord = (function() { + ServiceLogger.ServiceInfoResponse = (function() { /** - * Properties of a UserFolderRecord. - * @memberof Vault - * @interface IUserFolderRecord - * @property {Uint8Array|null} [folderUid] UserFolderRecord folderUid - * @property {Uint8Array|null} [recordUid] UserFolderRecord recordUid - * @property {number|Long|null} [revision] UserFolderRecord revision + * Properties of a ServiceInfoResponse. + * @memberof ServiceLogger + * @interface IServiceInfoResponse + * @property {Array.|null} [serviceInfoRecord] ServiceInfoResponse serviceInfoRecord */ /** - * Constructs a new UserFolderRecord. - * @memberof Vault - * @classdesc Represents a UserFolderRecord. - * @implements IUserFolderRecord + * Constructs a new ServiceInfoResponse. + * @memberof ServiceLogger + * @classdesc Returns information about Services + * @implements IServiceInfoResponse * @constructor - * @param {Vault.IUserFolderRecord=} [properties] Properties to set + * @param {ServiceLogger.IServiceInfoResponse=} [properties] Properties to set */ - function UserFolderRecord(properties) { + function ServiceInfoResponse(properties) { + this.serviceInfoRecord = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -207235,103 +207439,78 @@ export const Vault = $root.Vault = (() => { } /** - * UserFolderRecord folderUid. - * @member {Uint8Array} folderUid - * @memberof Vault.UserFolderRecord - * @instance - */ - UserFolderRecord.prototype.folderUid = $util.newBuffer([]); - - /** - * UserFolderRecord recordUid. - * @member {Uint8Array} recordUid - * @memberof Vault.UserFolderRecord - * @instance - */ - UserFolderRecord.prototype.recordUid = $util.newBuffer([]); - - /** - * UserFolderRecord revision. - * @member {number|Long} revision - * @memberof Vault.UserFolderRecord + * ServiceInfoResponse serviceInfoRecord. + * @member {Array.} serviceInfoRecord + * @memberof ServiceLogger.ServiceInfoResponse * @instance */ - UserFolderRecord.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ServiceInfoResponse.prototype.serviceInfoRecord = $util.emptyArray; /** - * Creates a new UserFolderRecord instance using the specified properties. + * Creates a new ServiceInfoResponse instance using the specified properties. * @function create - * @memberof Vault.UserFolderRecord + * @memberof ServiceLogger.ServiceInfoResponse * @static - * @param {Vault.IUserFolderRecord=} [properties] Properties to set - * @returns {Vault.UserFolderRecord} UserFolderRecord instance + * @param {ServiceLogger.IServiceInfoResponse=} [properties] Properties to set + * @returns {ServiceLogger.ServiceInfoResponse} ServiceInfoResponse instance */ - UserFolderRecord.create = function create(properties) { - return new UserFolderRecord(properties); + ServiceInfoResponse.create = function create(properties) { + return new ServiceInfoResponse(properties); }; /** - * Encodes the specified UserFolderRecord message. Does not implicitly {@link Vault.UserFolderRecord.verify|verify} messages. + * Encodes the specified ServiceInfoResponse message. Does not implicitly {@link ServiceLogger.ServiceInfoResponse.verify|verify} messages. * @function encode - * @memberof Vault.UserFolderRecord + * @memberof ServiceLogger.ServiceInfoResponse * @static - * @param {Vault.IUserFolderRecord} message UserFolderRecord message or plain object to encode + * @param {ServiceLogger.IServiceInfoResponse} message ServiceInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserFolderRecord.encode = function encode(message, writer) { + ServiceInfoResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); + if (message.serviceInfoRecord != null && message.serviceInfoRecord.length) + for (let i = 0; i < message.serviceInfoRecord.length; ++i) + $root.ServiceLogger.ServiceInfoRecord.encode(message.serviceInfoRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified UserFolderRecord message, length delimited. Does not implicitly {@link Vault.UserFolderRecord.verify|verify} messages. + * Encodes the specified ServiceInfoResponse message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.UserFolderRecord + * @memberof ServiceLogger.ServiceInfoResponse * @static - * @param {Vault.IUserFolderRecord} message UserFolderRecord message or plain object to encode + * @param {ServiceLogger.IServiceInfoResponse} message ServiceInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserFolderRecord.encodeDelimited = function encodeDelimited(message, writer) { + ServiceInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a UserFolderRecord message from the specified reader or buffer. + * Decodes a ServiceInfoResponse message from the specified reader or buffer. * @function decode - * @memberof Vault.UserFolderRecord + * @memberof ServiceLogger.ServiceInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.UserFolderRecord} UserFolderRecord + * @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 */ - UserFolderRecord.decode = function decode(reader, length) { + ServiceInfoResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.UserFolderRecord(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceInfoResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.folderUid = reader.bytes(); - break; - } - case 2: { - message.recordUid = reader.bytes(); - break; - } - case 3: { - message.revision = reader.int64(); + if (!(message.serviceInfoRecord && message.serviceInfoRecord.length)) + message.serviceInfoRecord = []; + message.serviceInfoRecord.push($root.ServiceLogger.ServiceInfoRecord.decode(reader, reader.uint32())); break; } default: @@ -207343,174 +207522,140 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a UserFolderRecord message from the specified reader or buffer, length delimited. + * Decodes a ServiceInfoResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.UserFolderRecord + * @memberof ServiceLogger.ServiceInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.UserFolderRecord} UserFolderRecord + * @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 */ - UserFolderRecord.decodeDelimited = function decodeDelimited(reader) { + ServiceInfoResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a UserFolderRecord message. + * Verifies a ServiceInfoResponse message. * @function verify - * @memberof Vault.UserFolderRecord + * @memberof ServiceLogger.ServiceInfoResponse * @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) { + ServiceInfoResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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"; + 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]); + if (error) + return "serviceInfoRecord." + error; + } + } return null; }; /** - * Creates a UserFolderRecord message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceInfoResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.UserFolderRecord + * @memberof ServiceLogger.ServiceInfoResponse * @static * @param {Object.} object Plain object - * @returns {Vault.UserFolderRecord} UserFolderRecord + * @returns {ServiceLogger.ServiceInfoResponse} ServiceInfoResponse */ - UserFolderRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.UserFolderRecord) + ServiceInfoResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ServiceLogger.ServiceInfoResponse) return object; - let message = new $root.Vault.UserFolderRecord(); - if (object.folderUid != null) - if (typeof object.folderUid === "string") - $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); - else if (object.folderUid.length >= 0) - message.folderUid = object.folderUid; - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + let message = new $root.ServiceLogger.ServiceInfoResponse(); + if (object.serviceInfoRecord) { + if (!Array.isArray(object.serviceInfoRecord)) + throw TypeError(".ServiceLogger.ServiceInfoResponse.serviceInfoRecord: array expected"); + message.serviceInfoRecord = []; + for (let i = 0; i < object.serviceInfoRecord.length; ++i) { + if (typeof object.serviceInfoRecord[i] !== "object") + throw TypeError(".ServiceLogger.ServiceInfoResponse.serviceInfoRecord: object expected"); + message.serviceInfoRecord[i] = $root.ServiceLogger.ServiceInfoRecord.fromObject(object.serviceInfoRecord[i]); + } + } return message; }; /** - * Creates a plain object from a UserFolderRecord message. Also converts values to other types if specified. + * Creates a plain object from a ServiceInfoResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.UserFolderRecord + * @memberof ServiceLogger.ServiceInfoResponse * @static - * @param {Vault.UserFolderRecord} message UserFolderRecord + * @param {ServiceLogger.ServiceInfoResponse} message ServiceInfoResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserFolderRecord.toObject = function toObject(message, options) { + ServiceInfoResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.folderUid = ""; - else { - object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); - } - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; + if (options.arrays || options.defaults) + object.serviceInfoRecord = []; + if (message.serviceInfoRecord && message.serviceInfoRecord.length) { + object.serviceInfoRecord = []; + for (let j = 0; j < message.serviceInfoRecord.length; ++j) + object.serviceInfoRecord[j] = $root.ServiceLogger.ServiceInfoRecord.toObject(message.serviceInfoRecord[j], options); } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof 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; return object; }; /** - * Converts this UserFolderRecord to JSON. + * Converts this ServiceInfoResponse to JSON. * @function toJSON - * @memberof Vault.UserFolderRecord + * @memberof ServiceLogger.ServiceInfoResponse * @instance * @returns {Object.} JSON object */ - UserFolderRecord.prototype.toJSON = function toJSON() { + ServiceInfoResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UserFolderRecord + * Gets the default type url for ServiceInfoResponse * @function getTypeUrl - * @memberof Vault.UserFolderRecord + * @memberof ServiceLogger.ServiceInfoResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UserFolderRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.UserFolderRecord"; + return typeUrlPrefix + "/ServiceLogger.ServiceInfoResponse"; }; - return UserFolderRecord; + return ServiceInfoResponse; })(); - Vault.SharedFolderFolderRecord = (function() { + ServiceLogger.ServiceInfoUpdateRequest = (function() { /** - * Properties of a SharedFolderFolderRecord. - * @memberof Vault - * @interface ISharedFolderFolderRecord - * @property {Uint8Array|null} [sharedFolderUid] SharedFolderFolderRecord sharedFolderUid - * @property {Uint8Array|null} [folderUid] SharedFolderFolderRecord folderUid - * @property {Uint8Array|null} [recordUid] SharedFolderFolderRecord recordUid - * @property {number|Long|null} [revision] SharedFolderFolderRecord revision + * Properties of a ServiceInfoUpdateRequest. + * @memberof ServiceLogger + * @interface IServiceInfoUpdateRequest + * @property {Array.|null} [serviceInfoRecord] ServiceInfoUpdateRequest serviceInfoRecord */ /** - * Constructs a new SharedFolderFolderRecord. - * @memberof Vault - * @classdesc Represents a SharedFolderFolderRecord. - * @implements ISharedFolderFolderRecord + * Constructs a new ServiceInfoUpdateRequest. + * @memberof ServiceLogger + * @classdesc Update one or more ServiceInfo records by their IDs + * @implements IServiceInfoUpdateRequest * @constructor - * @param {Vault.ISharedFolderFolderRecord=} [properties] Properties to set + * @param {ServiceLogger.IServiceInfoUpdateRequest=} [properties] Properties to set */ - function SharedFolderFolderRecord(properties) { + function ServiceInfoUpdateRequest(properties) { + this.serviceInfoRecord = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -207518,117 +207663,78 @@ export const Vault = $root.Vault = (() => { } /** - * SharedFolderFolderRecord sharedFolderUid. - * @member {Uint8Array} sharedFolderUid - * @memberof Vault.SharedFolderFolderRecord - * @instance - */ - SharedFolderFolderRecord.prototype.sharedFolderUid = $util.newBuffer([]); - - /** - * SharedFolderFolderRecord folderUid. - * @member {Uint8Array} folderUid - * @memberof Vault.SharedFolderFolderRecord - * @instance - */ - SharedFolderFolderRecord.prototype.folderUid = $util.newBuffer([]); - - /** - * SharedFolderFolderRecord recordUid. - * @member {Uint8Array} recordUid - * @memberof Vault.SharedFolderFolderRecord - * @instance - */ - SharedFolderFolderRecord.prototype.recordUid = $util.newBuffer([]); - - /** - * SharedFolderFolderRecord revision. - * @member {number|Long} revision - * @memberof Vault.SharedFolderFolderRecord + * ServiceInfoUpdateRequest serviceInfoRecord. + * @member {Array.} serviceInfoRecord + * @memberof ServiceLogger.ServiceInfoUpdateRequest * @instance */ - SharedFolderFolderRecord.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ServiceInfoUpdateRequest.prototype.serviceInfoRecord = $util.emptyArray; /** - * Creates a new SharedFolderFolderRecord instance using the specified properties. + * Creates a new ServiceInfoUpdateRequest instance using the specified properties. * @function create - * @memberof Vault.SharedFolderFolderRecord + * @memberof ServiceLogger.ServiceInfoUpdateRequest * @static - * @param {Vault.ISharedFolderFolderRecord=} [properties] Properties to set - * @returns {Vault.SharedFolderFolderRecord} SharedFolderFolderRecord instance + * @param {ServiceLogger.IServiceInfoUpdateRequest=} [properties] Properties to set + * @returns {ServiceLogger.ServiceInfoUpdateRequest} ServiceInfoUpdateRequest instance */ - SharedFolderFolderRecord.create = function create(properties) { - return new SharedFolderFolderRecord(properties); + ServiceInfoUpdateRequest.create = function create(properties) { + return new ServiceInfoUpdateRequest(properties); }; /** - * Encodes the specified SharedFolderFolderRecord message. Does not implicitly {@link Vault.SharedFolderFolderRecord.verify|verify} messages. + * Encodes the specified ServiceInfoUpdateRequest message. Does not implicitly {@link ServiceLogger.ServiceInfoUpdateRequest.verify|verify} messages. * @function encode - * @memberof Vault.SharedFolderFolderRecord + * @memberof ServiceLogger.ServiceInfoUpdateRequest * @static - * @param {Vault.ISharedFolderFolderRecord} message SharedFolderFolderRecord message or plain object to encode + * @param {ServiceLogger.IServiceInfoUpdateRequest} message ServiceInfoUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderFolderRecord.encode = function encode(message, writer) { + ServiceInfoUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.folderUid); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordUid); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.revision); + if (message.serviceInfoRecord != null && message.serviceInfoRecord.length) + for (let i = 0; i < message.serviceInfoRecord.length; ++i) + $root.ServiceLogger.ServiceInfoRecord.encode(message.serviceInfoRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified SharedFolderFolderRecord message, length delimited. Does not implicitly {@link Vault.SharedFolderFolderRecord.verify|verify} messages. + * Encodes the specified ServiceInfoUpdateRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoUpdateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.SharedFolderFolderRecord + * @memberof ServiceLogger.ServiceInfoUpdateRequest * @static - * @param {Vault.ISharedFolderFolderRecord} message SharedFolderFolderRecord message or plain object to encode + * @param {ServiceLogger.IServiceInfoUpdateRequest} message ServiceInfoUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderFolderRecord.encodeDelimited = function encodeDelimited(message, writer) { + ServiceInfoUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SharedFolderFolderRecord message from the specified reader or buffer. + * Decodes a ServiceInfoUpdateRequest message from the specified reader or buffer. * @function decode - * @memberof Vault.SharedFolderFolderRecord + * @memberof ServiceLogger.ServiceInfoUpdateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.SharedFolderFolderRecord} SharedFolderFolderRecord + * @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 */ - SharedFolderFolderRecord.decode = function decode(reader, length) { + ServiceInfoUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderFolderRecord(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceInfoUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.sharedFolderUid = reader.bytes(); - break; - } - case 2: { - message.folderUid = reader.bytes(); - break; - } - case 3: { - message.recordUid = reader.bytes(); - break; - } - case 4: { - message.revision = reader.int64(); + if (!(message.serviceInfoRecord && message.serviceInfoRecord.length)) + message.serviceInfoRecord = []; + message.serviceInfoRecord.push($root.ServiceLogger.ServiceInfoRecord.decode(reader, reader.uint32())); break; } default: @@ -207640,189 +207746,143 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a SharedFolderFolderRecord message from the specified reader or buffer, length delimited. + * Decodes a ServiceInfoUpdateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.SharedFolderFolderRecord + * @memberof ServiceLogger.ServiceInfoUpdateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SharedFolderFolderRecord} SharedFolderFolderRecord + * @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 */ - SharedFolderFolderRecord.decodeDelimited = function decodeDelimited(reader) { + ServiceInfoUpdateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SharedFolderFolderRecord message. + * Verifies a ServiceInfoUpdateRequest message. * @function verify - * @memberof Vault.SharedFolderFolderRecord + * @memberof ServiceLogger.ServiceInfoUpdateRequest * @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) { + ServiceInfoUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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"; + 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]); + if (error) + return "serviceInfoRecord." + error; + } + } return null; }; /** - * Creates a SharedFolderFolderRecord message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceInfoUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.SharedFolderFolderRecord + * @memberof ServiceLogger.ServiceInfoUpdateRequest * @static * @param {Object.} object Plain object - * @returns {Vault.SharedFolderFolderRecord} SharedFolderFolderRecord + * @returns {ServiceLogger.ServiceInfoUpdateRequest} ServiceInfoUpdateRequest */ - SharedFolderFolderRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SharedFolderFolderRecord) + ServiceInfoUpdateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ServiceLogger.ServiceInfoUpdateRequest) return object; - let message = new $root.Vault.SharedFolderFolderRecord(); - if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; - if (object.folderUid != null) - if (typeof object.folderUid === "string") - $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); - else if (object.folderUid.length >= 0) - message.folderUid = object.folderUid; - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + let message = new $root.ServiceLogger.ServiceInfoUpdateRequest(); + if (object.serviceInfoRecord) { + if (!Array.isArray(object.serviceInfoRecord)) + throw TypeError(".ServiceLogger.ServiceInfoUpdateRequest.serviceInfoRecord: array expected"); + message.serviceInfoRecord = []; + for (let i = 0; i < object.serviceInfoRecord.length; ++i) { + if (typeof object.serviceInfoRecord[i] !== "object") + throw TypeError(".ServiceLogger.ServiceInfoUpdateRequest.serviceInfoRecord: object expected"); + message.serviceInfoRecord[i] = $root.ServiceLogger.ServiceInfoRecord.fromObject(object.serviceInfoRecord[i]); + } + } return message; }; /** - * Creates a plain object from a SharedFolderFolderRecord message. Also converts values to other types if specified. + * Creates a plain object from a ServiceInfoUpdateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.SharedFolderFolderRecord + * @memberof ServiceLogger.ServiceInfoUpdateRequest * @static - * @param {Vault.SharedFolderFolderRecord} message SharedFolderFolderRecord + * @param {ServiceLogger.ServiceInfoUpdateRequest} message ServiceInfoUpdateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderFolderRecord.toObject = function toObject(message, options) { + ServiceInfoUpdateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; - else { - object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); - } - if (options.bytes === String) - object.folderUid = ""; - else { - object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); - } - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; + if (options.arrays || options.defaults) + object.serviceInfoRecord = []; + if (message.serviceInfoRecord && message.serviceInfoRecord.length) { + object.serviceInfoRecord = []; + for (let j = 0; j < message.serviceInfoRecord.length; ++j) + object.serviceInfoRecord[j] = $root.ServiceLogger.ServiceInfoRecord.toObject(message.serviceInfoRecord[j], options); } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof 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; return object; }; /** - * Converts this SharedFolderFolderRecord to JSON. + * Converts this ServiceInfoUpdateRequest to JSON. * @function toJSON - * @memberof Vault.SharedFolderFolderRecord + * @memberof ServiceLogger.ServiceInfoUpdateRequest * @instance * @returns {Object.} JSON object */ - SharedFolderFolderRecord.prototype.toJSON = function toJSON() { + ServiceInfoUpdateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SharedFolderFolderRecord + * Gets the default type url for ServiceInfoUpdateRequest * @function getTypeUrl - * @memberof Vault.SharedFolderFolderRecord + * @memberof ServiceLogger.ServiceInfoUpdateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SharedFolderFolderRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceInfoUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.SharedFolderFolderRecord"; + return typeUrlPrefix + "/ServiceLogger.ServiceInfoUpdateRequest"; }; - return SharedFolderFolderRecord; + return ServiceInfoUpdateRequest; })(); - Vault.NonSharedData = (function() { + ServiceLogger.ServiceRuleSpecifier = (function() { /** - * Properties of a NonSharedData. - * @memberof Vault - * @interface INonSharedData - * @property {Uint8Array|null} [recordUid] NonSharedData recordUid - * @property {Uint8Array|null} [data] NonSharedData data + * Properties of a ServiceRuleSpecifier. + * @memberof ServiceLogger + * @interface IServiceRuleSpecifier + * @property {boolean|null} [all] ServiceRuleSpecifier all + * @property {number|Long|null} [serviceRuleId] ServiceRuleSpecifier serviceRuleId + * @property {number|Long|null} [serviceInfoId] ServiceRuleSpecifier serviceInfoId + * @property {Array.|null} [resourceIdRange] ServiceRuleSpecifier resourceIdRange */ /** - * Constructs a new NonSharedData. - * @memberof Vault - * @classdesc Represents a NonSharedData. - * @implements INonSharedData + * Constructs a new ServiceRuleSpecifier. + * @memberof ServiceLogger + * @classdesc Represents a ServiceRuleSpecifier. + * @implements IServiceRuleSpecifier * @constructor - * @param {Vault.INonSharedData=} [properties] Properties to set + * @param {ServiceLogger.IServiceRuleSpecifier=} [properties] Properties to set */ - function NonSharedData(properties) { + function ServiceRuleSpecifier(properties) { + this.resourceIdRange = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -207830,89 +207890,120 @@ export const Vault = $root.Vault = (() => { } /** - * NonSharedData recordUid. - * @member {Uint8Array} recordUid - * @memberof Vault.NonSharedData + * ServiceRuleSpecifier all. + * @member {boolean} all + * @memberof ServiceLogger.ServiceRuleSpecifier * @instance */ - NonSharedData.prototype.recordUid = $util.newBuffer([]); + ServiceRuleSpecifier.prototype.all = false; /** - * NonSharedData data. - * @member {Uint8Array} data - * @memberof Vault.NonSharedData + * ServiceRuleSpecifier serviceRuleId. + * @member {number|Long} serviceRuleId + * @memberof ServiceLogger.ServiceRuleSpecifier * @instance */ - NonSharedData.prototype.data = $util.newBuffer([]); + ServiceRuleSpecifier.prototype.serviceRuleId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Creates a new NonSharedData instance using the specified properties. + * ServiceRuleSpecifier serviceInfoId. + * @member {number|Long} serviceInfoId + * @memberof ServiceLogger.ServiceRuleSpecifier + * @instance + */ + ServiceRuleSpecifier.prototype.serviceInfoId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * ServiceRuleSpecifier resourceIdRange. + * @member {Array.} resourceIdRange + * @memberof ServiceLogger.ServiceRuleSpecifier + * @instance + */ + ServiceRuleSpecifier.prototype.resourceIdRange = $util.emptyArray; + + /** + * Creates a new ServiceRuleSpecifier instance using the specified properties. * @function create - * @memberof Vault.NonSharedData + * @memberof ServiceLogger.ServiceRuleSpecifier * @static - * @param {Vault.INonSharedData=} [properties] Properties to set - * @returns {Vault.NonSharedData} NonSharedData instance + * @param {ServiceLogger.IServiceRuleSpecifier=} [properties] Properties to set + * @returns {ServiceLogger.ServiceRuleSpecifier} ServiceRuleSpecifier instance */ - NonSharedData.create = function create(properties) { - return new NonSharedData(properties); + ServiceRuleSpecifier.create = function create(properties) { + return new ServiceRuleSpecifier(properties); }; /** - * Encodes the specified NonSharedData message. Does not implicitly {@link Vault.NonSharedData.verify|verify} messages. + * Encodes the specified ServiceRuleSpecifier message. Does not implicitly {@link ServiceLogger.ServiceRuleSpecifier.verify|verify} messages. * @function encode - * @memberof Vault.NonSharedData + * @memberof ServiceLogger.ServiceRuleSpecifier * @static - * @param {Vault.INonSharedData} message NonSharedData message or plain object to encode + * @param {ServiceLogger.IServiceRuleSpecifier} message ServiceRuleSpecifier message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NonSharedData.encode = function encode(message, writer) { + ServiceRuleSpecifier.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); + if (message.all != null && Object.hasOwnProperty.call(message, "all")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.all); + if (message.serviceRuleId != null && Object.hasOwnProperty.call(message, "serviceRuleId")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.serviceRuleId); + if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "serviceInfoId")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.serviceInfoId); + if (message.resourceIdRange != null && message.resourceIdRange.length) + for (let i = 0; i < message.resourceIdRange.length; ++i) + $root.ServiceLogger.IdRange.encode(message.resourceIdRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified NonSharedData message, length delimited. Does not implicitly {@link Vault.NonSharedData.verify|verify} messages. + * Encodes the specified ServiceRuleSpecifier message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleSpecifier.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.NonSharedData + * @memberof ServiceLogger.ServiceRuleSpecifier * @static - * @param {Vault.INonSharedData} message NonSharedData message or plain object to encode + * @param {ServiceLogger.IServiceRuleSpecifier} message ServiceRuleSpecifier message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NonSharedData.encodeDelimited = function encodeDelimited(message, writer) { + ServiceRuleSpecifier.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NonSharedData message from the specified reader or buffer. + * Decodes a ServiceRuleSpecifier message from the specified reader or buffer. * @function decode - * @memberof Vault.NonSharedData + * @memberof ServiceLogger.ServiceRuleSpecifier * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.NonSharedData} NonSharedData + * @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 */ - NonSharedData.decode = function decode(reader, length) { + ServiceRuleSpecifier.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.NonSharedData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceRuleSpecifier(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + message.all = reader.bool(); break; } case 2: { - message.data = reader.bytes(); + message.serviceRuleId = reader.uint64(); + break; + } + case 3: { + message.serviceInfoId = reader.uint64(); + break; + } + case 4: { + if (!(message.resourceIdRange && message.resourceIdRange.length)) + message.resourceIdRange = []; + message.resourceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32())); break; } default: @@ -207924,158 +208015,194 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a NonSharedData message from the specified reader or buffer, length delimited. + * Decodes a ServiceRuleSpecifier message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.NonSharedData + * @memberof ServiceLogger.ServiceRuleSpecifier * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.NonSharedData} NonSharedData + * @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 */ - NonSharedData.decodeDelimited = function decodeDelimited(reader) { + ServiceRuleSpecifier.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NonSharedData message. + * Verifies a ServiceRuleSpecifier message. * @function verify - * @memberof Vault.NonSharedData + * @memberof ServiceLogger.ServiceRuleSpecifier * @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) { + ServiceRuleSpecifier.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; + 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]); + if (error) + return "resourceIdRange." + error; + } + } return null; }; /** - * Creates a NonSharedData message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceRuleSpecifier message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.NonSharedData + * @memberof ServiceLogger.ServiceRuleSpecifier * @static * @param {Object.} object Plain object - * @returns {Vault.NonSharedData} NonSharedData + * @returns {ServiceLogger.ServiceRuleSpecifier} ServiceRuleSpecifier */ - NonSharedData.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.NonSharedData) + ServiceRuleSpecifier.fromObject = function fromObject(object) { + if (object instanceof $root.ServiceLogger.ServiceRuleSpecifier) return object; - let message = new $root.Vault.NonSharedData(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - return message; - }; - - /** - * Creates a plain object from a NonSharedData message. Also converts values to other types if specified. - * @function toObject - * @memberof Vault.NonSharedData - * @static - * @param {Vault.NonSharedData} message NonSharedData - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NonSharedData.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + let message = new $root.ServiceLogger.ServiceRuleSpecifier(); + if (object.all != null) + message.all = Boolean(object.all); + if (object.serviceRuleId != null) + if ($util.Long) + (message.serviceRuleId = $util.Long.fromValue(object.serviceRuleId)).unsigned = true; + else if (typeof object.serviceRuleId === "string") + message.serviceRuleId = parseInt(object.serviceRuleId, 10); + else if (typeof object.serviceRuleId === "number") + message.serviceRuleId = object.serviceRuleId; + else if (typeof object.serviceRuleId === "object") + message.serviceRuleId = new $util.LongBits(object.serviceRuleId.low >>> 0, object.serviceRuleId.high >>> 0).toNumber(true); + if (object.serviceInfoId != null) + if ($util.Long) + (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; + else if (typeof object.serviceInfoId === "string") + message.serviceInfoId = parseInt(object.serviceInfoId, 10); + else if (typeof object.serviceInfoId === "number") + message.serviceInfoId = object.serviceInfoId; + else if (typeof object.serviceInfoId === "object") + message.serviceInfoId = new $util.LongBits(object.serviceInfoId.low >>> 0, object.serviceInfoId.high >>> 0).toNumber(true); + if (object.resourceIdRange) { + if (!Array.isArray(object.resourceIdRange)) + throw TypeError(".ServiceLogger.ServiceRuleSpecifier.resourceIdRange: array expected"); + message.resourceIdRange = []; + for (let i = 0; i < object.resourceIdRange.length; ++i) { + if (typeof object.resourceIdRange[i] !== "object") + throw TypeError(".ServiceLogger.ServiceRuleSpecifier.resourceIdRange: object expected"); + message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i]); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + return message; + }; + + /** + * Creates a plain object from a ServiceRuleSpecifier message. Also converts values to other types if specified. + * @function toObject + * @memberof ServiceLogger.ServiceRuleSpecifier + * @static + * @param {ServiceLogger.ServiceRuleSpecifier} message ServiceRuleSpecifier + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceRuleSpecifier.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.resourceIdRange = []; + if (options.defaults) { + object.all = false; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.serviceRuleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.serviceRuleId = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.serviceInfoId = options.longs === String ? "0" : 0; + } + if (message.all != null && message.hasOwnProperty("all")) + object.all = message.all; + if (message.serviceRuleId != null && message.hasOwnProperty("serviceRuleId")) + if (typeof message.serviceRuleId === "number") + object.serviceRuleId = options.longs === String ? String(message.serviceRuleId) : message.serviceRuleId; + else + object.serviceRuleId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceRuleId) : options.longs === Number ? new $util.LongBits(message.serviceRuleId.low >>> 0, message.serviceRuleId.high >>> 0).toNumber(true) : message.serviceRuleId; + if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) + if (typeof message.serviceInfoId === "number") + object.serviceInfoId = options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; + else + object.serviceInfoId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceInfoId) : options.longs === Number ? new $util.LongBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0).toNumber(true) : message.serviceInfoId; + if (message.resourceIdRange && message.resourceIdRange.length) { + object.resourceIdRange = []; + for (let j = 0; j < message.resourceIdRange.length; ++j) + object.resourceIdRange[j] = $root.ServiceLogger.IdRange.toObject(message.resourceIdRange[j], options); + } return object; }; /** - * Converts this NonSharedData to JSON. + * Converts this ServiceRuleSpecifier to JSON. * @function toJSON - * @memberof Vault.NonSharedData + * @memberof ServiceLogger.ServiceRuleSpecifier * @instance * @returns {Object.} JSON object */ - NonSharedData.prototype.toJSON = function toJSON() { + ServiceRuleSpecifier.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NonSharedData + * Gets the default type url for ServiceRuleSpecifier * @function getTypeUrl - * @memberof Vault.NonSharedData + * @memberof ServiceLogger.ServiceRuleSpecifier * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NonSharedData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceRuleSpecifier.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.NonSharedData"; + return typeUrlPrefix + "/ServiceLogger.ServiceRuleSpecifier"; }; - return NonSharedData; + return ServiceRuleSpecifier; })(); - Vault.RecordMetaData = (function() { + ServiceLogger.ServiceRuleRequest = (function() { /** - * Properties of a RecordMetaData. - * @memberof Vault - * @interface IRecordMetaData - * @property {Uint8Array|null} [recordUid] RecordMetaData recordUid - * @property {boolean|null} [owner] RecordMetaData owner - * @property {Uint8Array|null} [recordKey] RecordMetaData recordKey - * @property {Records.RecordKeyType|null} [recordKeyType] RecordMetaData recordKeyType - * @property {boolean|null} [canShare] RecordMetaData canShare - * @property {boolean|null} [canEdit] RecordMetaData canEdit - * @property {Uint8Array|null} [ownerAccountUid] RecordMetaData ownerAccountUid - * @property {number|Long|null} [expiration] RecordMetaData expiration - * @property {Records.TimerNotificationType|null} [expirationNotificationType] RecordMetaData expirationNotificationType - * @property {string|null} [ownerUsername] RecordMetaData ownerUsername + * Properties of a ServiceRuleRequest. + * @memberof ServiceLogger + * @interface IServiceRuleRequest + * @property {Array.|null} [serviceRuleSpecifier] ServiceRuleRequest serviceRuleSpecifier */ /** - * Constructs a new RecordMetaData. - * @memberof Vault - * @classdesc Represents a RecordMetaData. - * @implements IRecordMetaData + * Constructs a new ServiceRuleRequest. + * @memberof ServiceLogger + * @classdesc Represents a ServiceRuleRequest. + * @implements IServiceRuleRequest * @constructor - * @param {Vault.IRecordMetaData=} [properties] Properties to set + * @param {ServiceLogger.IServiceRuleRequest=} [properties] Properties to set */ - function RecordMetaData(properties) { + function ServiceRuleRequest(properties) { + this.serviceRuleSpecifier = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -208083,201 +208210,78 @@ export const Vault = $root.Vault = (() => { } /** - * RecordMetaData recordUid. - * @member {Uint8Array} recordUid - * @memberof Vault.RecordMetaData - * @instance - */ - RecordMetaData.prototype.recordUid = $util.newBuffer([]); - - /** - * RecordMetaData owner. - * @member {boolean} owner - * @memberof Vault.RecordMetaData - * @instance - */ - RecordMetaData.prototype.owner = false; - - /** - * RecordMetaData recordKey. - * @member {Uint8Array} recordKey - * @memberof Vault.RecordMetaData - * @instance - */ - RecordMetaData.prototype.recordKey = $util.newBuffer([]); - - /** - * RecordMetaData recordKeyType. - * @member {Records.RecordKeyType} recordKeyType - * @memberof Vault.RecordMetaData - * @instance - */ - RecordMetaData.prototype.recordKeyType = 0; - - /** - * RecordMetaData canShare. - * @member {boolean} canShare - * @memberof Vault.RecordMetaData - * @instance - */ - RecordMetaData.prototype.canShare = false; - - /** - * RecordMetaData canEdit. - * @member {boolean} canEdit - * @memberof Vault.RecordMetaData - * @instance - */ - RecordMetaData.prototype.canEdit = false; - - /** - * RecordMetaData ownerAccountUid. - * @member {Uint8Array} ownerAccountUid - * @memberof Vault.RecordMetaData - * @instance - */ - RecordMetaData.prototype.ownerAccountUid = $util.newBuffer([]); - - /** - * RecordMetaData expiration. - * @member {number|Long} expiration - * @memberof Vault.RecordMetaData - * @instance - */ - RecordMetaData.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * RecordMetaData expirationNotificationType. - * @member {Records.TimerNotificationType} expirationNotificationType - * @memberof Vault.RecordMetaData - * @instance - */ - RecordMetaData.prototype.expirationNotificationType = 0; - - /** - * RecordMetaData ownerUsername. - * @member {string} ownerUsername - * @memberof Vault.RecordMetaData + * ServiceRuleRequest serviceRuleSpecifier. + * @member {Array.} serviceRuleSpecifier + * @memberof ServiceLogger.ServiceRuleRequest * @instance */ - RecordMetaData.prototype.ownerUsername = ""; + ServiceRuleRequest.prototype.serviceRuleSpecifier = $util.emptyArray; /** - * Creates a new RecordMetaData instance using the specified properties. + * Creates a new ServiceRuleRequest instance using the specified properties. * @function create - * @memberof Vault.RecordMetaData + * @memberof ServiceLogger.ServiceRuleRequest * @static - * @param {Vault.IRecordMetaData=} [properties] Properties to set - * @returns {Vault.RecordMetaData} RecordMetaData instance + * @param {ServiceLogger.IServiceRuleRequest=} [properties] Properties to set + * @returns {ServiceLogger.ServiceRuleRequest} ServiceRuleRequest instance */ - RecordMetaData.create = function create(properties) { - return new RecordMetaData(properties); + ServiceRuleRequest.create = function create(properties) { + return new ServiceRuleRequest(properties); }; /** - * Encodes the specified RecordMetaData message. Does not implicitly {@link Vault.RecordMetaData.verify|verify} messages. + * Encodes the specified ServiceRuleRequest message. Does not implicitly {@link ServiceLogger.ServiceRuleRequest.verify|verify} messages. * @function encode - * @memberof Vault.RecordMetaData + * @memberof ServiceLogger.ServiceRuleRequest * @static - * @param {Vault.IRecordMetaData} message RecordMetaData message or plain object to encode + * @param {ServiceLogger.IServiceRuleRequest} message ServiceRuleRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordMetaData.encode = function encode(message, writer) { + ServiceRuleRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.owner); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordKey); - if (message.recordKeyType != null && Object.hasOwnProperty.call(message, "recordKeyType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.recordKeyType); - if (message.canShare != null && Object.hasOwnProperty.call(message, "canShare")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.canShare); - if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.canEdit); - if (message.ownerAccountUid != null && Object.hasOwnProperty.call(message, "ownerAccountUid")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.ownerAccountUid); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.expiration); - if (message.expirationNotificationType != null && Object.hasOwnProperty.call(message, "expirationNotificationType")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.expirationNotificationType); - if (message.ownerUsername != null && Object.hasOwnProperty.call(message, "ownerUsername")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerUsername); + if (message.serviceRuleSpecifier != null && message.serviceRuleSpecifier.length) + for (let i = 0; i < message.serviceRuleSpecifier.length; ++i) + $root.ServiceLogger.ServiceRuleSpecifier.encode(message.serviceRuleSpecifier[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RecordMetaData message, length delimited. Does not implicitly {@link Vault.RecordMetaData.verify|verify} messages. + * Encodes the specified ServiceRuleRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.RecordMetaData + * @memberof ServiceLogger.ServiceRuleRequest * @static - * @param {Vault.IRecordMetaData} message RecordMetaData message or plain object to encode + * @param {ServiceLogger.IServiceRuleRequest} message ServiceRuleRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordMetaData.encodeDelimited = function encodeDelimited(message, writer) { + ServiceRuleRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecordMetaData message from the specified reader or buffer. + * Decodes a ServiceRuleRequest message from the specified reader or buffer. * @function decode - * @memberof Vault.RecordMetaData + * @memberof ServiceLogger.ServiceRuleRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.RecordMetaData} RecordMetaData + * @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 */ - RecordMetaData.decode = function decode(reader, length) { + ServiceRuleRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.RecordMetaData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceRuleRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); - break; - } - case 2: { - message.owner = reader.bool(); - break; - } - case 3: { - message.recordKey = reader.bytes(); - break; - } - case 4: { - message.recordKeyType = reader.int32(); - break; - } - case 5: { - message.canShare = reader.bool(); - break; - } - case 6: { - message.canEdit = reader.bool(); - break; - } - case 7: { - message.ownerAccountUid = reader.bytes(); - break; - } - case 8: { - message.expiration = reader.int64(); - break; - } - case 9: { - message.expirationNotificationType = reader.int32(); - break; - } - case 10: { - message.ownerUsername = reader.string(); + if (!(message.serviceRuleSpecifier && message.serviceRuleSpecifier.length)) + message.serviceRuleSpecifier = []; + message.serviceRuleSpecifier.push($root.ServiceLogger.ServiceRuleSpecifier.decode(reader, reader.uint32())); break; } default: @@ -208289,305 +208293,146 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a RecordMetaData message from the specified reader or buffer, length delimited. + * Decodes a ServiceRuleRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.RecordMetaData + * @memberof ServiceLogger.ServiceRuleRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.RecordMetaData} RecordMetaData + * @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 */ - RecordMetaData.decodeDelimited = function decodeDelimited(reader) { + ServiceRuleRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordMetaData message. + * Verifies a ServiceRuleRequest message. * @function verify - * @memberof Vault.RecordMetaData + * @memberof ServiceLogger.ServiceRuleRequest * @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) { + ServiceRuleRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.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.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]); + if (error) + return "serviceRuleSpecifier." + error; } - 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. + * Creates a ServiceRuleRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.RecordMetaData + * @memberof ServiceLogger.ServiceRuleRequest * @static * @param {Object.} object Plain object - * @returns {Vault.RecordMetaData} RecordMetaData + * @returns {ServiceLogger.ServiceRuleRequest} ServiceRuleRequest */ - RecordMetaData.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.RecordMetaData) + ServiceRuleRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ServiceLogger.ServiceRuleRequest) return object; - let message = new $root.Vault.RecordMetaData(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.owner != null) - message.owner = Boolean(object.owner); - if (object.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; - switch (object.recordKeyType) { - default: - if (typeof object.recordKeyType === "number") { - message.recordKeyType = object.recordKeyType; - break; - } - break; - case "NO_KEY": - case 0: - message.recordKeyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.recordKeyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.recordKeyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.recordKeyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.recordKeyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.recordKeyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.recordKeyType = 6; - break; - } - if (object.canShare != null) - message.canShare = Boolean(object.canShare); - if (object.canEdit != null) - message.canEdit = Boolean(object.canEdit); - if (object.ownerAccountUid != null) - if (typeof object.ownerAccountUid === "string") - $util.base64.decode(object.ownerAccountUid, message.ownerAccountUid = $util.newBuffer($util.base64.length(object.ownerAccountUid)), 0); - else if (object.ownerAccountUid.length >= 0) - message.ownerAccountUid = object.ownerAccountUid; - if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); - switch (object.expirationNotificationType) { - default: - if (typeof object.expirationNotificationType === "number") { - message.expirationNotificationType = object.expirationNotificationType; - break; + let message = new $root.ServiceLogger.ServiceRuleRequest(); + if (object.serviceRuleSpecifier) { + if (!Array.isArray(object.serviceRuleSpecifier)) + throw TypeError(".ServiceLogger.ServiceRuleRequest.serviceRuleSpecifier: array expected"); + message.serviceRuleSpecifier = []; + for (let i = 0; i < object.serviceRuleSpecifier.length; ++i) { + if (typeof object.serviceRuleSpecifier[i] !== "object") + throw TypeError(".ServiceLogger.ServiceRuleRequest.serviceRuleSpecifier: object expected"); + message.serviceRuleSpecifier[i] = $root.ServiceLogger.ServiceRuleSpecifier.fromObject(object.serviceRuleSpecifier[i]); } - break; - case "NOTIFICATION_OFF": - case 0: - message.expirationNotificationType = 0; - break; - case "NOTIFY_OWNER": - case 1: - message.expirationNotificationType = 1; - break; - case "NOTIFY_PRIVILEGED_USERS": - case 2: - message.expirationNotificationType = 2; - break; } - if (object.ownerUsername != null) - message.ownerUsername = String(object.ownerUsername); return message; }; /** - * Creates a plain object from a RecordMetaData message. Also converts values to other types if specified. + * Creates a plain object from a ServiceRuleRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.RecordMetaData + * @memberof ServiceLogger.ServiceRuleRequest * @static - * @param {Vault.RecordMetaData} message RecordMetaData + * @param {ServiceLogger.ServiceRuleRequest} message ServiceRuleRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordMetaData.toObject = function toObject(message, options) { + ServiceRuleRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - object.owner = false; - if (options.bytes === String) - object.recordKey = ""; - else { - object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); - } - object.recordKeyType = options.enums === String ? "NO_KEY" : 0; - object.canShare = false; - object.canEdit = false; - if (options.bytes === String) - object.ownerAccountUid = ""; - else { - object.ownerAccountUid = []; - if (options.bytes !== Array) - object.ownerAccountUid = $util.newBuffer(object.ownerAccountUid); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - object.expirationNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; - object.ownerUsername = ""; + if (options.arrays || options.defaults) + object.serviceRuleSpecifier = []; + if (message.serviceRuleSpecifier && message.serviceRuleSpecifier.length) { + object.serviceRuleSpecifier = []; + for (let j = 0; j < message.serviceRuleSpecifier.length; ++j) + object.serviceRuleSpecifier[j] = $root.ServiceLogger.ServiceRuleSpecifier.toObject(message.serviceRuleSpecifier[j], options); } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.recordKeyType != null && message.hasOwnProperty("recordKeyType")) - object.recordKeyType = options.enums === String ? $root.Records.RecordKeyType[message.recordKeyType] === undefined ? message.recordKeyType : $root.Records.RecordKeyType[message.recordKeyType] : message.recordKeyType; - if (message.canShare != null && message.hasOwnProperty("canShare")) - object.canShare = message.canShare; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - object.canEdit = message.canEdit; - if (message.ownerAccountUid != null && message.hasOwnProperty("ownerAccountUid")) - object.ownerAccountUid = options.bytes === String ? $util.base64.encode(message.ownerAccountUid, 0, message.ownerAccountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.ownerAccountUid) : message.ownerAccountUid; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof 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")) - 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")) - object.ownerUsername = message.ownerUsername; return object; }; /** - * Converts this RecordMetaData to JSON. + * Converts this ServiceRuleRequest to JSON. * @function toJSON - * @memberof Vault.RecordMetaData + * @memberof ServiceLogger.ServiceRuleRequest * @instance * @returns {Object.} JSON object */ - RecordMetaData.prototype.toJSON = function toJSON() { + ServiceRuleRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordMetaData + * Gets the default type url for ServiceRuleRequest * @function getTypeUrl - * @memberof Vault.RecordMetaData + * @memberof ServiceLogger.ServiceRuleRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordMetaData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceRuleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.RecordMetaData"; + return typeUrlPrefix + "/ServiceLogger.ServiceRuleRequest"; }; - return RecordMetaData; + return ServiceRuleRequest; })(); - Vault.SharingChange = (function() { + ServiceLogger.ServiceRuleRecord = (function() { /** - * Properties of a SharingChange. - * @memberof Vault - * @interface ISharingChange - * @property {Uint8Array|null} [recordUid] SharingChange recordUid - * @property {boolean|null} [shared] SharingChange shared + * Properties of a ServiceRuleRecord. + * @memberof ServiceLogger + * @interface IServiceRuleRecord + * @property {number|Long|null} [serviceRuleId] ServiceRuleRecord serviceRuleId + * @property {number|Long|null} [serviceInfoId] ServiceRuleRecord serviceInfoId + * @property {number|Long|null} [resourceId] ServiceRuleRecord resourceId + * @property {boolean|null} [isLoggingEnabled] ServiceRuleRecord isLoggingEnabled + * @property {string|null} [logLevel] ServiceRuleRecord logLevel + * @property {string|null} [ruleStart] ServiceRuleRecord ruleStart + * @property {string|null} [ruleEnd] ServiceRuleRecord ruleEnd + * @property {string|null} [dateModified] ServiceRuleRecord dateModified */ /** - * Constructs a new SharingChange. - * @memberof Vault - * @classdesc Represents a SharingChange. - * @implements ISharingChange + * Constructs a new ServiceRuleRecord. + * @memberof ServiceLogger + * @classdesc Represents a ServiceRuleRecord. + * @implements IServiceRuleRecord * @constructor - * @param {Vault.ISharingChange=} [properties] Properties to set + * @param {ServiceLogger.IServiceRuleRecord=} [properties] Properties to set */ - function SharingChange(properties) { + function ServiceRuleRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -208595,89 +208440,173 @@ export const Vault = $root.Vault = (() => { } /** - * SharingChange recordUid. - * @member {Uint8Array} recordUid - * @memberof Vault.SharingChange + * ServiceRuleRecord serviceRuleId. + * @member {number|Long} serviceRuleId + * @memberof ServiceLogger.ServiceRuleRecord * @instance */ - SharingChange.prototype.recordUid = $util.newBuffer([]); + ServiceRuleRecord.prototype.serviceRuleId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * SharingChange shared. - * @member {boolean} shared - * @memberof Vault.SharingChange + * ServiceRuleRecord serviceInfoId. + * @member {number|Long} serviceInfoId + * @memberof ServiceLogger.ServiceRuleRecord * @instance */ - SharingChange.prototype.shared = false; + ServiceRuleRecord.prototype.serviceInfoId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Creates a new SharingChange instance using the specified properties. + * ServiceRuleRecord resourceId. + * @member {number|Long} resourceId + * @memberof ServiceLogger.ServiceRuleRecord + * @instance + */ + ServiceRuleRecord.prototype.resourceId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * ServiceRuleRecord isLoggingEnabled. + * @member {boolean} isLoggingEnabled + * @memberof ServiceLogger.ServiceRuleRecord + * @instance + */ + ServiceRuleRecord.prototype.isLoggingEnabled = false; + + /** + * ServiceRuleRecord logLevel. + * @member {string} logLevel + * @memberof ServiceLogger.ServiceRuleRecord + * @instance + */ + ServiceRuleRecord.prototype.logLevel = ""; + + /** + * ServiceRuleRecord ruleStart. + * @member {string} ruleStart + * @memberof ServiceLogger.ServiceRuleRecord + * @instance + */ + ServiceRuleRecord.prototype.ruleStart = ""; + + /** + * ServiceRuleRecord ruleEnd. + * @member {string} ruleEnd + * @memberof ServiceLogger.ServiceRuleRecord + * @instance + */ + ServiceRuleRecord.prototype.ruleEnd = ""; + + /** + * ServiceRuleRecord dateModified. + * @member {string} dateModified + * @memberof ServiceLogger.ServiceRuleRecord + * @instance + */ + ServiceRuleRecord.prototype.dateModified = ""; + + /** + * Creates a new ServiceRuleRecord instance using the specified properties. * @function create - * @memberof Vault.SharingChange + * @memberof ServiceLogger.ServiceRuleRecord * @static - * @param {Vault.ISharingChange=} [properties] Properties to set - * @returns {Vault.SharingChange} SharingChange instance + * @param {ServiceLogger.IServiceRuleRecord=} [properties] Properties to set + * @returns {ServiceLogger.ServiceRuleRecord} ServiceRuleRecord instance */ - SharingChange.create = function create(properties) { - return new SharingChange(properties); + ServiceRuleRecord.create = function create(properties) { + return new ServiceRuleRecord(properties); }; /** - * Encodes the specified SharingChange message. Does not implicitly {@link Vault.SharingChange.verify|verify} messages. + * Encodes the specified ServiceRuleRecord message. Does not implicitly {@link ServiceLogger.ServiceRuleRecord.verify|verify} messages. * @function encode - * @memberof Vault.SharingChange + * @memberof ServiceLogger.ServiceRuleRecord * @static - * @param {Vault.ISharingChange} message SharingChange message or plain object to encode + * @param {ServiceLogger.IServiceRuleRecord} message ServiceRuleRecord message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharingChange.encode = function encode(message, writer) { + ServiceRuleRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.shared); + if (message.serviceRuleId != null && Object.hasOwnProperty.call(message, "serviceRuleId")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.serviceRuleId); + if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "serviceInfoId")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.serviceInfoId); + if (message.resourceId != null && Object.hasOwnProperty.call(message, "resourceId")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.resourceId); + if (message.isLoggingEnabled != null && Object.hasOwnProperty.call(message, "isLoggingEnabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isLoggingEnabled); + if (message.logLevel != null && Object.hasOwnProperty.call(message, "logLevel")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.logLevel); + if (message.ruleStart != null && Object.hasOwnProperty.call(message, "ruleStart")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.ruleStart); + if (message.ruleEnd != null && Object.hasOwnProperty.call(message, "ruleEnd")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.ruleEnd); + if (message.dateModified != null && Object.hasOwnProperty.call(message, "dateModified")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.dateModified); return writer; }; /** - * Encodes the specified SharingChange message, length delimited. Does not implicitly {@link Vault.SharingChange.verify|verify} messages. + * Encodes the specified ServiceRuleRecord message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleRecord.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.SharingChange + * @memberof ServiceLogger.ServiceRuleRecord * @static - * @param {Vault.ISharingChange} message SharingChange message or plain object to encode + * @param {ServiceLogger.IServiceRuleRecord} message ServiceRuleRecord message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharingChange.encodeDelimited = function encodeDelimited(message, writer) { + ServiceRuleRecord.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SharingChange message from the specified reader or buffer. + * Decodes a ServiceRuleRecord message from the specified reader or buffer. * @function decode - * @memberof Vault.SharingChange + * @memberof ServiceLogger.ServiceRuleRecord * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.SharingChange} SharingChange + * @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 */ - SharingChange.decode = function decode(reader, length) { + ServiceRuleRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharingChange(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceRuleRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + message.serviceRuleId = reader.uint64(); break; } case 2: { - message.shared = reader.bool(); + message.serviceInfoId = reader.uint64(); + break; + } + case 3: { + message.resourceId = reader.uint64(); + break; + } + case 4: { + message.isLoggingEnabled = reader.bool(); + break; + } + case 5: { + message.logLevel = reader.string(); + break; + } + case 6: { + message.ruleStart = reader.string(); + break; + } + case 7: { + message.ruleEnd = reader.string(); + break; + } + case 8: { + message.dateModified = reader.string(); break; } default: @@ -208689,142 +208618,222 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a SharingChange message from the specified reader or buffer, length delimited. + * Decodes a ServiceRuleRecord message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.SharingChange + * @memberof ServiceLogger.ServiceRuleRecord * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SharingChange} SharingChange + * @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 */ - SharingChange.decodeDelimited = function decodeDelimited(reader) { + ServiceRuleRecord.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SharingChange message. + * Verifies a ServiceRuleRecord message. * @function verify - * @memberof Vault.SharingChange + * @memberof ServiceLogger.ServiceRuleRecord * @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) { + ServiceRuleRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.shared != null && message.hasOwnProperty("shared")) - if (typeof message.shared !== "boolean") - return "shared: 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.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 SharingChange message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceRuleRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.SharingChange + * @memberof ServiceLogger.ServiceRuleRecord * @static * @param {Object.} object Plain object - * @returns {Vault.SharingChange} SharingChange + * @returns {ServiceLogger.ServiceRuleRecord} ServiceRuleRecord */ - SharingChange.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SharingChange) + ServiceRuleRecord.fromObject = function fromObject(object) { + if (object instanceof $root.ServiceLogger.ServiceRuleRecord) return object; - let message = new $root.Vault.SharingChange(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.shared != null) - message.shared = Boolean(object.shared); + let message = new $root.ServiceLogger.ServiceRuleRecord(); + if (object.serviceRuleId != null) + if ($util.Long) + (message.serviceRuleId = $util.Long.fromValue(object.serviceRuleId)).unsigned = true; + else if (typeof object.serviceRuleId === "string") + message.serviceRuleId = parseInt(object.serviceRuleId, 10); + else if (typeof object.serviceRuleId === "number") + message.serviceRuleId = object.serviceRuleId; + else if (typeof object.serviceRuleId === "object") + message.serviceRuleId = new $util.LongBits(object.serviceRuleId.low >>> 0, object.serviceRuleId.high >>> 0).toNumber(true); + if (object.serviceInfoId != null) + if ($util.Long) + (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; + else if (typeof object.serviceInfoId === "string") + message.serviceInfoId = parseInt(object.serviceInfoId, 10); + else if (typeof object.serviceInfoId === "number") + message.serviceInfoId = object.serviceInfoId; + else if (typeof object.serviceInfoId === "object") + message.serviceInfoId = new $util.LongBits(object.serviceInfoId.low >>> 0, object.serviceInfoId.high >>> 0).toNumber(true); + if (object.resourceId != null) + if ($util.Long) + (message.resourceId = $util.Long.fromValue(object.resourceId)).unsigned = true; + else if (typeof object.resourceId === "string") + message.resourceId = parseInt(object.resourceId, 10); + else if (typeof object.resourceId === "number") + message.resourceId = object.resourceId; + else if (typeof object.resourceId === "object") + message.resourceId = new $util.LongBits(object.resourceId.low >>> 0, object.resourceId.high >>> 0).toNumber(true); + if (object.isLoggingEnabled != null) + message.isLoggingEnabled = Boolean(object.isLoggingEnabled); + if (object.logLevel != null) + message.logLevel = String(object.logLevel); + if (object.ruleStart != null) + message.ruleStart = String(object.ruleStart); + if (object.ruleEnd != null) + message.ruleEnd = String(object.ruleEnd); + if (object.dateModified != null) + message.dateModified = String(object.dateModified); return message; }; /** - * Creates a plain object from a SharingChange message. Also converts values to other types if specified. + * Creates a plain object from a ServiceRuleRecord message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.SharingChange + * @memberof ServiceLogger.ServiceRuleRecord * @static - * @param {Vault.SharingChange} message SharingChange + * @param {ServiceLogger.ServiceRuleRecord} message ServiceRuleRecord * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharingChange.toObject = function toObject(message, options) { + ServiceRuleRecord.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - object.shared = false; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.serviceRuleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.serviceRuleId = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.serviceInfoId = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.resourceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.resourceId = options.longs === String ? "0" : 0; + object.isLoggingEnabled = false; + object.logLevel = ""; + object.ruleStart = ""; + object.ruleEnd = ""; + object.dateModified = ""; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.shared != null && message.hasOwnProperty("shared")) - object.shared = message.shared; + if (message.serviceRuleId != null && message.hasOwnProperty("serviceRuleId")) + if (typeof message.serviceRuleId === "number") + object.serviceRuleId = options.longs === String ? String(message.serviceRuleId) : message.serviceRuleId; + else + object.serviceRuleId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceRuleId) : options.longs === Number ? new $util.LongBits(message.serviceRuleId.low >>> 0, message.serviceRuleId.high >>> 0).toNumber(true) : message.serviceRuleId; + if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) + if (typeof message.serviceInfoId === "number") + object.serviceInfoId = options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; + else + object.serviceInfoId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceInfoId) : options.longs === Number ? new $util.LongBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0).toNumber(true) : message.serviceInfoId; + if (message.resourceId != null && message.hasOwnProperty("resourceId")) + if (typeof 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")) + object.isLoggingEnabled = message.isLoggingEnabled; + if (message.logLevel != null && message.hasOwnProperty("logLevel")) + object.logLevel = message.logLevel; + if (message.ruleStart != null && message.hasOwnProperty("ruleStart")) + object.ruleStart = message.ruleStart; + if (message.ruleEnd != null && message.hasOwnProperty("ruleEnd")) + object.ruleEnd = message.ruleEnd; + if (message.dateModified != null && message.hasOwnProperty("dateModified")) + object.dateModified = message.dateModified; return object; }; /** - * Converts this SharingChange to JSON. + * Converts this ServiceRuleRecord to JSON. * @function toJSON - * @memberof Vault.SharingChange + * @memberof ServiceLogger.ServiceRuleRecord * @instance * @returns {Object.} JSON object */ - SharingChange.prototype.toJSON = function toJSON() { + ServiceRuleRecord.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SharingChange + * Gets the default type url for ServiceRuleRecord * @function getTypeUrl - * @memberof Vault.SharingChange + * @memberof ServiceLogger.ServiceRuleRecord * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SharingChange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceRuleRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.SharingChange"; + return typeUrlPrefix + "/ServiceLogger.ServiceRuleRecord"; }; - return SharingChange; + return ServiceRuleRecord; })(); - Vault.Profile = (function() { + ServiceLogger.ServiceRuleResponse = (function() { /** - * Properties of a Profile. - * @memberof Vault - * @interface IProfile - * @property {Uint8Array|null} [data] Profile data - * @property {string|null} [profileName] Profile profileName - * @property {number|Long|null} [revision] Profile revision + * Properties of a ServiceRuleResponse. + * @memberof ServiceLogger + * @interface IServiceRuleResponse + * @property {Array.|null} [serviceRule] ServiceRuleResponse serviceRule */ /** - * Constructs a new Profile. - * @memberof Vault - * @classdesc Represents a Profile. - * @implements IProfile + * Constructs a new ServiceRuleResponse. + * @memberof ServiceLogger + * @classdesc Represents a ServiceRuleResponse. + * @implements IServiceRuleResponse * @constructor - * @param {Vault.IProfile=} [properties] Properties to set + * @param {ServiceLogger.IServiceRuleResponse=} [properties] Properties to set */ - function Profile(properties) { + function ServiceRuleResponse(properties) { + this.serviceRule = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -208832,103 +208841,78 @@ export const Vault = $root.Vault = (() => { } /** - * Profile data. - * @member {Uint8Array} data - * @memberof Vault.Profile - * @instance - */ - Profile.prototype.data = $util.newBuffer([]); - - /** - * Profile profileName. - * @member {string} profileName - * @memberof Vault.Profile - * @instance - */ - Profile.prototype.profileName = ""; - - /** - * Profile revision. - * @member {number|Long} revision - * @memberof Vault.Profile + * ServiceRuleResponse serviceRule. + * @member {Array.} serviceRule + * @memberof ServiceLogger.ServiceRuleResponse * @instance */ - Profile.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ServiceRuleResponse.prototype.serviceRule = $util.emptyArray; /** - * Creates a new Profile instance using the specified properties. + * Creates a new ServiceRuleResponse instance using the specified properties. * @function create - * @memberof Vault.Profile + * @memberof ServiceLogger.ServiceRuleResponse * @static - * @param {Vault.IProfile=} [properties] Properties to set - * @returns {Vault.Profile} Profile instance + * @param {ServiceLogger.IServiceRuleResponse=} [properties] Properties to set + * @returns {ServiceLogger.ServiceRuleResponse} ServiceRuleResponse instance */ - Profile.create = function create(properties) { - return new Profile(properties); + ServiceRuleResponse.create = function create(properties) { + return new ServiceRuleResponse(properties); }; /** - * Encodes the specified Profile message. Does not implicitly {@link Vault.Profile.verify|verify} messages. + * Encodes the specified ServiceRuleResponse message. Does not implicitly {@link ServiceLogger.ServiceRuleResponse.verify|verify} messages. * @function encode - * @memberof Vault.Profile + * @memberof ServiceLogger.ServiceRuleResponse * @static - * @param {Vault.IProfile} message Profile message or plain object to encode + * @param {ServiceLogger.IServiceRuleResponse} message ServiceRuleResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Profile.encode = function encode(message, writer) { + ServiceRuleResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.data); - if (message.profileName != null && Object.hasOwnProperty.call(message, "profileName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.profileName); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); + if (message.serviceRule != null && message.serviceRule.length) + for (let i = 0; i < message.serviceRule.length; ++i) + $root.ServiceLogger.ServiceRuleRecord.encode(message.serviceRule[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Profile message, length delimited. Does not implicitly {@link Vault.Profile.verify|verify} messages. + * Encodes the specified ServiceRuleResponse message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.Profile + * @memberof ServiceLogger.ServiceRuleResponse * @static - * @param {Vault.IProfile} message Profile message or plain object to encode + * @param {ServiceLogger.IServiceRuleResponse} message ServiceRuleResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Profile.encodeDelimited = function encodeDelimited(message, writer) { + ServiceRuleResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Profile message from the specified reader or buffer. + * Decodes a ServiceRuleResponse message from the specified reader or buffer. * @function decode - * @memberof Vault.Profile + * @memberof ServiceLogger.ServiceRuleResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.Profile} Profile + * @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 */ - Profile.decode = function decode(reader, length) { + ServiceRuleResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.Profile(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceRuleResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.data = reader.bytes(); - break; - } - case 2: { - message.profileName = reader.string(); - break; - } - case 3: { - message.revision = reader.int64(); + if (!(message.serviceRule && message.serviceRule.length)) + message.serviceRule = []; + message.serviceRule.push($root.ServiceLogger.ServiceRuleRecord.decode(reader, reader.uint32())); break; } default: @@ -208940,163 +208924,140 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a Profile message from the specified reader or buffer, length delimited. + * Decodes a ServiceRuleResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.Profile + * @memberof ServiceLogger.ServiceRuleResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.Profile} Profile + * @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 */ - Profile.decodeDelimited = function decodeDelimited(reader) { + ServiceRuleResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Profile message. + * Verifies a ServiceRuleResponse message. * @function verify - * @memberof Vault.Profile + * @memberof ServiceLogger.ServiceRuleResponse * @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) { + ServiceRuleResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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"; + 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]); + if (error) + return "serviceRule." + error; + } + } return null; }; /** - * Creates a Profile message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceRuleResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.Profile + * @memberof ServiceLogger.ServiceRuleResponse * @static * @param {Object.} object Plain object - * @returns {Vault.Profile} Profile + * @returns {ServiceLogger.ServiceRuleResponse} ServiceRuleResponse */ - Profile.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.Profile) + ServiceRuleResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ServiceLogger.ServiceRuleResponse) return object; - let message = new $root.Vault.Profile(); - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - if (object.profileName != null) - message.profileName = String(object.profileName); - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + let message = new $root.ServiceLogger.ServiceRuleResponse(); + if (object.serviceRule) { + if (!Array.isArray(object.serviceRule)) + throw TypeError(".ServiceLogger.ServiceRuleResponse.serviceRule: array expected"); + message.serviceRule = []; + for (let i = 0; i < object.serviceRule.length; ++i) { + if (typeof object.serviceRule[i] !== "object") + throw TypeError(".ServiceLogger.ServiceRuleResponse.serviceRule: object expected"); + message.serviceRule[i] = $root.ServiceLogger.ServiceRuleRecord.fromObject(object.serviceRule[i]); + } + } return message; }; /** - * Creates a plain object from a Profile message. Also converts values to other types if specified. + * Creates a plain object from a ServiceRuleResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.Profile + * @memberof ServiceLogger.ServiceRuleResponse * @static - * @param {Vault.Profile} message Profile + * @param {ServiceLogger.ServiceRuleResponse} message ServiceRuleResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Profile.toObject = function toObject(message, options) { + ServiceRuleResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - object.profileName = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; + if (options.arrays || options.defaults) + object.serviceRule = []; + if (message.serviceRule && message.serviceRule.length) { + object.serviceRule = []; + for (let j = 0; j < message.serviceRule.length; ++j) + object.serviceRule[j] = $root.ServiceLogger.ServiceRuleRecord.toObject(message.serviceRule[j], options); } - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.profileName != null && message.hasOwnProperty("profileName")) - object.profileName = message.profileName; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof 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; return object; }; /** - * Converts this Profile to JSON. + * Converts this ServiceRuleResponse to JSON. * @function toJSON - * @memberof Vault.Profile + * @memberof ServiceLogger.ServiceRuleResponse * @instance * @returns {Object.} JSON object */ - Profile.prototype.toJSON = function toJSON() { + ServiceRuleResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Profile + * Gets the default type url for ServiceRuleResponse * @function getTypeUrl - * @memberof Vault.Profile + * @memberof ServiceLogger.ServiceRuleResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Profile.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceRuleResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.Profile"; + return typeUrlPrefix + "/ServiceLogger.ServiceRuleResponse"; }; - return Profile; + return ServiceRuleResponse; })(); - Vault.ProfilePic = (function() { + ServiceLogger.ServiceRuleUpdateRequest = (function() { /** - * Properties of a ProfilePic. - * @memberof Vault - * @interface IProfilePic - * @property {string|null} [url] ProfilePic url - * @property {number|Long|null} [revision] ProfilePic revision + * Properties of a ServiceRuleUpdateRequest. + * @memberof ServiceLogger + * @interface IServiceRuleUpdateRequest + * @property {Array.|null} [serviceRuleRecord] ServiceRuleUpdateRequest serviceRuleRecord */ /** - * Constructs a new ProfilePic. - * @memberof Vault - * @classdesc Represents a ProfilePic. - * @implements IProfilePic + * Constructs a new ServiceRuleUpdateRequest. + * @memberof ServiceLogger + * @classdesc Update one or more ServiceRule records by their IDs + * @implements IServiceRuleUpdateRequest * @constructor - * @param {Vault.IProfilePic=} [properties] Properties to set + * @param {ServiceLogger.IServiceRuleUpdateRequest=} [properties] Properties to set */ - function ProfilePic(properties) { + function ServiceRuleUpdateRequest(properties) { + this.serviceRuleRecord = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -209104,89 +209065,78 @@ export const Vault = $root.Vault = (() => { } /** - * ProfilePic url. - * @member {string} url - * @memberof Vault.ProfilePic - * @instance - */ - ProfilePic.prototype.url = ""; - - /** - * ProfilePic revision. - * @member {number|Long} revision - * @memberof Vault.ProfilePic + * ServiceRuleUpdateRequest serviceRuleRecord. + * @member {Array.} serviceRuleRecord + * @memberof ServiceLogger.ServiceRuleUpdateRequest * @instance */ - ProfilePic.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ServiceRuleUpdateRequest.prototype.serviceRuleRecord = $util.emptyArray; /** - * Creates a new ProfilePic instance using the specified properties. + * Creates a new ServiceRuleUpdateRequest instance using the specified properties. * @function create - * @memberof Vault.ProfilePic + * @memberof ServiceLogger.ServiceRuleUpdateRequest * @static - * @param {Vault.IProfilePic=} [properties] Properties to set - * @returns {Vault.ProfilePic} ProfilePic instance + * @param {ServiceLogger.IServiceRuleUpdateRequest=} [properties] Properties to set + * @returns {ServiceLogger.ServiceRuleUpdateRequest} ServiceRuleUpdateRequest instance */ - ProfilePic.create = function create(properties) { - return new ProfilePic(properties); + ServiceRuleUpdateRequest.create = function create(properties) { + return new ServiceRuleUpdateRequest(properties); }; /** - * Encodes the specified ProfilePic message. Does not implicitly {@link Vault.ProfilePic.verify|verify} messages. + * Encodes the specified ServiceRuleUpdateRequest message. Does not implicitly {@link ServiceLogger.ServiceRuleUpdateRequest.verify|verify} messages. * @function encode - * @memberof Vault.ProfilePic + * @memberof ServiceLogger.ServiceRuleUpdateRequest * @static - * @param {Vault.IProfilePic} message ProfilePic message or plain object to encode + * @param {ServiceLogger.IServiceRuleUpdateRequest} message ServiceRuleUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProfilePic.encode = function encode(message, writer) { + ServiceRuleUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.url != null && Object.hasOwnProperty.call(message, "url")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.url); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); + if (message.serviceRuleRecord != null && message.serviceRuleRecord.length) + for (let i = 0; i < message.serviceRuleRecord.length; ++i) + $root.ServiceLogger.ServiceRuleRecord.encode(message.serviceRuleRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ProfilePic message, length delimited. Does not implicitly {@link Vault.ProfilePic.verify|verify} messages. + * Encodes the specified ServiceRuleUpdateRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleUpdateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.ProfilePic + * @memberof ServiceLogger.ServiceRuleUpdateRequest * @static - * @param {Vault.IProfilePic} message ProfilePic message or plain object to encode + * @param {ServiceLogger.IServiceRuleUpdateRequest} message ServiceRuleUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProfilePic.encodeDelimited = function encodeDelimited(message, writer) { + ServiceRuleUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ProfilePic message from the specified reader or buffer. + * Decodes a ServiceRuleUpdateRequest message from the specified reader or buffer. * @function decode - * @memberof Vault.ProfilePic + * @memberof ServiceLogger.ServiceRuleUpdateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.ProfilePic} ProfilePic + * @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 */ - ProfilePic.decode = function decode(reader, length) { + ServiceRuleUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.ProfilePic(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceRuleUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.url = reader.string(); - break; - } - case 2: { - message.revision = reader.int64(); + if (!(message.serviceRuleRecord && message.serviceRuleRecord.length)) + message.serviceRuleRecord = []; + message.serviceRuleRecord.push($root.ServiceLogger.ServiceRuleRecord.decode(reader, reader.uint32())); break; } default: @@ -209198,149 +209148,146 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a ProfilePic message from the specified reader or buffer, length delimited. + * Decodes a ServiceRuleUpdateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.ProfilePic + * @memberof ServiceLogger.ServiceRuleUpdateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.ProfilePic} ProfilePic + * @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 */ - ProfilePic.decodeDelimited = function decodeDelimited(reader) { + ServiceRuleUpdateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ProfilePic message. + * Verifies a ServiceRuleUpdateRequest message. * @function verify - * @memberof Vault.ProfilePic + * @memberof ServiceLogger.ServiceRuleUpdateRequest * @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) { + ServiceRuleUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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]); + if (error) + return "serviceRuleRecord." + error; + } + } return null; }; /** - * Creates a ProfilePic message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceRuleUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.ProfilePic + * @memberof ServiceLogger.ServiceRuleUpdateRequest * @static * @param {Object.} object Plain object - * @returns {Vault.ProfilePic} ProfilePic + * @returns {ServiceLogger.ServiceRuleUpdateRequest} ServiceRuleUpdateRequest */ - ProfilePic.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.ProfilePic) + ServiceRuleUpdateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ServiceLogger.ServiceRuleUpdateRequest) return object; - let message = new $root.Vault.ProfilePic(); - if (object.url != null) - message.url = String(object.url); - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + let message = new $root.ServiceLogger.ServiceRuleUpdateRequest(); + if (object.serviceRuleRecord) { + if (!Array.isArray(object.serviceRuleRecord)) + throw TypeError(".ServiceLogger.ServiceRuleUpdateRequest.serviceRuleRecord: array expected"); + message.serviceRuleRecord = []; + for (let i = 0; i < object.serviceRuleRecord.length; ++i) { + if (typeof object.serviceRuleRecord[i] !== "object") + throw TypeError(".ServiceLogger.ServiceRuleUpdateRequest.serviceRuleRecord: object expected"); + message.serviceRuleRecord[i] = $root.ServiceLogger.ServiceRuleRecord.fromObject(object.serviceRuleRecord[i]); + } + } return message; }; /** - * Creates a plain object from a ProfilePic message. Also converts values to other types if specified. + * Creates a plain object from a ServiceRuleUpdateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.ProfilePic + * @memberof ServiceLogger.ServiceRuleUpdateRequest * @static - * @param {Vault.ProfilePic} message ProfilePic + * @param {ServiceLogger.ServiceRuleUpdateRequest} message ServiceRuleUpdateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ProfilePic.toObject = function toObject(message, options) { + ServiceRuleUpdateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.url = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; + if (options.arrays || options.defaults) + object.serviceRuleRecord = []; + if (message.serviceRuleRecord && message.serviceRuleRecord.length) { + object.serviceRuleRecord = []; + for (let j = 0; j < message.serviceRuleRecord.length; ++j) + object.serviceRuleRecord[j] = $root.ServiceLogger.ServiceRuleRecord.toObject(message.serviceRuleRecord[j], options); } - if (message.url != null && message.hasOwnProperty("url")) - object.url = message.url; - if (message.revision != null && message.hasOwnProperty("revision")) - 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; return object; }; /** - * Converts this ProfilePic to JSON. + * Converts this ServiceRuleUpdateRequest to JSON. * @function toJSON - * @memberof Vault.ProfilePic + * @memberof ServiceLogger.ServiceRuleUpdateRequest * @instance * @returns {Object.} JSON object */ - ProfilePic.prototype.toJSON = function toJSON() { + ServiceRuleUpdateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ProfilePic + * Gets the default type url for ServiceRuleUpdateRequest * @function getTypeUrl - * @memberof Vault.ProfilePic + * @memberof ServiceLogger.ServiceRuleUpdateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ProfilePic.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceRuleUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.ProfilePic"; + return typeUrlPrefix + "/ServiceLogger.ServiceRuleUpdateRequest"; }; - return ProfilePic; + return ServiceRuleUpdateRequest; })(); - Vault.PendingTeamMember = (function() { + ServiceLogger.ServiceLogSpecifier = (function() { /** - * Properties of a PendingTeamMember. - * @memberof Vault - * @interface IPendingTeamMember - * @property {number|Long|null} [enterpriseUserId] PendingTeamMember enterpriseUserId - * @property {Uint8Array|null} [userPublicKey] PendingTeamMember userPublicKey - * @property {Array.|null} [teamUids] PendingTeamMember teamUids - * @property {Uint8Array|null} [userEccPublicKey] PendingTeamMember userEccPublicKey + * Properties of a ServiceLogSpecifier. + * @memberof ServiceLogger + * @interface IServiceLogSpecifier + * @property {boolean|null} [all] ServiceLogSpecifier all + * @property {number|Long|null} [serviceLogId] ServiceLogSpecifier serviceLogId + * @property {Array.|null} [serviceIdRange] ServiceLogSpecifier serviceIdRange + * @property {Array.|null} [resourceIdRange] ServiceLogSpecifier resourceIdRange + * @property {string|null} [startDateTime] ServiceLogSpecifier startDateTime + * @property {string|null} [endDateTime] ServiceLogSpecifier endDateTime */ /** - * Constructs a new PendingTeamMember. - * @memberof Vault - * @classdesc Represents a PendingTeamMember. - * @implements IPendingTeamMember + * Constructs a new ServiceLogSpecifier. + * @memberof ServiceLogger + * @classdesc Represents a ServiceLogSpecifier. + * @implements IServiceLogSpecifier * @constructor - * @param {Vault.IPendingTeamMember=} [properties] Properties to set + * @param {ServiceLogger.IServiceLogSpecifier=} [properties] Properties to set */ - function PendingTeamMember(properties) { - this.teamUids = []; + function ServiceLogSpecifier(properties) { + this.serviceIdRange = []; + this.resourceIdRange = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -209348,120 +209295,151 @@ export const Vault = $root.Vault = (() => { } /** - * PendingTeamMember enterpriseUserId. - * @member {number|Long} enterpriseUserId - * @memberof Vault.PendingTeamMember + * ServiceLogSpecifier all. + * @member {boolean} all + * @memberof ServiceLogger.ServiceLogSpecifier * @instance */ - PendingTeamMember.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ServiceLogSpecifier.prototype.all = false; /** - * PendingTeamMember userPublicKey. - * @member {Uint8Array} userPublicKey - * @memberof Vault.PendingTeamMember + * ServiceLogSpecifier serviceLogId. + * @member {number|Long} serviceLogId + * @memberof ServiceLogger.ServiceLogSpecifier * @instance */ - PendingTeamMember.prototype.userPublicKey = $util.newBuffer([]); + ServiceLogSpecifier.prototype.serviceLogId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * PendingTeamMember teamUids. - * @member {Array.} teamUids - * @memberof Vault.PendingTeamMember + * ServiceLogSpecifier serviceIdRange. + * @member {Array.} serviceIdRange + * @memberof ServiceLogger.ServiceLogSpecifier * @instance */ - PendingTeamMember.prototype.teamUids = $util.emptyArray; + ServiceLogSpecifier.prototype.serviceIdRange = $util.emptyArray; /** - * PendingTeamMember userEccPublicKey. - * @member {Uint8Array} userEccPublicKey - * @memberof Vault.PendingTeamMember + * ServiceLogSpecifier resourceIdRange. + * @member {Array.} resourceIdRange + * @memberof ServiceLogger.ServiceLogSpecifier * @instance */ - PendingTeamMember.prototype.userEccPublicKey = $util.newBuffer([]); + ServiceLogSpecifier.prototype.resourceIdRange = $util.emptyArray; /** - * Creates a new PendingTeamMember instance using the specified properties. + * ServiceLogSpecifier startDateTime. + * @member {string} startDateTime + * @memberof ServiceLogger.ServiceLogSpecifier + * @instance + */ + ServiceLogSpecifier.prototype.startDateTime = ""; + + /** + * ServiceLogSpecifier endDateTime. + * @member {string} endDateTime + * @memberof ServiceLogger.ServiceLogSpecifier + * @instance + */ + ServiceLogSpecifier.prototype.endDateTime = ""; + + /** + * Creates a new ServiceLogSpecifier instance using the specified properties. * @function create - * @memberof Vault.PendingTeamMember + * @memberof ServiceLogger.ServiceLogSpecifier * @static - * @param {Vault.IPendingTeamMember=} [properties] Properties to set - * @returns {Vault.PendingTeamMember} PendingTeamMember instance + * @param {ServiceLogger.IServiceLogSpecifier=} [properties] Properties to set + * @returns {ServiceLogger.ServiceLogSpecifier} ServiceLogSpecifier instance */ - PendingTeamMember.create = function create(properties) { - return new PendingTeamMember(properties); + ServiceLogSpecifier.create = function create(properties) { + return new ServiceLogSpecifier(properties); }; /** - * Encodes the specified PendingTeamMember message. Does not implicitly {@link Vault.PendingTeamMember.verify|verify} messages. + * Encodes the specified ServiceLogSpecifier message. Does not implicitly {@link ServiceLogger.ServiceLogSpecifier.verify|verify} messages. * @function encode - * @memberof Vault.PendingTeamMember + * @memberof ServiceLogger.ServiceLogSpecifier * @static - * @param {Vault.IPendingTeamMember} message PendingTeamMember message or plain object to encode + * @param {ServiceLogger.IServiceLogSpecifier} message ServiceLogSpecifier message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PendingTeamMember.encode = function encode(message, writer) { + ServiceLogSpecifier.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.userPublicKey != null && Object.hasOwnProperty.call(message, "userPublicKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.userPublicKey); - if (message.teamUids != null && message.teamUids.length) - for (let i = 0; i < message.teamUids.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.teamUids[i]); - if (message.userEccPublicKey != null && Object.hasOwnProperty.call(message, "userEccPublicKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.userEccPublicKey); + if (message.all != null && Object.hasOwnProperty.call(message, "all")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.all); + if (message.serviceLogId != null && Object.hasOwnProperty.call(message, "serviceLogId")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.serviceLogId); + if (message.serviceIdRange != null && message.serviceIdRange.length) + for (let i = 0; i < message.serviceIdRange.length; ++i) + $root.ServiceLogger.IdRange.encode(message.serviceIdRange[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.resourceIdRange != null && message.resourceIdRange.length) + for (let i = 0; i < message.resourceIdRange.length; ++i) + $root.ServiceLogger.IdRange.encode(message.resourceIdRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.startDateTime != null && Object.hasOwnProperty.call(message, "startDateTime")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.startDateTime); + if (message.endDateTime != null && Object.hasOwnProperty.call(message, "endDateTime")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.endDateTime); return writer; }; /** - * Encodes the specified PendingTeamMember message, length delimited. Does not implicitly {@link Vault.PendingTeamMember.verify|verify} messages. + * Encodes the specified ServiceLogSpecifier message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogSpecifier.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.PendingTeamMember + * @memberof ServiceLogger.ServiceLogSpecifier * @static - * @param {Vault.IPendingTeamMember} message PendingTeamMember message or plain object to encode + * @param {ServiceLogger.IServiceLogSpecifier} message ServiceLogSpecifier message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PendingTeamMember.encodeDelimited = function encodeDelimited(message, writer) { + ServiceLogSpecifier.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PendingTeamMember message from the specified reader or buffer. + * Decodes a ServiceLogSpecifier message from the specified reader or buffer. * @function decode - * @memberof Vault.PendingTeamMember + * @memberof ServiceLogger.ServiceLogSpecifier * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.PendingTeamMember} PendingTeamMember + * @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 */ - PendingTeamMember.decode = function decode(reader, length) { + ServiceLogSpecifier.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.PendingTeamMember(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogSpecifier(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.enterpriseUserId = reader.int64(); + message.all = reader.bool(); break; } case 2: { - message.userPublicKey = reader.bytes(); + message.serviceLogId = reader.uint64(); break; } case 3: { - if (!(message.teamUids && message.teamUids.length)) - message.teamUids = []; - message.teamUids.push(reader.bytes()); + if (!(message.serviceIdRange && message.serviceIdRange.length)) + message.serviceIdRange = []; + message.serviceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32())); break; } case 4: { - message.userEccPublicKey = reader.bytes(); + if (!(message.resourceIdRange && message.resourceIdRange.length)) + message.resourceIdRange = []; + message.resourceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32())); + break; + } + case 5: { + message.startDateTime = reader.string(); + break; + } + case 6: { + message.endDateTime = reader.string(); break; } default: @@ -209473,200 +209451,214 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a PendingTeamMember message from the specified reader or buffer, length delimited. + * Decodes a ServiceLogSpecifier message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.PendingTeamMember + * @memberof ServiceLogger.ServiceLogSpecifier * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.PendingTeamMember} PendingTeamMember + * @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 */ - PendingTeamMember.decodeDelimited = function decodeDelimited(reader) { + ServiceLogSpecifier.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PendingTeamMember message. + * Verifies a ServiceLogSpecifier message. * @function verify - * @memberof Vault.PendingTeamMember + * @memberof ServiceLogger.ServiceLogSpecifier * @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) { + ServiceLogSpecifier.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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.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]); + if (error) + return "serviceIdRange." + error; + } } - if (message.userEccPublicKey != null && message.hasOwnProperty("userEccPublicKey")) - if (!(message.userEccPublicKey && typeof message.userEccPublicKey.length === "number" || $util.isString(message.userEccPublicKey))) - return "userEccPublicKey: buffer 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]); + 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 PendingTeamMember message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceLogSpecifier message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.PendingTeamMember + * @memberof ServiceLogger.ServiceLogSpecifier * @static * @param {Object.} object Plain object - * @returns {Vault.PendingTeamMember} PendingTeamMember + * @returns {ServiceLogger.ServiceLogSpecifier} ServiceLogSpecifier */ - PendingTeamMember.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.PendingTeamMember) + ServiceLogSpecifier.fromObject = function fromObject(object) { + if (object instanceof $root.ServiceLogger.ServiceLogSpecifier) return object; - let message = new $root.Vault.PendingTeamMember(); - if (object.enterpriseUserId != null) + let message = new $root.ServiceLogger.ServiceLogSpecifier(); + if (object.all != null) + message.all = Boolean(object.all); + if (object.serviceLogId != null) if ($util.Long) - (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") - message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") - message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - if (object.userPublicKey != null) - if (typeof object.userPublicKey === "string") - $util.base64.decode(object.userPublicKey, message.userPublicKey = $util.newBuffer($util.base64.length(object.userPublicKey)), 0); - else if (object.userPublicKey.length >= 0) - message.userPublicKey = object.userPublicKey; - if (object.teamUids) { - if (!Array.isArray(object.teamUids)) - throw TypeError(".Vault.PendingTeamMember.teamUids: array expected"); - message.teamUids = []; - for (let i = 0; i < object.teamUids.length; ++i) - if (typeof object.teamUids[i] === "string") - $util.base64.decode(object.teamUids[i], message.teamUids[i] = $util.newBuffer($util.base64.length(object.teamUids[i])), 0); - else if (object.teamUids[i].length >= 0) - message.teamUids[i] = object.teamUids[i]; + (message.serviceLogId = $util.Long.fromValue(object.serviceLogId)).unsigned = true; + else if (typeof object.serviceLogId === "string") + message.serviceLogId = parseInt(object.serviceLogId, 10); + else if (typeof object.serviceLogId === "number") + message.serviceLogId = object.serviceLogId; + else if (typeof object.serviceLogId === "object") + message.serviceLogId = new $util.LongBits(object.serviceLogId.low >>> 0, object.serviceLogId.high >>> 0).toNumber(true); + if (object.serviceIdRange) { + if (!Array.isArray(object.serviceIdRange)) + throw TypeError(".ServiceLogger.ServiceLogSpecifier.serviceIdRange: array expected"); + message.serviceIdRange = []; + for (let i = 0; i < object.serviceIdRange.length; ++i) { + if (typeof object.serviceIdRange[i] !== "object") + throw TypeError(".ServiceLogger.ServiceLogSpecifier.serviceIdRange: object expected"); + message.serviceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.serviceIdRange[i]); + } } - if (object.userEccPublicKey != null) - if (typeof object.userEccPublicKey === "string") - $util.base64.decode(object.userEccPublicKey, message.userEccPublicKey = $util.newBuffer($util.base64.length(object.userEccPublicKey)), 0); - else if (object.userEccPublicKey.length >= 0) - message.userEccPublicKey = object.userEccPublicKey; + if (object.resourceIdRange) { + if (!Array.isArray(object.resourceIdRange)) + throw TypeError(".ServiceLogger.ServiceLogSpecifier.resourceIdRange: array expected"); + message.resourceIdRange = []; + for (let i = 0; i < object.resourceIdRange.length; ++i) { + if (typeof object.resourceIdRange[i] !== "object") + throw TypeError(".ServiceLogger.ServiceLogSpecifier.resourceIdRange: object expected"); + message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i]); + } + } + if (object.startDateTime != null) + message.startDateTime = String(object.startDateTime); + if (object.endDateTime != null) + message.endDateTime = String(object.endDateTime); return message; }; /** - * Creates a plain object from a PendingTeamMember message. Also converts values to other types if specified. + * Creates a plain object from a ServiceLogSpecifier message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.PendingTeamMember + * @memberof ServiceLogger.ServiceLogSpecifier * @static - * @param {Vault.PendingTeamMember} message PendingTeamMember + * @param {ServiceLogger.ServiceLogSpecifier} message ServiceLogSpecifier * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PendingTeamMember.toObject = function toObject(message, options) { + ServiceLogSpecifier.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.teamUids = []; + if (options.arrays || options.defaults) { + object.serviceIdRange = []; + object.resourceIdRange = []; + } if (options.defaults) { + object.all = false; if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + let long = new $util.Long(0, 0, true); + object.serviceLogId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.userPublicKey = ""; - else { - object.userPublicKey = []; - if (options.bytes !== Array) - object.userPublicKey = $util.newBuffer(object.userPublicKey); - } - if (options.bytes === String) - object.userEccPublicKey = ""; - else { - object.userEccPublicKey = []; - if (options.bytes !== Array) - object.userEccPublicKey = $util.newBuffer(object.userEccPublicKey); - } + object.serviceLogId = options.longs === String ? "0" : 0; + object.startDateTime = ""; + object.endDateTime = ""; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.all != null && message.hasOwnProperty("all")) + object.all = message.all; + if (message.serviceLogId != null && message.hasOwnProperty("serviceLogId")) + if (typeof message.serviceLogId === "number") + object.serviceLogId = options.longs === String ? String(message.serviceLogId) : message.serviceLogId; 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")) - 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]; + object.serviceLogId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceLogId) : options.longs === Number ? new $util.LongBits(message.serviceLogId.low >>> 0, message.serviceLogId.high >>> 0).toNumber(true) : message.serviceLogId; + if (message.serviceIdRange && message.serviceIdRange.length) { + object.serviceIdRange = []; + for (let j = 0; j < message.serviceIdRange.length; ++j) + object.serviceIdRange[j] = $root.ServiceLogger.IdRange.toObject(message.serviceIdRange[j], options); } - if (message.userEccPublicKey != null && message.hasOwnProperty("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; + 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); + } + if (message.startDateTime != null && message.hasOwnProperty("startDateTime")) + object.startDateTime = message.startDateTime; + if (message.endDateTime != null && message.hasOwnProperty("endDateTime")) + object.endDateTime = message.endDateTime; return object; }; /** - * Converts this PendingTeamMember to JSON. + * Converts this ServiceLogSpecifier to JSON. * @function toJSON - * @memberof Vault.PendingTeamMember + * @memberof ServiceLogger.ServiceLogSpecifier * @instance * @returns {Object.} JSON object */ - PendingTeamMember.prototype.toJSON = function toJSON() { + ServiceLogSpecifier.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PendingTeamMember + * Gets the default type url for ServiceLogSpecifier * @function getTypeUrl - * @memberof Vault.PendingTeamMember + * @memberof ServiceLogger.ServiceLogSpecifier * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PendingTeamMember.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceLogSpecifier.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.PendingTeamMember"; + return typeUrlPrefix + "/ServiceLogger.ServiceLogSpecifier"; }; - return PendingTeamMember; + return ServiceLogSpecifier; })(); - Vault.BreachWatchRecord = (function() { + ServiceLogger.ServiceLogGetRequest = (function() { /** - * Properties of a BreachWatchRecord. - * @memberof Vault - * @interface IBreachWatchRecord - * @property {Uint8Array|null} [recordUid] BreachWatchRecord recordUid - * @property {Uint8Array|null} [data] BreachWatchRecord data - * @property {BreachWatch.BreachWatchInfoType|null} [type] BreachWatchRecord type - * @property {string|null} [scannedBy] BreachWatchRecord scannedBy - * @property {number|Long|null} [revision] BreachWatchRecord revision - * @property {Uint8Array|null} [scannedByAccountUid] BreachWatchRecord scannedByAccountUid + * Properties of a ServiceLogGetRequest. + * @memberof ServiceLogger + * @interface IServiceLogGetRequest + * @property {Array.|null} [serviceLogSpecifier] ServiceLogGetRequest serviceLogSpecifier */ /** - * Constructs a new BreachWatchRecord. - * @memberof Vault - * @classdesc Represents a BreachWatchRecord. - * @implements IBreachWatchRecord + * Constructs a new ServiceLogGetRequest. + * @memberof ServiceLogger + * @classdesc Represents a ServiceLogGetRequest. + * @implements IServiceLogGetRequest * @constructor - * @param {Vault.IBreachWatchRecord=} [properties] Properties to set + * @param {ServiceLogger.IServiceLogGetRequest=} [properties] Properties to set */ - function BreachWatchRecord(properties) { + function ServiceLogGetRequest(properties) { + this.serviceLogSpecifier = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -209674,145 +209666,78 @@ export const Vault = $root.Vault = (() => { } /** - * BreachWatchRecord recordUid. - * @member {Uint8Array} recordUid - * @memberof Vault.BreachWatchRecord - * @instance - */ - BreachWatchRecord.prototype.recordUid = $util.newBuffer([]); - - /** - * BreachWatchRecord data. - * @member {Uint8Array} data - * @memberof Vault.BreachWatchRecord - * @instance - */ - BreachWatchRecord.prototype.data = $util.newBuffer([]); - - /** - * BreachWatchRecord type. - * @member {BreachWatch.BreachWatchInfoType} type - * @memberof Vault.BreachWatchRecord - * @instance - */ - BreachWatchRecord.prototype.type = 0; - - /** - * BreachWatchRecord scannedBy. - * @member {string} scannedBy - * @memberof Vault.BreachWatchRecord - * @instance - */ - BreachWatchRecord.prototype.scannedBy = ""; - - /** - * BreachWatchRecord revision. - * @member {number|Long} revision - * @memberof Vault.BreachWatchRecord - * @instance - */ - BreachWatchRecord.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * BreachWatchRecord scannedByAccountUid. - * @member {Uint8Array} scannedByAccountUid - * @memberof Vault.BreachWatchRecord + * ServiceLogGetRequest serviceLogSpecifier. + * @member {Array.} serviceLogSpecifier + * @memberof ServiceLogger.ServiceLogGetRequest * @instance */ - BreachWatchRecord.prototype.scannedByAccountUid = $util.newBuffer([]); + ServiceLogGetRequest.prototype.serviceLogSpecifier = $util.emptyArray; /** - * Creates a new BreachWatchRecord instance using the specified properties. + * Creates a new ServiceLogGetRequest instance using the specified properties. * @function create - * @memberof Vault.BreachWatchRecord + * @memberof ServiceLogger.ServiceLogGetRequest * @static - * @param {Vault.IBreachWatchRecord=} [properties] Properties to set - * @returns {Vault.BreachWatchRecord} BreachWatchRecord instance + * @param {ServiceLogger.IServiceLogGetRequest=} [properties] Properties to set + * @returns {ServiceLogger.ServiceLogGetRequest} ServiceLogGetRequest instance */ - BreachWatchRecord.create = function create(properties) { - return new BreachWatchRecord(properties); + ServiceLogGetRequest.create = function create(properties) { + return new ServiceLogGetRequest(properties); }; /** - * Encodes the specified BreachWatchRecord message. Does not implicitly {@link Vault.BreachWatchRecord.verify|verify} messages. + * Encodes the specified ServiceLogGetRequest message. Does not implicitly {@link ServiceLogger.ServiceLogGetRequest.verify|verify} messages. * @function encode - * @memberof Vault.BreachWatchRecord + * @memberof ServiceLogger.ServiceLogGetRequest * @static - * @param {Vault.IBreachWatchRecord} message BreachWatchRecord message or plain object to encode + * @param {ServiceLogger.IServiceLogGetRequest} message ServiceLogGetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchRecord.encode = function encode(message, writer) { + ServiceLogGetRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.type); - if (message.scannedBy != null && Object.hasOwnProperty.call(message, "scannedBy")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.scannedBy); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.revision); - if (message.scannedByAccountUid != null && Object.hasOwnProperty.call(message, "scannedByAccountUid")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.scannedByAccountUid); + if (message.serviceLogSpecifier != null && message.serviceLogSpecifier.length) + for (let i = 0; i < message.serviceLogSpecifier.length; ++i) + $root.ServiceLogger.ServiceLogSpecifier.encode(message.serviceLogSpecifier[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified BreachWatchRecord message, length delimited. Does not implicitly {@link Vault.BreachWatchRecord.verify|verify} messages. + * Encodes the specified ServiceLogGetRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogGetRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.BreachWatchRecord + * @memberof ServiceLogger.ServiceLogGetRequest * @static - * @param {Vault.IBreachWatchRecord} message BreachWatchRecord message or plain object to encode + * @param {ServiceLogger.IServiceLogGetRequest} message ServiceLogGetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchRecord.encodeDelimited = function encodeDelimited(message, writer) { + ServiceLogGetRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BreachWatchRecord message from the specified reader or buffer. + * Decodes a ServiceLogGetRequest message from the specified reader or buffer. * @function decode - * @memberof Vault.BreachWatchRecord + * @memberof ServiceLogger.ServiceLogGetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.BreachWatchRecord} BreachWatchRecord + * @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 */ - BreachWatchRecord.decode = function decode(reader, length) { + ServiceLogGetRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.BreachWatchRecord(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogGetRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); - break; - } - case 2: { - message.data = reader.bytes(); - break; - } - case 3: { - message.type = reader.int32(); - break; - } - case 4: { - message.scannedBy = reader.string(); - break; - } - case 5: { - message.revision = reader.int64(); - break; - } - case 6: { - message.scannedByAccountUid = reader.bytes(); + if (!(message.serviceLogSpecifier && message.serviceLogSpecifier.length)) + message.serviceLogSpecifier = []; + message.serviceLogSpecifier.push($root.ServiceLogger.ServiceLogSpecifier.decode(reader, reader.uint32())); break; } default: @@ -209824,230 +209749,146 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a BreachWatchRecord message from the specified reader or buffer, length delimited. + * Decodes a ServiceLogGetRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.BreachWatchRecord + * @memberof ServiceLogger.ServiceLogGetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.BreachWatchRecord} BreachWatchRecord + * @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 */ - BreachWatchRecord.decodeDelimited = function decodeDelimited(reader) { + ServiceLogGetRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BreachWatchRecord message. + * Verifies a ServiceLogGetRequest message. * @function verify - * @memberof Vault.BreachWatchRecord + * @memberof ServiceLogger.ServiceLogGetRequest * @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) { + ServiceLogGetRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.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.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]); + if (error) + return "serviceLogSpecifier." + error; } - 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. + * Creates a ServiceLogGetRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.BreachWatchRecord + * @memberof ServiceLogger.ServiceLogGetRequest * @static * @param {Object.} object Plain object - * @returns {Vault.BreachWatchRecord} BreachWatchRecord + * @returns {ServiceLogger.ServiceLogGetRequest} ServiceLogGetRequest */ - BreachWatchRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.BreachWatchRecord) + ServiceLogGetRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ServiceLogger.ServiceLogGetRequest) return object; - let message = new $root.Vault.BreachWatchRecord(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; + let message = new $root.ServiceLogger.ServiceLogGetRequest(); + if (object.serviceLogSpecifier) { + if (!Array.isArray(object.serviceLogSpecifier)) + throw TypeError(".ServiceLogger.ServiceLogGetRequest.serviceLogSpecifier: array expected"); + message.serviceLogSpecifier = []; + for (let i = 0; i < object.serviceLogSpecifier.length; ++i) { + if (typeof object.serviceLogSpecifier[i] !== "object") + throw TypeError(".ServiceLogger.ServiceLogGetRequest.serviceLogSpecifier: object expected"); + message.serviceLogSpecifier[i] = $root.ServiceLogger.ServiceLogSpecifier.fromObject(object.serviceLogSpecifier[i]); } - break; - case "RECORD": - case 0: - message.type = 0; - break; - case "ALTERNATE_PASSWORD": - case 1: - message.type = 1; - break; } - if (object.scannedBy != null) - message.scannedBy = String(object.scannedBy); - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.scannedByAccountUid != null) - if (typeof object.scannedByAccountUid === "string") - $util.base64.decode(object.scannedByAccountUid, message.scannedByAccountUid = $util.newBuffer($util.base64.length(object.scannedByAccountUid)), 0); - else if (object.scannedByAccountUid.length >= 0) - message.scannedByAccountUid = object.scannedByAccountUid; return message; }; /** - * Creates a plain object from a BreachWatchRecord message. Also converts values to other types if specified. + * Creates a plain object from a ServiceLogGetRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.BreachWatchRecord + * @memberof ServiceLogger.ServiceLogGetRequest * @static - * @param {Vault.BreachWatchRecord} message BreachWatchRecord + * @param {ServiceLogger.ServiceLogGetRequest} message ServiceLogGetRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachWatchRecord.toObject = function toObject(message, options) { + ServiceLogGetRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - object.type = options.enums === String ? "RECORD" : 0; - object.scannedBy = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.scannedByAccountUid = ""; - else { - object.scannedByAccountUid = []; - if (options.bytes !== Array) - object.scannedByAccountUid = $util.newBuffer(object.scannedByAccountUid); - } + if (options.arrays || options.defaults) + object.serviceLogSpecifier = []; + if (message.serviceLogSpecifier && message.serviceLogSpecifier.length) { + object.serviceLogSpecifier = []; + for (let j = 0; j < message.serviceLogSpecifier.length; ++j) + object.serviceLogSpecifier[j] = $root.ServiceLogger.ServiceLogSpecifier.toObject(message.serviceLogSpecifier[j], options); } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.type != null && message.hasOwnProperty("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")) - object.scannedBy = message.scannedBy; - if (message.revision != null && message.hasOwnProperty("revision")) - 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")) - 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; }; /** - * Converts this BreachWatchRecord to JSON. + * Converts this ServiceLogGetRequest to JSON. * @function toJSON - * @memberof Vault.BreachWatchRecord + * @memberof ServiceLogger.ServiceLogGetRequest * @instance * @returns {Object.} JSON object */ - BreachWatchRecord.prototype.toJSON = function toJSON() { + ServiceLogGetRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BreachWatchRecord + * Gets the default type url for ServiceLogGetRequest * @function getTypeUrl - * @memberof Vault.BreachWatchRecord + * @memberof ServiceLogger.ServiceLogGetRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BreachWatchRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceLogGetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.BreachWatchRecord"; + return typeUrlPrefix + "/ServiceLogger.ServiceLogGetRequest"; }; - return BreachWatchRecord; + return ServiceLogGetRequest; })(); - Vault.UserAuth = (function() { + ServiceLogger.ServiceLogRecord = (function() { /** - * Properties of a UserAuth. - * @memberof Vault - * @interface IUserAuth - * @property {Uint8Array|null} [uid] UserAuth uid - * @property {Authentication.LoginType|null} [loginType] UserAuth loginType - * @property {boolean|null} [deleted] UserAuth deleted - * @property {number|null} [iterations] UserAuth iterations - * @property {Uint8Array|null} [salt] UserAuth salt - * @property {Uint8Array|null} [encryptedClientKey] UserAuth encryptedClientKey - * @property {number|Long|null} [revision] UserAuth revision - * @property {string|null} [name] UserAuth name + * Properties of a ServiceLogRecord. + * @memberof ServiceLogger + * @interface IServiceLogRecord + * @property {number|Long|null} [serviceLogId] ServiceLogRecord serviceLogId + * @property {number|Long|null} [serviceInfoId] ServiceLogRecord serviceInfoId + * @property {number|Long|null} [resourceId] ServiceLogRecord resourceId + * @property {string|null} [logger] ServiceLogRecord logger + * @property {string|null} [logLevel] ServiceLogRecord logLevel + * @property {string|null} [message] ServiceLogRecord message + * @property {string|null} [exception] ServiceLogRecord exception + * @property {string|null} [dateCreated] ServiceLogRecord dateCreated */ /** - * Constructs a new UserAuth. - * @memberof Vault - * @classdesc Represents a UserAuth. - * @implements IUserAuth + * Constructs a new ServiceLogRecord. + * @memberof ServiceLogger + * @classdesc Represents a ServiceLogRecord. + * @implements IServiceLogRecord * @constructor - * @param {Vault.IUserAuth=} [properties] Properties to set + * @param {ServiceLogger.IServiceLogRecord=} [properties] Properties to set */ - function UserAuth(properties) { + function ServiceLogRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -210055,173 +209896,173 @@ export const Vault = $root.Vault = (() => { } /** - * UserAuth uid. - * @member {Uint8Array} uid - * @memberof Vault.UserAuth + * ServiceLogRecord serviceLogId. + * @member {number|Long} serviceLogId + * @memberof ServiceLogger.ServiceLogRecord * @instance */ - UserAuth.prototype.uid = $util.newBuffer([]); + ServiceLogRecord.prototype.serviceLogId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * UserAuth loginType. - * @member {Authentication.LoginType} loginType - * @memberof Vault.UserAuth + * ServiceLogRecord serviceInfoId. + * @member {number|Long} serviceInfoId + * @memberof ServiceLogger.ServiceLogRecord * @instance */ - UserAuth.prototype.loginType = 0; + ServiceLogRecord.prototype.serviceInfoId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * UserAuth deleted. - * @member {boolean} deleted - * @memberof Vault.UserAuth + * ServiceLogRecord resourceId. + * @member {number|Long} resourceId + * @memberof ServiceLogger.ServiceLogRecord * @instance */ - UserAuth.prototype.deleted = false; + ServiceLogRecord.prototype.resourceId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * UserAuth iterations. - * @member {number} iterations - * @memberof Vault.UserAuth + * ServiceLogRecord logger. + * @member {string} logger + * @memberof ServiceLogger.ServiceLogRecord * @instance */ - UserAuth.prototype.iterations = 0; + ServiceLogRecord.prototype.logger = ""; /** - * UserAuth salt. - * @member {Uint8Array} salt - * @memberof Vault.UserAuth + * ServiceLogRecord logLevel. + * @member {string} logLevel + * @memberof ServiceLogger.ServiceLogRecord * @instance */ - UserAuth.prototype.salt = $util.newBuffer([]); + ServiceLogRecord.prototype.logLevel = ""; /** - * UserAuth encryptedClientKey. - * @member {Uint8Array} encryptedClientKey - * @memberof Vault.UserAuth + * ServiceLogRecord message. + * @member {string} message + * @memberof ServiceLogger.ServiceLogRecord * @instance */ - UserAuth.prototype.encryptedClientKey = $util.newBuffer([]); + ServiceLogRecord.prototype.message = ""; /** - * UserAuth revision. - * @member {number|Long} revision - * @memberof Vault.UserAuth + * ServiceLogRecord exception. + * @member {string} exception + * @memberof ServiceLogger.ServiceLogRecord * @instance */ - UserAuth.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ServiceLogRecord.prototype.exception = ""; /** - * UserAuth name. - * @member {string} name - * @memberof Vault.UserAuth + * ServiceLogRecord dateCreated. + * @member {string} dateCreated + * @memberof ServiceLogger.ServiceLogRecord * @instance */ - UserAuth.prototype.name = ""; + ServiceLogRecord.prototype.dateCreated = ""; /** - * Creates a new UserAuth instance using the specified properties. + * Creates a new ServiceLogRecord instance using the specified properties. * @function create - * @memberof Vault.UserAuth + * @memberof ServiceLogger.ServiceLogRecord * @static - * @param {Vault.IUserAuth=} [properties] Properties to set - * @returns {Vault.UserAuth} UserAuth instance + * @param {ServiceLogger.IServiceLogRecord=} [properties] Properties to set + * @returns {ServiceLogger.ServiceLogRecord} ServiceLogRecord instance */ - UserAuth.create = function create(properties) { - return new UserAuth(properties); + ServiceLogRecord.create = function create(properties) { + return new ServiceLogRecord(properties); }; /** - * Encodes the specified UserAuth message. Does not implicitly {@link Vault.UserAuth.verify|verify} messages. + * Encodes the specified ServiceLogRecord message. Does not implicitly {@link ServiceLogger.ServiceLogRecord.verify|verify} messages. * @function encode - * @memberof Vault.UserAuth + * @memberof ServiceLogger.ServiceLogRecord * @static - * @param {Vault.IUserAuth} message UserAuth message or plain object to encode + * @param {ServiceLogger.IServiceLogRecord} message ServiceLogRecord message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserAuth.encode = function encode(message, writer) { + ServiceLogRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); - if (message.loginType != null && Object.hasOwnProperty.call(message, "loginType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.loginType); - if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deleted); - if (message.iterations != null && Object.hasOwnProperty.call(message, "iterations")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.iterations); - if (message.salt != null && Object.hasOwnProperty.call(message, "salt")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.salt); - if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, "encryptedClientKey")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.encryptedClientKey); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.revision); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.name); + if (message.serviceLogId != null && Object.hasOwnProperty.call(message, "serviceLogId")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.serviceLogId); + if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "serviceInfoId")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.serviceInfoId); + if (message.resourceId != null && Object.hasOwnProperty.call(message, "resourceId")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.resourceId); + if (message.logger != null && Object.hasOwnProperty.call(message, "logger")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.logger); + if (message.logLevel != null && Object.hasOwnProperty.call(message, "logLevel")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.logLevel); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.message); + if (message.exception != null && Object.hasOwnProperty.call(message, "exception")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.exception); + if (message.dateCreated != null && Object.hasOwnProperty.call(message, "dateCreated")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.dateCreated); return writer; }; /** - * Encodes the specified UserAuth message, length delimited. Does not implicitly {@link Vault.UserAuth.verify|verify} messages. + * Encodes the specified ServiceLogRecord message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogRecord.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.UserAuth + * @memberof ServiceLogger.ServiceLogRecord * @static - * @param {Vault.IUserAuth} message UserAuth message or plain object to encode + * @param {ServiceLogger.IServiceLogRecord} message ServiceLogRecord message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserAuth.encodeDelimited = function encodeDelimited(message, writer) { + ServiceLogRecord.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a UserAuth message from the specified reader or buffer. + * Decodes a ServiceLogRecord message from the specified reader or buffer. * @function decode - * @memberof Vault.UserAuth + * @memberof ServiceLogger.ServiceLogRecord * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.UserAuth} UserAuth + * @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 */ - UserAuth.decode = function decode(reader, length) { + ServiceLogRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.UserAuth(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.uid = reader.bytes(); + message.serviceLogId = reader.uint64(); break; } case 2: { - message.loginType = reader.int32(); + message.serviceInfoId = reader.uint64(); break; } case 3: { - message.deleted = reader.bool(); + message.resourceId = reader.uint64(); break; } case 4: { - message.iterations = reader.int32(); + message.logger = reader.string(); break; } case 5: { - message.salt = reader.bytes(); + message.logLevel = reader.string(); break; } case 6: { - message.encryptedClientKey = reader.bytes(); + message.message = reader.string(); break; } case 7: { - message.revision = reader.int64(); + message.exception = reader.string(); break; } case 8: { - message.name = reader.string(); + message.dateCreated = reader.string(); break; } default: @@ -210233,266 +210074,222 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a UserAuth message from the specified reader or buffer, length delimited. + * Decodes a ServiceLogRecord message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.UserAuth + * @memberof ServiceLogger.ServiceLogRecord * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.UserAuth} UserAuth + * @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 */ - UserAuth.decodeDelimited = function decodeDelimited(reader) { + ServiceLogRecord.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a UserAuth message. + * Verifies a ServiceLogRecord message. * @function verify - * @memberof Vault.UserAuth + * @memberof ServiceLogger.ServiceLogRecord * @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) { + ServiceLogRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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"; + 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 UserAuth message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceLogRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.UserAuth + * @memberof ServiceLogger.ServiceLogRecord * @static * @param {Object.} object Plain object - * @returns {Vault.UserAuth} UserAuth + * @returns {ServiceLogger.ServiceLogRecord} ServiceLogRecord */ - UserAuth.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.UserAuth) + ServiceLogRecord.fromObject = function fromObject(object) { + if (object instanceof $root.ServiceLogger.ServiceLogRecord) return object; - let message = new $root.Vault.UserAuth(); - if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; - switch (object.loginType) { - default: - if (typeof object.loginType === "number") { - message.loginType = object.loginType; - break; - } - break; - case "NORMAL": - case 0: - message.loginType = 0; - break; - case "SSO": - case 1: - message.loginType = 1; - break; - case "BIO": - case 2: - message.loginType = 2; - break; - case "ALTERNATE": - case 3: - message.loginType = 3; - break; - case "OFFLINE": - case 4: - message.loginType = 4; - break; - case "FORGOT_PASSWORD": - case 5: - message.loginType = 5; - break; - case "PASSKEY_BIO": - case 6: - message.loginType = 6; - break; - } - if (object.deleted != null) - message.deleted = Boolean(object.deleted); - if (object.iterations != null) - message.iterations = object.iterations | 0; - if (object.salt != null) - if (typeof object.salt === "string") - $util.base64.decode(object.salt, message.salt = $util.newBuffer($util.base64.length(object.salt)), 0); - else if (object.salt.length >= 0) - message.salt = object.salt; - if (object.encryptedClientKey != null) - if (typeof object.encryptedClientKey === "string") - $util.base64.decode(object.encryptedClientKey, message.encryptedClientKey = $util.newBuffer($util.base64.length(object.encryptedClientKey)), 0); - else if (object.encryptedClientKey.length >= 0) - message.encryptedClientKey = object.encryptedClientKey; - if (object.revision != null) + let message = new $root.ServiceLogger.ServiceLogRecord(); + if (object.serviceLogId != null) if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.name != null) - message.name = String(object.name); + (message.serviceLogId = $util.Long.fromValue(object.serviceLogId)).unsigned = true; + else if (typeof object.serviceLogId === "string") + message.serviceLogId = parseInt(object.serviceLogId, 10); + else if (typeof object.serviceLogId === "number") + message.serviceLogId = object.serviceLogId; + else if (typeof object.serviceLogId === "object") + message.serviceLogId = new $util.LongBits(object.serviceLogId.low >>> 0, object.serviceLogId.high >>> 0).toNumber(true); + if (object.serviceInfoId != null) + if ($util.Long) + (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; + else if (typeof object.serviceInfoId === "string") + message.serviceInfoId = parseInt(object.serviceInfoId, 10); + else if (typeof object.serviceInfoId === "number") + message.serviceInfoId = object.serviceInfoId; + else if (typeof object.serviceInfoId === "object") + message.serviceInfoId = new $util.LongBits(object.serviceInfoId.low >>> 0, object.serviceInfoId.high >>> 0).toNumber(true); + if (object.resourceId != null) + if ($util.Long) + (message.resourceId = $util.Long.fromValue(object.resourceId)).unsigned = true; + else if (typeof object.resourceId === "string") + message.resourceId = parseInt(object.resourceId, 10); + else if (typeof object.resourceId === "number") + message.resourceId = object.resourceId; + else if (typeof object.resourceId === "object") + message.resourceId = new $util.LongBits(object.resourceId.low >>> 0, object.resourceId.high >>> 0).toNumber(true); + if (object.logger != null) + message.logger = String(object.logger); + if (object.logLevel != null) + message.logLevel = String(object.logLevel); + if (object.message != null) + message.message = String(object.message); + if (object.exception != null) + message.exception = String(object.exception); + if (object.dateCreated != null) + message.dateCreated = String(object.dateCreated); return message; }; /** - * Creates a plain object from a UserAuth message. Also converts values to other types if specified. + * Creates a plain object from a ServiceLogRecord message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.UserAuth + * @memberof ServiceLogger.ServiceLogRecord * @static - * @param {Vault.UserAuth} message UserAuth + * @param {ServiceLogger.ServiceLogRecord} message ServiceLogRecord * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserAuth.toObject = function toObject(message, options) { + ServiceLogRecord.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.uid = ""; - else { - object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); - } - object.loginType = options.enums === String ? "NORMAL" : 0; - object.deleted = false; - object.iterations = 0; - if (options.bytes === String) - object.salt = ""; - else { - object.salt = []; - if (options.bytes !== Array) - object.salt = $util.newBuffer(object.salt); - } - if (options.bytes === String) - object.encryptedClientKey = ""; - else { - object.encryptedClientKey = []; - if (options.bytes !== Array) - object.encryptedClientKey = $util.newBuffer(object.encryptedClientKey); - } if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + let long = new $util.Long(0, 0, true); + object.serviceLogId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : 0; - object.name = ""; + object.serviceLogId = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.serviceInfoId = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.resourceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.resourceId = options.longs === String ? "0" : 0; + object.logger = ""; + object.logLevel = ""; + object.message = ""; + object.exception = ""; + object.dateCreated = ""; } - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; - if (message.loginType != null && message.hasOwnProperty("loginType")) - object.loginType = options.enums === String ? $root.Authentication.LoginType[message.loginType] === undefined ? message.loginType : $root.Authentication.LoginType[message.loginType] : message.loginType; - if (message.deleted != null && message.hasOwnProperty("deleted")) - object.deleted = message.deleted; - if (message.iterations != null && message.hasOwnProperty("iterations")) - object.iterations = message.iterations; - if (message.salt != null && message.hasOwnProperty("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")) - object.encryptedClientKey = options.bytes === String ? $util.base64.encode(message.encryptedClientKey, 0, message.encryptedClientKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedClientKey) : message.encryptedClientKey; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") - object.revision = options.longs === String ? String(message.revision) : message.revision; + if (message.serviceLogId != null && message.hasOwnProperty("serviceLogId")) + if (typeof message.serviceLogId === "number") + object.serviceLogId = options.longs === String ? String(message.serviceLogId) : message.serviceLogId; 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")) - object.name = message.name; + object.serviceLogId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceLogId) : options.longs === Number ? new $util.LongBits(message.serviceLogId.low >>> 0, message.serviceLogId.high >>> 0).toNumber(true) : message.serviceLogId; + if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) + if (typeof message.serviceInfoId === "number") + object.serviceInfoId = options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; + else + object.serviceInfoId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceInfoId) : options.longs === Number ? new $util.LongBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0).toNumber(true) : message.serviceInfoId; + if (message.resourceId != null && message.hasOwnProperty("resourceId")) + if (typeof 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")) + object.logger = message.logger; + if (message.logLevel != null && message.hasOwnProperty("logLevel")) + object.logLevel = message.logLevel; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.exception != null && message.hasOwnProperty("exception")) + object.exception = message.exception; + if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) + object.dateCreated = message.dateCreated; return object; }; /** - * Converts this UserAuth to JSON. + * Converts this ServiceLogRecord to JSON. * @function toJSON - * @memberof Vault.UserAuth + * @memberof ServiceLogger.ServiceLogRecord * @instance * @returns {Object.} JSON object */ - UserAuth.prototype.toJSON = function toJSON() { + ServiceLogRecord.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UserAuth + * Gets the default type url for ServiceLogRecord * @function getTypeUrl - * @memberof Vault.UserAuth + * @memberof ServiceLogger.ServiceLogRecord * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UserAuth.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceLogRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.UserAuth"; + return typeUrlPrefix + "/ServiceLogger.ServiceLogRecord"; }; - return UserAuth; + return ServiceLogRecord; })(); - Vault.BreachWatchSecurityData = (function() { + ServiceLogger.ServiceLogAddRequest = (function() { /** - * Properties of a BreachWatchSecurityData. - * @memberof Vault - * @interface IBreachWatchSecurityData - * @property {Uint8Array|null} [recordUid] BreachWatchSecurityData recordUid - * @property {number|Long|null} [revision] BreachWatchSecurityData revision - * @property {boolean|null} [removed] BreachWatchSecurityData removed + * Properties of a ServiceLogAddRequest. + * @memberof ServiceLogger + * @interface IServiceLogAddRequest + * @property {Array.|null} [entry] ServiceLogAddRequest entry */ /** - * Constructs a new BreachWatchSecurityData. - * @memberof Vault - * @classdesc Represents a BreachWatchSecurityData. - * @implements IBreachWatchSecurityData + * Constructs a new ServiceLogAddRequest. + * @memberof ServiceLogger + * @classdesc Represents a ServiceLogAddRequest. + * @implements IServiceLogAddRequest * @constructor - * @param {Vault.IBreachWatchSecurityData=} [properties] Properties to set + * @param {ServiceLogger.IServiceLogAddRequest=} [properties] Properties to set */ - function BreachWatchSecurityData(properties) { + function ServiceLogAddRequest(properties) { + this.entry = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -210500,103 +210297,78 @@ export const Vault = $root.Vault = (() => { } /** - * BreachWatchSecurityData recordUid. - * @member {Uint8Array} recordUid - * @memberof Vault.BreachWatchSecurityData - * @instance - */ - BreachWatchSecurityData.prototype.recordUid = $util.newBuffer([]); - - /** - * BreachWatchSecurityData revision. - * @member {number|Long} revision - * @memberof Vault.BreachWatchSecurityData - * @instance - */ - BreachWatchSecurityData.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * BreachWatchSecurityData removed. - * @member {boolean} removed - * @memberof Vault.BreachWatchSecurityData + * ServiceLogAddRequest entry. + * @member {Array.} entry + * @memberof ServiceLogger.ServiceLogAddRequest * @instance */ - BreachWatchSecurityData.prototype.removed = false; + ServiceLogAddRequest.prototype.entry = $util.emptyArray; /** - * Creates a new BreachWatchSecurityData instance using the specified properties. + * Creates a new ServiceLogAddRequest instance using the specified properties. * @function create - * @memberof Vault.BreachWatchSecurityData + * @memberof ServiceLogger.ServiceLogAddRequest * @static - * @param {Vault.IBreachWatchSecurityData=} [properties] Properties to set - * @returns {Vault.BreachWatchSecurityData} BreachWatchSecurityData instance + * @param {ServiceLogger.IServiceLogAddRequest=} [properties] Properties to set + * @returns {ServiceLogger.ServiceLogAddRequest} ServiceLogAddRequest instance */ - BreachWatchSecurityData.create = function create(properties) { - return new BreachWatchSecurityData(properties); + ServiceLogAddRequest.create = function create(properties) { + return new ServiceLogAddRequest(properties); }; /** - * Encodes the specified BreachWatchSecurityData message. Does not implicitly {@link Vault.BreachWatchSecurityData.verify|verify} messages. + * Encodes the specified ServiceLogAddRequest message. Does not implicitly {@link ServiceLogger.ServiceLogAddRequest.verify|verify} messages. * @function encode - * @memberof Vault.BreachWatchSecurityData + * @memberof ServiceLogger.ServiceLogAddRequest * @static - * @param {Vault.IBreachWatchSecurityData} message BreachWatchSecurityData message or plain object to encode + * @param {ServiceLogger.IServiceLogAddRequest} message ServiceLogAddRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchSecurityData.encode = function encode(message, writer) { + ServiceLogAddRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); - if (message.removed != null && Object.hasOwnProperty.call(message, "removed")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.removed); + if (message.entry != null && message.entry.length) + for (let i = 0; i < message.entry.length; ++i) + $root.ServiceLogger.ServiceLogRecord.encode(message.entry[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified BreachWatchSecurityData message, length delimited. Does not implicitly {@link Vault.BreachWatchSecurityData.verify|verify} messages. + * Encodes the specified ServiceLogAddRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogAddRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.BreachWatchSecurityData + * @memberof ServiceLogger.ServiceLogAddRequest * @static - * @param {Vault.IBreachWatchSecurityData} message BreachWatchSecurityData message or plain object to encode + * @param {ServiceLogger.IServiceLogAddRequest} message ServiceLogAddRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchSecurityData.encodeDelimited = function encodeDelimited(message, writer) { + ServiceLogAddRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BreachWatchSecurityData message from the specified reader or buffer. + * Decodes a ServiceLogAddRequest message from the specified reader or buffer. * @function decode - * @memberof Vault.BreachWatchSecurityData + * @memberof ServiceLogger.ServiceLogAddRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.BreachWatchSecurityData} BreachWatchSecurityData + * @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 */ - BreachWatchSecurityData.decode = function decode(reader, length) { + ServiceLogAddRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.BreachWatchSecurityData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); - break; - } - case 2: { - message.revision = reader.int64(); - break; - } - case 3: { - message.removed = reader.bool(); + if (!(message.entry && message.entry.length)) + message.entry = []; + message.entry.push($root.ServiceLogger.ServiceLogRecord.decode(reader, reader.uint32())); break; } default: @@ -210608,163 +210380,140 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a BreachWatchSecurityData message from the specified reader or buffer, length delimited. + * Decodes a ServiceLogAddRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.BreachWatchSecurityData + * @memberof ServiceLogger.ServiceLogAddRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.BreachWatchSecurityData} BreachWatchSecurityData + * @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 */ - BreachWatchSecurityData.decodeDelimited = function decodeDelimited(reader) { + ServiceLogAddRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BreachWatchSecurityData message. + * Verifies a ServiceLogAddRequest message. * @function verify - * @memberof Vault.BreachWatchSecurityData + * @memberof ServiceLogger.ServiceLogAddRequest * @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) { + ServiceLogAddRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.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"; + 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]); + if (error) + return "entry." + error; + } + } return null; }; /** - * Creates a BreachWatchSecurityData message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceLogAddRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.BreachWatchSecurityData + * @memberof ServiceLogger.ServiceLogAddRequest * @static * @param {Object.} object Plain object - * @returns {Vault.BreachWatchSecurityData} BreachWatchSecurityData + * @returns {ServiceLogger.ServiceLogAddRequest} ServiceLogAddRequest */ - BreachWatchSecurityData.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.BreachWatchSecurityData) + ServiceLogAddRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ServiceLogger.ServiceLogAddRequest) return object; - let message = new $root.Vault.BreachWatchSecurityData(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.removed != null) - message.removed = Boolean(object.removed); + let message = new $root.ServiceLogger.ServiceLogAddRequest(); + if (object.entry) { + if (!Array.isArray(object.entry)) + throw TypeError(".ServiceLogger.ServiceLogAddRequest.entry: array expected"); + message.entry = []; + for (let i = 0; i < object.entry.length; ++i) { + if (typeof object.entry[i] !== "object") + throw TypeError(".ServiceLogger.ServiceLogAddRequest.entry: object expected"); + message.entry[i] = $root.ServiceLogger.ServiceLogRecord.fromObject(object.entry[i]); + } + } return message; }; /** - * Creates a plain object from a BreachWatchSecurityData message. Also converts values to other types if specified. + * Creates a plain object from a ServiceLogAddRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.BreachWatchSecurityData + * @memberof ServiceLogger.ServiceLogAddRequest * @static - * @param {Vault.BreachWatchSecurityData} message BreachWatchSecurityData + * @param {ServiceLogger.ServiceLogAddRequest} message ServiceLogAddRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachWatchSecurityData.toObject = function toObject(message, options) { + ServiceLogAddRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - object.removed = false; + if (options.arrays || options.defaults) + object.entry = []; + if (message.entry && message.entry.length) { + object.entry = []; + for (let j = 0; j < message.entry.length; ++j) + object.entry[j] = $root.ServiceLogger.ServiceLogRecord.toObject(message.entry[j], options); } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof 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")) - object.removed = message.removed; return object; }; /** - * Converts this BreachWatchSecurityData to JSON. + * Converts this ServiceLogAddRequest to JSON. * @function toJSON - * @memberof Vault.BreachWatchSecurityData + * @memberof ServiceLogger.ServiceLogAddRequest * @instance * @returns {Object.} JSON object */ - BreachWatchSecurityData.prototype.toJSON = function toJSON() { + ServiceLogAddRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BreachWatchSecurityData + * Gets the default type url for ServiceLogAddRequest * @function getTypeUrl - * @memberof Vault.BreachWatchSecurityData + * @memberof ServiceLogger.ServiceLogAddRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BreachWatchSecurityData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceLogAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.BreachWatchSecurityData"; + return typeUrlPrefix + "/ServiceLogger.ServiceLogAddRequest"; }; - return BreachWatchSecurityData; + return ServiceLogAddRequest; })(); - Vault.ReusedPasswords = (function() { + ServiceLogger.ServiceLogResponse = (function() { /** - * Properties of a ReusedPasswords. - * @memberof Vault - * @interface IReusedPasswords - * @property {number|null} [count] ReusedPasswords count - * @property {number|Long|null} [revision] ReusedPasswords revision + * Properties of a ServiceLogResponse. + * @memberof ServiceLogger + * @interface IServiceLogResponse + * @property {Array.|null} [entry] ServiceLogResponse entry */ /** - * Constructs a new ReusedPasswords. - * @memberof Vault - * @classdesc Represents a ReusedPasswords. - * @implements IReusedPasswords + * Constructs a new ServiceLogResponse. + * @memberof ServiceLogger + * @classdesc Represents a ServiceLogResponse. + * @implements IServiceLogResponse * @constructor - * @param {Vault.IReusedPasswords=} [properties] Properties to set + * @param {ServiceLogger.IServiceLogResponse=} [properties] Properties to set */ - function ReusedPasswords(properties) { + function ServiceLogResponse(properties) { + this.entry = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -210772,89 +210521,78 @@ export const Vault = $root.Vault = (() => { } /** - * ReusedPasswords count. - * @member {number} count - * @memberof Vault.ReusedPasswords - * @instance - */ - ReusedPasswords.prototype.count = 0; - - /** - * ReusedPasswords revision. - * @member {number|Long} revision - * @memberof Vault.ReusedPasswords + * ServiceLogResponse entry. + * @member {Array.} entry + * @memberof ServiceLogger.ServiceLogResponse * @instance */ - ReusedPasswords.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ServiceLogResponse.prototype.entry = $util.emptyArray; /** - * Creates a new ReusedPasswords instance using the specified properties. + * Creates a new ServiceLogResponse instance using the specified properties. * @function create - * @memberof Vault.ReusedPasswords + * @memberof ServiceLogger.ServiceLogResponse * @static - * @param {Vault.IReusedPasswords=} [properties] Properties to set - * @returns {Vault.ReusedPasswords} ReusedPasswords instance + * @param {ServiceLogger.IServiceLogResponse=} [properties] Properties to set + * @returns {ServiceLogger.ServiceLogResponse} ServiceLogResponse instance */ - ReusedPasswords.create = function create(properties) { - return new ReusedPasswords(properties); + ServiceLogResponse.create = function create(properties) { + return new ServiceLogResponse(properties); }; /** - * Encodes the specified ReusedPasswords message. Does not implicitly {@link Vault.ReusedPasswords.verify|verify} messages. + * Encodes the specified ServiceLogResponse message. Does not implicitly {@link ServiceLogger.ServiceLogResponse.verify|verify} messages. * @function encode - * @memberof Vault.ReusedPasswords + * @memberof ServiceLogger.ServiceLogResponse * @static - * @param {Vault.IReusedPasswords} message ReusedPasswords message or plain object to encode + * @param {ServiceLogger.IServiceLogResponse} message ServiceLogResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReusedPasswords.encode = function encode(message, writer) { + ServiceLogResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.count); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); + if (message.entry != null && message.entry.length) + for (let i = 0; i < message.entry.length; ++i) + $root.ServiceLogger.ServiceLogRecord.encode(message.entry[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReusedPasswords message, length delimited. Does not implicitly {@link Vault.ReusedPasswords.verify|verify} messages. + * Encodes the specified ServiceLogResponse message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.ReusedPasswords + * @memberof ServiceLogger.ServiceLogResponse * @static - * @param {Vault.IReusedPasswords} message ReusedPasswords message or plain object to encode + * @param {ServiceLogger.IServiceLogResponse} message ServiceLogResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReusedPasswords.encodeDelimited = function encodeDelimited(message, writer) { + ServiceLogResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReusedPasswords message from the specified reader or buffer. + * Decodes a ServiceLogResponse message from the specified reader or buffer. * @function decode - * @memberof Vault.ReusedPasswords + * @memberof ServiceLogger.ServiceLogResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.ReusedPasswords} ReusedPasswords + * @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 */ - ReusedPasswords.decode = function decode(reader, length) { + ServiceLogResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.ReusedPasswords(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.count = reader.int32(); - break; - } - case 2: { - message.revision = reader.int64(); + if (!(message.entry && message.entry.length)) + message.entry = []; + message.entry.push($root.ServiceLogger.ServiceLogRecord.decode(reader, reader.uint32())); break; } default: @@ -210866,155 +210604,144 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a ReusedPasswords message from the specified reader or buffer, length delimited. + * Decodes a ServiceLogResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.ReusedPasswords + * @memberof ServiceLogger.ServiceLogResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.ReusedPasswords} ReusedPasswords + * @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 */ - ReusedPasswords.decodeDelimited = function decodeDelimited(reader) { + ServiceLogResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReusedPasswords message. + * Verifies a ServiceLogResponse message. * @function verify - * @memberof Vault.ReusedPasswords + * @memberof ServiceLogger.ServiceLogResponse * @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) { + ServiceLogResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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]); + if (error) + return "entry." + error; + } + } return null; }; /** - * Creates a ReusedPasswords message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceLogResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.ReusedPasswords + * @memberof ServiceLogger.ServiceLogResponse * @static * @param {Object.} object Plain object - * @returns {Vault.ReusedPasswords} ReusedPasswords + * @returns {ServiceLogger.ServiceLogResponse} ServiceLogResponse */ - ReusedPasswords.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.ReusedPasswords) + ServiceLogResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ServiceLogger.ServiceLogResponse) return object; - let message = new $root.Vault.ReusedPasswords(); - if (object.count != null) - message.count = object.count | 0; - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + let message = new $root.ServiceLogger.ServiceLogResponse(); + if (object.entry) { + if (!Array.isArray(object.entry)) + throw TypeError(".ServiceLogger.ServiceLogResponse.entry: array expected"); + message.entry = []; + for (let i = 0; i < object.entry.length; ++i) { + if (typeof object.entry[i] !== "object") + throw TypeError(".ServiceLogger.ServiceLogResponse.entry: object expected"); + message.entry[i] = $root.ServiceLogger.ServiceLogRecord.fromObject(object.entry[i]); + } + } return message; }; /** - * Creates a plain object from a ReusedPasswords message. Also converts values to other types if specified. + * Creates a plain object from a ServiceLogResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.ReusedPasswords + * @memberof ServiceLogger.ServiceLogResponse * @static - * @param {Vault.ReusedPasswords} message ReusedPasswords + * @param {ServiceLogger.ServiceLogResponse} message ServiceLogResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReusedPasswords.toObject = function toObject(message, options) { + ServiceLogResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.count = 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; + if (options.arrays || options.defaults) + object.entry = []; + if (message.entry && message.entry.length) { + object.entry = []; + for (let j = 0; j < message.entry.length; ++j) + object.entry[j] = $root.ServiceLogger.ServiceLogRecord.toObject(message.entry[j], options); } - if (message.count != null && message.hasOwnProperty("count")) - object.count = message.count; - if (message.revision != null && message.hasOwnProperty("revision")) - 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; return object; }; /** - * Converts this ReusedPasswords to JSON. + * Converts this ServiceLogResponse to JSON. * @function toJSON - * @memberof Vault.ReusedPasswords + * @memberof ServiceLogger.ServiceLogResponse * @instance * @returns {Object.} JSON object */ - ReusedPasswords.prototype.toJSON = function toJSON() { + ServiceLogResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReusedPasswords + * Gets the default type url for ServiceLogResponse * @function getTypeUrl - * @memberof Vault.ReusedPasswords + * @memberof ServiceLogger.ServiceLogResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReusedPasswords.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceLogResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.ReusedPasswords"; + return typeUrlPrefix + "/ServiceLogger.ServiceLogResponse"; }; - return ReusedPasswords; + return ServiceLogResponse; })(); - Vault.SharedFolderRecord = (function() { + ServiceLogger.ServiceLogClearRequest = (function() { /** - * Properties of a SharedFolderRecord. - * @memberof Vault - * @interface ISharedFolderRecord - * @property {Uint8Array|null} [sharedFolderUid] SharedFolderRecord sharedFolderUid - * @property {Uint8Array|null} [recordUid] SharedFolderRecord recordUid - * @property {Uint8Array|null} [recordKey] SharedFolderRecord recordKey - * @property {boolean|null} [canShare] SharedFolderRecord canShare - * @property {boolean|null} [canEdit] SharedFolderRecord canEdit - * @property {Uint8Array|null} [ownerAccountUid] SharedFolderRecord ownerAccountUid - * @property {number|Long|null} [expiration] SharedFolderRecord expiration - * @property {boolean|null} [owner] SharedFolderRecord owner - * @property {Records.TimerNotificationType|null} [expirationNotificationType] SharedFolderRecord expirationNotificationType - * @property {string|null} [ownerUsername] SharedFolderRecord ownerUsername - * @property {boolean|null} [rotateOnExpiration] SharedFolderRecord rotateOnExpiration + * Properties of a ServiceLogClearRequest. + * @memberof ServiceLogger + * @interface IServiceLogClearRequest + * @property {boolean|null} [useDefaults] ServiceLogClearRequest useDefaults + * @property {number|Long|null} [serviceTypeId] ServiceLogClearRequest serviceTypeId + * @property {number|null} [daysOld] ServiceLogClearRequest daysOld + * @property {number|null} [hoursOld] ServiceLogClearRequest hoursOld + * @property {Array.|null} [resourceIdRange] ServiceLogClearRequest resourceIdRange */ /** - * Constructs a new SharedFolderRecord. - * @memberof Vault - * @classdesc Represents a SharedFolderRecord. - * @implements ISharedFolderRecord + * Constructs a new ServiceLogClearRequest. + * @memberof ServiceLogger + * @classdesc This is a request to clear the SSO Service Provider log + * @implements IServiceLogClearRequest * @constructor - * @param {Vault.ISharedFolderRecord=} [properties] Properties to set + * @param {ServiceLogger.IServiceLogClearRequest=} [properties] Properties to set */ - function SharedFolderRecord(properties) { + function ServiceLogClearRequest(properties) { + this.resourceIdRange = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -211022,215 +210749,134 @@ export const Vault = $root.Vault = (() => { } /** - * SharedFolderRecord sharedFolderUid. - * @member {Uint8Array} sharedFolderUid - * @memberof Vault.SharedFolderRecord + * ServiceLogClearRequest useDefaults. + * @member {boolean} useDefaults + * @memberof ServiceLogger.ServiceLogClearRequest * @instance */ - SharedFolderRecord.prototype.sharedFolderUid = $util.newBuffer([]); + ServiceLogClearRequest.prototype.useDefaults = false; /** - * SharedFolderRecord recordUid. - * @member {Uint8Array} recordUid - * @memberof Vault.SharedFolderRecord + * ServiceLogClearRequest serviceTypeId. + * @member {number|Long} serviceTypeId + * @memberof ServiceLogger.ServiceLogClearRequest * @instance */ - SharedFolderRecord.prototype.recordUid = $util.newBuffer([]); + ServiceLogClearRequest.prototype.serviceTypeId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * SharedFolderRecord recordKey. - * @member {Uint8Array} recordKey - * @memberof Vault.SharedFolderRecord + * ServiceLogClearRequest daysOld. + * @member {number} daysOld + * @memberof ServiceLogger.ServiceLogClearRequest * @instance */ - SharedFolderRecord.prototype.recordKey = $util.newBuffer([]); + ServiceLogClearRequest.prototype.daysOld = 0; /** - * SharedFolderRecord canShare. - * @member {boolean} canShare - * @memberof Vault.SharedFolderRecord + * ServiceLogClearRequest hoursOld. + * @member {number} hoursOld + * @memberof ServiceLogger.ServiceLogClearRequest * @instance */ - SharedFolderRecord.prototype.canShare = false; + ServiceLogClearRequest.prototype.hoursOld = 0; /** - * SharedFolderRecord canEdit. - * @member {boolean} canEdit - * @memberof Vault.SharedFolderRecord + * ServiceLogClearRequest resourceIdRange. + * @member {Array.} resourceIdRange + * @memberof ServiceLogger.ServiceLogClearRequest * @instance */ - SharedFolderRecord.prototype.canEdit = false; + ServiceLogClearRequest.prototype.resourceIdRange = $util.emptyArray; /** - * SharedFolderRecord ownerAccountUid. - * @member {Uint8Array} ownerAccountUid - * @memberof Vault.SharedFolderRecord - * @instance + * Creates a new ServiceLogClearRequest instance using the specified properties. + * @function create + * @memberof ServiceLogger.ServiceLogClearRequest + * @static + * @param {ServiceLogger.IServiceLogClearRequest=} [properties] Properties to set + * @returns {ServiceLogger.ServiceLogClearRequest} ServiceLogClearRequest instance */ - SharedFolderRecord.prototype.ownerAccountUid = $util.newBuffer([]); - - /** - * SharedFolderRecord expiration. - * @member {number|Long} expiration - * @memberof Vault.SharedFolderRecord - * @instance - */ - SharedFolderRecord.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * SharedFolderRecord owner. - * @member {boolean} owner - * @memberof Vault.SharedFolderRecord - * @instance - */ - SharedFolderRecord.prototype.owner = false; - - /** - * SharedFolderRecord expirationNotificationType. - * @member {Records.TimerNotificationType} expirationNotificationType - * @memberof Vault.SharedFolderRecord - * @instance - */ - SharedFolderRecord.prototype.expirationNotificationType = 0; - - /** - * SharedFolderRecord ownerUsername. - * @member {string} ownerUsername - * @memberof Vault.SharedFolderRecord - * @instance - */ - SharedFolderRecord.prototype.ownerUsername = ""; - - /** - * SharedFolderRecord rotateOnExpiration. - * @member {boolean} rotateOnExpiration - * @memberof Vault.SharedFolderRecord - * @instance - */ - SharedFolderRecord.prototype.rotateOnExpiration = false; - - /** - * Creates a new SharedFolderRecord instance using the specified properties. - * @function create - * @memberof Vault.SharedFolderRecord - * @static - * @param {Vault.ISharedFolderRecord=} [properties] Properties to set - * @returns {Vault.SharedFolderRecord} SharedFolderRecord instance - */ - SharedFolderRecord.create = function create(properties) { - return new SharedFolderRecord(properties); + ServiceLogClearRequest.create = function create(properties) { + return new ServiceLogClearRequest(properties); }; /** - * Encodes the specified SharedFolderRecord message. Does not implicitly {@link Vault.SharedFolderRecord.verify|verify} messages. + * Encodes the specified ServiceLogClearRequest message. Does not implicitly {@link ServiceLogger.ServiceLogClearRequest.verify|verify} messages. * @function encode - * @memberof Vault.SharedFolderRecord + * @memberof ServiceLogger.ServiceLogClearRequest * @static - * @param {Vault.ISharedFolderRecord} message SharedFolderRecord message or plain object to encode + * @param {ServiceLogger.IServiceLogClearRequest} message ServiceLogClearRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderRecord.encode = function encode(message, writer) { + ServiceLogClearRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordKey); - if (message.canShare != null && Object.hasOwnProperty.call(message, "canShare")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canShare); - if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.canEdit); - if (message.ownerAccountUid != null && Object.hasOwnProperty.call(message, "ownerAccountUid")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.ownerAccountUid); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.expiration); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.owner); - if (message.expirationNotificationType != null && Object.hasOwnProperty.call(message, "expirationNotificationType")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.expirationNotificationType); - if (message.ownerUsername != null && Object.hasOwnProperty.call(message, "ownerUsername")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerUsername); - if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.rotateOnExpiration); + if (message.useDefaults != null && Object.hasOwnProperty.call(message, "useDefaults")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useDefaults); + if (message.serviceTypeId != null && Object.hasOwnProperty.call(message, "serviceTypeId")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.serviceTypeId); + if (message.daysOld != null && Object.hasOwnProperty.call(message, "daysOld")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.daysOld); + if (message.hoursOld != null && Object.hasOwnProperty.call(message, "hoursOld")) + writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.hoursOld); + if (message.resourceIdRange != null && message.resourceIdRange.length) + for (let i = 0; i < message.resourceIdRange.length; ++i) + $root.ServiceLogger.IdRange.encode(message.resourceIdRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified SharedFolderRecord message, length delimited. Does not implicitly {@link Vault.SharedFolderRecord.verify|verify} messages. + * Encodes the specified ServiceLogClearRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogClearRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.SharedFolderRecord + * @memberof ServiceLogger.ServiceLogClearRequest * @static - * @param {Vault.ISharedFolderRecord} message SharedFolderRecord message or plain object to encode + * @param {ServiceLogger.IServiceLogClearRequest} message ServiceLogClearRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderRecord.encodeDelimited = function encodeDelimited(message, writer) { + ServiceLogClearRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SharedFolderRecord message from the specified reader or buffer. + * Decodes a ServiceLogClearRequest message from the specified reader or buffer. * @function decode - * @memberof Vault.SharedFolderRecord + * @memberof ServiceLogger.ServiceLogClearRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.SharedFolderRecord} SharedFolderRecord + * @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 */ - SharedFolderRecord.decode = function decode(reader, length) { + ServiceLogClearRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderRecord(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogClearRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.sharedFolderUid = reader.bytes(); + message.useDefaults = reader.bool(); break; } case 2: { - message.recordUid = reader.bytes(); + message.serviceTypeId = reader.uint64(); break; } case 3: { - message.recordKey = reader.bytes(); + message.daysOld = reader.uint32(); break; } case 4: { - message.canShare = reader.bool(); + message.hoursOld = reader.uint32(); break; } case 5: { - message.canEdit = reader.bool(); - break; - } - case 6: { - message.ownerAccountUid = reader.bytes(); - break; - } - case 7: { - message.expiration = reader.int64(); - break; - } - case 8: { - message.owner = reader.bool(); - break; - } - case 9: { - message.expirationNotificationType = reader.int32(); - break; - } - case 10: { - message.ownerUsername = reader.string(); - break; - } - case 11: { - message.rotateOnExpiration = reader.bool(); + if (!(message.resourceIdRange && message.resourceIdRange.length)) + message.resourceIdRange = []; + message.resourceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32())); break; } default: @@ -211242,284 +210888,192 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a SharedFolderRecord message from the specified reader or buffer, length delimited. + * Decodes a ServiceLogClearRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.SharedFolderRecord + * @memberof ServiceLogger.ServiceLogClearRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SharedFolderRecord} SharedFolderRecord + * @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 */ - SharedFolderRecord.decodeDelimited = function decodeDelimited(reader) { + ServiceLogClearRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SharedFolderRecord message. + * Verifies a ServiceLogClearRequest message. * @function verify - * @memberof Vault.SharedFolderRecord + * @memberof ServiceLogger.ServiceLogClearRequest * @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) { + ServiceLogClearRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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.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]); + if (error) + return "resourceIdRange." + error; } - 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. + * Creates a ServiceLogClearRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.SharedFolderRecord + * @memberof ServiceLogger.ServiceLogClearRequest * @static * @param {Object.} object Plain object - * @returns {Vault.SharedFolderRecord} SharedFolderRecord + * @returns {ServiceLogger.ServiceLogClearRequest} ServiceLogClearRequest */ - SharedFolderRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SharedFolderRecord) + ServiceLogClearRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ServiceLogger.ServiceLogClearRequest) return object; - let message = new $root.Vault.SharedFolderRecord(); - if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; - if (object.canShare != null) - message.canShare = Boolean(object.canShare); - if (object.canEdit != null) - message.canEdit = Boolean(object.canEdit); - if (object.ownerAccountUid != null) - if (typeof object.ownerAccountUid === "string") - $util.base64.decode(object.ownerAccountUid, message.ownerAccountUid = $util.newBuffer($util.base64.length(object.ownerAccountUid)), 0); - else if (object.ownerAccountUid.length >= 0) - message.ownerAccountUid = object.ownerAccountUid; - if (object.expiration != null) + let message = new $root.ServiceLogger.ServiceLogClearRequest(); + if (object.useDefaults != null) + message.useDefaults = Boolean(object.useDefaults); + if (object.serviceTypeId != null) if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); - if (object.owner != null) - message.owner = Boolean(object.owner); - switch (object.expirationNotificationType) { - default: - if (typeof object.expirationNotificationType === "number") { - message.expirationNotificationType = object.expirationNotificationType; - break; + (message.serviceTypeId = $util.Long.fromValue(object.serviceTypeId)).unsigned = true; + else if (typeof object.serviceTypeId === "string") + message.serviceTypeId = parseInt(object.serviceTypeId, 10); + else if (typeof object.serviceTypeId === "number") + message.serviceTypeId = object.serviceTypeId; + else if (typeof object.serviceTypeId === "object") + message.serviceTypeId = new $util.LongBits(object.serviceTypeId.low >>> 0, object.serviceTypeId.high >>> 0).toNumber(true); + if (object.daysOld != null) + message.daysOld = object.daysOld >>> 0; + if (object.hoursOld != null) + message.hoursOld = object.hoursOld >>> 0; + if (object.resourceIdRange) { + if (!Array.isArray(object.resourceIdRange)) + throw TypeError(".ServiceLogger.ServiceLogClearRequest.resourceIdRange: array expected"); + message.resourceIdRange = []; + for (let i = 0; i < object.resourceIdRange.length; ++i) { + if (typeof object.resourceIdRange[i] !== "object") + throw TypeError(".ServiceLogger.ServiceLogClearRequest.resourceIdRange: object expected"); + message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i]); } - break; - case "NOTIFICATION_OFF": - case 0: - message.expirationNotificationType = 0; - break; - case "NOTIFY_OWNER": - case 1: - message.expirationNotificationType = 1; - break; - case "NOTIFY_PRIVILEGED_USERS": - case 2: - message.expirationNotificationType = 2; - break; } - if (object.ownerUsername != null) - message.ownerUsername = String(object.ownerUsername); - if (object.rotateOnExpiration != null) - message.rotateOnExpiration = Boolean(object.rotateOnExpiration); return message; }; /** - * Creates a plain object from a SharedFolderRecord message. Also converts values to other types if specified. + * Creates a plain object from a ServiceLogClearRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.SharedFolderRecord + * @memberof ServiceLogger.ServiceLogClearRequest * @static - * @param {Vault.SharedFolderRecord} message SharedFolderRecord + * @param {ServiceLogger.ServiceLogClearRequest} message ServiceLogClearRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderRecord.toObject = function toObject(message, options) { + ServiceLogClearRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.resourceIdRange = []; if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; - else { - object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); - } - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if (options.bytes === String) - object.recordKey = ""; - else { - object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); - } - object.canShare = false; - object.canEdit = false; - if (options.bytes === String) - object.ownerAccountUid = ""; - else { - object.ownerAccountUid = []; - if (options.bytes !== Array) - object.ownerAccountUid = $util.newBuffer(object.ownerAccountUid); - } + object.useDefaults = false; if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + let long = new $util.Long(0, 0, true); + object.serviceTypeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : 0; - object.owner = false; - object.expirationNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; - object.ownerUsername = ""; - object.rotateOnExpiration = false; + object.serviceTypeId = options.longs === String ? "0" : 0; + object.daysOld = 0; + object.hoursOld = 0; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.canShare != null && message.hasOwnProperty("canShare")) - object.canShare = message.canShare; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - object.canEdit = message.canEdit; - if (message.ownerAccountUid != null && message.hasOwnProperty("ownerAccountUid")) - object.ownerAccountUid = options.bytes === String ? $util.base64.encode(message.ownerAccountUid, 0, message.ownerAccountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.ownerAccountUid) : message.ownerAccountUid; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") - object.expiration = options.longs === String ? String(message.expiration) : message.expiration; + if (message.useDefaults != null && message.hasOwnProperty("useDefaults")) + object.useDefaults = message.useDefaults; + if (message.serviceTypeId != null && message.hasOwnProperty("serviceTypeId")) + if (typeof message.serviceTypeId === "number") + object.serviceTypeId = options.longs === String ? String(message.serviceTypeId) : message.serviceTypeId; 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")) - object.owner = message.owner; - if (message.expirationNotificationType != null && message.hasOwnProperty("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")) - object.ownerUsername = message.ownerUsername; - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - object.rotateOnExpiration = message.rotateOnExpiration; + 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")) + object.daysOld = message.daysOld; + if (message.hoursOld != null && message.hasOwnProperty("hoursOld")) + object.hoursOld = message.hoursOld; + 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); + } return object; }; /** - * Converts this SharedFolderRecord to JSON. + * Converts this ServiceLogClearRequest to JSON. * @function toJSON - * @memberof Vault.SharedFolderRecord + * @memberof ServiceLogger.ServiceLogClearRequest * @instance * @returns {Object.} JSON object */ - SharedFolderRecord.prototype.toJSON = function toJSON() { + ServiceLogClearRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SharedFolderRecord + * Gets the default type url for ServiceLogClearRequest * @function getTypeUrl - * @memberof Vault.SharedFolderRecord + * @memberof ServiceLogger.ServiceLogClearRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SharedFolderRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceLogClearRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.SharedFolderRecord"; + return typeUrlPrefix + "/ServiceLogger.ServiceLogClearRequest"; }; - return SharedFolderRecord; + return ServiceLogClearRequest; })(); - Vault.SharedFolderUser = (function() { + ServiceLogger.ServiceLogClearResponse = (function() { /** - * Properties of a SharedFolderUser. - * @memberof Vault - * @interface ISharedFolderUser - * @property {Uint8Array|null} [sharedFolderUid] SharedFolderUser sharedFolderUid - * @property {string|null} [username] SharedFolderUser username - * @property {boolean|null} [manageRecords] SharedFolderUser manageRecords - * @property {boolean|null} [manageUsers] SharedFolderUser manageUsers - * @property {Uint8Array|null} [accountUid] SharedFolderUser accountUid - * @property {number|Long|null} [expiration] SharedFolderUser expiration - * @property {Records.TimerNotificationType|null} [expirationNotificationType] SharedFolderUser expirationNotificationType - * @property {boolean|null} [rotateOnExpiration] SharedFolderUser rotateOnExpiration + * Properties of a ServiceLogClearResponse. + * @memberof ServiceLogger + * @interface IServiceLogClearResponse + * @property {number|Long|null} [serviceTypeId] ServiceLogClearResponse serviceTypeId + * @property {string|null} [serviceName] ServiceLogClearResponse serviceName + * @property {Array.|null} [resourceIdRange] ServiceLogClearResponse resourceIdRange + * @property {number|null} [numDeleted] ServiceLogClearResponse numDeleted + * @property {number|null} [numRemaining] ServiceLogClearResponse numRemaining */ /** - * Constructs a new SharedFolderUser. - * @memberof Vault - * @classdesc Represents a SharedFolderUser. - * @implements ISharedFolderUser + * Constructs a new ServiceLogClearResponse. + * @memberof ServiceLogger + * @classdesc This is the response from the sso_log_clear command + * @implements IServiceLogClearResponse * @constructor - * @param {Vault.ISharedFolderUser=} [properties] Properties to set + * @param {ServiceLogger.IServiceLogClearResponse=} [properties] Properties to set */ - function SharedFolderUser(properties) { + function ServiceLogClearResponse(properties) { + this.resourceIdRange = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -211527,173 +211081,134 @@ export const Vault = $root.Vault = (() => { } /** - * SharedFolderUser sharedFolderUid. - * @member {Uint8Array} sharedFolderUid - * @memberof Vault.SharedFolderUser - * @instance - */ - SharedFolderUser.prototype.sharedFolderUid = $util.newBuffer([]); - - /** - * SharedFolderUser username. - * @member {string} username - * @memberof Vault.SharedFolderUser - * @instance - */ - SharedFolderUser.prototype.username = ""; - - /** - * SharedFolderUser manageRecords. - * @member {boolean} manageRecords - * @memberof Vault.SharedFolderUser - * @instance - */ - SharedFolderUser.prototype.manageRecords = false; - - /** - * SharedFolderUser manageUsers. - * @member {boolean} manageUsers - * @memberof Vault.SharedFolderUser + * ServiceLogClearResponse serviceTypeId. + * @member {number|Long} serviceTypeId + * @memberof ServiceLogger.ServiceLogClearResponse * @instance */ - SharedFolderUser.prototype.manageUsers = false; + ServiceLogClearResponse.prototype.serviceTypeId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * SharedFolderUser accountUid. - * @member {Uint8Array} accountUid - * @memberof Vault.SharedFolderUser + * ServiceLogClearResponse serviceName. + * @member {string} serviceName + * @memberof ServiceLogger.ServiceLogClearResponse * @instance */ - SharedFolderUser.prototype.accountUid = $util.newBuffer([]); + ServiceLogClearResponse.prototype.serviceName = ""; /** - * SharedFolderUser expiration. - * @member {number|Long} expiration - * @memberof Vault.SharedFolderUser + * ServiceLogClearResponse resourceIdRange. + * @member {Array.} resourceIdRange + * @memberof ServiceLogger.ServiceLogClearResponse * @instance */ - SharedFolderUser.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ServiceLogClearResponse.prototype.resourceIdRange = $util.emptyArray; /** - * SharedFolderUser expirationNotificationType. - * @member {Records.TimerNotificationType} expirationNotificationType - * @memberof Vault.SharedFolderUser + * ServiceLogClearResponse numDeleted. + * @member {number} numDeleted + * @memberof ServiceLogger.ServiceLogClearResponse * @instance */ - SharedFolderUser.prototype.expirationNotificationType = 0; + ServiceLogClearResponse.prototype.numDeleted = 0; /** - * SharedFolderUser rotateOnExpiration. - * @member {boolean} rotateOnExpiration - * @memberof Vault.SharedFolderUser + * ServiceLogClearResponse numRemaining. + * @member {number} numRemaining + * @memberof ServiceLogger.ServiceLogClearResponse * @instance */ - SharedFolderUser.prototype.rotateOnExpiration = false; + ServiceLogClearResponse.prototype.numRemaining = 0; /** - * Creates a new SharedFolderUser instance using the specified properties. + * Creates a new ServiceLogClearResponse instance using the specified properties. * @function create - * @memberof Vault.SharedFolderUser + * @memberof ServiceLogger.ServiceLogClearResponse * @static - * @param {Vault.ISharedFolderUser=} [properties] Properties to set - * @returns {Vault.SharedFolderUser} SharedFolderUser instance + * @param {ServiceLogger.IServiceLogClearResponse=} [properties] Properties to set + * @returns {ServiceLogger.ServiceLogClearResponse} ServiceLogClearResponse instance */ - SharedFolderUser.create = function create(properties) { - return new SharedFolderUser(properties); + ServiceLogClearResponse.create = function create(properties) { + return new ServiceLogClearResponse(properties); }; /** - * Encodes the specified SharedFolderUser message. Does not implicitly {@link Vault.SharedFolderUser.verify|verify} messages. + * Encodes the specified ServiceLogClearResponse message. Does not implicitly {@link ServiceLogger.ServiceLogClearResponse.verify|verify} messages. * @function encode - * @memberof Vault.SharedFolderUser + * @memberof ServiceLogger.ServiceLogClearResponse * @static - * @param {Vault.ISharedFolderUser} message SharedFolderUser message or plain object to encode + * @param {ServiceLogger.IServiceLogClearResponse} message ServiceLogClearResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderUser.encode = function encode(message, writer) { + ServiceLogClearResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.manageRecords != null && Object.hasOwnProperty.call(message, "manageRecords")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.manageRecords); - if (message.manageUsers != null && Object.hasOwnProperty.call(message, "manageUsers")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.manageUsers); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.accountUid); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.expiration); - if (message.expirationNotificationType != null && Object.hasOwnProperty.call(message, "expirationNotificationType")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.expirationNotificationType); - if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.rotateOnExpiration); + if (message.serviceTypeId != null && Object.hasOwnProperty.call(message, "serviceTypeId")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.serviceTypeId); + if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceName); + if (message.resourceIdRange != null && message.resourceIdRange.length) + for (let i = 0; i < message.resourceIdRange.length; ++i) + $root.ServiceLogger.IdRange.encode(message.resourceIdRange[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.numDeleted != null && Object.hasOwnProperty.call(message, "numDeleted")) + writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.numDeleted); + if (message.numRemaining != null && Object.hasOwnProperty.call(message, "numRemaining")) + writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.numRemaining); return writer; }; /** - * Encodes the specified SharedFolderUser message, length delimited. Does not implicitly {@link Vault.SharedFolderUser.verify|verify} messages. + * Encodes the specified ServiceLogClearResponse message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogClearResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.SharedFolderUser + * @memberof ServiceLogger.ServiceLogClearResponse * @static - * @param {Vault.ISharedFolderUser} message SharedFolderUser message or plain object to encode + * @param {ServiceLogger.IServiceLogClearResponse} message ServiceLogClearResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderUser.encodeDelimited = function encodeDelimited(message, writer) { + ServiceLogClearResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SharedFolderUser message from the specified reader or buffer. + * Decodes a ServiceLogClearResponse message from the specified reader or buffer. * @function decode - * @memberof Vault.SharedFolderUser + * @memberof ServiceLogger.ServiceLogClearResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.SharedFolderUser} SharedFolderUser + * @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 */ - SharedFolderUser.decode = function decode(reader, length) { + ServiceLogClearResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderUser(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogClearResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.sharedFolderUid = reader.bytes(); + message.serviceTypeId = reader.uint64(); break; } case 2: { - message.username = reader.string(); + message.serviceName = reader.string(); break; } case 3: { - message.manageRecords = reader.bool(); + if (!(message.resourceIdRange && message.resourceIdRange.length)) + message.resourceIdRange = []; + message.resourceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32())); break; } case 4: { - message.manageUsers = reader.bool(); + message.numDeleted = reader.uint32(); break; } case 5: { - message.accountUid = reader.bytes(); - break; - } - case 6: { - message.expiration = reader.int64(); - break; - } - case 7: { - message.expirationNotificationType = reader.int32(); - break; - } - case 8: { - message.rotateOnExpiration = reader.bool(); + message.numRemaining = reader.uint32(); break; } default: @@ -211705,242 +211220,215 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a SharedFolderUser message from the specified reader or buffer, length delimited. + * Decodes a ServiceLogClearResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.SharedFolderUser + * @memberof ServiceLogger.ServiceLogClearResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SharedFolderUser} SharedFolderUser + * @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 */ - SharedFolderUser.decodeDelimited = function decodeDelimited(reader) { + ServiceLogClearResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SharedFolderUser message. + * Verifies a ServiceLogClearResponse message. * @function verify - * @memberof Vault.SharedFolderUser + * @memberof ServiceLogger.ServiceLogClearResponse * @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) { + ServiceLogClearResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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.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]); + if (error) + return "resourceIdRange." + error; } - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - if (typeof message.rotateOnExpiration !== "boolean") - return "rotateOnExpiration: boolean expected"; + } + 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 SharedFolderUser message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceLogClearResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.SharedFolderUser + * @memberof ServiceLogger.ServiceLogClearResponse * @static * @param {Object.} object Plain object - * @returns {Vault.SharedFolderUser} SharedFolderUser + * @returns {ServiceLogger.ServiceLogClearResponse} ServiceLogClearResponse */ - SharedFolderUser.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SharedFolderUser) + ServiceLogClearResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ServiceLogger.ServiceLogClearResponse) return object; - let message = new $root.Vault.SharedFolderUser(); - if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; - if (object.username != null) - message.username = String(object.username); - if (object.manageRecords != null) - message.manageRecords = Boolean(object.manageRecords); - if (object.manageUsers != null) - message.manageUsers = Boolean(object.manageUsers); - if (object.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; - if (object.expiration != null) + let message = new $root.ServiceLogger.ServiceLogClearResponse(); + if (object.serviceTypeId != null) if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); - switch (object.expirationNotificationType) { - default: - if (typeof object.expirationNotificationType === "number") { - message.expirationNotificationType = object.expirationNotificationType; - break; + (message.serviceTypeId = $util.Long.fromValue(object.serviceTypeId)).unsigned = true; + else if (typeof object.serviceTypeId === "string") + message.serviceTypeId = parseInt(object.serviceTypeId, 10); + else if (typeof object.serviceTypeId === "number") + message.serviceTypeId = object.serviceTypeId; + else if (typeof object.serviceTypeId === "object") + message.serviceTypeId = new $util.LongBits(object.serviceTypeId.low >>> 0, object.serviceTypeId.high >>> 0).toNumber(true); + if (object.serviceName != null) + message.serviceName = String(object.serviceName); + if (object.resourceIdRange) { + if (!Array.isArray(object.resourceIdRange)) + throw TypeError(".ServiceLogger.ServiceLogClearResponse.resourceIdRange: array expected"); + message.resourceIdRange = []; + for (let i = 0; i < object.resourceIdRange.length; ++i) { + if (typeof object.resourceIdRange[i] !== "object") + throw TypeError(".ServiceLogger.ServiceLogClearResponse.resourceIdRange: object expected"); + message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i]); } - break; - case "NOTIFICATION_OFF": - case 0: - message.expirationNotificationType = 0; - break; - case "NOTIFY_OWNER": - case 1: - message.expirationNotificationType = 1; - break; - case "NOTIFY_PRIVILEGED_USERS": - case 2: - message.expirationNotificationType = 2; - break; } - if (object.rotateOnExpiration != null) - message.rotateOnExpiration = Boolean(object.rotateOnExpiration); + if (object.numDeleted != null) + message.numDeleted = object.numDeleted >>> 0; + if (object.numRemaining != null) + message.numRemaining = object.numRemaining >>> 0; return message; }; /** - * Creates a plain object from a SharedFolderUser message. Also converts values to other types if specified. + * Creates a plain object from a ServiceLogClearResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.SharedFolderUser + * @memberof ServiceLogger.ServiceLogClearResponse * @static - * @param {Vault.SharedFolderUser} message SharedFolderUser + * @param {ServiceLogger.ServiceLogClearResponse} message ServiceLogClearResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderUser.toObject = function toObject(message, options) { + ServiceLogClearResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.resourceIdRange = []; if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; - else { - object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); - } - object.username = ""; - object.manageRecords = false; - object.manageUsers = false; - if (options.bytes === String) - object.accountUid = ""; - else { - object.accountUid = []; - if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); - } if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + let long = new $util.Long(0, 0, true); + object.serviceTypeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : 0; - object.expirationNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; - object.rotateOnExpiration = false; + object.serviceTypeId = options.longs === String ? "0" : 0; + object.serviceName = ""; + object.numDeleted = 0; + object.numRemaining = 0; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) - object.manageRecords = message.manageRecords; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) - object.manageUsers = message.manageUsers; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") - object.expiration = options.longs === String ? String(message.expiration) : message.expiration; + if (message.serviceTypeId != null && message.hasOwnProperty("serviceTypeId")) + if (typeof message.serviceTypeId === "number") + object.serviceTypeId = options.longs === String ? String(message.serviceTypeId) : message.serviceTypeId; 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")) - 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")) - object.rotateOnExpiration = message.rotateOnExpiration; + 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")) + 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); + } + if (message.numDeleted != null && message.hasOwnProperty("numDeleted")) + object.numDeleted = message.numDeleted; + if (message.numRemaining != null && message.hasOwnProperty("numRemaining")) + object.numRemaining = message.numRemaining; return object; }; /** - * Converts this SharedFolderUser to JSON. + * Converts this ServiceLogClearResponse to JSON. * @function toJSON - * @memberof Vault.SharedFolderUser + * @memberof ServiceLogger.ServiceLogClearResponse * @instance * @returns {Object.} JSON object */ - SharedFolderUser.prototype.toJSON = function toJSON() { + ServiceLogClearResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SharedFolderUser + * Gets the default type url for ServiceLogClearResponse * @function getTypeUrl - * @memberof Vault.SharedFolderUser + * @memberof ServiceLogger.ServiceLogClearResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SharedFolderUser.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceLogClearResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.SharedFolderUser"; + return typeUrlPrefix + "/ServiceLogger.ServiceLogClearResponse"; }; - return SharedFolderUser; + return ServiceLogClearResponse; })(); - Vault.SharedFolderTeam = (function() { + return ServiceLogger; +})(); + +export const Vault = $root.Vault = (() => { + + /** + * Namespace Vault. + * @exports Vault + * @namespace + */ + const Vault = {}; + + /** + * CacheStatus enum. + * @name Vault.CacheStatus + * @enum {number} + * @property {number} KEEP=0 KEEP value + * @property {number} CLEAR=1 CLEAR value + */ + Vault.CacheStatus = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "KEEP"] = 0; + values[valuesById[1] = "CLEAR"] = 1; + return values; + })(); + + Vault.SyncDownRequest = (function() { /** - * Properties of a SharedFolderTeam. + * Properties of a SyncDownRequest. * @memberof Vault - * @interface ISharedFolderTeam - * @property {Uint8Array|null} [sharedFolderUid] SharedFolderTeam sharedFolderUid - * @property {Uint8Array|null} [teamUid] SharedFolderTeam teamUid - * @property {string|null} [name] SharedFolderTeam name - * @property {boolean|null} [manageRecords] SharedFolderTeam manageRecords - * @property {boolean|null} [manageUsers] SharedFolderTeam manageUsers - * @property {number|Long|null} [expiration] SharedFolderTeam expiration - * @property {Records.TimerNotificationType|null} [expirationNotificationType] SharedFolderTeam expirationNotificationType - * @property {boolean|null} [rotateOnExpiration] SharedFolderTeam rotateOnExpiration + * @interface ISyncDownRequest + * @property {Uint8Array|null} [continuationToken] SyncDownRequest continuationToken + * @property {number|null} [dataVersion] SyncDownRequest dataVersion + * @property {boolean|null} [debug] SyncDownRequest debug */ /** - * Constructs a new SharedFolderTeam. + * Constructs a new SyncDownRequest. * @memberof Vault - * @classdesc Represents a SharedFolderTeam. - * @implements ISharedFolderTeam + * @classdesc Represents a SyncDownRequest. + * @implements ISyncDownRequest * @constructor - * @param {Vault.ISharedFolderTeam=} [properties] Properties to set + * @param {Vault.ISyncDownRequest=} [properties] Properties to set */ - function SharedFolderTeam(properties) { + function SyncDownRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -211948,173 +211436,103 @@ export const Vault = $root.Vault = (() => { } /** - * SharedFolderTeam sharedFolderUid. - * @member {Uint8Array} sharedFolderUid - * @memberof Vault.SharedFolderTeam - * @instance - */ - SharedFolderTeam.prototype.sharedFolderUid = $util.newBuffer([]); - - /** - * SharedFolderTeam teamUid. - * @member {Uint8Array} teamUid - * @memberof Vault.SharedFolderTeam - * @instance - */ - SharedFolderTeam.prototype.teamUid = $util.newBuffer([]); - - /** - * SharedFolderTeam name. - * @member {string} name - * @memberof Vault.SharedFolderTeam - * @instance - */ - SharedFolderTeam.prototype.name = ""; - - /** - * SharedFolderTeam manageRecords. - * @member {boolean} manageRecords - * @memberof Vault.SharedFolderTeam - * @instance - */ - SharedFolderTeam.prototype.manageRecords = false; - - /** - * SharedFolderTeam manageUsers. - * @member {boolean} manageUsers - * @memberof Vault.SharedFolderTeam - * @instance - */ - SharedFolderTeam.prototype.manageUsers = false; - - /** - * SharedFolderTeam expiration. - * @member {number|Long} expiration - * @memberof Vault.SharedFolderTeam + * SyncDownRequest continuationToken. + * @member {Uint8Array} continuationToken + * @memberof Vault.SyncDownRequest * @instance */ - SharedFolderTeam.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SyncDownRequest.prototype.continuationToken = $util.newBuffer([]); /** - * SharedFolderTeam expirationNotificationType. - * @member {Records.TimerNotificationType} expirationNotificationType - * @memberof Vault.SharedFolderTeam + * SyncDownRequest dataVersion. + * @member {number} dataVersion + * @memberof Vault.SyncDownRequest * @instance */ - SharedFolderTeam.prototype.expirationNotificationType = 0; + SyncDownRequest.prototype.dataVersion = 0; /** - * SharedFolderTeam rotateOnExpiration. - * @member {boolean} rotateOnExpiration - * @memberof Vault.SharedFolderTeam + * SyncDownRequest debug. + * @member {boolean} debug + * @memberof Vault.SyncDownRequest * @instance */ - SharedFolderTeam.prototype.rotateOnExpiration = false; + SyncDownRequest.prototype.debug = false; /** - * Creates a new SharedFolderTeam instance using the specified properties. + * Creates a new SyncDownRequest instance using the specified properties. * @function create - * @memberof Vault.SharedFolderTeam + * @memberof Vault.SyncDownRequest * @static - * @param {Vault.ISharedFolderTeam=} [properties] Properties to set - * @returns {Vault.SharedFolderTeam} SharedFolderTeam instance + * @param {Vault.ISyncDownRequest=} [properties] Properties to set + * @returns {Vault.SyncDownRequest} SyncDownRequest instance */ - SharedFolderTeam.create = function create(properties) { - return new SharedFolderTeam(properties); + SyncDownRequest.create = function create(properties) { + return new SyncDownRequest(properties); }; /** - * Encodes the specified SharedFolderTeam message. Does not implicitly {@link Vault.SharedFolderTeam.verify|verify} messages. + * Encodes the specified SyncDownRequest message. Does not implicitly {@link Vault.SyncDownRequest.verify|verify} messages. * @function encode - * @memberof Vault.SharedFolderTeam + * @memberof Vault.SyncDownRequest * @static - * @param {Vault.ISharedFolderTeam} message SharedFolderTeam message or plain object to encode + * @param {Vault.ISyncDownRequest} message SyncDownRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderTeam.encode = function encode(message, writer) { + SyncDownRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.teamUid); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); - if (message.manageRecords != null && Object.hasOwnProperty.call(message, "manageRecords")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.manageRecords); - if (message.manageUsers != null && Object.hasOwnProperty.call(message, "manageUsers")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.manageUsers); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.expiration); - if (message.expirationNotificationType != null && Object.hasOwnProperty.call(message, "expirationNotificationType")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.expirationNotificationType); - if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.rotateOnExpiration); + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.continuationToken); + if (message.dataVersion != null && Object.hasOwnProperty.call(message, "dataVersion")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.dataVersion); + if (message.debug != null && Object.hasOwnProperty.call(message, "debug")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debug); return writer; }; /** - * Encodes the specified SharedFolderTeam message, length delimited. Does not implicitly {@link Vault.SharedFolderTeam.verify|verify} messages. + * Encodes the specified SyncDownRequest message, length delimited. Does not implicitly {@link Vault.SyncDownRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.SharedFolderTeam + * @memberof Vault.SyncDownRequest * @static - * @param {Vault.ISharedFolderTeam} message SharedFolderTeam message or plain object to encode + * @param {Vault.ISyncDownRequest} message SyncDownRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderTeam.encodeDelimited = function encodeDelimited(message, writer) { + SyncDownRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SharedFolderTeam message from the specified reader or buffer. + * Decodes a SyncDownRequest message from the specified reader or buffer. * @function decode - * @memberof Vault.SharedFolderTeam + * @memberof Vault.SyncDownRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.SharedFolderTeam} SharedFolderTeam + * @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 */ - SharedFolderTeam.decode = function decode(reader, length) { + SyncDownRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderTeam(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SyncDownRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.sharedFolderUid = reader.bytes(); + message.continuationToken = reader.bytes(); break; } case 2: { - message.teamUid = reader.bytes(); + message.dataVersion = reader.int32(); break; } case 3: { - message.name = reader.string(); - break; - } - case 4: { - message.manageRecords = reader.bool(); - break; - } - case 5: { - message.manageUsers = reader.bool(); - break; - } - case 6: { - message.expiration = reader.int64(); - break; - } - case 7: { - message.expirationNotificationType = reader.int32(); - break; - } - case 8: { - message.rotateOnExpiration = reader.bool(); + message.debug = reader.bool(); break; } default: @@ -212126,239 +211544,235 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a SharedFolderTeam message from the specified reader or buffer, length delimited. + * Decodes a SyncDownRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.SharedFolderTeam + * @memberof Vault.SyncDownRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SharedFolderTeam} SharedFolderTeam + * @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 */ - SharedFolderTeam.decodeDelimited = function decodeDelimited(reader) { + SyncDownRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SharedFolderTeam message. + * Verifies a SyncDownRequest message. * @function verify - * @memberof Vault.SharedFolderTeam + * @memberof Vault.SyncDownRequest * @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) { + SyncDownRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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"; + 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 SharedFolderTeam message from a plain object. Also converts values to their respective internal types. + * Creates a SyncDownRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.SharedFolderTeam + * @memberof Vault.SyncDownRequest * @static * @param {Object.} object Plain object - * @returns {Vault.SharedFolderTeam} SharedFolderTeam + * @returns {Vault.SyncDownRequest} SyncDownRequest */ - SharedFolderTeam.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SharedFolderTeam) + SyncDownRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.SyncDownRequest) return object; - let message = new $root.Vault.SharedFolderTeam(); - if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; - if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; - if (object.name != null) - message.name = String(object.name); - if (object.manageRecords != null) - message.manageRecords = Boolean(object.manageRecords); - if (object.manageUsers != null) - message.manageUsers = Boolean(object.manageUsers); - if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); - switch (object.expirationNotificationType) { - default: - if (typeof object.expirationNotificationType === "number") { - message.expirationNotificationType = object.expirationNotificationType; - break; - } - break; - case "NOTIFICATION_OFF": - case 0: - message.expirationNotificationType = 0; - break; - case "NOTIFY_OWNER": - case 1: - message.expirationNotificationType = 1; - break; - case "NOTIFY_PRIVILEGED_USERS": - case 2: - message.expirationNotificationType = 2; - break; - } - if (object.rotateOnExpiration != null) - message.rotateOnExpiration = Boolean(object.rotateOnExpiration); + let message = new $root.Vault.SyncDownRequest(); + if (object.continuationToken != null) + if (typeof object.continuationToken === "string") + $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); + else if (object.continuationToken.length >= 0) + message.continuationToken = object.continuationToken; + if (object.dataVersion != null) + message.dataVersion = object.dataVersion | 0; + if (object.debug != null) + message.debug = Boolean(object.debug); return message; }; /** - * Creates a plain object from a SharedFolderTeam message. Also converts values to other types if specified. + * Creates a plain object from a SyncDownRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.SharedFolderTeam + * @memberof Vault.SyncDownRequest * @static - * @param {Vault.SharedFolderTeam} message SharedFolderTeam + * @param {Vault.SyncDownRequest} message SyncDownRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderTeam.toObject = function toObject(message, options) { + SyncDownRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { if (options.bytes === String) - object.sharedFolderUid = ""; - else { - object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); - } - if (options.bytes === String) - object.teamUid = ""; + object.continuationToken = ""; else { - object.teamUid = []; + object.continuationToken = []; if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + object.continuationToken = $util.newBuffer(object.continuationToken); } - object.name = ""; - object.manageRecords = false; - object.manageUsers = false; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - object.expirationNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; - object.rotateOnExpiration = false; + object.dataVersion = 0; + object.debug = false; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) - object.manageRecords = message.manageRecords; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) - object.manageUsers = message.manageUsers; - if (message.expiration != null && message.hasOwnProperty("expiration")) - 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")) - 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")) - object.rotateOnExpiration = message.rotateOnExpiration; + if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; + if (message.dataVersion != null && message.hasOwnProperty("dataVersion")) + object.dataVersion = message.dataVersion; + if (message.debug != null && message.hasOwnProperty("debug")) + object.debug = message.debug; return object; }; /** - * Converts this SharedFolderTeam to JSON. + * Converts this SyncDownRequest to JSON. * @function toJSON - * @memberof Vault.SharedFolderTeam + * @memberof Vault.SyncDownRequest * @instance * @returns {Object.} JSON object */ - SharedFolderTeam.prototype.toJSON = function toJSON() { + SyncDownRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SharedFolderTeam + * Gets the default type url for SyncDownRequest * @function getTypeUrl - * @memberof Vault.SharedFolderTeam + * @memberof Vault.SyncDownRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SharedFolderTeam.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SyncDownRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.SharedFolderTeam"; + return typeUrlPrefix + "/Vault.SyncDownRequest"; }; - return SharedFolderTeam; + return SyncDownRequest; })(); - Vault.KsmChange = (function() { + Vault.SyncDownResponse = (function() { /** - * Properties of a KsmChange. + * Properties of a SyncDownResponse. * @memberof Vault - * @interface IKsmChange - * @property {Uint8Array|null} [appRecordUid] KsmChange appRecordUid - * @property {Uint8Array|null} [detailId] KsmChange detailId - * @property {boolean|null} [removed] KsmChange removed - * @property {Enterprise.AppClientType|null} [appClientType] KsmChange appClientType - * @property {number|Long|null} [expiration] KsmChange expiration + * @interface ISyncDownResponse + * @property {Uint8Array|null} [continuationToken] SyncDownResponse continuationToken + * @property {boolean|null} [hasMore] SyncDownResponse hasMore + * @property {Vault.CacheStatus|null} [cacheStatus] SyncDownResponse cacheStatus + * @property {Array.|null} [userFolders] SyncDownResponse userFolders + * @property {Array.|null} [sharedFolders] SyncDownResponse sharedFolders + * @property {Array.|null} [userFolderSharedFolders] SyncDownResponse userFolderSharedFolders + * @property {Array.|null} [sharedFolderFolders] SyncDownResponse sharedFolderFolders + * @property {Array.|null} [records] SyncDownResponse records + * @property {Array.|null} [recordMetaData] SyncDownResponse recordMetaData + * @property {Array.|null} [nonSharedData] SyncDownResponse nonSharedData + * @property {Array.|null} [recordLinks] SyncDownResponse recordLinks + * @property {Array.|null} [userFolderRecords] SyncDownResponse userFolderRecords + * @property {Array.|null} [sharedFolderRecords] SyncDownResponse sharedFolderRecords + * @property {Array.|null} [sharedFolderFolderRecords] SyncDownResponse sharedFolderFolderRecords + * @property {Array.|null} [sharedFolderUsers] SyncDownResponse sharedFolderUsers + * @property {Array.|null} [sharedFolderTeams] SyncDownResponse sharedFolderTeams + * @property {Array.|null} [recordAddAuditData] SyncDownResponse recordAddAuditData + * @property {Array.|null} [teams] SyncDownResponse teams + * @property {Array.|null} [sharingChanges] SyncDownResponse sharingChanges + * @property {Vault.IProfile|null} [profile] SyncDownResponse profile + * @property {Vault.IProfilePic|null} [profilePic] SyncDownResponse profilePic + * @property {Array.|null} [pendingTeamMembers] SyncDownResponse pendingTeamMembers + * @property {Array.|null} [breachWatchRecords] SyncDownResponse breachWatchRecords + * @property {Array.|null} [userAuths] SyncDownResponse userAuths + * @property {Array.|null} [breachWatchSecurityData] SyncDownResponse breachWatchSecurityData + * @property {Vault.IReusedPasswords|null} [reusedPasswords] SyncDownResponse reusedPasswords + * @property {Array.|null} [removedUserFolders] SyncDownResponse removedUserFolders + * @property {Array.|null} [removedSharedFolders] SyncDownResponse removedSharedFolders + * @property {Array.|null} [removedUserFolderSharedFolders] SyncDownResponse removedUserFolderSharedFolders + * @property {Array.|null} [removedSharedFolderFolders] SyncDownResponse removedSharedFolderFolders + * @property {Array.|null} [removedRecords] SyncDownResponse removedRecords + * @property {Array.|null} [removedRecordLinks] SyncDownResponse removedRecordLinks + * @property {Array.|null} [removedUserFolderRecords] SyncDownResponse removedUserFolderRecords + * @property {Array.|null} [removedSharedFolderRecords] SyncDownResponse removedSharedFolderRecords + * @property {Array.|null} [removedSharedFolderFolderRecords] SyncDownResponse removedSharedFolderFolderRecords + * @property {Array.|null} [removedSharedFolderUsers] SyncDownResponse removedSharedFolderUsers + * @property {Array.|null} [removedSharedFolderTeams] SyncDownResponse removedSharedFolderTeams + * @property {Array.|null} [removedTeams] SyncDownResponse removedTeams + * @property {Array.|null} [ksmAppShares] SyncDownResponse ksmAppShares + * @property {Array.|null} [ksmAppClients] SyncDownResponse ksmAppClients + * @property {Array.|null} [shareInvitations] SyncDownResponse shareInvitations + * @property {Vault.ISyncDiagnostics|null} [diagnostics] SyncDownResponse diagnostics + * @property {Array.|null} [recordRotations] SyncDownResponse recordRotations + * @property {Array.|null} [users] SyncDownResponse users + * @property {Array.|null} [removedUsers] SyncDownResponse removedUsers + * @property {Array.|null} [securityScoreData] SyncDownResponse securityScoreData + * @property {Array.|null} [notificationSync] SyncDownResponse notificationSync + * @property {Vault.IKeeperDriveData|null} [keeperDriveData] SyncDownResponse keeperDriveData */ /** - * Constructs a new KsmChange. + * Constructs a new SyncDownResponse. * @memberof Vault - * @classdesc Represents a KsmChange. - * @implements IKsmChange + * @classdesc Represents a SyncDownResponse. + * @implements ISyncDownResponse * @constructor - * @param {Vault.IKsmChange=} [properties] Properties to set + * @param {Vault.ISyncDownResponse=} [properties] Properties to set */ - function KsmChange(properties) { + function SyncDownResponse(properties) { + this.userFolders = []; + this.sharedFolders = []; + this.userFolderSharedFolders = []; + this.sharedFolderFolders = []; + this.records = []; + this.recordMetaData = []; + this.nonSharedData = []; + this.recordLinks = []; + this.userFolderRecords = []; + this.sharedFolderRecords = []; + this.sharedFolderFolderRecords = []; + this.sharedFolderUsers = []; + this.sharedFolderTeams = []; + this.recordAddAuditData = []; + this.teams = []; + this.sharingChanges = []; + this.pendingTeamMembers = []; + this.breachWatchRecords = []; + this.userAuths = []; + this.breachWatchSecurityData = []; + this.removedUserFolders = []; + this.removedSharedFolders = []; + this.removedUserFolderSharedFolders = []; + this.removedSharedFolderFolders = []; + this.removedRecords = []; + this.removedRecordLinks = []; + this.removedUserFolderRecords = []; + this.removedSharedFolderRecords = []; + this.removedSharedFolderFolderRecords = []; + this.removedSharedFolderUsers = []; + this.removedSharedFolderTeams = []; + this.removedTeams = []; + this.ksmAppShares = []; + this.ksmAppClients = []; + this.shareInvitations = []; + this.recordRotations = []; + this.users = []; + this.removedUsers = []; + this.securityScoreData = []; + this.notificationSync = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -212366,911 +211780,580 @@ export const Vault = $root.Vault = (() => { } /** - * KsmChange appRecordUid. - * @member {Uint8Array} appRecordUid - * @memberof Vault.KsmChange + * SyncDownResponse continuationToken. + * @member {Uint8Array} continuationToken + * @memberof Vault.SyncDownResponse * @instance */ - KsmChange.prototype.appRecordUid = $util.newBuffer([]); + SyncDownResponse.prototype.continuationToken = $util.newBuffer([]); /** - * KsmChange detailId. - * @member {Uint8Array} detailId - * @memberof Vault.KsmChange + * SyncDownResponse hasMore. + * @member {boolean} hasMore + * @memberof Vault.SyncDownResponse * @instance */ - KsmChange.prototype.detailId = $util.newBuffer([]); + SyncDownResponse.prototype.hasMore = false; /** - * KsmChange removed. - * @member {boolean} removed - * @memberof Vault.KsmChange + * SyncDownResponse cacheStatus. + * @member {Vault.CacheStatus} cacheStatus + * @memberof Vault.SyncDownResponse * @instance */ - KsmChange.prototype.removed = false; + SyncDownResponse.prototype.cacheStatus = 0; /** - * KsmChange appClientType. - * @member {Enterprise.AppClientType} appClientType - * @memberof Vault.KsmChange + * SyncDownResponse userFolders. + * @member {Array.} userFolders + * @memberof Vault.SyncDownResponse * @instance */ - KsmChange.prototype.appClientType = 0; + SyncDownResponse.prototype.userFolders = $util.emptyArray; /** - * KsmChange expiration. - * @member {number|Long} expiration - * @memberof Vault.KsmChange + * SyncDownResponse sharedFolders. + * @member {Array.} sharedFolders + * @memberof Vault.SyncDownResponse * @instance */ - KsmChange.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SyncDownResponse.prototype.sharedFolders = $util.emptyArray; /** - * Creates a new KsmChange instance using the specified properties. - * @function create - * @memberof Vault.KsmChange - * @static - * @param {Vault.IKsmChange=} [properties] Properties to set - * @returns {Vault.KsmChange} KsmChange instance + * SyncDownResponse userFolderSharedFolders. + * @member {Array.} userFolderSharedFolders + * @memberof Vault.SyncDownResponse + * @instance */ - KsmChange.create = function create(properties) { - return new KsmChange(properties); - }; + SyncDownResponse.prototype.userFolderSharedFolders = $util.emptyArray; /** - * Encodes the specified KsmChange message. Does not implicitly {@link Vault.KsmChange.verify|verify} messages. - * @function encode - * @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 + * SyncDownResponse sharedFolderFolders. + * @member {Array.} sharedFolderFolders + * @memberof Vault.SyncDownResponse + * @instance */ - KsmChange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "appRecordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appRecordUid); - if (message.detailId != null && Object.hasOwnProperty.call(message, "detailId")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.detailId); - if (message.removed != null && Object.hasOwnProperty.call(message, "removed")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.removed); - if (message.appClientType != null && Object.hasOwnProperty.call(message, "appClientType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.appClientType); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.expiration); - return writer; - }; + SyncDownResponse.prototype.sharedFolderFolders = $util.emptyArray; /** - * 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 + * SyncDownResponse records. + * @member {Array.} records + * @memberof Vault.SyncDownResponse + * @instance */ - KsmChange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + SyncDownResponse.prototype.records = $util.emptyArray; /** - * Decodes a KsmChange message from the specified reader or buffer. - * @function decode - * @memberof Vault.KsmChange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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 + * SyncDownResponse recordMetaData. + * @member {Array.} recordMetaData + * @memberof Vault.SyncDownResponse + * @instance */ - KsmChange.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.KsmChange(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.appRecordUid = reader.bytes(); - break; - } - case 2: { - message.detailId = reader.bytes(); - break; - } - case 3: { - message.removed = reader.bool(); - break; - } - case 4: { - message.appClientType = reader.int32(); - break; - } - case 5: { - message.expiration = reader.int64(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + SyncDownResponse.prototype.recordMetaData = $util.emptyArray; /** - * 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 + * SyncDownResponse nonSharedData. + * @member {Array.} nonSharedData + * @memberof Vault.SyncDownResponse + * @instance */ - KsmChange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + SyncDownResponse.prototype.nonSharedData = $util.emptyArray; /** - * 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 + * SyncDownResponse recordLinks. + * @member {Array.} recordLinks + * @memberof Vault.SyncDownResponse + * @instance */ - KsmChange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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; - }; + SyncDownResponse.prototype.recordLinks = $util.emptyArray; /** - * Creates a KsmChange message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof Vault.KsmChange - * @static - * @param {Object.} object Plain object - * @returns {Vault.KsmChange} KsmChange + * SyncDownResponse userFolderRecords. + * @member {Array.} userFolderRecords + * @memberof Vault.SyncDownResponse + * @instance */ - KsmChange.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.KsmChange) - return object; - let message = new $root.Vault.KsmChange(); - if (object.appRecordUid != null) - if (typeof object.appRecordUid === "string") - $util.base64.decode(object.appRecordUid, message.appRecordUid = $util.newBuffer($util.base64.length(object.appRecordUid)), 0); - else if (object.appRecordUid.length >= 0) - message.appRecordUid = object.appRecordUid; - if (object.detailId != null) - if (typeof object.detailId === "string") - $util.base64.decode(object.detailId, message.detailId = $util.newBuffer($util.base64.length(object.detailId)), 0); - else if (object.detailId.length >= 0) - message.detailId = object.detailId; - if (object.removed != null) - message.removed = Boolean(object.removed); - switch (object.appClientType) { - default: - if (typeof object.appClientType === "number") { - message.appClientType = object.appClientType; - break; - } - break; - case "NOT_USED": - case 0: - message.appClientType = 0; - break; - case "GENERAL": - case 1: - message.appClientType = 1; - break; - case "DISCOVERY_AND_ROTATION_CONTROLLER": - case 2: - message.appClientType = 2; - break; - case "KCM_CONTROLLER": - case 3: - message.appClientType = 3; - break; - case "SELF_DESTRUCT": - case 4: - message.appClientType = 4; - break; - } - if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); - return message; - }; + SyncDownResponse.prototype.userFolderRecords = $util.emptyArray; /** - * Creates a plain object from a KsmChange message. Also converts values to other types if specified. - * @function toObject - * @memberof Vault.KsmChange - * @static - * @param {Vault.KsmChange} message KsmChange - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * SyncDownResponse sharedFolderRecords. + * @member {Array.} sharedFolderRecords + * @memberof Vault.SyncDownResponse + * @instance */ - KsmChange.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.appRecordUid = ""; - else { - object.appRecordUid = []; - if (options.bytes !== Array) - object.appRecordUid = $util.newBuffer(object.appRecordUid); - } - if (options.bytes === String) - object.detailId = ""; - else { - object.detailId = []; - if (options.bytes !== Array) - object.detailId = $util.newBuffer(object.detailId); - } - object.removed = false; - object.appClientType = options.enums === String ? "NOT_USED" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - } - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) - object.appRecordUid = options.bytes === String ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.appRecordUid) : message.appRecordUid; - if (message.detailId != null && message.hasOwnProperty("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")) - object.removed = message.removed; - if (message.appClientType != null && message.hasOwnProperty("appClientType")) - object.appClientType = options.enums === String ? $root.Enterprise.AppClientType[message.appClientType] === undefined ? message.appClientType : $root.Enterprise.AppClientType[message.appClientType] : message.appClientType; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof 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; - return object; - }; + SyncDownResponse.prototype.sharedFolderRecords = $util.emptyArray; /** - * Converts this KsmChange to JSON. - * @function toJSON - * @memberof Vault.KsmChange + * SyncDownResponse sharedFolderFolderRecords. + * @member {Array.} sharedFolderFolderRecords + * @memberof Vault.SyncDownResponse * @instance - * @returns {Object.} JSON object */ - KsmChange.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + SyncDownResponse.prototype.sharedFolderFolderRecords = $util.emptyArray; /** - * Gets the default type url for KsmChange - * @function getTypeUrl - * @memberof Vault.KsmChange - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * SyncDownResponse sharedFolderUsers. + * @member {Array.} sharedFolderUsers + * @memberof Vault.SyncDownResponse + * @instance */ - KsmChange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/Vault.KsmChange"; - }; - - return KsmChange; - })(); - - Vault.ShareInvitation = (function() { + SyncDownResponse.prototype.sharedFolderUsers = $util.emptyArray; /** - * Properties of a ShareInvitation. - * @memberof Vault - * @interface IShareInvitation - * @property {string|null} [username] ShareInvitation username + * SyncDownResponse sharedFolderTeams. + * @member {Array.} sharedFolderTeams + * @memberof Vault.SyncDownResponse + * @instance */ + SyncDownResponse.prototype.sharedFolderTeams = $util.emptyArray; /** - * Constructs a new ShareInvitation. - * @memberof Vault - * @classdesc Represents a ShareInvitation. - * @implements IShareInvitation - * @constructor - * @param {Vault.IShareInvitation=} [properties] Properties to set + * SyncDownResponse recordAddAuditData. + * @member {Array.} recordAddAuditData + * @memberof Vault.SyncDownResponse + * @instance */ - function ShareInvitation(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + SyncDownResponse.prototype.recordAddAuditData = $util.emptyArray; /** - * ShareInvitation username. - * @member {string} username - * @memberof Vault.ShareInvitation + * SyncDownResponse teams. + * @member {Array.} teams + * @memberof Vault.SyncDownResponse * @instance */ - ShareInvitation.prototype.username = ""; + SyncDownResponse.prototype.teams = $util.emptyArray; /** - * Creates a new ShareInvitation instance using the specified properties. - * @function create - * @memberof Vault.ShareInvitation - * @static - * @param {Vault.IShareInvitation=} [properties] Properties to set - * @returns {Vault.ShareInvitation} ShareInvitation instance + * SyncDownResponse sharingChanges. + * @member {Array.} sharingChanges + * @memberof Vault.SyncDownResponse + * @instance */ - ShareInvitation.create = function create(properties) { - return new ShareInvitation(properties); - }; + SyncDownResponse.prototype.sharingChanges = $util.emptyArray; /** - * Encodes the specified ShareInvitation message. Does not implicitly {@link Vault.ShareInvitation.verify|verify} messages. - * @function encode - * @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 + * SyncDownResponse profile. + * @member {Vault.IProfile|null|undefined} profile + * @memberof Vault.SyncDownResponse + * @instance */ - ShareInvitation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - return writer; - }; + SyncDownResponse.prototype.profile = null; /** - * 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 + * SyncDownResponse profilePic. + * @member {Vault.IProfilePic|null|undefined} profilePic + * @memberof Vault.SyncDownResponse + * @instance */ - ShareInvitation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + SyncDownResponse.prototype.profilePic = null; /** - * Decodes a ShareInvitation message from the specified reader or buffer. - * @function decode - * @memberof Vault.ShareInvitation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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 + * SyncDownResponse pendingTeamMembers. + * @member {Array.} pendingTeamMembers + * @memberof Vault.SyncDownResponse + * @instance */ - ShareInvitation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.ShareInvitation(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.username = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + SyncDownResponse.prototype.pendingTeamMembers = $util.emptyArray; /** - * 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 + * SyncDownResponse breachWatchRecords. + * @member {Array.} breachWatchRecords + * @memberof Vault.SyncDownResponse + * @instance */ - ShareInvitation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + SyncDownResponse.prototype.breachWatchRecords = $util.emptyArray; /** - * 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 + * SyncDownResponse userAuths. + * @member {Array.} userAuths + * @memberof Vault.SyncDownResponse + * @instance */ - ShareInvitation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - return null; - }; + SyncDownResponse.prototype.userAuths = $util.emptyArray; /** - * Creates a ShareInvitation message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof Vault.ShareInvitation - * @static - * @param {Object.} object Plain object - * @returns {Vault.ShareInvitation} ShareInvitation + * SyncDownResponse breachWatchSecurityData. + * @member {Array.} breachWatchSecurityData + * @memberof Vault.SyncDownResponse + * @instance */ - ShareInvitation.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.ShareInvitation) - return object; - let message = new $root.Vault.ShareInvitation(); - if (object.username != null) - message.username = String(object.username); - return message; - }; + SyncDownResponse.prototype.breachWatchSecurityData = $util.emptyArray; /** - * Creates a plain object from a ShareInvitation message. Also converts values to other types if specified. - * @function toObject - * @memberof Vault.ShareInvitation - * @static - * @param {Vault.ShareInvitation} message ShareInvitation - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * SyncDownResponse reusedPasswords. + * @member {Vault.IReusedPasswords|null|undefined} reusedPasswords + * @memberof Vault.SyncDownResponse + * @instance */ - ShareInvitation.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.username = ""; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - return object; - }; + SyncDownResponse.prototype.reusedPasswords = null; /** - * Converts this ShareInvitation to JSON. - * @function toJSON - * @memberof Vault.ShareInvitation + * SyncDownResponse removedUserFolders. + * @member {Array.} removedUserFolders + * @memberof Vault.SyncDownResponse * @instance - * @returns {Object.} JSON object */ - ShareInvitation.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + SyncDownResponse.prototype.removedUserFolders = $util.emptyArray; /** - * Gets the default type url for ShareInvitation - * @function getTypeUrl - * @memberof Vault.ShareInvitation - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * SyncDownResponse removedSharedFolders. + * @member {Array.} removedSharedFolders + * @memberof Vault.SyncDownResponse + * @instance */ - ShareInvitation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/Vault.ShareInvitation"; - }; + SyncDownResponse.prototype.removedSharedFolders = $util.emptyArray; - return ShareInvitation; - })(); + /** + * SyncDownResponse removedUserFolderSharedFolders. + * @member {Array.} removedUserFolderSharedFolders + * @memberof Vault.SyncDownResponse + * @instance + */ + SyncDownResponse.prototype.removedUserFolderSharedFolders = $util.emptyArray; - Vault.User = (function() { + /** + * SyncDownResponse removedSharedFolderFolders. + * @member {Array.} removedSharedFolderFolders + * @memberof Vault.SyncDownResponse + * @instance + */ + SyncDownResponse.prototype.removedSharedFolderFolders = $util.emptyArray; /** - * Properties of a User. - * @memberof Vault - * @interface IUser - * @property {Uint8Array|null} [accountUid] User accountUid - * @property {string|null} [username] User username + * SyncDownResponse removedRecords. + * @member {Array.} removedRecords + * @memberof Vault.SyncDownResponse + * @instance */ + SyncDownResponse.prototype.removedRecords = $util.emptyArray; /** - * Constructs a new User. - * @memberof Vault - * @classdesc Represents a User. - * @implements IUser - * @constructor - * @param {Vault.IUser=} [properties] Properties to set + * SyncDownResponse removedRecordLinks. + * @member {Array.} removedRecordLinks + * @memberof Vault.SyncDownResponse + * @instance */ - function User(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + SyncDownResponse.prototype.removedRecordLinks = $util.emptyArray; /** - * User accountUid. - * @member {Uint8Array} accountUid - * @memberof Vault.User + * SyncDownResponse removedUserFolderRecords. + * @member {Array.} removedUserFolderRecords + * @memberof Vault.SyncDownResponse * @instance */ - User.prototype.accountUid = $util.newBuffer([]); + SyncDownResponse.prototype.removedUserFolderRecords = $util.emptyArray; /** - * User username. - * @member {string} username - * @memberof Vault.User + * SyncDownResponse removedSharedFolderRecords. + * @member {Array.} removedSharedFolderRecords + * @memberof Vault.SyncDownResponse * @instance */ - User.prototype.username = ""; + SyncDownResponse.prototype.removedSharedFolderRecords = $util.emptyArray; /** - * Creates a new User instance using the specified properties. - * @function create - * @memberof Vault.User - * @static - * @param {Vault.IUser=} [properties] Properties to set - * @returns {Vault.User} User instance + * SyncDownResponse removedSharedFolderFolderRecords. + * @member {Array.} removedSharedFolderFolderRecords + * @memberof Vault.SyncDownResponse + * @instance */ - User.create = function create(properties) { - return new User(properties); - }; + SyncDownResponse.prototype.removedSharedFolderFolderRecords = $util.emptyArray; /** - * Encodes the specified User message. Does not implicitly {@link Vault.User.verify|verify} messages. - * @function encode - * @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 + * SyncDownResponse removedSharedFolderUsers. + * @member {Array.} removedSharedFolderUsers + * @memberof Vault.SyncDownResponse + * @instance */ - User.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.accountUid); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - return writer; - }; + SyncDownResponse.prototype.removedSharedFolderUsers = $util.emptyArray; /** - * 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 + * SyncDownResponse removedSharedFolderTeams. + * @member {Array.} removedSharedFolderTeams + * @memberof Vault.SyncDownResponse + * @instance */ - User.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + SyncDownResponse.prototype.removedSharedFolderTeams = $util.emptyArray; /** - * Decodes a User message from the specified reader or buffer. - * @function decode - * @memberof Vault.User - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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 + * SyncDownResponse removedTeams. + * @member {Array.} removedTeams + * @memberof Vault.SyncDownResponse + * @instance */ - User.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.User(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.accountUid = reader.bytes(); - break; - } - case 2: { - message.username = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + SyncDownResponse.prototype.removedTeams = $util.emptyArray; /** - * 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) { - if (typeof message !== "object" || message === null) - return "object 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.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 - * @memberof Vault.User - * @static - * @param {Object.} object Plain object - * @returns {Vault.User} User - */ - User.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.User) - return object; - let message = new $root.Vault.User(); - if (object.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; - if (object.username != null) - message.username = String(object.username); - return message; - }; - - /** - * Creates a plain object from a User message. Also converts values to other types if specified. - * @function toObject - * @memberof Vault.User - * @static - * @param {Vault.User} message User - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * SyncDownResponse ksmAppShares. + * @member {Array.} ksmAppShares + * @memberof Vault.SyncDownResponse + * @instance */ - User.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.accountUid = ""; - else { - object.accountUid = []; - if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); - } - object.username = ""; - } - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - return object; - }; + SyncDownResponse.prototype.ksmAppShares = $util.emptyArray; /** - * Converts this User to JSON. - * @function toJSON - * @memberof Vault.User + * SyncDownResponse ksmAppClients. + * @member {Array.} ksmAppClients + * @memberof Vault.SyncDownResponse * @instance - * @returns {Object.} JSON object */ - User.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + SyncDownResponse.prototype.ksmAppClients = $util.emptyArray; /** - * Gets the default type url for User - * @function getTypeUrl - * @memberof Vault.User - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * SyncDownResponse shareInvitations. + * @member {Array.} shareInvitations + * @memberof Vault.SyncDownResponse + * @instance */ - User.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/Vault.User"; - }; - - return User; - })(); - - Vault.SyncDiagnostics = (function() { + SyncDownResponse.prototype.shareInvitations = $util.emptyArray; /** - * Properties of a SyncDiagnostics. - * @memberof Vault - * @interface ISyncDiagnostics - * @property {Uint8Array|null} [continuationToken] SyncDiagnostics continuationToken - * @property {number|null} [userId] SyncDiagnostics userId - * @property {number|Long|null} [enterpriseUserId] SyncDiagnostics enterpriseUserId - * @property {number|Long|null} [syncedTo] SyncDiagnostics syncedTo - * @property {number|Long|null} [syncingTo] SyncDiagnostics syncingTo + * SyncDownResponse diagnostics. + * @member {Vault.ISyncDiagnostics|null|undefined} diagnostics + * @memberof Vault.SyncDownResponse + * @instance */ + SyncDownResponse.prototype.diagnostics = null; /** - * Constructs a new SyncDiagnostics. - * @memberof Vault - * @classdesc Represents a SyncDiagnostics. - * @implements ISyncDiagnostics - * @constructor - * @param {Vault.ISyncDiagnostics=} [properties] Properties to set + * SyncDownResponse recordRotations. + * @member {Array.} recordRotations + * @memberof Vault.SyncDownResponse + * @instance */ - function SyncDiagnostics(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + SyncDownResponse.prototype.recordRotations = $util.emptyArray; /** - * SyncDiagnostics continuationToken. - * @member {Uint8Array} continuationToken - * @memberof Vault.SyncDiagnostics + * SyncDownResponse users. + * @member {Array.} users + * @memberof Vault.SyncDownResponse * @instance */ - SyncDiagnostics.prototype.continuationToken = $util.newBuffer([]); + SyncDownResponse.prototype.users = $util.emptyArray; /** - * SyncDiagnostics userId. - * @member {number} userId - * @memberof Vault.SyncDiagnostics + * SyncDownResponse removedUsers. + * @member {Array.} removedUsers + * @memberof Vault.SyncDownResponse * @instance */ - SyncDiagnostics.prototype.userId = 0; + SyncDownResponse.prototype.removedUsers = $util.emptyArray; /** - * SyncDiagnostics enterpriseUserId. - * @member {number|Long} enterpriseUserId - * @memberof Vault.SyncDiagnostics + * SyncDownResponse securityScoreData. + * @member {Array.} securityScoreData + * @memberof Vault.SyncDownResponse * @instance */ - SyncDiagnostics.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SyncDownResponse.prototype.securityScoreData = $util.emptyArray; /** - * SyncDiagnostics syncedTo. - * @member {number|Long} syncedTo - * @memberof Vault.SyncDiagnostics + * SyncDownResponse notificationSync. + * @member {Array.} notificationSync + * @memberof Vault.SyncDownResponse * @instance */ - SyncDiagnostics.prototype.syncedTo = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SyncDownResponse.prototype.notificationSync = $util.emptyArray; /** - * SyncDiagnostics syncingTo. - * @member {number|Long} syncingTo - * @memberof Vault.SyncDiagnostics + * SyncDownResponse keeperDriveData. + * @member {Vault.IKeeperDriveData|null|undefined} keeperDriveData + * @memberof Vault.SyncDownResponse * @instance */ - SyncDiagnostics.prototype.syncingTo = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SyncDownResponse.prototype.keeperDriveData = null; /** - * Creates a new SyncDiagnostics instance using the specified properties. + * Creates a new SyncDownResponse instance using the specified properties. * @function create - * @memberof Vault.SyncDiagnostics + * @memberof Vault.SyncDownResponse * @static - * @param {Vault.ISyncDiagnostics=} [properties] Properties to set - * @returns {Vault.SyncDiagnostics} SyncDiagnostics instance + * @param {Vault.ISyncDownResponse=} [properties] Properties to set + * @returns {Vault.SyncDownResponse} SyncDownResponse instance */ - SyncDiagnostics.create = function create(properties) { - return new SyncDiagnostics(properties); + SyncDownResponse.create = function create(properties) { + return new SyncDownResponse(properties); }; /** - * Encodes the specified SyncDiagnostics message. Does not implicitly {@link Vault.SyncDiagnostics.verify|verify} messages. + * Encodes the specified SyncDownResponse message. Does not implicitly {@link Vault.SyncDownResponse.verify|verify} messages. * @function encode - * @memberof Vault.SyncDiagnostics + * @memberof Vault.SyncDownResponse * @static - * @param {Vault.ISyncDiagnostics} message SyncDiagnostics message or plain object to encode + * @param {Vault.ISyncDownResponse} message SyncDownResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SyncDiagnostics.encode = function encode(message, writer) { + SyncDownResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.continuationToken); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.userId); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.enterpriseUserId); - if (message.syncedTo != null && Object.hasOwnProperty.call(message, "syncedTo")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.syncedTo); - if (message.syncingTo != null && Object.hasOwnProperty.call(message, "syncingTo")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.syncingTo); + if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.hasMore); + if (message.cacheStatus != null && Object.hasOwnProperty.call(message, "cacheStatus")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.cacheStatus); + if (message.userFolders != null && message.userFolders.length) + for (let i = 0; i < message.userFolders.length; ++i) + $root.Vault.UserFolder.encode(message.userFolders[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.sharedFolders != null && message.sharedFolders.length) + for (let i = 0; i < message.sharedFolders.length; ++i) + $root.Vault.SharedFolder.encode(message.sharedFolders[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.userFolderSharedFolders != null && message.userFolderSharedFolders.length) + for (let i = 0; i < message.userFolderSharedFolders.length; ++i) + $root.Vault.UserFolderSharedFolder.encode(message.userFolderSharedFolders[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.sharedFolderFolders != null && message.sharedFolderFolders.length) + for (let i = 0; i < message.sharedFolderFolders.length; ++i) + $root.Vault.SharedFolderFolder.encode(message.sharedFolderFolders[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.records != null && message.records.length) + for (let i = 0; i < message.records.length; ++i) + $root.Vault.Record.encode(message.records[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.recordMetaData != null && message.recordMetaData.length) + for (let i = 0; i < message.recordMetaData.length; ++i) + $root.Vault.RecordMetaData.encode(message.recordMetaData[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.nonSharedData != null && message.nonSharedData.length) + for (let i = 0; i < message.nonSharedData.length; ++i) + $root.Vault.NonSharedData.encode(message.nonSharedData[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.recordLinks != null && message.recordLinks.length) + for (let i = 0; i < message.recordLinks.length; ++i) + $root.Vault.RecordLink.encode(message.recordLinks[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.userFolderRecords != null && message.userFolderRecords.length) + for (let i = 0; i < message.userFolderRecords.length; ++i) + $root.Vault.UserFolderRecord.encode(message.userFolderRecords[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.sharedFolderRecords != null && message.sharedFolderRecords.length) + for (let i = 0; i < message.sharedFolderRecords.length; ++i) + $root.Vault.SharedFolderRecord.encode(message.sharedFolderRecords[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.sharedFolderFolderRecords != null && message.sharedFolderFolderRecords.length) + for (let i = 0; i < message.sharedFolderFolderRecords.length; ++i) + $root.Vault.SharedFolderFolderRecord.encode(message.sharedFolderFolderRecords[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.sharedFolderUsers != null && message.sharedFolderUsers.length) + for (let i = 0; i < message.sharedFolderUsers.length; ++i) + $root.Vault.SharedFolderUser.encode(message.sharedFolderUsers[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.sharedFolderTeams != null && message.sharedFolderTeams.length) + for (let i = 0; i < message.sharedFolderTeams.length; ++i) + $root.Vault.SharedFolderTeam.encode(message.sharedFolderTeams[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.recordAddAuditData != null && message.recordAddAuditData.length) + for (let i = 0; i < message.recordAddAuditData.length; ++i) + writer.uint32(/* id 17, wireType 2 =*/138).bytes(message.recordAddAuditData[i]); + if (message.teams != null && message.teams.length) + for (let i = 0; i < message.teams.length; ++i) + $root.Vault.Team.encode(message.teams[i], writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.sharingChanges != null && message.sharingChanges.length) + for (let i = 0; i < message.sharingChanges.length; ++i) + $root.Vault.SharingChange.encode(message.sharingChanges[i], writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.profile != null && Object.hasOwnProperty.call(message, "profile")) + $root.Vault.Profile.encode(message.profile, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.profilePic != null && Object.hasOwnProperty.call(message, "profilePic")) + $root.Vault.ProfilePic.encode(message.profilePic, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.pendingTeamMembers != null && message.pendingTeamMembers.length) + for (let i = 0; i < message.pendingTeamMembers.length; ++i) + $root.Vault.PendingTeamMember.encode(message.pendingTeamMembers[i], writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); + if (message.breachWatchRecords != null && message.breachWatchRecords.length) + for (let i = 0; i < message.breachWatchRecords.length; ++i) + $root.Vault.BreachWatchRecord.encode(message.breachWatchRecords[i], writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + if (message.userAuths != null && message.userAuths.length) + for (let i = 0; i < message.userAuths.length; ++i) + $root.Vault.UserAuth.encode(message.userAuths[i], writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); + if (message.breachWatchSecurityData != null && message.breachWatchSecurityData.length) + for (let i = 0; i < message.breachWatchSecurityData.length; ++i) + $root.Vault.BreachWatchSecurityData.encode(message.breachWatchSecurityData[i], writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); + if (message.reusedPasswords != null && Object.hasOwnProperty.call(message, "reusedPasswords")) + $root.Vault.ReusedPasswords.encode(message.reusedPasswords, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); + if (message.removedUserFolders != null && message.removedUserFolders.length) + for (let i = 0; i < message.removedUserFolders.length; ++i) + writer.uint32(/* id 27, wireType 2 =*/218).bytes(message.removedUserFolders[i]); + if (message.removedSharedFolders != null && message.removedSharedFolders.length) + for (let i = 0; i < message.removedSharedFolders.length; ++i) + writer.uint32(/* id 28, wireType 2 =*/226).bytes(message.removedSharedFolders[i]); + if (message.removedUserFolderSharedFolders != null && message.removedUserFolderSharedFolders.length) + for (let i = 0; i < message.removedUserFolderSharedFolders.length; ++i) + $root.Vault.UserFolderSharedFolder.encode(message.removedUserFolderSharedFolders[i], writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim(); + if (message.removedSharedFolderFolders != null && message.removedSharedFolderFolders.length) + for (let i = 0; i < message.removedSharedFolderFolders.length; ++i) + $root.Vault.SharedFolderFolder.encode(message.removedSharedFolderFolders[i], writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim(); + if (message.removedRecords != null && message.removedRecords.length) + for (let i = 0; i < message.removedRecords.length; ++i) + writer.uint32(/* id 31, wireType 2 =*/250).bytes(message.removedRecords[i]); + if (message.removedRecordLinks != null && message.removedRecordLinks.length) + for (let i = 0; i < message.removedRecordLinks.length; ++i) + $root.Vault.RecordLink.encode(message.removedRecordLinks[i], writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); + if (message.removedUserFolderRecords != null && message.removedUserFolderRecords.length) + for (let i = 0; i < message.removedUserFolderRecords.length; ++i) + $root.Vault.UserFolderRecord.encode(message.removedUserFolderRecords[i], writer.uint32(/* id 33, wireType 2 =*/266).fork()).ldelim(); + if (message.removedSharedFolderRecords != null && message.removedSharedFolderRecords.length) + for (let i = 0; i < message.removedSharedFolderRecords.length; ++i) + $root.Vault.SharedFolderRecord.encode(message.removedSharedFolderRecords[i], writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim(); + if (message.removedSharedFolderFolderRecords != null && message.removedSharedFolderFolderRecords.length) + for (let i = 0; i < message.removedSharedFolderFolderRecords.length; ++i) + $root.Vault.SharedFolderFolderRecord.encode(message.removedSharedFolderFolderRecords[i], writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim(); + if (message.removedSharedFolderUsers != null && message.removedSharedFolderUsers.length) + for (let i = 0; i < message.removedSharedFolderUsers.length; ++i) + $root.Vault.SharedFolderUser.encode(message.removedSharedFolderUsers[i], writer.uint32(/* id 36, wireType 2 =*/290).fork()).ldelim(); + if (message.removedSharedFolderTeams != null && message.removedSharedFolderTeams.length) + for (let i = 0; i < message.removedSharedFolderTeams.length; ++i) + $root.Vault.SharedFolderTeam.encode(message.removedSharedFolderTeams[i], writer.uint32(/* id 37, wireType 2 =*/298).fork()).ldelim(); + if (message.removedTeams != null && message.removedTeams.length) + for (let i = 0; i < message.removedTeams.length; ++i) + writer.uint32(/* id 38, wireType 2 =*/306).bytes(message.removedTeams[i]); + if (message.ksmAppShares != null && message.ksmAppShares.length) + for (let i = 0; i < message.ksmAppShares.length; ++i) + $root.Vault.KsmChange.encode(message.ksmAppShares[i], writer.uint32(/* id 39, wireType 2 =*/314).fork()).ldelim(); + if (message.ksmAppClients != null && message.ksmAppClients.length) + for (let i = 0; i < message.ksmAppClients.length; ++i) + $root.Vault.KsmChange.encode(message.ksmAppClients[i], writer.uint32(/* id 40, wireType 2 =*/322).fork()).ldelim(); + if (message.shareInvitations != null && message.shareInvitations.length) + for (let i = 0; i < message.shareInvitations.length; ++i) + $root.Vault.ShareInvitation.encode(message.shareInvitations[i], writer.uint32(/* id 41, wireType 2 =*/330).fork()).ldelim(); + if (message.diagnostics != null && Object.hasOwnProperty.call(message, "diagnostics")) + $root.Vault.SyncDiagnostics.encode(message.diagnostics, writer.uint32(/* id 42, wireType 2 =*/338).fork()).ldelim(); + if (message.recordRotations != null && message.recordRotations.length) + for (let i = 0; i < message.recordRotations.length; ++i) + $root.Vault.RecordRotation.encode(message.recordRotations[i], writer.uint32(/* id 43, wireType 2 =*/346).fork()).ldelim(); + if (message.users != null && message.users.length) + for (let i = 0; i < message.users.length; ++i) + $root.Vault.User.encode(message.users[i], writer.uint32(/* id 44, wireType 2 =*/354).fork()).ldelim(); + if (message.removedUsers != null && message.removedUsers.length) + for (let i = 0; i < message.removedUsers.length; ++i) + writer.uint32(/* id 45, wireType 2 =*/362).bytes(message.removedUsers[i]); + if (message.securityScoreData != null && message.securityScoreData.length) + for (let i = 0; i < message.securityScoreData.length; ++i) + $root.Vault.SecurityScoreData.encode(message.securityScoreData[i], writer.uint32(/* id 46, wireType 2 =*/370).fork()).ldelim(); + if (message.notificationSync != null && message.notificationSync.length) + for (let i = 0; i < message.notificationSync.length; ++i) + $root.NotificationCenter.NotificationWrapper.encode(message.notificationSync[i], writer.uint32(/* id 47, wireType 2 =*/378).fork()).ldelim(); + if (message.keeperDriveData != null && Object.hasOwnProperty.call(message, "keeperDriveData")) + $root.Vault.KeeperDriveData.encode(message.keeperDriveData, writer.uint32(/* id 48, wireType 2 =*/386).fork()).ldelim(); return writer; }; /** - * Encodes the specified SyncDiagnostics message, length delimited. Does not implicitly {@link Vault.SyncDiagnostics.verify|verify} messages. + * Encodes the specified SyncDownResponse message, length delimited. Does not implicitly {@link Vault.SyncDownResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.SyncDiagnostics + * @memberof Vault.SyncDownResponse * @static - * @param {Vault.ISyncDiagnostics} message SyncDiagnostics message or plain object to encode + * @param {Vault.ISyncDownResponse} message SyncDownResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SyncDiagnostics.encodeDelimited = function encodeDelimited(message, writer) { + SyncDownResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SyncDiagnostics message from the specified reader or buffer. + * Decodes a SyncDownResponse message from the specified reader or buffer. * @function decode - * @memberof Vault.SyncDiagnostics + * @memberof Vault.SyncDownResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.SyncDiagnostics} SyncDiagnostics + * @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 */ - SyncDiagnostics.decode = function decode(reader, length) { + SyncDownResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SyncDiagnostics(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SyncDownResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -213279,444 +212362,271 @@ export const Vault = $root.Vault = (() => { break; } case 2: { - message.userId = reader.int32(); + message.hasMore = reader.bool(); break; } case 3: { - message.enterpriseUserId = reader.int64(); + message.cacheStatus = reader.int32(); break; } case 4: { - message.syncedTo = reader.int64(); + if (!(message.userFolders && message.userFolders.length)) + message.userFolders = []; + message.userFolders.push($root.Vault.UserFolder.decode(reader, reader.uint32())); break; } case 5: { - message.syncingTo = reader.int64(); + if (!(message.sharedFolders && message.sharedFolders.length)) + message.sharedFolders = []; + message.sharedFolders.push($root.Vault.SharedFolder.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; - } - } - 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) { - if (typeof message !== "object" || message === null) - return "object 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.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 - * @memberof Vault.SyncDiagnostics - * @static - * @param {Object.} object Plain object - * @returns {Vault.SyncDiagnostics} SyncDiagnostics - */ - SyncDiagnostics.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SyncDiagnostics) - return object; - let message = new $root.Vault.SyncDiagnostics(); - if (object.continuationToken != null) - if (typeof object.continuationToken === "string") - $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); - else if (object.continuationToken.length >= 0) - message.continuationToken = object.continuationToken; - if (object.userId != null) - message.userId = object.userId | 0; - if (object.enterpriseUserId != null) - if ($util.Long) - (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") - message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") - message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - if (object.syncedTo != null) - if ($util.Long) - (message.syncedTo = $util.Long.fromValue(object.syncedTo)).unsigned = false; - else if (typeof object.syncedTo === "string") - message.syncedTo = parseInt(object.syncedTo, 10); - else if (typeof object.syncedTo === "number") - message.syncedTo = object.syncedTo; - else if (typeof object.syncedTo === "object") - message.syncedTo = new $util.LongBits(object.syncedTo.low >>> 0, object.syncedTo.high >>> 0).toNumber(); - if (object.syncingTo != null) - if ($util.Long) - (message.syncingTo = $util.Long.fromValue(object.syncingTo)).unsigned = false; - else if (typeof object.syncingTo === "string") - message.syncingTo = parseInt(object.syncingTo, 10); - else if (typeof object.syncingTo === "number") - message.syncingTo = object.syncingTo; - else if (typeof object.syncingTo === "object") - message.syncingTo = new $util.LongBits(object.syncingTo.low >>> 0, object.syncingTo.high >>> 0).toNumber(); - return message; - }; - - /** - * Creates a plain object from a SyncDiagnostics message. Also converts values to other types if specified. - * @function toObject - * @memberof Vault.SyncDiagnostics - * @static - * @param {Vault.SyncDiagnostics} message SyncDiagnostics - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SyncDiagnostics.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.continuationToken = ""; - else { - object.continuationToken = []; - if (options.bytes !== Array) - object.continuationToken = $util.newBuffer(object.continuationToken); - } - object.userId = 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.syncedTo = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.syncedTo = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.syncingTo = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.syncingTo = options.longs === String ? "0" : 0; - } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; - else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.syncedTo != null && message.hasOwnProperty("syncedTo")) - if (typeof message.syncedTo === "number") - object.syncedTo = options.longs === String ? String(message.syncedTo) : message.syncedTo; - else - object.syncedTo = options.longs === String ? $util.Long.prototype.toString.call(message.syncedTo) : options.longs === Number ? new $util.LongBits(message.syncedTo.low >>> 0, message.syncedTo.high >>> 0).toNumber() : message.syncedTo; - if (message.syncingTo != null && message.hasOwnProperty("syncingTo")) - if (typeof message.syncingTo === "number") - object.syncingTo = options.longs === String ? String(message.syncingTo) : message.syncingTo; - else - object.syncingTo = options.longs === String ? $util.Long.prototype.toString.call(message.syncingTo) : options.longs === Number ? new $util.LongBits(message.syncingTo.low >>> 0, message.syncingTo.high >>> 0).toNumber() : message.syncingTo; - return object; - }; - - /** - * Converts this SyncDiagnostics to JSON. - * @function toJSON - * @memberof Vault.SyncDiagnostics - * @instance - * @returns {Object.} JSON object - */ - SyncDiagnostics.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for SyncDiagnostics - * @function getTypeUrl - * @memberof Vault.SyncDiagnostics - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SyncDiagnostics.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/Vault.SyncDiagnostics"; - }; - - return SyncDiagnostics; - })(); - - /** - * RecordRotationStatus enum. - * @name Vault.RecordRotationStatus - * @enum {number} - * @property {number} RRST_NOT_ROTATED=0 RRST_NOT_ROTATED value - * @property {number} RRST_IN_PROGRESS=1 RRST_IN_PROGRESS value - * @property {number} RRST_SUCCESS=2 RRST_SUCCESS value - * @property {number} RRST_FAILURE=3 RRST_FAILURE value - */ - Vault.RecordRotationStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RRST_NOT_ROTATED"] = 0; - values[valuesById[1] = "RRST_IN_PROGRESS"] = 1; - values[valuesById[2] = "RRST_SUCCESS"] = 2; - values[valuesById[3] = "RRST_FAILURE"] = 3; - return values; - })(); - - Vault.RecordRotation = (function() { - - /** - * Properties of a RecordRotation. - * @memberof Vault - * @interface IRecordRotation - * @property {Uint8Array|null} [recordUid] RecordRotation recordUid - * @property {number|Long|null} [revision] RecordRotation revision - * @property {Uint8Array|null} [configurationUid] RecordRotation configurationUid - * @property {string|null} [schedule] RecordRotation schedule - * @property {Uint8Array|null} [pwdComplexity] RecordRotation pwdComplexity - * @property {boolean|null} [disabled] RecordRotation disabled - * @property {Uint8Array|null} [resourceUid] RecordRotation resourceUid - * @property {number|Long|null} [lastRotation] RecordRotation lastRotation - * @property {Vault.RecordRotationStatus|null} [lastRotationStatus] RecordRotation lastRotationStatus - */ - - /** - * Constructs a new RecordRotation. - * @memberof Vault - * @classdesc Represents a RecordRotation. - * @implements IRecordRotation - * @constructor - * @param {Vault.IRecordRotation=} [properties] Properties to set - */ - function RecordRotation(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RecordRotation recordUid. - * @member {Uint8Array} recordUid - * @memberof Vault.RecordRotation - * @instance - */ - RecordRotation.prototype.recordUid = $util.newBuffer([]); - - /** - * RecordRotation revision. - * @member {number|Long} revision - * @memberof Vault.RecordRotation - * @instance - */ - RecordRotation.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * RecordRotation configurationUid. - * @member {Uint8Array} configurationUid - * @memberof Vault.RecordRotation - * @instance - */ - RecordRotation.prototype.configurationUid = $util.newBuffer([]); - - /** - * RecordRotation schedule. - * @member {string} schedule - * @memberof Vault.RecordRotation - * @instance - */ - RecordRotation.prototype.schedule = ""; - - /** - * RecordRotation pwdComplexity. - * @member {Uint8Array} pwdComplexity - * @memberof Vault.RecordRotation - * @instance - */ - RecordRotation.prototype.pwdComplexity = $util.newBuffer([]); - - /** - * RecordRotation disabled. - * @member {boolean} disabled - * @memberof Vault.RecordRotation - * @instance - */ - RecordRotation.prototype.disabled = false; - - /** - * RecordRotation resourceUid. - * @member {Uint8Array} resourceUid - * @memberof Vault.RecordRotation - * @instance - */ - RecordRotation.prototype.resourceUid = $util.newBuffer([]); - - /** - * RecordRotation lastRotation. - * @member {number|Long} lastRotation - * @memberof Vault.RecordRotation - * @instance - */ - RecordRotation.prototype.lastRotation = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * RecordRotation lastRotationStatus. - * @member {Vault.RecordRotationStatus} lastRotationStatus - * @memberof Vault.RecordRotation - * @instance - */ - RecordRotation.prototype.lastRotationStatus = 0; - - /** - * Creates a new RecordRotation instance using the specified properties. - * @function create - * @memberof Vault.RecordRotation - * @static - * @param {Vault.IRecordRotation=} [properties] Properties to set - * @returns {Vault.RecordRotation} RecordRotation instance - */ - RecordRotation.create = function create(properties) { - return new RecordRotation(properties); - }; - - /** - * Encodes the specified RecordRotation message. Does not implicitly {@link Vault.RecordRotation.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); - if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.configurationUid); - if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.schedule); - if (message.pwdComplexity != null && Object.hasOwnProperty.call(message, "pwdComplexity")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.pwdComplexity); - if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disabled); - if (message.resourceUid != null && Object.hasOwnProperty.call(message, "resourceUid")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.resourceUid); - if (message.lastRotation != null && Object.hasOwnProperty.call(message, "lastRotation")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.lastRotation); - if (message.lastRotationStatus != null && Object.hasOwnProperty.call(message, "lastRotationStatus")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.lastRotationStatus); - 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 - * @memberof Vault.RecordRotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.RecordRotation(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.recordUid = reader.bytes(); + case 6: { + if (!(message.userFolderSharedFolders && message.userFolderSharedFolders.length)) + message.userFolderSharedFolders = []; + message.userFolderSharedFolders.push($root.Vault.UserFolderSharedFolder.decode(reader, reader.uint32())); break; } - case 2: { - message.revision = reader.int64(); + case 7: { + if (!(message.sharedFolderFolders && message.sharedFolderFolders.length)) + message.sharedFolderFolders = []; + message.sharedFolderFolders.push($root.Vault.SharedFolderFolder.decode(reader, reader.uint32())); break; } - case 3: { - message.configurationUid = reader.bytes(); + case 8: { + if (!(message.records && message.records.length)) + message.records = []; + message.records.push($root.Vault.Record.decode(reader, reader.uint32())); break; } - case 4: { - message.schedule = reader.string(); + case 9: { + if (!(message.recordMetaData && message.recordMetaData.length)) + message.recordMetaData = []; + message.recordMetaData.push($root.Vault.RecordMetaData.decode(reader, reader.uint32())); break; } - case 5: { - message.pwdComplexity = reader.bytes(); + case 10: { + if (!(message.nonSharedData && message.nonSharedData.length)) + message.nonSharedData = []; + message.nonSharedData.push($root.Vault.NonSharedData.decode(reader, reader.uint32())); break; } - case 6: { - message.disabled = reader.bool(); + case 11: { + if (!(message.recordLinks && message.recordLinks.length)) + message.recordLinks = []; + message.recordLinks.push($root.Vault.RecordLink.decode(reader, reader.uint32())); break; } - case 7: { - message.resourceUid = reader.bytes(); + case 12: { + if (!(message.userFolderRecords && message.userFolderRecords.length)) + message.userFolderRecords = []; + message.userFolderRecords.push($root.Vault.UserFolderRecord.decode(reader, reader.uint32())); break; } - case 8: { - message.lastRotation = reader.int64(); + case 13: { + if (!(message.sharedFolderRecords && message.sharedFolderRecords.length)) + message.sharedFolderRecords = []; + message.sharedFolderRecords.push($root.Vault.SharedFolderRecord.decode(reader, reader.uint32())); break; } - case 9: { - message.lastRotationStatus = reader.int32(); + case 14: { + if (!(message.sharedFolderFolderRecords && message.sharedFolderFolderRecords.length)) + message.sharedFolderFolderRecords = []; + message.sharedFolderFolderRecords.push($root.Vault.SharedFolderFolderRecord.decode(reader, reader.uint32())); + break; + } + case 15: { + if (!(message.sharedFolderUsers && message.sharedFolderUsers.length)) + message.sharedFolderUsers = []; + message.sharedFolderUsers.push($root.Vault.SharedFolderUser.decode(reader, reader.uint32())); + break; + } + case 16: { + if (!(message.sharedFolderTeams && message.sharedFolderTeams.length)) + message.sharedFolderTeams = []; + message.sharedFolderTeams.push($root.Vault.SharedFolderTeam.decode(reader, reader.uint32())); + break; + } + case 17: { + if (!(message.recordAddAuditData && message.recordAddAuditData.length)) + message.recordAddAuditData = []; + message.recordAddAuditData.push(reader.bytes()); + break; + } + case 18: { + if (!(message.teams && message.teams.length)) + message.teams = []; + message.teams.push($root.Vault.Team.decode(reader, reader.uint32())); + break; + } + case 19: { + if (!(message.sharingChanges && message.sharingChanges.length)) + message.sharingChanges = []; + message.sharingChanges.push($root.Vault.SharingChange.decode(reader, reader.uint32())); + break; + } + case 20: { + message.profile = $root.Vault.Profile.decode(reader, reader.uint32()); + break; + } + case 21: { + message.profilePic = $root.Vault.ProfilePic.decode(reader, reader.uint32()); + break; + } + case 22: { + if (!(message.pendingTeamMembers && message.pendingTeamMembers.length)) + message.pendingTeamMembers = []; + message.pendingTeamMembers.push($root.Vault.PendingTeamMember.decode(reader, reader.uint32())); + break; + } + case 23: { + if (!(message.breachWatchRecords && message.breachWatchRecords.length)) + message.breachWatchRecords = []; + message.breachWatchRecords.push($root.Vault.BreachWatchRecord.decode(reader, reader.uint32())); + break; + } + case 24: { + if (!(message.userAuths && message.userAuths.length)) + message.userAuths = []; + message.userAuths.push($root.Vault.UserAuth.decode(reader, reader.uint32())); + break; + } + case 25: { + if (!(message.breachWatchSecurityData && message.breachWatchSecurityData.length)) + message.breachWatchSecurityData = []; + message.breachWatchSecurityData.push($root.Vault.BreachWatchSecurityData.decode(reader, reader.uint32())); + break; + } + case 26: { + message.reusedPasswords = $root.Vault.ReusedPasswords.decode(reader, reader.uint32()); + break; + } + case 27: { + if (!(message.removedUserFolders && message.removedUserFolders.length)) + message.removedUserFolders = []; + message.removedUserFolders.push(reader.bytes()); + break; + } + case 28: { + if (!(message.removedSharedFolders && message.removedSharedFolders.length)) + message.removedSharedFolders = []; + message.removedSharedFolders.push(reader.bytes()); + break; + } + case 29: { + if (!(message.removedUserFolderSharedFolders && message.removedUserFolderSharedFolders.length)) + message.removedUserFolderSharedFolders = []; + message.removedUserFolderSharedFolders.push($root.Vault.UserFolderSharedFolder.decode(reader, reader.uint32())); + break; + } + case 30: { + if (!(message.removedSharedFolderFolders && message.removedSharedFolderFolders.length)) + message.removedSharedFolderFolders = []; + message.removedSharedFolderFolders.push($root.Vault.SharedFolderFolder.decode(reader, reader.uint32())); + break; + } + case 31: { + if (!(message.removedRecords && message.removedRecords.length)) + message.removedRecords = []; + message.removedRecords.push(reader.bytes()); + break; + } + case 32: { + if (!(message.removedRecordLinks && message.removedRecordLinks.length)) + message.removedRecordLinks = []; + message.removedRecordLinks.push($root.Vault.RecordLink.decode(reader, reader.uint32())); + break; + } + case 33: { + if (!(message.removedUserFolderRecords && message.removedUserFolderRecords.length)) + message.removedUserFolderRecords = []; + message.removedUserFolderRecords.push($root.Vault.UserFolderRecord.decode(reader, reader.uint32())); + break; + } + case 34: { + if (!(message.removedSharedFolderRecords && message.removedSharedFolderRecords.length)) + message.removedSharedFolderRecords = []; + message.removedSharedFolderRecords.push($root.Vault.SharedFolderRecord.decode(reader, reader.uint32())); + break; + } + case 35: { + if (!(message.removedSharedFolderFolderRecords && message.removedSharedFolderFolderRecords.length)) + message.removedSharedFolderFolderRecords = []; + message.removedSharedFolderFolderRecords.push($root.Vault.SharedFolderFolderRecord.decode(reader, reader.uint32())); + break; + } + case 36: { + if (!(message.removedSharedFolderUsers && message.removedSharedFolderUsers.length)) + message.removedSharedFolderUsers = []; + message.removedSharedFolderUsers.push($root.Vault.SharedFolderUser.decode(reader, reader.uint32())); + break; + } + case 37: { + if (!(message.removedSharedFolderTeams && message.removedSharedFolderTeams.length)) + message.removedSharedFolderTeams = []; + message.removedSharedFolderTeams.push($root.Vault.SharedFolderTeam.decode(reader, reader.uint32())); + break; + } + case 38: { + if (!(message.removedTeams && message.removedTeams.length)) + message.removedTeams = []; + message.removedTeams.push(reader.bytes()); + break; + } + case 39: { + if (!(message.ksmAppShares && message.ksmAppShares.length)) + message.ksmAppShares = []; + message.ksmAppShares.push($root.Vault.KsmChange.decode(reader, reader.uint32())); + break; + } + case 40: { + if (!(message.ksmAppClients && message.ksmAppClients.length)) + message.ksmAppClients = []; + message.ksmAppClients.push($root.Vault.KsmChange.decode(reader, reader.uint32())); + break; + } + case 41: { + if (!(message.shareInvitations && message.shareInvitations.length)) + message.shareInvitations = []; + message.shareInvitations.push($root.Vault.ShareInvitation.decode(reader, reader.uint32())); + break; + } + case 42: { + message.diagnostics = $root.Vault.SyncDiagnostics.decode(reader, reader.uint32()); + break; + } + case 43: { + if (!(message.recordRotations && message.recordRotations.length)) + message.recordRotations = []; + message.recordRotations.push($root.Vault.RecordRotation.decode(reader, reader.uint32())); + break; + } + case 44: { + if (!(message.users && message.users.length)) + message.users = []; + message.users.push($root.Vault.User.decode(reader, reader.uint32())); + break; + } + case 45: { + if (!(message.removedUsers && message.removedUsers.length)) + message.removedUsers = []; + message.removedUsers.push(reader.bytes()); + break; + } + case 46: { + if (!(message.securityScoreData && message.securityScoreData.length)) + message.securityScoreData = []; + message.securityScoreData.push($root.Vault.SecurityScoreData.decode(reader, reader.uint32())); + break; + } + case 47: { + if (!(message.notificationSync && message.notificationSync.length)) + message.notificationSync = []; + message.notificationSync.push($root.NotificationCenter.NotificationWrapper.decode(reader, reader.uint32())); + break; + } + case 48: { + message.keeperDriveData = $root.Vault.KeeperDriveData.decode(reader, reader.uint32()); break; } default: @@ -213728,282 +212638,32592 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a RecordRotation message from the specified reader or buffer, length delimited. + * Decodes a SyncDownResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.RecordRotation + * @memberof Vault.SyncDownResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.RecordRotation} RecordRotation + * @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 */ - RecordRotation.decodeDelimited = function decodeDelimited(reader) { + SyncDownResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecordRotation message. + * Verifies a SyncDownResponse message. * @function verify - * @memberof Vault.RecordRotation + * @memberof Vault.SyncDownResponse * @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) { + SyncDownResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + if (error) + return "sharingChanges." + error; + } + } + if (message.profile != null && message.hasOwnProperty("profile")) { + let error = $root.Vault.Profile.verify(message.profile); + if (error) + return "profile." + error; + } + if (message.profilePic != null && message.hasOwnProperty("profilePic")) { + let error = $root.Vault.ProfilePic.verify(message.profilePic); + 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]); + 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]); + 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]); + 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]); + if (error) + return "breachWatchSecurityData." + error; + } + } + if (message.reusedPasswords != null && message.hasOwnProperty("reusedPasswords")) { + let error = $root.Vault.ReusedPasswords.verify(message.reusedPasswords); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + if (error) + return "shareInvitations." + error; + } + } + if (message.diagnostics != null && message.hasOwnProperty("diagnostics")) { + let error = $root.Vault.SyncDiagnostics.verify(message.diagnostics); + 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]); + 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]); + 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]); + 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]); + if (error) + return "notificationSync." + error; + } + } + if (message.keeperDriveData != null && message.hasOwnProperty("keeperDriveData")) { + let error = $root.Vault.KeeperDriveData.verify(message.keeperDriveData); + 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 + * @memberof Vault.SyncDownResponse + * @static + * @param {Object.} object Plain object + * @returns {Vault.SyncDownResponse} SyncDownResponse + */ + SyncDownResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.SyncDownResponse) + return object; + let message = new $root.Vault.SyncDownResponse(); + if (object.continuationToken != null) + if (typeof object.continuationToken === "string") + $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); + else if (object.continuationToken.length >= 0) + message.continuationToken = object.continuationToken; + if (object.hasMore != null) + message.hasMore = Boolean(object.hasMore); + switch (object.cacheStatus) { + default: + if (typeof object.cacheStatus === "number") { + message.cacheStatus = object.cacheStatus; + break; + } + break; + case "KEEP": + case 0: + message.cacheStatus = 0; + break; + case "CLEAR": + case 1: + message.cacheStatus = 1; + break; + } + if (object.userFolders) { + if (!Array.isArray(object.userFolders)) + throw TypeError(".Vault.SyncDownResponse.userFolders: array expected"); + message.userFolders = []; + for (let i = 0; i < object.userFolders.length; ++i) { + if (typeof object.userFolders[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.userFolders: object expected"); + message.userFolders[i] = $root.Vault.UserFolder.fromObject(object.userFolders[i]); + } + } + if (object.sharedFolders) { + if (!Array.isArray(object.sharedFolders)) + throw TypeError(".Vault.SyncDownResponse.sharedFolders: array expected"); + message.sharedFolders = []; + for (let i = 0; i < object.sharedFolders.length; ++i) { + if (typeof object.sharedFolders[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.sharedFolders: object expected"); + message.sharedFolders[i] = $root.Vault.SharedFolder.fromObject(object.sharedFolders[i]); + } + } + if (object.userFolderSharedFolders) { + if (!Array.isArray(object.userFolderSharedFolders)) + throw TypeError(".Vault.SyncDownResponse.userFolderSharedFolders: array expected"); + message.userFolderSharedFolders = []; + for (let i = 0; i < object.userFolderSharedFolders.length; ++i) { + if (typeof object.userFolderSharedFolders[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.userFolderSharedFolders: object expected"); + message.userFolderSharedFolders[i] = $root.Vault.UserFolderSharedFolder.fromObject(object.userFolderSharedFolders[i]); + } + } + if (object.sharedFolderFolders) { + if (!Array.isArray(object.sharedFolderFolders)) + throw TypeError(".Vault.SyncDownResponse.sharedFolderFolders: array expected"); + message.sharedFolderFolders = []; + for (let i = 0; i < object.sharedFolderFolders.length; ++i) { + if (typeof object.sharedFolderFolders[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.sharedFolderFolders: object expected"); + message.sharedFolderFolders[i] = $root.Vault.SharedFolderFolder.fromObject(object.sharedFolderFolders[i]); + } + } + if (object.records) { + if (!Array.isArray(object.records)) + throw TypeError(".Vault.SyncDownResponse.records: array expected"); + message.records = []; + for (let i = 0; i < object.records.length; ++i) { + if (typeof object.records[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.records: object expected"); + message.records[i] = $root.Vault.Record.fromObject(object.records[i]); + } + } + if (object.recordMetaData) { + if (!Array.isArray(object.recordMetaData)) + throw TypeError(".Vault.SyncDownResponse.recordMetaData: array expected"); + message.recordMetaData = []; + for (let i = 0; i < object.recordMetaData.length; ++i) { + if (typeof object.recordMetaData[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.recordMetaData: object expected"); + message.recordMetaData[i] = $root.Vault.RecordMetaData.fromObject(object.recordMetaData[i]); + } + } + if (object.nonSharedData) { + if (!Array.isArray(object.nonSharedData)) + throw TypeError(".Vault.SyncDownResponse.nonSharedData: array expected"); + message.nonSharedData = []; + for (let i = 0; i < object.nonSharedData.length; ++i) { + if (typeof object.nonSharedData[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.nonSharedData: object expected"); + message.nonSharedData[i] = $root.Vault.NonSharedData.fromObject(object.nonSharedData[i]); + } + } + if (object.recordLinks) { + if (!Array.isArray(object.recordLinks)) + throw TypeError(".Vault.SyncDownResponse.recordLinks: array expected"); + message.recordLinks = []; + for (let i = 0; i < object.recordLinks.length; ++i) { + if (typeof object.recordLinks[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.recordLinks: object expected"); + message.recordLinks[i] = $root.Vault.RecordLink.fromObject(object.recordLinks[i]); + } + } + if (object.userFolderRecords) { + if (!Array.isArray(object.userFolderRecords)) + throw TypeError(".Vault.SyncDownResponse.userFolderRecords: array expected"); + message.userFolderRecords = []; + for (let i = 0; i < object.userFolderRecords.length; ++i) { + if (typeof object.userFolderRecords[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.userFolderRecords: object expected"); + message.userFolderRecords[i] = $root.Vault.UserFolderRecord.fromObject(object.userFolderRecords[i]); + } + } + if (object.sharedFolderRecords) { + if (!Array.isArray(object.sharedFolderRecords)) + throw TypeError(".Vault.SyncDownResponse.sharedFolderRecords: array expected"); + message.sharedFolderRecords = []; + for (let i = 0; i < object.sharedFolderRecords.length; ++i) { + if (typeof object.sharedFolderRecords[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.sharedFolderRecords: object expected"); + message.sharedFolderRecords[i] = $root.Vault.SharedFolderRecord.fromObject(object.sharedFolderRecords[i]); + } + } + if (object.sharedFolderFolderRecords) { + if (!Array.isArray(object.sharedFolderFolderRecords)) + throw TypeError(".Vault.SyncDownResponse.sharedFolderFolderRecords: array expected"); + message.sharedFolderFolderRecords = []; + for (let i = 0; i < object.sharedFolderFolderRecords.length; ++i) { + if (typeof object.sharedFolderFolderRecords[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.sharedFolderFolderRecords: object expected"); + message.sharedFolderFolderRecords[i] = $root.Vault.SharedFolderFolderRecord.fromObject(object.sharedFolderFolderRecords[i]); + } + } + if (object.sharedFolderUsers) { + if (!Array.isArray(object.sharedFolderUsers)) + throw TypeError(".Vault.SyncDownResponse.sharedFolderUsers: array expected"); + message.sharedFolderUsers = []; + for (let i = 0; i < object.sharedFolderUsers.length; ++i) { + if (typeof object.sharedFolderUsers[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.sharedFolderUsers: object expected"); + message.sharedFolderUsers[i] = $root.Vault.SharedFolderUser.fromObject(object.sharedFolderUsers[i]); + } + } + if (object.sharedFolderTeams) { + if (!Array.isArray(object.sharedFolderTeams)) + throw TypeError(".Vault.SyncDownResponse.sharedFolderTeams: array expected"); + message.sharedFolderTeams = []; + for (let i = 0; i < object.sharedFolderTeams.length; ++i) { + if (typeof object.sharedFolderTeams[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.sharedFolderTeams: object expected"); + message.sharedFolderTeams[i] = $root.Vault.SharedFolderTeam.fromObject(object.sharedFolderTeams[i]); + } + } + if (object.recordAddAuditData) { + if (!Array.isArray(object.recordAddAuditData)) + throw TypeError(".Vault.SyncDownResponse.recordAddAuditData: array expected"); + message.recordAddAuditData = []; + for (let i = 0; i < object.recordAddAuditData.length; ++i) + if (typeof object.recordAddAuditData[i] === "string") + $util.base64.decode(object.recordAddAuditData[i], message.recordAddAuditData[i] = $util.newBuffer($util.base64.length(object.recordAddAuditData[i])), 0); + else if (object.recordAddAuditData[i].length >= 0) + message.recordAddAuditData[i] = object.recordAddAuditData[i]; + } + if (object.teams) { + if (!Array.isArray(object.teams)) + throw TypeError(".Vault.SyncDownResponse.teams: array expected"); + message.teams = []; + for (let i = 0; i < object.teams.length; ++i) { + if (typeof object.teams[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.teams: object expected"); + message.teams[i] = $root.Vault.Team.fromObject(object.teams[i]); + } + } + if (object.sharingChanges) { + if (!Array.isArray(object.sharingChanges)) + throw TypeError(".Vault.SyncDownResponse.sharingChanges: array expected"); + message.sharingChanges = []; + for (let i = 0; i < object.sharingChanges.length; ++i) { + if (typeof object.sharingChanges[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.sharingChanges: object expected"); + message.sharingChanges[i] = $root.Vault.SharingChange.fromObject(object.sharingChanges[i]); + } + } + if (object.profile != null) { + if (typeof object.profile !== "object") + throw TypeError(".Vault.SyncDownResponse.profile: object expected"); + message.profile = $root.Vault.Profile.fromObject(object.profile); + } + if (object.profilePic != null) { + if (typeof object.profilePic !== "object") + throw TypeError(".Vault.SyncDownResponse.profilePic: object expected"); + message.profilePic = $root.Vault.ProfilePic.fromObject(object.profilePic); + } + if (object.pendingTeamMembers) { + if (!Array.isArray(object.pendingTeamMembers)) + throw TypeError(".Vault.SyncDownResponse.pendingTeamMembers: array expected"); + message.pendingTeamMembers = []; + for (let i = 0; i < object.pendingTeamMembers.length; ++i) { + if (typeof object.pendingTeamMembers[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.pendingTeamMembers: object expected"); + message.pendingTeamMembers[i] = $root.Vault.PendingTeamMember.fromObject(object.pendingTeamMembers[i]); + } + } + if (object.breachWatchRecords) { + if (!Array.isArray(object.breachWatchRecords)) + throw TypeError(".Vault.SyncDownResponse.breachWatchRecords: array expected"); + message.breachWatchRecords = []; + for (let i = 0; i < object.breachWatchRecords.length; ++i) { + if (typeof object.breachWatchRecords[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.breachWatchRecords: object expected"); + message.breachWatchRecords[i] = $root.Vault.BreachWatchRecord.fromObject(object.breachWatchRecords[i]); + } + } + if (object.userAuths) { + if (!Array.isArray(object.userAuths)) + throw TypeError(".Vault.SyncDownResponse.userAuths: array expected"); + message.userAuths = []; + for (let i = 0; i < object.userAuths.length; ++i) { + if (typeof object.userAuths[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.userAuths: object expected"); + message.userAuths[i] = $root.Vault.UserAuth.fromObject(object.userAuths[i]); + } + } + if (object.breachWatchSecurityData) { + if (!Array.isArray(object.breachWatchSecurityData)) + throw TypeError(".Vault.SyncDownResponse.breachWatchSecurityData: array expected"); + message.breachWatchSecurityData = []; + for (let i = 0; i < object.breachWatchSecurityData.length; ++i) { + if (typeof object.breachWatchSecurityData[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.breachWatchSecurityData: object expected"); + message.breachWatchSecurityData[i] = $root.Vault.BreachWatchSecurityData.fromObject(object.breachWatchSecurityData[i]); + } + } + if (object.reusedPasswords != null) { + if (typeof object.reusedPasswords !== "object") + throw TypeError(".Vault.SyncDownResponse.reusedPasswords: object expected"); + message.reusedPasswords = $root.Vault.ReusedPasswords.fromObject(object.reusedPasswords); + } + if (object.removedUserFolders) { + if (!Array.isArray(object.removedUserFolders)) + throw TypeError(".Vault.SyncDownResponse.removedUserFolders: array expected"); + message.removedUserFolders = []; + for (let i = 0; i < object.removedUserFolders.length; ++i) + if (typeof object.removedUserFolders[i] === "string") + $util.base64.decode(object.removedUserFolders[i], message.removedUserFolders[i] = $util.newBuffer($util.base64.length(object.removedUserFolders[i])), 0); + else if (object.removedUserFolders[i].length >= 0) + message.removedUserFolders[i] = object.removedUserFolders[i]; + } + if (object.removedSharedFolders) { + if (!Array.isArray(object.removedSharedFolders)) + throw TypeError(".Vault.SyncDownResponse.removedSharedFolders: array expected"); + message.removedSharedFolders = []; + for (let i = 0; i < object.removedSharedFolders.length; ++i) + if (typeof object.removedSharedFolders[i] === "string") + $util.base64.decode(object.removedSharedFolders[i], message.removedSharedFolders[i] = $util.newBuffer($util.base64.length(object.removedSharedFolders[i])), 0); + else if (object.removedSharedFolders[i].length >= 0) + message.removedSharedFolders[i] = object.removedSharedFolders[i]; + } + if (object.removedUserFolderSharedFolders) { + if (!Array.isArray(object.removedUserFolderSharedFolders)) + throw TypeError(".Vault.SyncDownResponse.removedUserFolderSharedFolders: array expected"); + message.removedUserFolderSharedFolders = []; + for (let i = 0; i < object.removedUserFolderSharedFolders.length; ++i) { + if (typeof object.removedUserFolderSharedFolders[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.removedUserFolderSharedFolders: object expected"); + message.removedUserFolderSharedFolders[i] = $root.Vault.UserFolderSharedFolder.fromObject(object.removedUserFolderSharedFolders[i]); + } + } + if (object.removedSharedFolderFolders) { + if (!Array.isArray(object.removedSharedFolderFolders)) + throw TypeError(".Vault.SyncDownResponse.removedSharedFolderFolders: array expected"); + message.removedSharedFolderFolders = []; + for (let i = 0; i < object.removedSharedFolderFolders.length; ++i) { + if (typeof object.removedSharedFolderFolders[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.removedSharedFolderFolders: object expected"); + message.removedSharedFolderFolders[i] = $root.Vault.SharedFolderFolder.fromObject(object.removedSharedFolderFolders[i]); + } + } + if (object.removedRecords) { + if (!Array.isArray(object.removedRecords)) + throw TypeError(".Vault.SyncDownResponse.removedRecords: array expected"); + message.removedRecords = []; + for (let i = 0; i < object.removedRecords.length; ++i) + if (typeof object.removedRecords[i] === "string") + $util.base64.decode(object.removedRecords[i], message.removedRecords[i] = $util.newBuffer($util.base64.length(object.removedRecords[i])), 0); + else if (object.removedRecords[i].length >= 0) + message.removedRecords[i] = object.removedRecords[i]; + } + if (object.removedRecordLinks) { + if (!Array.isArray(object.removedRecordLinks)) + throw TypeError(".Vault.SyncDownResponse.removedRecordLinks: array expected"); + message.removedRecordLinks = []; + for (let i = 0; i < object.removedRecordLinks.length; ++i) { + if (typeof object.removedRecordLinks[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.removedRecordLinks: object expected"); + message.removedRecordLinks[i] = $root.Vault.RecordLink.fromObject(object.removedRecordLinks[i]); + } + } + if (object.removedUserFolderRecords) { + if (!Array.isArray(object.removedUserFolderRecords)) + throw TypeError(".Vault.SyncDownResponse.removedUserFolderRecords: array expected"); + message.removedUserFolderRecords = []; + for (let i = 0; i < object.removedUserFolderRecords.length; ++i) { + if (typeof object.removedUserFolderRecords[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.removedUserFolderRecords: object expected"); + message.removedUserFolderRecords[i] = $root.Vault.UserFolderRecord.fromObject(object.removedUserFolderRecords[i]); + } + } + if (object.removedSharedFolderRecords) { + if (!Array.isArray(object.removedSharedFolderRecords)) + throw TypeError(".Vault.SyncDownResponse.removedSharedFolderRecords: array expected"); + message.removedSharedFolderRecords = []; + for (let i = 0; i < object.removedSharedFolderRecords.length; ++i) { + if (typeof object.removedSharedFolderRecords[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.removedSharedFolderRecords: object expected"); + message.removedSharedFolderRecords[i] = $root.Vault.SharedFolderRecord.fromObject(object.removedSharedFolderRecords[i]); + } + } + if (object.removedSharedFolderFolderRecords) { + if (!Array.isArray(object.removedSharedFolderFolderRecords)) + throw TypeError(".Vault.SyncDownResponse.removedSharedFolderFolderRecords: array expected"); + message.removedSharedFolderFolderRecords = []; + for (let i = 0; i < object.removedSharedFolderFolderRecords.length; ++i) { + if (typeof object.removedSharedFolderFolderRecords[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.removedSharedFolderFolderRecords: object expected"); + message.removedSharedFolderFolderRecords[i] = $root.Vault.SharedFolderFolderRecord.fromObject(object.removedSharedFolderFolderRecords[i]); + } + } + if (object.removedSharedFolderUsers) { + if (!Array.isArray(object.removedSharedFolderUsers)) + throw TypeError(".Vault.SyncDownResponse.removedSharedFolderUsers: array expected"); + message.removedSharedFolderUsers = []; + for (let i = 0; i < object.removedSharedFolderUsers.length; ++i) { + if (typeof object.removedSharedFolderUsers[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.removedSharedFolderUsers: object expected"); + message.removedSharedFolderUsers[i] = $root.Vault.SharedFolderUser.fromObject(object.removedSharedFolderUsers[i]); + } + } + if (object.removedSharedFolderTeams) { + if (!Array.isArray(object.removedSharedFolderTeams)) + throw TypeError(".Vault.SyncDownResponse.removedSharedFolderTeams: array expected"); + message.removedSharedFolderTeams = []; + for (let i = 0; i < object.removedSharedFolderTeams.length; ++i) { + if (typeof object.removedSharedFolderTeams[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.removedSharedFolderTeams: object expected"); + message.removedSharedFolderTeams[i] = $root.Vault.SharedFolderTeam.fromObject(object.removedSharedFolderTeams[i]); + } + } + if (object.removedTeams) { + if (!Array.isArray(object.removedTeams)) + throw TypeError(".Vault.SyncDownResponse.removedTeams: array expected"); + message.removedTeams = []; + for (let i = 0; i < object.removedTeams.length; ++i) + if (typeof object.removedTeams[i] === "string") + $util.base64.decode(object.removedTeams[i], message.removedTeams[i] = $util.newBuffer($util.base64.length(object.removedTeams[i])), 0); + else if (object.removedTeams[i].length >= 0) + message.removedTeams[i] = object.removedTeams[i]; + } + if (object.ksmAppShares) { + if (!Array.isArray(object.ksmAppShares)) + throw TypeError(".Vault.SyncDownResponse.ksmAppShares: array expected"); + message.ksmAppShares = []; + for (let i = 0; i < object.ksmAppShares.length; ++i) { + if (typeof object.ksmAppShares[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.ksmAppShares: object expected"); + message.ksmAppShares[i] = $root.Vault.KsmChange.fromObject(object.ksmAppShares[i]); + } + } + if (object.ksmAppClients) { + if (!Array.isArray(object.ksmAppClients)) + throw TypeError(".Vault.SyncDownResponse.ksmAppClients: array expected"); + message.ksmAppClients = []; + for (let i = 0; i < object.ksmAppClients.length; ++i) { + if (typeof object.ksmAppClients[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.ksmAppClients: object expected"); + message.ksmAppClients[i] = $root.Vault.KsmChange.fromObject(object.ksmAppClients[i]); + } + } + if (object.shareInvitations) { + if (!Array.isArray(object.shareInvitations)) + throw TypeError(".Vault.SyncDownResponse.shareInvitations: array expected"); + message.shareInvitations = []; + for (let i = 0; i < object.shareInvitations.length; ++i) { + if (typeof object.shareInvitations[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.shareInvitations: object expected"); + message.shareInvitations[i] = $root.Vault.ShareInvitation.fromObject(object.shareInvitations[i]); + } + } + if (object.diagnostics != null) { + if (typeof object.diagnostics !== "object") + throw TypeError(".Vault.SyncDownResponse.diagnostics: object expected"); + message.diagnostics = $root.Vault.SyncDiagnostics.fromObject(object.diagnostics); + } + if (object.recordRotations) { + if (!Array.isArray(object.recordRotations)) + throw TypeError(".Vault.SyncDownResponse.recordRotations: array expected"); + message.recordRotations = []; + for (let i = 0; i < object.recordRotations.length; ++i) { + if (typeof object.recordRotations[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.recordRotations: object expected"); + message.recordRotations[i] = $root.Vault.RecordRotation.fromObject(object.recordRotations[i]); + } + } + if (object.users) { + if (!Array.isArray(object.users)) + throw TypeError(".Vault.SyncDownResponse.users: array expected"); + message.users = []; + for (let i = 0; i < object.users.length; ++i) { + if (typeof object.users[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.users: object expected"); + message.users[i] = $root.Vault.User.fromObject(object.users[i]); + } + } + if (object.removedUsers) { + if (!Array.isArray(object.removedUsers)) + throw TypeError(".Vault.SyncDownResponse.removedUsers: array expected"); + message.removedUsers = []; + for (let i = 0; i < object.removedUsers.length; ++i) + if (typeof object.removedUsers[i] === "string") + $util.base64.decode(object.removedUsers[i], message.removedUsers[i] = $util.newBuffer($util.base64.length(object.removedUsers[i])), 0); + else if (object.removedUsers[i].length >= 0) + message.removedUsers[i] = object.removedUsers[i]; + } + if (object.securityScoreData) { + if (!Array.isArray(object.securityScoreData)) + throw TypeError(".Vault.SyncDownResponse.securityScoreData: array expected"); + message.securityScoreData = []; + for (let i = 0; i < object.securityScoreData.length; ++i) { + if (typeof object.securityScoreData[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.securityScoreData: object expected"); + message.securityScoreData[i] = $root.Vault.SecurityScoreData.fromObject(object.securityScoreData[i]); + } + } + if (object.notificationSync) { + if (!Array.isArray(object.notificationSync)) + throw TypeError(".Vault.SyncDownResponse.notificationSync: array expected"); + message.notificationSync = []; + for (let i = 0; i < object.notificationSync.length; ++i) { + if (typeof object.notificationSync[i] !== "object") + throw TypeError(".Vault.SyncDownResponse.notificationSync: object expected"); + message.notificationSync[i] = $root.NotificationCenter.NotificationWrapper.fromObject(object.notificationSync[i]); + } + } + if (object.keeperDriveData != null) { + if (typeof object.keeperDriveData !== "object") + throw TypeError(".Vault.SyncDownResponse.keeperDriveData: object expected"); + message.keeperDriveData = $root.Vault.KeeperDriveData.fromObject(object.keeperDriveData); + } + return message; + }; + + /** + * Creates a plain object from a SyncDownResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.SyncDownResponse + * @static + * @param {Vault.SyncDownResponse} message SyncDownResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SyncDownResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.userFolders = []; + object.sharedFolders = []; + object.userFolderSharedFolders = []; + object.sharedFolderFolders = []; + object.records = []; + object.recordMetaData = []; + object.nonSharedData = []; + object.recordLinks = []; + object.userFolderRecords = []; + object.sharedFolderRecords = []; + object.sharedFolderFolderRecords = []; + object.sharedFolderUsers = []; + object.sharedFolderTeams = []; + object.recordAddAuditData = []; + object.teams = []; + object.sharingChanges = []; + object.pendingTeamMembers = []; + object.breachWatchRecords = []; + object.userAuths = []; + object.breachWatchSecurityData = []; + object.removedUserFolders = []; + object.removedSharedFolders = []; + object.removedUserFolderSharedFolders = []; + object.removedSharedFolderFolders = []; + object.removedRecords = []; + object.removedRecordLinks = []; + object.removedUserFolderRecords = []; + object.removedSharedFolderRecords = []; + object.removedSharedFolderFolderRecords = []; + object.removedSharedFolderUsers = []; + object.removedSharedFolderTeams = []; + object.removedTeams = []; + object.ksmAppShares = []; + object.ksmAppClients = []; + object.shareInvitations = []; + object.recordRotations = []; + object.users = []; + object.removedUsers = []; + object.securityScoreData = []; + object.notificationSync = []; + } + if (options.defaults) { + if (options.bytes === String) + object.continuationToken = ""; + else { + object.continuationToken = []; + if (options.bytes !== Array) + object.continuationToken = $util.newBuffer(object.continuationToken); + } + object.hasMore = false; + object.cacheStatus = options.enums === String ? "KEEP" : 0; + object.profile = null; + object.profilePic = null; + object.reusedPasswords = null; + object.diagnostics = null; + object.keeperDriveData = null; + } + if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; + if (message.hasMore != null && message.hasOwnProperty("hasMore")) + object.hasMore = message.hasMore; + if (message.cacheStatus != null && message.hasOwnProperty("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 = []; + for (let j = 0; j < message.userFolders.length; ++j) + object.userFolders[j] = $root.Vault.UserFolder.toObject(message.userFolders[j], options); + } + if (message.sharedFolders && message.sharedFolders.length) { + object.sharedFolders = []; + for (let j = 0; j < message.sharedFolders.length; ++j) + object.sharedFolders[j] = $root.Vault.SharedFolder.toObject(message.sharedFolders[j], options); + } + if (message.userFolderSharedFolders && message.userFolderSharedFolders.length) { + object.userFolderSharedFolders = []; + for (let j = 0; j < message.userFolderSharedFolders.length; ++j) + object.userFolderSharedFolders[j] = $root.Vault.UserFolderSharedFolder.toObject(message.userFolderSharedFolders[j], options); + } + if (message.sharedFolderFolders && message.sharedFolderFolders.length) { + object.sharedFolderFolders = []; + for (let j = 0; j < message.sharedFolderFolders.length; ++j) + object.sharedFolderFolders[j] = $root.Vault.SharedFolderFolder.toObject(message.sharedFolderFolders[j], options); + } + if (message.records && message.records.length) { + object.records = []; + for (let j = 0; j < message.records.length; ++j) + object.records[j] = $root.Vault.Record.toObject(message.records[j], options); + } + if (message.recordMetaData && message.recordMetaData.length) { + object.recordMetaData = []; + for (let j = 0; j < message.recordMetaData.length; ++j) + object.recordMetaData[j] = $root.Vault.RecordMetaData.toObject(message.recordMetaData[j], options); + } + if (message.nonSharedData && message.nonSharedData.length) { + object.nonSharedData = []; + for (let j = 0; j < message.nonSharedData.length; ++j) + object.nonSharedData[j] = $root.Vault.NonSharedData.toObject(message.nonSharedData[j], options); + } + if (message.recordLinks && message.recordLinks.length) { + object.recordLinks = []; + for (let j = 0; j < message.recordLinks.length; ++j) + object.recordLinks[j] = $root.Vault.RecordLink.toObject(message.recordLinks[j], options); + } + if (message.userFolderRecords && message.userFolderRecords.length) { + object.userFolderRecords = []; + for (let j = 0; j < message.userFolderRecords.length; ++j) + object.userFolderRecords[j] = $root.Vault.UserFolderRecord.toObject(message.userFolderRecords[j], options); + } + if (message.sharedFolderRecords && message.sharedFolderRecords.length) { + object.sharedFolderRecords = []; + for (let j = 0; j < message.sharedFolderRecords.length; ++j) + object.sharedFolderRecords[j] = $root.Vault.SharedFolderRecord.toObject(message.sharedFolderRecords[j], options); + } + if (message.sharedFolderFolderRecords && message.sharedFolderFolderRecords.length) { + object.sharedFolderFolderRecords = []; + for (let j = 0; j < message.sharedFolderFolderRecords.length; ++j) + object.sharedFolderFolderRecords[j] = $root.Vault.SharedFolderFolderRecord.toObject(message.sharedFolderFolderRecords[j], options); + } + if (message.sharedFolderUsers && message.sharedFolderUsers.length) { + object.sharedFolderUsers = []; + for (let j = 0; j < message.sharedFolderUsers.length; ++j) + object.sharedFolderUsers[j] = $root.Vault.SharedFolderUser.toObject(message.sharedFolderUsers[j], options); + } + if (message.sharedFolderTeams && message.sharedFolderTeams.length) { + object.sharedFolderTeams = []; + for (let j = 0; j < message.sharedFolderTeams.length; ++j) + object.sharedFolderTeams[j] = $root.Vault.SharedFolderTeam.toObject(message.sharedFolderTeams[j], options); + } + if (message.recordAddAuditData && message.recordAddAuditData.length) { + object.recordAddAuditData = []; + for (let j = 0; j < message.recordAddAuditData.length; ++j) + object.recordAddAuditData[j] = options.bytes === String ? $util.base64.encode(message.recordAddAuditData[j], 0, message.recordAddAuditData[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordAddAuditData[j]) : message.recordAddAuditData[j]; + } + if (message.teams && message.teams.length) { + object.teams = []; + for (let j = 0; j < message.teams.length; ++j) + object.teams[j] = $root.Vault.Team.toObject(message.teams[j], options); + } + if (message.sharingChanges && message.sharingChanges.length) { + object.sharingChanges = []; + for (let j = 0; j < message.sharingChanges.length; ++j) + object.sharingChanges[j] = $root.Vault.SharingChange.toObject(message.sharingChanges[j], options); + } + if (message.profile != null && message.hasOwnProperty("profile")) + object.profile = $root.Vault.Profile.toObject(message.profile, options); + if (message.profilePic != null && message.hasOwnProperty("profilePic")) + object.profilePic = $root.Vault.ProfilePic.toObject(message.profilePic, options); + if (message.pendingTeamMembers && message.pendingTeamMembers.length) { + object.pendingTeamMembers = []; + for (let j = 0; j < message.pendingTeamMembers.length; ++j) + object.pendingTeamMembers[j] = $root.Vault.PendingTeamMember.toObject(message.pendingTeamMembers[j], options); + } + if (message.breachWatchRecords && message.breachWatchRecords.length) { + object.breachWatchRecords = []; + for (let j = 0; j < message.breachWatchRecords.length; ++j) + object.breachWatchRecords[j] = $root.Vault.BreachWatchRecord.toObject(message.breachWatchRecords[j], options); + } + if (message.userAuths && message.userAuths.length) { + object.userAuths = []; + for (let j = 0; j < message.userAuths.length; ++j) + object.userAuths[j] = $root.Vault.UserAuth.toObject(message.userAuths[j], options); + } + if (message.breachWatchSecurityData && message.breachWatchSecurityData.length) { + object.breachWatchSecurityData = []; + for (let j = 0; j < message.breachWatchSecurityData.length; ++j) + object.breachWatchSecurityData[j] = $root.Vault.BreachWatchSecurityData.toObject(message.breachWatchSecurityData[j], options); + } + if (message.reusedPasswords != null && message.hasOwnProperty("reusedPasswords")) + object.reusedPasswords = $root.Vault.ReusedPasswords.toObject(message.reusedPasswords, options); + if (message.removedUserFolders && message.removedUserFolders.length) { + object.removedUserFolders = []; + for (let j = 0; j < message.removedUserFolders.length; ++j) + object.removedUserFolders[j] = options.bytes === String ? $util.base64.encode(message.removedUserFolders[j], 0, message.removedUserFolders[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.removedUserFolders[j]) : message.removedUserFolders[j]; + } + if (message.removedSharedFolders && message.removedSharedFolders.length) { + object.removedSharedFolders = []; + for (let j = 0; j < message.removedSharedFolders.length; ++j) + object.removedSharedFolders[j] = options.bytes === String ? $util.base64.encode(message.removedSharedFolders[j], 0, message.removedSharedFolders[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.removedSharedFolders[j]) : message.removedSharedFolders[j]; + } + if (message.removedUserFolderSharedFolders && message.removedUserFolderSharedFolders.length) { + object.removedUserFolderSharedFolders = []; + for (let j = 0; j < message.removedUserFolderSharedFolders.length; ++j) + object.removedUserFolderSharedFolders[j] = $root.Vault.UserFolderSharedFolder.toObject(message.removedUserFolderSharedFolders[j], options); + } + if (message.removedSharedFolderFolders && message.removedSharedFolderFolders.length) { + object.removedSharedFolderFolders = []; + for (let j = 0; j < message.removedSharedFolderFolders.length; ++j) + object.removedSharedFolderFolders[j] = $root.Vault.SharedFolderFolder.toObject(message.removedSharedFolderFolders[j], options); + } + if (message.removedRecords && message.removedRecords.length) { + object.removedRecords = []; + for (let j = 0; j < message.removedRecords.length; ++j) + object.removedRecords[j] = options.bytes === String ? $util.base64.encode(message.removedRecords[j], 0, message.removedRecords[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.removedRecords[j]) : message.removedRecords[j]; + } + if (message.removedRecordLinks && message.removedRecordLinks.length) { + object.removedRecordLinks = []; + for (let j = 0; j < message.removedRecordLinks.length; ++j) + object.removedRecordLinks[j] = $root.Vault.RecordLink.toObject(message.removedRecordLinks[j], options); + } + if (message.removedUserFolderRecords && message.removedUserFolderRecords.length) { + object.removedUserFolderRecords = []; + for (let j = 0; j < message.removedUserFolderRecords.length; ++j) + object.removedUserFolderRecords[j] = $root.Vault.UserFolderRecord.toObject(message.removedUserFolderRecords[j], options); + } + if (message.removedSharedFolderRecords && message.removedSharedFolderRecords.length) { + object.removedSharedFolderRecords = []; + for (let j = 0; j < message.removedSharedFolderRecords.length; ++j) + object.removedSharedFolderRecords[j] = $root.Vault.SharedFolderRecord.toObject(message.removedSharedFolderRecords[j], options); + } + if (message.removedSharedFolderFolderRecords && message.removedSharedFolderFolderRecords.length) { + object.removedSharedFolderFolderRecords = []; + for (let j = 0; j < message.removedSharedFolderFolderRecords.length; ++j) + object.removedSharedFolderFolderRecords[j] = $root.Vault.SharedFolderFolderRecord.toObject(message.removedSharedFolderFolderRecords[j], options); + } + if (message.removedSharedFolderUsers && message.removedSharedFolderUsers.length) { + object.removedSharedFolderUsers = []; + for (let j = 0; j < message.removedSharedFolderUsers.length; ++j) + object.removedSharedFolderUsers[j] = $root.Vault.SharedFolderUser.toObject(message.removedSharedFolderUsers[j], options); + } + if (message.removedSharedFolderTeams && message.removedSharedFolderTeams.length) { + object.removedSharedFolderTeams = []; + for (let j = 0; j < message.removedSharedFolderTeams.length; ++j) + object.removedSharedFolderTeams[j] = $root.Vault.SharedFolderTeam.toObject(message.removedSharedFolderTeams[j], options); + } + if (message.removedTeams && message.removedTeams.length) { + object.removedTeams = []; + for (let j = 0; j < message.removedTeams.length; ++j) + object.removedTeams[j] = options.bytes === String ? $util.base64.encode(message.removedTeams[j], 0, message.removedTeams[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.removedTeams[j]) : message.removedTeams[j]; + } + if (message.ksmAppShares && message.ksmAppShares.length) { + object.ksmAppShares = []; + for (let j = 0; j < message.ksmAppShares.length; ++j) + object.ksmAppShares[j] = $root.Vault.KsmChange.toObject(message.ksmAppShares[j], options); + } + if (message.ksmAppClients && message.ksmAppClients.length) { + object.ksmAppClients = []; + for (let j = 0; j < message.ksmAppClients.length; ++j) + object.ksmAppClients[j] = $root.Vault.KsmChange.toObject(message.ksmAppClients[j], options); + } + if (message.shareInvitations && message.shareInvitations.length) { + object.shareInvitations = []; + for (let j = 0; j < message.shareInvitations.length; ++j) + object.shareInvitations[j] = $root.Vault.ShareInvitation.toObject(message.shareInvitations[j], options); + } + if (message.diagnostics != null && message.hasOwnProperty("diagnostics")) + object.diagnostics = $root.Vault.SyncDiagnostics.toObject(message.diagnostics, options); + if (message.recordRotations && message.recordRotations.length) { + object.recordRotations = []; + for (let j = 0; j < message.recordRotations.length; ++j) + object.recordRotations[j] = $root.Vault.RecordRotation.toObject(message.recordRotations[j], options); + } + if (message.users && message.users.length) { + object.users = []; + for (let j = 0; j < message.users.length; ++j) + object.users[j] = $root.Vault.User.toObject(message.users[j], options); + } + if (message.removedUsers && message.removedUsers.length) { + object.removedUsers = []; + for (let j = 0; j < message.removedUsers.length; ++j) + object.removedUsers[j] = options.bytes === String ? $util.base64.encode(message.removedUsers[j], 0, message.removedUsers[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.removedUsers[j]) : message.removedUsers[j]; + } + if (message.securityScoreData && message.securityScoreData.length) { + object.securityScoreData = []; + for (let j = 0; j < message.securityScoreData.length; ++j) + object.securityScoreData[j] = $root.Vault.SecurityScoreData.toObject(message.securityScoreData[j], options); + } + if (message.notificationSync && message.notificationSync.length) { + object.notificationSync = []; + for (let j = 0; j < message.notificationSync.length; ++j) + object.notificationSync[j] = $root.NotificationCenter.NotificationWrapper.toObject(message.notificationSync[j], options); + } + if (message.keeperDriveData != null && message.hasOwnProperty("keeperDriveData")) + object.keeperDriveData = $root.Vault.KeeperDriveData.toObject(message.keeperDriveData, options); + return object; + }; + + /** + * Converts this SyncDownResponse to JSON. + * @function toJSON + * @memberof Vault.SyncDownResponse + * @instance + * @returns {Object.} JSON object + */ + SyncDownResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SyncDownResponse + * @function getTypeUrl + * @memberof Vault.SyncDownResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SyncDownResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.SyncDownResponse"; + }; + + return SyncDownResponse; + })(); + + Vault.DriveRecord = (function() { + + /** + * Properties of a DriveRecord. + * @memberof Vault + * @interface IDriveRecord + * @property {Uint8Array|null} [recordUid] DriveRecord recordUid + * @property {number|Long|null} [revision] DriveRecord revision + * @property {number|null} [version] DriveRecord version + * @property {boolean|null} [shared] DriveRecord shared + * @property {number|Long|null} [clientModifiedTime] DriveRecord clientModifiedTime + * @property {number|Long|null} [fileSize] DriveRecord fileSize + * @property {number|Long|null} [thumbnailSize] DriveRecord thumbnailSize + */ + + /** + * Constructs a new DriveRecord. + * @memberof Vault + * @classdesc Represents a DriveRecord. + * @implements IDriveRecord + * @constructor + * @param {Vault.IDriveRecord=} [properties] Properties to set + */ + function DriveRecord(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DriveRecord recordUid. + * @member {Uint8Array} recordUid + * @memberof Vault.DriveRecord + * @instance + */ + DriveRecord.prototype.recordUid = $util.newBuffer([]); + + /** + * DriveRecord revision. + * @member {number|Long} revision + * @memberof Vault.DriveRecord + * @instance + */ + DriveRecord.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * DriveRecord version. + * @member {number} version + * @memberof Vault.DriveRecord + * @instance + */ + DriveRecord.prototype.version = 0; + + /** + * DriveRecord shared. + * @member {boolean} shared + * @memberof Vault.DriveRecord + * @instance + */ + DriveRecord.prototype.shared = false; + + /** + * DriveRecord clientModifiedTime. + * @member {number|Long} clientModifiedTime + * @memberof Vault.DriveRecord + * @instance + */ + DriveRecord.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * DriveRecord fileSize. + * @member {number|Long} fileSize + * @memberof Vault.DriveRecord + * @instance + */ + DriveRecord.prototype.fileSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * DriveRecord thumbnailSize. + * @member {number|Long} thumbnailSize + * @memberof Vault.DriveRecord + * @instance + */ + DriveRecord.prototype.thumbnailSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new DriveRecord instance using the specified properties. + * @function create + * @memberof Vault.DriveRecord + * @static + * @param {Vault.IDriveRecord=} [properties] Properties to set + * @returns {Vault.DriveRecord} DriveRecord instance + */ + DriveRecord.create = function create(properties) { + return new DriveRecord(properties); + }; + + /** + * Encodes the specified DriveRecord message. Does not implicitly {@link Vault.DriveRecord.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.version); + if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.shared); + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.clientModifiedTime); + if (message.fileSize != null && Object.hasOwnProperty.call(message, "fileSize")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.fileSize); + if (message.thumbnailSize != null && Object.hasOwnProperty.call(message, "thumbnailSize")) + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.thumbnailSize); + 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 + * @memberof Vault.DriveRecord + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.DriveRecord(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.revision = reader.int64(); + break; + } + case 3: { + message.version = reader.int32(); + break; + } + case 4: { + message.shared = reader.bool(); + break; + } + case 5: { + message.clientModifiedTime = reader.int64(); + break; + } + case 6: { + message.fileSize = reader.int64(); + break; + } + case 7: { + message.thumbnailSize = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) + return "recordUid: buffer expected"; + if (message.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 + * @memberof Vault.DriveRecord + * @static + * @param {Object.} object Plain object + * @returns {Vault.DriveRecord} DriveRecord + */ + DriveRecord.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.DriveRecord) + return object; + let message = new $root.Vault.DriveRecord(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if (object.version != null) + message.version = object.version | 0; + if (object.shared != null) + message.shared = Boolean(object.shared); + if (object.clientModifiedTime != null) + if ($util.Long) + (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; + else if (typeof object.clientModifiedTime === "string") + message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); + else if (typeof object.clientModifiedTime === "number") + message.clientModifiedTime = object.clientModifiedTime; + else if (typeof object.clientModifiedTime === "object") + message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); + if (object.fileSize != null) + if ($util.Long) + (message.fileSize = $util.Long.fromValue(object.fileSize)).unsigned = false; + else if (typeof object.fileSize === "string") + message.fileSize = parseInt(object.fileSize, 10); + else if (typeof object.fileSize === "number") + message.fileSize = object.fileSize; + else if (typeof object.fileSize === "object") + message.fileSize = new $util.LongBits(object.fileSize.low >>> 0, object.fileSize.high >>> 0).toNumber(); + if (object.thumbnailSize != null) + if ($util.Long) + (message.thumbnailSize = $util.Long.fromValue(object.thumbnailSize)).unsigned = false; + else if (typeof object.thumbnailSize === "string") + message.thumbnailSize = parseInt(object.thumbnailSize, 10); + else if (typeof object.thumbnailSize === "number") + message.thumbnailSize = object.thumbnailSize; + else if (typeof object.thumbnailSize === "object") + message.thumbnailSize = new $util.LongBits(object.thumbnailSize.low >>> 0, object.thumbnailSize.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a DriveRecord message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.DriveRecord + * @static + * @param {Vault.DriveRecord} message DriveRecord + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DriveRecord.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + object.version = 0; + object.shared = false; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.clientModifiedTime = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.fileSize = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.thumbnailSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.thumbnailSize = options.longs === String ? "0" : 0; + } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof 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")) + object.version = message.version; + if (message.shared != null && message.hasOwnProperty("shared")) + object.shared = message.shared; + if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) + if (typeof message.clientModifiedTime === "number") + object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; + else + object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; + if (message.fileSize != null && message.hasOwnProperty("fileSize")) + if (typeof message.fileSize === "number") + object.fileSize = options.longs === String ? String(message.fileSize) : message.fileSize; + else + object.fileSize = options.longs === String ? $util.Long.prototype.toString.call(message.fileSize) : options.longs === Number ? new $util.LongBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0).toNumber() : message.fileSize; + if (message.thumbnailSize != null && message.hasOwnProperty("thumbnailSize")) + if (typeof 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; + return object; + }; + + /** + * Converts this DriveRecord to JSON. + * @function toJSON + * @memberof Vault.DriveRecord + * @instance + * @returns {Object.} JSON object + */ + DriveRecord.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DriveRecord + * @function getTypeUrl + * @memberof Vault.DriveRecord + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DriveRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.DriveRecord"; + }; + + return DriveRecord; + })(); + + Vault.FolderSharingState = (function() { + + /** + * Properties of a FolderSharingState. + * @memberof Vault + * @interface IFolderSharingState + * @property {Uint8Array|null} [folderUid] FolderSharingState folderUid + * @property {boolean|null} [shared] FolderSharingState shared + * @property {number|null} [count] FolderSharingState count + */ + + /** + * Constructs a new FolderSharingState. + * @memberof Vault + * @classdesc Represents a FolderSharingState. + * @implements IFolderSharingState + * @constructor + * @param {Vault.IFolderSharingState=} [properties] Properties to set + */ + function FolderSharingState(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FolderSharingState folderUid. + * @member {Uint8Array} folderUid + * @memberof Vault.FolderSharingState + * @instance + */ + FolderSharingState.prototype.folderUid = $util.newBuffer([]); + + /** + * FolderSharingState shared. + * @member {boolean} shared + * @memberof Vault.FolderSharingState + * @instance + */ + FolderSharingState.prototype.shared = false; + + /** + * FolderSharingState count. + * @member {number} count + * @memberof Vault.FolderSharingState + * @instance + */ + FolderSharingState.prototype.count = 0; + + /** + * Creates a new FolderSharingState instance using the specified properties. + * @function create + * @memberof Vault.FolderSharingState + * @static + * @param {Vault.IFolderSharingState=} [properties] Properties to set + * @returns {Vault.FolderSharingState} FolderSharingState instance + */ + FolderSharingState.create = function create(properties) { + return new FolderSharingState(properties); + }; + + /** + * Encodes the specified FolderSharingState message. Does not implicitly {@link Vault.FolderSharingState.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); + if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.shared); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.count); + 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 + * @memberof Vault.FolderSharingState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.FolderSharingState(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.folderUid = reader.bytes(); + break; + } + case 2: { + message.shared = reader.bool(); + break; + } + case 3: { + message.count = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.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 + * @memberof Vault.FolderSharingState + * @static + * @param {Object.} object Plain object + * @returns {Vault.FolderSharingState} FolderSharingState + */ + FolderSharingState.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.FolderSharingState) + return object; + let message = new $root.Vault.FolderSharingState(); + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.shared != null) + message.shared = Boolean(object.shared); + if (object.count != null) + message.count = object.count | 0; + return message; + }; + + /** + * Creates a plain object from a FolderSharingState message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.FolderSharingState + * @static + * @param {Vault.FolderSharingState} message FolderSharingState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FolderSharingState.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.folderUid = ""; + else { + object.folderUid = []; + if (options.bytes !== Array) + object.folderUid = $util.newBuffer(object.folderUid); + } + object.shared = false; + object.count = 0; + } + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.shared != null && message.hasOwnProperty("shared")) + object.shared = message.shared; + if (message.count != null && message.hasOwnProperty("count")) + object.count = message.count; + return object; + }; + + /** + * Converts this FolderSharingState to JSON. + * @function toJSON + * @memberof Vault.FolderSharingState + * @instance + * @returns {Object.} JSON object + */ + FolderSharingState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FolderSharingState + * @function getTypeUrl + * @memberof Vault.FolderSharingState + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FolderSharingState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.FolderSharingState"; + }; + + return FolderSharingState; + })(); + + Vault.KeeperDriveData = (function() { + + /** + * Properties of a KeeperDriveData. + * @memberof Vault + * @interface IKeeperDriveData + * @property {Array.|null} [folders] KeeperDriveData folders + * @property {Array.|null} [folderKeys] KeeperDriveData folderKeys + * @property {Array.|null} [folderAccesses] KeeperDriveData folderAccesses + * @property {Array.|null} [revokedFolderAccesses] KeeperDriveData revokedFolderAccesses + * @property {Array.|null} [deniedFolderAccesses] KeeperDriveData deniedFolderAccesses + * @property {Array.|null} [recordData] KeeperDriveData recordData + * @property {Array.|null} [nonSharedData] KeeperDriveData nonSharedData + * @property {Array.|null} [recordAccesses] KeeperDriveData recordAccesses + * @property {Array.|null} [revokedRecordAccesses] KeeperDriveData revokedRecordAccesses + * @property {Array.|null} [recordSharingStates] KeeperDriveData recordSharingStates + * @property {Array.|null} [recordLinks] KeeperDriveData recordLinks + * @property {Array.|null} [removedRecordLinks] KeeperDriveData removedRecordLinks + * @property {Array.|null} [breachWatchRecords] KeeperDriveData breachWatchRecords + * @property {Array.|null} [securityScoreData] KeeperDriveData securityScoreData + * @property {Array.|null} [breachWatchSecurityData] KeeperDriveData breachWatchSecurityData + * @property {Array.|null} [removedFolders] KeeperDriveData removedFolders + * @property {Array.|null} [removedFolderRecords] KeeperDriveData removedFolderRecords + * @property {Array.|null} [folderRecords] KeeperDriveData folderRecords + * @property {Array.|null} [recordRotationData] KeeperDriveData recordRotationData + * @property {Array.|null} [records] KeeperDriveData records + * @property {Array.|null} [folderSharingState] KeeperDriveData folderSharingState + * @property {Array.|null} [rawDagData] KeeperDriveData rawDagData + */ + + /** + * Constructs a new KeeperDriveData. + * @memberof Vault + * @classdesc Represents a KeeperDriveData. + * @implements IKeeperDriveData + * @constructor + * @param {Vault.IKeeperDriveData=} [properties] Properties to set + */ + function KeeperDriveData(properties) { + this.folders = []; + this.folderKeys = []; + this.folderAccesses = []; + this.revokedFolderAccesses = []; + this.deniedFolderAccesses = []; + this.recordData = []; + this.nonSharedData = []; + this.recordAccesses = []; + this.revokedRecordAccesses = []; + this.recordSharingStates = []; + this.recordLinks = []; + this.removedRecordLinks = []; + this.breachWatchRecords = []; + this.securityScoreData = []; + this.breachWatchSecurityData = []; + this.removedFolders = []; + this.removedFolderRecords = []; + this.folderRecords = []; + this.recordRotationData = []; + this.records = []; + this.folderSharingState = []; + this.rawDagData = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * KeeperDriveData folders. + * @member {Array.} folders + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.folders = $util.emptyArray; + + /** + * KeeperDriveData folderKeys. + * @member {Array.} folderKeys + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.folderKeys = $util.emptyArray; + + /** + * KeeperDriveData folderAccesses. + * @member {Array.} folderAccesses + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.folderAccesses = $util.emptyArray; + + /** + * KeeperDriveData revokedFolderAccesses. + * @member {Array.} revokedFolderAccesses + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.revokedFolderAccesses = $util.emptyArray; + + /** + * KeeperDriveData deniedFolderAccesses. + * @member {Array.} deniedFolderAccesses + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.deniedFolderAccesses = $util.emptyArray; + + /** + * KeeperDriveData recordData. + * @member {Array.} recordData + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.recordData = $util.emptyArray; + + /** + * KeeperDriveData nonSharedData. + * @member {Array.} nonSharedData + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.nonSharedData = $util.emptyArray; + + /** + * KeeperDriveData recordAccesses. + * @member {Array.} recordAccesses + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.recordAccesses = $util.emptyArray; + + /** + * KeeperDriveData revokedRecordAccesses. + * @member {Array.} revokedRecordAccesses + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.revokedRecordAccesses = $util.emptyArray; + + /** + * KeeperDriveData recordSharingStates. + * @member {Array.} recordSharingStates + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.recordSharingStates = $util.emptyArray; + + /** + * KeeperDriveData recordLinks. + * @member {Array.} recordLinks + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.recordLinks = $util.emptyArray; + + /** + * KeeperDriveData removedRecordLinks. + * @member {Array.} removedRecordLinks + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.removedRecordLinks = $util.emptyArray; + + /** + * KeeperDriveData breachWatchRecords. + * @member {Array.} breachWatchRecords + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.breachWatchRecords = $util.emptyArray; + + /** + * KeeperDriveData securityScoreData. + * @member {Array.} securityScoreData + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.securityScoreData = $util.emptyArray; + + /** + * KeeperDriveData breachWatchSecurityData. + * @member {Array.} breachWatchSecurityData + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.breachWatchSecurityData = $util.emptyArray; + + /** + * KeeperDriveData removedFolders. + * @member {Array.} removedFolders + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.removedFolders = $util.emptyArray; + + /** + * KeeperDriveData removedFolderRecords. + * @member {Array.} removedFolderRecords + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.removedFolderRecords = $util.emptyArray; + + /** + * KeeperDriveData folderRecords. + * @member {Array.} folderRecords + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.folderRecords = $util.emptyArray; + + /** + * KeeperDriveData recordRotationData. + * @member {Array.} recordRotationData + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.recordRotationData = $util.emptyArray; + + /** + * KeeperDriveData records. + * @member {Array.} records + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.records = $util.emptyArray; + + /** + * KeeperDriveData folderSharingState. + * @member {Array.} folderSharingState + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.folderSharingState = $util.emptyArray; + + /** + * KeeperDriveData rawDagData. + * @member {Array.} rawDagData + * @memberof Vault.KeeperDriveData + * @instance + */ + KeeperDriveData.prototype.rawDagData = $util.emptyArray; + + /** + * Creates a new KeeperDriveData instance using the specified properties. + * @function create + * @memberof Vault.KeeperDriveData + * @static + * @param {Vault.IKeeperDriveData=} [properties] Properties to set + * @returns {Vault.KeeperDriveData} KeeperDriveData instance + */ + KeeperDriveData.create = function create(properties) { + return new KeeperDriveData(properties); + }; + + /** + * Encodes the specified KeeperDriveData message. Does not implicitly {@link Vault.KeeperDriveData.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.folders != null && message.folders.length) + for (let i = 0; i < message.folders.length; ++i) + $root.Folder.FolderData.encode(message.folders[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.folderKeys != null && message.folderKeys.length) + for (let i = 0; i < message.folderKeys.length; ++i) + $root.Folder.FolderKey.encode(message.folderKeys[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.folderAccesses != null && message.folderAccesses.length) + for (let i = 0; i < message.folderAccesses.length; ++i) + $root.Folder.FolderAccessData.encode(message.folderAccesses[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.revokedFolderAccesses != null && message.revokedFolderAccesses.length) + for (let i = 0; i < message.revokedFolderAccesses.length; ++i) + $root.Folder.RevokedAccess.encode(message.revokedFolderAccesses[i], writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.deniedFolderAccesses != null && message.deniedFolderAccesses.length) + for (let i = 0; i < message.deniedFolderAccesses.length; ++i) + $root.Folder.DeniedAccess.encode(message.deniedFolderAccesses[i], writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.recordData != null && message.recordData.length) + for (let i = 0; i < message.recordData.length; ++i) + $root.Folder.RecordData.encode(message.recordData[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.nonSharedData != null && message.nonSharedData.length) + for (let i = 0; i < message.nonSharedData.length; ++i) + $root.Vault.NonSharedData.encode(message.nonSharedData[i], writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.recordAccesses != null && message.recordAccesses.length) + for (let i = 0; i < message.recordAccesses.length; ++i) + $root.Folder.RecordAccessData.encode(message.recordAccesses[i], writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); + if (message.revokedRecordAccesses != null && message.revokedRecordAccesses.length) + for (let i = 0; i < message.revokedRecordAccesses.length; ++i) + $root.record.v3.sharing.RevokedAccess.encode(message.revokedRecordAccesses[i], writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); + if (message.recordSharingStates != null && message.recordSharingStates.length) + for (let i = 0; i < message.recordSharingStates.length; ++i) + $root.record.v3.sharing.RecordSharingState.encode(message.recordSharingStates[i], writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); + if (message.recordLinks != null && message.recordLinks.length) + for (let i = 0; i < message.recordLinks.length; ++i) + $root.Vault.RecordLink.encode(message.recordLinks[i], writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim(); + if (message.removedRecordLinks != null && message.removedRecordLinks.length) + for (let i = 0; i < message.removedRecordLinks.length; ++i) + $root.Vault.RecordLink.encode(message.removedRecordLinks[i], writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); + if (message.breachWatchRecords != null && message.breachWatchRecords.length) + for (let i = 0; i < message.breachWatchRecords.length; ++i) + $root.Vault.BreachWatchRecord.encode(message.breachWatchRecords[i], writer.uint32(/* id 40, wireType 2 =*/322).fork()).ldelim(); + if (message.securityScoreData != null && message.securityScoreData.length) + for (let i = 0; i < message.securityScoreData.length; ++i) + $root.Vault.SecurityScoreData.encode(message.securityScoreData[i], writer.uint32(/* id 41, wireType 2 =*/330).fork()).ldelim(); + if (message.breachWatchSecurityData != null && message.breachWatchSecurityData.length) + for (let i = 0; i < message.breachWatchSecurityData.length; ++i) + $root.Vault.BreachWatchSecurityData.encode(message.breachWatchSecurityData[i], writer.uint32(/* id 42, wireType 2 =*/338).fork()).ldelim(); + if (message.removedFolders != null && message.removedFolders.length) + for (let i = 0; i < message.removedFolders.length; ++i) + $root.Folder.FolderRemoved.encode(message.removedFolders[i], writer.uint32(/* id 48, wireType 2 =*/386).fork()).ldelim(); + if (message.removedFolderRecords != null && message.removedFolderRecords.length) + for (let i = 0; i < message.removedFolderRecords.length; ++i) + $root.Records.FolderRecordKey.encode(message.removedFolderRecords[i], writer.uint32(/* id 52, wireType 2 =*/418).fork()).ldelim(); + if (message.folderRecords != null && message.folderRecords.length) + for (let i = 0; i < message.folderRecords.length; ++i) + $root.Folder.FolderRecord.encode(message.folderRecords[i], writer.uint32(/* id 54, wireType 2 =*/434).fork()).ldelim(); + if (message.recordRotationData != null && message.recordRotationData.length) + for (let i = 0; i < message.recordRotationData.length; ++i) + $root.Vault.RecordRotation.encode(message.recordRotationData[i], writer.uint32(/* id 56, wireType 2 =*/450).fork()).ldelim(); + if (message.records != null && message.records.length) + for (let i = 0; i < message.records.length; ++i) + $root.Vault.DriveRecord.encode(message.records[i], writer.uint32(/* id 58, wireType 2 =*/466).fork()).ldelim(); + if (message.folderSharingState != null && message.folderSharingState.length) + for (let i = 0; i < message.folderSharingState.length; ++i) + $root.Vault.FolderSharingState.encode(message.folderSharingState[i], writer.uint32(/* id 60, wireType 2 =*/482).fork()).ldelim(); + if (message.rawDagData != null && message.rawDagData.length) + for (let i = 0; i < message.rawDagData.length; ++i) + $root.Dag.DebugData.encode(message.rawDagData[i], writer.uint32(/* id 101, wireType 2 =*/810).fork()).ldelim(); + 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 + * @memberof Vault.KeeperDriveData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.KeeperDriveData(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 10: { + if (!(message.folders && message.folders.length)) + message.folders = []; + message.folders.push($root.Folder.FolderData.decode(reader, reader.uint32())); + break; + } + case 13: { + if (!(message.folderKeys && message.folderKeys.length)) + message.folderKeys = []; + message.folderKeys.push($root.Folder.FolderKey.decode(reader, reader.uint32())); + break; + } + case 15: { + if (!(message.folderAccesses && message.folderAccesses.length)) + message.folderAccesses = []; + message.folderAccesses.push($root.Folder.FolderAccessData.decode(reader, reader.uint32())); + break; + } + case 17: { + if (!(message.revokedFolderAccesses && message.revokedFolderAccesses.length)) + message.revokedFolderAccesses = []; + message.revokedFolderAccesses.push($root.Folder.RevokedAccess.decode(reader, reader.uint32())); + break; + } + case 18: { + if (!(message.deniedFolderAccesses && message.deniedFolderAccesses.length)) + message.deniedFolderAccesses = []; + message.deniedFolderAccesses.push($root.Folder.DeniedAccess.decode(reader, reader.uint32())); + break; + } + case 20: { + if (!(message.recordData && message.recordData.length)) + message.recordData = []; + message.recordData.push($root.Folder.RecordData.decode(reader, reader.uint32())); + break; + } + case 21: { + if (!(message.nonSharedData && message.nonSharedData.length)) + message.nonSharedData = []; + message.nonSharedData.push($root.Vault.NonSharedData.decode(reader, reader.uint32())); + break; + } + case 25: { + if (!(message.recordAccesses && message.recordAccesses.length)) + message.recordAccesses = []; + message.recordAccesses.push($root.Folder.RecordAccessData.decode(reader, reader.uint32())); + break; + } + case 27: { + if (!(message.revokedRecordAccesses && message.revokedRecordAccesses.length)) + message.revokedRecordAccesses = []; + message.revokedRecordAccesses.push($root.record.v3.sharing.RevokedAccess.decode(reader, reader.uint32())); + break; + } + case 28: { + if (!(message.recordSharingStates && message.recordSharingStates.length)) + message.recordSharingStates = []; + message.recordSharingStates.push($root.record.v3.sharing.RecordSharingState.decode(reader, reader.uint32())); + break; + } + case 30: { + if (!(message.recordLinks && message.recordLinks.length)) + message.recordLinks = []; + message.recordLinks.push($root.Vault.RecordLink.decode(reader, reader.uint32())); + break; + } + case 32: { + if (!(message.removedRecordLinks && message.removedRecordLinks.length)) + message.removedRecordLinks = []; + message.removedRecordLinks.push($root.Vault.RecordLink.decode(reader, reader.uint32())); + break; + } + case 40: { + if (!(message.breachWatchRecords && message.breachWatchRecords.length)) + message.breachWatchRecords = []; + message.breachWatchRecords.push($root.Vault.BreachWatchRecord.decode(reader, reader.uint32())); + break; + } + case 41: { + if (!(message.securityScoreData && message.securityScoreData.length)) + message.securityScoreData = []; + message.securityScoreData.push($root.Vault.SecurityScoreData.decode(reader, reader.uint32())); + break; + } + case 42: { + if (!(message.breachWatchSecurityData && message.breachWatchSecurityData.length)) + message.breachWatchSecurityData = []; + message.breachWatchSecurityData.push($root.Vault.BreachWatchSecurityData.decode(reader, reader.uint32())); + break; + } + case 48: { + if (!(message.removedFolders && message.removedFolders.length)) + message.removedFolders = []; + message.removedFolders.push($root.Folder.FolderRemoved.decode(reader, reader.uint32())); + break; + } + case 52: { + if (!(message.removedFolderRecords && message.removedFolderRecords.length)) + message.removedFolderRecords = []; + message.removedFolderRecords.push($root.Records.FolderRecordKey.decode(reader, reader.uint32())); + break; + } + case 54: { + if (!(message.folderRecords && message.folderRecords.length)) + message.folderRecords = []; + message.folderRecords.push($root.Folder.FolderRecord.decode(reader, reader.uint32())); + break; + } + case 56: { + if (!(message.recordRotationData && message.recordRotationData.length)) + message.recordRotationData = []; + message.recordRotationData.push($root.Vault.RecordRotation.decode(reader, reader.uint32())); + break; + } + case 58: { + if (!(message.records && message.records.length)) + message.records = []; + message.records.push($root.Vault.DriveRecord.decode(reader, reader.uint32())); + break; + } + case 60: { + if (!(message.folderSharingState && message.folderSharingState.length)) + message.folderSharingState = []; + message.folderSharingState.push($root.Vault.FolderSharingState.decode(reader, reader.uint32())); + break; + } + case 101: { + if (!(message.rawDagData && message.rawDagData.length)) + message.rawDagData = []; + message.rawDagData.push($root.Dag.DebugData.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.Folder.FolderData.verify(message.folders[i]); + 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]); + 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]); + 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]); + if (error) + return "revokedFolderAccesses." + error; + } + } + if (message.deniedFolderAccesses != null && message.hasOwnProperty("deniedFolderAccesses")) { + if (!Array.isArray(message.deniedFolderAccesses)) + return "deniedFolderAccesses: array expected"; + for (let i = 0; i < message.deniedFolderAccesses.length; ++i) { + let error = $root.Folder.DeniedAccess.verify(message.deniedFolderAccesses[i]); + if (error) + return "deniedFolderAccesses." + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + 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 + * @memberof Vault.KeeperDriveData + * @static + * @param {Object.} object Plain object + * @returns {Vault.KeeperDriveData} KeeperDriveData + */ + KeeperDriveData.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.KeeperDriveData) + return object; + let message = new $root.Vault.KeeperDriveData(); + if (object.folders) { + if (!Array.isArray(object.folders)) + throw TypeError(".Vault.KeeperDriveData.folders: array expected"); + message.folders = []; + for (let i = 0; i < object.folders.length; ++i) { + if (typeof object.folders[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.folders: object expected"); + message.folders[i] = $root.Folder.FolderData.fromObject(object.folders[i]); + } + } + if (object.folderKeys) { + if (!Array.isArray(object.folderKeys)) + throw TypeError(".Vault.KeeperDriveData.folderKeys: array expected"); + message.folderKeys = []; + for (let i = 0; i < object.folderKeys.length; ++i) { + if (typeof object.folderKeys[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.folderKeys: object expected"); + message.folderKeys[i] = $root.Folder.FolderKey.fromObject(object.folderKeys[i]); + } + } + if (object.folderAccesses) { + if (!Array.isArray(object.folderAccesses)) + throw TypeError(".Vault.KeeperDriveData.folderAccesses: array expected"); + message.folderAccesses = []; + for (let i = 0; i < object.folderAccesses.length; ++i) { + if (typeof object.folderAccesses[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.folderAccesses: object expected"); + message.folderAccesses[i] = $root.Folder.FolderAccessData.fromObject(object.folderAccesses[i]); + } + } + if (object.revokedFolderAccesses) { + if (!Array.isArray(object.revokedFolderAccesses)) + throw TypeError(".Vault.KeeperDriveData.revokedFolderAccesses: array expected"); + message.revokedFolderAccesses = []; + for (let i = 0; i < object.revokedFolderAccesses.length; ++i) { + if (typeof object.revokedFolderAccesses[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.revokedFolderAccesses: object expected"); + message.revokedFolderAccesses[i] = $root.Folder.RevokedAccess.fromObject(object.revokedFolderAccesses[i]); + } + } + if (object.deniedFolderAccesses) { + if (!Array.isArray(object.deniedFolderAccesses)) + throw TypeError(".Vault.KeeperDriveData.deniedFolderAccesses: array expected"); + message.deniedFolderAccesses = []; + for (let i = 0; i < object.deniedFolderAccesses.length; ++i) { + if (typeof object.deniedFolderAccesses[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.deniedFolderAccesses: object expected"); + message.deniedFolderAccesses[i] = $root.Folder.DeniedAccess.fromObject(object.deniedFolderAccesses[i]); + } + } + if (object.recordData) { + if (!Array.isArray(object.recordData)) + throw TypeError(".Vault.KeeperDriveData.recordData: array expected"); + message.recordData = []; + for (let i = 0; i < object.recordData.length; ++i) { + if (typeof object.recordData[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.recordData: object expected"); + message.recordData[i] = $root.Folder.RecordData.fromObject(object.recordData[i]); + } + } + if (object.nonSharedData) { + if (!Array.isArray(object.nonSharedData)) + throw TypeError(".Vault.KeeperDriveData.nonSharedData: array expected"); + message.nonSharedData = []; + for (let i = 0; i < object.nonSharedData.length; ++i) { + if (typeof object.nonSharedData[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.nonSharedData: object expected"); + message.nonSharedData[i] = $root.Vault.NonSharedData.fromObject(object.nonSharedData[i]); + } + } + if (object.recordAccesses) { + if (!Array.isArray(object.recordAccesses)) + throw TypeError(".Vault.KeeperDriveData.recordAccesses: array expected"); + message.recordAccesses = []; + for (let i = 0; i < object.recordAccesses.length; ++i) { + if (typeof object.recordAccesses[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.recordAccesses: object expected"); + message.recordAccesses[i] = $root.Folder.RecordAccessData.fromObject(object.recordAccesses[i]); + } + } + if (object.revokedRecordAccesses) { + if (!Array.isArray(object.revokedRecordAccesses)) + throw TypeError(".Vault.KeeperDriveData.revokedRecordAccesses: array expected"); + message.revokedRecordAccesses = []; + for (let i = 0; i < object.revokedRecordAccesses.length; ++i) { + if (typeof object.revokedRecordAccesses[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.revokedRecordAccesses: object expected"); + message.revokedRecordAccesses[i] = $root.record.v3.sharing.RevokedAccess.fromObject(object.revokedRecordAccesses[i]); + } + } + if (object.recordSharingStates) { + if (!Array.isArray(object.recordSharingStates)) + throw TypeError(".Vault.KeeperDriveData.recordSharingStates: array expected"); + message.recordSharingStates = []; + for (let i = 0; i < object.recordSharingStates.length; ++i) { + if (typeof object.recordSharingStates[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.recordSharingStates: object expected"); + message.recordSharingStates[i] = $root.record.v3.sharing.RecordSharingState.fromObject(object.recordSharingStates[i]); + } + } + if (object.recordLinks) { + if (!Array.isArray(object.recordLinks)) + throw TypeError(".Vault.KeeperDriveData.recordLinks: array expected"); + message.recordLinks = []; + for (let i = 0; i < object.recordLinks.length; ++i) { + if (typeof object.recordLinks[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.recordLinks: object expected"); + message.recordLinks[i] = $root.Vault.RecordLink.fromObject(object.recordLinks[i]); + } + } + if (object.removedRecordLinks) { + if (!Array.isArray(object.removedRecordLinks)) + throw TypeError(".Vault.KeeperDriveData.removedRecordLinks: array expected"); + message.removedRecordLinks = []; + for (let i = 0; i < object.removedRecordLinks.length; ++i) { + if (typeof object.removedRecordLinks[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.removedRecordLinks: object expected"); + message.removedRecordLinks[i] = $root.Vault.RecordLink.fromObject(object.removedRecordLinks[i]); + } + } + if (object.breachWatchRecords) { + if (!Array.isArray(object.breachWatchRecords)) + throw TypeError(".Vault.KeeperDriveData.breachWatchRecords: array expected"); + message.breachWatchRecords = []; + for (let i = 0; i < object.breachWatchRecords.length; ++i) { + if (typeof object.breachWatchRecords[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.breachWatchRecords: object expected"); + message.breachWatchRecords[i] = $root.Vault.BreachWatchRecord.fromObject(object.breachWatchRecords[i]); + } + } + if (object.securityScoreData) { + if (!Array.isArray(object.securityScoreData)) + throw TypeError(".Vault.KeeperDriveData.securityScoreData: array expected"); + message.securityScoreData = []; + for (let i = 0; i < object.securityScoreData.length; ++i) { + if (typeof object.securityScoreData[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.securityScoreData: object expected"); + message.securityScoreData[i] = $root.Vault.SecurityScoreData.fromObject(object.securityScoreData[i]); + } + } + if (object.breachWatchSecurityData) { + if (!Array.isArray(object.breachWatchSecurityData)) + throw TypeError(".Vault.KeeperDriveData.breachWatchSecurityData: array expected"); + message.breachWatchSecurityData = []; + for (let i = 0; i < object.breachWatchSecurityData.length; ++i) { + if (typeof object.breachWatchSecurityData[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.breachWatchSecurityData: object expected"); + message.breachWatchSecurityData[i] = $root.Vault.BreachWatchSecurityData.fromObject(object.breachWatchSecurityData[i]); + } + } + if (object.removedFolders) { + if (!Array.isArray(object.removedFolders)) + throw TypeError(".Vault.KeeperDriveData.removedFolders: array expected"); + message.removedFolders = []; + for (let i = 0; i < object.removedFolders.length; ++i) { + if (typeof object.removedFolders[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.removedFolders: object expected"); + message.removedFolders[i] = $root.Folder.FolderRemoved.fromObject(object.removedFolders[i]); + } + } + if (object.removedFolderRecords) { + if (!Array.isArray(object.removedFolderRecords)) + throw TypeError(".Vault.KeeperDriveData.removedFolderRecords: array expected"); + message.removedFolderRecords = []; + for (let i = 0; i < object.removedFolderRecords.length; ++i) { + if (typeof object.removedFolderRecords[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.removedFolderRecords: object expected"); + message.removedFolderRecords[i] = $root.Records.FolderRecordKey.fromObject(object.removedFolderRecords[i]); + } + } + if (object.folderRecords) { + if (!Array.isArray(object.folderRecords)) + throw TypeError(".Vault.KeeperDriveData.folderRecords: array expected"); + message.folderRecords = []; + for (let i = 0; i < object.folderRecords.length; ++i) { + if (typeof object.folderRecords[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.folderRecords: object expected"); + message.folderRecords[i] = $root.Folder.FolderRecord.fromObject(object.folderRecords[i]); + } + } + if (object.recordRotationData) { + if (!Array.isArray(object.recordRotationData)) + throw TypeError(".Vault.KeeperDriveData.recordRotationData: array expected"); + message.recordRotationData = []; + for (let i = 0; i < object.recordRotationData.length; ++i) { + if (typeof object.recordRotationData[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.recordRotationData: object expected"); + message.recordRotationData[i] = $root.Vault.RecordRotation.fromObject(object.recordRotationData[i]); + } + } + if (object.records) { + if (!Array.isArray(object.records)) + throw TypeError(".Vault.KeeperDriveData.records: array expected"); + message.records = []; + for (let i = 0; i < object.records.length; ++i) { + if (typeof object.records[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.records: object expected"); + message.records[i] = $root.Vault.DriveRecord.fromObject(object.records[i]); + } + } + if (object.folderSharingState) { + if (!Array.isArray(object.folderSharingState)) + throw TypeError(".Vault.KeeperDriveData.folderSharingState: array expected"); + message.folderSharingState = []; + for (let i = 0; i < object.folderSharingState.length; ++i) { + if (typeof object.folderSharingState[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.folderSharingState: object expected"); + message.folderSharingState[i] = $root.Vault.FolderSharingState.fromObject(object.folderSharingState[i]); + } + } + if (object.rawDagData) { + if (!Array.isArray(object.rawDagData)) + throw TypeError(".Vault.KeeperDriveData.rawDagData: array expected"); + message.rawDagData = []; + for (let i = 0; i < object.rawDagData.length; ++i) { + if (typeof object.rawDagData[i] !== "object") + throw TypeError(".Vault.KeeperDriveData.rawDagData: object expected"); + message.rawDagData[i] = $root.Dag.DebugData.fromObject(object.rawDagData[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a KeeperDriveData message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.KeeperDriveData + * @static + * @param {Vault.KeeperDriveData} message KeeperDriveData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + KeeperDriveData.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.folders = []; + object.folderKeys = []; + object.folderAccesses = []; + object.revokedFolderAccesses = []; + object.deniedFolderAccesses = []; + object.recordData = []; + object.nonSharedData = []; + object.recordAccesses = []; + object.revokedRecordAccesses = []; + object.recordSharingStates = []; + object.recordLinks = []; + object.removedRecordLinks = []; + object.breachWatchRecords = []; + object.securityScoreData = []; + object.breachWatchSecurityData = []; + object.removedFolders = []; + object.removedFolderRecords = []; + object.folderRecords = []; + object.recordRotationData = []; + object.records = []; + object.folderSharingState = []; + object.rawDagData = []; + } + if (message.folders && message.folders.length) { + object.folders = []; + for (let j = 0; j < message.folders.length; ++j) + object.folders[j] = $root.Folder.FolderData.toObject(message.folders[j], options); + } + if (message.folderKeys && message.folderKeys.length) { + object.folderKeys = []; + for (let j = 0; j < message.folderKeys.length; ++j) + object.folderKeys[j] = $root.Folder.FolderKey.toObject(message.folderKeys[j], options); + } + if (message.folderAccesses && message.folderAccesses.length) { + object.folderAccesses = []; + for (let j = 0; j < message.folderAccesses.length; ++j) + object.folderAccesses[j] = $root.Folder.FolderAccessData.toObject(message.folderAccesses[j], options); + } + if (message.revokedFolderAccesses && message.revokedFolderAccesses.length) { + object.revokedFolderAccesses = []; + for (let j = 0; j < message.revokedFolderAccesses.length; ++j) + object.revokedFolderAccesses[j] = $root.Folder.RevokedAccess.toObject(message.revokedFolderAccesses[j], options); + } + if (message.deniedFolderAccesses && message.deniedFolderAccesses.length) { + object.deniedFolderAccesses = []; + for (let j = 0; j < message.deniedFolderAccesses.length; ++j) + object.deniedFolderAccesses[j] = $root.Folder.DeniedAccess.toObject(message.deniedFolderAccesses[j], options); + } + if (message.recordData && message.recordData.length) { + object.recordData = []; + for (let j = 0; j < message.recordData.length; ++j) + object.recordData[j] = $root.Folder.RecordData.toObject(message.recordData[j], options); + } + if (message.nonSharedData && message.nonSharedData.length) { + object.nonSharedData = []; + for (let j = 0; j < message.nonSharedData.length; ++j) + object.nonSharedData[j] = $root.Vault.NonSharedData.toObject(message.nonSharedData[j], options); + } + if (message.recordAccesses && message.recordAccesses.length) { + object.recordAccesses = []; + for (let j = 0; j < message.recordAccesses.length; ++j) + object.recordAccesses[j] = $root.Folder.RecordAccessData.toObject(message.recordAccesses[j], options); + } + if (message.revokedRecordAccesses && message.revokedRecordAccesses.length) { + object.revokedRecordAccesses = []; + for (let j = 0; j < message.revokedRecordAccesses.length; ++j) + object.revokedRecordAccesses[j] = $root.record.v3.sharing.RevokedAccess.toObject(message.revokedRecordAccesses[j], options); + } + if (message.recordSharingStates && message.recordSharingStates.length) { + object.recordSharingStates = []; + for (let j = 0; j < message.recordSharingStates.length; ++j) + object.recordSharingStates[j] = $root.record.v3.sharing.RecordSharingState.toObject(message.recordSharingStates[j], options); + } + if (message.recordLinks && message.recordLinks.length) { + object.recordLinks = []; + for (let j = 0; j < message.recordLinks.length; ++j) + object.recordLinks[j] = $root.Vault.RecordLink.toObject(message.recordLinks[j], options); + } + if (message.removedRecordLinks && message.removedRecordLinks.length) { + object.removedRecordLinks = []; + for (let j = 0; j < message.removedRecordLinks.length; ++j) + object.removedRecordLinks[j] = $root.Vault.RecordLink.toObject(message.removedRecordLinks[j], options); + } + if (message.breachWatchRecords && message.breachWatchRecords.length) { + object.breachWatchRecords = []; + for (let j = 0; j < message.breachWatchRecords.length; ++j) + object.breachWatchRecords[j] = $root.Vault.BreachWatchRecord.toObject(message.breachWatchRecords[j], options); + } + if (message.securityScoreData && message.securityScoreData.length) { + object.securityScoreData = []; + for (let j = 0; j < message.securityScoreData.length; ++j) + object.securityScoreData[j] = $root.Vault.SecurityScoreData.toObject(message.securityScoreData[j], options); + } + if (message.breachWatchSecurityData && message.breachWatchSecurityData.length) { + object.breachWatchSecurityData = []; + for (let j = 0; j < message.breachWatchSecurityData.length; ++j) + object.breachWatchSecurityData[j] = $root.Vault.BreachWatchSecurityData.toObject(message.breachWatchSecurityData[j], options); + } + if (message.removedFolders && message.removedFolders.length) { + object.removedFolders = []; + for (let j = 0; j < message.removedFolders.length; ++j) + object.removedFolders[j] = $root.Folder.FolderRemoved.toObject(message.removedFolders[j], options); + } + if (message.removedFolderRecords && message.removedFolderRecords.length) { + object.removedFolderRecords = []; + for (let j = 0; j < message.removedFolderRecords.length; ++j) + object.removedFolderRecords[j] = $root.Records.FolderRecordKey.toObject(message.removedFolderRecords[j], options); + } + if (message.folderRecords && message.folderRecords.length) { + object.folderRecords = []; + for (let j = 0; j < message.folderRecords.length; ++j) + object.folderRecords[j] = $root.Folder.FolderRecord.toObject(message.folderRecords[j], options); + } + if (message.recordRotationData && message.recordRotationData.length) { + object.recordRotationData = []; + for (let j = 0; j < message.recordRotationData.length; ++j) + object.recordRotationData[j] = $root.Vault.RecordRotation.toObject(message.recordRotationData[j], options); + } + if (message.records && message.records.length) { + object.records = []; + for (let j = 0; j < message.records.length; ++j) + object.records[j] = $root.Vault.DriveRecord.toObject(message.records[j], options); + } + if (message.folderSharingState && message.folderSharingState.length) { + object.folderSharingState = []; + for (let j = 0; j < message.folderSharingState.length; ++j) + object.folderSharingState[j] = $root.Vault.FolderSharingState.toObject(message.folderSharingState[j], options); + } + if (message.rawDagData && message.rawDagData.length) { + object.rawDagData = []; + for (let j = 0; j < message.rawDagData.length; ++j) + object.rawDagData[j] = $root.Dag.DebugData.toObject(message.rawDagData[j], options); + } + return object; + }; + + /** + * Converts this KeeperDriveData to JSON. + * @function toJSON + * @memberof Vault.KeeperDriveData + * @instance + * @returns {Object.} JSON object + */ + KeeperDriveData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for KeeperDriveData + * @function getTypeUrl + * @memberof Vault.KeeperDriveData + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + KeeperDriveData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.KeeperDriveData"; + }; + + return KeeperDriveData; + })(); + + Vault.UserFolder = (function() { + + /** + * Properties of a UserFolder. + * @memberof Vault + * @interface IUserFolder + * @property {Uint8Array|null} [folderUid] UserFolder folderUid + * @property {Uint8Array|null} [parentUid] UserFolder parentUid + * @property {Uint8Array|null} [userFolderKey] UserFolder userFolderKey + * @property {Records.RecordKeyType|null} [keyType] UserFolder keyType + * @property {number|Long|null} [revision] UserFolder revision + * @property {Uint8Array|null} [data] UserFolder data + */ + + /** + * Constructs a new UserFolder. + * @memberof Vault + * @classdesc Represents a UserFolder. + * @implements IUserFolder + * @constructor + * @param {Vault.IUserFolder=} [properties] Properties to set + */ + function UserFolder(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UserFolder folderUid. + * @member {Uint8Array} folderUid + * @memberof Vault.UserFolder + * @instance + */ + UserFolder.prototype.folderUid = $util.newBuffer([]); + + /** + * UserFolder parentUid. + * @member {Uint8Array} parentUid + * @memberof Vault.UserFolder + * @instance + */ + UserFolder.prototype.parentUid = $util.newBuffer([]); + + /** + * UserFolder userFolderKey. + * @member {Uint8Array} userFolderKey + * @memberof Vault.UserFolder + * @instance + */ + UserFolder.prototype.userFolderKey = $util.newBuffer([]); + + /** + * UserFolder keyType. + * @member {Records.RecordKeyType} keyType + * @memberof Vault.UserFolder + * @instance + */ + UserFolder.prototype.keyType = 0; + + /** + * UserFolder revision. + * @member {number|Long} revision + * @memberof Vault.UserFolder + * @instance + */ + UserFolder.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * UserFolder data. + * @member {Uint8Array} data + * @memberof Vault.UserFolder + * @instance + */ + UserFolder.prototype.data = $util.newBuffer([]); + + /** + * Creates a new UserFolder instance using the specified properties. + * @function create + * @memberof Vault.UserFolder + * @static + * @param {Vault.IUserFolder=} [properties] Properties to set + * @returns {Vault.UserFolder} UserFolder instance + */ + UserFolder.create = function create(properties) { + return new UserFolder(properties); + }; + + /** + * Encodes the specified UserFolder message. Does not implicitly {@link Vault.UserFolder.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); + if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.parentUid); + if (message.userFolderKey != null && Object.hasOwnProperty.call(message, "userFolderKey")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.userFolderKey); + if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.keyType); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.revision); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.data); + 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 + * @memberof Vault.UserFolder + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.UserFolder(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.folderUid = reader.bytes(); + break; + } + case 2: { + message.parentUid = reader.bytes(); + break; + } + case 3: { + message.userFolderKey = reader.bytes(); + break; + } + case 4: { + message.keyType = reader.int32(); + break; + } + case 5: { + message.revision = reader.int64(); + break; + } + case 6: { + message.data = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.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 + * @memberof Vault.UserFolder + * @static + * @param {Object.} object Plain object + * @returns {Vault.UserFolder} UserFolder + */ + UserFolder.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.UserFolder) + return object; + let message = new $root.Vault.UserFolder(); + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.parentUid != null) + if (typeof object.parentUid === "string") + $util.base64.decode(object.parentUid, message.parentUid = $util.newBuffer($util.base64.length(object.parentUid)), 0); + else if (object.parentUid.length >= 0) + message.parentUid = object.parentUid; + if (object.userFolderKey != null) + if (typeof object.userFolderKey === "string") + $util.base64.decode(object.userFolderKey, message.userFolderKey = $util.newBuffer($util.base64.length(object.userFolderKey)), 0); + else if (object.userFolderKey.length >= 0) + message.userFolderKey = object.userFolderKey; + switch (object.keyType) { + default: + if (typeof object.keyType === "number") { + message.keyType = object.keyType; + break; + } + break; + case "NO_KEY": + case 0: + message.keyType = 0; + break; + case "ENCRYPTED_BY_DATA_KEY": + case 1: + message.keyType = 1; + break; + case "ENCRYPTED_BY_PUBLIC_KEY": + case 2: + message.keyType = 2; + break; + case "ENCRYPTED_BY_DATA_KEY_GCM": + case 3: + message.keyType = 3; + break; + case "ENCRYPTED_BY_PUBLIC_KEY_ECC": + case 4: + message.keyType = 4; + break; + case "ENCRYPTED_BY_ROOT_KEY_CBC": + case 5: + message.keyType = 5; + break; + case "ENCRYPTED_BY_ROOT_KEY_GCM": + case 6: + message.keyType = 6; + break; + } + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + return message; + }; + + /** + * Creates a plain object from a UserFolder message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.UserFolder + * @static + * @param {Vault.UserFolder} message UserFolder + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UserFolder.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.folderUid = ""; + else { + object.folderUid = []; + if (options.bytes !== Array) + object.folderUid = $util.newBuffer(object.folderUid); + } + if (options.bytes === String) + object.parentUid = ""; + else { + object.parentUid = []; + if (options.bytes !== Array) + object.parentUid = $util.newBuffer(object.parentUid); + } + if (options.bytes === String) + object.userFolderKey = ""; + else { + object.userFolderKey = []; + if (options.bytes !== Array) + object.userFolderKey = $util.newBuffer(object.userFolderKey); + } + object.keyType = options.enums === String ? "NO_KEY" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + } + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.parentUid != null && message.hasOwnProperty("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")) + 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")) + object.keyType = options.enums === String ? $root.Records.RecordKeyType[message.keyType] === undefined ? message.keyType : $root.Records.RecordKeyType[message.keyType] : message.keyType; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof 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")) + 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; + }; + + /** + * Converts this UserFolder to JSON. + * @function toJSON + * @memberof Vault.UserFolder + * @instance + * @returns {Object.} JSON object + */ + UserFolder.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UserFolder + * @function getTypeUrl + * @memberof Vault.UserFolder + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UserFolder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.UserFolder"; + }; + + return UserFolder; + })(); + + Vault.SharedFolder = (function() { + + /** + * Properties of a SharedFolder. + * @memberof Vault + * @interface ISharedFolder + * @property {Uint8Array|null} [sharedFolderUid] SharedFolder sharedFolderUid + * @property {number|Long|null} [revision] SharedFolder revision + * @property {Uint8Array|null} [sharedFolderKey] SharedFolder sharedFolderKey + * @property {Records.RecordKeyType|null} [keyType] SharedFolder keyType + * @property {Uint8Array|null} [data] SharedFolder data + * @property {boolean|null} [defaultManageRecords] SharedFolder defaultManageRecords + * @property {boolean|null} [defaultManageUsers] SharedFolder defaultManageUsers + * @property {boolean|null} [defaultCanEdit] SharedFolder defaultCanEdit + * @property {boolean|null} [defaultCanReshare] SharedFolder defaultCanReshare + * @property {Vault.CacheStatus|null} [cacheStatus] SharedFolder cacheStatus + * @property {string|null} [owner] SharedFolder owner + * @property {Uint8Array|null} [ownerAccountUid] SharedFolder ownerAccountUid + * @property {Uint8Array|null} [name] SharedFolder name + */ + + /** + * Constructs a new SharedFolder. + * @memberof Vault + * @classdesc Represents a SharedFolder. + * @implements ISharedFolder + * @constructor + * @param {Vault.ISharedFolder=} [properties] Properties to set + */ + function SharedFolder(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SharedFolder sharedFolderUid. + * @member {Uint8Array} sharedFolderUid + * @memberof Vault.SharedFolder + * @instance + */ + SharedFolder.prototype.sharedFolderUid = $util.newBuffer([]); + + /** + * SharedFolder revision. + * @member {number|Long} revision + * @memberof Vault.SharedFolder + * @instance + */ + SharedFolder.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SharedFolder sharedFolderKey. + * @member {Uint8Array} sharedFolderKey + * @memberof Vault.SharedFolder + * @instance + */ + SharedFolder.prototype.sharedFolderKey = $util.newBuffer([]); + + /** + * SharedFolder keyType. + * @member {Records.RecordKeyType} keyType + * @memberof Vault.SharedFolder + * @instance + */ + SharedFolder.prototype.keyType = 0; + + /** + * SharedFolder data. + * @member {Uint8Array} data + * @memberof Vault.SharedFolder + * @instance + */ + SharedFolder.prototype.data = $util.newBuffer([]); + + /** + * SharedFolder defaultManageRecords. + * @member {boolean} defaultManageRecords + * @memberof Vault.SharedFolder + * @instance + */ + SharedFolder.prototype.defaultManageRecords = false; + + /** + * SharedFolder defaultManageUsers. + * @member {boolean} defaultManageUsers + * @memberof Vault.SharedFolder + * @instance + */ + SharedFolder.prototype.defaultManageUsers = false; + + /** + * SharedFolder defaultCanEdit. + * @member {boolean} defaultCanEdit + * @memberof Vault.SharedFolder + * @instance + */ + SharedFolder.prototype.defaultCanEdit = false; + + /** + * SharedFolder defaultCanReshare. + * @member {boolean} defaultCanReshare + * @memberof Vault.SharedFolder + * @instance + */ + SharedFolder.prototype.defaultCanReshare = false; + + /** + * SharedFolder cacheStatus. + * @member {Vault.CacheStatus} cacheStatus + * @memberof Vault.SharedFolder + * @instance + */ + SharedFolder.prototype.cacheStatus = 0; + + /** + * SharedFolder owner. + * @member {string} owner + * @memberof Vault.SharedFolder + * @instance + */ + SharedFolder.prototype.owner = ""; + + /** + * SharedFolder ownerAccountUid. + * @member {Uint8Array} ownerAccountUid + * @memberof Vault.SharedFolder + * @instance + */ + SharedFolder.prototype.ownerAccountUid = $util.newBuffer([]); + + /** + * SharedFolder name. + * @member {Uint8Array} name + * @memberof Vault.SharedFolder + * @instance + */ + SharedFolder.prototype.name = $util.newBuffer([]); + + /** + * Creates a new SharedFolder instance using the specified properties. + * @function create + * @memberof Vault.SharedFolder + * @static + * @param {Vault.ISharedFolder=} [properties] Properties to set + * @returns {Vault.SharedFolder} SharedFolder instance + */ + SharedFolder.create = function create(properties) { + return new SharedFolder(properties); + }; + + /** + * Encodes the specified SharedFolder message. Does not implicitly {@link Vault.SharedFolder.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); + if (message.sharedFolderKey != null && Object.hasOwnProperty.call(message, "sharedFolderKey")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.sharedFolderKey); + if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.keyType); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.data); + if (message.defaultManageRecords != null && Object.hasOwnProperty.call(message, "defaultManageRecords")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.defaultManageRecords); + if (message.defaultManageUsers != null && Object.hasOwnProperty.call(message, "defaultManageUsers")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.defaultManageUsers); + if (message.defaultCanEdit != null && Object.hasOwnProperty.call(message, "defaultCanEdit")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.defaultCanEdit); + if (message.defaultCanReshare != null && Object.hasOwnProperty.call(message, "defaultCanReshare")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.defaultCanReshare); + if (message.cacheStatus != null && Object.hasOwnProperty.call(message, "cacheStatus")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.cacheStatus); + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.owner); + if (message.ownerAccountUid != null && Object.hasOwnProperty.call(message, "ownerAccountUid")) + writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.ownerAccountUid); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.name); + 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 + * @memberof Vault.SharedFolder + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolder(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.sharedFolderUid = reader.bytes(); + break; + } + case 2: { + message.revision = reader.int64(); + break; + } + case 3: { + message.sharedFolderKey = reader.bytes(); + break; + } + case 4: { + message.keyType = reader.int32(); + break; + } + case 5: { + message.data = reader.bytes(); + break; + } + case 6: { + message.defaultManageRecords = reader.bool(); + break; + } + case 7: { + message.defaultManageUsers = reader.bool(); + break; + } + case 8: { + message.defaultCanEdit = reader.bool(); + break; + } + case 9: { + message.defaultCanReshare = reader.bool(); + break; + } + case 10: { + message.cacheStatus = reader.int32(); + break; + } + case 11: { + message.owner = reader.string(); + break; + } + case 12: { + message.ownerAccountUid = reader.bytes(); + break; + } + case 13: { + message.name = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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"; + 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 + * @memberof Vault.SharedFolder + * @static + * @param {Object.} object Plain object + * @returns {Vault.SharedFolder} SharedFolder + */ + SharedFolder.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.SharedFolder) + return object; + let message = new $root.Vault.SharedFolder(); + if (object.sharedFolderUid != null) + if (typeof object.sharedFolderUid === "string") + $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); + else if (object.sharedFolderUid.length >= 0) + message.sharedFolderUid = object.sharedFolderUid; + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if (object.sharedFolderKey != null) + if (typeof object.sharedFolderKey === "string") + $util.base64.decode(object.sharedFolderKey, message.sharedFolderKey = $util.newBuffer($util.base64.length(object.sharedFolderKey)), 0); + else if (object.sharedFolderKey.length >= 0) + message.sharedFolderKey = object.sharedFolderKey; + switch (object.keyType) { + default: + if (typeof object.keyType === "number") { + message.keyType = object.keyType; + break; + } + break; + case "NO_KEY": + case 0: + message.keyType = 0; + break; + case "ENCRYPTED_BY_DATA_KEY": + case 1: + message.keyType = 1; + break; + case "ENCRYPTED_BY_PUBLIC_KEY": + case 2: + message.keyType = 2; + break; + case "ENCRYPTED_BY_DATA_KEY_GCM": + case 3: + message.keyType = 3; + break; + case "ENCRYPTED_BY_PUBLIC_KEY_ECC": + case 4: + message.keyType = 4; + break; + case "ENCRYPTED_BY_ROOT_KEY_CBC": + case 5: + message.keyType = 5; + break; + case "ENCRYPTED_BY_ROOT_KEY_GCM": + case 6: + message.keyType = 6; + break; + } + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + if (object.defaultManageRecords != null) + message.defaultManageRecords = Boolean(object.defaultManageRecords); + if (object.defaultManageUsers != null) + message.defaultManageUsers = Boolean(object.defaultManageUsers); + if (object.defaultCanEdit != null) + message.defaultCanEdit = Boolean(object.defaultCanEdit); + if (object.defaultCanReshare != null) + message.defaultCanReshare = Boolean(object.defaultCanReshare); + switch (object.cacheStatus) { + default: + if (typeof object.cacheStatus === "number") { + message.cacheStatus = object.cacheStatus; + break; + } + break; + case "KEEP": + case 0: + message.cacheStatus = 0; + break; + case "CLEAR": + case 1: + message.cacheStatus = 1; + break; + } + if (object.owner != null) + message.owner = String(object.owner); + if (object.ownerAccountUid != null) + if (typeof object.ownerAccountUid === "string") + $util.base64.decode(object.ownerAccountUid, message.ownerAccountUid = $util.newBuffer($util.base64.length(object.ownerAccountUid)), 0); + else if (object.ownerAccountUid.length >= 0) + message.ownerAccountUid = object.ownerAccountUid; + if (object.name != null) + if (typeof object.name === "string") + $util.base64.decode(object.name, message.name = $util.newBuffer($util.base64.length(object.name)), 0); + else if (object.name.length >= 0) + message.name = object.name; + return message; + }; + + /** + * Creates a plain object from a SharedFolder message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.SharedFolder + * @static + * @param {Vault.SharedFolder} message SharedFolder + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SharedFolder.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.sharedFolderUid = ""; + else { + object.sharedFolderUid = []; + if (options.bytes !== Array) + object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.sharedFolderKey = ""; + else { + object.sharedFolderKey = []; + if (options.bytes !== Array) + object.sharedFolderKey = $util.newBuffer(object.sharedFolderKey); + } + object.keyType = options.enums === String ? "NO_KEY" : 0; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + object.defaultManageRecords = false; + object.defaultManageUsers = false; + object.defaultCanEdit = false; + object.defaultCanReshare = false; + object.cacheStatus = options.enums === String ? "KEEP" : 0; + object.owner = ""; + if (options.bytes === String) + object.ownerAccountUid = ""; + else { + object.ownerAccountUid = []; + if (options.bytes !== Array) + object.ownerAccountUid = $util.newBuffer(object.ownerAccountUid); + } + if (options.bytes === String) + object.name = ""; + else { + object.name = []; + if (options.bytes !== Array) + object.name = $util.newBuffer(object.name); + } + } + if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof 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")) + 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")) + 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")) + 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")) + object.defaultManageRecords = message.defaultManageRecords; + if (message.defaultManageUsers != null && message.hasOwnProperty("defaultManageUsers")) + object.defaultManageUsers = message.defaultManageUsers; + if (message.defaultCanEdit != null && message.hasOwnProperty("defaultCanEdit")) + object.defaultCanEdit = message.defaultCanEdit; + if (message.defaultCanReshare != null && message.hasOwnProperty("defaultCanReshare")) + object.defaultCanReshare = message.defaultCanReshare; + if (message.cacheStatus != null && message.hasOwnProperty("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")) + object.owner = message.owner; + if (message.ownerAccountUid != null && message.hasOwnProperty("ownerAccountUid")) + object.ownerAccountUid = options.bytes === String ? $util.base64.encode(message.ownerAccountUid, 0, message.ownerAccountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.ownerAccountUid) : message.ownerAccountUid; + if (message.name != null && message.hasOwnProperty("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; + }; + + /** + * Converts this SharedFolder to JSON. + * @function toJSON + * @memberof Vault.SharedFolder + * @instance + * @returns {Object.} JSON object + */ + SharedFolder.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SharedFolder + * @function getTypeUrl + * @memberof Vault.SharedFolder + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SharedFolder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.SharedFolder"; + }; + + return SharedFolder; + })(); + + Vault.UserFolderSharedFolder = (function() { + + /** + * Properties of a UserFolderSharedFolder. + * @memberof Vault + * @interface IUserFolderSharedFolder + * @property {Uint8Array|null} [folderUid] UserFolderSharedFolder folderUid + * @property {Uint8Array|null} [sharedFolderUid] UserFolderSharedFolder sharedFolderUid + * @property {number|Long|null} [revision] UserFolderSharedFolder revision + */ + + /** + * Constructs a new UserFolderSharedFolder. + * @memberof Vault + * @classdesc Represents a UserFolderSharedFolder. + * @implements IUserFolderSharedFolder + * @constructor + * @param {Vault.IUserFolderSharedFolder=} [properties] Properties to set + */ + function UserFolderSharedFolder(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UserFolderSharedFolder folderUid. + * @member {Uint8Array} folderUid + * @memberof Vault.UserFolderSharedFolder + * @instance + */ + UserFolderSharedFolder.prototype.folderUid = $util.newBuffer([]); + + /** + * UserFolderSharedFolder sharedFolderUid. + * @member {Uint8Array} sharedFolderUid + * @memberof Vault.UserFolderSharedFolder + * @instance + */ + UserFolderSharedFolder.prototype.sharedFolderUid = $util.newBuffer([]); + + /** + * UserFolderSharedFolder revision. + * @member {number|Long} revision + * @memberof Vault.UserFolderSharedFolder + * @instance + */ + UserFolderSharedFolder.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new UserFolderSharedFolder instance using the specified properties. + * @function create + * @memberof Vault.UserFolderSharedFolder + * @static + * @param {Vault.IUserFolderSharedFolder=} [properties] Properties to set + * @returns {Vault.UserFolderSharedFolder} UserFolderSharedFolder instance + */ + UserFolderSharedFolder.create = function create(properties) { + return new UserFolderSharedFolder(properties); + }; + + /** + * Encodes the specified UserFolderSharedFolder message. Does not implicitly {@link Vault.UserFolderSharedFolder.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sharedFolderUid); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); + 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 + * @memberof Vault.UserFolderSharedFolder + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.UserFolderSharedFolder(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.folderUid = reader.bytes(); + break; + } + case 2: { + message.sharedFolderUid = reader.bytes(); + break; + } + case 3: { + message.revision = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.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 + * @memberof Vault.UserFolderSharedFolder + * @static + * @param {Object.} object Plain object + * @returns {Vault.UserFolderSharedFolder} UserFolderSharedFolder + */ + UserFolderSharedFolder.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.UserFolderSharedFolder) + return object; + let message = new $root.Vault.UserFolderSharedFolder(); + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.sharedFolderUid != null) + if (typeof object.sharedFolderUid === "string") + $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); + else if (object.sharedFolderUid.length >= 0) + message.sharedFolderUid = object.sharedFolderUid; + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a UserFolderSharedFolder message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.UserFolderSharedFolder + * @static + * @param {Vault.UserFolderSharedFolder} message UserFolderSharedFolder + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UserFolderSharedFolder.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.folderUid = ""; + else { + object.folderUid = []; + if (options.bytes !== Array) + object.folderUid = $util.newBuffer(object.folderUid); + } + if (options.bytes === String) + object.sharedFolderUid = ""; + else { + object.sharedFolderUid = []; + if (options.bytes !== Array) + object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + } + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof 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; + return object; + }; + + /** + * Converts this UserFolderSharedFolder to JSON. + * @function toJSON + * @memberof Vault.UserFolderSharedFolder + * @instance + * @returns {Object.} JSON object + */ + UserFolderSharedFolder.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UserFolderSharedFolder + * @function getTypeUrl + * @memberof Vault.UserFolderSharedFolder + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UserFolderSharedFolder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.UserFolderSharedFolder"; + }; + + return UserFolderSharedFolder; + })(); + + Vault.SharedFolderFolder = (function() { + + /** + * Properties of a SharedFolderFolder. + * @memberof Vault + * @interface ISharedFolderFolder + * @property {Uint8Array|null} [sharedFolderUid] SharedFolderFolder sharedFolderUid + * @property {Uint8Array|null} [folderUid] SharedFolderFolder folderUid + * @property {Uint8Array|null} [parentUid] SharedFolderFolder parentUid + * @property {Uint8Array|null} [sharedFolderFolderKey] SharedFolderFolder sharedFolderFolderKey + * @property {Records.RecordKeyType|null} [keyType] SharedFolderFolder keyType + * @property {number|Long|null} [revision] SharedFolderFolder revision + * @property {Uint8Array|null} [data] SharedFolderFolder data + */ + + /** + * Constructs a new SharedFolderFolder. + * @memberof Vault + * @classdesc Represents a SharedFolderFolder. + * @implements ISharedFolderFolder + * @constructor + * @param {Vault.ISharedFolderFolder=} [properties] Properties to set + */ + function SharedFolderFolder(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SharedFolderFolder sharedFolderUid. + * @member {Uint8Array} sharedFolderUid + * @memberof Vault.SharedFolderFolder + * @instance + */ + SharedFolderFolder.prototype.sharedFolderUid = $util.newBuffer([]); + + /** + * SharedFolderFolder folderUid. + * @member {Uint8Array} folderUid + * @memberof Vault.SharedFolderFolder + * @instance + */ + SharedFolderFolder.prototype.folderUid = $util.newBuffer([]); + + /** + * SharedFolderFolder parentUid. + * @member {Uint8Array} parentUid + * @memberof Vault.SharedFolderFolder + * @instance + */ + SharedFolderFolder.prototype.parentUid = $util.newBuffer([]); + + /** + * SharedFolderFolder sharedFolderFolderKey. + * @member {Uint8Array} sharedFolderFolderKey + * @memberof Vault.SharedFolderFolder + * @instance + */ + SharedFolderFolder.prototype.sharedFolderFolderKey = $util.newBuffer([]); + + /** + * SharedFolderFolder keyType. + * @member {Records.RecordKeyType} keyType + * @memberof Vault.SharedFolderFolder + * @instance + */ + SharedFolderFolder.prototype.keyType = 0; + + /** + * SharedFolderFolder revision. + * @member {number|Long} revision + * @memberof Vault.SharedFolderFolder + * @instance + */ + SharedFolderFolder.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SharedFolderFolder data. + * @member {Uint8Array} data + * @memberof Vault.SharedFolderFolder + * @instance + */ + SharedFolderFolder.prototype.data = $util.newBuffer([]); + + /** + * Creates a new SharedFolderFolder instance using the specified properties. + * @function create + * @memberof Vault.SharedFolderFolder + * @static + * @param {Vault.ISharedFolderFolder=} [properties] Properties to set + * @returns {Vault.SharedFolderFolder} SharedFolderFolder instance + */ + SharedFolderFolder.create = function create(properties) { + return new SharedFolderFolder(properties); + }; + + /** + * Encodes the specified SharedFolderFolder message. Does not implicitly {@link Vault.SharedFolderFolder.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.folderUid); + if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.parentUid); + if (message.sharedFolderFolderKey != null && Object.hasOwnProperty.call(message, "sharedFolderFolderKey")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.sharedFolderFolderKey); + if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.keyType); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.revision); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.data); + 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 + * @memberof Vault.SharedFolderFolder + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderFolder(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.sharedFolderUid = reader.bytes(); + break; + } + case 2: { + message.folderUid = reader.bytes(); + break; + } + case 3: { + message.parentUid = reader.bytes(); + break; + } + case 4: { + message.sharedFolderFolderKey = reader.bytes(); + break; + } + case 5: { + message.keyType = reader.int32(); + break; + } + case 6: { + message.revision = reader.int64(); + break; + } + case 7: { + message.data = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.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 + * @memberof Vault.SharedFolderFolder + * @static + * @param {Object.} object Plain object + * @returns {Vault.SharedFolderFolder} SharedFolderFolder + */ + SharedFolderFolder.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.SharedFolderFolder) + return object; + let message = new $root.Vault.SharedFolderFolder(); + if (object.sharedFolderUid != null) + if (typeof object.sharedFolderUid === "string") + $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); + else if (object.sharedFolderUid.length >= 0) + message.sharedFolderUid = object.sharedFolderUid; + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.parentUid != null) + if (typeof object.parentUid === "string") + $util.base64.decode(object.parentUid, message.parentUid = $util.newBuffer($util.base64.length(object.parentUid)), 0); + else if (object.parentUid.length >= 0) + message.parentUid = object.parentUid; + if (object.sharedFolderFolderKey != null) + if (typeof object.sharedFolderFolderKey === "string") + $util.base64.decode(object.sharedFolderFolderKey, message.sharedFolderFolderKey = $util.newBuffer($util.base64.length(object.sharedFolderFolderKey)), 0); + else if (object.sharedFolderFolderKey.length >= 0) + message.sharedFolderFolderKey = object.sharedFolderFolderKey; + switch (object.keyType) { + default: + if (typeof object.keyType === "number") { + message.keyType = object.keyType; + break; + } + break; + case "NO_KEY": + case 0: + message.keyType = 0; + break; + case "ENCRYPTED_BY_DATA_KEY": + case 1: + message.keyType = 1; + break; + case "ENCRYPTED_BY_PUBLIC_KEY": + case 2: + message.keyType = 2; + break; + case "ENCRYPTED_BY_DATA_KEY_GCM": + case 3: + message.keyType = 3; + break; + case "ENCRYPTED_BY_PUBLIC_KEY_ECC": + case 4: + message.keyType = 4; + break; + case "ENCRYPTED_BY_ROOT_KEY_CBC": + case 5: + message.keyType = 5; + break; + case "ENCRYPTED_BY_ROOT_KEY_GCM": + case 6: + message.keyType = 6; + break; + } + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + return message; + }; + + /** + * Creates a plain object from a SharedFolderFolder message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.SharedFolderFolder + * @static + * @param {Vault.SharedFolderFolder} message SharedFolderFolder + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SharedFolderFolder.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.sharedFolderUid = ""; + else { + object.sharedFolderUid = []; + if (options.bytes !== Array) + object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + } + if (options.bytes === String) + object.folderUid = ""; + else { + object.folderUid = []; + if (options.bytes !== Array) + object.folderUid = $util.newBuffer(object.folderUid); + } + if (options.bytes === String) + object.parentUid = ""; + else { + object.parentUid = []; + if (options.bytes !== Array) + object.parentUid = $util.newBuffer(object.parentUid); + } + if (options.bytes === String) + object.sharedFolderFolderKey = ""; + else { + object.sharedFolderFolderKey = []; + if (options.bytes !== Array) + object.sharedFolderFolderKey = $util.newBuffer(object.sharedFolderFolderKey); + } + object.keyType = options.enums === String ? "NO_KEY" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + } + if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.parentUid != null && message.hasOwnProperty("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")) + 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")) + object.keyType = options.enums === String ? $root.Records.RecordKeyType[message.keyType] === undefined ? message.keyType : $root.Records.RecordKeyType[message.keyType] : message.keyType; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof 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")) + 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; + }; + + /** + * Converts this SharedFolderFolder to JSON. + * @function toJSON + * @memberof Vault.SharedFolderFolder + * @instance + * @returns {Object.} JSON object + */ + SharedFolderFolder.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SharedFolderFolder + * @function getTypeUrl + * @memberof Vault.SharedFolderFolder + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SharedFolderFolder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.SharedFolderFolder"; + }; + + return SharedFolderFolder; + })(); + + Vault.SharedFolderKey = (function() { + + /** + * Properties of a SharedFolderKey. + * @memberof Vault + * @interface ISharedFolderKey + * @property {Uint8Array|null} [sharedFolderUid] SharedFolderKey sharedFolderUid + * @property {Uint8Array|null} [sharedFolderKey] SharedFolderKey sharedFolderKey + * @property {Records.RecordKeyType|null} [keyType] SharedFolderKey keyType + */ + + /** + * Constructs a new SharedFolderKey. + * @memberof Vault + * @classdesc Represents a SharedFolderKey. + * @implements ISharedFolderKey + * @constructor + * @param {Vault.ISharedFolderKey=} [properties] Properties to set + */ + function SharedFolderKey(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SharedFolderKey sharedFolderUid. + * @member {Uint8Array} sharedFolderUid + * @memberof Vault.SharedFolderKey + * @instance + */ + SharedFolderKey.prototype.sharedFolderUid = $util.newBuffer([]); + + /** + * SharedFolderKey sharedFolderKey. + * @member {Uint8Array} sharedFolderKey + * @memberof Vault.SharedFolderKey + * @instance + */ + SharedFolderKey.prototype.sharedFolderKey = $util.newBuffer([]); + + /** + * SharedFolderKey keyType. + * @member {Records.RecordKeyType} keyType + * @memberof Vault.SharedFolderKey + * @instance + */ + SharedFolderKey.prototype.keyType = 0; + + /** + * Creates a new SharedFolderKey instance using the specified properties. + * @function create + * @memberof Vault.SharedFolderKey + * @static + * @param {Vault.ISharedFolderKey=} [properties] Properties to set + * @returns {Vault.SharedFolderKey} SharedFolderKey instance + */ + SharedFolderKey.create = function create(properties) { + return new SharedFolderKey(properties); + }; + + /** + * Encodes the specified SharedFolderKey message. Does not implicitly {@link Vault.SharedFolderKey.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); + if (message.sharedFolderKey != null && Object.hasOwnProperty.call(message, "sharedFolderKey")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sharedFolderKey); + if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.keyType); + 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 + * @memberof Vault.SharedFolderKey + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderKey(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.sharedFolderUid = reader.bytes(); + break; + } + case 2: { + message.sharedFolderKey = reader.bytes(); + break; + } + case 3: { + message.keyType = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.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 + * @memberof Vault.SharedFolderKey + * @static + * @param {Object.} object Plain object + * @returns {Vault.SharedFolderKey} SharedFolderKey + */ + SharedFolderKey.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.SharedFolderKey) + return object; + let message = new $root.Vault.SharedFolderKey(); + if (object.sharedFolderUid != null) + if (typeof object.sharedFolderUid === "string") + $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); + else if (object.sharedFolderUid.length >= 0) + message.sharedFolderUid = object.sharedFolderUid; + if (object.sharedFolderKey != null) + if (typeof object.sharedFolderKey === "string") + $util.base64.decode(object.sharedFolderKey, message.sharedFolderKey = $util.newBuffer($util.base64.length(object.sharedFolderKey)), 0); + else if (object.sharedFolderKey.length >= 0) + message.sharedFolderKey = object.sharedFolderKey; + switch (object.keyType) { + default: + if (typeof object.keyType === "number") { + message.keyType = object.keyType; + break; + } + break; + case "NO_KEY": + case 0: + message.keyType = 0; + break; + case "ENCRYPTED_BY_DATA_KEY": + case 1: + message.keyType = 1; + break; + case "ENCRYPTED_BY_PUBLIC_KEY": + case 2: + message.keyType = 2; + break; + case "ENCRYPTED_BY_DATA_KEY_GCM": + case 3: + message.keyType = 3; + break; + case "ENCRYPTED_BY_PUBLIC_KEY_ECC": + case 4: + message.keyType = 4; + break; + case "ENCRYPTED_BY_ROOT_KEY_CBC": + case 5: + message.keyType = 5; + break; + case "ENCRYPTED_BY_ROOT_KEY_GCM": + case 6: + message.keyType = 6; + break; + } + return message; + }; + + /** + * Creates a plain object from a SharedFolderKey message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.SharedFolderKey + * @static + * @param {Vault.SharedFolderKey} message SharedFolderKey + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SharedFolderKey.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.sharedFolderUid = ""; + else { + object.sharedFolderUid = []; + if (options.bytes !== Array) + object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + } + if (options.bytes === String) + object.sharedFolderKey = ""; + else { + object.sharedFolderKey = []; + if (options.bytes !== Array) + object.sharedFolderKey = $util.newBuffer(object.sharedFolderKey); + } + object.keyType = options.enums === String ? "NO_KEY" : 0; + } + if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; + if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) + object.sharedFolderKey = options.bytes === String ? $util.base64.encode(message.sharedFolderKey, 0, message.sharedFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderKey) : message.sharedFolderKey; + if (message.keyType != null && message.hasOwnProperty("keyType")) + object.keyType = options.enums === String ? $root.Records.RecordKeyType[message.keyType] === undefined ? message.keyType : $root.Records.RecordKeyType[message.keyType] : message.keyType; + return object; + }; + + /** + * Converts this SharedFolderKey to JSON. + * @function toJSON + * @memberof Vault.SharedFolderKey + * @instance + * @returns {Object.} JSON object + */ + SharedFolderKey.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SharedFolderKey + * @function getTypeUrl + * @memberof Vault.SharedFolderKey + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SharedFolderKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.SharedFolderKey"; + }; + + return SharedFolderKey; + })(); + + Vault.Team = (function() { + + /** + * Properties of a Team. + * @memberof Vault + * @interface ITeam + * @property {Uint8Array|null} [teamUid] Team teamUid + * @property {string|null} [name] Team name + * @property {Uint8Array|null} [teamKey] Team teamKey + * @property {Records.RecordKeyType|null} [teamKeyType] Team teamKeyType + * @property {Uint8Array|null} [teamPrivateKey] Team teamPrivateKey + * @property {boolean|null} [restrictEdit] Team restrictEdit + * @property {boolean|null} [restrictShare] Team restrictShare + * @property {boolean|null} [restrictView] Team restrictView + * @property {Array.|null} [removedSharedFolders] Team removedSharedFolders + * @property {Array.|null} [sharedFolderKeys] Team sharedFolderKeys + * @property {Uint8Array|null} [teamEccPrivateKey] Team teamEccPrivateKey + * @property {Uint8Array|null} [teamEccPublicKey] Team teamEccPublicKey + */ + + /** + * Constructs a new Team. + * @memberof Vault + * @classdesc Represents a Team. + * @implements ITeam + * @constructor + * @param {Vault.ITeam=} [properties] Properties to set + */ + function Team(properties) { + this.removedSharedFolders = []; + this.sharedFolderKeys = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Team teamUid. + * @member {Uint8Array} teamUid + * @memberof Vault.Team + * @instance + */ + Team.prototype.teamUid = $util.newBuffer([]); + + /** + * Team name. + * @member {string} name + * @memberof Vault.Team + * @instance + */ + Team.prototype.name = ""; + + /** + * Team teamKey. + * @member {Uint8Array} teamKey + * @memberof Vault.Team + * @instance + */ + Team.prototype.teamKey = $util.newBuffer([]); + + /** + * Team teamKeyType. + * @member {Records.RecordKeyType} teamKeyType + * @memberof Vault.Team + * @instance + */ + Team.prototype.teamKeyType = 0; + + /** + * Team teamPrivateKey. + * @member {Uint8Array} teamPrivateKey + * @memberof Vault.Team + * @instance + */ + Team.prototype.teamPrivateKey = $util.newBuffer([]); + + /** + * Team restrictEdit. + * @member {boolean} restrictEdit + * @memberof Vault.Team + * @instance + */ + Team.prototype.restrictEdit = false; + + /** + * Team restrictShare. + * @member {boolean} restrictShare + * @memberof Vault.Team + * @instance + */ + Team.prototype.restrictShare = false; + + /** + * Team restrictView. + * @member {boolean} restrictView + * @memberof Vault.Team + * @instance + */ + Team.prototype.restrictView = false; + + /** + * Team removedSharedFolders. + * @member {Array.} removedSharedFolders + * @memberof Vault.Team + * @instance + */ + Team.prototype.removedSharedFolders = $util.emptyArray; + + /** + * Team sharedFolderKeys. + * @member {Array.} sharedFolderKeys + * @memberof Vault.Team + * @instance + */ + Team.prototype.sharedFolderKeys = $util.emptyArray; + + /** + * Team teamEccPrivateKey. + * @member {Uint8Array} teamEccPrivateKey + * @memberof Vault.Team + * @instance + */ + Team.prototype.teamEccPrivateKey = $util.newBuffer([]); + + /** + * Team teamEccPublicKey. + * @member {Uint8Array} teamEccPublicKey + * @memberof Vault.Team + * @instance + */ + Team.prototype.teamEccPublicKey = $util.newBuffer([]); + + /** + * Creates a new Team instance using the specified properties. + * @function create + * @memberof Vault.Team + * @static + * @param {Vault.ITeam=} [properties] Properties to set + * @returns {Vault.Team} Team instance + */ + Team.create = function create(properties) { + return new Team(properties); + }; + + /** + * Encodes the specified Team message. Does not implicitly {@link Vault.Team.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.teamKey != null && Object.hasOwnProperty.call(message, "teamKey")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.teamKey); + if (message.teamKeyType != null && Object.hasOwnProperty.call(message, "teamKeyType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.teamKeyType); + if (message.teamPrivateKey != null && Object.hasOwnProperty.call(message, "teamPrivateKey")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.teamPrivateKey); + if (message.restrictEdit != null && Object.hasOwnProperty.call(message, "restrictEdit")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.restrictEdit); + if (message.restrictShare != null && Object.hasOwnProperty.call(message, "restrictShare")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.restrictShare); + if (message.restrictView != null && Object.hasOwnProperty.call(message, "restrictView")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.restrictView); + if (message.removedSharedFolders != null && message.removedSharedFolders.length) + for (let i = 0; i < message.removedSharedFolders.length; ++i) + writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.removedSharedFolders[i]); + if (message.sharedFolderKeys != null && message.sharedFolderKeys.length) + for (let i = 0; i < message.sharedFolderKeys.length; ++i) + $root.Vault.SharedFolderKey.encode(message.sharedFolderKeys[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.teamEccPrivateKey != null && Object.hasOwnProperty.call(message, "teamEccPrivateKey")) + writer.uint32(/* id 11, wireType 2 =*/90).bytes(message.teamEccPrivateKey); + if (message.teamEccPublicKey != null && Object.hasOwnProperty.call(message, "teamEccPublicKey")) + writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.teamEccPublicKey); + 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 + * @memberof Vault.Team + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.Team(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.teamUid = reader.bytes(); + break; + } + case 2: { + message.name = reader.string(); + break; + } + case 3: { + message.teamKey = reader.bytes(); + break; + } + case 4: { + message.teamKeyType = reader.int32(); + break; + } + case 5: { + message.teamPrivateKey = reader.bytes(); + break; + } + case 6: { + message.restrictEdit = reader.bool(); + break; + } + case 7: { + message.restrictShare = reader.bool(); + break; + } + case 8: { + message.restrictView = reader.bool(); + break; + } + case 9: { + if (!(message.removedSharedFolders && message.removedSharedFolders.length)) + message.removedSharedFolders = []; + message.removedSharedFolders.push(reader.bytes()); + break; + } + case 10: { + if (!(message.sharedFolderKeys && message.sharedFolderKeys.length)) + message.sharedFolderKeys = []; + message.sharedFolderKeys.push($root.Vault.SharedFolderKey.decode(reader, reader.uint32())); + break; + } + case 11: { + message.teamEccPrivateKey = reader.bytes(); + break; + } + case 12: { + message.teamEccPublicKey = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.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]); + 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 + * @memberof Vault.Team + * @static + * @param {Object.} object Plain object + * @returns {Vault.Team} Team + */ + Team.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.Team) + return object; + let message = new $root.Vault.Team(); + if (object.teamUid != null) + if (typeof object.teamUid === "string") + $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); + else if (object.teamUid.length >= 0) + message.teamUid = object.teamUid; + if (object.name != null) + message.name = String(object.name); + if (object.teamKey != null) + if (typeof object.teamKey === "string") + $util.base64.decode(object.teamKey, message.teamKey = $util.newBuffer($util.base64.length(object.teamKey)), 0); + else if (object.teamKey.length >= 0) + message.teamKey = object.teamKey; + switch (object.teamKeyType) { + default: + if (typeof object.teamKeyType === "number") { + message.teamKeyType = object.teamKeyType; + break; + } + break; + case "NO_KEY": + case 0: + message.teamKeyType = 0; + break; + case "ENCRYPTED_BY_DATA_KEY": + case 1: + message.teamKeyType = 1; + break; + case "ENCRYPTED_BY_PUBLIC_KEY": + case 2: + message.teamKeyType = 2; + break; + case "ENCRYPTED_BY_DATA_KEY_GCM": + case 3: + message.teamKeyType = 3; + break; + case "ENCRYPTED_BY_PUBLIC_KEY_ECC": + case 4: + message.teamKeyType = 4; + break; + case "ENCRYPTED_BY_ROOT_KEY_CBC": + case 5: + message.teamKeyType = 5; + break; + case "ENCRYPTED_BY_ROOT_KEY_GCM": + case 6: + message.teamKeyType = 6; + break; + } + if (object.teamPrivateKey != null) + if (typeof object.teamPrivateKey === "string") + $util.base64.decode(object.teamPrivateKey, message.teamPrivateKey = $util.newBuffer($util.base64.length(object.teamPrivateKey)), 0); + else if (object.teamPrivateKey.length >= 0) + message.teamPrivateKey = object.teamPrivateKey; + if (object.restrictEdit != null) + message.restrictEdit = Boolean(object.restrictEdit); + if (object.restrictShare != null) + message.restrictShare = Boolean(object.restrictShare); + if (object.restrictView != null) + message.restrictView = Boolean(object.restrictView); + if (object.removedSharedFolders) { + if (!Array.isArray(object.removedSharedFolders)) + throw TypeError(".Vault.Team.removedSharedFolders: array expected"); + message.removedSharedFolders = []; + for (let i = 0; i < object.removedSharedFolders.length; ++i) + if (typeof object.removedSharedFolders[i] === "string") + $util.base64.decode(object.removedSharedFolders[i], message.removedSharedFolders[i] = $util.newBuffer($util.base64.length(object.removedSharedFolders[i])), 0); + else if (object.removedSharedFolders[i].length >= 0) + message.removedSharedFolders[i] = object.removedSharedFolders[i]; + } + if (object.sharedFolderKeys) { + if (!Array.isArray(object.sharedFolderKeys)) + throw TypeError(".Vault.Team.sharedFolderKeys: array expected"); + message.sharedFolderKeys = []; + for (let i = 0; i < object.sharedFolderKeys.length; ++i) { + if (typeof object.sharedFolderKeys[i] !== "object") + throw TypeError(".Vault.Team.sharedFolderKeys: object expected"); + message.sharedFolderKeys[i] = $root.Vault.SharedFolderKey.fromObject(object.sharedFolderKeys[i]); + } + } + if (object.teamEccPrivateKey != null) + if (typeof object.teamEccPrivateKey === "string") + $util.base64.decode(object.teamEccPrivateKey, message.teamEccPrivateKey = $util.newBuffer($util.base64.length(object.teamEccPrivateKey)), 0); + else if (object.teamEccPrivateKey.length >= 0) + message.teamEccPrivateKey = object.teamEccPrivateKey; + if (object.teamEccPublicKey != null) + if (typeof object.teamEccPublicKey === "string") + $util.base64.decode(object.teamEccPublicKey, message.teamEccPublicKey = $util.newBuffer($util.base64.length(object.teamEccPublicKey)), 0); + else if (object.teamEccPublicKey.length >= 0) + message.teamEccPublicKey = object.teamEccPublicKey; + return message; + }; + + /** + * Creates a plain object from a Team message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.Team + * @static + * @param {Vault.Team} message Team + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Team.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.removedSharedFolders = []; + object.sharedFolderKeys = []; + } + if (options.defaults) { + if (options.bytes === String) + object.teamUid = ""; + else { + object.teamUid = []; + if (options.bytes !== Array) + object.teamUid = $util.newBuffer(object.teamUid); + } + object.name = ""; + if (options.bytes === String) + object.teamKey = ""; + else { + object.teamKey = []; + if (options.bytes !== Array) + object.teamKey = $util.newBuffer(object.teamKey); + } + object.teamKeyType = options.enums === String ? "NO_KEY" : 0; + if (options.bytes === String) + object.teamPrivateKey = ""; + else { + object.teamPrivateKey = []; + if (options.bytes !== Array) + object.teamPrivateKey = $util.newBuffer(object.teamPrivateKey); + } + object.restrictEdit = false; + object.restrictShare = false; + object.restrictView = false; + if (options.bytes === String) + object.teamEccPrivateKey = ""; + else { + object.teamEccPrivateKey = []; + if (options.bytes !== Array) + object.teamEccPrivateKey = $util.newBuffer(object.teamEccPrivateKey); + } + if (options.bytes === String) + object.teamEccPublicKey = ""; + else { + object.teamEccPublicKey = []; + if (options.bytes !== Array) + object.teamEccPublicKey = $util.newBuffer(object.teamEccPublicKey); + } + } + if (message.teamUid != null && message.hasOwnProperty("teamUid")) + object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.teamKey != null && message.hasOwnProperty("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")) + 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")) + 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")) + object.restrictEdit = message.restrictEdit; + if (message.restrictShare != null && message.hasOwnProperty("restrictShare")) + object.restrictShare = message.restrictShare; + if (message.restrictView != null && message.hasOwnProperty("restrictView")) + object.restrictView = message.restrictView; + if (message.removedSharedFolders && message.removedSharedFolders.length) { + object.removedSharedFolders = []; + for (let j = 0; j < message.removedSharedFolders.length; ++j) + object.removedSharedFolders[j] = options.bytes === String ? $util.base64.encode(message.removedSharedFolders[j], 0, message.removedSharedFolders[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.removedSharedFolders[j]) : message.removedSharedFolders[j]; + } + if (message.sharedFolderKeys && message.sharedFolderKeys.length) { + object.sharedFolderKeys = []; + for (let j = 0; j < message.sharedFolderKeys.length; ++j) + object.sharedFolderKeys[j] = $root.Vault.SharedFolderKey.toObject(message.sharedFolderKeys[j], options); + } + if (message.teamEccPrivateKey != null && message.hasOwnProperty("teamEccPrivateKey")) + object.teamEccPrivateKey = options.bytes === String ? $util.base64.encode(message.teamEccPrivateKey, 0, message.teamEccPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamEccPrivateKey) : message.teamEccPrivateKey; + if (message.teamEccPublicKey != null && message.hasOwnProperty("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; + }; + + /** + * Converts this Team to JSON. + * @function toJSON + * @memberof Vault.Team + * @instance + * @returns {Object.} JSON object + */ + Team.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Team + * @function getTypeUrl + * @memberof Vault.Team + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Team.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.Team"; + }; + + return Team; + })(); + + Vault.Record = (function() { + + /** + * Properties of a Record. + * @memberof Vault + * @interface IRecord + * @property {Uint8Array|null} [recordUid] Record recordUid + * @property {number|Long|null} [revision] Record revision + * @property {number|null} [version] Record version + * @property {boolean|null} [shared] Record shared + * @property {number|Long|null} [clientModifiedTime] Record clientModifiedTime + * @property {Uint8Array|null} [data] Record data + * @property {Uint8Array|null} [extra] Record extra + * @property {string|null} [udata] Record udata + * @property {number|Long|null} [fileSize] Record fileSize + * @property {number|Long|null} [thumbnailSize] Record thumbnailSize + */ + + /** + * Constructs a new Record. + * @memberof Vault + * @classdesc Represents a Record. + * @implements IRecord + * @constructor + * @param {Vault.IRecord=} [properties] Properties to set + */ + function Record(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Record recordUid. + * @member {Uint8Array} recordUid + * @memberof Vault.Record + * @instance + */ + Record.prototype.recordUid = $util.newBuffer([]); + + /** + * Record revision. + * @member {number|Long} revision + * @memberof Vault.Record + * @instance + */ + Record.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Record version. + * @member {number} version + * @memberof Vault.Record + * @instance + */ + Record.prototype.version = 0; + + /** + * Record shared. + * @member {boolean} shared + * @memberof Vault.Record + * @instance + */ + Record.prototype.shared = false; + + /** + * Record clientModifiedTime. + * @member {number|Long} clientModifiedTime + * @memberof Vault.Record + * @instance + */ + Record.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Record data. + * @member {Uint8Array} data + * @memberof Vault.Record + * @instance + */ + Record.prototype.data = $util.newBuffer([]); + + /** + * Record extra. + * @member {Uint8Array} extra + * @memberof Vault.Record + * @instance + */ + Record.prototype.extra = $util.newBuffer([]); + + /** + * Record udata. + * @member {string} udata + * @memberof Vault.Record + * @instance + */ + Record.prototype.udata = ""; + + /** + * Record fileSize. + * @member {number|Long} fileSize + * @memberof Vault.Record + * @instance + */ + Record.prototype.fileSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Record thumbnailSize. + * @member {number|Long} thumbnailSize + * @memberof Vault.Record + * @instance + */ + Record.prototype.thumbnailSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new Record instance using the specified properties. + * @function create + * @memberof Vault.Record + * @static + * @param {Vault.IRecord=} [properties] Properties to set + * @returns {Vault.Record} Record instance + */ + Record.create = function create(properties) { + return new Record(properties); + }; + + /** + * Encodes the specified Record message. Does not implicitly {@link Vault.Record.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.version); + if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.shared); + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.clientModifiedTime); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.data); + if (message.extra != null && Object.hasOwnProperty.call(message, "extra")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.extra); + if (message.udata != null && Object.hasOwnProperty.call(message, "udata")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.udata); + if (message.fileSize != null && Object.hasOwnProperty.call(message, "fileSize")) + writer.uint32(/* id 9, wireType 0 =*/72).int64(message.fileSize); + if (message.thumbnailSize != null && Object.hasOwnProperty.call(message, "thumbnailSize")) + writer.uint32(/* id 10, wireType 0 =*/80).int64(message.thumbnailSize); + 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 + * @memberof Vault.Record + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.Record(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.revision = reader.int64(); + break; + } + case 3: { + message.version = reader.int32(); + break; + } + case 4: { + message.shared = reader.bool(); + break; + } + case 5: { + message.clientModifiedTime = reader.int64(); + break; + } + case 6: { + message.data = reader.bytes(); + break; + } + case 7: { + message.extra = reader.bytes(); + break; + } + case 8: { + message.udata = reader.string(); + break; + } + case 9: { + message.fileSize = reader.int64(); + break; + } + case 10: { + message.thumbnailSize = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) + return "recordUid: buffer expected"; + if (message.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 + * @memberof Vault.Record + * @static + * @param {Object.} object Plain object + * @returns {Vault.Record} Record + */ + Record.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.Record) + return object; + let message = new $root.Vault.Record(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if (object.version != null) + message.version = object.version | 0; + if (object.shared != null) + message.shared = Boolean(object.shared); + if (object.clientModifiedTime != null) + if ($util.Long) + (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; + else if (typeof object.clientModifiedTime === "string") + message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); + else if (typeof object.clientModifiedTime === "number") + message.clientModifiedTime = object.clientModifiedTime; + else if (typeof object.clientModifiedTime === "object") + message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + if (object.extra != null) + if (typeof object.extra === "string") + $util.base64.decode(object.extra, message.extra = $util.newBuffer($util.base64.length(object.extra)), 0); + else if (object.extra.length >= 0) + message.extra = object.extra; + if (object.udata != null) + message.udata = String(object.udata); + if (object.fileSize != null) + if ($util.Long) + (message.fileSize = $util.Long.fromValue(object.fileSize)).unsigned = false; + else if (typeof object.fileSize === "string") + message.fileSize = parseInt(object.fileSize, 10); + else if (typeof object.fileSize === "number") + message.fileSize = object.fileSize; + else if (typeof object.fileSize === "object") + message.fileSize = new $util.LongBits(object.fileSize.low >>> 0, object.fileSize.high >>> 0).toNumber(); + if (object.thumbnailSize != null) + if ($util.Long) + (message.thumbnailSize = $util.Long.fromValue(object.thumbnailSize)).unsigned = false; + else if (typeof object.thumbnailSize === "string") + message.thumbnailSize = parseInt(object.thumbnailSize, 10); + else if (typeof object.thumbnailSize === "number") + message.thumbnailSize = object.thumbnailSize; + else if (typeof object.thumbnailSize === "object") + message.thumbnailSize = new $util.LongBits(object.thumbnailSize.low >>> 0, object.thumbnailSize.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a Record message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.Record + * @static + * @param {Vault.Record} message Record + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Record.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + object.version = 0; + object.shared = false; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.clientModifiedTime = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + if (options.bytes === String) + object.extra = ""; + else { + object.extra = []; + if (options.bytes !== Array) + object.extra = $util.newBuffer(object.extra); + } + object.udata = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.fileSize = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.thumbnailSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.thumbnailSize = options.longs === String ? "0" : 0; + } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof 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")) + object.version = message.version; + if (message.shared != null && message.hasOwnProperty("shared")) + object.shared = message.shared; + if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) + if (typeof message.clientModifiedTime === "number") + object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; + else + object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.extra != null && message.hasOwnProperty("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")) + object.udata = message.udata; + if (message.fileSize != null && message.hasOwnProperty("fileSize")) + if (typeof message.fileSize === "number") + object.fileSize = options.longs === String ? String(message.fileSize) : message.fileSize; + else + object.fileSize = options.longs === String ? $util.Long.prototype.toString.call(message.fileSize) : options.longs === Number ? new $util.LongBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0).toNumber() : message.fileSize; + if (message.thumbnailSize != null && message.hasOwnProperty("thumbnailSize")) + if (typeof 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; + return object; + }; + + /** + * Converts this Record to JSON. + * @function toJSON + * @memberof Vault.Record + * @instance + * @returns {Object.} JSON object + */ + Record.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Record + * @function getTypeUrl + * @memberof Vault.Record + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Record.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.Record"; + }; + + return Record; + })(); + + Vault.RecordLink = (function() { + + /** + * Properties of a RecordLink. + * @memberof Vault + * @interface IRecordLink + * @property {Uint8Array|null} [parentRecordUid] RecordLink parentRecordUid + * @property {Uint8Array|null} [childRecordUid] RecordLink childRecordUid + * @property {Uint8Array|null} [recordKey] RecordLink recordKey + * @property {number|Long|null} [revision] RecordLink revision + */ + + /** + * Constructs a new RecordLink. + * @memberof Vault + * @classdesc Represents a RecordLink. + * @implements IRecordLink + * @constructor + * @param {Vault.IRecordLink=} [properties] Properties to set + */ + function RecordLink(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RecordLink parentRecordUid. + * @member {Uint8Array} parentRecordUid + * @memberof Vault.RecordLink + * @instance + */ + RecordLink.prototype.parentRecordUid = $util.newBuffer([]); + + /** + * RecordLink childRecordUid. + * @member {Uint8Array} childRecordUid + * @memberof Vault.RecordLink + * @instance + */ + RecordLink.prototype.childRecordUid = $util.newBuffer([]); + + /** + * RecordLink recordKey. + * @member {Uint8Array} recordKey + * @memberof Vault.RecordLink + * @instance + */ + RecordLink.prototype.recordKey = $util.newBuffer([]); + + /** + * RecordLink revision. + * @member {number|Long} revision + * @memberof Vault.RecordLink + * @instance + */ + RecordLink.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new RecordLink instance using the specified properties. + * @function create + * @memberof Vault.RecordLink + * @static + * @param {Vault.IRecordLink=} [properties] Properties to set + * @returns {Vault.RecordLink} RecordLink instance + */ + RecordLink.create = function create(properties) { + return new RecordLink(properties); + }; + + /** + * Encodes the specified RecordLink message. Does not implicitly {@link Vault.RecordLink.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parentRecordUid != null && Object.hasOwnProperty.call(message, "parentRecordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.parentRecordUid); + if (message.childRecordUid != null && Object.hasOwnProperty.call(message, "childRecordUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.childRecordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordKey); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.revision); + 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 + * @memberof Vault.RecordLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.RecordLink(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parentRecordUid = reader.bytes(); + break; + } + case 2: { + message.childRecordUid = reader.bytes(); + break; + } + case 3: { + message.recordKey = reader.bytes(); + break; + } + case 4: { + message.revision = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof Vault.RecordLink + * @static + * @param {Object.} object Plain object + * @returns {Vault.RecordLink} RecordLink + */ + RecordLink.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.RecordLink) + return object; + let message = new $root.Vault.RecordLink(); + if (object.parentRecordUid != null) + if (typeof object.parentRecordUid === "string") + $util.base64.decode(object.parentRecordUid, message.parentRecordUid = $util.newBuffer($util.base64.length(object.parentRecordUid)), 0); + else if (object.parentRecordUid.length >= 0) + message.parentRecordUid = object.parentRecordUid; + if (object.childRecordUid != null) + if (typeof object.childRecordUid === "string") + $util.base64.decode(object.childRecordUid, message.childRecordUid = $util.newBuffer($util.base64.length(object.childRecordUid)), 0); + else if (object.childRecordUid.length >= 0) + message.childRecordUid = object.childRecordUid; + if (object.recordKey != null) + if (typeof object.recordKey === "string") + $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); + else if (object.recordKey.length >= 0) + message.recordKey = object.recordKey; + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a RecordLink message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.RecordLink + * @static + * @param {Vault.RecordLink} message RecordLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.parentRecordUid = ""; + else { + object.parentRecordUid = []; + if (options.bytes !== Array) + object.parentRecordUid = $util.newBuffer(object.parentRecordUid); + } + if (options.bytes === String) + object.childRecordUid = ""; + else { + object.childRecordUid = []; + if (options.bytes !== Array) + object.childRecordUid = $util.newBuffer(object.childRecordUid); + } + if (options.bytes === String) + object.recordKey = ""; + else { + object.recordKey = []; + if (options.bytes !== Array) + object.recordKey = $util.newBuffer(object.recordKey); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + } + if (message.parentRecordUid != null && message.hasOwnProperty("parentRecordUid")) + object.parentRecordUid = options.bytes === String ? $util.base64.encode(message.parentRecordUid, 0, message.parentRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.parentRecordUid) : message.parentRecordUid; + if (message.childRecordUid != null && message.hasOwnProperty("childRecordUid")) + object.childRecordUid = options.bytes === String ? $util.base64.encode(message.childRecordUid, 0, message.childRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.childRecordUid) : message.childRecordUid; + if (message.recordKey != null && message.hasOwnProperty("recordKey")) + object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof 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; + return object; + }; + + /** + * Converts this RecordLink to JSON. + * @function toJSON + * @memberof Vault.RecordLink + * @instance + * @returns {Object.} JSON object + */ + RecordLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecordLink + * @function getTypeUrl + * @memberof Vault.RecordLink + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecordLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.RecordLink"; + }; + + return RecordLink; + })(); + + Vault.UserFolderRecord = (function() { + + /** + * Properties of a UserFolderRecord. + * @memberof Vault + * @interface IUserFolderRecord + * @property {Uint8Array|null} [folderUid] UserFolderRecord folderUid + * @property {Uint8Array|null} [recordUid] UserFolderRecord recordUid + * @property {number|Long|null} [revision] UserFolderRecord revision + */ + + /** + * Constructs a new UserFolderRecord. + * @memberof Vault + * @classdesc Represents a UserFolderRecord. + * @implements IUserFolderRecord + * @constructor + * @param {Vault.IUserFolderRecord=} [properties] Properties to set + */ + function UserFolderRecord(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UserFolderRecord folderUid. + * @member {Uint8Array} folderUid + * @memberof Vault.UserFolderRecord + * @instance + */ + UserFolderRecord.prototype.folderUid = $util.newBuffer([]); + + /** + * UserFolderRecord recordUid. + * @member {Uint8Array} recordUid + * @memberof Vault.UserFolderRecord + * @instance + */ + UserFolderRecord.prototype.recordUid = $util.newBuffer([]); + + /** + * UserFolderRecord revision. + * @member {number|Long} revision + * @memberof Vault.UserFolderRecord + * @instance + */ + UserFolderRecord.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new UserFolderRecord instance using the specified properties. + * @function create + * @memberof Vault.UserFolderRecord + * @static + * @param {Vault.IUserFolderRecord=} [properties] Properties to set + * @returns {Vault.UserFolderRecord} UserFolderRecord instance + */ + UserFolderRecord.create = function create(properties) { + return new UserFolderRecord(properties); + }; + + /** + * Encodes the specified UserFolderRecord message. Does not implicitly {@link Vault.UserFolderRecord.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); + 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 + * @memberof Vault.UserFolderRecord + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.UserFolderRecord(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.folderUid = reader.bytes(); + break; + } + case 2: { + message.recordUid = reader.bytes(); + break; + } + case 3: { + message.revision = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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 UserFolderRecord message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Vault.UserFolderRecord + * @static + * @param {Object.} object Plain object + * @returns {Vault.UserFolderRecord} UserFolderRecord + */ + UserFolderRecord.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.UserFolderRecord) + return object; + let message = new $root.Vault.UserFolderRecord(); + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a UserFolderRecord message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.UserFolderRecord + * @static + * @param {Vault.UserFolderRecord} message UserFolderRecord + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UserFolderRecord.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.folderUid = ""; + else { + object.folderUid = []; + if (options.bytes !== Array) + object.folderUid = $util.newBuffer(object.folderUid); + } + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + } + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof 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; + return object; + }; + + /** + * Converts this UserFolderRecord to JSON. + * @function toJSON + * @memberof Vault.UserFolderRecord + * @instance + * @returns {Object.} JSON object + */ + UserFolderRecord.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UserFolderRecord + * @function getTypeUrl + * @memberof Vault.UserFolderRecord + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UserFolderRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.UserFolderRecord"; + }; + + return UserFolderRecord; + })(); + + Vault.SharedFolderFolderRecord = (function() { + + /** + * Properties of a SharedFolderFolderRecord. + * @memberof Vault + * @interface ISharedFolderFolderRecord + * @property {Uint8Array|null} [sharedFolderUid] SharedFolderFolderRecord sharedFolderUid + * @property {Uint8Array|null} [folderUid] SharedFolderFolderRecord folderUid + * @property {Uint8Array|null} [recordUid] SharedFolderFolderRecord recordUid + * @property {number|Long|null} [revision] SharedFolderFolderRecord revision + */ + + /** + * Constructs a new SharedFolderFolderRecord. + * @memberof Vault + * @classdesc Represents a SharedFolderFolderRecord. + * @implements ISharedFolderFolderRecord + * @constructor + * @param {Vault.ISharedFolderFolderRecord=} [properties] Properties to set + */ + function SharedFolderFolderRecord(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SharedFolderFolderRecord sharedFolderUid. + * @member {Uint8Array} sharedFolderUid + * @memberof Vault.SharedFolderFolderRecord + * @instance + */ + SharedFolderFolderRecord.prototype.sharedFolderUid = $util.newBuffer([]); + + /** + * SharedFolderFolderRecord folderUid. + * @member {Uint8Array} folderUid + * @memberof Vault.SharedFolderFolderRecord + * @instance + */ + SharedFolderFolderRecord.prototype.folderUid = $util.newBuffer([]); + + /** + * SharedFolderFolderRecord recordUid. + * @member {Uint8Array} recordUid + * @memberof Vault.SharedFolderFolderRecord + * @instance + */ + SharedFolderFolderRecord.prototype.recordUid = $util.newBuffer([]); + + /** + * SharedFolderFolderRecord revision. + * @member {number|Long} revision + * @memberof Vault.SharedFolderFolderRecord + * @instance + */ + SharedFolderFolderRecord.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new SharedFolderFolderRecord instance using the specified properties. + * @function create + * @memberof Vault.SharedFolderFolderRecord + * @static + * @param {Vault.ISharedFolderFolderRecord=} [properties] Properties to set + * @returns {Vault.SharedFolderFolderRecord} SharedFolderFolderRecord instance + */ + SharedFolderFolderRecord.create = function create(properties) { + return new SharedFolderFolderRecord(properties); + }; + + /** + * Encodes the specified SharedFolderFolderRecord message. Does not implicitly {@link Vault.SharedFolderFolderRecord.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.folderUid); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordUid); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.revision); + 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 + * @memberof Vault.SharedFolderFolderRecord + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderFolderRecord(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.sharedFolderUid = reader.bytes(); + break; + } + case 2: { + message.folderUid = reader.bytes(); + break; + } + case 3: { + message.recordUid = reader.bytes(); + break; + } + case 4: { + message.revision = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.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 + * @memberof Vault.SharedFolderFolderRecord + * @static + * @param {Object.} object Plain object + * @returns {Vault.SharedFolderFolderRecord} SharedFolderFolderRecord + */ + SharedFolderFolderRecord.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.SharedFolderFolderRecord) + return object; + let message = new $root.Vault.SharedFolderFolderRecord(); + if (object.sharedFolderUid != null) + if (typeof object.sharedFolderUid === "string") + $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); + else if (object.sharedFolderUid.length >= 0) + message.sharedFolderUid = object.sharedFolderUid; + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a SharedFolderFolderRecord message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.SharedFolderFolderRecord + * @static + * @param {Vault.SharedFolderFolderRecord} message SharedFolderFolderRecord + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SharedFolderFolderRecord.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.sharedFolderUid = ""; + else { + object.sharedFolderUid = []; + if (options.bytes !== Array) + object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + } + if (options.bytes === String) + object.folderUid = ""; + else { + object.folderUid = []; + if (options.bytes !== Array) + object.folderUid = $util.newBuffer(object.folderUid); + } + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + } + if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof 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; + return object; + }; + + /** + * Converts this SharedFolderFolderRecord to JSON. + * @function toJSON + * @memberof Vault.SharedFolderFolderRecord + * @instance + * @returns {Object.} JSON object + */ + SharedFolderFolderRecord.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SharedFolderFolderRecord + * @function getTypeUrl + * @memberof Vault.SharedFolderFolderRecord + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SharedFolderFolderRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.SharedFolderFolderRecord"; + }; + + return SharedFolderFolderRecord; + })(); + + Vault.NonSharedData = (function() { + + /** + * Properties of a NonSharedData. + * @memberof Vault + * @interface INonSharedData + * @property {Uint8Array|null} [recordUid] NonSharedData recordUid + * @property {Uint8Array|null} [data] NonSharedData data + */ + + /** + * Constructs a new NonSharedData. + * @memberof Vault + * @classdesc Represents a NonSharedData. + * @implements INonSharedData + * @constructor + * @param {Vault.INonSharedData=} [properties] Properties to set + */ + function NonSharedData(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NonSharedData recordUid. + * @member {Uint8Array} recordUid + * @memberof Vault.NonSharedData + * @instance + */ + NonSharedData.prototype.recordUid = $util.newBuffer([]); + + /** + * NonSharedData data. + * @member {Uint8Array} data + * @memberof Vault.NonSharedData + * @instance + */ + NonSharedData.prototype.data = $util.newBuffer([]); + + /** + * Creates a new NonSharedData instance using the specified properties. + * @function create + * @memberof Vault.NonSharedData + * @static + * @param {Vault.INonSharedData=} [properties] Properties to set + * @returns {Vault.NonSharedData} NonSharedData instance + */ + NonSharedData.create = function create(properties) { + return new NonSharedData(properties); + }; + + /** + * Encodes the specified NonSharedData message. Does not implicitly {@link Vault.NonSharedData.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); + 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 + * @memberof Vault.NonSharedData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.NonSharedData(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.data = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) + return "recordUid: buffer expected"; + if (message.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 + * @memberof Vault.NonSharedData + * @static + * @param {Object.} object Plain object + * @returns {Vault.NonSharedData} NonSharedData + */ + NonSharedData.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.NonSharedData) + return object; + let message = new $root.Vault.NonSharedData(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + return message; + }; + + /** + * Creates a plain object from a NonSharedData message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.NonSharedData + * @static + * @param {Vault.NonSharedData} message NonSharedData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NonSharedData.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + return object; + }; + + /** + * Converts this NonSharedData to JSON. + * @function toJSON + * @memberof Vault.NonSharedData + * @instance + * @returns {Object.} JSON object + */ + NonSharedData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NonSharedData + * @function getTypeUrl + * @memberof Vault.NonSharedData + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NonSharedData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.NonSharedData"; + }; + + return NonSharedData; + })(); + + Vault.RecordMetaData = (function() { + + /** + * Properties of a RecordMetaData. + * @memberof Vault + * @interface IRecordMetaData + * @property {Uint8Array|null} [recordUid] RecordMetaData recordUid + * @property {boolean|null} [owner] RecordMetaData owner + * @property {Uint8Array|null} [recordKey] RecordMetaData recordKey + * @property {Records.RecordKeyType|null} [recordKeyType] RecordMetaData recordKeyType + * @property {boolean|null} [canShare] RecordMetaData canShare + * @property {boolean|null} [canEdit] RecordMetaData canEdit + * @property {Uint8Array|null} [ownerAccountUid] RecordMetaData ownerAccountUid + * @property {number|Long|null} [expiration] RecordMetaData expiration + * @property {Records.TimerNotificationType|null} [expirationNotificationType] RecordMetaData expirationNotificationType + * @property {string|null} [ownerUsername] RecordMetaData ownerUsername + */ + + /** + * Constructs a new RecordMetaData. + * @memberof Vault + * @classdesc Represents a RecordMetaData. + * @implements IRecordMetaData + * @constructor + * @param {Vault.IRecordMetaData=} [properties] Properties to set + */ + function RecordMetaData(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RecordMetaData recordUid. + * @member {Uint8Array} recordUid + * @memberof Vault.RecordMetaData + * @instance + */ + RecordMetaData.prototype.recordUid = $util.newBuffer([]); + + /** + * RecordMetaData owner. + * @member {boolean} owner + * @memberof Vault.RecordMetaData + * @instance + */ + RecordMetaData.prototype.owner = false; + + /** + * RecordMetaData recordKey. + * @member {Uint8Array} recordKey + * @memberof Vault.RecordMetaData + * @instance + */ + RecordMetaData.prototype.recordKey = $util.newBuffer([]); + + /** + * RecordMetaData recordKeyType. + * @member {Records.RecordKeyType} recordKeyType + * @memberof Vault.RecordMetaData + * @instance + */ + RecordMetaData.prototype.recordKeyType = 0; + + /** + * RecordMetaData canShare. + * @member {boolean} canShare + * @memberof Vault.RecordMetaData + * @instance + */ + RecordMetaData.prototype.canShare = false; + + /** + * RecordMetaData canEdit. + * @member {boolean} canEdit + * @memberof Vault.RecordMetaData + * @instance + */ + RecordMetaData.prototype.canEdit = false; + + /** + * RecordMetaData ownerAccountUid. + * @member {Uint8Array} ownerAccountUid + * @memberof Vault.RecordMetaData + * @instance + */ + RecordMetaData.prototype.ownerAccountUid = $util.newBuffer([]); + + /** + * RecordMetaData expiration. + * @member {number|Long} expiration + * @memberof Vault.RecordMetaData + * @instance + */ + RecordMetaData.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * RecordMetaData expirationNotificationType. + * @member {Records.TimerNotificationType} expirationNotificationType + * @memberof Vault.RecordMetaData + * @instance + */ + RecordMetaData.prototype.expirationNotificationType = 0; + + /** + * RecordMetaData ownerUsername. + * @member {string} ownerUsername + * @memberof Vault.RecordMetaData + * @instance + */ + RecordMetaData.prototype.ownerUsername = ""; + + /** + * Creates a new RecordMetaData instance using the specified properties. + * @function create + * @memberof Vault.RecordMetaData + * @static + * @param {Vault.IRecordMetaData=} [properties] Properties to set + * @returns {Vault.RecordMetaData} RecordMetaData instance + */ + RecordMetaData.create = function create(properties) { + return new RecordMetaData(properties); + }; + + /** + * Encodes the specified RecordMetaData message. Does not implicitly {@link Vault.RecordMetaData.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.owner); + if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordKey); + if (message.recordKeyType != null && Object.hasOwnProperty.call(message, "recordKeyType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.recordKeyType); + if (message.canShare != null && Object.hasOwnProperty.call(message, "canShare")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.canShare); + if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.canEdit); + if (message.ownerAccountUid != null && Object.hasOwnProperty.call(message, "ownerAccountUid")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.ownerAccountUid); + if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) + writer.uint32(/* id 8, wireType 0 =*/64).int64(message.expiration); + if (message.expirationNotificationType != null && Object.hasOwnProperty.call(message, "expirationNotificationType")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.expirationNotificationType); + if (message.ownerUsername != null && Object.hasOwnProperty.call(message, "ownerUsername")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerUsername); + 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 + * @memberof Vault.RecordMetaData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.RecordMetaData(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.owner = reader.bool(); + break; + } + case 3: { + message.recordKey = reader.bytes(); + break; + } + case 4: { + message.recordKeyType = reader.int32(); + break; + } + case 5: { + message.canShare = reader.bool(); + break; + } + case 6: { + message.canEdit = reader.bool(); + break; + } + case 7: { + message.ownerAccountUid = reader.bytes(); + break; + } + case 8: { + message.expiration = reader.int64(); + break; + } + case 9: { + message.expirationNotificationType = reader.int32(); + break; + } + case 10: { + message.ownerUsername = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) + return "recordUid: buffer expected"; + if (message.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 + * @memberof Vault.RecordMetaData + * @static + * @param {Object.} object Plain object + * @returns {Vault.RecordMetaData} RecordMetaData + */ + RecordMetaData.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.RecordMetaData) + return object; + let message = new $root.Vault.RecordMetaData(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.owner != null) + message.owner = Boolean(object.owner); + if (object.recordKey != null) + if (typeof object.recordKey === "string") + $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); + else if (object.recordKey.length >= 0) + message.recordKey = object.recordKey; + switch (object.recordKeyType) { + default: + if (typeof object.recordKeyType === "number") { + message.recordKeyType = object.recordKeyType; + break; + } + break; + case "NO_KEY": + case 0: + message.recordKeyType = 0; + break; + case "ENCRYPTED_BY_DATA_KEY": + case 1: + message.recordKeyType = 1; + break; + case "ENCRYPTED_BY_PUBLIC_KEY": + case 2: + message.recordKeyType = 2; + break; + case "ENCRYPTED_BY_DATA_KEY_GCM": + case 3: + message.recordKeyType = 3; + break; + case "ENCRYPTED_BY_PUBLIC_KEY_ECC": + case 4: + message.recordKeyType = 4; + break; + case "ENCRYPTED_BY_ROOT_KEY_CBC": + case 5: + message.recordKeyType = 5; + break; + case "ENCRYPTED_BY_ROOT_KEY_GCM": + case 6: + message.recordKeyType = 6; + break; + } + if (object.canShare != null) + message.canShare = Boolean(object.canShare); + if (object.canEdit != null) + message.canEdit = Boolean(object.canEdit); + if (object.ownerAccountUid != null) + if (typeof object.ownerAccountUid === "string") + $util.base64.decode(object.ownerAccountUid, message.ownerAccountUid = $util.newBuffer($util.base64.length(object.ownerAccountUid)), 0); + else if (object.ownerAccountUid.length >= 0) + message.ownerAccountUid = object.ownerAccountUid; + if (object.expiration != null) + if ($util.Long) + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === "string") + message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === "number") + message.expiration = object.expiration; + else if (typeof object.expiration === "object") + message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + switch (object.expirationNotificationType) { + default: + if (typeof object.expirationNotificationType === "number") { + message.expirationNotificationType = object.expirationNotificationType; + break; + } + break; + case "NOTIFICATION_OFF": + case 0: + message.expirationNotificationType = 0; + break; + case "NOTIFY_OWNER": + case 1: + message.expirationNotificationType = 1; + break; + case "NOTIFY_PRIVILEGED_USERS": + case 2: + message.expirationNotificationType = 2; + break; + } + if (object.ownerUsername != null) + message.ownerUsername = String(object.ownerUsername); + return message; + }; + + /** + * Creates a plain object from a RecordMetaData message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.RecordMetaData + * @static + * @param {Vault.RecordMetaData} message RecordMetaData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordMetaData.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + object.owner = false; + if (options.bytes === String) + object.recordKey = ""; + else { + object.recordKey = []; + if (options.bytes !== Array) + object.recordKey = $util.newBuffer(object.recordKey); + } + object.recordKeyType = options.enums === String ? "NO_KEY" : 0; + object.canShare = false; + object.canEdit = false; + if (options.bytes === String) + object.ownerAccountUid = ""; + else { + object.ownerAccountUid = []; + if (options.bytes !== Array) + object.ownerAccountUid = $util.newBuffer(object.ownerAccountUid); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.expiration = options.longs === String ? "0" : 0; + object.expirationNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; + object.ownerUsername = ""; + } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.owner != null && message.hasOwnProperty("owner")) + object.owner = message.owner; + if (message.recordKey != null && message.hasOwnProperty("recordKey")) + object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; + if (message.recordKeyType != null && message.hasOwnProperty("recordKeyType")) + object.recordKeyType = options.enums === String ? $root.Records.RecordKeyType[message.recordKeyType] === undefined ? message.recordKeyType : $root.Records.RecordKeyType[message.recordKeyType] : message.recordKeyType; + if (message.canShare != null && message.hasOwnProperty("canShare")) + object.canShare = message.canShare; + if (message.canEdit != null && message.hasOwnProperty("canEdit")) + object.canEdit = message.canEdit; + if (message.ownerAccountUid != null && message.hasOwnProperty("ownerAccountUid")) + object.ownerAccountUid = options.bytes === String ? $util.base64.encode(message.ownerAccountUid, 0, message.ownerAccountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.ownerAccountUid) : message.ownerAccountUid; + if (message.expiration != null && message.hasOwnProperty("expiration")) + if (typeof 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")) + 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")) + object.ownerUsername = message.ownerUsername; + return object; + }; + + /** + * Converts this RecordMetaData to JSON. + * @function toJSON + * @memberof Vault.RecordMetaData + * @instance + * @returns {Object.} JSON object + */ + RecordMetaData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecordMetaData + * @function getTypeUrl + * @memberof Vault.RecordMetaData + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecordMetaData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.RecordMetaData"; + }; + + return RecordMetaData; + })(); + + Vault.SharingChange = (function() { + + /** + * Properties of a SharingChange. + * @memberof Vault + * @interface ISharingChange + * @property {Uint8Array|null} [recordUid] SharingChange recordUid + * @property {boolean|null} [shared] SharingChange shared + */ + + /** + * Constructs a new SharingChange. + * @memberof Vault + * @classdesc Represents a SharingChange. + * @implements ISharingChange + * @constructor + * @param {Vault.ISharingChange=} [properties] Properties to set + */ + function SharingChange(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SharingChange recordUid. + * @member {Uint8Array} recordUid + * @memberof Vault.SharingChange + * @instance + */ + SharingChange.prototype.recordUid = $util.newBuffer([]); + + /** + * SharingChange shared. + * @member {boolean} shared + * @memberof Vault.SharingChange + * @instance + */ + SharingChange.prototype.shared = false; + + /** + * Creates a new SharingChange instance using the specified properties. + * @function create + * @memberof Vault.SharingChange + * @static + * @param {Vault.ISharingChange=} [properties] Properties to set + * @returns {Vault.SharingChange} SharingChange instance + */ + SharingChange.create = function create(properties) { + return new SharingChange(properties); + }; + + /** + * Encodes the specified SharingChange message. Does not implicitly {@link Vault.SharingChange.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.shared); + 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 + * @memberof Vault.SharingChange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharingChange(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.shared = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) + return "recordUid: buffer expected"; + if (message.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 + * @memberof Vault.SharingChange + * @static + * @param {Object.} object Plain object + * @returns {Vault.SharingChange} SharingChange + */ + SharingChange.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.SharingChange) + return object; + let message = new $root.Vault.SharingChange(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.shared != null) + message.shared = Boolean(object.shared); + return message; + }; + + /** + * Creates a plain object from a SharingChange message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.SharingChange + * @static + * @param {Vault.SharingChange} message SharingChange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SharingChange.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + object.shared = false; + } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.shared != null && message.hasOwnProperty("shared")) + object.shared = message.shared; + return object; + }; + + /** + * Converts this SharingChange to JSON. + * @function toJSON + * @memberof Vault.SharingChange + * @instance + * @returns {Object.} JSON object + */ + SharingChange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SharingChange + * @function getTypeUrl + * @memberof Vault.SharingChange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SharingChange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.SharingChange"; + }; + + return SharingChange; + })(); + + Vault.Profile = (function() { + + /** + * Properties of a Profile. + * @memberof Vault + * @interface IProfile + * @property {Uint8Array|null} [data] Profile data + * @property {string|null} [profileName] Profile profileName + * @property {number|Long|null} [revision] Profile revision + */ + + /** + * Constructs a new Profile. + * @memberof Vault + * @classdesc Represents a Profile. + * @implements IProfile + * @constructor + * @param {Vault.IProfile=} [properties] Properties to set + */ + function Profile(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Profile data. + * @member {Uint8Array} data + * @memberof Vault.Profile + * @instance + */ + Profile.prototype.data = $util.newBuffer([]); + + /** + * Profile profileName. + * @member {string} profileName + * @memberof Vault.Profile + * @instance + */ + Profile.prototype.profileName = ""; + + /** + * Profile revision. + * @member {number|Long} revision + * @memberof Vault.Profile + * @instance + */ + Profile.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new Profile instance using the specified properties. + * @function create + * @memberof Vault.Profile + * @static + * @param {Vault.IProfile=} [properties] Properties to set + * @returns {Vault.Profile} Profile instance + */ + Profile.create = function create(properties) { + return new Profile(properties); + }; + + /** + * Encodes the specified Profile message. Does not implicitly {@link Vault.Profile.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.data); + if (message.profileName != null && Object.hasOwnProperty.call(message, "profileName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.profileName); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); + 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 + * @memberof Vault.Profile + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.Profile(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.data = reader.bytes(); + break; + } + case 2: { + message.profileName = reader.string(); + break; + } + case 3: { + message.revision = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.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 + * @memberof Vault.Profile + * @static + * @param {Object.} object Plain object + * @returns {Vault.Profile} Profile + */ + Profile.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.Profile) + return object; + let message = new $root.Vault.Profile(); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + if (object.profileName != null) + message.profileName = String(object.profileName); + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a Profile message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.Profile + * @static + * @param {Vault.Profile} message Profile + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Profile.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + object.profileName = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + } + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.profileName != null && message.hasOwnProperty("profileName")) + object.profileName = message.profileName; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof 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; + return object; + }; + + /** + * Converts this Profile to JSON. + * @function toJSON + * @memberof Vault.Profile + * @instance + * @returns {Object.} JSON object + */ + Profile.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Profile + * @function getTypeUrl + * @memberof Vault.Profile + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Profile.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.Profile"; + }; + + return Profile; + })(); + + Vault.ProfilePic = (function() { + + /** + * Properties of a ProfilePic. + * @memberof Vault + * @interface IProfilePic + * @property {string|null} [url] ProfilePic url + * @property {number|Long|null} [revision] ProfilePic revision + */ + + /** + * Constructs a new ProfilePic. + * @memberof Vault + * @classdesc Represents a ProfilePic. + * @implements IProfilePic + * @constructor + * @param {Vault.IProfilePic=} [properties] Properties to set + */ + function ProfilePic(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProfilePic url. + * @member {string} url + * @memberof Vault.ProfilePic + * @instance + */ + ProfilePic.prototype.url = ""; + + /** + * ProfilePic revision. + * @member {number|Long} revision + * @memberof Vault.ProfilePic + * @instance + */ + ProfilePic.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new ProfilePic instance using the specified properties. + * @function create + * @memberof Vault.ProfilePic + * @static + * @param {Vault.IProfilePic=} [properties] Properties to set + * @returns {Vault.ProfilePic} ProfilePic instance + */ + ProfilePic.create = function create(properties) { + return new ProfilePic(properties); + }; + + /** + * Encodes the specified ProfilePic message. Does not implicitly {@link Vault.ProfilePic.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.url != null && Object.hasOwnProperty.call(message, "url")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.url); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); + 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 + * @memberof Vault.ProfilePic + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.ProfilePic(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.url = reader.string(); + break; + } + case 2: { + message.revision = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof Vault.ProfilePic + * @static + * @param {Object.} object Plain object + * @returns {Vault.ProfilePic} ProfilePic + */ + ProfilePic.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.ProfilePic) + return object; + let message = new $root.Vault.ProfilePic(); + if (object.url != null) + message.url = String(object.url); + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a ProfilePic message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.ProfilePic + * @static + * @param {Vault.ProfilePic} message ProfilePic + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ProfilePic.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.url = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + } + if (message.url != null && message.hasOwnProperty("url")) + object.url = message.url; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof 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; + return object; + }; + + /** + * Converts this ProfilePic to JSON. + * @function toJSON + * @memberof Vault.ProfilePic + * @instance + * @returns {Object.} JSON object + */ + ProfilePic.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ProfilePic + * @function getTypeUrl + * @memberof Vault.ProfilePic + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ProfilePic.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.ProfilePic"; + }; + + return ProfilePic; + })(); + + Vault.PendingTeamMember = (function() { + + /** + * Properties of a PendingTeamMember. + * @memberof Vault + * @interface IPendingTeamMember + * @property {number|Long|null} [enterpriseUserId] PendingTeamMember enterpriseUserId + * @property {Uint8Array|null} [userPublicKey] PendingTeamMember userPublicKey + * @property {Array.|null} [teamUids] PendingTeamMember teamUids + * @property {Uint8Array|null} [userEccPublicKey] PendingTeamMember userEccPublicKey + */ + + /** + * Constructs a new PendingTeamMember. + * @memberof Vault + * @classdesc Represents a PendingTeamMember. + * @implements IPendingTeamMember + * @constructor + * @param {Vault.IPendingTeamMember=} [properties] Properties to set + */ + function PendingTeamMember(properties) { + this.teamUids = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PendingTeamMember enterpriseUserId. + * @member {number|Long} enterpriseUserId + * @memberof Vault.PendingTeamMember + * @instance + */ + PendingTeamMember.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * PendingTeamMember userPublicKey. + * @member {Uint8Array} userPublicKey + * @memberof Vault.PendingTeamMember + * @instance + */ + PendingTeamMember.prototype.userPublicKey = $util.newBuffer([]); + + /** + * PendingTeamMember teamUids. + * @member {Array.} teamUids + * @memberof Vault.PendingTeamMember + * @instance + */ + PendingTeamMember.prototype.teamUids = $util.emptyArray; + + /** + * PendingTeamMember userEccPublicKey. + * @member {Uint8Array} userEccPublicKey + * @memberof Vault.PendingTeamMember + * @instance + */ + PendingTeamMember.prototype.userEccPublicKey = $util.newBuffer([]); + + /** + * Creates a new PendingTeamMember instance using the specified properties. + * @function create + * @memberof Vault.PendingTeamMember + * @static + * @param {Vault.IPendingTeamMember=} [properties] Properties to set + * @returns {Vault.PendingTeamMember} PendingTeamMember instance + */ + PendingTeamMember.create = function create(properties) { + return new PendingTeamMember(properties); + }; + + /** + * Encodes the specified PendingTeamMember message. Does not implicitly {@link Vault.PendingTeamMember.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); + if (message.userPublicKey != null && Object.hasOwnProperty.call(message, "userPublicKey")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.userPublicKey); + if (message.teamUids != null && message.teamUids.length) + for (let i = 0; i < message.teamUids.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.teamUids[i]); + if (message.userEccPublicKey != null && Object.hasOwnProperty.call(message, "userEccPublicKey")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.userEccPublicKey); + 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 + * @memberof Vault.PendingTeamMember + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.PendingTeamMember(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enterpriseUserId = reader.int64(); + break; + } + case 2: { + message.userPublicKey = reader.bytes(); + break; + } + case 3: { + if (!(message.teamUids && message.teamUids.length)) + message.teamUids = []; + message.teamUids.push(reader.bytes()); + break; + } + case 4: { + message.userEccPublicKey = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.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 + * @memberof Vault.PendingTeamMember + * @static + * @param {Object.} object Plain object + * @returns {Vault.PendingTeamMember} PendingTeamMember + */ + PendingTeamMember.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.PendingTeamMember) + return object; + let message = new $root.Vault.PendingTeamMember(); + if (object.enterpriseUserId != null) + if ($util.Long) + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; + else if (typeof object.enterpriseUserId === "string") + message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); + else if (typeof object.enterpriseUserId === "number") + message.enterpriseUserId = object.enterpriseUserId; + else if (typeof object.enterpriseUserId === "object") + message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + if (object.userPublicKey != null) + if (typeof object.userPublicKey === "string") + $util.base64.decode(object.userPublicKey, message.userPublicKey = $util.newBuffer($util.base64.length(object.userPublicKey)), 0); + else if (object.userPublicKey.length >= 0) + message.userPublicKey = object.userPublicKey; + if (object.teamUids) { + if (!Array.isArray(object.teamUids)) + throw TypeError(".Vault.PendingTeamMember.teamUids: array expected"); + message.teamUids = []; + for (let i = 0; i < object.teamUids.length; ++i) + if (typeof object.teamUids[i] === "string") + $util.base64.decode(object.teamUids[i], message.teamUids[i] = $util.newBuffer($util.base64.length(object.teamUids[i])), 0); + else if (object.teamUids[i].length >= 0) + message.teamUids[i] = object.teamUids[i]; + } + if (object.userEccPublicKey != null) + if (typeof object.userEccPublicKey === "string") + $util.base64.decode(object.userEccPublicKey, message.userEccPublicKey = $util.newBuffer($util.base64.length(object.userEccPublicKey)), 0); + else if (object.userEccPublicKey.length >= 0) + message.userEccPublicKey = object.userEccPublicKey; + return message; + }; + + /** + * Creates a plain object from a PendingTeamMember message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.PendingTeamMember + * @static + * @param {Vault.PendingTeamMember} message PendingTeamMember + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PendingTeamMember.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.teamUids = []; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.enterpriseUserId = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.userPublicKey = ""; + else { + object.userPublicKey = []; + if (options.bytes !== Array) + object.userPublicKey = $util.newBuffer(object.userPublicKey); + } + if (options.bytes === String) + object.userEccPublicKey = ""; + else { + object.userEccPublicKey = []; + if (options.bytes !== Array) + object.userEccPublicKey = $util.newBuffer(object.userEccPublicKey); + } + } + if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + 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")) + 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")) + 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; + }; + + /** + * Converts this PendingTeamMember to JSON. + * @function toJSON + * @memberof Vault.PendingTeamMember + * @instance + * @returns {Object.} JSON object + */ + PendingTeamMember.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PendingTeamMember + * @function getTypeUrl + * @memberof Vault.PendingTeamMember + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PendingTeamMember.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.PendingTeamMember"; + }; + + return PendingTeamMember; + })(); + + Vault.BreachWatchRecord = (function() { + + /** + * Properties of a BreachWatchRecord. + * @memberof Vault + * @interface IBreachWatchRecord + * @property {Uint8Array|null} [recordUid] BreachWatchRecord recordUid + * @property {Uint8Array|null} [data] BreachWatchRecord data + * @property {BreachWatch.BreachWatchInfoType|null} [type] BreachWatchRecord type + * @property {string|null} [scannedBy] BreachWatchRecord scannedBy + * @property {number|Long|null} [revision] BreachWatchRecord revision + * @property {Uint8Array|null} [scannedByAccountUid] BreachWatchRecord scannedByAccountUid + */ + + /** + * Constructs a new BreachWatchRecord. + * @memberof Vault + * @classdesc Represents a BreachWatchRecord. + * @implements IBreachWatchRecord + * @constructor + * @param {Vault.IBreachWatchRecord=} [properties] Properties to set + */ + function BreachWatchRecord(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BreachWatchRecord recordUid. + * @member {Uint8Array} recordUid + * @memberof Vault.BreachWatchRecord + * @instance + */ + BreachWatchRecord.prototype.recordUid = $util.newBuffer([]); + + /** + * BreachWatchRecord data. + * @member {Uint8Array} data + * @memberof Vault.BreachWatchRecord + * @instance + */ + BreachWatchRecord.prototype.data = $util.newBuffer([]); + + /** + * BreachWatchRecord type. + * @member {BreachWatch.BreachWatchInfoType} type + * @memberof Vault.BreachWatchRecord + * @instance + */ + BreachWatchRecord.prototype.type = 0; + + /** + * BreachWatchRecord scannedBy. + * @member {string} scannedBy + * @memberof Vault.BreachWatchRecord + * @instance + */ + BreachWatchRecord.prototype.scannedBy = ""; + + /** + * BreachWatchRecord revision. + * @member {number|Long} revision + * @memberof Vault.BreachWatchRecord + * @instance + */ + BreachWatchRecord.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * BreachWatchRecord scannedByAccountUid. + * @member {Uint8Array} scannedByAccountUid + * @memberof Vault.BreachWatchRecord + * @instance + */ + BreachWatchRecord.prototype.scannedByAccountUid = $util.newBuffer([]); + + /** + * Creates a new BreachWatchRecord instance using the specified properties. + * @function create + * @memberof Vault.BreachWatchRecord + * @static + * @param {Vault.IBreachWatchRecord=} [properties] Properties to set + * @returns {Vault.BreachWatchRecord} BreachWatchRecord instance + */ + BreachWatchRecord.create = function create(properties) { + return new BreachWatchRecord(properties); + }; + + /** + * Encodes the specified BreachWatchRecord message. Does not implicitly {@link Vault.BreachWatchRecord.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.type); + if (message.scannedBy != null && Object.hasOwnProperty.call(message, "scannedBy")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.scannedBy); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.revision); + if (message.scannedByAccountUid != null && Object.hasOwnProperty.call(message, "scannedByAccountUid")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.scannedByAccountUid); + 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 + * @memberof Vault.BreachWatchRecord + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.BreachWatchRecord(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.data = reader.bytes(); + break; + } + case 3: { + message.type = reader.int32(); + break; + } + case 4: { + message.scannedBy = reader.string(); + break; + } + case 5: { + message.revision = reader.int64(); + break; + } + case 6: { + message.scannedByAccountUid = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) + return "recordUid: buffer expected"; + if (message.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 + * @memberof Vault.BreachWatchRecord + * @static + * @param {Object.} object Plain object + * @returns {Vault.BreachWatchRecord} BreachWatchRecord + */ + BreachWatchRecord.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.BreachWatchRecord) + return object; + let message = new $root.Vault.BreachWatchRecord(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "RECORD": + case 0: + message.type = 0; + break; + case "ALTERNATE_PASSWORD": + case 1: + message.type = 1; + break; + } + if (object.scannedBy != null) + message.scannedBy = String(object.scannedBy); + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if (object.scannedByAccountUid != null) + if (typeof object.scannedByAccountUid === "string") + $util.base64.decode(object.scannedByAccountUid, message.scannedByAccountUid = $util.newBuffer($util.base64.length(object.scannedByAccountUid)), 0); + else if (object.scannedByAccountUid.length >= 0) + message.scannedByAccountUid = object.scannedByAccountUid; + return message; + }; + + /** + * Creates a plain object from a BreachWatchRecord message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.BreachWatchRecord + * @static + * @param {Vault.BreachWatchRecord} message BreachWatchRecord + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BreachWatchRecord.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + object.type = options.enums === String ? "RECORD" : 0; + object.scannedBy = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.scannedByAccountUid = ""; + else { + object.scannedByAccountUid = []; + if (options.bytes !== Array) + object.scannedByAccountUid = $util.newBuffer(object.scannedByAccountUid); + } + } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.type != null && message.hasOwnProperty("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")) + object.scannedBy = message.scannedBy; + if (message.revision != null && message.hasOwnProperty("revision")) + 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")) + 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; + }; + + /** + * Converts this BreachWatchRecord to JSON. + * @function toJSON + * @memberof Vault.BreachWatchRecord + * @instance + * @returns {Object.} JSON object + */ + BreachWatchRecord.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BreachWatchRecord + * @function getTypeUrl + * @memberof Vault.BreachWatchRecord + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BreachWatchRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.BreachWatchRecord"; + }; + + return BreachWatchRecord; + })(); + + Vault.UserAuth = (function() { + + /** + * Properties of a UserAuth. + * @memberof Vault + * @interface IUserAuth + * @property {Uint8Array|null} [uid] UserAuth uid + * @property {Authentication.LoginType|null} [loginType] UserAuth loginType + * @property {boolean|null} [deleted] UserAuth deleted + * @property {number|null} [iterations] UserAuth iterations + * @property {Uint8Array|null} [salt] UserAuth salt + * @property {Uint8Array|null} [encryptedClientKey] UserAuth encryptedClientKey + * @property {number|Long|null} [revision] UserAuth revision + * @property {string|null} [name] UserAuth name + */ + + /** + * Constructs a new UserAuth. + * @memberof Vault + * @classdesc Represents a UserAuth. + * @implements IUserAuth + * @constructor + * @param {Vault.IUserAuth=} [properties] Properties to set + */ + function UserAuth(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UserAuth uid. + * @member {Uint8Array} uid + * @memberof Vault.UserAuth + * @instance + */ + UserAuth.prototype.uid = $util.newBuffer([]); + + /** + * UserAuth loginType. + * @member {Authentication.LoginType} loginType + * @memberof Vault.UserAuth + * @instance + */ + UserAuth.prototype.loginType = 0; + + /** + * UserAuth deleted. + * @member {boolean} deleted + * @memberof Vault.UserAuth + * @instance + */ + UserAuth.prototype.deleted = false; + + /** + * UserAuth iterations. + * @member {number} iterations + * @memberof Vault.UserAuth + * @instance + */ + UserAuth.prototype.iterations = 0; + + /** + * UserAuth salt. + * @member {Uint8Array} salt + * @memberof Vault.UserAuth + * @instance + */ + UserAuth.prototype.salt = $util.newBuffer([]); + + /** + * UserAuth encryptedClientKey. + * @member {Uint8Array} encryptedClientKey + * @memberof Vault.UserAuth + * @instance + */ + UserAuth.prototype.encryptedClientKey = $util.newBuffer([]); + + /** + * UserAuth revision. + * @member {number|Long} revision + * @memberof Vault.UserAuth + * @instance + */ + UserAuth.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * UserAuth name. + * @member {string} name + * @memberof Vault.UserAuth + * @instance + */ + UserAuth.prototype.name = ""; + + /** + * Creates a new UserAuth instance using the specified properties. + * @function create + * @memberof Vault.UserAuth + * @static + * @param {Vault.IUserAuth=} [properties] Properties to set + * @returns {Vault.UserAuth} UserAuth instance + */ + UserAuth.create = function create(properties) { + return new UserAuth(properties); + }; + + /** + * Encodes the specified UserAuth message. Does not implicitly {@link Vault.UserAuth.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); + if (message.loginType != null && Object.hasOwnProperty.call(message, "loginType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.loginType); + if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deleted); + if (message.iterations != null && Object.hasOwnProperty.call(message, "iterations")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.iterations); + if (message.salt != null && Object.hasOwnProperty.call(message, "salt")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.salt); + if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, "encryptedClientKey")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.encryptedClientKey); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.revision); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.name); + 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 + * @memberof Vault.UserAuth + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.UserAuth(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.uid = reader.bytes(); + break; + } + case 2: { + message.loginType = reader.int32(); + break; + } + case 3: { + message.deleted = reader.bool(); + break; + } + case 4: { + message.iterations = reader.int32(); + break; + } + case 5: { + message.salt = reader.bytes(); + break; + } + case 6: { + message.encryptedClientKey = reader.bytes(); + break; + } + case 7: { + message.revision = reader.int64(); + break; + } + case 8: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.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 + * @memberof Vault.UserAuth + * @static + * @param {Object.} object Plain object + * @returns {Vault.UserAuth} UserAuth + */ + UserAuth.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.UserAuth) + return object; + let message = new $root.Vault.UserAuth(); + if (object.uid != null) + if (typeof object.uid === "string") + $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); + else if (object.uid.length >= 0) + message.uid = object.uid; + switch (object.loginType) { + default: + if (typeof object.loginType === "number") { + message.loginType = object.loginType; + break; + } + break; + case "NORMAL": + case 0: + message.loginType = 0; + break; + case "SSO": + case 1: + message.loginType = 1; + break; + case "BIO": + case 2: + message.loginType = 2; + break; + case "ALTERNATE": + case 3: + message.loginType = 3; + break; + case "OFFLINE": + case 4: + message.loginType = 4; + break; + case "FORGOT_PASSWORD": + case 5: + message.loginType = 5; + break; + case "PASSKEY_BIO": + case 6: + message.loginType = 6; + break; + } + if (object.deleted != null) + message.deleted = Boolean(object.deleted); + if (object.iterations != null) + message.iterations = object.iterations | 0; + if (object.salt != null) + if (typeof object.salt === "string") + $util.base64.decode(object.salt, message.salt = $util.newBuffer($util.base64.length(object.salt)), 0); + else if (object.salt.length >= 0) + message.salt = object.salt; + if (object.encryptedClientKey != null) + if (typeof object.encryptedClientKey === "string") + $util.base64.decode(object.encryptedClientKey, message.encryptedClientKey = $util.newBuffer($util.base64.length(object.encryptedClientKey)), 0); + else if (object.encryptedClientKey.length >= 0) + message.encryptedClientKey = object.encryptedClientKey; + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a UserAuth message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.UserAuth + * @static + * @param {Vault.UserAuth} message UserAuth + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UserAuth.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.uid = ""; + else { + object.uid = []; + if (options.bytes !== Array) + object.uid = $util.newBuffer(object.uid); + } + object.loginType = options.enums === String ? "NORMAL" : 0; + object.deleted = false; + object.iterations = 0; + if (options.bytes === String) + object.salt = ""; + else { + object.salt = []; + if (options.bytes !== Array) + object.salt = $util.newBuffer(object.salt); + } + if (options.bytes === String) + object.encryptedClientKey = ""; + else { + object.encryptedClientKey = []; + if (options.bytes !== Array) + object.encryptedClientKey = $util.newBuffer(object.encryptedClientKey); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + object.name = ""; + } + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; + if (message.loginType != null && message.hasOwnProperty("loginType")) + object.loginType = options.enums === String ? $root.Authentication.LoginType[message.loginType] === undefined ? message.loginType : $root.Authentication.LoginType[message.loginType] : message.loginType; + if (message.deleted != null && message.hasOwnProperty("deleted")) + object.deleted = message.deleted; + if (message.iterations != null && message.hasOwnProperty("iterations")) + object.iterations = message.iterations; + if (message.salt != null && message.hasOwnProperty("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")) + object.encryptedClientKey = options.bytes === String ? $util.base64.encode(message.encryptedClientKey, 0, message.encryptedClientKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedClientKey) : message.encryptedClientKey; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof 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")) + object.name = message.name; + return object; + }; + + /** + * Converts this UserAuth to JSON. + * @function toJSON + * @memberof Vault.UserAuth + * @instance + * @returns {Object.} JSON object + */ + UserAuth.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UserAuth + * @function getTypeUrl + * @memberof Vault.UserAuth + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UserAuth.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.UserAuth"; + }; + + return UserAuth; + })(); + + Vault.BreachWatchSecurityData = (function() { + + /** + * Properties of a BreachWatchSecurityData. + * @memberof Vault + * @interface IBreachWatchSecurityData + * @property {Uint8Array|null} [recordUid] BreachWatchSecurityData recordUid + * @property {number|Long|null} [revision] BreachWatchSecurityData revision + * @property {boolean|null} [removed] BreachWatchSecurityData removed + */ + + /** + * Constructs a new BreachWatchSecurityData. + * @memberof Vault + * @classdesc Represents a BreachWatchSecurityData. + * @implements IBreachWatchSecurityData + * @constructor + * @param {Vault.IBreachWatchSecurityData=} [properties] Properties to set + */ + function BreachWatchSecurityData(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BreachWatchSecurityData recordUid. + * @member {Uint8Array} recordUid + * @memberof Vault.BreachWatchSecurityData + * @instance + */ + BreachWatchSecurityData.prototype.recordUid = $util.newBuffer([]); + + /** + * BreachWatchSecurityData revision. + * @member {number|Long} revision + * @memberof Vault.BreachWatchSecurityData + * @instance + */ + BreachWatchSecurityData.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * BreachWatchSecurityData removed. + * @member {boolean} removed + * @memberof Vault.BreachWatchSecurityData + * @instance + */ + BreachWatchSecurityData.prototype.removed = false; + + /** + * Creates a new BreachWatchSecurityData instance using the specified properties. + * @function create + * @memberof Vault.BreachWatchSecurityData + * @static + * @param {Vault.IBreachWatchSecurityData=} [properties] Properties to set + * @returns {Vault.BreachWatchSecurityData} BreachWatchSecurityData instance + */ + BreachWatchSecurityData.create = function create(properties) { + return new BreachWatchSecurityData(properties); + }; + + /** + * Encodes the specified BreachWatchSecurityData message. Does not implicitly {@link Vault.BreachWatchSecurityData.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); + if (message.removed != null && Object.hasOwnProperty.call(message, "removed")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.removed); + 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 + * @memberof Vault.BreachWatchSecurityData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.BreachWatchSecurityData(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.revision = reader.int64(); + break; + } + case 3: { + message.removed = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) + return "recordUid: buffer expected"; + if (message.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 + * @memberof Vault.BreachWatchSecurityData + * @static + * @param {Object.} object Plain object + * @returns {Vault.BreachWatchSecurityData} BreachWatchSecurityData + */ + BreachWatchSecurityData.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.BreachWatchSecurityData) + return object; + let message = new $root.Vault.BreachWatchSecurityData(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if (object.removed != null) + message.removed = Boolean(object.removed); + return message; + }; + + /** + * Creates a plain object from a BreachWatchSecurityData message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.BreachWatchSecurityData + * @static + * @param {Vault.BreachWatchSecurityData} message BreachWatchSecurityData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BreachWatchSecurityData.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + object.removed = false; + } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof 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")) + object.removed = message.removed; + return object; + }; + + /** + * Converts this BreachWatchSecurityData to JSON. + * @function toJSON + * @memberof Vault.BreachWatchSecurityData + * @instance + * @returns {Object.} JSON object + */ + BreachWatchSecurityData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BreachWatchSecurityData + * @function getTypeUrl + * @memberof Vault.BreachWatchSecurityData + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BreachWatchSecurityData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.BreachWatchSecurityData"; + }; + + return BreachWatchSecurityData; + })(); + + Vault.ReusedPasswords = (function() { + + /** + * Properties of a ReusedPasswords. + * @memberof Vault + * @interface IReusedPasswords + * @property {number|null} [count] ReusedPasswords count + * @property {number|Long|null} [revision] ReusedPasswords revision + */ + + /** + * Constructs a new ReusedPasswords. + * @memberof Vault + * @classdesc Represents a ReusedPasswords. + * @implements IReusedPasswords + * @constructor + * @param {Vault.IReusedPasswords=} [properties] Properties to set + */ + function ReusedPasswords(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReusedPasswords count. + * @member {number} count + * @memberof Vault.ReusedPasswords + * @instance + */ + ReusedPasswords.prototype.count = 0; + + /** + * ReusedPasswords revision. + * @member {number|Long} revision + * @memberof Vault.ReusedPasswords + * @instance + */ + ReusedPasswords.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new ReusedPasswords instance using the specified properties. + * @function create + * @memberof Vault.ReusedPasswords + * @static + * @param {Vault.IReusedPasswords=} [properties] Properties to set + * @returns {Vault.ReusedPasswords} ReusedPasswords instance + */ + ReusedPasswords.create = function create(properties) { + return new ReusedPasswords(properties); + }; + + /** + * Encodes the specified ReusedPasswords message. Does not implicitly {@link Vault.ReusedPasswords.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.count); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); + 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 + * @memberof Vault.ReusedPasswords + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.ReusedPasswords(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.count = reader.int32(); + break; + } + case 2: { + message.revision = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof Vault.ReusedPasswords + * @static + * @param {Object.} object Plain object + * @returns {Vault.ReusedPasswords} ReusedPasswords + */ + ReusedPasswords.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.ReusedPasswords) + return object; + let message = new $root.Vault.ReusedPasswords(); + if (object.count != null) + message.count = object.count | 0; + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a ReusedPasswords message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.ReusedPasswords + * @static + * @param {Vault.ReusedPasswords} message ReusedPasswords + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReusedPasswords.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.count = 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + } + if (message.count != null && message.hasOwnProperty("count")) + object.count = message.count; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof 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; + return object; + }; + + /** + * Converts this ReusedPasswords to JSON. + * @function toJSON + * @memberof Vault.ReusedPasswords + * @instance + * @returns {Object.} JSON object + */ + ReusedPasswords.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReusedPasswords + * @function getTypeUrl + * @memberof Vault.ReusedPasswords + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReusedPasswords.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.ReusedPasswords"; + }; + + return ReusedPasswords; + })(); + + Vault.SharedFolderRecord = (function() { + + /** + * Properties of a SharedFolderRecord. + * @memberof Vault + * @interface ISharedFolderRecord + * @property {Uint8Array|null} [sharedFolderUid] SharedFolderRecord sharedFolderUid + * @property {Uint8Array|null} [recordUid] SharedFolderRecord recordUid + * @property {Uint8Array|null} [recordKey] SharedFolderRecord recordKey + * @property {boolean|null} [canShare] SharedFolderRecord canShare + * @property {boolean|null} [canEdit] SharedFolderRecord canEdit + * @property {Uint8Array|null} [ownerAccountUid] SharedFolderRecord ownerAccountUid + * @property {number|Long|null} [expiration] SharedFolderRecord expiration + * @property {boolean|null} [owner] SharedFolderRecord owner + * @property {Records.TimerNotificationType|null} [expirationNotificationType] SharedFolderRecord expirationNotificationType + * @property {string|null} [ownerUsername] SharedFolderRecord ownerUsername + * @property {boolean|null} [rotateOnExpiration] SharedFolderRecord rotateOnExpiration + */ + + /** + * Constructs a new SharedFolderRecord. + * @memberof Vault + * @classdesc Represents a SharedFolderRecord. + * @implements ISharedFolderRecord + * @constructor + * @param {Vault.ISharedFolderRecord=} [properties] Properties to set + */ + function SharedFolderRecord(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SharedFolderRecord sharedFolderUid. + * @member {Uint8Array} sharedFolderUid + * @memberof Vault.SharedFolderRecord + * @instance + */ + SharedFolderRecord.prototype.sharedFolderUid = $util.newBuffer([]); + + /** + * SharedFolderRecord recordUid. + * @member {Uint8Array} recordUid + * @memberof Vault.SharedFolderRecord + * @instance + */ + SharedFolderRecord.prototype.recordUid = $util.newBuffer([]); + + /** + * SharedFolderRecord recordKey. + * @member {Uint8Array} recordKey + * @memberof Vault.SharedFolderRecord + * @instance + */ + SharedFolderRecord.prototype.recordKey = $util.newBuffer([]); + + /** + * SharedFolderRecord canShare. + * @member {boolean} canShare + * @memberof Vault.SharedFolderRecord + * @instance + */ + SharedFolderRecord.prototype.canShare = false; + + /** + * SharedFolderRecord canEdit. + * @member {boolean} canEdit + * @memberof Vault.SharedFolderRecord + * @instance + */ + SharedFolderRecord.prototype.canEdit = false; + + /** + * SharedFolderRecord ownerAccountUid. + * @member {Uint8Array} ownerAccountUid + * @memberof Vault.SharedFolderRecord + * @instance + */ + SharedFolderRecord.prototype.ownerAccountUid = $util.newBuffer([]); + + /** + * SharedFolderRecord expiration. + * @member {number|Long} expiration + * @memberof Vault.SharedFolderRecord + * @instance + */ + SharedFolderRecord.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SharedFolderRecord owner. + * @member {boolean} owner + * @memberof Vault.SharedFolderRecord + * @instance + */ + SharedFolderRecord.prototype.owner = false; + + /** + * SharedFolderRecord expirationNotificationType. + * @member {Records.TimerNotificationType} expirationNotificationType + * @memberof Vault.SharedFolderRecord + * @instance + */ + SharedFolderRecord.prototype.expirationNotificationType = 0; + + /** + * SharedFolderRecord ownerUsername. + * @member {string} ownerUsername + * @memberof Vault.SharedFolderRecord + * @instance + */ + SharedFolderRecord.prototype.ownerUsername = ""; + + /** + * SharedFolderRecord rotateOnExpiration. + * @member {boolean} rotateOnExpiration + * @memberof Vault.SharedFolderRecord + * @instance + */ + SharedFolderRecord.prototype.rotateOnExpiration = false; + + /** + * Creates a new SharedFolderRecord instance using the specified properties. + * @function create + * @memberof Vault.SharedFolderRecord + * @static + * @param {Vault.ISharedFolderRecord=} [properties] Properties to set + * @returns {Vault.SharedFolderRecord} SharedFolderRecord instance + */ + SharedFolderRecord.create = function create(properties) { + return new SharedFolderRecord(properties); + }; + + /** + * Encodes the specified SharedFolderRecord message. Does not implicitly {@link Vault.SharedFolderRecord.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordKey); + if (message.canShare != null && Object.hasOwnProperty.call(message, "canShare")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canShare); + if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.canEdit); + if (message.ownerAccountUid != null && Object.hasOwnProperty.call(message, "ownerAccountUid")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.ownerAccountUid); + if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.expiration); + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.owner); + if (message.expirationNotificationType != null && Object.hasOwnProperty.call(message, "expirationNotificationType")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.expirationNotificationType); + if (message.ownerUsername != null && Object.hasOwnProperty.call(message, "ownerUsername")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerUsername); + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.rotateOnExpiration); + 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 + * @memberof Vault.SharedFolderRecord + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderRecord(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.sharedFolderUid = reader.bytes(); + break; + } + case 2: { + message.recordUid = reader.bytes(); + break; + } + case 3: { + message.recordKey = reader.bytes(); + break; + } + case 4: { + message.canShare = reader.bool(); + break; + } + case 5: { + message.canEdit = reader.bool(); + break; + } + case 6: { + message.ownerAccountUid = reader.bytes(); + break; + } + case 7: { + message.expiration = reader.int64(); + break; + } + case 8: { + message.owner = reader.bool(); + break; + } + case 9: { + message.expirationNotificationType = reader.int32(); + break; + } + case 10: { + message.ownerUsername = reader.string(); + break; + } + case 11: { + message.rotateOnExpiration = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.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 + * @memberof Vault.SharedFolderRecord + * @static + * @param {Object.} object Plain object + * @returns {Vault.SharedFolderRecord} SharedFolderRecord + */ + SharedFolderRecord.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.SharedFolderRecord) + return object; + let message = new $root.Vault.SharedFolderRecord(); + if (object.sharedFolderUid != null) + if (typeof object.sharedFolderUid === "string") + $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); + else if (object.sharedFolderUid.length >= 0) + message.sharedFolderUid = object.sharedFolderUid; + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.recordKey != null) + if (typeof object.recordKey === "string") + $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); + else if (object.recordKey.length >= 0) + message.recordKey = object.recordKey; + if (object.canShare != null) + message.canShare = Boolean(object.canShare); + if (object.canEdit != null) + message.canEdit = Boolean(object.canEdit); + if (object.ownerAccountUid != null) + if (typeof object.ownerAccountUid === "string") + $util.base64.decode(object.ownerAccountUid, message.ownerAccountUid = $util.newBuffer($util.base64.length(object.ownerAccountUid)), 0); + else if (object.ownerAccountUid.length >= 0) + message.ownerAccountUid = object.ownerAccountUid; + if (object.expiration != null) + if ($util.Long) + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === "string") + message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === "number") + message.expiration = object.expiration; + else if (typeof object.expiration === "object") + message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if (object.owner != null) + message.owner = Boolean(object.owner); + switch (object.expirationNotificationType) { + default: + if (typeof object.expirationNotificationType === "number") { + message.expirationNotificationType = object.expirationNotificationType; + break; + } + break; + case "NOTIFICATION_OFF": + case 0: + message.expirationNotificationType = 0; + break; + case "NOTIFY_OWNER": + case 1: + message.expirationNotificationType = 1; + break; + case "NOTIFY_PRIVILEGED_USERS": + case 2: + message.expirationNotificationType = 2; + break; + } + if (object.ownerUsername != null) + message.ownerUsername = String(object.ownerUsername); + if (object.rotateOnExpiration != null) + message.rotateOnExpiration = Boolean(object.rotateOnExpiration); + return message; + }; + + /** + * Creates a plain object from a SharedFolderRecord message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.SharedFolderRecord + * @static + * @param {Vault.SharedFolderRecord} message SharedFolderRecord + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SharedFolderRecord.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.sharedFolderUid = ""; + else { + object.sharedFolderUid = []; + if (options.bytes !== Array) + object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + } + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if (options.bytes === String) + object.recordKey = ""; + else { + object.recordKey = []; + if (options.bytes !== Array) + object.recordKey = $util.newBuffer(object.recordKey); + } + object.canShare = false; + object.canEdit = false; + if (options.bytes === String) + object.ownerAccountUid = ""; + else { + object.ownerAccountUid = []; + if (options.bytes !== Array) + object.ownerAccountUid = $util.newBuffer(object.ownerAccountUid); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.expiration = options.longs === String ? "0" : 0; + object.owner = false; + object.expirationNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; + object.ownerUsername = ""; + object.rotateOnExpiration = false; + } + if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.recordKey != null && message.hasOwnProperty("recordKey")) + object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; + if (message.canShare != null && message.hasOwnProperty("canShare")) + object.canShare = message.canShare; + if (message.canEdit != null && message.hasOwnProperty("canEdit")) + object.canEdit = message.canEdit; + if (message.ownerAccountUid != null && message.hasOwnProperty("ownerAccountUid")) + object.ownerAccountUid = options.bytes === String ? $util.base64.encode(message.ownerAccountUid, 0, message.ownerAccountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.ownerAccountUid) : message.ownerAccountUid; + if (message.expiration != null && message.hasOwnProperty("expiration")) + if (typeof 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")) + object.owner = message.owner; + if (message.expirationNotificationType != null && message.hasOwnProperty("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")) + object.ownerUsername = message.ownerUsername; + if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + object.rotateOnExpiration = message.rotateOnExpiration; + return object; + }; + + /** + * Converts this SharedFolderRecord to JSON. + * @function toJSON + * @memberof Vault.SharedFolderRecord + * @instance + * @returns {Object.} JSON object + */ + SharedFolderRecord.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SharedFolderRecord + * @function getTypeUrl + * @memberof Vault.SharedFolderRecord + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SharedFolderRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.SharedFolderRecord"; + }; + + return SharedFolderRecord; + })(); + + Vault.SharedFolderUser = (function() { + + /** + * Properties of a SharedFolderUser. + * @memberof Vault + * @interface ISharedFolderUser + * @property {Uint8Array|null} [sharedFolderUid] SharedFolderUser sharedFolderUid + * @property {string|null} [username] SharedFolderUser username + * @property {boolean|null} [manageRecords] SharedFolderUser manageRecords + * @property {boolean|null} [manageUsers] SharedFolderUser manageUsers + * @property {Uint8Array|null} [accountUid] SharedFolderUser accountUid + * @property {number|Long|null} [expiration] SharedFolderUser expiration + * @property {Records.TimerNotificationType|null} [expirationNotificationType] SharedFolderUser expirationNotificationType + * @property {boolean|null} [rotateOnExpiration] SharedFolderUser rotateOnExpiration + */ + + /** + * Constructs a new SharedFolderUser. + * @memberof Vault + * @classdesc Represents a SharedFolderUser. + * @implements ISharedFolderUser + * @constructor + * @param {Vault.ISharedFolderUser=} [properties] Properties to set + */ + function SharedFolderUser(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SharedFolderUser sharedFolderUid. + * @member {Uint8Array} sharedFolderUid + * @memberof Vault.SharedFolderUser + * @instance + */ + SharedFolderUser.prototype.sharedFolderUid = $util.newBuffer([]); + + /** + * SharedFolderUser username. + * @member {string} username + * @memberof Vault.SharedFolderUser + * @instance + */ + SharedFolderUser.prototype.username = ""; + + /** + * SharedFolderUser manageRecords. + * @member {boolean} manageRecords + * @memberof Vault.SharedFolderUser + * @instance + */ + SharedFolderUser.prototype.manageRecords = false; + + /** + * SharedFolderUser manageUsers. + * @member {boolean} manageUsers + * @memberof Vault.SharedFolderUser + * @instance + */ + SharedFolderUser.prototype.manageUsers = false; + + /** + * SharedFolderUser accountUid. + * @member {Uint8Array} accountUid + * @memberof Vault.SharedFolderUser + * @instance + */ + SharedFolderUser.prototype.accountUid = $util.newBuffer([]); + + /** + * SharedFolderUser expiration. + * @member {number|Long} expiration + * @memberof Vault.SharedFolderUser + * @instance + */ + SharedFolderUser.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SharedFolderUser expirationNotificationType. + * @member {Records.TimerNotificationType} expirationNotificationType + * @memberof Vault.SharedFolderUser + * @instance + */ + SharedFolderUser.prototype.expirationNotificationType = 0; + + /** + * SharedFolderUser rotateOnExpiration. + * @member {boolean} rotateOnExpiration + * @memberof Vault.SharedFolderUser + * @instance + */ + SharedFolderUser.prototype.rotateOnExpiration = false; + + /** + * Creates a new SharedFolderUser instance using the specified properties. + * @function create + * @memberof Vault.SharedFolderUser + * @static + * @param {Vault.ISharedFolderUser=} [properties] Properties to set + * @returns {Vault.SharedFolderUser} SharedFolderUser instance + */ + SharedFolderUser.create = function create(properties) { + return new SharedFolderUser(properties); + }; + + /** + * Encodes the specified SharedFolderUser message. Does not implicitly {@link Vault.SharedFolderUser.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); + if (message.manageRecords != null && Object.hasOwnProperty.call(message, "manageRecords")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.manageRecords); + if (message.manageUsers != null && Object.hasOwnProperty.call(message, "manageUsers")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.manageUsers); + if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.accountUid); + if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.expiration); + if (message.expirationNotificationType != null && Object.hasOwnProperty.call(message, "expirationNotificationType")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.expirationNotificationType); + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.rotateOnExpiration); + 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 + * @memberof Vault.SharedFolderUser + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderUser(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.sharedFolderUid = reader.bytes(); + break; + } + case 2: { + message.username = reader.string(); + break; + } + case 3: { + message.manageRecords = reader.bool(); + break; + } + case 4: { + message.manageUsers = reader.bool(); + break; + } + case 5: { + message.accountUid = reader.bytes(); + break; + } + case 6: { + message.expiration = reader.int64(); + break; + } + case 7: { + message.expirationNotificationType = reader.int32(); + break; + } + case 8: { + message.rotateOnExpiration = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.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 + * @memberof Vault.SharedFolderUser + * @static + * @param {Object.} object Plain object + * @returns {Vault.SharedFolderUser} SharedFolderUser + */ + SharedFolderUser.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.SharedFolderUser) + return object; + let message = new $root.Vault.SharedFolderUser(); + if (object.sharedFolderUid != null) + if (typeof object.sharedFolderUid === "string") + $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); + else if (object.sharedFolderUid.length >= 0) + message.sharedFolderUid = object.sharedFolderUid; + if (object.username != null) + message.username = String(object.username); + if (object.manageRecords != null) + message.manageRecords = Boolean(object.manageRecords); + if (object.manageUsers != null) + message.manageUsers = Boolean(object.manageUsers); + if (object.accountUid != null) + if (typeof object.accountUid === "string") + $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); + else if (object.accountUid.length >= 0) + message.accountUid = object.accountUid; + if (object.expiration != null) + if ($util.Long) + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === "string") + message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === "number") + message.expiration = object.expiration; + else if (typeof object.expiration === "object") + message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + switch (object.expirationNotificationType) { + default: + if (typeof object.expirationNotificationType === "number") { + message.expirationNotificationType = object.expirationNotificationType; + break; + } + break; + case "NOTIFICATION_OFF": + case 0: + message.expirationNotificationType = 0; + break; + case "NOTIFY_OWNER": + case 1: + message.expirationNotificationType = 1; + break; + case "NOTIFY_PRIVILEGED_USERS": + case 2: + message.expirationNotificationType = 2; + break; + } + if (object.rotateOnExpiration != null) + message.rotateOnExpiration = Boolean(object.rotateOnExpiration); + return message; + }; + + /** + * Creates a plain object from a SharedFolderUser message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.SharedFolderUser + * @static + * @param {Vault.SharedFolderUser} message SharedFolderUser + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SharedFolderUser.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.sharedFolderUid = ""; + else { + object.sharedFolderUid = []; + if (options.bytes !== Array) + object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + } + object.username = ""; + object.manageRecords = false; + object.manageUsers = false; + if (options.bytes === String) + object.accountUid = ""; + else { + object.accountUid = []; + if (options.bytes !== Array) + object.accountUid = $util.newBuffer(object.accountUid); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.expiration = options.longs === String ? "0" : 0; + object.expirationNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; + object.rotateOnExpiration = false; + } + if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) + object.manageRecords = message.manageRecords; + if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) + object.manageUsers = message.manageUsers; + if (message.accountUid != null && message.hasOwnProperty("accountUid")) + object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; + if (message.expiration != null && message.hasOwnProperty("expiration")) + if (typeof 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")) + 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")) + object.rotateOnExpiration = message.rotateOnExpiration; + return object; + }; + + /** + * Converts this SharedFolderUser to JSON. + * @function toJSON + * @memberof Vault.SharedFolderUser + * @instance + * @returns {Object.} JSON object + */ + SharedFolderUser.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SharedFolderUser + * @function getTypeUrl + * @memberof Vault.SharedFolderUser + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SharedFolderUser.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.SharedFolderUser"; + }; + + return SharedFolderUser; + })(); + + Vault.SharedFolderTeam = (function() { + + /** + * Properties of a SharedFolderTeam. + * @memberof Vault + * @interface ISharedFolderTeam + * @property {Uint8Array|null} [sharedFolderUid] SharedFolderTeam sharedFolderUid + * @property {Uint8Array|null} [teamUid] SharedFolderTeam teamUid + * @property {string|null} [name] SharedFolderTeam name + * @property {boolean|null} [manageRecords] SharedFolderTeam manageRecords + * @property {boolean|null} [manageUsers] SharedFolderTeam manageUsers + * @property {number|Long|null} [expiration] SharedFolderTeam expiration + * @property {Records.TimerNotificationType|null} [expirationNotificationType] SharedFolderTeam expirationNotificationType + * @property {boolean|null} [rotateOnExpiration] SharedFolderTeam rotateOnExpiration + */ + + /** + * Constructs a new SharedFolderTeam. + * @memberof Vault + * @classdesc Represents a SharedFolderTeam. + * @implements ISharedFolderTeam + * @constructor + * @param {Vault.ISharedFolderTeam=} [properties] Properties to set + */ + function SharedFolderTeam(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SharedFolderTeam sharedFolderUid. + * @member {Uint8Array} sharedFolderUid + * @memberof Vault.SharedFolderTeam + * @instance + */ + SharedFolderTeam.prototype.sharedFolderUid = $util.newBuffer([]); + + /** + * SharedFolderTeam teamUid. + * @member {Uint8Array} teamUid + * @memberof Vault.SharedFolderTeam + * @instance + */ + SharedFolderTeam.prototype.teamUid = $util.newBuffer([]); + + /** + * SharedFolderTeam name. + * @member {string} name + * @memberof Vault.SharedFolderTeam + * @instance + */ + SharedFolderTeam.prototype.name = ""; + + /** + * SharedFolderTeam manageRecords. + * @member {boolean} manageRecords + * @memberof Vault.SharedFolderTeam + * @instance + */ + SharedFolderTeam.prototype.manageRecords = false; + + /** + * SharedFolderTeam manageUsers. + * @member {boolean} manageUsers + * @memberof Vault.SharedFolderTeam + * @instance + */ + SharedFolderTeam.prototype.manageUsers = false; + + /** + * SharedFolderTeam expiration. + * @member {number|Long} expiration + * @memberof Vault.SharedFolderTeam + * @instance + */ + SharedFolderTeam.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SharedFolderTeam expirationNotificationType. + * @member {Records.TimerNotificationType} expirationNotificationType + * @memberof Vault.SharedFolderTeam + * @instance + */ + SharedFolderTeam.prototype.expirationNotificationType = 0; + + /** + * SharedFolderTeam rotateOnExpiration. + * @member {boolean} rotateOnExpiration + * @memberof Vault.SharedFolderTeam + * @instance + */ + SharedFolderTeam.prototype.rotateOnExpiration = false; + + /** + * Creates a new SharedFolderTeam instance using the specified properties. + * @function create + * @memberof Vault.SharedFolderTeam + * @static + * @param {Vault.ISharedFolderTeam=} [properties] Properties to set + * @returns {Vault.SharedFolderTeam} SharedFolderTeam instance + */ + SharedFolderTeam.create = function create(properties) { + return new SharedFolderTeam(properties); + }; + + /** + * Encodes the specified SharedFolderTeam message. Does not implicitly {@link Vault.SharedFolderTeam.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); + if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.teamUid); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + if (message.manageRecords != null && Object.hasOwnProperty.call(message, "manageRecords")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.manageRecords); + if (message.manageUsers != null && Object.hasOwnProperty.call(message, "manageUsers")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.manageUsers); + if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.expiration); + if (message.expirationNotificationType != null && Object.hasOwnProperty.call(message, "expirationNotificationType")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.expirationNotificationType); + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.rotateOnExpiration); + 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 + * @memberof Vault.SharedFolderTeam + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderTeam(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.sharedFolderUid = reader.bytes(); + break; + } + case 2: { + message.teamUid = reader.bytes(); + break; + } + case 3: { + message.name = reader.string(); + break; + } + case 4: { + message.manageRecords = reader.bool(); + break; + } + case 5: { + message.manageUsers = reader.bool(); + break; + } + case 6: { + message.expiration = reader.int64(); + break; + } + case 7: { + message.expirationNotificationType = reader.int32(); + break; + } + case 8: { + message.rotateOnExpiration = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.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 + * @memberof Vault.SharedFolderTeam + * @static + * @param {Object.} object Plain object + * @returns {Vault.SharedFolderTeam} SharedFolderTeam + */ + SharedFolderTeam.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.SharedFolderTeam) + return object; + let message = new $root.Vault.SharedFolderTeam(); + if (object.sharedFolderUid != null) + if (typeof object.sharedFolderUid === "string") + $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); + else if (object.sharedFolderUid.length >= 0) + message.sharedFolderUid = object.sharedFolderUid; + if (object.teamUid != null) + if (typeof object.teamUid === "string") + $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); + else if (object.teamUid.length >= 0) + message.teamUid = object.teamUid; + if (object.name != null) + message.name = String(object.name); + if (object.manageRecords != null) + message.manageRecords = Boolean(object.manageRecords); + if (object.manageUsers != null) + message.manageUsers = Boolean(object.manageUsers); + if (object.expiration != null) + if ($util.Long) + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === "string") + message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === "number") + message.expiration = object.expiration; + else if (typeof object.expiration === "object") + message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + switch (object.expirationNotificationType) { + default: + if (typeof object.expirationNotificationType === "number") { + message.expirationNotificationType = object.expirationNotificationType; + break; + } + break; + case "NOTIFICATION_OFF": + case 0: + message.expirationNotificationType = 0; + break; + case "NOTIFY_OWNER": + case 1: + message.expirationNotificationType = 1; + break; + case "NOTIFY_PRIVILEGED_USERS": + case 2: + message.expirationNotificationType = 2; + break; + } + if (object.rotateOnExpiration != null) + message.rotateOnExpiration = Boolean(object.rotateOnExpiration); + return message; + }; + + /** + * Creates a plain object from a SharedFolderTeam message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.SharedFolderTeam + * @static + * @param {Vault.SharedFolderTeam} message SharedFolderTeam + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SharedFolderTeam.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.sharedFolderUid = ""; + else { + object.sharedFolderUid = []; + if (options.bytes !== Array) + object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + } + if (options.bytes === String) + object.teamUid = ""; + else { + object.teamUid = []; + if (options.bytes !== Array) + object.teamUid = $util.newBuffer(object.teamUid); + } + object.name = ""; + object.manageRecords = false; + object.manageUsers = false; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.expiration = options.longs === String ? "0" : 0; + object.expirationNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; + object.rotateOnExpiration = false; + } + if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) + object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; + if (message.teamUid != null && message.hasOwnProperty("teamUid")) + object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) + object.manageRecords = message.manageRecords; + if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) + object.manageUsers = message.manageUsers; + if (message.expiration != null && message.hasOwnProperty("expiration")) + 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")) + 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")) + object.rotateOnExpiration = message.rotateOnExpiration; + return object; + }; + + /** + * Converts this SharedFolderTeam to JSON. + * @function toJSON + * @memberof Vault.SharedFolderTeam + * @instance + * @returns {Object.} JSON object + */ + SharedFolderTeam.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SharedFolderTeam + * @function getTypeUrl + * @memberof Vault.SharedFolderTeam + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SharedFolderTeam.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.SharedFolderTeam"; + }; + + return SharedFolderTeam; + })(); + + Vault.KsmChange = (function() { + + /** + * Properties of a KsmChange. + * @memberof Vault + * @interface IKsmChange + * @property {Uint8Array|null} [appRecordUid] KsmChange appRecordUid + * @property {Uint8Array|null} [detailId] KsmChange detailId + * @property {boolean|null} [removed] KsmChange removed + * @property {Enterprise.AppClientType|null} [appClientType] KsmChange appClientType + * @property {number|Long|null} [expiration] KsmChange expiration + */ + + /** + * Constructs a new KsmChange. + * @memberof Vault + * @classdesc Represents a KsmChange. + * @implements IKsmChange + * @constructor + * @param {Vault.IKsmChange=} [properties] Properties to set + */ + function KsmChange(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * KsmChange appRecordUid. + * @member {Uint8Array} appRecordUid + * @memberof Vault.KsmChange + * @instance + */ + KsmChange.prototype.appRecordUid = $util.newBuffer([]); + + /** + * KsmChange detailId. + * @member {Uint8Array} detailId + * @memberof Vault.KsmChange + * @instance + */ + KsmChange.prototype.detailId = $util.newBuffer([]); + + /** + * KsmChange removed. + * @member {boolean} removed + * @memberof Vault.KsmChange + * @instance + */ + KsmChange.prototype.removed = false; + + /** + * KsmChange appClientType. + * @member {Enterprise.AppClientType} appClientType + * @memberof Vault.KsmChange + * @instance + */ + KsmChange.prototype.appClientType = 0; + + /** + * KsmChange expiration. + * @member {number|Long} expiration + * @memberof Vault.KsmChange + * @instance + */ + KsmChange.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new KsmChange instance using the specified properties. + * @function create + * @memberof Vault.KsmChange + * @static + * @param {Vault.IKsmChange=} [properties] Properties to set + * @returns {Vault.KsmChange} KsmChange instance + */ + KsmChange.create = function create(properties) { + return new KsmChange(properties); + }; + + /** + * Encodes the specified KsmChange message. Does not implicitly {@link Vault.KsmChange.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "appRecordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appRecordUid); + if (message.detailId != null && Object.hasOwnProperty.call(message, "detailId")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.detailId); + if (message.removed != null && Object.hasOwnProperty.call(message, "removed")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.removed); + if (message.appClientType != null && Object.hasOwnProperty.call(message, "appClientType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.appClientType); + if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.expiration); + 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 + * @memberof Vault.KsmChange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.KsmChange(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.appRecordUid = reader.bytes(); + break; + } + case 2: { + message.detailId = reader.bytes(); + break; + } + case 3: { + message.removed = reader.bool(); + break; + } + case 4: { + message.appClientType = reader.int32(); + break; + } + case 5: { + message.expiration = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof Vault.KsmChange + * @static + * @param {Object.} object Plain object + * @returns {Vault.KsmChange} KsmChange + */ + KsmChange.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.KsmChange) + return object; + let message = new $root.Vault.KsmChange(); + if (object.appRecordUid != null) + if (typeof object.appRecordUid === "string") + $util.base64.decode(object.appRecordUid, message.appRecordUid = $util.newBuffer($util.base64.length(object.appRecordUid)), 0); + else if (object.appRecordUid.length >= 0) + message.appRecordUid = object.appRecordUid; + if (object.detailId != null) + if (typeof object.detailId === "string") + $util.base64.decode(object.detailId, message.detailId = $util.newBuffer($util.base64.length(object.detailId)), 0); + else if (object.detailId.length >= 0) + message.detailId = object.detailId; + if (object.removed != null) + message.removed = Boolean(object.removed); + switch (object.appClientType) { + default: + if (typeof object.appClientType === "number") { + message.appClientType = object.appClientType; + break; + } + break; + case "NOT_USED": + case 0: + message.appClientType = 0; + break; + case "GENERAL": + case 1: + message.appClientType = 1; + break; + case "DISCOVERY_AND_ROTATION_CONTROLLER": + case 2: + message.appClientType = 2; + break; + case "KCM_CONTROLLER": + case 3: + message.appClientType = 3; + break; + case "SELF_DESTRUCT": + case 4: + message.appClientType = 4; + break; + } + if (object.expiration != null) + if ($util.Long) + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === "string") + message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === "number") + message.expiration = object.expiration; + else if (typeof object.expiration === "object") + message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a KsmChange message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.KsmChange + * @static + * @param {Vault.KsmChange} message KsmChange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + KsmChange.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.appRecordUid = ""; + else { + object.appRecordUid = []; + if (options.bytes !== Array) + object.appRecordUid = $util.newBuffer(object.appRecordUid); + } + if (options.bytes === String) + object.detailId = ""; + else { + object.detailId = []; + if (options.bytes !== Array) + object.detailId = $util.newBuffer(object.detailId); + } + object.removed = false; + object.appClientType = options.enums === String ? "NOT_USED" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.expiration = options.longs === String ? "0" : 0; + } + if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) + object.appRecordUid = options.bytes === String ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.appRecordUid) : message.appRecordUid; + if (message.detailId != null && message.hasOwnProperty("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")) + object.removed = message.removed; + if (message.appClientType != null && message.hasOwnProperty("appClientType")) + object.appClientType = options.enums === String ? $root.Enterprise.AppClientType[message.appClientType] === undefined ? message.appClientType : $root.Enterprise.AppClientType[message.appClientType] : message.appClientType; + if (message.expiration != null && message.hasOwnProperty("expiration")) + if (typeof 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; + return object; + }; + + /** + * Converts this KsmChange to JSON. + * @function toJSON + * @memberof Vault.KsmChange + * @instance + * @returns {Object.} JSON object + */ + KsmChange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for KsmChange + * @function getTypeUrl + * @memberof Vault.KsmChange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + KsmChange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.KsmChange"; + }; + + return KsmChange; + })(); + + Vault.ShareInvitation = (function() { + + /** + * Properties of a ShareInvitation. + * @memberof Vault + * @interface IShareInvitation + * @property {string|null} [username] ShareInvitation username + */ + + /** + * Constructs a new ShareInvitation. + * @memberof Vault + * @classdesc Represents a ShareInvitation. + * @implements IShareInvitation + * @constructor + * @param {Vault.IShareInvitation=} [properties] Properties to set + */ + function ShareInvitation(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ShareInvitation username. + * @member {string} username + * @memberof Vault.ShareInvitation + * @instance + */ + ShareInvitation.prototype.username = ""; + + /** + * Creates a new ShareInvitation instance using the specified properties. + * @function create + * @memberof Vault.ShareInvitation + * @static + * @param {Vault.IShareInvitation=} [properties] Properties to set + * @returns {Vault.ShareInvitation} ShareInvitation instance + */ + ShareInvitation.create = function create(properties) { + return new ShareInvitation(properties); + }; + + /** + * Encodes the specified ShareInvitation message. Does not implicitly {@link Vault.ShareInvitation.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); + 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 + * @memberof Vault.ShareInvitation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.ShareInvitation(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.username = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof Vault.ShareInvitation + * @static + * @param {Object.} object Plain object + * @returns {Vault.ShareInvitation} ShareInvitation + */ + ShareInvitation.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.ShareInvitation) + return object; + let message = new $root.Vault.ShareInvitation(); + if (object.username != null) + message.username = String(object.username); + return message; + }; + + /** + * Creates a plain object from a ShareInvitation message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.ShareInvitation + * @static + * @param {Vault.ShareInvitation} message ShareInvitation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ShareInvitation.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.username = ""; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + return object; + }; + + /** + * Converts this ShareInvitation to JSON. + * @function toJSON + * @memberof Vault.ShareInvitation + * @instance + * @returns {Object.} JSON object + */ + ShareInvitation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ShareInvitation + * @function getTypeUrl + * @memberof Vault.ShareInvitation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ShareInvitation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.ShareInvitation"; + }; + + return ShareInvitation; + })(); + + Vault.User = (function() { + + /** + * Properties of a User. + * @memberof Vault + * @interface IUser + * @property {Uint8Array|null} [accountUid] User accountUid + * @property {string|null} [username] User username + */ + + /** + * Constructs a new User. + * @memberof Vault + * @classdesc Represents a User. + * @implements IUser + * @constructor + * @param {Vault.IUser=} [properties] Properties to set + */ + function User(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * User accountUid. + * @member {Uint8Array} accountUid + * @memberof Vault.User + * @instance + */ + User.prototype.accountUid = $util.newBuffer([]); + + /** + * User username. + * @member {string} username + * @memberof Vault.User + * @instance + */ + User.prototype.username = ""; + + /** + * Creates a new User instance using the specified properties. + * @function create + * @memberof Vault.User + * @static + * @param {Vault.IUser=} [properties] Properties to set + * @returns {Vault.User} User instance + */ + User.create = function create(properties) { + return new User(properties); + }; + + /** + * Encodes the specified User message. Does not implicitly {@link Vault.User.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.accountUid); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); + 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 + * @memberof Vault.User + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.User(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.accountUid = reader.bytes(); + break; + } + case 2: { + message.username = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.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 + * @memberof Vault.User + * @static + * @param {Object.} object Plain object + * @returns {Vault.User} User + */ + User.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.User) + return object; + let message = new $root.Vault.User(); + if (object.accountUid != null) + if (typeof object.accountUid === "string") + $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); + else if (object.accountUid.length >= 0) + message.accountUid = object.accountUid; + if (object.username != null) + message.username = String(object.username); + return message; + }; + + /** + * Creates a plain object from a User message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.User + * @static + * @param {Vault.User} message User + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + User.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.accountUid = ""; + else { + object.accountUid = []; + if (options.bytes !== Array) + object.accountUid = $util.newBuffer(object.accountUid); + } + object.username = ""; + } + if (message.accountUid != null && message.hasOwnProperty("accountUid")) + object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + return object; + }; + + /** + * Converts this User to JSON. + * @function toJSON + * @memberof Vault.User + * @instance + * @returns {Object.} JSON object + */ + User.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for User + * @function getTypeUrl + * @memberof Vault.User + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + User.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.User"; + }; + + return User; + })(); + + Vault.SyncDiagnostics = (function() { + + /** + * Properties of a SyncDiagnostics. + * @memberof Vault + * @interface ISyncDiagnostics + * @property {Uint8Array|null} [continuationToken] SyncDiagnostics continuationToken + * @property {number|null} [userId] SyncDiagnostics userId + * @property {number|Long|null} [enterpriseUserId] SyncDiagnostics enterpriseUserId + * @property {number|Long|null} [syncedTo] SyncDiagnostics syncedTo + * @property {number|Long|null} [syncingTo] SyncDiagnostics syncingTo + */ + + /** + * Constructs a new SyncDiagnostics. + * @memberof Vault + * @classdesc Represents a SyncDiagnostics. + * @implements ISyncDiagnostics + * @constructor + * @param {Vault.ISyncDiagnostics=} [properties] Properties to set + */ + function SyncDiagnostics(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SyncDiagnostics continuationToken. + * @member {Uint8Array} continuationToken + * @memberof Vault.SyncDiagnostics + * @instance + */ + SyncDiagnostics.prototype.continuationToken = $util.newBuffer([]); + + /** + * SyncDiagnostics userId. + * @member {number} userId + * @memberof Vault.SyncDiagnostics + * @instance + */ + SyncDiagnostics.prototype.userId = 0; + + /** + * SyncDiagnostics enterpriseUserId. + * @member {number|Long} enterpriseUserId + * @memberof Vault.SyncDiagnostics + * @instance + */ + SyncDiagnostics.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SyncDiagnostics syncedTo. + * @member {number|Long} syncedTo + * @memberof Vault.SyncDiagnostics + * @instance + */ + SyncDiagnostics.prototype.syncedTo = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SyncDiagnostics syncingTo. + * @member {number|Long} syncingTo + * @memberof Vault.SyncDiagnostics + * @instance + */ + SyncDiagnostics.prototype.syncingTo = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new SyncDiagnostics instance using the specified properties. + * @function create + * @memberof Vault.SyncDiagnostics + * @static + * @param {Vault.ISyncDiagnostics=} [properties] Properties to set + * @returns {Vault.SyncDiagnostics} SyncDiagnostics instance + */ + SyncDiagnostics.create = function create(properties) { + return new SyncDiagnostics(properties); + }; + + /** + * Encodes the specified SyncDiagnostics message. Does not implicitly {@link Vault.SyncDiagnostics.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.continuationToken); + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.userId); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.enterpriseUserId); + if (message.syncedTo != null && Object.hasOwnProperty.call(message, "syncedTo")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.syncedTo); + if (message.syncingTo != null && Object.hasOwnProperty.call(message, "syncingTo")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.syncingTo); + 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 + * @memberof Vault.SyncDiagnostics + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SyncDiagnostics(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.continuationToken = reader.bytes(); + break; + } + case 2: { + message.userId = reader.int32(); + break; + } + case 3: { + message.enterpriseUserId = reader.int64(); + break; + } + case 4: { + message.syncedTo = reader.int64(); + break; + } + case 5: { + message.syncingTo = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.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 + * @memberof Vault.SyncDiagnostics + * @static + * @param {Object.} object Plain object + * @returns {Vault.SyncDiagnostics} SyncDiagnostics + */ + SyncDiagnostics.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.SyncDiagnostics) + return object; + let message = new $root.Vault.SyncDiagnostics(); + if (object.continuationToken != null) + if (typeof object.continuationToken === "string") + $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); + else if (object.continuationToken.length >= 0) + message.continuationToken = object.continuationToken; + if (object.userId != null) + message.userId = object.userId | 0; + if (object.enterpriseUserId != null) + if ($util.Long) + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; + else if (typeof object.enterpriseUserId === "string") + message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); + else if (typeof object.enterpriseUserId === "number") + message.enterpriseUserId = object.enterpriseUserId; + else if (typeof object.enterpriseUserId === "object") + message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + if (object.syncedTo != null) + if ($util.Long) + (message.syncedTo = $util.Long.fromValue(object.syncedTo)).unsigned = false; + else if (typeof object.syncedTo === "string") + message.syncedTo = parseInt(object.syncedTo, 10); + else if (typeof object.syncedTo === "number") + message.syncedTo = object.syncedTo; + else if (typeof object.syncedTo === "object") + message.syncedTo = new $util.LongBits(object.syncedTo.low >>> 0, object.syncedTo.high >>> 0).toNumber(); + if (object.syncingTo != null) + if ($util.Long) + (message.syncingTo = $util.Long.fromValue(object.syncingTo)).unsigned = false; + else if (typeof object.syncingTo === "string") + message.syncingTo = parseInt(object.syncingTo, 10); + else if (typeof object.syncingTo === "number") + message.syncingTo = object.syncingTo; + else if (typeof object.syncingTo === "object") + message.syncingTo = new $util.LongBits(object.syncingTo.low >>> 0, object.syncingTo.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a SyncDiagnostics message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.SyncDiagnostics + * @static + * @param {Vault.SyncDiagnostics} message SyncDiagnostics + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SyncDiagnostics.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.continuationToken = ""; + else { + object.continuationToken = []; + if (options.bytes !== Array) + object.continuationToken = $util.newBuffer(object.continuationToken); + } + object.userId = 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.enterpriseUserId = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.syncedTo = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.syncedTo = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.syncingTo = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.syncingTo = options.longs === String ? "0" : 0; + } + if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; + if (message.userId != null && message.hasOwnProperty("userId")) + object.userId = message.userId; + if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (typeof message.enterpriseUserId === "number") + object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + else + object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; + if (message.syncedTo != null && message.hasOwnProperty("syncedTo")) + if (typeof message.syncedTo === "number") + object.syncedTo = options.longs === String ? String(message.syncedTo) : message.syncedTo; + else + object.syncedTo = options.longs === String ? $util.Long.prototype.toString.call(message.syncedTo) : options.longs === Number ? new $util.LongBits(message.syncedTo.low >>> 0, message.syncedTo.high >>> 0).toNumber() : message.syncedTo; + if (message.syncingTo != null && message.hasOwnProperty("syncingTo")) + if (typeof message.syncingTo === "number") + object.syncingTo = options.longs === String ? String(message.syncingTo) : message.syncingTo; + else + object.syncingTo = options.longs === String ? $util.Long.prototype.toString.call(message.syncingTo) : options.longs === Number ? new $util.LongBits(message.syncingTo.low >>> 0, message.syncingTo.high >>> 0).toNumber() : message.syncingTo; + return object; + }; + + /** + * Converts this SyncDiagnostics to JSON. + * @function toJSON + * @memberof Vault.SyncDiagnostics + * @instance + * @returns {Object.} JSON object + */ + SyncDiagnostics.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SyncDiagnostics + * @function getTypeUrl + * @memberof Vault.SyncDiagnostics + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SyncDiagnostics.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.SyncDiagnostics"; + }; + + return SyncDiagnostics; + })(); + + /** + * RecordRotationStatus enum. + * @name Vault.RecordRotationStatus + * @enum {number} + * @property {number} RRST_NOT_ROTATED=0 RRST_NOT_ROTATED value + * @property {number} RRST_IN_PROGRESS=1 RRST_IN_PROGRESS value + * @property {number} RRST_SUCCESS=2 RRST_SUCCESS value + * @property {number} RRST_FAILURE=3 RRST_FAILURE value + */ + Vault.RecordRotationStatus = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RRST_NOT_ROTATED"] = 0; + values[valuesById[1] = "RRST_IN_PROGRESS"] = 1; + values[valuesById[2] = "RRST_SUCCESS"] = 2; + values[valuesById[3] = "RRST_FAILURE"] = 3; + return values; + })(); + + Vault.RecordRotation = (function() { + + /** + * Properties of a RecordRotation. + * @memberof Vault + * @interface IRecordRotation + * @property {Uint8Array|null} [recordUid] RecordRotation recordUid + * @property {number|Long|null} [revision] RecordRotation revision + * @property {Uint8Array|null} [configurationUid] RecordRotation configurationUid + * @property {string|null} [schedule] RecordRotation schedule + * @property {Uint8Array|null} [pwdComplexity] RecordRotation pwdComplexity + * @property {boolean|null} [disabled] RecordRotation disabled + * @property {Uint8Array|null} [resourceUid] RecordRotation resourceUid + * @property {number|Long|null} [lastRotation] RecordRotation lastRotation + * @property {Vault.RecordRotationStatus|null} [lastRotationStatus] RecordRotation lastRotationStatus + */ + + /** + * Constructs a new RecordRotation. + * @memberof Vault + * @classdesc Represents a RecordRotation. + * @implements IRecordRotation + * @constructor + * @param {Vault.IRecordRotation=} [properties] Properties to set + */ + function RecordRotation(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RecordRotation recordUid. + * @member {Uint8Array} recordUid + * @memberof Vault.RecordRotation + * @instance + */ + RecordRotation.prototype.recordUid = $util.newBuffer([]); + + /** + * RecordRotation revision. + * @member {number|Long} revision + * @memberof Vault.RecordRotation + * @instance + */ + RecordRotation.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * RecordRotation configurationUid. + * @member {Uint8Array} configurationUid + * @memberof Vault.RecordRotation + * @instance + */ + RecordRotation.prototype.configurationUid = $util.newBuffer([]); + + /** + * RecordRotation schedule. + * @member {string} schedule + * @memberof Vault.RecordRotation + * @instance + */ + RecordRotation.prototype.schedule = ""; + + /** + * RecordRotation pwdComplexity. + * @member {Uint8Array} pwdComplexity + * @memberof Vault.RecordRotation + * @instance + */ + RecordRotation.prototype.pwdComplexity = $util.newBuffer([]); + + /** + * RecordRotation disabled. + * @member {boolean} disabled + * @memberof Vault.RecordRotation + * @instance + */ + RecordRotation.prototype.disabled = false; + + /** + * RecordRotation resourceUid. + * @member {Uint8Array} resourceUid + * @memberof Vault.RecordRotation + * @instance + */ + RecordRotation.prototype.resourceUid = $util.newBuffer([]); + + /** + * RecordRotation lastRotation. + * @member {number|Long} lastRotation + * @memberof Vault.RecordRotation + * @instance + */ + RecordRotation.prototype.lastRotation = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * RecordRotation lastRotationStatus. + * @member {Vault.RecordRotationStatus} lastRotationStatus + * @memberof Vault.RecordRotation + * @instance + */ + RecordRotation.prototype.lastRotationStatus = 0; + + /** + * Creates a new RecordRotation instance using the specified properties. + * @function create + * @memberof Vault.RecordRotation + * @static + * @param {Vault.IRecordRotation=} [properties] Properties to set + * @returns {Vault.RecordRotation} RecordRotation instance + */ + RecordRotation.create = function create(properties) { + return new RecordRotation(properties); + }; + + /** + * Encodes the specified RecordRotation message. Does not implicitly {@link Vault.RecordRotation.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); + if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.configurationUid); + if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.schedule); + if (message.pwdComplexity != null && Object.hasOwnProperty.call(message, "pwdComplexity")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.pwdComplexity); + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disabled); + if (message.resourceUid != null && Object.hasOwnProperty.call(message, "resourceUid")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.resourceUid); + if (message.lastRotation != null && Object.hasOwnProperty.call(message, "lastRotation")) + writer.uint32(/* id 8, wireType 0 =*/64).int64(message.lastRotation); + if (message.lastRotationStatus != null && Object.hasOwnProperty.call(message, "lastRotationStatus")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.lastRotationStatus); + 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 + * @memberof Vault.RecordRotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.RecordRotation(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.revision = reader.int64(); + break; + } + case 3: { + message.configurationUid = reader.bytes(); + break; + } + case 4: { + message.schedule = reader.string(); + break; + } + case 5: { + message.pwdComplexity = reader.bytes(); + break; + } + case 6: { + message.disabled = reader.bool(); + break; + } + case 7: { + message.resourceUid = reader.bytes(); + break; + } + case 8: { + message.lastRotation = reader.int64(); + break; + } + case 9: { + message.lastRotationStatus = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) + return "recordUid: buffer expected"; + if (message.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 + * @memberof Vault.RecordRotation + * @static + * @param {Object.} object Plain object + * @returns {Vault.RecordRotation} RecordRotation + */ + RecordRotation.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.RecordRotation) + return object; + let message = new $root.Vault.RecordRotation(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if (object.configurationUid != null) + if (typeof object.configurationUid === "string") + $util.base64.decode(object.configurationUid, message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid)), 0); + else if (object.configurationUid.length >= 0) + message.configurationUid = object.configurationUid; + if (object.schedule != null) + message.schedule = String(object.schedule); + if (object.pwdComplexity != null) + if (typeof object.pwdComplexity === "string") + $util.base64.decode(object.pwdComplexity, message.pwdComplexity = $util.newBuffer($util.base64.length(object.pwdComplexity)), 0); + else if (object.pwdComplexity.length >= 0) + message.pwdComplexity = object.pwdComplexity; + if (object.disabled != null) + message.disabled = Boolean(object.disabled); + if (object.resourceUid != null) + if (typeof object.resourceUid === "string") + $util.base64.decode(object.resourceUid, message.resourceUid = $util.newBuffer($util.base64.length(object.resourceUid)), 0); + else if (object.resourceUid.length >= 0) + message.resourceUid = object.resourceUid; + if (object.lastRotation != null) + if ($util.Long) + (message.lastRotation = $util.Long.fromValue(object.lastRotation)).unsigned = false; + else if (typeof object.lastRotation === "string") + message.lastRotation = parseInt(object.lastRotation, 10); + else if (typeof object.lastRotation === "number") + message.lastRotation = object.lastRotation; + else if (typeof object.lastRotation === "object") + message.lastRotation = new $util.LongBits(object.lastRotation.low >>> 0, object.lastRotation.high >>> 0).toNumber(); + switch (object.lastRotationStatus) { + default: + if (typeof object.lastRotationStatus === "number") { + message.lastRotationStatus = object.lastRotationStatus; + break; + } + break; + case "RRST_NOT_ROTATED": + case 0: + message.lastRotationStatus = 0; + break; + case "RRST_IN_PROGRESS": + case 1: + message.lastRotationStatus = 1; + break; + case "RRST_SUCCESS": + case 2: + message.lastRotationStatus = 2; + break; + case "RRST_FAILURE": + case 3: + message.lastRotationStatus = 3; + break; + } + return message; + }; + + /** + * Creates a plain object from a RecordRotation message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.RecordRotation + * @static + * @param {Vault.RecordRotation} message RecordRotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordRotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.configurationUid = ""; + else { + object.configurationUid = []; + if (options.bytes !== Array) + object.configurationUid = $util.newBuffer(object.configurationUid); + } + object.schedule = ""; + if (options.bytes === String) + object.pwdComplexity = ""; + else { + object.pwdComplexity = []; + if (options.bytes !== Array) + object.pwdComplexity = $util.newBuffer(object.pwdComplexity); + } + object.disabled = false; + if (options.bytes === String) + object.resourceUid = ""; + else { + object.resourceUid = []; + if (options.bytes !== Array) + object.resourceUid = $util.newBuffer(object.resourceUid); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.lastRotation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.lastRotation = options.longs === String ? "0" : 0; + object.lastRotationStatus = options.enums === String ? "RRST_NOT_ROTATED" : 0; + } if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; + 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 (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; + 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 && typeof message.configurationUid.length === "number" || $util.isString(message.configurationUid))) - return "configurationUid: buffer expected"; + 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 (!$util.isString(message.schedule)) - return "schedule: string expected"; + object.schedule = message.schedule; if (message.pwdComplexity != null && message.hasOwnProperty("pwdComplexity")) - if (!(message.pwdComplexity && typeof message.pwdComplexity.length === "number" || $util.isString(message.pwdComplexity))) - return "pwdComplexity: buffer expected"; + 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 (typeof message.disabled !== "boolean") - return "disabled: boolean expected"; + object.disabled = message.disabled; if (message.resourceUid != null && message.hasOwnProperty("resourceUid")) - if (!(message.resourceUid && typeof message.resourceUid.length === "number" || $util.isString(message.resourceUid))) - return "resourceUid: buffer expected"; + 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 (!$util.isInteger(message.lastRotation) && !(message.lastRotation && $util.isInteger(message.lastRotation.low) && $util.isInteger(message.lastRotation.high))) - return "lastRotation: integer|Long expected"; + 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")) - switch (message.lastRotationStatus) { + object.lastRotationStatus = options.enums === String ? $root.Vault.RecordRotationStatus[message.lastRotationStatus] === undefined ? message.lastRotationStatus : $root.Vault.RecordRotationStatus[message.lastRotationStatus] : message.lastRotationStatus; + return object; + }; + + /** + * Converts this RecordRotation to JSON. + * @function toJSON + * @memberof Vault.RecordRotation + * @instance + * @returns {Object.} JSON object + */ + RecordRotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecordRotation + * @function getTypeUrl + * @memberof Vault.RecordRotation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecordRotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.RecordRotation"; + }; + + return RecordRotation; + })(); + + Vault.SecurityScoreData = (function() { + + /** + * Properties of a SecurityScoreData. + * @memberof Vault + * @interface ISecurityScoreData + * @property {Uint8Array|null} [recordUid] SecurityScoreData recordUid + * @property {Uint8Array|null} [data] SecurityScoreData data + * @property {number|Long|null} [revision] SecurityScoreData revision + */ + + /** + * Constructs a new SecurityScoreData. + * @memberof Vault + * @classdesc Represents a SecurityScoreData. + * @implements ISecurityScoreData + * @constructor + * @param {Vault.ISecurityScoreData=} [properties] Properties to set + */ + function SecurityScoreData(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SecurityScoreData recordUid. + * @member {Uint8Array} recordUid + * @memberof Vault.SecurityScoreData + * @instance + */ + SecurityScoreData.prototype.recordUid = $util.newBuffer([]); + + /** + * SecurityScoreData data. + * @member {Uint8Array} data + * @memberof Vault.SecurityScoreData + * @instance + */ + SecurityScoreData.prototype.data = $util.newBuffer([]); + + /** + * SecurityScoreData revision. + * @member {number|Long} revision + * @memberof Vault.SecurityScoreData + * @instance + */ + SecurityScoreData.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new SecurityScoreData instance using the specified properties. + * @function create + * @memberof Vault.SecurityScoreData + * @static + * @param {Vault.ISecurityScoreData=} [properties] Properties to set + * @returns {Vault.SecurityScoreData} SecurityScoreData instance + */ + SecurityScoreData.create = function create(properties) { + return new SecurityScoreData(properties); + }; + + /** + * Encodes the specified SecurityScoreData message. Does not implicitly {@link Vault.SecurityScoreData.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); + 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 + * @memberof Vault.SecurityScoreData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SecurityScoreData(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.data = reader.bytes(); + break; + } + case 3: { + message.revision = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) + return "recordUid: buffer expected"; + if (message.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 + * @memberof Vault.SecurityScoreData + * @static + * @param {Object.} object Plain object + * @returns {Vault.SecurityScoreData} SecurityScoreData + */ + SecurityScoreData.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.SecurityScoreData) + return object; + let message = new $root.Vault.SecurityScoreData(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a SecurityScoreData message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.SecurityScoreData + * @static + * @param {Vault.SecurityScoreData} message SecurityScoreData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SecurityScoreData.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof 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; + return object; + }; + + /** + * Converts this SecurityScoreData to JSON. + * @function toJSON + * @memberof Vault.SecurityScoreData + * @instance + * @returns {Object.} JSON object + */ + SecurityScoreData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SecurityScoreData + * @function getTypeUrl + * @memberof Vault.SecurityScoreData + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SecurityScoreData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.SecurityScoreData"; + }; + + return SecurityScoreData; + })(); + + Vault.BreachWatchGetSyncDataRequest = (function() { + + /** + * Properties of a BreachWatchGetSyncDataRequest. + * @memberof Vault + * @interface IBreachWatchGetSyncDataRequest + * @property {Array.|null} [recordUids] BreachWatchGetSyncDataRequest recordUids + */ + + /** + * Constructs a new BreachWatchGetSyncDataRequest. + * @memberof Vault + * @classdesc Represents a BreachWatchGetSyncDataRequest. + * @implements IBreachWatchGetSyncDataRequest + * @constructor + * @param {Vault.IBreachWatchGetSyncDataRequest=} [properties] Properties to set + */ + function BreachWatchGetSyncDataRequest(properties) { + this.recordUids = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BreachWatchGetSyncDataRequest recordUids. + * @member {Array.} recordUids + * @memberof Vault.BreachWatchGetSyncDataRequest + * @instance + */ + BreachWatchGetSyncDataRequest.prototype.recordUids = $util.emptyArray; + + /** + * Creates a new BreachWatchGetSyncDataRequest instance using the specified properties. + * @function create + * @memberof Vault.BreachWatchGetSyncDataRequest + * @static + * @param {Vault.IBreachWatchGetSyncDataRequest=} [properties] Properties to set + * @returns {Vault.BreachWatchGetSyncDataRequest} BreachWatchGetSyncDataRequest instance + */ + BreachWatchGetSyncDataRequest.create = function create(properties) { + return new BreachWatchGetSyncDataRequest(properties); + }; + + /** + * Encodes the specified BreachWatchGetSyncDataRequest message. Does not implicitly {@link Vault.BreachWatchGetSyncDataRequest.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recordUids != null && message.recordUids.length) + for (let i = 0; i < message.recordUids.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUids[i]); + 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 + * @memberof Vault.BreachWatchGetSyncDataRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.BreachWatchGetSyncDataRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.recordUids && message.recordUids.length)) + message.recordUids = []; + message.recordUids.push(reader.bytes()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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 BreachWatchGetSyncDataRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Vault.BreachWatchGetSyncDataRequest + * @static + * @param {Object.} object Plain object + * @returns {Vault.BreachWatchGetSyncDataRequest} BreachWatchGetSyncDataRequest + */ + BreachWatchGetSyncDataRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.BreachWatchGetSyncDataRequest) + return object; + let message = new $root.Vault.BreachWatchGetSyncDataRequest(); + if (object.recordUids) { + if (!Array.isArray(object.recordUids)) + throw TypeError(".Vault.BreachWatchGetSyncDataRequest.recordUids: array expected"); + message.recordUids = []; + for (let i = 0; i < object.recordUids.length; ++i) + if (typeof object.recordUids[i] === "string") + $util.base64.decode(object.recordUids[i], message.recordUids[i] = $util.newBuffer($util.base64.length(object.recordUids[i])), 0); + else if (object.recordUids[i].length >= 0) + message.recordUids[i] = object.recordUids[i]; + } + return message; + }; + + /** + * Creates a plain object from a BreachWatchGetSyncDataRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.BreachWatchGetSyncDataRequest + * @static + * @param {Vault.BreachWatchGetSyncDataRequest} message BreachWatchGetSyncDataRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BreachWatchGetSyncDataRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.recordUids = []; + if (message.recordUids && message.recordUids.length) { + object.recordUids = []; + for (let j = 0; j < message.recordUids.length; ++j) + object.recordUids[j] = options.bytes === String ? $util.base64.encode(message.recordUids[j], 0, message.recordUids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUids[j]) : message.recordUids[j]; + } + return object; + }; + + /** + * Converts this BreachWatchGetSyncDataRequest to JSON. + * @function toJSON + * @memberof Vault.BreachWatchGetSyncDataRequest + * @instance + * @returns {Object.} JSON object + */ + BreachWatchGetSyncDataRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BreachWatchGetSyncDataRequest + * @function getTypeUrl + * @memberof Vault.BreachWatchGetSyncDataRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BreachWatchGetSyncDataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.BreachWatchGetSyncDataRequest"; + }; + + return BreachWatchGetSyncDataRequest; + })(); + + Vault.BreachWatchGetSyncDataResponse = (function() { + + /** + * Properties of a BreachWatchGetSyncDataResponse. + * @memberof Vault + * @interface IBreachWatchGetSyncDataResponse + * @property {Array.|null} [breachWatchRecords] BreachWatchGetSyncDataResponse breachWatchRecords + * @property {Array.|null} [breachWatchSecurityData] BreachWatchGetSyncDataResponse breachWatchSecurityData + * @property {Array.|null} [users] BreachWatchGetSyncDataResponse users + */ + + /** + * Constructs a new BreachWatchGetSyncDataResponse. + * @memberof Vault + * @classdesc Represents a BreachWatchGetSyncDataResponse. + * @implements IBreachWatchGetSyncDataResponse + * @constructor + * @param {Vault.IBreachWatchGetSyncDataResponse=} [properties] Properties to set + */ + function BreachWatchGetSyncDataResponse(properties) { + this.breachWatchRecords = []; + this.breachWatchSecurityData = []; + this.users = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BreachWatchGetSyncDataResponse breachWatchRecords. + * @member {Array.} breachWatchRecords + * @memberof Vault.BreachWatchGetSyncDataResponse + * @instance + */ + BreachWatchGetSyncDataResponse.prototype.breachWatchRecords = $util.emptyArray; + + /** + * BreachWatchGetSyncDataResponse breachWatchSecurityData. + * @member {Array.} breachWatchSecurityData + * @memberof Vault.BreachWatchGetSyncDataResponse + * @instance + */ + BreachWatchGetSyncDataResponse.prototype.breachWatchSecurityData = $util.emptyArray; + + /** + * BreachWatchGetSyncDataResponse users. + * @member {Array.} users + * @memberof Vault.BreachWatchGetSyncDataResponse + * @instance + */ + BreachWatchGetSyncDataResponse.prototype.users = $util.emptyArray; + + /** + * Creates a new BreachWatchGetSyncDataResponse instance using the specified properties. + * @function create + * @memberof Vault.BreachWatchGetSyncDataResponse + * @static + * @param {Vault.IBreachWatchGetSyncDataResponse=} [properties] Properties to set + * @returns {Vault.BreachWatchGetSyncDataResponse} BreachWatchGetSyncDataResponse instance + */ + BreachWatchGetSyncDataResponse.create = function create(properties) { + return new BreachWatchGetSyncDataResponse(properties); + }; + + /** + * Encodes the specified BreachWatchGetSyncDataResponse message. Does not implicitly {@link Vault.BreachWatchGetSyncDataResponse.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.breachWatchRecords != null && message.breachWatchRecords.length) + for (let i = 0; i < message.breachWatchRecords.length; ++i) + $root.Vault.BreachWatchRecord.encode(message.breachWatchRecords[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.breachWatchSecurityData != null && message.breachWatchSecurityData.length) + for (let i = 0; i < message.breachWatchSecurityData.length; ++i) + $root.Vault.BreachWatchSecurityData.encode(message.breachWatchSecurityData[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.users != null && message.users.length) + for (let i = 0; i < message.users.length; ++i) + $root.Vault.User.encode(message.users[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + 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 + * @memberof Vault.BreachWatchGetSyncDataResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.BreachWatchGetSyncDataResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.breachWatchRecords && message.breachWatchRecords.length)) + message.breachWatchRecords = []; + message.breachWatchRecords.push($root.Vault.BreachWatchRecord.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.breachWatchSecurityData && message.breachWatchSecurityData.length)) + message.breachWatchSecurityData = []; + message.breachWatchSecurityData.push($root.Vault.BreachWatchSecurityData.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.users && message.users.length)) + message.users = []; + message.users.push($root.Vault.User.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + 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]); + 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]); + 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 + * @memberof Vault.BreachWatchGetSyncDataResponse + * @static + * @param {Object.} object Plain object + * @returns {Vault.BreachWatchGetSyncDataResponse} BreachWatchGetSyncDataResponse + */ + BreachWatchGetSyncDataResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.BreachWatchGetSyncDataResponse) + return object; + let message = new $root.Vault.BreachWatchGetSyncDataResponse(); + if (object.breachWatchRecords) { + if (!Array.isArray(object.breachWatchRecords)) + throw TypeError(".Vault.BreachWatchGetSyncDataResponse.breachWatchRecords: array expected"); + message.breachWatchRecords = []; + for (let i = 0; i < object.breachWatchRecords.length; ++i) { + if (typeof object.breachWatchRecords[i] !== "object") + throw TypeError(".Vault.BreachWatchGetSyncDataResponse.breachWatchRecords: object expected"); + message.breachWatchRecords[i] = $root.Vault.BreachWatchRecord.fromObject(object.breachWatchRecords[i]); + } + } + if (object.breachWatchSecurityData) { + if (!Array.isArray(object.breachWatchSecurityData)) + throw TypeError(".Vault.BreachWatchGetSyncDataResponse.breachWatchSecurityData: array expected"); + message.breachWatchSecurityData = []; + for (let i = 0; i < object.breachWatchSecurityData.length; ++i) { + if (typeof object.breachWatchSecurityData[i] !== "object") + throw TypeError(".Vault.BreachWatchGetSyncDataResponse.breachWatchSecurityData: object expected"); + message.breachWatchSecurityData[i] = $root.Vault.BreachWatchSecurityData.fromObject(object.breachWatchSecurityData[i]); + } + } + if (object.users) { + if (!Array.isArray(object.users)) + throw TypeError(".Vault.BreachWatchGetSyncDataResponse.users: array expected"); + message.users = []; + for (let i = 0; i < object.users.length; ++i) { + if (typeof object.users[i] !== "object") + throw TypeError(".Vault.BreachWatchGetSyncDataResponse.users: object expected"); + message.users[i] = $root.Vault.User.fromObject(object.users[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a BreachWatchGetSyncDataResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.BreachWatchGetSyncDataResponse + * @static + * @param {Vault.BreachWatchGetSyncDataResponse} message BreachWatchGetSyncDataResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BreachWatchGetSyncDataResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.breachWatchRecords = []; + object.breachWatchSecurityData = []; + object.users = []; + } + if (message.breachWatchRecords && message.breachWatchRecords.length) { + object.breachWatchRecords = []; + for (let j = 0; j < message.breachWatchRecords.length; ++j) + object.breachWatchRecords[j] = $root.Vault.BreachWatchRecord.toObject(message.breachWatchRecords[j], options); + } + if (message.breachWatchSecurityData && message.breachWatchSecurityData.length) { + object.breachWatchSecurityData = []; + for (let j = 0; j < message.breachWatchSecurityData.length; ++j) + object.breachWatchSecurityData[j] = $root.Vault.BreachWatchSecurityData.toObject(message.breachWatchSecurityData[j], options); + } + if (message.users && message.users.length) { + object.users = []; + for (let j = 0; j < message.users.length; ++j) + object.users[j] = $root.Vault.User.toObject(message.users[j], options); + } + return object; + }; + + /** + * Converts this BreachWatchGetSyncDataResponse to JSON. + * @function toJSON + * @memberof Vault.BreachWatchGetSyncDataResponse + * @instance + * @returns {Object.} JSON object + */ + BreachWatchGetSyncDataResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BreachWatchGetSyncDataResponse + * @function getTypeUrl + * @memberof Vault.BreachWatchGetSyncDataResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BreachWatchGetSyncDataResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.BreachWatchGetSyncDataResponse"; + }; + + return BreachWatchGetSyncDataResponse; + })(); + + Vault.GetAccountUidMapResponse = (function() { + + /** + * Properties of a GetAccountUidMapResponse. + * @memberof Vault + * @interface IGetAccountUidMapResponse + * @property {Array.|null} [users] GetAccountUidMapResponse users + */ + + /** + * Constructs a new GetAccountUidMapResponse. + * @memberof Vault + * @classdesc Represents a GetAccountUidMapResponse. + * @implements IGetAccountUidMapResponse + * @constructor + * @param {Vault.IGetAccountUidMapResponse=} [properties] Properties to set + */ + function GetAccountUidMapResponse(properties) { + this.users = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetAccountUidMapResponse users. + * @member {Array.} users + * @memberof Vault.GetAccountUidMapResponse + * @instance + */ + GetAccountUidMapResponse.prototype.users = $util.emptyArray; + + /** + * Creates a new GetAccountUidMapResponse instance using the specified properties. + * @function create + * @memberof Vault.GetAccountUidMapResponse + * @static + * @param {Vault.IGetAccountUidMapResponse=} [properties] Properties to set + * @returns {Vault.GetAccountUidMapResponse} GetAccountUidMapResponse instance + */ + GetAccountUidMapResponse.create = function create(properties) { + return new GetAccountUidMapResponse(properties); + }; + + /** + * Encodes the specified GetAccountUidMapResponse message. Does not implicitly {@link Vault.GetAccountUidMapResponse.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.users != null && message.users.length) + for (let i = 0; i < message.users.length; ++i) + $root.Vault.User.encode(message.users[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + 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 + * @memberof Vault.GetAccountUidMapResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.GetAccountUidMapResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.users && message.users.length)) + message.users = []; + message.users.push($root.Vault.User.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.Vault.User.verify(message.users[i]); + 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 + * @memberof Vault.GetAccountUidMapResponse + * @static + * @param {Object.} object Plain object + * @returns {Vault.GetAccountUidMapResponse} GetAccountUidMapResponse + */ + GetAccountUidMapResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Vault.GetAccountUidMapResponse) + return object; + let message = new $root.Vault.GetAccountUidMapResponse(); + if (object.users) { + if (!Array.isArray(object.users)) + throw TypeError(".Vault.GetAccountUidMapResponse.users: array expected"); + message.users = []; + for (let i = 0; i < object.users.length; ++i) { + if (typeof object.users[i] !== "object") + throw TypeError(".Vault.GetAccountUidMapResponse.users: object expected"); + message.users[i] = $root.Vault.User.fromObject(object.users[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a GetAccountUidMapResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof Vault.GetAccountUidMapResponse + * @static + * @param {Vault.GetAccountUidMapResponse} message GetAccountUidMapResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetAccountUidMapResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.users = []; + if (message.users && message.users.length) { + object.users = []; + for (let j = 0; j < message.users.length; ++j) + object.users[j] = $root.Vault.User.toObject(message.users[j], options); + } + return object; + }; + + /** + * Converts this GetAccountUidMapResponse to JSON. + * @function toJSON + * @memberof Vault.GetAccountUidMapResponse + * @instance + * @returns {Object.} JSON object + */ + GetAccountUidMapResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetAccountUidMapResponse + * @function getTypeUrl + * @memberof Vault.GetAccountUidMapResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetAccountUidMapResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Vault.GetAccountUidMapResponse"; + }; + + return GetAccountUidMapResponse; + })(); + + return Vault; +})(); + +export const NotificationCenter = $root.NotificationCenter = (() => { + + /** + * Namespace NotificationCenter. + * @exports NotificationCenter + * @namespace + */ + const NotificationCenter = {}; + + /** + * NotificationCategory enum. + * @name NotificationCenter.NotificationCategory + * @enum {number} + * @property {number} NC_UNSPECIFIED=0 NC_UNSPECIFIED value + * @property {number} NC_ACCOUNT=1 NC_ACCOUNT value + * @property {number} NC_SHARING=2 NC_SHARING value + * @property {number} NC_ENTERPRISE=3 NC_ENTERPRISE value + * @property {number} NC_SECURITY=4 NC_SECURITY value + * @property {number} NC_REQUEST=5 NC_REQUEST value + * @property {number} NC_SYSTEM=6 NC_SYSTEM value + * @property {number} NC_PROMOTION=7 NC_PROMOTION value + */ + NotificationCenter.NotificationCategory = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NC_UNSPECIFIED"] = 0; + values[valuesById[1] = "NC_ACCOUNT"] = 1; + values[valuesById[2] = "NC_SHARING"] = 2; + values[valuesById[3] = "NC_ENTERPRISE"] = 3; + values[valuesById[4] = "NC_SECURITY"] = 4; + values[valuesById[5] = "NC_REQUEST"] = 5; + values[valuesById[6] = "NC_SYSTEM"] = 6; + values[valuesById[7] = "NC_PROMOTION"] = 7; + return values; + })(); + + /** + * NotificationType enum. + * @name NotificationCenter.NotificationType + * @enum {number} + * @property {number} NT_UNSPECIFIED=0 NT_UNSPECIFIED value + * @property {number} NT_ALERT=1 NT_ALERT value + * @property {number} NT_DEVICE_APPROVAL=2 NT_DEVICE_APPROVAL value + * @property {number} NT_MASTER_PASS_UPDATED=3 NT_MASTER_PASS_UPDATED value + * @property {number} NT_SHARE_APPROVAL=4 NT_SHARE_APPROVAL value + * @property {number} NT_SHARE_APPROVAL_APPROVED=5 NT_SHARE_APPROVAL_APPROVED value + * @property {number} NT_SHARED=6 NT_SHARED value + * @property {number} NT_TRANSFERRED=7 NT_TRANSFERRED value + * @property {number} NT_LICENSE_LIMIT_REACHED=8 NT_LICENSE_LIMIT_REACHED value + * @property {number} NT_APPROVAL_REQUEST=9 NT_APPROVAL_REQUEST value + * @property {number} NT_APPROVED_RESPONSE=10 NT_APPROVED_RESPONSE value + * @property {number} NT_DENIED_RESPONSE=11 NT_DENIED_RESPONSE value + * @property {number} NT_2FA_CONFIGURED=12 NT_2FA_CONFIGURED value + * @property {number} NT_SHARE_APPROVAL_DENIED=13 NT_SHARE_APPROVAL_DENIED value + * @property {number} NT_DEVICE_APPROVAL_APPROVED=14 NT_DEVICE_APPROVAL_APPROVED value + * @property {number} NT_DEVICE_APPROVAL_DENIED=15 NT_DEVICE_APPROVAL_DENIED value + * @property {number} NT_ACCOUNT_CREATED=16 NT_ACCOUNT_CREATED value + * @property {number} NT_2FA_ENABLED=17 NT_2FA_ENABLED value + * @property {number} NT_2FA_DISABLED=18 NT_2FA_DISABLED value + * @property {number} NT_SECURITY_KEYS_ENABLED=19 NT_SECURITY_KEYS_ENABLED value + * @property {number} NT_SECURITY_KEYS_DISABLED=20 NT_SECURITY_KEYS_DISABLED value + * @property {number} NT_SSL_CERTIFICATE_EXPIRES_SOON=21 NT_SSL_CERTIFICATE_EXPIRES_SOON value + * @property {number} NT_SSL_CERTIFICATE_EXPIRED=22 NT_SSL_CERTIFICATE_EXPIRED value + */ + NotificationCenter.NotificationType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NT_UNSPECIFIED"] = 0; + values[valuesById[1] = "NT_ALERT"] = 1; + values[valuesById[2] = "NT_DEVICE_APPROVAL"] = 2; + values[valuesById[3] = "NT_MASTER_PASS_UPDATED"] = 3; + values[valuesById[4] = "NT_SHARE_APPROVAL"] = 4; + values[valuesById[5] = "NT_SHARE_APPROVAL_APPROVED"] = 5; + values[valuesById[6] = "NT_SHARED"] = 6; + values[valuesById[7] = "NT_TRANSFERRED"] = 7; + values[valuesById[8] = "NT_LICENSE_LIMIT_REACHED"] = 8; + values[valuesById[9] = "NT_APPROVAL_REQUEST"] = 9; + values[valuesById[10] = "NT_APPROVED_RESPONSE"] = 10; + values[valuesById[11] = "NT_DENIED_RESPONSE"] = 11; + values[valuesById[12] = "NT_2FA_CONFIGURED"] = 12; + values[valuesById[13] = "NT_SHARE_APPROVAL_DENIED"] = 13; + values[valuesById[14] = "NT_DEVICE_APPROVAL_APPROVED"] = 14; + values[valuesById[15] = "NT_DEVICE_APPROVAL_DENIED"] = 15; + values[valuesById[16] = "NT_ACCOUNT_CREATED"] = 16; + values[valuesById[17] = "NT_2FA_ENABLED"] = 17; + values[valuesById[18] = "NT_2FA_DISABLED"] = 18; + values[valuesById[19] = "NT_SECURITY_KEYS_ENABLED"] = 19; + values[valuesById[20] = "NT_SECURITY_KEYS_DISABLED"] = 20; + values[valuesById[21] = "NT_SSL_CERTIFICATE_EXPIRES_SOON"] = 21; + values[valuesById[22] = "NT_SSL_CERTIFICATE_EXPIRED"] = 22; + return values; + })(); + + /** + * NotificationReadStatus enum. + * @name NotificationCenter.NotificationReadStatus + * @enum {number} + * @property {number} NRS_UNSPECIFIED=0 NRS_UNSPECIFIED value + * @property {number} NRS_LAST=1 NRS_LAST value + * @property {number} NRS_READ=2 NRS_READ value + * @property {number} NRS_UNREAD=3 NRS_UNREAD value + */ + NotificationCenter.NotificationReadStatus = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NRS_UNSPECIFIED"] = 0; + values[valuesById[1] = "NRS_LAST"] = 1; + values[valuesById[2] = "NRS_READ"] = 2; + values[valuesById[3] = "NRS_UNREAD"] = 3; + return values; + })(); + + /** + * NotificationApprovalStatus enum. + * @name NotificationCenter.NotificationApprovalStatus + * @enum {number} + * @property {number} NAS_UNSPECIFIED=0 NAS_UNSPECIFIED value + * @property {number} NAS_APPROVED=1 NAS_APPROVED value + * @property {number} NAS_DENIED=2 NAS_DENIED value + * @property {number} NAS_LOST_APPROVAL_RIGHTS=3 NAS_LOST_APPROVAL_RIGHTS value + * @property {number} NAS_LOST_ACCESS=4 NAS_LOST_ACCESS value + */ + NotificationCenter.NotificationApprovalStatus = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NAS_UNSPECIFIED"] = 0; + values[valuesById[1] = "NAS_APPROVED"] = 1; + values[valuesById[2] = "NAS_DENIED"] = 2; + values[valuesById[3] = "NAS_LOST_APPROVAL_RIGHTS"] = 3; + values[valuesById[4] = "NAS_LOST_ACCESS"] = 4; + return values; + })(); + + NotificationCenter.EncryptedData = (function() { + + /** + * Properties of an EncryptedData. + * @memberof NotificationCenter + * @interface IEncryptedData + * @property {number|null} [version] EncryptedData version + * @property {Uint8Array|null} [data] EncryptedData data + */ + + /** + * Constructs a new EncryptedData. + * @memberof NotificationCenter + * @classdesc Represents an EncryptedData. + * @implements IEncryptedData + * @constructor + * @param {NotificationCenter.IEncryptedData=} [properties] Properties to set + */ + function EncryptedData(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EncryptedData version. + * @member {number} version + * @memberof NotificationCenter.EncryptedData + * @instance + */ + EncryptedData.prototype.version = 0; + + /** + * EncryptedData data. + * @member {Uint8Array} data + * @memberof NotificationCenter.EncryptedData + * @instance + */ + EncryptedData.prototype.data = $util.newBuffer([]); + + /** + * Creates a new EncryptedData instance using the specified properties. + * @function create + * @memberof NotificationCenter.EncryptedData + * @static + * @param {NotificationCenter.IEncryptedData=} [properties] Properties to set + * @returns {NotificationCenter.EncryptedData} EncryptedData instance + */ + EncryptedData.create = function create(properties) { + return new EncryptedData(properties); + }; + + /** + * Encodes the specified EncryptedData message. Does not implicitly {@link NotificationCenter.EncryptedData.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); + 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 + * @memberof NotificationCenter.EncryptedData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.EncryptedData(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.version = reader.int32(); + break; + } + case 2: { + message.data = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof NotificationCenter.EncryptedData + * @static + * @param {Object.} object Plain object + * @returns {NotificationCenter.EncryptedData} EncryptedData + */ + EncryptedData.fromObject = function fromObject(object) { + if (object instanceof $root.NotificationCenter.EncryptedData) + return object; + let message = new $root.NotificationCenter.EncryptedData(); + if (object.version != null) + message.version = object.version | 0; + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + return message; + }; + + /** + * Creates a plain object from an EncryptedData message. Also converts values to other types if specified. + * @function toObject + * @memberof NotificationCenter.EncryptedData + * @static + * @param {NotificationCenter.EncryptedData} message EncryptedData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EncryptedData.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.version = 0; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + } + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + return object; + }; + + /** + * Converts this EncryptedData to JSON. + * @function toJSON + * @memberof NotificationCenter.EncryptedData + * @instance + * @returns {Object.} JSON object + */ + EncryptedData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EncryptedData + * @function getTypeUrl + * @memberof NotificationCenter.EncryptedData + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EncryptedData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/NotificationCenter.EncryptedData"; + }; + + return EncryptedData; + })(); + + NotificationCenter.NotificationParameter = (function() { + + /** + * Properties of a NotificationParameter. + * @memberof NotificationCenter + * @interface INotificationParameter + * @property {string|null} [key] NotificationParameter key + * @property {Uint8Array|null} [data] NotificationParameter data + */ + + /** + * Constructs a new NotificationParameter. + * @memberof NotificationCenter + * @classdesc Represents a NotificationParameter. + * @implements INotificationParameter + * @constructor + * @param {NotificationCenter.INotificationParameter=} [properties] Properties to set + */ + function NotificationParameter(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NotificationParameter key. + * @member {string} key + * @memberof NotificationCenter.NotificationParameter + * @instance + */ + NotificationParameter.prototype.key = ""; + + /** + * NotificationParameter data. + * @member {Uint8Array} data + * @memberof NotificationCenter.NotificationParameter + * @instance + */ + NotificationParameter.prototype.data = $util.newBuffer([]); + + /** + * Creates a new NotificationParameter instance using the specified properties. + * @function create + * @memberof NotificationCenter.NotificationParameter + * @static + * @param {NotificationCenter.INotificationParameter=} [properties] Properties to set + * @returns {NotificationCenter.NotificationParameter} NotificationParameter instance + */ + NotificationParameter.create = function create(properties) { + return new NotificationParameter(properties); + }; + + /** + * Encodes the specified NotificationParameter message. Does not implicitly {@link NotificationCenter.NotificationParameter.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); + 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 + * @memberof NotificationCenter.NotificationParameter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationParameter(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.key = reader.string(); + break; + } + case 2: { + message.data = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof NotificationCenter.NotificationParameter + * @static + * @param {Object.} object Plain object + * @returns {NotificationCenter.NotificationParameter} NotificationParameter + */ + NotificationParameter.fromObject = function fromObject(object) { + if (object instanceof $root.NotificationCenter.NotificationParameter) + return object; + let message = new $root.NotificationCenter.NotificationParameter(); + if (object.key != null) + message.key = String(object.key); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + return message; + }; + + /** + * Creates a plain object from a NotificationParameter message. Also converts values to other types if specified. + * @function toObject + * @memberof NotificationCenter.NotificationParameter + * @static + * @param {NotificationCenter.NotificationParameter} message NotificationParameter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NotificationParameter.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.key = ""; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + } + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + return object; + }; + + /** + * Converts this NotificationParameter to JSON. + * @function toJSON + * @memberof NotificationCenter.NotificationParameter + * @instance + * @returns {Object.} JSON object + */ + NotificationParameter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NotificationParameter + * @function getTypeUrl + * @memberof NotificationCenter.NotificationParameter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NotificationParameter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/NotificationCenter.NotificationParameter"; + }; + + return NotificationParameter; + })(); + + NotificationCenter.Notification = (function() { + + /** + * Properties of a Notification. + * @memberof NotificationCenter + * @interface INotification + * @property {NotificationCenter.NotificationType|null} [type] Notification type + * @property {NotificationCenter.NotificationCategory|null} [category] Notification category + * @property {GraphSync.IGraphSyncRef|null} [sender] Notification sender + * @property {string|null} [senderFullName] Notification senderFullName + * @property {NotificationCenter.IEncryptedData|null} [encryptedData] Notification encryptedData + * @property {Array.|null} [refs] Notification refs + * @property {Array.|null} [categories] Notification categories + * @property {Array.|null} [parameters] Notification parameters + */ + + /** + * Constructs a new Notification. + * @memberof NotificationCenter + * @classdesc Represents a Notification. + * @implements INotification + * @constructor + * @param {NotificationCenter.INotification=} [properties] Properties to set + */ + function Notification(properties) { + this.refs = []; + this.categories = []; + this.parameters = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Notification type. + * @member {NotificationCenter.NotificationType} type + * @memberof NotificationCenter.Notification + * @instance + */ + Notification.prototype.type = 0; + + /** + * Notification category. + * @member {NotificationCenter.NotificationCategory} category + * @memberof NotificationCenter.Notification + * @instance + */ + Notification.prototype.category = 0; + + /** + * Notification sender. + * @member {GraphSync.IGraphSyncRef|null|undefined} sender + * @memberof NotificationCenter.Notification + * @instance + */ + Notification.prototype.sender = null; + + /** + * Notification senderFullName. + * @member {string} senderFullName + * @memberof NotificationCenter.Notification + * @instance + */ + Notification.prototype.senderFullName = ""; + + /** + * Notification encryptedData. + * @member {NotificationCenter.IEncryptedData|null|undefined} encryptedData + * @memberof NotificationCenter.Notification + * @instance + */ + Notification.prototype.encryptedData = null; + + /** + * Notification refs. + * @member {Array.} refs + * @memberof NotificationCenter.Notification + * @instance + */ + Notification.prototype.refs = $util.emptyArray; + + /** + * Notification categories. + * @member {Array.} categories + * @memberof NotificationCenter.Notification + * @instance + */ + Notification.prototype.categories = $util.emptyArray; + + /** + * Notification parameters. + * @member {Array.} parameters + * @memberof NotificationCenter.Notification + * @instance + */ + Notification.prototype.parameters = $util.emptyArray; + + /** + * Creates a new Notification instance using the specified properties. + * @function create + * @memberof NotificationCenter.Notification + * @static + * @param {NotificationCenter.INotification=} [properties] Properties to set + * @returns {NotificationCenter.Notification} Notification instance + */ + Notification.create = function create(properties) { + return new Notification(properties); + }; + + /** + * Encodes the specified Notification message. Does not implicitly {@link NotificationCenter.Notification.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.category != null && Object.hasOwnProperty.call(message, "category")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.category); + if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) + $root.GraphSync.GraphSyncRef.encode(message.sender, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.senderFullName != null && Object.hasOwnProperty.call(message, "senderFullName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.senderFullName); + if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) + $root.NotificationCenter.EncryptedData.encode(message.encryptedData, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.refs != null && message.refs.length) + for (let i = 0; i < message.refs.length; ++i) + $root.GraphSync.GraphSyncRef.encode(message.refs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.categories != null && message.categories.length) { + writer.uint32(/* id 7, wireType 2 =*/58).fork(); + for (let i = 0; i < message.categories.length; ++i) + writer.int32(message.categories[i]); + writer.ldelim(); + } + if (message.parameters != null && message.parameters.length) + for (let i = 0; i < message.parameters.length; ++i) + $root.NotificationCenter.NotificationParameter.encode(message.parameters[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + 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 + * @memberof NotificationCenter.Notification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.Notification(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 2: { + message.category = reader.int32(); + break; + } + case 3: { + message.sender = $root.GraphSync.GraphSyncRef.decode(reader, reader.uint32()); + break; + } + case 4: { + message.senderFullName = reader.string(); + break; + } + case 5: { + message.encryptedData = $root.NotificationCenter.EncryptedData.decode(reader, reader.uint32()); + break; + } + case 6: { + if (!(message.refs && message.refs.length)) + message.refs = []; + message.refs.push($root.GraphSync.GraphSyncRef.decode(reader, reader.uint32())); + break; + } + case 7: { + if (!(message.categories && message.categories.length)) + message.categories = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.categories.push(reader.int32()); + } else + message.categories.push(reader.int32()); + break; + } + case 8: { + if (!(message.parameters && message.parameters.length)) + message.parameters = []; + message.parameters.push($root.NotificationCenter.NotificationParameter.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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: + 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); + 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); + 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]); + 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]); + 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 + * @memberof NotificationCenter.Notification + * @static + * @param {Object.} object Plain object + * @returns {NotificationCenter.Notification} Notification + */ + Notification.fromObject = function fromObject(object) { + if (object instanceof $root.NotificationCenter.Notification) + return object; + let message = new $root.NotificationCenter.Notification(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "NT_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "NT_ALERT": + case 1: + message.type = 1; + break; + case "NT_DEVICE_APPROVAL": + case 2: + message.type = 2; + break; + case "NT_MASTER_PASS_UPDATED": + case 3: + message.type = 3; + break; + case "NT_SHARE_APPROVAL": + case 4: + message.type = 4; + break; + case "NT_SHARE_APPROVAL_APPROVED": + case 5: + message.type = 5; + break; + case "NT_SHARED": + case 6: + message.type = 6; + break; + case "NT_TRANSFERRED": + case 7: + message.type = 7; + break; + case "NT_LICENSE_LIMIT_REACHED": + case 8: + message.type = 8; + break; + case "NT_APPROVAL_REQUEST": + case 9: + message.type = 9; + break; + case "NT_APPROVED_RESPONSE": + case 10: + message.type = 10; + break; + case "NT_DENIED_RESPONSE": + case 11: + message.type = 11; + break; + case "NT_2FA_CONFIGURED": + case 12: + message.type = 12; + break; + case "NT_SHARE_APPROVAL_DENIED": + case 13: + message.type = 13; + break; + case "NT_DEVICE_APPROVAL_APPROVED": + case 14: + message.type = 14; + break; + case "NT_DEVICE_APPROVAL_DENIED": + case 15: + message.type = 15; + break; + case "NT_ACCOUNT_CREATED": + case 16: + message.type = 16; + break; + case "NT_2FA_ENABLED": + case 17: + message.type = 17; + break; + case "NT_2FA_DISABLED": + case 18: + message.type = 18; + break; + case "NT_SECURITY_KEYS_ENABLED": + case 19: + message.type = 19; + break; + case "NT_SECURITY_KEYS_DISABLED": + case 20: + message.type = 20; + break; + case "NT_SSL_CERTIFICATE_EXPIRES_SOON": + case 21: + message.type = 21; + break; + case "NT_SSL_CERTIFICATE_EXPIRED": + case 22: + message.type = 22; + break; + } + switch (object.category) { + default: + if (typeof object.category === "number") { + message.category = object.category; + break; + } + break; + case "NC_UNSPECIFIED": + case 0: + message.category = 0; + break; + case "NC_ACCOUNT": + case 1: + message.category = 1; + break; + case "NC_SHARING": + case 2: + message.category = 2; + break; + case "NC_ENTERPRISE": + case 3: + message.category = 3; + break; + case "NC_SECURITY": + case 4: + message.category = 4; + break; + case "NC_REQUEST": + case 5: + message.category = 5; + break; + case "NC_SYSTEM": + case 6: + message.category = 6; + break; + case "NC_PROMOTION": + case 7: + message.category = 7; + break; + } + if (object.sender != null) { + if (typeof object.sender !== "object") + throw TypeError(".NotificationCenter.Notification.sender: object expected"); + message.sender = $root.GraphSync.GraphSyncRef.fromObject(object.sender); + } + if (object.senderFullName != null) + message.senderFullName = String(object.senderFullName); + if (object.encryptedData != null) { + if (typeof object.encryptedData !== "object") + throw TypeError(".NotificationCenter.Notification.encryptedData: object expected"); + message.encryptedData = $root.NotificationCenter.EncryptedData.fromObject(object.encryptedData); + } + if (object.refs) { + if (!Array.isArray(object.refs)) + throw TypeError(".NotificationCenter.Notification.refs: array expected"); + message.refs = []; + for (let i = 0; i < object.refs.length; ++i) { + if (typeof object.refs[i] !== "object") + throw TypeError(".NotificationCenter.Notification.refs: object expected"); + message.refs[i] = $root.GraphSync.GraphSyncRef.fromObject(object.refs[i]); + } + } + if (object.categories) { + if (!Array.isArray(object.categories)) + throw TypeError(".NotificationCenter.Notification.categories: array expected"); + message.categories = []; + for (let i = 0; i < object.categories.length; ++i) + switch (object.categories[i]) { + default: + if (typeof object.categories[i] === "number") { + message.categories[i] = object.categories[i]; + break; + } + case "NC_UNSPECIFIED": + case 0: + message.categories[i] = 0; + break; + case "NC_ACCOUNT": + case 1: + message.categories[i] = 1; + break; + case "NC_SHARING": + case 2: + message.categories[i] = 2; + break; + case "NC_ENTERPRISE": + case 3: + message.categories[i] = 3; + break; + case "NC_SECURITY": + case 4: + message.categories[i] = 4; + break; + case "NC_REQUEST": + case 5: + message.categories[i] = 5; + break; + case "NC_SYSTEM": + case 6: + message.categories[i] = 6; + break; + case "NC_PROMOTION": + case 7: + message.categories[i] = 7; + break; + } + } + if (object.parameters) { + if (!Array.isArray(object.parameters)) + throw TypeError(".NotificationCenter.Notification.parameters: array expected"); + message.parameters = []; + for (let i = 0; i < object.parameters.length; ++i) { + if (typeof object.parameters[i] !== "object") + throw TypeError(".NotificationCenter.Notification.parameters: object expected"); + message.parameters[i] = $root.NotificationCenter.NotificationParameter.fromObject(object.parameters[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a Notification message. Also converts values to other types if specified. + * @function toObject + * @memberof NotificationCenter.Notification + * @static + * @param {NotificationCenter.Notification} message Notification + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Notification.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.refs = []; + object.categories = []; + object.parameters = []; + } + if (options.defaults) { + object.type = options.enums === String ? "NT_UNSPECIFIED" : 0; + object.category = options.enums === String ? "NC_UNSPECIFIED" : 0; + object.sender = null; + object.senderFullName = ""; + object.encryptedData = null; + } + if (message.type != null && message.hasOwnProperty("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")) + object.category = options.enums === String ? $root.NotificationCenter.NotificationCategory[message.category] === undefined ? message.category : $root.NotificationCenter.NotificationCategory[message.category] : message.category; + if (message.sender != null && message.hasOwnProperty("sender")) + object.sender = $root.GraphSync.GraphSyncRef.toObject(message.sender, options); + if (message.senderFullName != null && message.hasOwnProperty("senderFullName")) + object.senderFullName = message.senderFullName; + if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) + object.encryptedData = $root.NotificationCenter.EncryptedData.toObject(message.encryptedData, options); + if (message.refs && message.refs.length) { + object.refs = []; + for (let j = 0; j < message.refs.length; ++j) + object.refs[j] = $root.GraphSync.GraphSyncRef.toObject(message.refs[j], options); + } + if (message.categories && message.categories.length) { + object.categories = []; + for (let j = 0; j < message.categories.length; ++j) + object.categories[j] = options.enums === String ? $root.NotificationCenter.NotificationCategory[message.categories[j]] === undefined ? message.categories[j] : $root.NotificationCenter.NotificationCategory[message.categories[j]] : message.categories[j]; + } + if (message.parameters && message.parameters.length) { + object.parameters = []; + for (let j = 0; j < message.parameters.length; ++j) + object.parameters[j] = $root.NotificationCenter.NotificationParameter.toObject(message.parameters[j], options); + } + return object; + }; + + /** + * Converts this Notification to JSON. + * @function toJSON + * @memberof NotificationCenter.Notification + * @instance + * @returns {Object.} JSON object + */ + Notification.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Notification + * @function getTypeUrl + * @memberof NotificationCenter.Notification + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Notification.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/NotificationCenter.Notification"; + }; + + return Notification; + })(); + + NotificationCenter.NotificationReadMark = (function() { + + /** + * Properties of a NotificationReadMark. + * @memberof NotificationCenter + * @interface INotificationReadMark + * @property {Uint8Array|null} [uid] NotificationReadMark uid + * @property {number|Long|null} [notificationEdgeId] NotificationReadMark notificationEdgeId + * @property {number|Long|null} [markEdgeId] NotificationReadMark markEdgeId + * @property {NotificationCenter.NotificationReadStatus|null} [readStatus] NotificationReadMark readStatus + */ + + /** + * Constructs a new NotificationReadMark. + * @memberof NotificationCenter + * @classdesc Represents a NotificationReadMark. + * @implements INotificationReadMark + * @constructor + * @param {NotificationCenter.INotificationReadMark=} [properties] Properties to set + */ + function NotificationReadMark(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NotificationReadMark uid. + * @member {Uint8Array} uid + * @memberof NotificationCenter.NotificationReadMark + * @instance + */ + NotificationReadMark.prototype.uid = $util.newBuffer([]); + + /** + * NotificationReadMark notificationEdgeId. + * @member {number|Long} notificationEdgeId + * @memberof NotificationCenter.NotificationReadMark + * @instance + */ + NotificationReadMark.prototype.notificationEdgeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * NotificationReadMark markEdgeId. + * @member {number|Long} markEdgeId + * @memberof NotificationCenter.NotificationReadMark + * @instance + */ + NotificationReadMark.prototype.markEdgeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * NotificationReadMark readStatus. + * @member {NotificationCenter.NotificationReadStatus} readStatus + * @memberof NotificationCenter.NotificationReadMark + * @instance + */ + NotificationReadMark.prototype.readStatus = 0; + + /** + * Creates a new NotificationReadMark instance using the specified properties. + * @function create + * @memberof NotificationCenter.NotificationReadMark + * @static + * @param {NotificationCenter.INotificationReadMark=} [properties] Properties to set + * @returns {NotificationCenter.NotificationReadMark} NotificationReadMark instance + */ + NotificationReadMark.create = function create(properties) { + return new NotificationReadMark(properties); + }; + + /** + * Encodes the specified NotificationReadMark message. Does not implicitly {@link NotificationCenter.NotificationReadMark.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); + if (message.notificationEdgeId != null && Object.hasOwnProperty.call(message, "notificationEdgeId")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.notificationEdgeId); + if (message.markEdgeId != null && Object.hasOwnProperty.call(message, "markEdgeId")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.markEdgeId); + if (message.readStatus != null && Object.hasOwnProperty.call(message, "readStatus")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.readStatus); + 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 + * @memberof NotificationCenter.NotificationReadMark + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationReadMark(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.uid = reader.bytes(); + break; + } + case 2: { + message.notificationEdgeId = reader.int64(); + break; + } + case 3: { + message.markEdgeId = reader.int64(); + break; + } + case 4: { + message.readStatus = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.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 + * @memberof NotificationCenter.NotificationReadMark + * @static + * @param {Object.} object Plain object + * @returns {NotificationCenter.NotificationReadMark} NotificationReadMark + */ + NotificationReadMark.fromObject = function fromObject(object) { + if (object instanceof $root.NotificationCenter.NotificationReadMark) + return object; + let message = new $root.NotificationCenter.NotificationReadMark(); + if (object.uid != null) + if (typeof object.uid === "string") + $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); + else if (object.uid.length >= 0) + message.uid = object.uid; + if (object.notificationEdgeId != null) + if ($util.Long) + (message.notificationEdgeId = $util.Long.fromValue(object.notificationEdgeId)).unsigned = false; + else if (typeof object.notificationEdgeId === "string") + message.notificationEdgeId = parseInt(object.notificationEdgeId, 10); + else if (typeof object.notificationEdgeId === "number") + message.notificationEdgeId = object.notificationEdgeId; + else if (typeof object.notificationEdgeId === "object") + message.notificationEdgeId = new $util.LongBits(object.notificationEdgeId.low >>> 0, object.notificationEdgeId.high >>> 0).toNumber(); + if (object.markEdgeId != null) + if ($util.Long) + (message.markEdgeId = $util.Long.fromValue(object.markEdgeId)).unsigned = false; + else if (typeof object.markEdgeId === "string") + message.markEdgeId = parseInt(object.markEdgeId, 10); + else if (typeof object.markEdgeId === "number") + message.markEdgeId = object.markEdgeId; + else if (typeof object.markEdgeId === "object") + message.markEdgeId = new $util.LongBits(object.markEdgeId.low >>> 0, object.markEdgeId.high >>> 0).toNumber(); + switch (object.readStatus) { + default: + if (typeof object.readStatus === "number") { + message.readStatus = object.readStatus; + break; + } + break; + case "NRS_UNSPECIFIED": + case 0: + message.readStatus = 0; + break; + case "NRS_LAST": + case 1: + message.readStatus = 1; + break; + case "NRS_READ": + case 2: + message.readStatus = 2; + break; + case "NRS_UNREAD": + case 3: + message.readStatus = 3; + break; + } + return message; + }; + + /** + * Creates a plain object from a NotificationReadMark message. Also converts values to other types if specified. + * @function toObject + * @memberof NotificationCenter.NotificationReadMark + * @static + * @param {NotificationCenter.NotificationReadMark} message NotificationReadMark + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NotificationReadMark.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.uid = ""; + else { + object.uid = []; + if (options.bytes !== Array) + object.uid = $util.newBuffer(object.uid); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.notificationEdgeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.notificationEdgeId = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.markEdgeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.markEdgeId = options.longs === String ? "0" : 0; + object.readStatus = options.enums === String ? "NRS_UNSPECIFIED" : 0; + } + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; + if (message.notificationEdgeId != null && message.hasOwnProperty("notificationEdgeId")) + if (typeof message.notificationEdgeId === "number") + object.notificationEdgeId = options.longs === String ? String(message.notificationEdgeId) : message.notificationEdgeId; + else + object.notificationEdgeId = options.longs === String ? $util.Long.prototype.toString.call(message.notificationEdgeId) : options.longs === Number ? new $util.LongBits(message.notificationEdgeId.low >>> 0, message.notificationEdgeId.high >>> 0).toNumber() : message.notificationEdgeId; + if (message.markEdgeId != null && message.hasOwnProperty("markEdgeId")) + if (typeof 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")) + object.readStatus = options.enums === String ? $root.NotificationCenter.NotificationReadStatus[message.readStatus] === undefined ? message.readStatus : $root.NotificationCenter.NotificationReadStatus[message.readStatus] : message.readStatus; + return object; + }; + + /** + * Converts this NotificationReadMark to JSON. + * @function toJSON + * @memberof NotificationCenter.NotificationReadMark + * @instance + * @returns {Object.} JSON object + */ + NotificationReadMark.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NotificationReadMark + * @function getTypeUrl + * @memberof NotificationCenter.NotificationReadMark + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NotificationReadMark.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/NotificationCenter.NotificationReadMark"; + }; + + return NotificationReadMark; + })(); + + NotificationCenter.NotificationContent = (function() { + + /** + * Properties of a NotificationContent. + * @memberof NotificationCenter + * @interface INotificationContent + * @property {NotificationCenter.INotification|null} [notification] NotificationContent notification + * @property {NotificationCenter.NotificationReadStatus|null} [readStatus] NotificationContent readStatus + * @property {NotificationCenter.NotificationApprovalStatus|null} [approvalStatus] NotificationContent approvalStatus + * @property {boolean|null} [trimmingPoint] NotificationContent trimmingPoint + * @property {Array.|null} [clientTypeIDs] NotificationContent clientTypeIDs + * @property {Array.|null} [deviceIDs] NotificationContent deviceIDs + */ + + /** + * Constructs a new NotificationContent. + * @memberof NotificationCenter + * @classdesc Represents a NotificationContent. + * @implements INotificationContent + * @constructor + * @param {NotificationCenter.INotificationContent=} [properties] Properties to set + */ + function NotificationContent(properties) { + this.clientTypeIDs = []; + this.deviceIDs = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NotificationContent notification. + * @member {NotificationCenter.INotification|null|undefined} notification + * @memberof NotificationCenter.NotificationContent + * @instance + */ + NotificationContent.prototype.notification = null; + + /** + * NotificationContent readStatus. + * @member {NotificationCenter.NotificationReadStatus|null|undefined} readStatus + * @memberof NotificationCenter.NotificationContent + * @instance + */ + NotificationContent.prototype.readStatus = null; + + /** + * NotificationContent approvalStatus. + * @member {NotificationCenter.NotificationApprovalStatus|null|undefined} approvalStatus + * @memberof NotificationCenter.NotificationContent + * @instance + */ + NotificationContent.prototype.approvalStatus = null; + + /** + * NotificationContent trimmingPoint. + * @member {boolean|null|undefined} trimmingPoint + * @memberof NotificationCenter.NotificationContent + * @instance + */ + NotificationContent.prototype.trimmingPoint = null; + + /** + * NotificationContent clientTypeIDs. + * @member {Array.} clientTypeIDs + * @memberof NotificationCenter.NotificationContent + * @instance + */ + NotificationContent.prototype.clientTypeIDs = $util.emptyArray; + + /** + * NotificationContent deviceIDs. + * @member {Array.} deviceIDs + * @memberof NotificationCenter.NotificationContent + * @instance + */ + NotificationContent.prototype.deviceIDs = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * NotificationContent type. + * @member {"notification"|"readStatus"|"approvalStatus"|"trimmingPoint"|undefined} type + * @memberof NotificationCenter.NotificationContent + * @instance + */ + Object.defineProperty(NotificationContent.prototype, "type", { + get: $util.oneOfGetter($oneOfFields = ["notification", "readStatus", "approvalStatus", "trimmingPoint"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NotificationContent instance using the specified properties. + * @function create + * @memberof NotificationCenter.NotificationContent + * @static + * @param {NotificationCenter.INotificationContent=} [properties] Properties to set + * @returns {NotificationCenter.NotificationContent} NotificationContent instance + */ + NotificationContent.create = function create(properties) { + return new NotificationContent(properties); + }; + + /** + * Encodes the specified NotificationContent message. Does not implicitly {@link NotificationCenter.NotificationContent.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.notification != null && Object.hasOwnProperty.call(message, "notification")) + $root.NotificationCenter.Notification.encode(message.notification, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.readStatus != null && Object.hasOwnProperty.call(message, "readStatus")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.readStatus); + if (message.approvalStatus != null && Object.hasOwnProperty.call(message, "approvalStatus")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.approvalStatus); + if (message.trimmingPoint != null && Object.hasOwnProperty.call(message, "trimmingPoint")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.trimmingPoint); + if (message.clientTypeIDs != null && message.clientTypeIDs.length) { + writer.uint32(/* id 5, wireType 2 =*/42).fork(); + for (let i = 0; i < message.clientTypeIDs.length; ++i) + writer.int32(message.clientTypeIDs[i]); + writer.ldelim(); + } + if (message.deviceIDs != null && message.deviceIDs.length) { + writer.uint32(/* id 6, wireType 2 =*/50).fork(); + for (let i = 0; i < message.deviceIDs.length; ++i) + writer.int64(message.deviceIDs[i]); + writer.ldelim(); + } + 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 + * @memberof NotificationCenter.NotificationContent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationContent(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.notification = $root.NotificationCenter.Notification.decode(reader, reader.uint32()); + break; + } + case 2: { + message.readStatus = reader.int32(); + break; + } + case 3: { + message.approvalStatus = reader.int32(); + break; + } + case 4: { + message.trimmingPoint = reader.bool(); + break; + } + case 5: { + if (!(message.clientTypeIDs && message.clientTypeIDs.length)) + message.clientTypeIDs = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.clientTypeIDs.push(reader.int32()); + } else + message.clientTypeIDs.push(reader.int32()); + break; + } + case 6: { + if (!(message.deviceIDs && message.deviceIDs.length)) + message.deviceIDs = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.deviceIDs.push(reader.int64()); + } else + message.deviceIDs.push(reader.int64()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.notification != null && message.hasOwnProperty("notification")) { + properties.type = 1; + { + let error = $root.NotificationCenter.Notification.verify(message.notification); + 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 + * @memberof NotificationCenter.NotificationContent + * @static + * @param {Object.} object Plain object + * @returns {NotificationCenter.NotificationContent} NotificationContent + */ + NotificationContent.fromObject = function fromObject(object) { + if (object instanceof $root.NotificationCenter.NotificationContent) + return object; + let message = new $root.NotificationCenter.NotificationContent(); + if (object.notification != null) { + if (typeof object.notification !== "object") + throw TypeError(".NotificationCenter.NotificationContent.notification: object expected"); + message.notification = $root.NotificationCenter.Notification.fromObject(object.notification); + } + switch (object.readStatus) { + default: + if (typeof object.readStatus === "number") { + message.readStatus = object.readStatus; + break; + } + break; + case "NRS_UNSPECIFIED": + case 0: + message.readStatus = 0; + break; + case "NRS_LAST": + case 1: + message.readStatus = 1; + break; + case "NRS_READ": + case 2: + message.readStatus = 2; + break; + case "NRS_UNREAD": + case 3: + message.readStatus = 3; + break; + } + switch (object.approvalStatus) { + default: + if (typeof object.approvalStatus === "number") { + message.approvalStatus = object.approvalStatus; + break; + } + break; + case "NAS_UNSPECIFIED": + case 0: + message.approvalStatus = 0; + break; + case "NAS_APPROVED": + case 1: + message.approvalStatus = 1; + break; + case "NAS_DENIED": + case 2: + message.approvalStatus = 2; + break; + case "NAS_LOST_APPROVAL_RIGHTS": + case 3: + message.approvalStatus = 3; + break; + case "NAS_LOST_ACCESS": + case 4: + message.approvalStatus = 4; + break; + } + if (object.trimmingPoint != null) + message.trimmingPoint = Boolean(object.trimmingPoint); + if (object.clientTypeIDs) { + if (!Array.isArray(object.clientTypeIDs)) + throw TypeError(".NotificationCenter.NotificationContent.clientTypeIDs: array expected"); + message.clientTypeIDs = []; + for (let i = 0; i < object.clientTypeIDs.length; ++i) + message.clientTypeIDs[i] = object.clientTypeIDs[i] | 0; + } + if (object.deviceIDs) { + if (!Array.isArray(object.deviceIDs)) + throw TypeError(".NotificationCenter.NotificationContent.deviceIDs: array expected"); + message.deviceIDs = []; + for (let i = 0; i < object.deviceIDs.length; ++i) + if ($util.Long) + (message.deviceIDs[i] = $util.Long.fromValue(object.deviceIDs[i])).unsigned = false; + else if (typeof object.deviceIDs[i] === "string") + message.deviceIDs[i] = parseInt(object.deviceIDs[i], 10); + else if (typeof object.deviceIDs[i] === "number") + message.deviceIDs[i] = object.deviceIDs[i]; + else if (typeof object.deviceIDs[i] === "object") + message.deviceIDs[i] = new $util.LongBits(object.deviceIDs[i].low >>> 0, object.deviceIDs[i].high >>> 0).toNumber(); + } + return message; + }; + + /** + * Creates a plain object from a NotificationContent message. Also converts values to other types if specified. + * @function toObject + * @memberof NotificationCenter.NotificationContent + * @static + * @param {NotificationCenter.NotificationContent} message NotificationContent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NotificationContent.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.clientTypeIDs = []; + object.deviceIDs = []; + } + if (message.notification != null && message.hasOwnProperty("notification")) { + object.notification = $root.NotificationCenter.Notification.toObject(message.notification, options); + if (options.oneofs) + object.type = "notification"; + } + if (message.readStatus != null && message.hasOwnProperty("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")) { + 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")) { + object.trimmingPoint = message.trimmingPoint; + if (options.oneofs) + object.type = "trimmingPoint"; + } + if (message.clientTypeIDs && message.clientTypeIDs.length) { + object.clientTypeIDs = []; + for (let j = 0; j < message.clientTypeIDs.length; ++j) + object.clientTypeIDs[j] = message.clientTypeIDs[j]; + } + if (message.deviceIDs && message.deviceIDs.length) { + object.deviceIDs = []; + for (let j = 0; j < message.deviceIDs.length; ++j) + if (typeof message.deviceIDs[j] === "number") + object.deviceIDs[j] = options.longs === String ? String(message.deviceIDs[j]) : message.deviceIDs[j]; + else + object.deviceIDs[j] = options.longs === String ? $util.Long.prototype.toString.call(message.deviceIDs[j]) : options.longs === Number ? new $util.LongBits(message.deviceIDs[j].low >>> 0, message.deviceIDs[j].high >>> 0).toNumber() : message.deviceIDs[j]; + } + return object; + }; + + /** + * Converts this NotificationContent to JSON. + * @function toJSON + * @memberof NotificationCenter.NotificationContent + * @instance + * @returns {Object.} JSON object + */ + NotificationContent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NotificationContent + * @function getTypeUrl + * @memberof NotificationCenter.NotificationContent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NotificationContent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/NotificationCenter.NotificationContent"; + }; + + return NotificationContent; + })(); + + NotificationCenter.NotificationWrapper = (function() { + + /** + * Properties of a NotificationWrapper. + * @memberof NotificationCenter + * @interface INotificationWrapper + * @property {Uint8Array|null} [uid] NotificationWrapper uid + * @property {NotificationCenter.INotificationContent|null} [content] NotificationWrapper content + * @property {number|Long|null} [timestamp] NotificationWrapper timestamp + */ + + /** + * Constructs a new NotificationWrapper. + * @memberof NotificationCenter + * @classdesc Represents a NotificationWrapper. + * @implements INotificationWrapper + * @constructor + * @param {NotificationCenter.INotificationWrapper=} [properties] Properties to set + */ + function NotificationWrapper(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NotificationWrapper uid. + * @member {Uint8Array} uid + * @memberof NotificationCenter.NotificationWrapper + * @instance + */ + NotificationWrapper.prototype.uid = $util.newBuffer([]); + + /** + * NotificationWrapper content. + * @member {NotificationCenter.INotificationContent|null|undefined} content + * @memberof NotificationCenter.NotificationWrapper + * @instance + */ + NotificationWrapper.prototype.content = null; + + /** + * NotificationWrapper timestamp. + * @member {number|Long} timestamp + * @memberof NotificationCenter.NotificationWrapper + * @instance + */ + NotificationWrapper.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new NotificationWrapper instance using the specified properties. + * @function create + * @memberof NotificationCenter.NotificationWrapper + * @static + * @param {NotificationCenter.INotificationWrapper=} [properties] Properties to set + * @returns {NotificationCenter.NotificationWrapper} NotificationWrapper instance + */ + NotificationWrapper.create = function create(properties) { + return new NotificationWrapper(properties); + }; + + /** + * Encodes the specified NotificationWrapper message. Does not implicitly {@link NotificationCenter.NotificationWrapper.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + $root.NotificationCenter.NotificationContent.encode(message.content, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.timestamp); + 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 + * @memberof NotificationCenter.NotificationWrapper + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationWrapper(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.uid = reader.bytes(); + break; + } + case 2: { + message.content = $root.NotificationCenter.NotificationContent.decode(reader, reader.uint32()); + break; + } + case 3: { + message.timestamp = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.content != null && message.hasOwnProperty("content")) { + let error = $root.NotificationCenter.NotificationContent.verify(message.content); + 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 + * @memberof NotificationCenter.NotificationWrapper + * @static + * @param {Object.} object Plain object + * @returns {NotificationCenter.NotificationWrapper} NotificationWrapper + */ + NotificationWrapper.fromObject = function fromObject(object) { + if (object instanceof $root.NotificationCenter.NotificationWrapper) + return object; + let message = new $root.NotificationCenter.NotificationWrapper(); + if (object.uid != null) + if (typeof object.uid === "string") + $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); + else if (object.uid.length >= 0) + message.uid = object.uid; + if (object.content != null) { + if (typeof object.content !== "object") + throw TypeError(".NotificationCenter.NotificationWrapper.content: object expected"); + message.content = $root.NotificationCenter.NotificationContent.fromObject(object.content); + } + if (object.timestamp != null) + if ($util.Long) + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = false; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + else if (typeof object.timestamp === "object") + message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a NotificationWrapper message. Also converts values to other types if specified. + * @function toObject + * @memberof NotificationCenter.NotificationWrapper + * @static + * @param {NotificationCenter.NotificationWrapper} message NotificationWrapper + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NotificationWrapper.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.uid = ""; + else { + object.uid = []; + if (options.bytes !== Array) + object.uid = $util.newBuffer(object.uid); + } + object.content = null; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestamp = options.longs === String ? "0" : 0; + } + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; + if (message.content != null && message.hasOwnProperty("content")) + object.content = $root.NotificationCenter.NotificationContent.toObject(message.content, options); + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + 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; + return object; + }; + + /** + * Converts this NotificationWrapper to JSON. + * @function toJSON + * @memberof NotificationCenter.NotificationWrapper + * @instance + * @returns {Object.} JSON object + */ + NotificationWrapper.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NotificationWrapper + * @function getTypeUrl + * @memberof NotificationCenter.NotificationWrapper + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NotificationWrapper.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/NotificationCenter.NotificationWrapper"; + }; + + return NotificationWrapper; + })(); + + NotificationCenter.NotificationSync = (function() { + + /** + * Properties of a NotificationSync. + * @memberof NotificationCenter + * @interface INotificationSync + * @property {Array.|null} [data] NotificationSync data + * @property {number|Long|null} [syncPoint] NotificationSync syncPoint + * @property {boolean|null} [hasMore] NotificationSync hasMore + */ + + /** + * Constructs a new NotificationSync. + * @memberof NotificationCenter + * @classdesc Represents a NotificationSync. + * @implements INotificationSync + * @constructor + * @param {NotificationCenter.INotificationSync=} [properties] Properties to set + */ + function NotificationSync(properties) { + this.data = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NotificationSync data. + * @member {Array.} data + * @memberof NotificationCenter.NotificationSync + * @instance + */ + NotificationSync.prototype.data = $util.emptyArray; + + /** + * NotificationSync syncPoint. + * @member {number|Long} syncPoint + * @memberof NotificationCenter.NotificationSync + * @instance + */ + NotificationSync.prototype.syncPoint = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * NotificationSync hasMore. + * @member {boolean} hasMore + * @memberof NotificationCenter.NotificationSync + * @instance + */ + NotificationSync.prototype.hasMore = false; + + /** + * Creates a new NotificationSync instance using the specified properties. + * @function create + * @memberof NotificationCenter.NotificationSync + * @static + * @param {NotificationCenter.INotificationSync=} [properties] Properties to set + * @returns {NotificationCenter.NotificationSync} NotificationSync instance + */ + NotificationSync.create = function create(properties) { + return new NotificationSync(properties); + }; + + /** + * Encodes the specified NotificationSync message. Does not implicitly {@link NotificationCenter.NotificationSync.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.data != null && message.data.length) + for (let i = 0; i < message.data.length; ++i) + $root.NotificationCenter.NotificationWrapper.encode(message.data[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.syncPoint != null && Object.hasOwnProperty.call(message, "syncPoint")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.syncPoint); + if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.hasMore); + 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 + * @memberof NotificationCenter.NotificationSync + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationSync(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.data && message.data.length)) + message.data = []; + message.data.push($root.NotificationCenter.NotificationWrapper.decode(reader, reader.uint32())); + break; + } + case 2: { + message.syncPoint = reader.int64(); + break; + } + case 3: { + message.hasMore = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.NotificationCenter.NotificationWrapper.verify(message.data[i]); + 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 + * @memberof NotificationCenter.NotificationSync + * @static + * @param {Object.} object Plain object + * @returns {NotificationCenter.NotificationSync} NotificationSync + */ + NotificationSync.fromObject = function fromObject(object) { + if (object instanceof $root.NotificationCenter.NotificationSync) + return object; + let message = new $root.NotificationCenter.NotificationSync(); + if (object.data) { + if (!Array.isArray(object.data)) + throw TypeError(".NotificationCenter.NotificationSync.data: array expected"); + message.data = []; + for (let i = 0; i < object.data.length; ++i) { + if (typeof object.data[i] !== "object") + throw TypeError(".NotificationCenter.NotificationSync.data: object expected"); + message.data[i] = $root.NotificationCenter.NotificationWrapper.fromObject(object.data[i]); + } + } + if (object.syncPoint != null) + if ($util.Long) + (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; + else if (typeof object.syncPoint === "string") + message.syncPoint = parseInt(object.syncPoint, 10); + else if (typeof object.syncPoint === "number") + message.syncPoint = object.syncPoint; + else if (typeof object.syncPoint === "object") + message.syncPoint = new $util.LongBits(object.syncPoint.low >>> 0, object.syncPoint.high >>> 0).toNumber(); + if (object.hasMore != null) + message.hasMore = Boolean(object.hasMore); + return message; + }; + + /** + * Creates a plain object from a NotificationSync message. Also converts values to other types if specified. + * @function toObject + * @memberof NotificationCenter.NotificationSync + * @static + * @param {NotificationCenter.NotificationSync} message NotificationSync + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NotificationSync.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.data = []; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.syncPoint = options.longs === String ? "0" : 0; + object.hasMore = false; + } + if (message.data && message.data.length) { + object.data = []; + for (let j = 0; j < message.data.length; ++j) + object.data[j] = $root.NotificationCenter.NotificationWrapper.toObject(message.data[j], options); + } + if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) + 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")) + object.hasMore = message.hasMore; + return object; + }; + + /** + * Converts this NotificationSync to JSON. + * @function toJSON + * @memberof NotificationCenter.NotificationSync + * @instance + * @returns {Object.} JSON object + */ + NotificationSync.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NotificationSync + * @function getTypeUrl + * @memberof NotificationCenter.NotificationSync + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NotificationSync.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/NotificationCenter.NotificationSync"; + }; + + return NotificationSync; + })(); + + NotificationCenter.ReadStatusUpdate = (function() { + + /** + * Properties of a ReadStatusUpdate. + * @memberof NotificationCenter + * @interface IReadStatusUpdate + * @property {Uint8Array|null} [notificationUid] ReadStatusUpdate notificationUid + * @property {NotificationCenter.NotificationReadStatus|null} [status] ReadStatusUpdate status + */ + + /** + * Constructs a new ReadStatusUpdate. + * @memberof NotificationCenter + * @classdesc Represents a ReadStatusUpdate. + * @implements IReadStatusUpdate + * @constructor + * @param {NotificationCenter.IReadStatusUpdate=} [properties] Properties to set + */ + function ReadStatusUpdate(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReadStatusUpdate notificationUid. + * @member {Uint8Array} notificationUid + * @memberof NotificationCenter.ReadStatusUpdate + * @instance + */ + ReadStatusUpdate.prototype.notificationUid = $util.newBuffer([]); + + /** + * ReadStatusUpdate status. + * @member {NotificationCenter.NotificationReadStatus} status + * @memberof NotificationCenter.ReadStatusUpdate + * @instance + */ + ReadStatusUpdate.prototype.status = 0; + + /** + * Creates a new ReadStatusUpdate instance using the specified properties. + * @function create + * @memberof NotificationCenter.ReadStatusUpdate + * @static + * @param {NotificationCenter.IReadStatusUpdate=} [properties] Properties to set + * @returns {NotificationCenter.ReadStatusUpdate} ReadStatusUpdate instance + */ + ReadStatusUpdate.create = function create(properties) { + return new ReadStatusUpdate(properties); + }; + + /** + * Encodes the specified ReadStatusUpdate message. Does not implicitly {@link NotificationCenter.ReadStatusUpdate.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.notificationUid != null && Object.hasOwnProperty.call(message, "notificationUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.notificationUid); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); + 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 + * @memberof NotificationCenter.ReadStatusUpdate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.ReadStatusUpdate(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.notificationUid = reader.bytes(); + break; + } + case 2: { + message.status = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof NotificationCenter.ReadStatusUpdate + * @static + * @param {Object.} object Plain object + * @returns {NotificationCenter.ReadStatusUpdate} ReadStatusUpdate + */ + ReadStatusUpdate.fromObject = function fromObject(object) { + if (object instanceof $root.NotificationCenter.ReadStatusUpdate) + return object; + let message = new $root.NotificationCenter.ReadStatusUpdate(); + if (object.notificationUid != null) + if (typeof object.notificationUid === "string") + $util.base64.decode(object.notificationUid, message.notificationUid = $util.newBuffer($util.base64.length(object.notificationUid)), 0); + else if (object.notificationUid.length >= 0) + message.notificationUid = object.notificationUid; + switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; + case "NRS_UNSPECIFIED": + case 0: + message.status = 0; + break; + case "NRS_LAST": + case 1: + message.status = 1; + break; + case "NRS_READ": + case 2: + message.status = 2; + break; + case "NRS_UNREAD": + case 3: + message.status = 3; + break; + } + return message; + }; + + /** + * Creates a plain object from a ReadStatusUpdate message. Also converts values to other types if specified. + * @function toObject + * @memberof NotificationCenter.ReadStatusUpdate + * @static + * @param {NotificationCenter.ReadStatusUpdate} message ReadStatusUpdate + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReadStatusUpdate.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.notificationUid = ""; + else { + object.notificationUid = []; + if (options.bytes !== Array) + object.notificationUid = $util.newBuffer(object.notificationUid); + } + object.status = options.enums === String ? "NRS_UNSPECIFIED" : 0; + } + if (message.notificationUid != null && message.hasOwnProperty("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")) + object.status = options.enums === String ? $root.NotificationCenter.NotificationReadStatus[message.status] === undefined ? message.status : $root.NotificationCenter.NotificationReadStatus[message.status] : message.status; + return object; + }; + + /** + * Converts this ReadStatusUpdate to JSON. + * @function toJSON + * @memberof NotificationCenter.ReadStatusUpdate + * @instance + * @returns {Object.} JSON object + */ + ReadStatusUpdate.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReadStatusUpdate + * @function getTypeUrl + * @memberof NotificationCenter.ReadStatusUpdate + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReadStatusUpdate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/NotificationCenter.ReadStatusUpdate"; + }; + + return ReadStatusUpdate; + })(); + + NotificationCenter.ApprovalStatusUpdate = (function() { + + /** + * Properties of an ApprovalStatusUpdate. + * @memberof NotificationCenter + * @interface IApprovalStatusUpdate + * @property {Uint8Array|null} [notificationUid] ApprovalStatusUpdate notificationUid + * @property {NotificationCenter.NotificationApprovalStatus|null} [status] ApprovalStatusUpdate status + */ + + /** + * Constructs a new ApprovalStatusUpdate. + * @memberof NotificationCenter + * @classdesc Represents an ApprovalStatusUpdate. + * @implements IApprovalStatusUpdate + * @constructor + * @param {NotificationCenter.IApprovalStatusUpdate=} [properties] Properties to set + */ + function ApprovalStatusUpdate(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ApprovalStatusUpdate notificationUid. + * @member {Uint8Array} notificationUid + * @memberof NotificationCenter.ApprovalStatusUpdate + * @instance + */ + ApprovalStatusUpdate.prototype.notificationUid = $util.newBuffer([]); + + /** + * ApprovalStatusUpdate status. + * @member {NotificationCenter.NotificationApprovalStatus} status + * @memberof NotificationCenter.ApprovalStatusUpdate + * @instance + */ + ApprovalStatusUpdate.prototype.status = 0; + + /** + * Creates a new ApprovalStatusUpdate instance using the specified properties. + * @function create + * @memberof NotificationCenter.ApprovalStatusUpdate + * @static + * @param {NotificationCenter.IApprovalStatusUpdate=} [properties] Properties to set + * @returns {NotificationCenter.ApprovalStatusUpdate} ApprovalStatusUpdate instance + */ + ApprovalStatusUpdate.create = function create(properties) { + return new ApprovalStatusUpdate(properties); + }; + + /** + * Encodes the specified ApprovalStatusUpdate message. Does not implicitly {@link NotificationCenter.ApprovalStatusUpdate.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.notificationUid != null && Object.hasOwnProperty.call(message, "notificationUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.notificationUid); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); + 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 + * @memberof NotificationCenter.ApprovalStatusUpdate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.ApprovalStatusUpdate(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.notificationUid = reader.bytes(); + break; + } + case 2: { + message.status = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof NotificationCenter.ApprovalStatusUpdate + * @static + * @param {Object.} object Plain object + * @returns {NotificationCenter.ApprovalStatusUpdate} ApprovalStatusUpdate + */ + ApprovalStatusUpdate.fromObject = function fromObject(object) { + if (object instanceof $root.NotificationCenter.ApprovalStatusUpdate) + return object; + let message = new $root.NotificationCenter.ApprovalStatusUpdate(); + if (object.notificationUid != null) + if (typeof object.notificationUid === "string") + $util.base64.decode(object.notificationUid, message.notificationUid = $util.newBuffer($util.base64.length(object.notificationUid)), 0); + else if (object.notificationUid.length >= 0) + message.notificationUid = object.notificationUid; + switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; + case "NAS_UNSPECIFIED": + case 0: + message.status = 0; + break; + case "NAS_APPROVED": + case 1: + message.status = 1; + break; + case "NAS_DENIED": + case 2: + message.status = 2; + break; + case "NAS_LOST_APPROVAL_RIGHTS": + case 3: + message.status = 3; + break; + case "NAS_LOST_ACCESS": + case 4: + message.status = 4; + break; + } + return message; + }; + + /** + * Creates a plain object from an ApprovalStatusUpdate message. Also converts values to other types if specified. + * @function toObject + * @memberof NotificationCenter.ApprovalStatusUpdate + * @static + * @param {NotificationCenter.ApprovalStatusUpdate} message ApprovalStatusUpdate + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ApprovalStatusUpdate.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.notificationUid = ""; + else { + object.notificationUid = []; + if (options.bytes !== Array) + object.notificationUid = $util.newBuffer(object.notificationUid); + } + object.status = options.enums === String ? "NAS_UNSPECIFIED" : 0; + } + if (message.notificationUid != null && message.hasOwnProperty("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")) + object.status = options.enums === String ? $root.NotificationCenter.NotificationApprovalStatus[message.status] === undefined ? message.status : $root.NotificationCenter.NotificationApprovalStatus[message.status] : message.status; + return object; + }; + + /** + * Converts this ApprovalStatusUpdate to JSON. + * @function toJSON + * @memberof NotificationCenter.ApprovalStatusUpdate + * @instance + * @returns {Object.} JSON object + */ + ApprovalStatusUpdate.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ApprovalStatusUpdate + * @function getTypeUrl + * @memberof NotificationCenter.ApprovalStatusUpdate + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ApprovalStatusUpdate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/NotificationCenter.ApprovalStatusUpdate"; + }; + + return ApprovalStatusUpdate; + })(); + + NotificationCenter.ProcessMarkReadEventsRequest = (function() { + + /** + * Properties of a ProcessMarkReadEventsRequest. + * @memberof NotificationCenter + * @interface IProcessMarkReadEventsRequest + * @property {Array.|null} [readStatusUpdate] ProcessMarkReadEventsRequest readStatusUpdate + */ + + /** + * Constructs a new ProcessMarkReadEventsRequest. + * @memberof NotificationCenter + * @classdesc Represents a ProcessMarkReadEventsRequest. + * @implements IProcessMarkReadEventsRequest + * @constructor + * @param {NotificationCenter.IProcessMarkReadEventsRequest=} [properties] Properties to set + */ + function ProcessMarkReadEventsRequest(properties) { + this.readStatusUpdate = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProcessMarkReadEventsRequest readStatusUpdate. + * @member {Array.} readStatusUpdate + * @memberof NotificationCenter.ProcessMarkReadEventsRequest + * @instance + */ + ProcessMarkReadEventsRequest.prototype.readStatusUpdate = $util.emptyArray; + + /** + * Creates a new ProcessMarkReadEventsRequest instance using the specified properties. + * @function create + * @memberof NotificationCenter.ProcessMarkReadEventsRequest + * @static + * @param {NotificationCenter.IProcessMarkReadEventsRequest=} [properties] Properties to set + * @returns {NotificationCenter.ProcessMarkReadEventsRequest} ProcessMarkReadEventsRequest instance + */ + ProcessMarkReadEventsRequest.create = function create(properties) { + return new ProcessMarkReadEventsRequest(properties); + }; + + /** + * Encodes the specified ProcessMarkReadEventsRequest message. Does not implicitly {@link NotificationCenter.ProcessMarkReadEventsRequest.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.readStatusUpdate != null && message.readStatusUpdate.length) + for (let i = 0; i < message.readStatusUpdate.length; ++i) + $root.NotificationCenter.ReadStatusUpdate.encode(message.readStatusUpdate[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + 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 + * @memberof NotificationCenter.ProcessMarkReadEventsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.ProcessMarkReadEventsRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.readStatusUpdate && message.readStatusUpdate.length)) + message.readStatusUpdate = []; + message.readStatusUpdate.push($root.NotificationCenter.ReadStatusUpdate.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + 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 + * @memberof NotificationCenter.ProcessMarkReadEventsRequest + * @static + * @param {Object.} object Plain object + * @returns {NotificationCenter.ProcessMarkReadEventsRequest} ProcessMarkReadEventsRequest + */ + ProcessMarkReadEventsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.NotificationCenter.ProcessMarkReadEventsRequest) + return object; + let message = new $root.NotificationCenter.ProcessMarkReadEventsRequest(); + if (object.readStatusUpdate) { + if (!Array.isArray(object.readStatusUpdate)) + throw TypeError(".NotificationCenter.ProcessMarkReadEventsRequest.readStatusUpdate: array expected"); + message.readStatusUpdate = []; + for (let i = 0; i < object.readStatusUpdate.length; ++i) { + if (typeof object.readStatusUpdate[i] !== "object") + throw TypeError(".NotificationCenter.ProcessMarkReadEventsRequest.readStatusUpdate: object expected"); + message.readStatusUpdate[i] = $root.NotificationCenter.ReadStatusUpdate.fromObject(object.readStatusUpdate[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ProcessMarkReadEventsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof NotificationCenter.ProcessMarkReadEventsRequest + * @static + * @param {NotificationCenter.ProcessMarkReadEventsRequest} message ProcessMarkReadEventsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ProcessMarkReadEventsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.readStatusUpdate = []; + if (message.readStatusUpdate && message.readStatusUpdate.length) { + object.readStatusUpdate = []; + for (let j = 0; j < message.readStatusUpdate.length; ++j) + object.readStatusUpdate[j] = $root.NotificationCenter.ReadStatusUpdate.toObject(message.readStatusUpdate[j], options); + } + return object; + }; + + /** + * Converts this ProcessMarkReadEventsRequest to JSON. + * @function toJSON + * @memberof NotificationCenter.ProcessMarkReadEventsRequest + * @instance + * @returns {Object.} JSON object + */ + ProcessMarkReadEventsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ProcessMarkReadEventsRequest + * @function getTypeUrl + * @memberof NotificationCenter.ProcessMarkReadEventsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ProcessMarkReadEventsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/NotificationCenter.ProcessMarkReadEventsRequest"; + }; + + return ProcessMarkReadEventsRequest; + })(); + + NotificationCenter.NotificationSendRequest = (function() { + + /** + * Properties of a NotificationSendRequest. + * @memberof NotificationCenter + * @interface INotificationSendRequest + * @property {Array.|null} [recipients] NotificationSendRequest recipients + * @property {NotificationCenter.INotification|null} [notification] NotificationSendRequest notification + * @property {Array.|null} [clientTypeIDs] NotificationSendRequest clientTypeIDs + * @property {Array.|null} [deviceIDs] NotificationSendRequest deviceIDs + * @property {Uint8Array|null} [predefinedUid] NotificationSendRequest predefinedUid + */ + + /** + * Constructs a new NotificationSendRequest. + * @memberof NotificationCenter + * @classdesc Represents a NotificationSendRequest. + * @implements INotificationSendRequest + * @constructor + * @param {NotificationCenter.INotificationSendRequest=} [properties] Properties to set + */ + function NotificationSendRequest(properties) { + this.recipients = []; + this.clientTypeIDs = []; + this.deviceIDs = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NotificationSendRequest recipients. + * @member {Array.} recipients + * @memberof NotificationCenter.NotificationSendRequest + * @instance + */ + NotificationSendRequest.prototype.recipients = $util.emptyArray; + + /** + * NotificationSendRequest notification. + * @member {NotificationCenter.INotification|null|undefined} notification + * @memberof NotificationCenter.NotificationSendRequest + * @instance + */ + NotificationSendRequest.prototype.notification = null; + + /** + * NotificationSendRequest clientTypeIDs. + * @member {Array.} clientTypeIDs + * @memberof NotificationCenter.NotificationSendRequest + * @instance + */ + NotificationSendRequest.prototype.clientTypeIDs = $util.emptyArray; + + /** + * NotificationSendRequest deviceIDs. + * @member {Array.} deviceIDs + * @memberof NotificationCenter.NotificationSendRequest + * @instance + */ + NotificationSendRequest.prototype.deviceIDs = $util.emptyArray; + + /** + * NotificationSendRequest predefinedUid. + * @member {Uint8Array|null|undefined} predefinedUid + * @memberof NotificationCenter.NotificationSendRequest + * @instance + */ + NotificationSendRequest.prototype.predefinedUid = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * NotificationSendRequest _predefinedUid. + * @member {"predefinedUid"|undefined} _predefinedUid + * @memberof NotificationCenter.NotificationSendRequest + * @instance + */ + Object.defineProperty(NotificationSendRequest.prototype, "_predefinedUid", { + get: $util.oneOfGetter($oneOfFields = ["predefinedUid"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NotificationSendRequest instance using the specified properties. + * @function create + * @memberof NotificationCenter.NotificationSendRequest + * @static + * @param {NotificationCenter.INotificationSendRequest=} [properties] Properties to set + * @returns {NotificationCenter.NotificationSendRequest} NotificationSendRequest instance + */ + NotificationSendRequest.create = function create(properties) { + return new NotificationSendRequest(properties); + }; + + /** + * Encodes the specified NotificationSendRequest message. Does not implicitly {@link NotificationCenter.NotificationSendRequest.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recipients != null && message.recipients.length) + for (let i = 0; i < message.recipients.length; ++i) + $root.GraphSync.GraphSyncRef.encode(message.recipients[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.notification != null && Object.hasOwnProperty.call(message, "notification")) + $root.NotificationCenter.Notification.encode(message.notification, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.clientTypeIDs != null && message.clientTypeIDs.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (let i = 0; i < message.clientTypeIDs.length; ++i) + writer.int32(message.clientTypeIDs[i]); + writer.ldelim(); + } + if (message.deviceIDs != null && message.deviceIDs.length) { + writer.uint32(/* id 4, wireType 2 =*/34).fork(); + for (let i = 0; i < message.deviceIDs.length; ++i) + writer.int64(message.deviceIDs[i]); + writer.ldelim(); + } + if (message.predefinedUid != null && Object.hasOwnProperty.call(message, "predefinedUid")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.predefinedUid); + 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 + * @memberof NotificationCenter.NotificationSendRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationSendRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.recipients && message.recipients.length)) + message.recipients = []; + message.recipients.push($root.GraphSync.GraphSyncRef.decode(reader, reader.uint32())); + break; + } + case 2: { + message.notification = $root.NotificationCenter.Notification.decode(reader, reader.uint32()); + break; + } + case 3: { + if (!(message.clientTypeIDs && message.clientTypeIDs.length)) + message.clientTypeIDs = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.clientTypeIDs.push(reader.int32()); + } else + message.clientTypeIDs.push(reader.int32()); + break; + } + case 4: { + if (!(message.deviceIDs && message.deviceIDs.length)) + message.deviceIDs = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.deviceIDs.push(reader.int64()); + } else + message.deviceIDs.push(reader.int64()); + break; + } + case 5: { + message.predefinedUid = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + if (error) + return "recipients." + error; + } + } + if (message.notification != null && message.hasOwnProperty("notification")) { + let error = $root.NotificationCenter.Notification.verify(message.notification); + 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 + * @memberof NotificationCenter.NotificationSendRequest + * @static + * @param {Object.} object Plain object + * @returns {NotificationCenter.NotificationSendRequest} NotificationSendRequest + */ + NotificationSendRequest.fromObject = function fromObject(object) { + if (object instanceof $root.NotificationCenter.NotificationSendRequest) + return object; + let message = new $root.NotificationCenter.NotificationSendRequest(); + if (object.recipients) { + if (!Array.isArray(object.recipients)) + throw TypeError(".NotificationCenter.NotificationSendRequest.recipients: array expected"); + message.recipients = []; + for (let i = 0; i < object.recipients.length; ++i) { + if (typeof object.recipients[i] !== "object") + throw TypeError(".NotificationCenter.NotificationSendRequest.recipients: object expected"); + message.recipients[i] = $root.GraphSync.GraphSyncRef.fromObject(object.recipients[i]); + } + } + if (object.notification != null) { + if (typeof object.notification !== "object") + throw TypeError(".NotificationCenter.NotificationSendRequest.notification: object expected"); + message.notification = $root.NotificationCenter.Notification.fromObject(object.notification); + } + if (object.clientTypeIDs) { + if (!Array.isArray(object.clientTypeIDs)) + throw TypeError(".NotificationCenter.NotificationSendRequest.clientTypeIDs: array expected"); + message.clientTypeIDs = []; + for (let i = 0; i < object.clientTypeIDs.length; ++i) + message.clientTypeIDs[i] = object.clientTypeIDs[i] | 0; + } + if (object.deviceIDs) { + if (!Array.isArray(object.deviceIDs)) + throw TypeError(".NotificationCenter.NotificationSendRequest.deviceIDs: array expected"); + message.deviceIDs = []; + for (let i = 0; i < object.deviceIDs.length; ++i) + if ($util.Long) + (message.deviceIDs[i] = $util.Long.fromValue(object.deviceIDs[i])).unsigned = false; + else if (typeof object.deviceIDs[i] === "string") + message.deviceIDs[i] = parseInt(object.deviceIDs[i], 10); + else if (typeof object.deviceIDs[i] === "number") + message.deviceIDs[i] = object.deviceIDs[i]; + else if (typeof object.deviceIDs[i] === "object") + message.deviceIDs[i] = new $util.LongBits(object.deviceIDs[i].low >>> 0, object.deviceIDs[i].high >>> 0).toNumber(); + } + if (object.predefinedUid != null) + if (typeof object.predefinedUid === "string") + $util.base64.decode(object.predefinedUid, message.predefinedUid = $util.newBuffer($util.base64.length(object.predefinedUid)), 0); + else if (object.predefinedUid.length >= 0) + message.predefinedUid = object.predefinedUid; + return message; + }; + + /** + * Creates a plain object from a NotificationSendRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof NotificationCenter.NotificationSendRequest + * @static + * @param {NotificationCenter.NotificationSendRequest} message NotificationSendRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NotificationSendRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.recipients = []; + object.clientTypeIDs = []; + object.deviceIDs = []; + } + if (options.defaults) + object.notification = null; + if (message.recipients && message.recipients.length) { + object.recipients = []; + for (let j = 0; j < message.recipients.length; ++j) + object.recipients[j] = $root.GraphSync.GraphSyncRef.toObject(message.recipients[j], options); + } + if (message.notification != null && message.hasOwnProperty("notification")) + object.notification = $root.NotificationCenter.Notification.toObject(message.notification, options); + if (message.clientTypeIDs && message.clientTypeIDs.length) { + object.clientTypeIDs = []; + for (let j = 0; j < message.clientTypeIDs.length; ++j) + object.clientTypeIDs[j] = message.clientTypeIDs[j]; + } + if (message.deviceIDs && message.deviceIDs.length) { + object.deviceIDs = []; + for (let j = 0; j < message.deviceIDs.length; ++j) + if (typeof message.deviceIDs[j] === "number") + object.deviceIDs[j] = options.longs === String ? String(message.deviceIDs[j]) : message.deviceIDs[j]; + else + object.deviceIDs[j] = options.longs === String ? $util.Long.prototype.toString.call(message.deviceIDs[j]) : options.longs === Number ? new $util.LongBits(message.deviceIDs[j].low >>> 0, message.deviceIDs[j].high >>> 0).toNumber() : message.deviceIDs[j]; + } + if (message.predefinedUid != null && message.hasOwnProperty("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"; + } + return object; + }; + + /** + * Converts this NotificationSendRequest to JSON. + * @function toJSON + * @memberof NotificationCenter.NotificationSendRequest + * @instance + * @returns {Object.} JSON object + */ + NotificationSendRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NotificationSendRequest + * @function getTypeUrl + * @memberof NotificationCenter.NotificationSendRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NotificationSendRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/NotificationCenter.NotificationSendRequest"; + }; + + return NotificationSendRequest; + })(); + + NotificationCenter.NotificationsSendRequest = (function() { + + /** + * Properties of a NotificationsSendRequest. + * @memberof NotificationCenter + * @interface INotificationsSendRequest + * @property {Array.|null} [notifications] NotificationsSendRequest notifications + */ + + /** + * Constructs a new NotificationsSendRequest. + * @memberof NotificationCenter + * @classdesc Represents a NotificationsSendRequest. + * @implements INotificationsSendRequest + * @constructor + * @param {NotificationCenter.INotificationsSendRequest=} [properties] Properties to set + */ + function NotificationsSendRequest(properties) { + this.notifications = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NotificationsSendRequest notifications. + * @member {Array.} notifications + * @memberof NotificationCenter.NotificationsSendRequest + * @instance + */ + NotificationsSendRequest.prototype.notifications = $util.emptyArray; + + /** + * Creates a new NotificationsSendRequest instance using the specified properties. + * @function create + * @memberof NotificationCenter.NotificationsSendRequest + * @static + * @param {NotificationCenter.INotificationsSendRequest=} [properties] Properties to set + * @returns {NotificationCenter.NotificationsSendRequest} NotificationsSendRequest instance + */ + NotificationsSendRequest.create = function create(properties) { + return new NotificationsSendRequest(properties); + }; + + /** + * Encodes the specified NotificationsSendRequest message. Does not implicitly {@link NotificationCenter.NotificationsSendRequest.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.notifications != null && message.notifications.length) + for (let i = 0; i < message.notifications.length; ++i) + $root.NotificationCenter.NotificationSendRequest.encode(message.notifications[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + 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 + * @memberof NotificationCenter.NotificationsSendRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationsSendRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.notifications && message.notifications.length)) + message.notifications = []; + message.notifications.push($root.NotificationCenter.NotificationSendRequest.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + 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 + * @memberof NotificationCenter.NotificationsSendRequest + * @static + * @param {Object.} object Plain object + * @returns {NotificationCenter.NotificationsSendRequest} NotificationsSendRequest + */ + NotificationsSendRequest.fromObject = function fromObject(object) { + if (object instanceof $root.NotificationCenter.NotificationsSendRequest) + return object; + let message = new $root.NotificationCenter.NotificationsSendRequest(); + if (object.notifications) { + if (!Array.isArray(object.notifications)) + throw TypeError(".NotificationCenter.NotificationsSendRequest.notifications: array expected"); + message.notifications = []; + for (let i = 0; i < object.notifications.length; ++i) { + if (typeof object.notifications[i] !== "object") + throw TypeError(".NotificationCenter.NotificationsSendRequest.notifications: object expected"); + message.notifications[i] = $root.NotificationCenter.NotificationSendRequest.fromObject(object.notifications[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a NotificationsSendRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof NotificationCenter.NotificationsSendRequest + * @static + * @param {NotificationCenter.NotificationsSendRequest} message NotificationsSendRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NotificationsSendRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.notifications = []; + if (message.notifications && message.notifications.length) { + object.notifications = []; + for (let j = 0; j < message.notifications.length; ++j) + object.notifications[j] = $root.NotificationCenter.NotificationSendRequest.toObject(message.notifications[j], options); + } + return object; + }; + + /** + * Converts this NotificationsSendRequest to JSON. + * @function toJSON + * @memberof NotificationCenter.NotificationsSendRequest + * @instance + * @returns {Object.} JSON object + */ + NotificationsSendRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NotificationsSendRequest + * @function getTypeUrl + * @memberof NotificationCenter.NotificationsSendRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NotificationsSendRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/NotificationCenter.NotificationsSendRequest"; + }; + + return NotificationsSendRequest; + })(); + + NotificationCenter.NotificationSyncRequest = (function() { + + /** + * Properties of a NotificationSyncRequest. + * @memberof NotificationCenter + * @interface INotificationSyncRequest + * @property {number|Long|null} [syncPoint] NotificationSyncRequest syncPoint + */ + + /** + * Constructs a new NotificationSyncRequest. + * @memberof NotificationCenter + * @classdesc Represents a NotificationSyncRequest. + * @implements INotificationSyncRequest + * @constructor + * @param {NotificationCenter.INotificationSyncRequest=} [properties] Properties to set + */ + function NotificationSyncRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NotificationSyncRequest syncPoint. + * @member {number|Long} syncPoint + * @memberof NotificationCenter.NotificationSyncRequest + * @instance + */ + NotificationSyncRequest.prototype.syncPoint = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new NotificationSyncRequest instance using the specified properties. + * @function create + * @memberof NotificationCenter.NotificationSyncRequest + * @static + * @param {NotificationCenter.INotificationSyncRequest=} [properties] Properties to set + * @returns {NotificationCenter.NotificationSyncRequest} NotificationSyncRequest instance + */ + NotificationSyncRequest.create = function create(properties) { + return new NotificationSyncRequest(properties); + }; + + /** + * Encodes the specified NotificationSyncRequest message. Does not implicitly {@link NotificationCenter.NotificationSyncRequest.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.syncPoint != null && Object.hasOwnProperty.call(message, "syncPoint")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.syncPoint); + 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 + * @memberof NotificationCenter.NotificationSyncRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationSyncRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.syncPoint = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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"; + return null; + }; + + /** + * Creates a NotificationSyncRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof NotificationCenter.NotificationSyncRequest + * @static + * @param {Object.} object Plain object + * @returns {NotificationCenter.NotificationSyncRequest} NotificationSyncRequest + */ + NotificationSyncRequest.fromObject = function fromObject(object) { + if (object instanceof $root.NotificationCenter.NotificationSyncRequest) + return object; + let message = new $root.NotificationCenter.NotificationSyncRequest(); + if (object.syncPoint != null) + if ($util.Long) + (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; + else if (typeof object.syncPoint === "string") + message.syncPoint = parseInt(object.syncPoint, 10); + else if (typeof object.syncPoint === "number") + message.syncPoint = object.syncPoint; + else if (typeof object.syncPoint === "object") + message.syncPoint = new $util.LongBits(object.syncPoint.low >>> 0, object.syncPoint.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a NotificationSyncRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof NotificationCenter.NotificationSyncRequest + * @static + * @param {NotificationCenter.NotificationSyncRequest} message NotificationSyncRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NotificationSyncRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.syncPoint = options.longs === String ? "0" : 0; + if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) + 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; + return object; + }; + + /** + * Converts this NotificationSyncRequest to JSON. + * @function toJSON + * @memberof NotificationCenter.NotificationSyncRequest + * @instance + * @returns {Object.} JSON object + */ + NotificationSyncRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NotificationSyncRequest + * @function getTypeUrl + * @memberof NotificationCenter.NotificationSyncRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NotificationSyncRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/NotificationCenter.NotificationSyncRequest"; + }; + + return NotificationSyncRequest; + })(); + + NotificationCenter.SentNotification = (function() { + + /** + * Properties of a SentNotification. + * @memberof NotificationCenter + * @interface ISentNotification + * @property {number|null} [user] SentNotification user + * @property {Uint8Array|null} [notificationUid] SentNotification notificationUid + */ + + /** + * Constructs a new SentNotification. + * @memberof NotificationCenter + * @classdesc Represents a SentNotification. + * @implements ISentNotification + * @constructor + * @param {NotificationCenter.ISentNotification=} [properties] Properties to set + */ + function SentNotification(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SentNotification user. + * @member {number} user + * @memberof NotificationCenter.SentNotification + * @instance + */ + SentNotification.prototype.user = 0; + + /** + * SentNotification notificationUid. + * @member {Uint8Array} notificationUid + * @memberof NotificationCenter.SentNotification + * @instance + */ + SentNotification.prototype.notificationUid = $util.newBuffer([]); + + /** + * Creates a new SentNotification instance using the specified properties. + * @function create + * @memberof NotificationCenter.SentNotification + * @static + * @param {NotificationCenter.ISentNotification=} [properties] Properties to set + * @returns {NotificationCenter.SentNotification} SentNotification instance + */ + SentNotification.create = function create(properties) { + return new SentNotification(properties); + }; + + /** + * Encodes the specified SentNotification message. Does not implicitly {@link NotificationCenter.SentNotification.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.user != null && Object.hasOwnProperty.call(message, "user")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.user); + if (message.notificationUid != null && Object.hasOwnProperty.call(message, "notificationUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.notificationUid); + 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 + * @memberof NotificationCenter.SentNotification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.SentNotification(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.user = reader.int32(); + break; + } + case 2: { + message.notificationUid = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof NotificationCenter.SentNotification + * @static + * @param {Object.} object Plain object + * @returns {NotificationCenter.SentNotification} SentNotification + */ + SentNotification.fromObject = function fromObject(object) { + if (object instanceof $root.NotificationCenter.SentNotification) + return object; + let message = new $root.NotificationCenter.SentNotification(); + if (object.user != null) + message.user = object.user | 0; + if (object.notificationUid != null) + if (typeof object.notificationUid === "string") + $util.base64.decode(object.notificationUid, message.notificationUid = $util.newBuffer($util.base64.length(object.notificationUid)), 0); + else if (object.notificationUid.length >= 0) + message.notificationUid = object.notificationUid; + return message; + }; + + /** + * Creates a plain object from a SentNotification message. Also converts values to other types if specified. + * @function toObject + * @memberof NotificationCenter.SentNotification + * @static + * @param {NotificationCenter.SentNotification} message SentNotification + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SentNotification.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.user = 0; + if (options.bytes === String) + object.notificationUid = ""; + else { + object.notificationUid = []; + if (options.bytes !== Array) + object.notificationUid = $util.newBuffer(object.notificationUid); + } + } + if (message.user != null && message.hasOwnProperty("user")) + object.user = message.user; + if (message.notificationUid != null && message.hasOwnProperty("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; + }; + + /** + * Converts this SentNotification to JSON. + * @function toJSON + * @memberof NotificationCenter.SentNotification + * @instance + * @returns {Object.} JSON object + */ + SentNotification.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SentNotification + * @function getTypeUrl + * @memberof NotificationCenter.SentNotification + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SentNotification.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/NotificationCenter.SentNotification"; + }; + + return SentNotification; + })(); + + NotificationCenter.NotificationsApprovalStatusUpdateRequest = (function() { + + /** + * Properties of a NotificationsApprovalStatusUpdateRequest. + * @memberof NotificationCenter + * @interface INotificationsApprovalStatusUpdateRequest + * @property {NotificationCenter.NotificationApprovalStatus|null} [status] NotificationsApprovalStatusUpdateRequest status + * @property {Array.|null} [notifications] NotificationsApprovalStatusUpdateRequest notifications + */ + + /** + * Constructs a new NotificationsApprovalStatusUpdateRequest. + * @memberof NotificationCenter + * @classdesc Represents a NotificationsApprovalStatusUpdateRequest. + * @implements INotificationsApprovalStatusUpdateRequest + * @constructor + * @param {NotificationCenter.INotificationsApprovalStatusUpdateRequest=} [properties] Properties to set + */ + function NotificationsApprovalStatusUpdateRequest(properties) { + this.notifications = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NotificationsApprovalStatusUpdateRequest status. + * @member {NotificationCenter.NotificationApprovalStatus} status + * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest + * @instance + */ + NotificationsApprovalStatusUpdateRequest.prototype.status = 0; + + /** + * NotificationsApprovalStatusUpdateRequest notifications. + * @member {Array.} notifications + * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest + * @instance + */ + NotificationsApprovalStatusUpdateRequest.prototype.notifications = $util.emptyArray; + + /** + * Creates a new NotificationsApprovalStatusUpdateRequest instance using the specified properties. + * @function create + * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest + * @static + * @param {NotificationCenter.INotificationsApprovalStatusUpdateRequest=} [properties] Properties to set + * @returns {NotificationCenter.NotificationsApprovalStatusUpdateRequest} NotificationsApprovalStatusUpdateRequest instance + */ + NotificationsApprovalStatusUpdateRequest.create = function create(properties) { + return new NotificationsApprovalStatusUpdateRequest(properties); + }; + + /** + * Encodes the specified NotificationsApprovalStatusUpdateRequest message. Does not implicitly {@link NotificationCenter.NotificationsApprovalStatusUpdateRequest.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status); + if (message.notifications != null && message.notifications.length) + for (let i = 0; i < message.notifications.length; ++i) + $root.NotificationCenter.SentNotification.encode(message.notifications[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + 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 + * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationsApprovalStatusUpdateRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.status = reader.int32(); + break; + } + case 2: { + if (!(message.notifications && message.notifications.length)) + message.notifications = []; + message.notifications.push($root.NotificationCenter.SentNotification.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.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]); + 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 + * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest + * @static + * @param {Object.} object Plain object + * @returns {NotificationCenter.NotificationsApprovalStatusUpdateRequest} NotificationsApprovalStatusUpdateRequest + */ + NotificationsApprovalStatusUpdateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.NotificationCenter.NotificationsApprovalStatusUpdateRequest) + return object; + let message = new $root.NotificationCenter.NotificationsApprovalStatusUpdateRequest(); + switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; + case "NAS_UNSPECIFIED": + case 0: + message.status = 0; + break; + case "NAS_APPROVED": + case 1: + message.status = 1; + break; + case "NAS_DENIED": + case 2: + message.status = 2; + break; + case "NAS_LOST_APPROVAL_RIGHTS": + case 3: + message.status = 3; + break; + case "NAS_LOST_ACCESS": + case 4: + message.status = 4; + break; + } + if (object.notifications) { + if (!Array.isArray(object.notifications)) + throw TypeError(".NotificationCenter.NotificationsApprovalStatusUpdateRequest.notifications: array expected"); + message.notifications = []; + for (let i = 0; i < object.notifications.length; ++i) { + if (typeof object.notifications[i] !== "object") + throw TypeError(".NotificationCenter.NotificationsApprovalStatusUpdateRequest.notifications: object expected"); + message.notifications[i] = $root.NotificationCenter.SentNotification.fromObject(object.notifications[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a NotificationsApprovalStatusUpdateRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest + * @static + * @param {NotificationCenter.NotificationsApprovalStatusUpdateRequest} message NotificationsApprovalStatusUpdateRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NotificationsApprovalStatusUpdateRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.notifications = []; + if (options.defaults) + object.status = options.enums === String ? "NAS_UNSPECIFIED" : 0; + if (message.status != null && message.hasOwnProperty("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 = []; + for (let j = 0; j < message.notifications.length; ++j) + object.notifications[j] = $root.NotificationCenter.SentNotification.toObject(message.notifications[j], options); + } + return object; + }; + + /** + * Converts this NotificationsApprovalStatusUpdateRequest to JSON. + * @function toJSON + * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest + * @instance + * @returns {Object.} JSON object + */ + NotificationsApprovalStatusUpdateRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NotificationsApprovalStatusUpdateRequest + * @function getTypeUrl + * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NotificationsApprovalStatusUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/NotificationCenter.NotificationsApprovalStatusUpdateRequest"; + }; + + return NotificationsApprovalStatusUpdateRequest; + })(); + + return NotificationCenter; +})(); + +export const GraphSync = $root.GraphSync = (() => { + + /** + * Namespace GraphSync. + * @exports GraphSync + * @namespace + */ + const GraphSync = {}; + + /** + * RefType enum. + * @name GraphSync.RefType + * @enum {number} + * @property {number} RFT_GENERAL=0 RFT_GENERAL value + * @property {number} RFT_USER=1 RFT_USER value + * @property {number} RFT_DEVICE=2 RFT_DEVICE value + * @property {number} RFT_REC=3 RFT_REC value + * @property {number} RFT_FOLDER=4 RFT_FOLDER value + * @property {number} RFT_TEAM=5 RFT_TEAM value + * @property {number} RFT_ENTERPRISE=6 RFT_ENTERPRISE value + * @property {number} RFT_PAM_DIRECTORY=7 RFT_PAM_DIRECTORY value + * @property {number} RFT_PAM_MACHINE=8 RFT_PAM_MACHINE value + * @property {number} RFT_PAM_DATABASE=9 RFT_PAM_DATABASE value + * @property {number} RFT_PAM_USER=10 RFT_PAM_USER value + * @property {number} RFT_PAM_NETWORK=11 RFT_PAM_NETWORK value + * @property {number} RFT_PAM_BROWSER=12 RFT_PAM_BROWSER value + * @property {number} RFT_CONNECTION=13 RFT_CONNECTION value + * @property {number} RFT_WORKFLOW=14 RFT_WORKFLOW value + * @property {number} RFT_NOTIFICATION=15 RFT_NOTIFICATION value + * @property {number} RFT_USER_INFO=16 RFT_USER_INFO value + * @property {number} RFT_TEAM_INFO=17 RFT_TEAM_INFO value + * @property {number} RFT_ROLE=18 RFT_ROLE value + */ + GraphSync.RefType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RFT_GENERAL"] = 0; + values[valuesById[1] = "RFT_USER"] = 1; + values[valuesById[2] = "RFT_DEVICE"] = 2; + values[valuesById[3] = "RFT_REC"] = 3; + values[valuesById[4] = "RFT_FOLDER"] = 4; + values[valuesById[5] = "RFT_TEAM"] = 5; + values[valuesById[6] = "RFT_ENTERPRISE"] = 6; + values[valuesById[7] = "RFT_PAM_DIRECTORY"] = 7; + values[valuesById[8] = "RFT_PAM_MACHINE"] = 8; + values[valuesById[9] = "RFT_PAM_DATABASE"] = 9; + values[valuesById[10] = "RFT_PAM_USER"] = 10; + values[valuesById[11] = "RFT_PAM_NETWORK"] = 11; + values[valuesById[12] = "RFT_PAM_BROWSER"] = 12; + values[valuesById[13] = "RFT_CONNECTION"] = 13; + values[valuesById[14] = "RFT_WORKFLOW"] = 14; + values[valuesById[15] = "RFT_NOTIFICATION"] = 15; + values[valuesById[16] = "RFT_USER_INFO"] = 16; + values[valuesById[17] = "RFT_TEAM_INFO"] = 17; + values[valuesById[18] = "RFT_ROLE"] = 18; + return values; + })(); + + GraphSync.GraphSyncRef = (function() { + + /** + * Properties of a GraphSyncRef. + * @memberof GraphSync + * @interface IGraphSyncRef + * @property {GraphSync.RefType|null} [type] GraphSyncRef type + * @property {Uint8Array|null} [value] GraphSyncRef value + * @property {string|null} [name] GraphSyncRef name + */ + + /** + * Constructs a new GraphSyncRef. + * @memberof GraphSync + * @classdesc Represents a GraphSyncRef. + * @implements IGraphSyncRef + * @constructor + * @param {GraphSync.IGraphSyncRef=} [properties] Properties to set + */ + function GraphSyncRef(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GraphSyncRef type. + * @member {GraphSync.RefType} type + * @memberof GraphSync.GraphSyncRef + * @instance + */ + GraphSyncRef.prototype.type = 0; + + /** + * GraphSyncRef value. + * @member {Uint8Array} value + * @memberof GraphSync.GraphSyncRef + * @instance + */ + GraphSyncRef.prototype.value = $util.newBuffer([]); + + /** + * GraphSyncRef name. + * @member {string} name + * @memberof GraphSync.GraphSyncRef + * @instance + */ + GraphSyncRef.prototype.name = ""; + + /** + * Creates a new GraphSyncRef instance using the specified properties. + * @function create + * @memberof GraphSync.GraphSyncRef + * @static + * @param {GraphSync.IGraphSyncRef=} [properties] Properties to set + * @returns {GraphSync.GraphSyncRef} GraphSyncRef instance + */ + GraphSyncRef.create = function create(properties) { + return new GraphSyncRef(properties); + }; + + /** + * Encodes the specified GraphSyncRef message. Does not implicitly {@link GraphSync.GraphSyncRef.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + 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 + * @memberof GraphSync.GraphSyncRef + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncRef(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 2: { + message.value = reader.bytes(); + break; + } + case 3: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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: + 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 + * @memberof GraphSync.GraphSyncRef + * @static + * @param {Object.} object Plain object + * @returns {GraphSync.GraphSyncRef} GraphSyncRef + */ + GraphSyncRef.fromObject = function fromObject(object) { + if (object instanceof $root.GraphSync.GraphSyncRef) + return object; + let message = new $root.GraphSync.GraphSyncRef(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "RFT_GENERAL": + case 0: + message.type = 0; + break; + case "RFT_USER": + case 1: + message.type = 1; + break; + case "RFT_DEVICE": + case 2: + message.type = 2; + break; + case "RFT_REC": + case 3: + message.type = 3; + break; + case "RFT_FOLDER": + case 4: + message.type = 4; + break; + case "RFT_TEAM": + case 5: + message.type = 5; + break; + case "RFT_ENTERPRISE": + case 6: + message.type = 6; + break; + case "RFT_PAM_DIRECTORY": + case 7: + message.type = 7; + break; + case "RFT_PAM_MACHINE": + case 8: + message.type = 8; + break; + case "RFT_PAM_DATABASE": + case 9: + message.type = 9; + break; + case "RFT_PAM_USER": + case 10: + message.type = 10; + break; + case "RFT_PAM_NETWORK": + case 11: + message.type = 11; + break; + case "RFT_PAM_BROWSER": + case 12: + message.type = 12; + break; + case "RFT_CONNECTION": + case 13: + message.type = 13; + break; + case "RFT_WORKFLOW": + case 14: + message.type = 14; + break; + case "RFT_NOTIFICATION": + case 15: + message.type = 15; + break; + case "RFT_USER_INFO": + case 16: + message.type = 16; + break; + case "RFT_TEAM_INFO": + case 17: + message.type = 17; + break; + case "RFT_ROLE": + case 18: + message.type = 18; + break; + } + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length >= 0) + message.value = object.value; + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GraphSyncRef message. Also converts values to other types if specified. + * @function toObject + * @memberof GraphSync.GraphSyncRef + * @static + * @param {GraphSync.GraphSyncRef} message GraphSyncRef + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GraphSyncRef.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.type = options.enums === String ? "RFT_GENERAL" : 0; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + object.name = ""; + } + if (message.type != null && message.hasOwnProperty("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")) + 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")) + object.name = message.name; + return object; + }; + + /** + * Converts this GraphSyncRef to JSON. + * @function toJSON + * @memberof GraphSync.GraphSyncRef + * @instance + * @returns {Object.} JSON object + */ + GraphSyncRef.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GraphSyncRef + * @function getTypeUrl + * @memberof GraphSync.GraphSyncRef + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GraphSyncRef.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/GraphSync.GraphSyncRef"; + }; + + return GraphSyncRef; + })(); + + /** + * GraphSyncDataType enum. + * @name GraphSync.GraphSyncDataType + * @enum {number} + * @property {number} GSE_DATA=0 GSE_DATA value + * @property {number} GSE_KEY=1 GSE_KEY value + * @property {number} GSE_LINK=2 GSE_LINK value + * @property {number} GSE_ACL=3 GSE_ACL value + * @property {number} GSE_DELETION=4 GSE_DELETION value + */ + GraphSync.GraphSyncDataType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GSE_DATA"] = 0; + values[valuesById[1] = "GSE_KEY"] = 1; + values[valuesById[2] = "GSE_LINK"] = 2; + values[valuesById[3] = "GSE_ACL"] = 3; + values[valuesById[4] = "GSE_DELETION"] = 4; + return values; + })(); + + /** + * GraphSyncActorType enum. + * @name GraphSync.GraphSyncActorType + * @enum {number} + * @property {number} GSA_USER=0 GSA_USER value + * @property {number} GSA_SERVICE=1 GSA_SERVICE value + * @property {number} GSA_PAM_GATEWAY=2 GSA_PAM_GATEWAY value + */ + GraphSync.GraphSyncActorType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GSA_USER"] = 0; + values[valuesById[1] = "GSA_SERVICE"] = 1; + values[valuesById[2] = "GSA_PAM_GATEWAY"] = 2; + return values; + })(); + + GraphSync.GraphSyncActor = (function() { + + /** + * Properties of a GraphSyncActor. + * @memberof GraphSync + * @interface IGraphSyncActor + * @property {GraphSync.GraphSyncActorType|null} [type] GraphSyncActor type + * @property {Uint8Array|null} [id] GraphSyncActor id + * @property {string|null} [name] GraphSyncActor name + * @property {Uint8Array|null} [effectiveUserId] GraphSyncActor effectiveUserId + */ + + /** + * Constructs a new GraphSyncActor. + * @memberof GraphSync + * @classdesc Represents a GraphSyncActor. + * @implements IGraphSyncActor + * @constructor + * @param {GraphSync.IGraphSyncActor=} [properties] Properties to set + */ + function GraphSyncActor(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GraphSyncActor type. + * @member {GraphSync.GraphSyncActorType} type + * @memberof GraphSync.GraphSyncActor + * @instance + */ + GraphSyncActor.prototype.type = 0; + + /** + * GraphSyncActor id. + * @member {Uint8Array} id + * @memberof GraphSync.GraphSyncActor + * @instance + */ + GraphSyncActor.prototype.id = $util.newBuffer([]); + + /** + * GraphSyncActor name. + * @member {string} name + * @memberof GraphSync.GraphSyncActor + * @instance + */ + GraphSyncActor.prototype.name = ""; + + /** + * GraphSyncActor effectiveUserId. + * @member {Uint8Array} effectiveUserId + * @memberof GraphSync.GraphSyncActor + * @instance + */ + GraphSyncActor.prototype.effectiveUserId = $util.newBuffer([]); + + /** + * Creates a new GraphSyncActor instance using the specified properties. + * @function create + * @memberof GraphSync.GraphSyncActor + * @static + * @param {GraphSync.IGraphSyncActor=} [properties] Properties to set + * @returns {GraphSync.GraphSyncActor} GraphSyncActor instance + */ + GraphSyncActor.create = function create(properties) { + return new GraphSyncActor(properties); + }; + + /** + * Encodes the specified GraphSyncActor message. Does not implicitly {@link GraphSync.GraphSyncActor.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.id); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + if (message.effectiveUserId != null && Object.hasOwnProperty.call(message, "effectiveUserId")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.effectiveUserId); + 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 + * @memberof GraphSync.GraphSyncActor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncActor(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 2: { + message.id = reader.bytes(); + break; + } + case 3: { + message.name = reader.string(); + break; + } + case 4: { + message.effectiveUserId = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof GraphSync.GraphSyncActor + * @static + * @param {Object.} object Plain object + * @returns {GraphSync.GraphSyncActor} GraphSyncActor + */ + GraphSyncActor.fromObject = function fromObject(object) { + if (object instanceof $root.GraphSync.GraphSyncActor) + return object; + let message = new $root.GraphSync.GraphSyncActor(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "GSA_USER": + case 0: + message.type = 0; + break; + case "GSA_SERVICE": + case 1: + message.type = 1; + break; + case "GSA_PAM_GATEWAY": + case 2: + message.type = 2; + break; + } + if (object.id != null) + if (typeof object.id === "string") + $util.base64.decode(object.id, message.id = $util.newBuffer($util.base64.length(object.id)), 0); + else if (object.id.length >= 0) + message.id = object.id; + if (object.name != null) + message.name = String(object.name); + if (object.effectiveUserId != null) + if (typeof object.effectiveUserId === "string") + $util.base64.decode(object.effectiveUserId, message.effectiveUserId = $util.newBuffer($util.base64.length(object.effectiveUserId)), 0); + else if (object.effectiveUserId.length >= 0) + message.effectiveUserId = object.effectiveUserId; + return message; + }; + + /** + * Creates a plain object from a GraphSyncActor message. Also converts values to other types if specified. + * @function toObject + * @memberof GraphSync.GraphSyncActor + * @static + * @param {GraphSync.GraphSyncActor} message GraphSyncActor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GraphSyncActor.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.type = options.enums === String ? "GSA_USER" : 0; + if (options.bytes === String) + object.id = ""; + else { + object.id = []; + if (options.bytes !== Array) + object.id = $util.newBuffer(object.id); + } + object.name = ""; + if (options.bytes === String) + object.effectiveUserId = ""; + else { + object.effectiveUserId = []; + if (options.bytes !== Array) + object.effectiveUserId = $util.newBuffer(object.effectiveUserId); + } + } + if (message.type != null && message.hasOwnProperty("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")) + 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")) + object.name = message.name; + if (message.effectiveUserId != null && message.hasOwnProperty("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; + }; + + /** + * Converts this GraphSyncActor to JSON. + * @function toJSON + * @memberof GraphSync.GraphSyncActor + * @instance + * @returns {Object.} JSON object + */ + GraphSyncActor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GraphSyncActor + * @function getTypeUrl + * @memberof GraphSync.GraphSyncActor + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GraphSyncActor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/GraphSync.GraphSyncActor"; + }; + + return GraphSyncActor; + })(); + + GraphSync.GraphSyncData = (function() { + + /** + * Properties of a GraphSyncData. + * @memberof GraphSync + * @interface IGraphSyncData + * @property {GraphSync.GraphSyncDataType|null} [type] GraphSyncData type + * @property {GraphSync.IGraphSyncRef|null} [ref] GraphSyncData ref + * @property {GraphSync.IGraphSyncRef|null} [parentRef] GraphSyncData parentRef + * @property {Uint8Array|null} [content] GraphSyncData content + * @property {string|null} [path] GraphSyncData path + */ + + /** + * Constructs a new GraphSyncData. + * @memberof GraphSync + * @classdesc Represents a GraphSyncData. + * @implements IGraphSyncData + * @constructor + * @param {GraphSync.IGraphSyncData=} [properties] Properties to set + */ + function GraphSyncData(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GraphSyncData type. + * @member {GraphSync.GraphSyncDataType} type + * @memberof GraphSync.GraphSyncData + * @instance + */ + GraphSyncData.prototype.type = 0; + + /** + * GraphSyncData ref. + * @member {GraphSync.IGraphSyncRef|null|undefined} ref + * @memberof GraphSync.GraphSyncData + * @instance + */ + GraphSyncData.prototype.ref = null; + + /** + * GraphSyncData parentRef. + * @member {GraphSync.IGraphSyncRef|null|undefined} parentRef + * @memberof GraphSync.GraphSyncData + * @instance + */ + GraphSyncData.prototype.parentRef = null; + + /** + * GraphSyncData content. + * @member {Uint8Array} content + * @memberof GraphSync.GraphSyncData + * @instance + */ + GraphSyncData.prototype.content = $util.newBuffer([]); + + /** + * GraphSyncData path. + * @member {string} path + * @memberof GraphSync.GraphSyncData + * @instance + */ + GraphSyncData.prototype.path = ""; + + /** + * Creates a new GraphSyncData instance using the specified properties. + * @function create + * @memberof GraphSync.GraphSyncData + * @static + * @param {GraphSync.IGraphSyncData=} [properties] Properties to set + * @returns {GraphSync.GraphSyncData} GraphSyncData instance + */ + GraphSyncData.create = function create(properties) { + return new GraphSyncData(properties); + }; + + /** + * Encodes the specified GraphSyncData message. Does not implicitly {@link GraphSync.GraphSyncData.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.ref != null && Object.hasOwnProperty.call(message, "ref")) + $root.GraphSync.GraphSyncRef.encode(message.ref, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parentRef != null && Object.hasOwnProperty.call(message, "parentRef")) + $root.GraphSync.GraphSyncRef.encode(message.parentRef, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.content); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.path); + 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 + * @memberof GraphSync.GraphSyncData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncData(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 2: { + message.ref = $root.GraphSync.GraphSyncRef.decode(reader, reader.uint32()); + break; + } + case 3: { + message.parentRef = $root.GraphSync.GraphSyncRef.decode(reader, reader.uint32()); + break; + } + case 4: { + message.content = reader.bytes(); + break; + } + case 5: { + message.path = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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: + break; + } + if (message.ref != null && message.hasOwnProperty("ref")) { + let error = $root.GraphSync.GraphSyncRef.verify(message.ref); + if (error) + return "ref." + error; + } + if (message.parentRef != null && message.hasOwnProperty("parentRef")) { + let error = $root.GraphSync.GraphSyncRef.verify(message.parentRef); + 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 + * @memberof GraphSync.GraphSyncData + * @static + * @param {Object.} object Plain object + * @returns {GraphSync.GraphSyncData} GraphSyncData + */ + GraphSyncData.fromObject = function fromObject(object) { + if (object instanceof $root.GraphSync.GraphSyncData) + return object; + let message = new $root.GraphSync.GraphSyncData(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "GSE_DATA": + case 0: + message.type = 0; + break; + case "GSE_KEY": + case 1: + message.type = 1; + break; + case "GSE_LINK": + case 2: + message.type = 2; + break; + case "GSE_ACL": + case 3: + message.type = 3; + break; + case "GSE_DELETION": + case 4: + message.type = 4; + break; + } + if (object.ref != null) { + if (typeof object.ref !== "object") + throw TypeError(".GraphSync.GraphSyncData.ref: object expected"); + message.ref = $root.GraphSync.GraphSyncRef.fromObject(object.ref); + } + if (object.parentRef != null) { + if (typeof object.parentRef !== "object") + throw TypeError(".GraphSync.GraphSyncData.parentRef: object expected"); + message.parentRef = $root.GraphSync.GraphSyncRef.fromObject(object.parentRef); + } + if (object.content != null) + if (typeof object.content === "string") + $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); + else if (object.content.length >= 0) + message.content = object.content; + if (object.path != null) + message.path = String(object.path); + return message; + }; + + /** + * Creates a plain object from a GraphSyncData message. Also converts values to other types if specified. + * @function toObject + * @memberof GraphSync.GraphSyncData + * @static + * @param {GraphSync.GraphSyncData} message GraphSyncData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GraphSyncData.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.type = options.enums === String ? "GSE_DATA" : 0; + object.ref = null; + object.parentRef = null; + if (options.bytes === String) + object.content = ""; + else { + object.content = []; + if (options.bytes !== Array) + object.content = $util.newBuffer(object.content); + } + object.path = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.GraphSync.GraphSyncDataType[message.type] === undefined ? message.type : $root.GraphSync.GraphSyncDataType[message.type] : message.type; + if (message.ref != null && message.hasOwnProperty("ref")) + object.ref = $root.GraphSync.GraphSyncRef.toObject(message.ref, options); + if (message.parentRef != null && message.hasOwnProperty("parentRef")) + object.parentRef = $root.GraphSync.GraphSyncRef.toObject(message.parentRef, options); + if (message.content != null && message.hasOwnProperty("content")) + object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + return object; + }; + + /** + * Converts this GraphSyncData to JSON. + * @function toJSON + * @memberof GraphSync.GraphSyncData + * @instance + * @returns {Object.} JSON object + */ + GraphSyncData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GraphSyncData + * @function getTypeUrl + * @memberof GraphSync.GraphSyncData + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GraphSyncData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/GraphSync.GraphSyncData"; + }; + + return GraphSyncData; + })(); + + GraphSync.GraphSyncDataPlus = (function() { + + /** + * Properties of a GraphSyncDataPlus. + * @memberof GraphSync + * @interface IGraphSyncDataPlus + * @property {GraphSync.IGraphSyncData|null} [data] GraphSyncDataPlus data + * @property {number|Long|null} [timestamp] GraphSyncDataPlus timestamp + * @property {GraphSync.IGraphSyncActor|null} [actor] GraphSyncDataPlus actor + */ + + /** + * Constructs a new GraphSyncDataPlus. + * @memberof GraphSync + * @classdesc Represents a GraphSyncDataPlus. + * @implements IGraphSyncDataPlus + * @constructor + * @param {GraphSync.IGraphSyncDataPlus=} [properties] Properties to set + */ + function GraphSyncDataPlus(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GraphSyncDataPlus data. + * @member {GraphSync.IGraphSyncData|null|undefined} data + * @memberof GraphSync.GraphSyncDataPlus + * @instance + */ + GraphSyncDataPlus.prototype.data = null; + + /** + * GraphSyncDataPlus timestamp. + * @member {number|Long} timestamp + * @memberof GraphSync.GraphSyncDataPlus + * @instance + */ + GraphSyncDataPlus.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * GraphSyncDataPlus actor. + * @member {GraphSync.IGraphSyncActor|null|undefined} actor + * @memberof GraphSync.GraphSyncDataPlus + * @instance + */ + GraphSyncDataPlus.prototype.actor = null; + + /** + * Creates a new GraphSyncDataPlus instance using the specified properties. + * @function create + * @memberof GraphSync.GraphSyncDataPlus + * @static + * @param {GraphSync.IGraphSyncDataPlus=} [properties] Properties to set + * @returns {GraphSync.GraphSyncDataPlus} GraphSyncDataPlus instance + */ + GraphSyncDataPlus.create = function create(properties) { + return new GraphSyncDataPlus(properties); + }; + + /** + * Encodes the specified GraphSyncDataPlus message. Does not implicitly {@link GraphSync.GraphSyncDataPlus.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + $root.GraphSync.GraphSyncData.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.timestamp); + if (message.actor != null && Object.hasOwnProperty.call(message, "actor")) + $root.GraphSync.GraphSyncActor.encode(message.actor, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + 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 + * @memberof GraphSync.GraphSyncDataPlus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncDataPlus(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.data = $root.GraphSync.GraphSyncData.decode(reader, reader.uint32()); + break; + } + case 2: { + message.timestamp = reader.int64(); + break; + } + case 3: { + message.actor = $root.GraphSync.GraphSyncActor.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.data != null && message.hasOwnProperty("data")) { + let error = $root.GraphSync.GraphSyncData.verify(message.data); + 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); + 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 + * @memberof GraphSync.GraphSyncDataPlus + * @static + * @param {Object.} object Plain object + * @returns {GraphSync.GraphSyncDataPlus} GraphSyncDataPlus + */ + GraphSyncDataPlus.fromObject = function fromObject(object) { + if (object instanceof $root.GraphSync.GraphSyncDataPlus) + return object; + let message = new $root.GraphSync.GraphSyncDataPlus(); + if (object.data != null) { + if (typeof object.data !== "object") + throw TypeError(".GraphSync.GraphSyncDataPlus.data: object expected"); + message.data = $root.GraphSync.GraphSyncData.fromObject(object.data); + } + if (object.timestamp != null) + if ($util.Long) + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = false; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + 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") + throw TypeError(".GraphSync.GraphSyncDataPlus.actor: object expected"); + message.actor = $root.GraphSync.GraphSyncActor.fromObject(object.actor); + } + return message; + }; + + /** + * Creates a plain object from a GraphSyncDataPlus message. Also converts values to other types if specified. + * @function toObject + * @memberof GraphSync.GraphSyncDataPlus + * @static + * @param {GraphSync.GraphSyncDataPlus} message GraphSyncDataPlus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GraphSyncDataPlus.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.data = null; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestamp = options.longs === String ? "0" : 0; + object.actor = null; + } + if (message.data != null && message.hasOwnProperty("data")) + object.data = $root.GraphSync.GraphSyncData.toObject(message.data, options); + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (typeof message.timestamp === "number") + object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; + else + object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp; + if (message.actor != null && message.hasOwnProperty("actor")) + object.actor = $root.GraphSync.GraphSyncActor.toObject(message.actor, options); + return object; + }; + + /** + * Converts this GraphSyncDataPlus to JSON. + * @function toJSON + * @memberof GraphSync.GraphSyncDataPlus + * @instance + * @returns {Object.} JSON object + */ + GraphSyncDataPlus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GraphSyncDataPlus + * @function getTypeUrl + * @memberof GraphSync.GraphSyncDataPlus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GraphSyncDataPlus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/GraphSync.GraphSyncDataPlus"; + }; + + return GraphSyncDataPlus; + })(); + + GraphSync.GraphSyncQuery = (function() { + + /** + * Properties of a GraphSyncQuery. + * @memberof GraphSync + * @interface IGraphSyncQuery + * @property {Uint8Array|null} [streamId] GraphSyncQuery streamId + * @property {Uint8Array|null} [origin] GraphSyncQuery origin + * @property {number|Long|null} [syncPoint] GraphSyncQuery syncPoint + * @property {number|null} [maxCount] GraphSyncQuery maxCount + */ + + /** + * Constructs a new GraphSyncQuery. + * @memberof GraphSync + * @classdesc Represents a GraphSyncQuery. + * @implements IGraphSyncQuery + * @constructor + * @param {GraphSync.IGraphSyncQuery=} [properties] Properties to set + */ + function GraphSyncQuery(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GraphSyncQuery streamId. + * @member {Uint8Array} streamId + * @memberof GraphSync.GraphSyncQuery + * @instance + */ + GraphSyncQuery.prototype.streamId = $util.newBuffer([]); + + /** + * GraphSyncQuery origin. + * @member {Uint8Array} origin + * @memberof GraphSync.GraphSyncQuery + * @instance + */ + GraphSyncQuery.prototype.origin = $util.newBuffer([]); + + /** + * GraphSyncQuery syncPoint. + * @member {number|Long} syncPoint + * @memberof GraphSync.GraphSyncQuery + * @instance + */ + GraphSyncQuery.prototype.syncPoint = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * GraphSyncQuery maxCount. + * @member {number} maxCount + * @memberof GraphSync.GraphSyncQuery + * @instance + */ + GraphSyncQuery.prototype.maxCount = 0; + + /** + * Creates a new GraphSyncQuery instance using the specified properties. + * @function create + * @memberof GraphSync.GraphSyncQuery + * @static + * @param {GraphSync.IGraphSyncQuery=} [properties] Properties to set + * @returns {GraphSync.GraphSyncQuery} GraphSyncQuery instance + */ + GraphSyncQuery.create = function create(properties) { + return new GraphSyncQuery(properties); + }; + + /** + * Encodes the specified GraphSyncQuery message. Does not implicitly {@link GraphSync.GraphSyncQuery.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.streamId); + if (message.origin != null && Object.hasOwnProperty.call(message, "origin")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.origin); + if (message.syncPoint != null && Object.hasOwnProperty.call(message, "syncPoint")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.syncPoint); + if (message.maxCount != null && Object.hasOwnProperty.call(message, "maxCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maxCount); + 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 + * @memberof GraphSync.GraphSyncQuery + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncQuery(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.streamId = reader.bytes(); + break; + } + case 2: { + message.origin = reader.bytes(); + break; + } + case 3: { + message.syncPoint = reader.int64(); + break; + } + case 4: { + message.maxCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof GraphSync.GraphSyncQuery + * @static + * @param {Object.} object Plain object + * @returns {GraphSync.GraphSyncQuery} GraphSyncQuery + */ + GraphSyncQuery.fromObject = function fromObject(object) { + if (object instanceof $root.GraphSync.GraphSyncQuery) + return object; + let message = new $root.GraphSync.GraphSyncQuery(); + if (object.streamId != null) + if (typeof object.streamId === "string") + $util.base64.decode(object.streamId, message.streamId = $util.newBuffer($util.base64.length(object.streamId)), 0); + else if (object.streamId.length >= 0) + message.streamId = object.streamId; + if (object.origin != null) + if (typeof object.origin === "string") + $util.base64.decode(object.origin, message.origin = $util.newBuffer($util.base64.length(object.origin)), 0); + else if (object.origin.length >= 0) + message.origin = object.origin; + if (object.syncPoint != null) + if ($util.Long) + (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; + else if (typeof object.syncPoint === "string") + message.syncPoint = parseInt(object.syncPoint, 10); + else if (typeof object.syncPoint === "number") + message.syncPoint = object.syncPoint; + else if (typeof object.syncPoint === "object") + message.syncPoint = new $util.LongBits(object.syncPoint.low >>> 0, object.syncPoint.high >>> 0).toNumber(); + if (object.maxCount != null) + message.maxCount = object.maxCount | 0; + return message; + }; + + /** + * Creates a plain object from a GraphSyncQuery message. Also converts values to other types if specified. + * @function toObject + * @memberof GraphSync.GraphSyncQuery + * @static + * @param {GraphSync.GraphSyncQuery} message GraphSyncQuery + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GraphSyncQuery.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.streamId = ""; + else { + object.streamId = []; + if (options.bytes !== Array) + object.streamId = $util.newBuffer(object.streamId); + } + if (options.bytes === String) + object.origin = ""; + else { + object.origin = []; + if (options.bytes !== Array) + object.origin = $util.newBuffer(object.origin); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.syncPoint = options.longs === String ? "0" : 0; + object.maxCount = 0; + } + if (message.streamId != null && message.hasOwnProperty("streamId")) + object.streamId = options.bytes === String ? $util.base64.encode(message.streamId, 0, message.streamId.length) : options.bytes === Array ? Array.prototype.slice.call(message.streamId) : message.streamId; + if (message.origin != null && message.hasOwnProperty("origin")) + object.origin = options.bytes === String ? $util.base64.encode(message.origin, 0, message.origin.length) : options.bytes === Array ? Array.prototype.slice.call(message.origin) : message.origin; + if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) + if (typeof 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")) + object.maxCount = message.maxCount; + return object; + }; + + /** + * Converts this GraphSyncQuery to JSON. + * @function toJSON + * @memberof GraphSync.GraphSyncQuery + * @instance + * @returns {Object.} JSON object + */ + GraphSyncQuery.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GraphSyncQuery + * @function getTypeUrl + * @memberof GraphSync.GraphSyncQuery + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GraphSyncQuery.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/GraphSync.GraphSyncQuery"; + }; + + return GraphSyncQuery; + })(); + + GraphSync.GraphSyncResult = (function() { + + /** + * Properties of a GraphSyncResult. + * @memberof GraphSync + * @interface IGraphSyncResult + * @property {Uint8Array|null} [streamId] GraphSyncResult streamId + * @property {number|Long|null} [syncPoint] GraphSyncResult syncPoint + * @property {Array.|null} [data] GraphSyncResult data + * @property {boolean|null} [hasMore] GraphSyncResult hasMore + */ + + /** + * Constructs a new GraphSyncResult. + * @memberof GraphSync + * @classdesc Represents a GraphSyncResult. + * @implements IGraphSyncResult + * @constructor + * @param {GraphSync.IGraphSyncResult=} [properties] Properties to set + */ + function GraphSyncResult(properties) { + this.data = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GraphSyncResult streamId. + * @member {Uint8Array} streamId + * @memberof GraphSync.GraphSyncResult + * @instance + */ + GraphSyncResult.prototype.streamId = $util.newBuffer([]); + + /** + * GraphSyncResult syncPoint. + * @member {number|Long} syncPoint + * @memberof GraphSync.GraphSyncResult + * @instance + */ + GraphSyncResult.prototype.syncPoint = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * GraphSyncResult data. + * @member {Array.} data + * @memberof GraphSync.GraphSyncResult + * @instance + */ + GraphSyncResult.prototype.data = $util.emptyArray; + + /** + * GraphSyncResult hasMore. + * @member {boolean} hasMore + * @memberof GraphSync.GraphSyncResult + * @instance + */ + GraphSyncResult.prototype.hasMore = false; + + /** + * Creates a new GraphSyncResult instance using the specified properties. + * @function create + * @memberof GraphSync.GraphSyncResult + * @static + * @param {GraphSync.IGraphSyncResult=} [properties] Properties to set + * @returns {GraphSync.GraphSyncResult} GraphSyncResult instance + */ + GraphSyncResult.create = function create(properties) { + return new GraphSyncResult(properties); + }; + + /** + * Encodes the specified GraphSyncResult message. Does not implicitly {@link GraphSync.GraphSyncResult.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.streamId); + if (message.syncPoint != null && Object.hasOwnProperty.call(message, "syncPoint")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.syncPoint); + if (message.data != null && message.data.length) + for (let i = 0; i < message.data.length; ++i) + $root.GraphSync.GraphSyncDataPlus.encode(message.data[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.hasMore); + 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 + * @memberof GraphSync.GraphSyncResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncResult(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.streamId = reader.bytes(); + break; + } + case 3: { + message.syncPoint = reader.int64(); + break; + } + case 4: { + if (!(message.data && message.data.length)) + message.data = []; + message.data.push($root.GraphSync.GraphSyncDataPlus.decode(reader, reader.uint32())); + break; + } + case 5: { + message.hasMore = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + 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 + * @memberof GraphSync.GraphSyncResult + * @static + * @param {Object.} object Plain object + * @returns {GraphSync.GraphSyncResult} GraphSyncResult + */ + GraphSyncResult.fromObject = function fromObject(object) { + if (object instanceof $root.GraphSync.GraphSyncResult) + return object; + let message = new $root.GraphSync.GraphSyncResult(); + if (object.streamId != null) + if (typeof object.streamId === "string") + $util.base64.decode(object.streamId, message.streamId = $util.newBuffer($util.base64.length(object.streamId)), 0); + else if (object.streamId.length >= 0) + message.streamId = object.streamId; + if (object.syncPoint != null) + if ($util.Long) + (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; + else if (typeof object.syncPoint === "string") + message.syncPoint = parseInt(object.syncPoint, 10); + else if (typeof object.syncPoint === "number") + message.syncPoint = object.syncPoint; + else if (typeof object.syncPoint === "object") + message.syncPoint = new $util.LongBits(object.syncPoint.low >>> 0, object.syncPoint.high >>> 0).toNumber(); + if (object.data) { + if (!Array.isArray(object.data)) + throw TypeError(".GraphSync.GraphSyncResult.data: array expected"); + message.data = []; + for (let i = 0; i < object.data.length; ++i) { + if (typeof object.data[i] !== "object") + throw TypeError(".GraphSync.GraphSyncResult.data: object expected"); + message.data[i] = $root.GraphSync.GraphSyncDataPlus.fromObject(object.data[i]); + } + } + if (object.hasMore != null) + message.hasMore = Boolean(object.hasMore); + return message; + }; + + /** + * Creates a plain object from a GraphSyncResult message. Also converts values to other types if specified. + * @function toObject + * @memberof GraphSync.GraphSyncResult + * @static + * @param {GraphSync.GraphSyncResult} message GraphSyncResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GraphSyncResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.data = []; + if (options.defaults) { + if (options.bytes === String) + object.streamId = ""; + else { + object.streamId = []; + if (options.bytes !== Array) + object.streamId = $util.newBuffer(object.streamId); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.syncPoint = options.longs === String ? "0" : 0; + object.hasMore = false; + } + if (message.streamId != null && message.hasOwnProperty("streamId")) + object.streamId = options.bytes === String ? $util.base64.encode(message.streamId, 0, message.streamId.length) : options.bytes === Array ? Array.prototype.slice.call(message.streamId) : message.streamId; + if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) + if (typeof message.syncPoint === "number") + object.syncPoint = options.longs === String ? String(message.syncPoint) : message.syncPoint; + else + object.syncPoint = options.longs === String ? $util.Long.prototype.toString.call(message.syncPoint) : options.longs === Number ? new $util.LongBits(message.syncPoint.low >>> 0, message.syncPoint.high >>> 0).toNumber() : message.syncPoint; + if (message.data && message.data.length) { + object.data = []; + for (let j = 0; j < message.data.length; ++j) + object.data[j] = $root.GraphSync.GraphSyncDataPlus.toObject(message.data[j], options); + } + if (message.hasMore != null && message.hasOwnProperty("hasMore")) + object.hasMore = message.hasMore; + return object; + }; + + /** + * Converts this GraphSyncResult to JSON. + * @function toJSON + * @memberof GraphSync.GraphSyncResult + * @instance + * @returns {Object.} JSON object + */ + GraphSyncResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GraphSyncResult + * @function getTypeUrl + * @memberof GraphSync.GraphSyncResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GraphSyncResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/GraphSync.GraphSyncResult"; + }; + + return GraphSyncResult; + })(); + + GraphSync.GraphSyncMultiQuery = (function() { + + /** + * Properties of a GraphSyncMultiQuery. + * @memberof GraphSync + * @interface IGraphSyncMultiQuery + * @property {Array.|null} [queries] GraphSyncMultiQuery queries + */ + + /** + * Constructs a new GraphSyncMultiQuery. + * @memberof GraphSync + * @classdesc Represents a GraphSyncMultiQuery. + * @implements IGraphSyncMultiQuery + * @constructor + * @param {GraphSync.IGraphSyncMultiQuery=} [properties] Properties to set + */ + function GraphSyncMultiQuery(properties) { + this.queries = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GraphSyncMultiQuery queries. + * @member {Array.} queries + * @memberof GraphSync.GraphSyncMultiQuery + * @instance + */ + GraphSyncMultiQuery.prototype.queries = $util.emptyArray; + + /** + * Creates a new GraphSyncMultiQuery instance using the specified properties. + * @function create + * @memberof GraphSync.GraphSyncMultiQuery + * @static + * @param {GraphSync.IGraphSyncMultiQuery=} [properties] Properties to set + * @returns {GraphSync.GraphSyncMultiQuery} GraphSyncMultiQuery instance + */ + GraphSyncMultiQuery.create = function create(properties) { + return new GraphSyncMultiQuery(properties); + }; + + /** + * Encodes the specified GraphSyncMultiQuery message. Does not implicitly {@link GraphSync.GraphSyncMultiQuery.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.queries != null && message.queries.length) + for (let i = 0; i < message.queries.length; ++i) + $root.GraphSync.GraphSyncQuery.encode(message.queries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + 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 + * @memberof GraphSync.GraphSyncMultiQuery + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncMultiQuery(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.queries && message.queries.length)) + message.queries = []; + message.queries.push($root.GraphSync.GraphSyncQuery.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + 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 + * @memberof GraphSync.GraphSyncMultiQuery + * @static + * @param {Object.} object Plain object + * @returns {GraphSync.GraphSyncMultiQuery} GraphSyncMultiQuery + */ + GraphSyncMultiQuery.fromObject = function fromObject(object) { + if (object instanceof $root.GraphSync.GraphSyncMultiQuery) + return object; + let message = new $root.GraphSync.GraphSyncMultiQuery(); + if (object.queries) { + if (!Array.isArray(object.queries)) + throw TypeError(".GraphSync.GraphSyncMultiQuery.queries: array expected"); + message.queries = []; + for (let i = 0; i < object.queries.length; ++i) { + if (typeof object.queries[i] !== "object") + throw TypeError(".GraphSync.GraphSyncMultiQuery.queries: object expected"); + message.queries[i] = $root.GraphSync.GraphSyncQuery.fromObject(object.queries[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a GraphSyncMultiQuery message. Also converts values to other types if specified. + * @function toObject + * @memberof GraphSync.GraphSyncMultiQuery + * @static + * @param {GraphSync.GraphSyncMultiQuery} message GraphSyncMultiQuery + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GraphSyncMultiQuery.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.queries = []; + if (message.queries && message.queries.length) { + object.queries = []; + for (let j = 0; j < message.queries.length; ++j) + object.queries[j] = $root.GraphSync.GraphSyncQuery.toObject(message.queries[j], options); + } + return object; + }; + + /** + * Converts this GraphSyncMultiQuery to JSON. + * @function toJSON + * @memberof GraphSync.GraphSyncMultiQuery + * @instance + * @returns {Object.} JSON object + */ + GraphSyncMultiQuery.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GraphSyncMultiQuery + * @function getTypeUrl + * @memberof GraphSync.GraphSyncMultiQuery + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GraphSyncMultiQuery.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/GraphSync.GraphSyncMultiQuery"; + }; + + return GraphSyncMultiQuery; + })(); + + GraphSync.GraphSyncMultiResult = (function() { + + /** + * Properties of a GraphSyncMultiResult. + * @memberof GraphSync + * @interface IGraphSyncMultiResult + * @property {Array.|null} [results] GraphSyncMultiResult results + */ + + /** + * Constructs a new GraphSyncMultiResult. + * @memberof GraphSync + * @classdesc Represents a GraphSyncMultiResult. + * @implements IGraphSyncMultiResult + * @constructor + * @param {GraphSync.IGraphSyncMultiResult=} [properties] Properties to set + */ + function GraphSyncMultiResult(properties) { + this.results = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GraphSyncMultiResult results. + * @member {Array.} results + * @memberof GraphSync.GraphSyncMultiResult + * @instance + */ + GraphSyncMultiResult.prototype.results = $util.emptyArray; + + /** + * Creates a new GraphSyncMultiResult instance using the specified properties. + * @function create + * @memberof GraphSync.GraphSyncMultiResult + * @static + * @param {GraphSync.IGraphSyncMultiResult=} [properties] Properties to set + * @returns {GraphSync.GraphSyncMultiResult} GraphSyncMultiResult instance + */ + GraphSyncMultiResult.create = function create(properties) { + return new GraphSyncMultiResult(properties); + }; + + /** + * Encodes the specified GraphSyncMultiResult message. Does not implicitly {@link GraphSync.GraphSyncMultiResult.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.results != null && message.results.length) + for (let i = 0; i < message.results.length; ++i) + $root.GraphSync.GraphSyncResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + 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 + * @memberof GraphSync.GraphSyncMultiResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncMultiResult(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.results && message.results.length)) + message.results = []; + message.results.push($root.GraphSync.GraphSyncResult.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.GraphSync.GraphSyncResult.verify(message.results[i]); + 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 + * @memberof GraphSync.GraphSyncMultiResult + * @static + * @param {Object.} object Plain object + * @returns {GraphSync.GraphSyncMultiResult} GraphSyncMultiResult + */ + GraphSyncMultiResult.fromObject = function fromObject(object) { + if (object instanceof $root.GraphSync.GraphSyncMultiResult) + return object; + let message = new $root.GraphSync.GraphSyncMultiResult(); + if (object.results) { + if (!Array.isArray(object.results)) + throw TypeError(".GraphSync.GraphSyncMultiResult.results: array expected"); + message.results = []; + for (let i = 0; i < object.results.length; ++i) { + if (typeof object.results[i] !== "object") + throw TypeError(".GraphSync.GraphSyncMultiResult.results: object expected"); + message.results[i] = $root.GraphSync.GraphSyncResult.fromObject(object.results[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a GraphSyncMultiResult message. Also converts values to other types if specified. + * @function toObject + * @memberof GraphSync.GraphSyncMultiResult + * @static + * @param {GraphSync.GraphSyncMultiResult} message GraphSyncMultiResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GraphSyncMultiResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.results = []; + if (message.results && message.results.length) { + object.results = []; + for (let j = 0; j < message.results.length; ++j) + object.results[j] = $root.GraphSync.GraphSyncResult.toObject(message.results[j], options); + } + return object; + }; + + /** + * Converts this GraphSyncMultiResult to JSON. + * @function toJSON + * @memberof GraphSync.GraphSyncMultiResult + * @instance + * @returns {Object.} JSON object + */ + GraphSyncMultiResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GraphSyncMultiResult + * @function getTypeUrl + * @memberof GraphSync.GraphSyncMultiResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GraphSyncMultiResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/GraphSync.GraphSyncMultiResult"; + }; + + return GraphSyncMultiResult; + })(); + + GraphSync.GraphSyncAddDataRequest = (function() { + + /** + * Properties of a GraphSyncAddDataRequest. + * @memberof GraphSync + * @interface IGraphSyncAddDataRequest + * @property {GraphSync.IGraphSyncRef|null} [origin] GraphSyncAddDataRequest origin + * @property {Array.|null} [data] GraphSyncAddDataRequest data + */ + + /** + * Constructs a new GraphSyncAddDataRequest. + * @memberof GraphSync + * @classdesc Represents a GraphSyncAddDataRequest. + * @implements IGraphSyncAddDataRequest + * @constructor + * @param {GraphSync.IGraphSyncAddDataRequest=} [properties] Properties to set + */ + function GraphSyncAddDataRequest(properties) { + this.data = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GraphSyncAddDataRequest origin. + * @member {GraphSync.IGraphSyncRef|null|undefined} origin + * @memberof GraphSync.GraphSyncAddDataRequest + * @instance + */ + GraphSyncAddDataRequest.prototype.origin = null; + + /** + * GraphSyncAddDataRequest data. + * @member {Array.} data + * @memberof GraphSync.GraphSyncAddDataRequest + * @instance + */ + GraphSyncAddDataRequest.prototype.data = $util.emptyArray; + + /** + * Creates a new GraphSyncAddDataRequest instance using the specified properties. + * @function create + * @memberof GraphSync.GraphSyncAddDataRequest + * @static + * @param {GraphSync.IGraphSyncAddDataRequest=} [properties] Properties to set + * @returns {GraphSync.GraphSyncAddDataRequest} GraphSyncAddDataRequest instance + */ + GraphSyncAddDataRequest.create = function create(properties) { + return new GraphSyncAddDataRequest(properties); + }; + + /** + * Encodes the specified GraphSyncAddDataRequest message. Does not implicitly {@link GraphSync.GraphSyncAddDataRequest.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.origin != null && Object.hasOwnProperty.call(message, "origin")) + $root.GraphSync.GraphSyncRef.encode(message.origin, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.data != null && message.data.length) + for (let i = 0; i < message.data.length; ++i) + $root.GraphSync.GraphSyncData.encode(message.data[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + 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 + * @memberof GraphSync.GraphSyncAddDataRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncAddDataRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.origin = $root.GraphSync.GraphSyncRef.decode(reader, reader.uint32()); + break; + } + case 2: { + if (!(message.data && message.data.length)) + message.data = []; + message.data.push($root.GraphSync.GraphSyncData.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.origin != null && message.hasOwnProperty("origin")) { + let error = $root.GraphSync.GraphSyncRef.verify(message.origin); + 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]); + 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 + * @memberof GraphSync.GraphSyncAddDataRequest + * @static + * @param {Object.} object Plain object + * @returns {GraphSync.GraphSyncAddDataRequest} GraphSyncAddDataRequest + */ + GraphSyncAddDataRequest.fromObject = function fromObject(object) { + if (object instanceof $root.GraphSync.GraphSyncAddDataRequest) + return object; + let message = new $root.GraphSync.GraphSyncAddDataRequest(); + if (object.origin != null) { + if (typeof object.origin !== "object") + throw TypeError(".GraphSync.GraphSyncAddDataRequest.origin: object expected"); + message.origin = $root.GraphSync.GraphSyncRef.fromObject(object.origin); + } + if (object.data) { + if (!Array.isArray(object.data)) + throw TypeError(".GraphSync.GraphSyncAddDataRequest.data: array expected"); + message.data = []; + for (let i = 0; i < object.data.length; ++i) { + if (typeof object.data[i] !== "object") + throw TypeError(".GraphSync.GraphSyncAddDataRequest.data: object expected"); + message.data[i] = $root.GraphSync.GraphSyncData.fromObject(object.data[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a GraphSyncAddDataRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof GraphSync.GraphSyncAddDataRequest + * @static + * @param {GraphSync.GraphSyncAddDataRequest} message GraphSyncAddDataRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GraphSyncAddDataRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.data = []; + if (options.defaults) + object.origin = null; + if (message.origin != null && message.hasOwnProperty("origin")) + object.origin = $root.GraphSync.GraphSyncRef.toObject(message.origin, options); + if (message.data && message.data.length) { + object.data = []; + for (let j = 0; j < message.data.length; ++j) + object.data[j] = $root.GraphSync.GraphSyncData.toObject(message.data[j], options); + } + return object; + }; + + /** + * Converts this GraphSyncAddDataRequest to JSON. + * @function toJSON + * @memberof GraphSync.GraphSyncAddDataRequest + * @instance + * @returns {Object.} JSON object + */ + GraphSyncAddDataRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GraphSyncAddDataRequest + * @function getTypeUrl + * @memberof GraphSync.GraphSyncAddDataRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GraphSyncAddDataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/GraphSync.GraphSyncAddDataRequest"; + }; + + return GraphSyncAddDataRequest; + })(); + + GraphSync.GraphSyncLeafsQuery = (function() { + + /** + * Properties of a GraphSyncLeafsQuery. + * @memberof GraphSync + * @interface IGraphSyncLeafsQuery + * @property {Array.|null} [vertices] GraphSyncLeafsQuery vertices + */ + + /** + * Constructs a new GraphSyncLeafsQuery. + * @memberof GraphSync + * @classdesc Represents a GraphSyncLeafsQuery. + * @implements IGraphSyncLeafsQuery + * @constructor + * @param {GraphSync.IGraphSyncLeafsQuery=} [properties] Properties to set + */ + function GraphSyncLeafsQuery(properties) { + this.vertices = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GraphSyncLeafsQuery vertices. + * @member {Array.} vertices + * @memberof GraphSync.GraphSyncLeafsQuery + * @instance + */ + GraphSyncLeafsQuery.prototype.vertices = $util.emptyArray; + + /** + * Creates a new GraphSyncLeafsQuery instance using the specified properties. + * @function create + * @memberof GraphSync.GraphSyncLeafsQuery + * @static + * @param {GraphSync.IGraphSyncLeafsQuery=} [properties] Properties to set + * @returns {GraphSync.GraphSyncLeafsQuery} GraphSyncLeafsQuery instance + */ + GraphSyncLeafsQuery.create = function create(properties) { + return new GraphSyncLeafsQuery(properties); + }; + + /** + * Encodes the specified GraphSyncLeafsQuery message. Does not implicitly {@link GraphSync.GraphSyncLeafsQuery.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.vertices != null && message.vertices.length) + for (let i = 0; i < message.vertices.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.vertices[i]); + 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 + * @memberof GraphSync.GraphSyncLeafsQuery + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncLeafsQuery(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + if (!(message.vertices && message.vertices.length)) + message.vertices = []; + message.vertices.push(reader.bytes()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof GraphSync.GraphSyncLeafsQuery + * @static + * @param {Object.} object Plain object + * @returns {GraphSync.GraphSyncLeafsQuery} GraphSyncLeafsQuery + */ + GraphSyncLeafsQuery.fromObject = function fromObject(object) { + if (object instanceof $root.GraphSync.GraphSyncLeafsQuery) + return object; + let message = new $root.GraphSync.GraphSyncLeafsQuery(); + if (object.vertices) { + if (!Array.isArray(object.vertices)) + throw TypeError(".GraphSync.GraphSyncLeafsQuery.vertices: array expected"); + message.vertices = []; + for (let i = 0; i < object.vertices.length; ++i) + if (typeof object.vertices[i] === "string") + $util.base64.decode(object.vertices[i], message.vertices[i] = $util.newBuffer($util.base64.length(object.vertices[i])), 0); + else if (object.vertices[i].length >= 0) + message.vertices[i] = object.vertices[i]; + } + return message; + }; + + /** + * Creates a plain object from a GraphSyncLeafsQuery message. Also converts values to other types if specified. + * @function toObject + * @memberof GraphSync.GraphSyncLeafsQuery + * @static + * @param {GraphSync.GraphSyncLeafsQuery} message GraphSyncLeafsQuery + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GraphSyncLeafsQuery.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.vertices = []; + if (message.vertices && message.vertices.length) { + object.vertices = []; + for (let j = 0; j < message.vertices.length; ++j) + object.vertices[j] = options.bytes === String ? $util.base64.encode(message.vertices[j], 0, message.vertices[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.vertices[j]) : message.vertices[j]; + } + return object; + }; + + /** + * Converts this GraphSyncLeafsQuery to JSON. + * @function toJSON + * @memberof GraphSync.GraphSyncLeafsQuery + * @instance + * @returns {Object.} JSON object + */ + GraphSyncLeafsQuery.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GraphSyncLeafsQuery + * @function getTypeUrl + * @memberof GraphSync.GraphSyncLeafsQuery + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GraphSyncLeafsQuery.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/GraphSync.GraphSyncLeafsQuery"; + }; + + return GraphSyncLeafsQuery; + })(); + + GraphSync.GraphSyncRefsResult = (function() { + + /** + * Properties of a GraphSyncRefsResult. + * @memberof GraphSync + * @interface IGraphSyncRefsResult + * @property {Array.|null} [refs] GraphSyncRefsResult refs + */ + + /** + * Constructs a new GraphSyncRefsResult. + * @memberof GraphSync + * @classdesc Represents a GraphSyncRefsResult. + * @implements IGraphSyncRefsResult + * @constructor + * @param {GraphSync.IGraphSyncRefsResult=} [properties] Properties to set + */ + function GraphSyncRefsResult(properties) { + this.refs = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GraphSyncRefsResult refs. + * @member {Array.} refs + * @memberof GraphSync.GraphSyncRefsResult + * @instance + */ + GraphSyncRefsResult.prototype.refs = $util.emptyArray; + + /** + * Creates a new GraphSyncRefsResult instance using the specified properties. + * @function create + * @memberof GraphSync.GraphSyncRefsResult + * @static + * @param {GraphSync.IGraphSyncRefsResult=} [properties] Properties to set + * @returns {GraphSync.GraphSyncRefsResult} GraphSyncRefsResult instance + */ + GraphSyncRefsResult.create = function create(properties) { + return new GraphSyncRefsResult(properties); + }; + + /** + * Encodes the specified GraphSyncRefsResult message. Does not implicitly {@link GraphSync.GraphSyncRefsResult.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.refs != null && message.refs.length) + for (let i = 0; i < message.refs.length; ++i) + $root.GraphSync.GraphSyncRef.encode(message.refs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + 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 + * @memberof GraphSync.GraphSyncRefsResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncRefsResult(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.refs && message.refs.length)) + message.refs = []; + message.refs.push($root.GraphSync.GraphSyncRef.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + 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 + * @memberof GraphSync.GraphSyncRefsResult + * @static + * @param {Object.} object Plain object + * @returns {GraphSync.GraphSyncRefsResult} GraphSyncRefsResult + */ + GraphSyncRefsResult.fromObject = function fromObject(object) { + if (object instanceof $root.GraphSync.GraphSyncRefsResult) + return object; + let message = new $root.GraphSync.GraphSyncRefsResult(); + if (object.refs) { + if (!Array.isArray(object.refs)) + throw TypeError(".GraphSync.GraphSyncRefsResult.refs: array expected"); + message.refs = []; + for (let i = 0; i < object.refs.length; ++i) { + if (typeof object.refs[i] !== "object") + throw TypeError(".GraphSync.GraphSyncRefsResult.refs: object expected"); + message.refs[i] = $root.GraphSync.GraphSyncRef.fromObject(object.refs[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a GraphSyncRefsResult message. Also converts values to other types if specified. + * @function toObject + * @memberof GraphSync.GraphSyncRefsResult + * @static + * @param {GraphSync.GraphSyncRefsResult} message GraphSyncRefsResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GraphSyncRefsResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.refs = []; + if (message.refs && message.refs.length) { + object.refs = []; + for (let j = 0; j < message.refs.length; ++j) + object.refs[j] = $root.GraphSync.GraphSyncRef.toObject(message.refs[j], options); + } + return object; + }; + + /** + * Converts this GraphSyncRefsResult to JSON. + * @function toJSON + * @memberof GraphSync.GraphSyncRefsResult + * @instance + * @returns {Object.} JSON object + */ + GraphSyncRefsResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GraphSyncRefsResult + * @function getTypeUrl + * @memberof GraphSync.GraphSyncRefsResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GraphSyncRefsResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/GraphSync.GraphSyncRefsResult"; + }; + + return GraphSyncRefsResult; + })(); + + return GraphSync; +})(); + +export const Dag = $root.Dag = (() => { + + /** + * Namespace Dag. + * @exports Dag + * @namespace + */ + const Dag = {}; + + /** + * RefType enum. + * @name Dag.RefType + * @enum {number} + * @property {number} GENERAL=0 GENERAL value + * @property {number} USER=1 USER value + * @property {number} DEVICE=2 DEVICE value + * @property {number} REC=3 REC value + * @property {number} FOLDER=4 FOLDER value + * @property {number} TEAM=5 TEAM value + * @property {number} ENTERPRISE=6 ENTERPRISE value + * @property {number} PAM_DIRECTORY=7 PAM_DIRECTORY value + * @property {number} PAM_MACHINE=8 PAM_MACHINE value + * @property {number} PAM_USER=9 PAM_USER value + */ + Dag.RefType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GENERAL"] = 0; + values[valuesById[1] = "USER"] = 1; + values[valuesById[2] = "DEVICE"] = 2; + values[valuesById[3] = "REC"] = 3; + values[valuesById[4] = "FOLDER"] = 4; + values[valuesById[5] = "TEAM"] = 5; + values[valuesById[6] = "ENTERPRISE"] = 6; + values[valuesById[7] = "PAM_DIRECTORY"] = 7; + values[valuesById[8] = "PAM_MACHINE"] = 8; + values[valuesById[9] = "PAM_USER"] = 9; + return values; + })(); + + /** + * DataType enum. + * @name Dag.DataType + * @enum {number} + * @property {number} DATA=0 DATA value + * @property {number} KEY=1 KEY value + * @property {number} LINK=2 LINK value + * @property {number} ACL=3 ACL value + * @property {number} DELETION=4 DELETION value + * @property {number} DENIAL=5 DENIAL value + * @property {number} UNDENIAL=6 UNDENIAL value + */ + Dag.DataType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DATA"] = 0; + values[valuesById[1] = "KEY"] = 1; + values[valuesById[2] = "LINK"] = 2; + values[valuesById[3] = "ACL"] = 3; + values[valuesById[4] = "DELETION"] = 4; + values[valuesById[5] = "DENIAL"] = 5; + values[valuesById[6] = "UNDENIAL"] = 6; + return values; + })(); + + Dag.Ref = (function() { + + /** + * Properties of a Ref. + * @memberof Dag + * @interface IRef + * @property {Dag.RefType|null} [type] Ref type + * @property {Uint8Array|null} [value] Ref value + * @property {string|null} [name] Ref name + */ + + /** + * Constructs a new Ref. + * @memberof Dag + * @classdesc Represents a Ref. + * @implements IRef + * @constructor + * @param {Dag.IRef=} [properties] Properties to set + */ + function Ref(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Ref type. + * @member {Dag.RefType} type + * @memberof Dag.Ref + * @instance + */ + Ref.prototype.type = 0; + + /** + * Ref value. + * @member {Uint8Array} value + * @memberof Dag.Ref + * @instance + */ + Ref.prototype.value = $util.newBuffer([]); + + /** + * Ref name. + * @member {string} name + * @memberof Dag.Ref + * @instance + */ + Ref.prototype.name = ""; + + /** + * Creates a new Ref instance using the specified properties. + * @function create + * @memberof Dag.Ref + * @static + * @param {Dag.IRef=} [properties] Properties to set + * @returns {Dag.Ref} Ref instance + */ + Ref.create = function create(properties) { + return new Ref(properties); + }; + + /** + * Encodes the specified Ref message. Does not implicitly {@link Dag.Ref.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + 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 + * @memberof Dag.Ref + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Dag.Ref(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 2: { + message.value = reader.bytes(); + break; + } + case 3: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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: + 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 + * @memberof Dag.Ref + * @static + * @param {Object.} object Plain object + * @returns {Dag.Ref} Ref + */ + Ref.fromObject = function fromObject(object) { + if (object instanceof $root.Dag.Ref) + return object; + let message = new $root.Dag.Ref(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "GENERAL": + case 0: + message.type = 0; + break; + case "USER": + case 1: + message.type = 1; + break; + case "DEVICE": + case 2: + message.type = 2; + break; + case "REC": + case 3: + message.type = 3; + break; + case "FOLDER": + case 4: + message.type = 4; + break; + case "TEAM": + case 5: + message.type = 5; + break; + case "ENTERPRISE": + case 6: + message.type = 6; + break; + case "PAM_DIRECTORY": + case 7: + message.type = 7; + break; + case "PAM_MACHINE": + case 8: + message.type = 8; + break; + case "PAM_USER": + case 9: + message.type = 9; + break; + } + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length >= 0) + message.value = object.value; + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a Ref message. Also converts values to other types if specified. + * @function toObject + * @memberof Dag.Ref + * @static + * @param {Dag.Ref} message Ref + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Ref.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.type = options.enums === String ? "GENERAL" : 0; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + object.name = ""; + } + if (message.type != null && message.hasOwnProperty("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")) + 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")) + object.name = message.name; + return object; + }; + + /** + * Converts this Ref to JSON. + * @function toJSON + * @memberof Dag.Ref + * @instance + * @returns {Object.} JSON object + */ + Ref.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Ref + * @function getTypeUrl + * @memberof Dag.Ref + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Ref.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Dag.Ref"; + }; + + return Ref; + })(); + + Dag.Data = (function() { + + /** + * Properties of a Data. + * @memberof Dag + * @interface IData + * @property {Dag.DataType|null} [dataType] Data dataType + * @property {Dag.IRef|null} [ref] Data ref + * @property {Dag.IRef|null} [parentRef] Data parentRef + * @property {Uint8Array|null} [content] Data content + * @property {string|null} [path] Data path + */ + + /** + * Constructs a new Data. + * @memberof Dag + * @classdesc Represents a Data. + * @implements IData + * @constructor + * @param {Dag.IData=} [properties] Properties to set + */ + function Data(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Data dataType. + * @member {Dag.DataType} dataType + * @memberof Dag.Data + * @instance + */ + Data.prototype.dataType = 0; + + /** + * Data ref. + * @member {Dag.IRef|null|undefined} ref + * @memberof Dag.Data + * @instance + */ + Data.prototype.ref = null; + + /** + * Data parentRef. + * @member {Dag.IRef|null|undefined} parentRef + * @memberof Dag.Data + * @instance + */ + Data.prototype.parentRef = null; + + /** + * Data content. + * @member {Uint8Array} content + * @memberof Dag.Data + * @instance + */ + Data.prototype.content = $util.newBuffer([]); + + /** + * Data path. + * @member {string} path + * @memberof Dag.Data + * @instance + */ + Data.prototype.path = ""; + + /** + * Creates a new Data instance using the specified properties. + * @function create + * @memberof Dag.Data + * @static + * @param {Dag.IData=} [properties] Properties to set + * @returns {Dag.Data} Data instance + */ + Data.create = function create(properties) { + return new Data(properties); + }; + + /** + * Encodes the specified Data message. Does not implicitly {@link Dag.Data.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataType != null && Object.hasOwnProperty.call(message, "dataType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.dataType); + if (message.ref != null && Object.hasOwnProperty.call(message, "ref")) + $root.Dag.Ref.encode(message.ref, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parentRef != null && Object.hasOwnProperty.call(message, "parentRef")) + $root.Dag.Ref.encode(message.parentRef, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.content); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.path); + 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 + * @memberof Dag.Data + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Dag.Data(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.dataType = reader.int32(); + break; + } + case 2: { + message.ref = $root.Dag.Ref.decode(reader, reader.uint32()); + break; + } + case 3: { + message.parentRef = $root.Dag.Ref.decode(reader, reader.uint32()); + break; + } + case 4: { + message.content = reader.bytes(); + break; + } + case 5: { + message.path = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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: + break; + } + if (message.ref != null && message.hasOwnProperty("ref")) { + let error = $root.Dag.Ref.verify(message.ref); + if (error) + return "ref." + error; + } + if (message.parentRef != null && message.hasOwnProperty("parentRef")) { + let error = $root.Dag.Ref.verify(message.parentRef); + 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 + * @memberof Dag.Data + * @static + * @param {Object.} object Plain object + * @returns {Dag.Data} Data + */ + Data.fromObject = function fromObject(object) { + if (object instanceof $root.Dag.Data) + return object; + let message = new $root.Dag.Data(); + switch (object.dataType) { + default: + if (typeof object.dataType === "number") { + message.dataType = object.dataType; + break; + } + break; + case "DATA": + case 0: + message.dataType = 0; + break; + case "KEY": + case 1: + message.dataType = 1; + break; + case "LINK": + case 2: + message.dataType = 2; + break; + case "ACL": + case 3: + message.dataType = 3; + break; + case "DELETION": + case 4: + message.dataType = 4; + break; + case "DENIAL": + case 5: + message.dataType = 5; + break; + case "UNDENIAL": + case 6: + message.dataType = 6; + break; + } + if (object.ref != null) { + if (typeof object.ref !== "object") + throw TypeError(".Dag.Data.ref: object expected"); + message.ref = $root.Dag.Ref.fromObject(object.ref); + } + if (object.parentRef != null) { + if (typeof object.parentRef !== "object") + throw TypeError(".Dag.Data.parentRef: object expected"); + message.parentRef = $root.Dag.Ref.fromObject(object.parentRef); + } + if (object.content != null) + if (typeof object.content === "string") + $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); + else if (object.content.length >= 0) + message.content = object.content; + if (object.path != null) + message.path = String(object.path); + return message; + }; + + /** + * Creates a plain object from a Data message. Also converts values to other types if specified. + * @function toObject + * @memberof Dag.Data + * @static + * @param {Dag.Data} message Data + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Data.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.dataType = options.enums === String ? "DATA" : 0; + object.ref = null; + object.parentRef = null; + if (options.bytes === String) + object.content = ""; + else { + object.content = []; + if (options.bytes !== Array) + object.content = $util.newBuffer(object.content); + } + object.path = ""; + } + if (message.dataType != null && message.hasOwnProperty("dataType")) + object.dataType = options.enums === String ? $root.Dag.DataType[message.dataType] === undefined ? message.dataType : $root.Dag.DataType[message.dataType] : message.dataType; + if (message.ref != null && message.hasOwnProperty("ref")) + object.ref = $root.Dag.Ref.toObject(message.ref, options); + if (message.parentRef != null && message.hasOwnProperty("parentRef")) + object.parentRef = $root.Dag.Ref.toObject(message.parentRef, options); + if (message.content != null && message.hasOwnProperty("content")) + object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + return object; + }; + + /** + * Converts this Data to JSON. + * @function toJSON + * @memberof Dag.Data + * @instance + * @returns {Object.} JSON object + */ + Data.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Data + * @function getTypeUrl + * @memberof Dag.Data + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Data.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Dag.Data"; + }; + + return Data; + })(); + + Dag.SyncData = (function() { + + /** + * Properties of a SyncData. + * @memberof Dag + * @interface ISyncData + * @property {Array.|null} [data] SyncData data + * @property {number|Long|null} [syncPoint] SyncData syncPoint + * @property {boolean|null} [hasMore] SyncData hasMore + */ + + /** + * Constructs a new SyncData. + * @memberof Dag + * @classdesc Represents a SyncData. + * @implements ISyncData + * @constructor + * @param {Dag.ISyncData=} [properties] Properties to set + */ + function SyncData(properties) { + this.data = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SyncData data. + * @member {Array.} data + * @memberof Dag.SyncData + * @instance + */ + SyncData.prototype.data = $util.emptyArray; + + /** + * SyncData syncPoint. + * @member {number|Long} syncPoint + * @memberof Dag.SyncData + * @instance + */ + SyncData.prototype.syncPoint = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SyncData hasMore. + * @member {boolean} hasMore + * @memberof Dag.SyncData + * @instance + */ + SyncData.prototype.hasMore = false; + + /** + * Creates a new SyncData instance using the specified properties. + * @function create + * @memberof Dag.SyncData + * @static + * @param {Dag.ISyncData=} [properties] Properties to set + * @returns {Dag.SyncData} SyncData instance + */ + SyncData.create = function create(properties) { + return new SyncData(properties); + }; + + /** + * Encodes the specified SyncData message. Does not implicitly {@link Dag.SyncData.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.data != null && message.data.length) + for (let i = 0; i < message.data.length; ++i) + $root.Dag.Data.encode(message.data[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.syncPoint != null && Object.hasOwnProperty.call(message, "syncPoint")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.syncPoint); + if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.hasMore); + 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 + * @memberof Dag.SyncData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Dag.SyncData(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.data && message.data.length)) + message.data = []; + message.data.push($root.Dag.Data.decode(reader, reader.uint32())); + break; + } + case 2: { + message.syncPoint = reader.int64(); + break; + } + case 3: { + message.hasMore = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.Dag.Data.verify(message.data[i]); + 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 + * @memberof Dag.SyncData + * @static + * @param {Object.} object Plain object + * @returns {Dag.SyncData} SyncData + */ + SyncData.fromObject = function fromObject(object) { + if (object instanceof $root.Dag.SyncData) + return object; + let message = new $root.Dag.SyncData(); + if (object.data) { + if (!Array.isArray(object.data)) + throw TypeError(".Dag.SyncData.data: array expected"); + message.data = []; + for (let i = 0; i < object.data.length; ++i) { + if (typeof object.data[i] !== "object") + throw TypeError(".Dag.SyncData.data: object expected"); + message.data[i] = $root.Dag.Data.fromObject(object.data[i]); + } + } + if (object.syncPoint != null) + if ($util.Long) + (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; + else if (typeof object.syncPoint === "string") + message.syncPoint = parseInt(object.syncPoint, 10); + else if (typeof object.syncPoint === "number") + message.syncPoint = object.syncPoint; + else if (typeof object.syncPoint === "object") + message.syncPoint = new $util.LongBits(object.syncPoint.low >>> 0, object.syncPoint.high >>> 0).toNumber(); + if (object.hasMore != null) + message.hasMore = Boolean(object.hasMore); + return message; + }; + + /** + * Creates a plain object from a SyncData message. Also converts values to other types if specified. + * @function toObject + * @memberof Dag.SyncData + * @static + * @param {Dag.SyncData} message SyncData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SyncData.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.data = []; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.syncPoint = options.longs === String ? "0" : 0; + object.hasMore = false; + } + if (message.data && message.data.length) { + object.data = []; + for (let j = 0; j < message.data.length; ++j) + object.data[j] = $root.Dag.Data.toObject(message.data[j], options); + } + if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) + 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")) + object.hasMore = message.hasMore; + return object; + }; + + /** + * Converts this SyncData to JSON. + * @function toJSON + * @memberof Dag.SyncData + * @instance + * @returns {Object.} JSON object + */ + SyncData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SyncData + * @function getTypeUrl + * @memberof Dag.SyncData + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SyncData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Dag.SyncData"; + }; + + return SyncData; + })(); + + Dag.DebugData = (function() { + + /** + * Properties of a DebugData. + * @memberof Dag + * @interface IDebugData + * @property {string|null} [dataType] DebugData dataType + * @property {string|null} [path] DebugData path + * @property {Dag.IDebugRefInfo|null} [ref] DebugData ref + * @property {Dag.IDebugRefInfo|null} [parentRef] DebugData parentRef + */ + + /** + * Constructs a new DebugData. + * @memberof Dag + * @classdesc Represents a DebugData. + * @implements IDebugData + * @constructor + * @param {Dag.IDebugData=} [properties] Properties to set + */ + function DebugData(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DebugData dataType. + * @member {string} dataType + * @memberof Dag.DebugData + * @instance + */ + DebugData.prototype.dataType = ""; + + /** + * DebugData path. + * @member {string} path + * @memberof Dag.DebugData + * @instance + */ + DebugData.prototype.path = ""; + + /** + * DebugData ref. + * @member {Dag.IDebugRefInfo|null|undefined} ref + * @memberof Dag.DebugData + * @instance + */ + DebugData.prototype.ref = null; + + /** + * DebugData parentRef. + * @member {Dag.IDebugRefInfo|null|undefined} parentRef + * @memberof Dag.DebugData + * @instance + */ + DebugData.prototype.parentRef = null; + + /** + * Creates a new DebugData instance using the specified properties. + * @function create + * @memberof Dag.DebugData + * @static + * @param {Dag.IDebugData=} [properties] Properties to set + * @returns {Dag.DebugData} DebugData instance + */ + DebugData.create = function create(properties) { + return new DebugData(properties); + }; + + /** + * Encodes the specified DebugData message. Does not implicitly {@link Dag.DebugData.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataType != null && Object.hasOwnProperty.call(message, "dataType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataType); + if (message.ref != null && Object.hasOwnProperty.call(message, "ref")) + $root.Dag.DebugRefInfo.encode(message.ref, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parentRef != null && Object.hasOwnProperty.call(message, "parentRef")) + $root.Dag.DebugRefInfo.encode(message.parentRef, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.path); + return writer; + }; + + /** + * 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 + * @memberof Dag.DebugData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Dag.DebugData(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.dataType = reader.string(); + break; + } + case 4: { + message.path = reader.string(); + break; + } + case 2: { + message.ref = $root.Dag.DebugRefInfo.decode(reader, reader.uint32()); + break; + } + case 3: { + message.parentRef = $root.Dag.DebugRefInfo.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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); + if (error) + return "ref." + error; + } + if (message.parentRef != null && message.hasOwnProperty("parentRef")) { + let error = $root.Dag.DebugRefInfo.verify(message.parentRef); + 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 + * @memberof Dag.DebugData + * @static + * @param {Object.} object Plain object + * @returns {Dag.DebugData} DebugData + */ + DebugData.fromObject = function fromObject(object) { + if (object instanceof $root.Dag.DebugData) + return object; + let message = new $root.Dag.DebugData(); + if (object.dataType != null) + message.dataType = String(object.dataType); + if (object.path != null) + message.path = String(object.path); + if (object.ref != null) { + if (typeof object.ref !== "object") + throw TypeError(".Dag.DebugData.ref: object expected"); + message.ref = $root.Dag.DebugRefInfo.fromObject(object.ref); + } + if (object.parentRef != null) { + if (typeof object.parentRef !== "object") + throw TypeError(".Dag.DebugData.parentRef: object expected"); + message.parentRef = $root.Dag.DebugRefInfo.fromObject(object.parentRef); + } + return message; + }; + + /** + * Creates a plain object from a DebugData message. Also converts values to other types if specified. + * @function toObject + * @memberof Dag.DebugData + * @static + * @param {Dag.DebugData} message DebugData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DebugData.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.dataType = ""; + object.ref = null; + object.parentRef = null; + object.path = ""; + } + if (message.dataType != null && message.hasOwnProperty("dataType")) + object.dataType = message.dataType; + if (message.ref != null && message.hasOwnProperty("ref")) + object.ref = $root.Dag.DebugRefInfo.toObject(message.ref, options); + if (message.parentRef != null && message.hasOwnProperty("parentRef")) + object.parentRef = $root.Dag.DebugRefInfo.toObject(message.parentRef, options); + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + return object; + }; + + /** + * Converts this DebugData to JSON. + * @function toJSON + * @memberof Dag.DebugData + * @instance + * @returns {Object.} JSON object + */ + DebugData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DebugData + * @function getTypeUrl + * @memberof Dag.DebugData + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DebugData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Dag.DebugData"; + }; + + return DebugData; + })(); + + Dag.DebugRefInfo = (function() { + + /** + * Properties of a DebugRefInfo. + * @memberof Dag + * @interface IDebugRefInfo + * @property {string|null} [refType] DebugRefInfo refType + * @property {Uint8Array|null} [value] DebugRefInfo value + */ + + /** + * Constructs a new DebugRefInfo. + * @memberof Dag + * @classdesc Represents a DebugRefInfo. + * @implements IDebugRefInfo + * @constructor + * @param {Dag.IDebugRefInfo=} [properties] Properties to set + */ + function DebugRefInfo(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DebugRefInfo refType. + * @member {string} refType + * @memberof Dag.DebugRefInfo + * @instance + */ + DebugRefInfo.prototype.refType = ""; + + /** + * DebugRefInfo value. + * @member {Uint8Array} value + * @memberof Dag.DebugRefInfo + * @instance + */ + DebugRefInfo.prototype.value = $util.newBuffer([]); + + /** + * Creates a new DebugRefInfo instance using the specified properties. + * @function create + * @memberof Dag.DebugRefInfo + * @static + * @param {Dag.IDebugRefInfo=} [properties] Properties to set + * @returns {Dag.DebugRefInfo} DebugRefInfo instance + */ + DebugRefInfo.create = function create(properties) { + return new DebugRefInfo(properties); + }; + + /** + * Encodes the specified DebugRefInfo message. Does not implicitly {@link Dag.DebugRefInfo.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.refType != null && Object.hasOwnProperty.call(message, "refType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.refType); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + 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 + * @memberof Dag.DebugRefInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Dag.DebugRefInfo(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.refType = reader.string(); + break; + } + case 2: { + message.value = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof Dag.DebugRefInfo + * @static + * @param {Object.} object Plain object + * @returns {Dag.DebugRefInfo} DebugRefInfo + */ + DebugRefInfo.fromObject = function fromObject(object) { + if (object instanceof $root.Dag.DebugRefInfo) + return object; + let message = new $root.Dag.DebugRefInfo(); + if (object.refType != null) + message.refType = String(object.refType); + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length >= 0) + message.value = object.value; + return message; + }; + + /** + * Creates a plain object from a DebugRefInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof Dag.DebugRefInfo + * @static + * @param {Dag.DebugRefInfo} message DebugRefInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DebugRefInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.refType = ""; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + } + if (message.refType != null && message.hasOwnProperty("refType")) + object.refType = message.refType; + if (message.value != null && message.hasOwnProperty("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; + }; + + /** + * Converts this DebugRefInfo to JSON. + * @function toJSON + * @memberof Dag.DebugRefInfo + * @instance + * @returns {Object.} JSON object + */ + DebugRefInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DebugRefInfo + * @function getTypeUrl + * @memberof Dag.DebugRefInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DebugRefInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Dag.DebugRefInfo"; + }; + + return DebugRefInfo; + })(); + + return Dag; +})(); + +export const record = $root.record = (() => { + + /** + * Namespace record. + * @exports record + * @namespace + */ + const record = {}; + + record.v3 = (function() { + + /** + * Namespace v3. + * @memberof record + * @namespace + */ + const v3 = {}; + + v3.sharing = (function() { + + /** + * Namespace sharing. + * @memberof record.v3 + * @namespace + */ + const sharing = {}; + + sharing.RecordSharingService = (function() { + + /** + * Constructs a new RecordSharingService service. + * @memberof record.v3.sharing + * @classdesc Represents a RecordSharingService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function RecordSharingService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (RecordSharingService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = RecordSharingService; + + /** + * Creates new RecordSharingService service using the specified rpc implementation. + * @function create + * @memberof record.v3.sharing.RecordSharingService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {RecordSharingService} RPC service. Useful where requests and/or responses are streamed. + */ + RecordSharingService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link record.v3.sharing.RecordSharingService#shareRecord}. + * @memberof record.v3.sharing.RecordSharingService + * @typedef ShareRecordCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {record.v3.sharing.Response} [response] Response + */ + + /** + * Manage direct sharing of records: grant, update and revoke user access to + * records in the same request + * @function shareRecord + * @memberof record.v3.sharing.RecordSharingService + * @instance + * @param {record.v3.sharing.IRequest} request Request message or plain object + * @param {record.v3.sharing.RecordSharingService.ShareRecordCallback} callback Node-style callback called with the error, if any, and Response + * @returns {undefined} + * @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); + }, "name", { value: "ShareRecord" }); + + /** + * Manage direct sharing of records: grant, update and revoke user access to + * records in the same request + * @function shareRecord + * @memberof record.v3.sharing.RecordSharingService + * @instance + * @param {record.v3.sharing.IRequest} request Request message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return RecordSharingService; + })(); + + sharing.Request = (function() { + + /** + * Properties of a Request. + * @memberof record.v3.sharing + * @interface IRequest + * @property {Array.|null} [createSharingPermissions] add new permissions to a list of existing records + * corresponds to creating new records shares, directly with "someone", whether a team or a specific user + * @property {Array.|null} [updateSharingPermissions] update existing permissions of a list of existing records shared with a team or a user + * @property {Array.|null} [revokeSharingPermissions] remove all sharing permissions from existing records + * specified records that were previously shared with "someone" (user or team) directly will be "unshared" + * @property {string|null} [echo] A string that is sent back in the push notification to identify the user who initiated the push (device id) + */ + + /** + * Constructs a new Request. + * @memberof record.v3.sharing + * @classdesc Represents a request encapsulating new, updated and deleted record sharing permissions. + * References: + * https://keeper.atlassian.net/wiki/spaces/FEAT/pages/1540653191/Shared+Subfolder+Permissions+aka+best+project+ever + * https://keeper.atlassian.net/wiki/spaces/KA/pages/2520711174/records_share_update+v3 + * @implements IRequest + * @constructor + * @param {record.v3.sharing.IRequest=} [properties] Properties to set + */ + function Request(properties) { + this.createSharingPermissions = []; + this.updateSharingPermissions = []; + this.revokeSharingPermissions = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * add new permissions to a list of existing records + * corresponds to creating new records shares, directly with "someone", whether a team or a specific user + * @member {Array.} createSharingPermissions + * @memberof record.v3.sharing.Request + * @instance + */ + Request.prototype.createSharingPermissions = $util.emptyArray; + + /** + * update existing permissions of a list of existing records shared with a team or a user + * @member {Array.} updateSharingPermissions + * @memberof record.v3.sharing.Request + * @instance + */ + Request.prototype.updateSharingPermissions = $util.emptyArray; + + /** + * remove all sharing permissions from existing records + * specified records that were previously shared with "someone" (user or team) directly will be "unshared" + * @member {Array.} revokeSharingPermissions + * @memberof record.v3.sharing.Request + * @instance + */ + Request.prototype.revokeSharingPermissions = $util.emptyArray; + + /** + * A string that is sent back in the push notification to identify the user who initiated the push (device id) + * @member {string} echo + * @memberof record.v3.sharing.Request + * @instance + */ + Request.prototype.echo = ""; + + /** + * Creates a new Request instance using the specified properties. + * @function create + * @memberof record.v3.sharing.Request + * @static + * @param {record.v3.sharing.IRequest=} [properties] Properties to set + * @returns {record.v3.sharing.Request} Request instance + */ + Request.create = function create(properties) { + return new Request(properties); + }; + + /** + * Encodes the specified Request message. Does not implicitly {@link record.v3.sharing.Request.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.createSharingPermissions != null && message.createSharingPermissions.length) + for (let i = 0; i < message.createSharingPermissions.length; ++i) + $root.record.v3.sharing.Permissions.encode(message.createSharingPermissions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateSharingPermissions != null && message.updateSharingPermissions.length) + for (let i = 0; i < message.updateSharingPermissions.length; ++i) + $root.record.v3.sharing.Permissions.encode(message.updateSharingPermissions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.revokeSharingPermissions != null && message.revokeSharingPermissions.length) + for (let i = 0; i < message.revokeSharingPermissions.length; ++i) + $root.record.v3.sharing.Permissions.encode(message.revokeSharingPermissions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.echo != null && Object.hasOwnProperty.call(message, "echo")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.echo); + 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 + * @memberof record.v3.sharing.Request + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.sharing.Request(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.createSharingPermissions && message.createSharingPermissions.length)) + message.createSharingPermissions = []; + message.createSharingPermissions.push($root.record.v3.sharing.Permissions.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.updateSharingPermissions && message.updateSharingPermissions.length)) + message.updateSharingPermissions = []; + message.updateSharingPermissions.push($root.record.v3.sharing.Permissions.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.revokeSharingPermissions && message.revokeSharingPermissions.length)) + message.revokeSharingPermissions = []; + message.revokeSharingPermissions.push($root.record.v3.sharing.Permissions.decode(reader, reader.uint32())); + break; + } + case 4: { + message.echo = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + 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]); + 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]); + 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 + * @memberof record.v3.sharing.Request + * @static + * @param {Object.} object Plain object + * @returns {record.v3.sharing.Request} Request + */ + Request.fromObject = function fromObject(object) { + if (object instanceof $root.record.v3.sharing.Request) + return object; + let message = new $root.record.v3.sharing.Request(); + if (object.createSharingPermissions) { + if (!Array.isArray(object.createSharingPermissions)) + 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") + throw TypeError(".record.v3.sharing.Request.createSharingPermissions: object expected"); + message.createSharingPermissions[i] = $root.record.v3.sharing.Permissions.fromObject(object.createSharingPermissions[i]); + } + } + if (object.updateSharingPermissions) { + if (!Array.isArray(object.updateSharingPermissions)) + 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") + throw TypeError(".record.v3.sharing.Request.updateSharingPermissions: object expected"); + message.updateSharingPermissions[i] = $root.record.v3.sharing.Permissions.fromObject(object.updateSharingPermissions[i]); + } + } + if (object.revokeSharingPermissions) { + if (!Array.isArray(object.revokeSharingPermissions)) + 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") + throw TypeError(".record.v3.sharing.Request.revokeSharingPermissions: object expected"); + message.revokeSharingPermissions[i] = $root.record.v3.sharing.Permissions.fromObject(object.revokeSharingPermissions[i]); + } + } + if (object.echo != null) + message.echo = String(object.echo); + return message; + }; + + /** + * Creates a plain object from a Request message. Also converts values to other types if specified. + * @function toObject + * @memberof record.v3.sharing.Request + * @static + * @param {record.v3.sharing.Request} message Request + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Request.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.createSharingPermissions = []; + object.updateSharingPermissions = []; + object.revokeSharingPermissions = []; + } + if (options.defaults) + object.echo = ""; + if (message.createSharingPermissions && message.createSharingPermissions.length) { + object.createSharingPermissions = []; + for (let j = 0; j < message.createSharingPermissions.length; ++j) + object.createSharingPermissions[j] = $root.record.v3.sharing.Permissions.toObject(message.createSharingPermissions[j], options); + } + if (message.updateSharingPermissions && message.updateSharingPermissions.length) { + object.updateSharingPermissions = []; + for (let j = 0; j < message.updateSharingPermissions.length; ++j) + object.updateSharingPermissions[j] = $root.record.v3.sharing.Permissions.toObject(message.updateSharingPermissions[j], options); + } + if (message.revokeSharingPermissions && message.revokeSharingPermissions.length) { + object.revokeSharingPermissions = []; + for (let j = 0; j < message.revokeSharingPermissions.length; ++j) + object.revokeSharingPermissions[j] = $root.record.v3.sharing.Permissions.toObject(message.revokeSharingPermissions[j], options); + } + if (message.echo != null && message.hasOwnProperty("echo")) + object.echo = message.echo; + return object; + }; + + /** + * Converts this Request to JSON. + * @function toJSON + * @memberof record.v3.sharing.Request + * @instance + * @returns {Object.} JSON object + */ + Request.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Request + * @function getTypeUrl + * @memberof record.v3.sharing.Request + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Request.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/record.v3.sharing.Request"; + }; + + return Request; + })(); + + sharing.Permissions = (function() { + + /** + * Properties of a Permissions. + * @memberof record.v3.sharing + * @interface IPermissions + * @property {Uint8Array|null} [recipientUid] The uid of the recipient the record is shared with. Must be either a team uid or a user uid. + * @property {Uint8Array|null} [recordUid] Identifier of the record being shared or whose sharing permissions are being updated/removed + * @property {Uint8Array|null} [recordKey] The record key encrypted with the recipient's public key (see. @username) + * @property {boolean|null} [useEccKey] Use ECIES algorithm instead of RSA to share to the recipient's public ECC key (see. @username) + * @property {Folder.IRecordAccessData|null} [rules] The set of record permissions granted to the recipient (@username). + * Permissions apply in the context of the specified folder. + */ + + /** + * Constructs a new Permissions. + * @memberof record.v3.sharing + * @classdesc Represents a Permissions. + * @implements IPermissions + * @constructor + * @param {record.v3.sharing.IPermissions=} [properties] Properties to set + */ + function Permissions(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * The uid of the recipient the record is shared with. Must be either a team uid or a user uid. + * @member {Uint8Array} recipientUid + * @memberof record.v3.sharing.Permissions + * @instance + */ + Permissions.prototype.recipientUid = $util.newBuffer([]); + + /** + * Identifier of the record being shared or whose sharing permissions are being updated/removed + * @member {Uint8Array} recordUid + * @memberof record.v3.sharing.Permissions + * @instance + */ + Permissions.prototype.recordUid = $util.newBuffer([]); + + /** + * The record key encrypted with the recipient's public key (see. @username) + * @member {Uint8Array} recordKey + * @memberof record.v3.sharing.Permissions + * @instance + */ + Permissions.prototype.recordKey = $util.newBuffer([]); + + /** + * Use ECIES algorithm instead of RSA to share to the recipient's public ECC key (see. @username) + * @member {boolean} useEccKey + * @memberof record.v3.sharing.Permissions + * @instance + */ + Permissions.prototype.useEccKey = false; + + /** + * The set of record permissions granted to the recipient (@username). + * Permissions apply in the context of the specified folder. + * @member {Folder.IRecordAccessData|null|undefined} rules + * @memberof record.v3.sharing.Permissions + * @instance + */ + Permissions.prototype.rules = null; + + /** + * Creates a new Permissions instance using the specified properties. + * @function create + * @memberof record.v3.sharing.Permissions + * @static + * @param {record.v3.sharing.IPermissions=} [properties] Properties to set + * @returns {record.v3.sharing.Permissions} Permissions instance + */ + Permissions.create = function create(properties) { + return new Permissions(properties); + }; + + /** + * Encodes the specified Permissions message. Does not implicitly {@link record.v3.sharing.Permissions.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recipientUid != null && Object.hasOwnProperty.call(message, "recipientUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recipientUid); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.recordKey); + if (message.useEccKey != null && Object.hasOwnProperty.call(message, "useEccKey")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useEccKey); + if (message.rules != null && Object.hasOwnProperty.call(message, "rules")) + $root.Folder.RecordAccessData.encode(message.rules, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + 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 + * @memberof record.v3.sharing.Permissions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.sharing.Permissions(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.recipientUid = reader.bytes(); + break; + } + case 3: { + message.recordUid = reader.bytes(); + break; + } + case 4: { + message.recordKey = reader.bytes(); + break; + } + case 5: { + message.useEccKey = reader.bool(); + break; + } + case 6: { + message.rules = $root.Folder.RecordAccessData.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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); + 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 + * @memberof record.v3.sharing.Permissions + * @static + * @param {Object.} object Plain object + * @returns {record.v3.sharing.Permissions} Permissions + */ + Permissions.fromObject = function fromObject(object) { + if (object instanceof $root.record.v3.sharing.Permissions) + return object; + let message = new $root.record.v3.sharing.Permissions(); + if (object.recipientUid != null) + if (typeof object.recipientUid === "string") + $util.base64.decode(object.recipientUid, message.recipientUid = $util.newBuffer($util.base64.length(object.recipientUid)), 0); + else if (object.recipientUid.length >= 0) + message.recipientUid = object.recipientUid; + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.recordKey != null) + if (typeof object.recordKey === "string") + $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); + else if (object.recordKey.length >= 0) + message.recordKey = object.recordKey; + if (object.useEccKey != null) + message.useEccKey = Boolean(object.useEccKey); + if (object.rules != null) { + if (typeof object.rules !== "object") + throw TypeError(".record.v3.sharing.Permissions.rules: object expected"); + message.rules = $root.Folder.RecordAccessData.fromObject(object.rules); + } + return message; + }; + + /** + * Creates a plain object from a Permissions message. Also converts values to other types if specified. + * @function toObject + * @memberof record.v3.sharing.Permissions + * @static + * @param {record.v3.sharing.Permissions} message Permissions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Permissions.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.recipientUid = ""; + else { + object.recipientUid = []; + if (options.bytes !== Array) + object.recipientUid = $util.newBuffer(object.recipientUid); + } + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if (options.bytes === String) + object.recordKey = ""; + else { + object.recordKey = []; + if (options.bytes !== Array) + object.recordKey = $util.newBuffer(object.recordKey); + } + object.useEccKey = false; + object.rules = null; + } + if (message.recipientUid != null && message.hasOwnProperty("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")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.recordKey != null && message.hasOwnProperty("recordKey")) + object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; + if (message.useEccKey != null && message.hasOwnProperty("useEccKey")) + object.useEccKey = message.useEccKey; + if (message.rules != null && message.hasOwnProperty("rules")) + object.rules = $root.Folder.RecordAccessData.toObject(message.rules, options); + return object; + }; + + /** + * Converts this Permissions to JSON. + * @function toJSON + * @memberof record.v3.sharing.Permissions + * @instance + * @returns {Object.} JSON object + */ + Permissions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Permissions + * @function getTypeUrl + * @memberof record.v3.sharing.Permissions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Permissions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/record.v3.sharing.Permissions"; + }; + + return Permissions; + })(); + + sharing.Response = (function() { + + /** + * Properties of a Response. + * @memberof record.v3.sharing + * @interface IResponse + * @property {Array.|null} [createdSharingStatus] The list of the respective sharing status of the newly shared records + * @property {Array.|null} [updatedSharingStatus] The list of the respective sharing status of the updated shared records + * @property {Array.|null} [revokedSharingStatus] The list of the respective sharing status of records that have been "unshared" + */ + + /** + * Constructs a new Response. + * @memberof record.v3.sharing + * @classdesc Represents a Response. + * @implements IResponse + * @constructor + * @param {record.v3.sharing.IResponse=} [properties] Properties to set + */ + function Response(properties) { + this.createdSharingStatus = []; + this.updatedSharingStatus = []; + this.revokedSharingStatus = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * The list of the respective sharing status of the newly shared records + * @member {Array.} createdSharingStatus + * @memberof record.v3.sharing.Response + * @instance + */ + Response.prototype.createdSharingStatus = $util.emptyArray; + + /** + * The list of the respective sharing status of the updated shared records + * @member {Array.} updatedSharingStatus + * @memberof record.v3.sharing.Response + * @instance + */ + Response.prototype.updatedSharingStatus = $util.emptyArray; + + /** + * The list of the respective sharing status of records that have been "unshared" + * @member {Array.} revokedSharingStatus + * @memberof record.v3.sharing.Response + * @instance + */ + Response.prototype.revokedSharingStatus = $util.emptyArray; + + /** + * Creates a new Response instance using the specified properties. + * @function create + * @memberof record.v3.sharing.Response + * @static + * @param {record.v3.sharing.IResponse=} [properties] Properties to set + * @returns {record.v3.sharing.Response} Response instance + */ + Response.create = function create(properties) { + return new Response(properties); + }; + + /** + * Encodes the specified Response message. Does not implicitly {@link record.v3.sharing.Response.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.createdSharingStatus != null && message.createdSharingStatus.length) + for (let i = 0; i < message.createdSharingStatus.length; ++i) + $root.record.v3.sharing.Status.encode(message.createdSharingStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updatedSharingStatus != null && message.updatedSharingStatus.length) + for (let i = 0; i < message.updatedSharingStatus.length; ++i) + $root.record.v3.sharing.Status.encode(message.updatedSharingStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.revokedSharingStatus != null && message.revokedSharingStatus.length) + for (let i = 0; i < message.revokedSharingStatus.length; ++i) + $root.record.v3.sharing.Status.encode(message.revokedSharingStatus[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + 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 + * @memberof record.v3.sharing.Response + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.sharing.Response(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.createdSharingStatus && message.createdSharingStatus.length)) + message.createdSharingStatus = []; + message.createdSharingStatus.push($root.record.v3.sharing.Status.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.updatedSharingStatus && message.updatedSharingStatus.length)) + message.updatedSharingStatus = []; + message.updatedSharingStatus.push($root.record.v3.sharing.Status.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.revokedSharingStatus && message.revokedSharingStatus.length)) + message.revokedSharingStatus = []; + message.revokedSharingStatus.push($root.record.v3.sharing.Status.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + 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]); + 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]); + 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 + * @memberof record.v3.sharing.Response + * @static + * @param {Object.} object Plain object + * @returns {record.v3.sharing.Response} Response + */ + Response.fromObject = function fromObject(object) { + if (object instanceof $root.record.v3.sharing.Response) + return object; + let message = new $root.record.v3.sharing.Response(); + if (object.createdSharingStatus) { + if (!Array.isArray(object.createdSharingStatus)) + 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") + throw TypeError(".record.v3.sharing.Response.createdSharingStatus: object expected"); + message.createdSharingStatus[i] = $root.record.v3.sharing.Status.fromObject(object.createdSharingStatus[i]); + } + } + if (object.updatedSharingStatus) { + if (!Array.isArray(object.updatedSharingStatus)) + 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") + throw TypeError(".record.v3.sharing.Response.updatedSharingStatus: object expected"); + message.updatedSharingStatus[i] = $root.record.v3.sharing.Status.fromObject(object.updatedSharingStatus[i]); + } + } + if (object.revokedSharingStatus) { + if (!Array.isArray(object.revokedSharingStatus)) + 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") + throw TypeError(".record.v3.sharing.Response.revokedSharingStatus: object expected"); + message.revokedSharingStatus[i] = $root.record.v3.sharing.Status.fromObject(object.revokedSharingStatus[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a Response message. Also converts values to other types if specified. + * @function toObject + * @memberof record.v3.sharing.Response + * @static + * @param {record.v3.sharing.Response} message Response + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Response.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.createdSharingStatus = []; + object.updatedSharingStatus = []; + object.revokedSharingStatus = []; + } + if (message.createdSharingStatus && message.createdSharingStatus.length) { + object.createdSharingStatus = []; + for (let j = 0; j < message.createdSharingStatus.length; ++j) + object.createdSharingStatus[j] = $root.record.v3.sharing.Status.toObject(message.createdSharingStatus[j], options); + } + if (message.updatedSharingStatus && message.updatedSharingStatus.length) { + object.updatedSharingStatus = []; + for (let j = 0; j < message.updatedSharingStatus.length; ++j) + object.updatedSharingStatus[j] = $root.record.v3.sharing.Status.toObject(message.updatedSharingStatus[j], options); + } + if (message.revokedSharingStatus && message.revokedSharingStatus.length) { + object.revokedSharingStatus = []; + for (let j = 0; j < message.revokedSharingStatus.length; ++j) + object.revokedSharingStatus[j] = $root.record.v3.sharing.Status.toObject(message.revokedSharingStatus[j], options); + } + return object; + }; + + /** + * Converts this Response to JSON. + * @function toJSON + * @memberof record.v3.sharing.Response + * @instance + * @returns {Object.} JSON object + */ + Response.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Response + * @function getTypeUrl + * @memberof record.v3.sharing.Response + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Response.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/record.v3.sharing.Response"; + }; + + return Response; + })(); + + sharing.Status = (function() { + + /** + * Properties of a Status. + * @memberof record.v3.sharing + * @interface IStatus + * @property {Uint8Array|null} [recordUid] Identifier of the record being shared or whose sharing permissions are being updated/removed + * @property {record.v3.sharing.SharingStatus|null} [status] Status of the request (success or error) + * @property {string|null} [message] Translatable, human-readable message + * @property {Uint8Array|null} [recipientUid] XOR(userUid, teamUid); the recipient the record was shared with + */ + + /** + * Constructs a new Status. + * @memberof record.v3.sharing + * @classdesc Represents a Status. + * @implements IStatus + * @constructor + * @param {record.v3.sharing.IStatus=} [properties] Properties to set + */ + function Status(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Identifier of the record being shared or whose sharing permissions are being updated/removed + * @member {Uint8Array} recordUid + * @memberof record.v3.sharing.Status + * @instance + */ + Status.prototype.recordUid = $util.newBuffer([]); + + /** + * Status of the request (success or error) + * @member {record.v3.sharing.SharingStatus} status + * @memberof record.v3.sharing.Status + * @instance + */ + Status.prototype.status = 0; + + /** + * Translatable, human-readable message + * @member {string} message + * @memberof record.v3.sharing.Status + * @instance + */ + Status.prototype.message = ""; + + /** + * XOR(userUid, teamUid); the recipient the record was shared with + * @member {Uint8Array} recipientUid + * @memberof record.v3.sharing.Status + * @instance + */ + Status.prototype.recipientUid = $util.newBuffer([]); + + /** + * Creates a new Status instance using the specified properties. + * @function create + * @memberof record.v3.sharing.Status + * @static + * @param {record.v3.sharing.IStatus=} [properties] Properties to set + * @returns {record.v3.sharing.Status} Status instance + */ + Status.create = function create(properties) { + return new Status(properties); + }; + + /** + * Encodes the specified Status message. Does not implicitly {@link record.v3.sharing.Status.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); + if (message.recipientUid != null && Object.hasOwnProperty.call(message, "recipientUid")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.recipientUid); + 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 + * @memberof record.v3.sharing.Status + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.sharing.Status(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.status = reader.int32(); + break; + } + case 3: { + message.message = reader.string(); + break; + } + case 4: { + message.recipientUid = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) + return "recordUid: buffer expected"; + if (message.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 + * @memberof record.v3.sharing.Status + * @static + * @param {Object.} object Plain object + * @returns {record.v3.sharing.Status} Status + */ + Status.fromObject = function fromObject(object) { + if (object instanceof $root.record.v3.sharing.Status) + return object; + let message = new $root.record.v3.sharing.Status(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; + case "SUCCESS": + case 0: + message.status = 0; + break; + case "PENDING_ACCEPT": + case 1: + message.status = 1; + break; + case "USER_NOT_FOUND": + case 2: + message.status = 2; + break; + case "ALREADY_SHARED": + case 3: + message.status = 3; + break; + case "NOT_ALLOWED_TO_SHARE": + case 4: + message.status = 4; + break; + case "ACCESS_DENIED": + case 5: + message.status = 5; + break; + case "NOT_ALLOWED_TO_SET_PERMISSIONS": + case 6: + message.status = 6; + break; + } + if (object.message != null) + message.message = String(object.message); + if (object.recipientUid != null) + if (typeof object.recipientUid === "string") + $util.base64.decode(object.recipientUid, message.recipientUid = $util.newBuffer($util.base64.length(object.recipientUid)), 0); + else if (object.recipientUid.length >= 0) + message.recipientUid = object.recipientUid; + return message; + }; + + /** + * Creates a plain object from a Status message. Also converts values to other types if specified. + * @function toObject + * @memberof record.v3.sharing.Status + * @static + * @param {record.v3.sharing.Status} message Status + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Status.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + object.status = options.enums === String ? "SUCCESS" : 0; + object.message = ""; + if (options.bytes === String) + object.recipientUid = ""; + else { + object.recipientUid = []; + if (options.bytes !== Array) + object.recipientUid = $util.newBuffer(object.recipientUid); + } + } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.status != null && message.hasOwnProperty("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")) + object.message = message.message; + if (message.recipientUid != null && message.hasOwnProperty("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; + }; + + /** + * Converts this Status to JSON. + * @function toJSON + * @memberof record.v3.sharing.Status + * @instance + * @returns {Object.} JSON object + */ + Status.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Status + * @function getTypeUrl + * @memberof record.v3.sharing.Status + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Status.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/record.v3.sharing.Status"; + }; + + return Status; + })(); + + /** + * SharingStatus enum. + * @name record.v3.sharing.SharingStatus + * @enum {number} + * @property {number} SUCCESS=0 SUCCESS value + * @property {number} PENDING_ACCEPT=1 PENDING_ACCEPT value + * @property {number} USER_NOT_FOUND=2 USER_NOT_FOUND value + * @property {number} ALREADY_SHARED=3 ALREADY_SHARED value + * @property {number} NOT_ALLOWED_TO_SHARE=4 NOT_ALLOWED_TO_SHARE value + * @property {number} ACCESS_DENIED=5 ACCESS_DENIED value + * @property {number} NOT_ALLOWED_TO_SET_PERMISSIONS=6 NOT_ALLOWED_TO_SET_PERMISSIONS value + */ + sharing.SharingStatus = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SUCCESS"] = 0; + values[valuesById[1] = "PENDING_ACCEPT"] = 1; + values[valuesById[2] = "USER_NOT_FOUND"] = 2; + values[valuesById[3] = "ALREADY_SHARED"] = 3; + values[valuesById[4] = "NOT_ALLOWED_TO_SHARE"] = 4; + values[valuesById[5] = "ACCESS_DENIED"] = 5; + values[valuesById[6] = "NOT_ALLOWED_TO_SET_PERMISSIONS"] = 6; + return values; + })(); + + sharing.RevokedAccess = (function() { + + /** + * Properties of a RevokedAccess. + * @memberof record.v3.sharing + * @interface IRevokedAccess + * @property {Uint8Array|null} [recordUid] the uid of the record whose access have been revoked + * @property {Uint8Array|null} [actorUid] the uid of actor whose access has been revoked. represents a User (an account) + */ + + /** + * Constructs a new RevokedAccess. + * @memberof record.v3.sharing + * @classdesc Represents a RevokedAccess. + * @implements IRevokedAccess + * @constructor + * @param {record.v3.sharing.IRevokedAccess=} [properties] Properties to set + */ + function RevokedAccess(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * the uid of the record whose access have been revoked + * @member {Uint8Array} recordUid + * @memberof record.v3.sharing.RevokedAccess + * @instance + */ + RevokedAccess.prototype.recordUid = $util.newBuffer([]); + + /** + * the uid of actor whose access has been revoked. represents a User (an account) + * @member {Uint8Array} actorUid + * @memberof record.v3.sharing.RevokedAccess + * @instance + */ + RevokedAccess.prototype.actorUid = $util.newBuffer([]); + + /** + * Creates a new RevokedAccess instance using the specified properties. + * @function create + * @memberof record.v3.sharing.RevokedAccess + * @static + * @param {record.v3.sharing.IRevokedAccess=} [properties] Properties to set + * @returns {record.v3.sharing.RevokedAccess} RevokedAccess instance + */ + RevokedAccess.create = function create(properties) { + return new RevokedAccess(properties); + }; + + /** + * Encodes the specified RevokedAccess message. Does not implicitly {@link record.v3.sharing.RevokedAccess.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.actorUid != null && Object.hasOwnProperty.call(message, "actorUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.actorUid); + 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 + * @memberof record.v3.sharing.RevokedAccess + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.sharing.RevokedAccess(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.actorUid = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) + return "recordUid: buffer expected"; + if (message.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 + * @memberof record.v3.sharing.RevokedAccess + * @static + * @param {Object.} object Plain object + * @returns {record.v3.sharing.RevokedAccess} RevokedAccess + */ + RevokedAccess.fromObject = function fromObject(object) { + if (object instanceof $root.record.v3.sharing.RevokedAccess) + return object; + let message = new $root.record.v3.sharing.RevokedAccess(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.actorUid != null) + if (typeof object.actorUid === "string") + $util.base64.decode(object.actorUid, message.actorUid = $util.newBuffer($util.base64.length(object.actorUid)), 0); + else if (object.actorUid.length >= 0) + message.actorUid = object.actorUid; + return message; + }; + + /** + * Creates a plain object from a RevokedAccess message. Also converts values to other types if specified. + * @function toObject + * @memberof record.v3.sharing.RevokedAccess + * @static + * @param {record.v3.sharing.RevokedAccess} message RevokedAccess + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RevokedAccess.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if (options.bytes === String) + object.actorUid = ""; + else { + object.actorUid = []; + if (options.bytes !== Array) + object.actorUid = $util.newBuffer(object.actorUid); + } + } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.actorUid != null && message.hasOwnProperty("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; + }; + + /** + * Converts this RevokedAccess to JSON. + * @function toJSON + * @memberof record.v3.sharing.RevokedAccess + * @instance + * @returns {Object.} JSON object + */ + RevokedAccess.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RevokedAccess + * @function getTypeUrl + * @memberof record.v3.sharing.RevokedAccess + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RevokedAccess.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/record.v3.sharing.RevokedAccess"; + }; + + return RevokedAccess; + })(); + + sharing.RecordSharingState = (function() { + + /** + * Properties of a RecordSharingState. + * @memberof record.v3.sharing + * @interface IRecordSharingState + * @property {Uint8Array|null} [recordUid] The UID of the record this sharing state relates to. + * @property {boolean|null} [isDirectlyShared] True if the record is directly shared with non-owner actors. + * @property {boolean|null} [isIndirectlyShared] True if the record is indirectly shared via folder access with non-owner actors. + * @property {boolean|null} [isShared] Synthetic convenience property: {@code isDirectlyShared || isIndirectlyShared}. + */ + + /** + * Constructs a new RecordSharingState. + * @memberof record.v3.sharing + * @classdesc Represents the sharing state of a single record. + * + *

This message captures whether a record is shared either directly (via explicit grants) + * or indirectly (via folder access). It includes a computed convenience field + * {@code isShared}, which is true if the record is shared through either mechanism. + * + *

This message is typically stored in a DAG edge and used by clients during sync + * @implements IRecordSharingState + * @constructor + * @param {record.v3.sharing.IRecordSharingState=} [properties] Properties to set + */ + function RecordSharingState(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * The UID of the record this sharing state relates to. + * @member {Uint8Array} recordUid + * @memberof record.v3.sharing.RecordSharingState + * @instance + */ + RecordSharingState.prototype.recordUid = $util.newBuffer([]); + + /** + * True if the record is directly shared with non-owner actors. + * @member {boolean} isDirectlyShared + * @memberof record.v3.sharing.RecordSharingState + * @instance + */ + RecordSharingState.prototype.isDirectlyShared = false; + + /** + * True if the record is indirectly shared via folder access with non-owner actors. + * @member {boolean} isIndirectlyShared + * @memberof record.v3.sharing.RecordSharingState + * @instance + */ + RecordSharingState.prototype.isIndirectlyShared = false; + + /** + * Synthetic convenience property: {@code isDirectlyShared || isIndirectlyShared}. + * @member {boolean} isShared + * @memberof record.v3.sharing.RecordSharingState + * @instance + */ + RecordSharingState.prototype.isShared = false; + + /** + * Creates a new RecordSharingState instance using the specified properties. + * @function create + * @memberof record.v3.sharing.RecordSharingState + * @static + * @param {record.v3.sharing.IRecordSharingState=} [properties] Properties to set + * @returns {record.v3.sharing.RecordSharingState} RecordSharingState instance + */ + RecordSharingState.create = function create(properties) { + return new RecordSharingState(properties); + }; + + /** + * Encodes the specified RecordSharingState message. Does not implicitly {@link record.v3.sharing.RecordSharingState.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.isDirectlyShared != null && Object.hasOwnProperty.call(message, "isDirectlyShared")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isDirectlyShared); + if (message.isIndirectlyShared != null && Object.hasOwnProperty.call(message, "isIndirectlyShared")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isIndirectlyShared); + if (message.isShared != null && Object.hasOwnProperty.call(message, "isShared")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isShared); + 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 + * @memberof record.v3.sharing.RecordSharingState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.sharing.RecordSharingState(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.isDirectlyShared = reader.bool(); + break; + } + case 3: { + message.isIndirectlyShared = reader.bool(); + break; + } + case 4: { + message.isShared = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) + return "recordUid: buffer expected"; + if (message.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 + * @memberof record.v3.sharing.RecordSharingState + * @static + * @param {Object.} object Plain object + * @returns {record.v3.sharing.RecordSharingState} RecordSharingState + */ + RecordSharingState.fromObject = function fromObject(object) { + if (object instanceof $root.record.v3.sharing.RecordSharingState) + return object; + let message = new $root.record.v3.sharing.RecordSharingState(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.isDirectlyShared != null) + message.isDirectlyShared = Boolean(object.isDirectlyShared); + if (object.isIndirectlyShared != null) + message.isIndirectlyShared = Boolean(object.isIndirectlyShared); + if (object.isShared != null) + message.isShared = Boolean(object.isShared); + return message; + }; + + /** + * Creates a plain object from a RecordSharingState message. Also converts values to other types if specified. + * @function toObject + * @memberof record.v3.sharing.RecordSharingState + * @static + * @param {record.v3.sharing.RecordSharingState} message RecordSharingState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordSharingState.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + object.isDirectlyShared = false; + object.isIndirectlyShared = false; + object.isShared = false; + } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.isDirectlyShared != null && message.hasOwnProperty("isDirectlyShared")) + object.isDirectlyShared = message.isDirectlyShared; + if (message.isIndirectlyShared != null && message.hasOwnProperty("isIndirectlyShared")) + object.isIndirectlyShared = message.isIndirectlyShared; + if (message.isShared != null && message.hasOwnProperty("isShared")) + object.isShared = message.isShared; + return object; + }; + + /** + * Converts this RecordSharingState to JSON. + * @function toJSON + * @memberof record.v3.sharing.RecordSharingState + * @instance + * @returns {Object.} JSON object + */ + RecordSharingState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecordSharingState + * @function getTypeUrl + * @memberof record.v3.sharing.RecordSharingState + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecordSharingState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/record.v3.sharing.RecordSharingState"; + }; + + return RecordSharingState; + })(); + + return sharing; + })(); + + v3.RecordsAddRequest = (function() { + + /** + * Properties of a RecordsAddRequest. + * @memberof record.v3 + * @interface IRecordsAddRequest + * @property {Array.|null} [records] RecordsAddRequest records + * @property {number|Long|null} [clientTime] RecordsAddRequest clientTime + * @property {Records.RecordKeyType|null} [securityDataKeyType] RecordsAddRequest securityDataKeyType + */ + + /** + * Constructs a new RecordsAddRequest. + * @memberof record.v3 + * @classdesc Represents a RecordsAddRequest. + * @implements IRecordsAddRequest + * @constructor + * @param {record.v3.IRecordsAddRequest=} [properties] Properties to set + */ + function RecordsAddRequest(properties) { + this.records = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RecordsAddRequest records. + * @member {Array.} records + * @memberof record.v3.RecordsAddRequest + * @instance + */ + RecordsAddRequest.prototype.records = $util.emptyArray; + + /** + * RecordsAddRequest clientTime. + * @member {number|Long} clientTime + * @memberof record.v3.RecordsAddRequest + * @instance + */ + RecordsAddRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * RecordsAddRequest securityDataKeyType. + * @member {Records.RecordKeyType} securityDataKeyType + * @memberof record.v3.RecordsAddRequest + * @instance + */ + RecordsAddRequest.prototype.securityDataKeyType = 0; + + /** + * Creates a new RecordsAddRequest instance using the specified properties. + * @function create + * @memberof record.v3.RecordsAddRequest + * @static + * @param {record.v3.IRecordsAddRequest=} [properties] Properties to set + * @returns {record.v3.RecordsAddRequest} RecordsAddRequest instance + */ + RecordsAddRequest.create = function create(properties) { + return new RecordsAddRequest(properties); + }; + + /** + * Encodes the specified RecordsAddRequest message. Does not implicitly {@link record.v3.RecordsAddRequest.verify|verify} messages. + * @function encode + * @memberof record.v3.RecordsAddRequest + * @static + * @param {record.v3.IRecordsAddRequest} message RecordsAddRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordsAddRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.records != null && message.records.length) + for (let i = 0; i < message.records.length; ++i) + $root.record.v3.RecordAdd.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); + if (message.securityDataKeyType != null && Object.hasOwnProperty.call(message, "securityDataKeyType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.securityDataKeyType); + return writer; + }; + + /** + * Encodes the specified RecordsAddRequest message, length delimited. Does not implicitly {@link record.v3.RecordsAddRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof record.v3.RecordsAddRequest + * @static + * @param {record.v3.IRecordsAddRequest} message RecordsAddRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordsAddRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RecordsAddRequest message from the specified reader or buffer. + * @function decode + * @memberof record.v3.RecordsAddRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {record.v3.RecordsAddRequest} RecordsAddRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordsAddRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.RecordsAddRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.records && message.records.length)) + message.records = []; + message.records.push($root.record.v3.RecordAdd.decode(reader, reader.uint32())); + break; + } + case 2: { + message.clientTime = reader.int64(); + break; + } + case 3: { + message.securityDataKeyType = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RecordsAddRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof record.v3.RecordsAddRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {record.v3.RecordsAddRequest} RecordsAddRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordsAddRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RecordsAddRequest message. + * @function verify + * @memberof record.v3.RecordsAddRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RecordsAddRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.records != null && message.hasOwnProperty("records")) { + if (!Array.isArray(message.records)) + return "records: array expected"; + for (let i = 0; i < message.records.length; ++i) { + let error = $root.record.v3.RecordAdd.verify(message.records[i]); + if (error) + return "records." + error; + } + } + if (message.clientTime != null && message.hasOwnProperty("clientTime")) + if (!$util.isInteger(message.clientTime) && !(message.clientTime && $util.isInteger(message.clientTime.low) && $util.isInteger(message.clientTime.high))) + return "clientTime: integer|Long expected"; + if (message.securityDataKeyType != null && message.hasOwnProperty("securityDataKeyType")) + switch (message.securityDataKeyType) { + default: + return "securityDataKeyType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + return null; + }; + + /** + * Creates a RecordsAddRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof record.v3.RecordsAddRequest + * @static + * @param {Object.} object Plain object + * @returns {record.v3.RecordsAddRequest} RecordsAddRequest + */ + RecordsAddRequest.fromObject = function fromObject(object) { + if (object instanceof $root.record.v3.RecordsAddRequest) + return object; + let message = new $root.record.v3.RecordsAddRequest(); + if (object.records) { + if (!Array.isArray(object.records)) + throw TypeError(".record.v3.RecordsAddRequest.records: array expected"); + message.records = []; + for (let i = 0; i < object.records.length; ++i) { + if (typeof object.records[i] !== "object") + throw TypeError(".record.v3.RecordsAddRequest.records: object expected"); + message.records[i] = $root.record.v3.RecordAdd.fromObject(object.records[i]); + } + } + if (object.clientTime != null) + if ($util.Long) + (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = false; + else if (typeof object.clientTime === "string") + message.clientTime = parseInt(object.clientTime, 10); + else if (typeof object.clientTime === "number") + message.clientTime = object.clientTime; + else if (typeof object.clientTime === "object") + message.clientTime = new $util.LongBits(object.clientTime.low >>> 0, object.clientTime.high >>> 0).toNumber(); + switch (object.securityDataKeyType) { + default: + if (typeof object.securityDataKeyType === "number") { + message.securityDataKeyType = object.securityDataKeyType; + break; + } + break; + case "NO_KEY": + case 0: + message.securityDataKeyType = 0; + break; + case "ENCRYPTED_BY_DATA_KEY": + case 1: + message.securityDataKeyType = 1; + break; + case "ENCRYPTED_BY_PUBLIC_KEY": + case 2: + message.securityDataKeyType = 2; + break; + case "ENCRYPTED_BY_DATA_KEY_GCM": + case 3: + message.securityDataKeyType = 3; + break; + case "ENCRYPTED_BY_PUBLIC_KEY_ECC": + case 4: + message.securityDataKeyType = 4; + break; + case "ENCRYPTED_BY_ROOT_KEY_CBC": + case 5: + message.securityDataKeyType = 5; + break; + case "ENCRYPTED_BY_ROOT_KEY_GCM": + case 6: + message.securityDataKeyType = 6; + break; + } + return message; + }; + + /** + * Creates a plain object from a RecordsAddRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof record.v3.RecordsAddRequest + * @static + * @param {record.v3.RecordsAddRequest} message RecordsAddRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordsAddRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.records = []; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.clientTime = options.longs === String ? "0" : 0; + object.securityDataKeyType = options.enums === String ? "NO_KEY" : 0; + } + if (message.records && message.records.length) { + object.records = []; + for (let j = 0; j < message.records.length; ++j) + object.records[j] = $root.record.v3.RecordAdd.toObject(message.records[j], options); + } + if (message.clientTime != null && message.hasOwnProperty("clientTime")) + if (typeof message.clientTime === "number") + object.clientTime = options.longs === String ? String(message.clientTime) : message.clientTime; + else + object.clientTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientTime) : options.longs === Number ? new $util.LongBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0).toNumber() : message.clientTime; + if (message.securityDataKeyType != null && message.hasOwnProperty("securityDataKeyType")) + object.securityDataKeyType = options.enums === String ? $root.Records.RecordKeyType[message.securityDataKeyType] === undefined ? message.securityDataKeyType : $root.Records.RecordKeyType[message.securityDataKeyType] : message.securityDataKeyType; + return object; + }; + + /** + * Converts this RecordsAddRequest to JSON. + * @function toJSON + * @memberof record.v3.RecordsAddRequest + * @instance + * @returns {Object.} JSON object + */ + RecordsAddRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecordsAddRequest + * @function getTypeUrl + * @memberof record.v3.RecordsAddRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecordsAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/record.v3.RecordsAddRequest"; + }; + + return RecordsAddRequest; + })(); + + v3.RecordAdd = (function() { + + /** + * Properties of a RecordAdd. + * @memberof record.v3 + * @interface IRecordAdd + * @property {Uint8Array|null} [recordUid] RecordAdd recordUid + * @property {Uint8Array|null} [recordKey] RecordAdd recordKey + * @property {Folder.EncryptedKeyType|null} [recordKeyType] RecordAdd recordKeyType + * @property {Folder.FolderKeyEncryptionType|null} [recordKeyEncryptedBy] Record creates in root folder is encrypted by user key. + * Record creates in non-root folder is encrypted by folder key. + * @property {number|Long|null} [clientModifiedTime] RecordAdd clientModifiedTime + * @property {Uint8Array|null} [data] RecordAdd data + * @property {Uint8Array|null} [nonSharedData] RecordAdd nonSharedData + * @property {Uint8Array|null} [folderUid] RecordAdd folderUid + * @property {Array.|null} [recordLinks] RecordAdd recordLinks + * @property {Records.IRecordAudit|null} [audit] RecordAdd audit + * @property {Records.ISecurityData|null} [securityData] RecordAdd securityData + * @property {Records.ISecurityScoreData|null} [securityScoreData] RecordAdd securityScoreData + */ + + /** + * Constructs a new RecordAdd. + * @memberof record.v3 + * @classdesc Represents a RecordAdd. + * @implements IRecordAdd + * @constructor + * @param {record.v3.IRecordAdd=} [properties] Properties to set + */ + function RecordAdd(properties) { + this.recordLinks = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RecordAdd recordUid. + * @member {Uint8Array} recordUid + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.recordUid = $util.newBuffer([]); + + /** + * RecordAdd recordKey. + * @member {Uint8Array} recordKey + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.recordKey = $util.newBuffer([]); + + /** + * RecordAdd recordKeyType. + * @member {Folder.EncryptedKeyType} recordKeyType + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.recordKeyType = 0; + + /** + * Record creates in root folder is encrypted by user key. + * Record creates in non-root folder is encrypted by folder key. + * @member {Folder.FolderKeyEncryptionType} recordKeyEncryptedBy + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.recordKeyEncryptedBy = 0; + + /** + * RecordAdd clientModifiedTime. + * @member {number|Long} clientModifiedTime + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * RecordAdd data. + * @member {Uint8Array} data + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.data = $util.newBuffer([]); + + /** + * RecordAdd nonSharedData. + * @member {Uint8Array} nonSharedData + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.nonSharedData = $util.newBuffer([]); + + /** + * RecordAdd folderUid. + * @member {Uint8Array} folderUid + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.folderUid = $util.newBuffer([]); + + /** + * RecordAdd recordLinks. + * @member {Array.} recordLinks + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.recordLinks = $util.emptyArray; + + /** + * RecordAdd audit. + * @member {Records.IRecordAudit|null|undefined} audit + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.audit = null; + + /** + * RecordAdd securityData. + * @member {Records.ISecurityData|null|undefined} securityData + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.securityData = null; + + /** + * RecordAdd securityScoreData. + * @member {Records.ISecurityScoreData|null|undefined} securityScoreData + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.securityScoreData = null; + + /** + * Creates a new RecordAdd instance using the specified properties. + * @function create + * @memberof record.v3.RecordAdd + * @static + * @param {record.v3.IRecordAdd=} [properties] Properties to set + * @returns {record.v3.RecordAdd} RecordAdd instance + */ + RecordAdd.create = function create(properties) { + return new RecordAdd(properties); + }; + + /** + * Encodes the specified RecordAdd message. Does not implicitly {@link record.v3.RecordAdd.verify|verify} messages. + * @function encode + * @memberof record.v3.RecordAdd + * @static + * @param {record.v3.IRecordAdd} message RecordAdd message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordAdd.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordKey); + if (message.recordKeyType != null && Object.hasOwnProperty.call(message, "recordKeyType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.recordKeyType); + if (message.recordKeyEncryptedBy != null && Object.hasOwnProperty.call(message, "recordKeyEncryptedBy")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.recordKeyEncryptedBy); + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.clientModifiedTime); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.data); + if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "nonSharedData")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.nonSharedData); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.folderUid); + if (message.recordLinks != null && message.recordLinks.length) + for (let i = 0; i < message.recordLinks.length; ++i) + $root.Records.RecordLink.encode(message.recordLinks[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) + $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.securityData != null && Object.hasOwnProperty.call(message, "securityData")) + $root.Records.SecurityData.encode(message.securityData, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.securityScoreData != null && Object.hasOwnProperty.call(message, "securityScoreData")) + $root.Records.SecurityScoreData.encode(message.securityScoreData, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RecordAdd message, length delimited. Does not implicitly {@link record.v3.RecordAdd.verify|verify} messages. + * @function encodeDelimited + * @memberof record.v3.RecordAdd + * @static + * @param {record.v3.IRecordAdd} message RecordAdd message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordAdd.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RecordAdd message from the specified reader or buffer. + * @function decode + * @memberof record.v3.RecordAdd + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {record.v3.RecordAdd} RecordAdd + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordAdd.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.RecordAdd(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.recordKey = reader.bytes(); + break; + } + case 3: { + message.recordKeyType = reader.int32(); + break; + } + case 4: { + message.recordKeyEncryptedBy = reader.int32(); + break; + } + case 5: { + message.clientModifiedTime = reader.int64(); + break; + } + case 6: { + message.data = reader.bytes(); + break; + } + case 7: { + message.nonSharedData = reader.bytes(); + break; + } + case 8: { + message.folderUid = reader.bytes(); + break; + } + case 9: { + if (!(message.recordLinks && message.recordLinks.length)) + message.recordLinks = []; + message.recordLinks.push($root.Records.RecordLink.decode(reader, reader.uint32())); + break; + } + case 10: { + message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); + break; + } + case 11: { + message.securityData = $root.Records.SecurityData.decode(reader, reader.uint32()); + break; + } + case 12: { + message.securityScoreData = $root.Records.SecurityScoreData.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RecordAdd message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof record.v3.RecordAdd + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {record.v3.RecordAdd} RecordAdd + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordAdd.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RecordAdd message. + * @function verify + * @memberof record.v3.RecordAdd + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RecordAdd.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) + return "recordUid: buffer expected"; + if (message.recordKey != null && message.hasOwnProperty("recordKey")) + if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) + return "recordKey: buffer expected"; + if (message.recordKeyType != null && message.hasOwnProperty("recordKeyType")) + switch (message.recordKeyType) { + default: + return "recordKeyType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.recordKeyEncryptedBy != null && message.hasOwnProperty("recordKeyEncryptedBy")) + switch (message.recordKeyEncryptedBy) { + default: + return "recordKeyEncryptedBy: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) + if (!$util.isInteger(message.clientModifiedTime) && !(message.clientModifiedTime && $util.isInteger(message.clientModifiedTime.low) && $util.isInteger(message.clientModifiedTime.high))) + return "clientModifiedTime: integer|Long expected"; + if (message.data != null && message.hasOwnProperty("data")) + if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) + return "data: buffer expected"; + if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) + if (!(message.nonSharedData && typeof message.nonSharedData.length === "number" || $util.isString(message.nonSharedData))) + return "nonSharedData: buffer expected"; + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) + return "folderUid: buffer expected"; + if (message.recordLinks != null && message.hasOwnProperty("recordLinks")) { + if (!Array.isArray(message.recordLinks)) + return "recordLinks: array expected"; + for (let i = 0; i < message.recordLinks.length; ++i) { + let error = $root.Records.RecordLink.verify(message.recordLinks[i]); + if (error) + return "recordLinks." + error; + } + } + if (message.audit != null && message.hasOwnProperty("audit")) { + let error = $root.Records.RecordAudit.verify(message.audit); + if (error) + return "audit." + error; + } + if (message.securityData != null && message.hasOwnProperty("securityData")) { + let error = $root.Records.SecurityData.verify(message.securityData); + if (error) + return "securityData." + error; + } + if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) { + let error = $root.Records.SecurityScoreData.verify(message.securityScoreData); + if (error) + return "securityScoreData." + error; + } + return null; + }; + + /** + * Creates a RecordAdd message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof record.v3.RecordAdd + * @static + * @param {Object.} object Plain object + * @returns {record.v3.RecordAdd} RecordAdd + */ + RecordAdd.fromObject = function fromObject(object) { + if (object instanceof $root.record.v3.RecordAdd) + return object; + let message = new $root.record.v3.RecordAdd(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.recordKey != null) + if (typeof object.recordKey === "string") + $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); + else if (object.recordKey.length >= 0) + message.recordKey = object.recordKey; + switch (object.recordKeyType) { + default: + if (typeof object.recordKeyType === "number") { + message.recordKeyType = object.recordKeyType; + break; + } + break; + case "no_key": + case 0: + message.recordKeyType = 0; + break; + case "encrypted_by_data_key": + case 1: + message.recordKeyType = 1; + break; + case "encrypted_by_public_key": + case 2: + message.recordKeyType = 2; + break; + case "encrypted_by_data_key_gcm": + case 3: + message.recordKeyType = 3; + break; + case "encrypted_by_public_key_ecc": + case 4: + message.recordKeyType = 4; + break; + } + switch (object.recordKeyEncryptedBy) { + default: + if (typeof object.recordKeyEncryptedBy === "number") { + message.recordKeyEncryptedBy = object.recordKeyEncryptedBy; + break; + } + break; + case "ENCRYPTED_BY_USER_KEY": + case 0: + message.recordKeyEncryptedBy = 0; + break; + case "ENCRYPTED_BY_PARENT_KEY": + case 1: + message.recordKeyEncryptedBy = 1; + break; + case "ENCRYPTED_BY_TEAM_KEY": + case 2: + message.recordKeyEncryptedBy = 2; + break; + } + if (object.clientModifiedTime != null) + if ($util.Long) + (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; + else if (typeof object.clientModifiedTime === "string") + message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); + else if (typeof object.clientModifiedTime === "number") + message.clientModifiedTime = object.clientModifiedTime; + else if (typeof object.clientModifiedTime === "object") + message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + if (object.nonSharedData != null) + if (typeof object.nonSharedData === "string") + $util.base64.decode(object.nonSharedData, message.nonSharedData = $util.newBuffer($util.base64.length(object.nonSharedData)), 0); + else if (object.nonSharedData.length >= 0) + message.nonSharedData = object.nonSharedData; + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.recordLinks) { + if (!Array.isArray(object.recordLinks)) + throw TypeError(".record.v3.RecordAdd.recordLinks: array expected"); + message.recordLinks = []; + for (let i = 0; i < object.recordLinks.length; ++i) { + if (typeof object.recordLinks[i] !== "object") + throw TypeError(".record.v3.RecordAdd.recordLinks: object expected"); + message.recordLinks[i] = $root.Records.RecordLink.fromObject(object.recordLinks[i]); + } + } + if (object.audit != null) { + if (typeof object.audit !== "object") + throw TypeError(".record.v3.RecordAdd.audit: object expected"); + message.audit = $root.Records.RecordAudit.fromObject(object.audit); + } + if (object.securityData != null) { + if (typeof object.securityData !== "object") + throw TypeError(".record.v3.RecordAdd.securityData: object expected"); + message.securityData = $root.Records.SecurityData.fromObject(object.securityData); + } + if (object.securityScoreData != null) { + if (typeof object.securityScoreData !== "object") + throw TypeError(".record.v3.RecordAdd.securityScoreData: object expected"); + message.securityScoreData = $root.Records.SecurityScoreData.fromObject(object.securityScoreData); + } + return message; + }; + + /** + * Creates a plain object from a RecordAdd message. Also converts values to other types if specified. + * @function toObject + * @memberof record.v3.RecordAdd + * @static + * @param {record.v3.RecordAdd} message RecordAdd + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordAdd.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.recordLinks = []; + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if (options.bytes === String) + object.recordKey = ""; + else { + object.recordKey = []; + if (options.bytes !== Array) + object.recordKey = $util.newBuffer(object.recordKey); + } + object.recordKeyType = options.enums === String ? "no_key" : 0; + object.recordKeyEncryptedBy = options.enums === String ? "ENCRYPTED_BY_USER_KEY" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.clientModifiedTime = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + if (options.bytes === String) + object.nonSharedData = ""; + else { + object.nonSharedData = []; + if (options.bytes !== Array) + object.nonSharedData = $util.newBuffer(object.nonSharedData); + } + if (options.bytes === String) + object.folderUid = ""; + else { + object.folderUid = []; + if (options.bytes !== Array) + object.folderUid = $util.newBuffer(object.folderUid); + } + object.audit = null; + object.securityData = null; + object.securityScoreData = null; + } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.recordKey != null && message.hasOwnProperty("recordKey")) + object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; + if (message.recordKeyType != null && message.hasOwnProperty("recordKeyType")) + object.recordKeyType = options.enums === String ? $root.Folder.EncryptedKeyType[message.recordKeyType] === undefined ? message.recordKeyType : $root.Folder.EncryptedKeyType[message.recordKeyType] : message.recordKeyType; + if (message.recordKeyEncryptedBy != null && message.hasOwnProperty("recordKeyEncryptedBy")) + object.recordKeyEncryptedBy = options.enums === String ? $root.Folder.FolderKeyEncryptionType[message.recordKeyEncryptedBy] === undefined ? message.recordKeyEncryptedBy : $root.Folder.FolderKeyEncryptionType[message.recordKeyEncryptedBy] : message.recordKeyEncryptedBy; + if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) + if (typeof message.clientModifiedTime === "number") + object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; + else + object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) + object.nonSharedData = options.bytes === String ? $util.base64.encode(message.nonSharedData, 0, message.nonSharedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.nonSharedData) : message.nonSharedData; + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.recordLinks && message.recordLinks.length) { + object.recordLinks = []; + for (let j = 0; j < message.recordLinks.length; ++j) + object.recordLinks[j] = $root.Records.RecordLink.toObject(message.recordLinks[j], options); + } + if (message.audit != null && message.hasOwnProperty("audit")) + object.audit = $root.Records.RecordAudit.toObject(message.audit, options); + if (message.securityData != null && message.hasOwnProperty("securityData")) + object.securityData = $root.Records.SecurityData.toObject(message.securityData, options); + if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) + object.securityScoreData = $root.Records.SecurityScoreData.toObject(message.securityScoreData, options); + return object; + }; + + /** + * Converts this RecordAdd to JSON. + * @function toJSON + * @memberof record.v3.RecordAdd + * @instance + * @returns {Object.} JSON object + */ + RecordAdd.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecordAdd + * @function getTypeUrl + * @memberof record.v3.RecordAdd + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecordAdd.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/record.v3.RecordAdd"; + }; + + return RecordAdd; + })(); + + return v3; + })(); + + return record; +})(); + +export const Upsell = $root.Upsell = (() => { + + /** + * Namespace Upsell. + * @exports Upsell + * @namespace + */ + const Upsell = {}; + + Upsell.UpsellRequest = (function() { + + /** + * Properties of an UpsellRequest. + * @memberof Upsell + * @interface IUpsellRequest + * @property {string|null} [email] UpsellRequest email + * @property {string|null} [locale] UpsellRequest locale + * @property {string|null} [clientVersion] UpsellRequest clientVersion + * @property {string|null} [sessionToken] UpsellRequest sessionToken + */ + + /** + * Constructs a new UpsellRequest. + * @memberof Upsell + * @classdesc Represents an UpsellRequest. + * @implements IUpsellRequest + * @constructor + * @param {Upsell.IUpsellRequest=} [properties] Properties to set + */ + function UpsellRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpsellRequest email. + * @member {string} email + * @memberof Upsell.UpsellRequest + * @instance + */ + UpsellRequest.prototype.email = ""; + + /** + * UpsellRequest locale. + * @member {string} locale + * @memberof Upsell.UpsellRequest + * @instance + */ + UpsellRequest.prototype.locale = ""; + + /** + * UpsellRequest clientVersion. + * @member {string} clientVersion + * @memberof Upsell.UpsellRequest + * @instance + */ + UpsellRequest.prototype.clientVersion = ""; + + /** + * UpsellRequest sessionToken. + * @member {string} sessionToken + * @memberof Upsell.UpsellRequest + * @instance + */ + UpsellRequest.prototype.sessionToken = ""; + + /** + * Creates a new UpsellRequest instance using the specified properties. + * @function create + * @memberof Upsell.UpsellRequest + * @static + * @param {Upsell.IUpsellRequest=} [properties] Properties to set + * @returns {Upsell.UpsellRequest} UpsellRequest instance + */ + UpsellRequest.create = function create(properties) { + return new UpsellRequest(properties); + }; + + /** + * Encodes the specified UpsellRequest message. Does not implicitly {@link Upsell.UpsellRequest.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.email != null && Object.hasOwnProperty.call(message, "email")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); + if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.locale); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clientVersion); + if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.sessionToken); + 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 + * @memberof Upsell.UpsellRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Upsell.UpsellRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.email = reader.string(); + break; + } + case 2: { + message.locale = reader.string(); + break; + } + case 3: { + message.clientVersion = reader.string(); + break; + } + case 4: { + message.sessionToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof Upsell.UpsellRequest + * @static + * @param {Object.} object Plain object + * @returns {Upsell.UpsellRequest} UpsellRequest + */ + UpsellRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Upsell.UpsellRequest) + return object; + let message = new $root.Upsell.UpsellRequest(); + if (object.email != null) + message.email = String(object.email); + if (object.locale != null) + message.locale = String(object.locale); + if (object.clientVersion != null) + message.clientVersion = String(object.clientVersion); + if (object.sessionToken != null) + message.sessionToken = String(object.sessionToken); + return message; + }; + + /** + * Creates a plain object from an UpsellRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof Upsell.UpsellRequest + * @static + * @param {Upsell.UpsellRequest} message UpsellRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpsellRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.email = ""; + object.locale = ""; + object.clientVersion = ""; + object.sessionToken = ""; + } + if (message.email != null && message.hasOwnProperty("email")) + object.email = message.email; + if (message.locale != null && message.hasOwnProperty("locale")) + object.locale = message.locale; + if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + object.clientVersion = message.clientVersion; + if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) + object.sessionToken = message.sessionToken; + return object; + }; + + /** + * Converts this UpsellRequest to JSON. + * @function toJSON + * @memberof Upsell.UpsellRequest + * @instance + * @returns {Object.} JSON object + */ + UpsellRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpsellRequest + * @function getTypeUrl + * @memberof Upsell.UpsellRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpsellRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Upsell.UpsellRequest"; + }; + + return UpsellRequest; + })(); + + Upsell.UpsellResponse = (function() { + + /** + * Properties of an UpsellResponse. + * @memberof Upsell + * @interface IUpsellResponse + * @property {Array.|null} [UpsellBanner] UpsellResponse UpsellBanner + */ + + /** + * Constructs a new UpsellResponse. + * @memberof Upsell + * @classdesc Represents an UpsellResponse. + * @implements IUpsellResponse + * @constructor + * @param {Upsell.IUpsellResponse=} [properties] Properties to set + */ + function UpsellResponse(properties) { + this.UpsellBanner = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpsellResponse UpsellBanner. + * @member {Array.} UpsellBanner + * @memberof Upsell.UpsellResponse + * @instance + */ + UpsellResponse.prototype.UpsellBanner = $util.emptyArray; + + /** + * Creates a new UpsellResponse instance using the specified properties. + * @function create + * @memberof Upsell.UpsellResponse + * @static + * @param {Upsell.IUpsellResponse=} [properties] Properties to set + * @returns {Upsell.UpsellResponse} UpsellResponse instance + */ + UpsellResponse.create = function create(properties) { + return new UpsellResponse(properties); + }; + + /** + * Encodes the specified UpsellResponse message. Does not implicitly {@link Upsell.UpsellResponse.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.UpsellBanner != null && message.UpsellBanner.length) + for (let i = 0; i < message.UpsellBanner.length; ++i) + $root.Upsell.UpsellBanner.encode(message.UpsellBanner[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + 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 + * @memberof Upsell.UpsellResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Upsell.UpsellResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.UpsellBanner && message.UpsellBanner.length)) + message.UpsellBanner = []; + message.UpsellBanner.push($root.Upsell.UpsellBanner.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + 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 + * @memberof Upsell.UpsellResponse + * @static + * @param {Object.} object Plain object + * @returns {Upsell.UpsellResponse} UpsellResponse + */ + UpsellResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Upsell.UpsellResponse) + return object; + let message = new $root.Upsell.UpsellResponse(); + if (object.UpsellBanner) { + if (!Array.isArray(object.UpsellBanner)) + throw TypeError(".Upsell.UpsellResponse.UpsellBanner: array expected"); + message.UpsellBanner = []; + for (let i = 0; i < object.UpsellBanner.length; ++i) { + if (typeof object.UpsellBanner[i] !== "object") + throw TypeError(".Upsell.UpsellResponse.UpsellBanner: object expected"); + message.UpsellBanner[i] = $root.Upsell.UpsellBanner.fromObject(object.UpsellBanner[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an UpsellResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof Upsell.UpsellResponse + * @static + * @param {Upsell.UpsellResponse} message UpsellResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpsellResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.UpsellBanner = []; + if (message.UpsellBanner && message.UpsellBanner.length) { + object.UpsellBanner = []; + for (let j = 0; j < message.UpsellBanner.length; ++j) + object.UpsellBanner[j] = $root.Upsell.UpsellBanner.toObject(message.UpsellBanner[j], options); + } + return object; + }; + + /** + * Converts this UpsellResponse to JSON. + * @function toJSON + * @memberof Upsell.UpsellResponse + * @instance + * @returns {Object.} JSON object + */ + UpsellResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpsellResponse + * @function getTypeUrl + * @memberof Upsell.UpsellResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpsellResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Upsell.UpsellResponse"; + }; + + return UpsellResponse; + })(); + + Upsell.UpsellBanner = (function() { + + /** + * Properties of an UpsellBanner. + * @memberof Upsell + * @interface IUpsellBanner + * @property {number|null} [bannerId] UpsellBanner bannerId + * @property {string|null} [bannerOkAction] UpsellBanner bannerOkAction + * @property {string|null} [bannerOkButton] UpsellBanner bannerOkButton + * @property {string|null} [bannerCancelAction] UpsellBanner bannerCancelAction + * @property {string|null} [bannerCancelButton] UpsellBanner bannerCancelButton + * @property {string|null} [bannerMessage] UpsellBanner bannerMessage + * @property {string|null} [locale] UpsellBanner locale + */ + + /** + * Constructs a new UpsellBanner. + * @memberof Upsell + * @classdesc Represents an UpsellBanner. + * @implements IUpsellBanner + * @constructor + * @param {Upsell.IUpsellBanner=} [properties] Properties to set + */ + function UpsellBanner(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpsellBanner bannerId. + * @member {number} bannerId + * @memberof Upsell.UpsellBanner + * @instance + */ + UpsellBanner.prototype.bannerId = 0; + + /** + * UpsellBanner bannerOkAction. + * @member {string} bannerOkAction + * @memberof Upsell.UpsellBanner + * @instance + */ + UpsellBanner.prototype.bannerOkAction = ""; + + /** + * UpsellBanner bannerOkButton. + * @member {string} bannerOkButton + * @memberof Upsell.UpsellBanner + * @instance + */ + UpsellBanner.prototype.bannerOkButton = ""; + + /** + * UpsellBanner bannerCancelAction. + * @member {string} bannerCancelAction + * @memberof Upsell.UpsellBanner + * @instance + */ + UpsellBanner.prototype.bannerCancelAction = ""; + + /** + * UpsellBanner bannerCancelButton. + * @member {string} bannerCancelButton + * @memberof Upsell.UpsellBanner + * @instance + */ + UpsellBanner.prototype.bannerCancelButton = ""; + + /** + * UpsellBanner bannerMessage. + * @member {string} bannerMessage + * @memberof Upsell.UpsellBanner + * @instance + */ + UpsellBanner.prototype.bannerMessage = ""; + + /** + * UpsellBanner locale. + * @member {string} locale + * @memberof Upsell.UpsellBanner + * @instance + */ + UpsellBanner.prototype.locale = ""; + + /** + * Creates a new UpsellBanner instance using the specified properties. + * @function create + * @memberof Upsell.UpsellBanner + * @static + * @param {Upsell.IUpsellBanner=} [properties] Properties to set + * @returns {Upsell.UpsellBanner} UpsellBanner instance + */ + UpsellBanner.create = function create(properties) { + return new UpsellBanner(properties); + }; + + /** + * Encodes the specified UpsellBanner message. Does not implicitly {@link Upsell.UpsellBanner.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bannerId != null && Object.hasOwnProperty.call(message, "bannerId")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.bannerId); + if (message.bannerOkAction != null && Object.hasOwnProperty.call(message, "bannerOkAction")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.bannerOkAction); + if (message.bannerOkButton != null && Object.hasOwnProperty.call(message, "bannerOkButton")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.bannerOkButton); + if (message.bannerCancelAction != null && Object.hasOwnProperty.call(message, "bannerCancelAction")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.bannerCancelAction); + if (message.bannerCancelButton != null && Object.hasOwnProperty.call(message, "bannerCancelButton")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.bannerCancelButton); + if (message.bannerMessage != null && Object.hasOwnProperty.call(message, "bannerMessage")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.bannerMessage); + if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.locale); + 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 + * @memberof Upsell.UpsellBanner + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Upsell.UpsellBanner(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.bannerId = reader.int32(); + break; + } + case 2: { + message.bannerOkAction = reader.string(); + break; + } + case 3: { + message.bannerOkButton = reader.string(); + break; + } + case 4: { + message.bannerCancelAction = reader.string(); + break; + } + case 5: { + message.bannerCancelButton = reader.string(); + break; + } + case 6: { + message.bannerMessage = reader.string(); + break; + } + case 7: { + message.locale = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof Upsell.UpsellBanner + * @static + * @param {Object.} object Plain object + * @returns {Upsell.UpsellBanner} UpsellBanner + */ + UpsellBanner.fromObject = function fromObject(object) { + if (object instanceof $root.Upsell.UpsellBanner) + return object; + let message = new $root.Upsell.UpsellBanner(); + if (object.bannerId != null) + message.bannerId = object.bannerId | 0; + if (object.bannerOkAction != null) + message.bannerOkAction = String(object.bannerOkAction); + if (object.bannerOkButton != null) + message.bannerOkButton = String(object.bannerOkButton); + if (object.bannerCancelAction != null) + message.bannerCancelAction = String(object.bannerCancelAction); + if (object.bannerCancelButton != null) + message.bannerCancelButton = String(object.bannerCancelButton); + if (object.bannerMessage != null) + message.bannerMessage = String(object.bannerMessage); + if (object.locale != null) + message.locale = String(object.locale); + return message; + }; + + /** + * Creates a plain object from an UpsellBanner message. Also converts values to other types if specified. + * @function toObject + * @memberof Upsell.UpsellBanner + * @static + * @param {Upsell.UpsellBanner} message UpsellBanner + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpsellBanner.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.bannerId = 0; + object.bannerOkAction = ""; + object.bannerOkButton = ""; + object.bannerCancelAction = ""; + object.bannerCancelButton = ""; + object.bannerMessage = ""; + object.locale = ""; + } + if (message.bannerId != null && message.hasOwnProperty("bannerId")) + object.bannerId = message.bannerId; + if (message.bannerOkAction != null && message.hasOwnProperty("bannerOkAction")) + object.bannerOkAction = message.bannerOkAction; + if (message.bannerOkButton != null && message.hasOwnProperty("bannerOkButton")) + object.bannerOkButton = message.bannerOkButton; + if (message.bannerCancelAction != null && message.hasOwnProperty("bannerCancelAction")) + object.bannerCancelAction = message.bannerCancelAction; + if (message.bannerCancelButton != null && message.hasOwnProperty("bannerCancelButton")) + object.bannerCancelButton = message.bannerCancelButton; + if (message.bannerMessage != null && message.hasOwnProperty("bannerMessage")) + object.bannerMessage = message.bannerMessage; + if (message.locale != null && message.hasOwnProperty("locale")) + object.locale = message.locale; + return object; + }; + + /** + * Converts this UpsellBanner to JSON. + * @function toJSON + * @memberof Upsell.UpsellBanner + * @instance + * @returns {Object.} JSON object + */ + UpsellBanner.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpsellBanner + * @function getTypeUrl + * @memberof Upsell.UpsellBanner + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpsellBanner.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Upsell.UpsellBanner"; + }; + + return UpsellBanner; + })(); + + /** + * ClientType enum. + * @name Upsell.ClientType + * @enum {number} + * @property {number} DEFAULT_CLIENT_TYPE=0 DEFAULT_CLIENT_TYPE value + * @property {number} ALL=1 ALL value + * @property {number} ANDROID=2 ANDROID value + * @property {number} IOS=3 IOS value + * @property {number} MICROSOFT=4 MICROSOFT value + * @property {number} WEBAPP=5 WEBAPP value + */ + Upsell.ClientType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DEFAULT_CLIENT_TYPE"] = 0; + values[valuesById[1] = "ALL"] = 1; + values[valuesById[2] = "ANDROID"] = 2; + values[valuesById[3] = "IOS"] = 3; + values[valuesById[4] = "MICROSOFT"] = 4; + values[valuesById[5] = "WEBAPP"] = 5; + return values; + })(); + + /** + * ClientVersion enum. + * @name Upsell.ClientVersion + * @enum {number} + * @property {number} DEFAULT_VERSION=0 DEFAULT_VERSION value + * @property {number} SUPPORTS_ALL=1 SUPPORTS_ALL value + * @property {number} BASEVERSION=14 BASEVERSION value + * @property {number} ABOVERANGE=15 ABOVERANGE value + */ + Upsell.ClientVersion = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DEFAULT_VERSION"] = 0; + values[valuesById[1] = "SUPPORTS_ALL"] = 1; + values[valuesById[14] = "BASEVERSION"] = 14; + values[valuesById[15] = "ABOVERANGE"] = 15; + return values; + })(); + + return Upsell; +})(); + +export const BI = $root.BI = (() => { + + /** + * Namespace BI. + * @exports BI + * @namespace + */ + const BI = {}; + + /** + * Currency enum. + * @name BI.Currency + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} USD=1 USD value + * @property {number} GBP=2 GBP value + * @property {number} JPY=3 JPY value + * @property {number} EUR=4 EUR value + * @property {number} AUD=5 AUD value + * @property {number} CAD=6 CAD value + */ + BI.Currency = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "USD"] = 1; + values[valuesById[2] = "GBP"] = 2; + values[valuesById[3] = "JPY"] = 3; + values[valuesById[4] = "EUR"] = 4; + values[valuesById[5] = "AUD"] = 5; + values[valuesById[6] = "CAD"] = 6; + return values; + })(); + + BI.ValidateSessionTokenRequest = (function() { + + /** + * Properties of a ValidateSessionTokenRequest. + * @memberof BI + * @interface IValidateSessionTokenRequest + * @property {Uint8Array|null} [encryptedSessionToken] ValidateSessionTokenRequest encryptedSessionToken + * @property {boolean|null} [returnMcEnterpiseIds] ValidateSessionTokenRequest returnMcEnterpiseIds + * @property {string|null} [ip] ValidateSessionTokenRequest ip + */ + + /** + * Constructs a new ValidateSessionTokenRequest. + * @memberof BI + * @classdesc Represents a ValidateSessionTokenRequest. + * @implements IValidateSessionTokenRequest + * @constructor + * @param {BI.IValidateSessionTokenRequest=} [properties] Properties to set + */ + function ValidateSessionTokenRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ValidateSessionTokenRequest encryptedSessionToken. + * @member {Uint8Array} encryptedSessionToken + * @memberof BI.ValidateSessionTokenRequest + * @instance + */ + ValidateSessionTokenRequest.prototype.encryptedSessionToken = $util.newBuffer([]); + + /** + * ValidateSessionTokenRequest returnMcEnterpiseIds. + * @member {boolean} returnMcEnterpiseIds + * @memberof BI.ValidateSessionTokenRequest + * @instance + */ + ValidateSessionTokenRequest.prototype.returnMcEnterpiseIds = false; + + /** + * ValidateSessionTokenRequest ip. + * @member {string} ip + * @memberof BI.ValidateSessionTokenRequest + * @instance + */ + ValidateSessionTokenRequest.prototype.ip = ""; + + /** + * Creates a new ValidateSessionTokenRequest instance using the specified properties. + * @function create + * @memberof BI.ValidateSessionTokenRequest + * @static + * @param {BI.IValidateSessionTokenRequest=} [properties] Properties to set + * @returns {BI.ValidateSessionTokenRequest} ValidateSessionTokenRequest instance + */ + ValidateSessionTokenRequest.create = function create(properties) { + return new ValidateSessionTokenRequest(properties); + }; + + /** + * Encodes the specified ValidateSessionTokenRequest message. Does not implicitly {@link BI.ValidateSessionTokenRequest.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedSessionToken); + if (message.returnMcEnterpiseIds != null && Object.hasOwnProperty.call(message, "returnMcEnterpiseIds")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.returnMcEnterpiseIds); + if (message.ip != null && Object.hasOwnProperty.call(message, "ip")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.ip); + 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 + * @memberof BI.ValidateSessionTokenRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ValidateSessionTokenRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.encryptedSessionToken = reader.bytes(); + break; + } + case 2: { + message.returnMcEnterpiseIds = reader.bool(); + break; + } + case 3: { + message.ip = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.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 + * @memberof BI.ValidateSessionTokenRequest + * @static + * @param {Object.} object Plain object + * @returns {BI.ValidateSessionTokenRequest} ValidateSessionTokenRequest + */ + ValidateSessionTokenRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.ValidateSessionTokenRequest) + return object; + let message = new $root.BI.ValidateSessionTokenRequest(); + if (object.encryptedSessionToken != null) + if (typeof object.encryptedSessionToken === "string") + $util.base64.decode(object.encryptedSessionToken, message.encryptedSessionToken = $util.newBuffer($util.base64.length(object.encryptedSessionToken)), 0); + else if (object.encryptedSessionToken.length >= 0) + message.encryptedSessionToken = object.encryptedSessionToken; + if (object.returnMcEnterpiseIds != null) + message.returnMcEnterpiseIds = Boolean(object.returnMcEnterpiseIds); + if (object.ip != null) + message.ip = String(object.ip); + return message; + }; + + /** + * Creates a plain object from a ValidateSessionTokenRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.ValidateSessionTokenRequest + * @static + * @param {BI.ValidateSessionTokenRequest} message ValidateSessionTokenRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ValidateSessionTokenRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.encryptedSessionToken = ""; + else { + object.encryptedSessionToken = []; + if (options.bytes !== Array) + object.encryptedSessionToken = $util.newBuffer(object.encryptedSessionToken); + } + object.returnMcEnterpiseIds = false; + object.ip = ""; + } + if (message.encryptedSessionToken != null && message.hasOwnProperty("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")) + object.returnMcEnterpiseIds = message.returnMcEnterpiseIds; + if (message.ip != null && message.hasOwnProperty("ip")) + object.ip = message.ip; + return object; + }; + + /** + * Converts this ValidateSessionTokenRequest to JSON. + * @function toJSON + * @memberof BI.ValidateSessionTokenRequest + * @instance + * @returns {Object.} JSON object + */ + ValidateSessionTokenRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ValidateSessionTokenRequest + * @function getTypeUrl + * @memberof BI.ValidateSessionTokenRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ValidateSessionTokenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.ValidateSessionTokenRequest"; + }; + + return ValidateSessionTokenRequest; + })(); + + BI.ValidateSessionTokenResponse = (function() { + + /** + * Properties of a ValidateSessionTokenResponse. + * @memberof BI + * @interface IValidateSessionTokenResponse + * @property {string|null} [username] ValidateSessionTokenResponse username + * @property {number|null} [userId] ValidateSessionTokenResponse userId + * @property {number|Long|null} [enterpriseUserId] ValidateSessionTokenResponse enterpriseUserId + * @property {BI.ValidateSessionTokenResponse.Status|null} [status] ValidateSessionTokenResponse status + * @property {string|null} [statusMessage] ValidateSessionTokenResponse statusMessage + * @property {Array.|null} [mcEnterpriseIds] ValidateSessionTokenResponse mcEnterpriseIds + * @property {boolean|null} [hasMSPPermission] ValidateSessionTokenResponse hasMSPPermission + * @property {Array.|null} [deletedMcEnterpriseIds] ValidateSessionTokenResponse deletedMcEnterpriseIds + */ + + /** + * Constructs a new ValidateSessionTokenResponse. + * @memberof BI + * @classdesc Represents a ValidateSessionTokenResponse. + * @implements IValidateSessionTokenResponse + * @constructor + * @param {BI.IValidateSessionTokenResponse=} [properties] Properties to set + */ + function ValidateSessionTokenResponse(properties) { + this.mcEnterpriseIds = []; + this.deletedMcEnterpriseIds = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ValidateSessionTokenResponse username. + * @member {string} username + * @memberof BI.ValidateSessionTokenResponse + * @instance + */ + ValidateSessionTokenResponse.prototype.username = ""; + + /** + * ValidateSessionTokenResponse userId. + * @member {number} userId + * @memberof BI.ValidateSessionTokenResponse + * @instance + */ + ValidateSessionTokenResponse.prototype.userId = 0; + + /** + * ValidateSessionTokenResponse enterpriseUserId. + * @member {number|Long} enterpriseUserId + * @memberof BI.ValidateSessionTokenResponse + * @instance + */ + ValidateSessionTokenResponse.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ValidateSessionTokenResponse status. + * @member {BI.ValidateSessionTokenResponse.Status} status + * @memberof BI.ValidateSessionTokenResponse + * @instance + */ + ValidateSessionTokenResponse.prototype.status = 0; + + /** + * ValidateSessionTokenResponse statusMessage. + * @member {string} statusMessage + * @memberof BI.ValidateSessionTokenResponse + * @instance + */ + ValidateSessionTokenResponse.prototype.statusMessage = ""; + + /** + * ValidateSessionTokenResponse mcEnterpriseIds. + * @member {Array.} mcEnterpriseIds + * @memberof BI.ValidateSessionTokenResponse + * @instance + */ + ValidateSessionTokenResponse.prototype.mcEnterpriseIds = $util.emptyArray; + + /** + * ValidateSessionTokenResponse hasMSPPermission. + * @member {boolean} hasMSPPermission + * @memberof BI.ValidateSessionTokenResponse + * @instance + */ + ValidateSessionTokenResponse.prototype.hasMSPPermission = false; + + /** + * ValidateSessionTokenResponse deletedMcEnterpriseIds. + * @member {Array.} deletedMcEnterpriseIds + * @memberof BI.ValidateSessionTokenResponse + * @instance + */ + ValidateSessionTokenResponse.prototype.deletedMcEnterpriseIds = $util.emptyArray; + + /** + * Creates a new ValidateSessionTokenResponse instance using the specified properties. + * @function create + * @memberof BI.ValidateSessionTokenResponse + * @static + * @param {BI.IValidateSessionTokenResponse=} [properties] Properties to set + * @returns {BI.ValidateSessionTokenResponse} ValidateSessionTokenResponse instance + */ + ValidateSessionTokenResponse.create = function create(properties) { + return new ValidateSessionTokenResponse(properties); + }; + + /** + * Encodes the specified ValidateSessionTokenResponse message. Does not implicitly {@link BI.ValidateSessionTokenResponse.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.userId); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.enterpriseUserId); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status); + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); + if (message.mcEnterpriseIds != null && message.mcEnterpriseIds.length) { + writer.uint32(/* id 6, wireType 2 =*/50).fork(); + for (let i = 0; i < message.mcEnterpriseIds.length; ++i) + writer.int32(message.mcEnterpriseIds[i]); + writer.ldelim(); + } + if (message.hasMSPPermission != null && Object.hasOwnProperty.call(message, "hasMSPPermission")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.hasMSPPermission); + if (message.deletedMcEnterpriseIds != null && message.deletedMcEnterpriseIds.length) { + writer.uint32(/* id 8, wireType 2 =*/66).fork(); + for (let i = 0; i < message.deletedMcEnterpriseIds.length; ++i) + writer.int32(message.deletedMcEnterpriseIds[i]); + writer.ldelim(); + } + 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 + * @memberof BI.ValidateSessionTokenResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ValidateSessionTokenResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.username = reader.string(); + break; + } + case 2: { + message.userId = reader.int32(); + break; + } + case 3: { + message.enterpriseUserId = reader.int64(); + break; + } + case 4: { + message.status = reader.int32(); + break; + } + case 5: { + message.statusMessage = reader.string(); + break; + } + case 6: { + if (!(message.mcEnterpriseIds && message.mcEnterpriseIds.length)) + message.mcEnterpriseIds = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.mcEnterpriseIds.push(reader.int32()); + } else + message.mcEnterpriseIds.push(reader.int32()); + break; + } + case 7: { + message.hasMSPPermission = reader.bool(); + break; + } + case 8: { + if (!(message.deletedMcEnterpriseIds && message.deletedMcEnterpriseIds.length)) + message.deletedMcEnterpriseIds = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.deletedMcEnterpriseIds.push(reader.int32()); + } else + message.deletedMcEnterpriseIds.push(reader.int32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof BI.ValidateSessionTokenResponse + * @static + * @param {Object.} object Plain object + * @returns {BI.ValidateSessionTokenResponse} ValidateSessionTokenResponse + */ + ValidateSessionTokenResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.ValidateSessionTokenResponse) + return object; + let message = new $root.BI.ValidateSessionTokenResponse(); + if (object.username != null) + message.username = String(object.username); + if (object.userId != null) + message.userId = object.userId | 0; + if (object.enterpriseUserId != null) + if ($util.Long) + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; + else if (typeof object.enterpriseUserId === "string") + message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); + else if (typeof object.enterpriseUserId === "number") + message.enterpriseUserId = object.enterpriseUserId; + else if (typeof object.enterpriseUserId === "object") + message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; + case "VALID": + case 0: + message.status = 0; + break; + case "NOT_VALID": + case 1: + message.status = 1; + break; + case "EXPIRED": + case 2: + message.status = 2; + break; + case "IP_BLOCKED": + case 3: + message.status = 3; + break; + case "INVALID_CLIENT_VERSION": + case 4: + message.status = 4; + break; + } + if (object.statusMessage != null) + message.statusMessage = String(object.statusMessage); + if (object.mcEnterpriseIds) { + if (!Array.isArray(object.mcEnterpriseIds)) + throw TypeError(".BI.ValidateSessionTokenResponse.mcEnterpriseIds: array expected"); + message.mcEnterpriseIds = []; + for (let i = 0; i < object.mcEnterpriseIds.length; ++i) + message.mcEnterpriseIds[i] = object.mcEnterpriseIds[i] | 0; + } + if (object.hasMSPPermission != null) + message.hasMSPPermission = Boolean(object.hasMSPPermission); + if (object.deletedMcEnterpriseIds) { + if (!Array.isArray(object.deletedMcEnterpriseIds)) + throw TypeError(".BI.ValidateSessionTokenResponse.deletedMcEnterpriseIds: array expected"); + message.deletedMcEnterpriseIds = []; + for (let i = 0; i < object.deletedMcEnterpriseIds.length; ++i) + message.deletedMcEnterpriseIds[i] = object.deletedMcEnterpriseIds[i] | 0; + } + return message; + }; + + /** + * Creates a plain object from a ValidateSessionTokenResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.ValidateSessionTokenResponse + * @static + * @param {BI.ValidateSessionTokenResponse} message ValidateSessionTokenResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ValidateSessionTokenResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.mcEnterpriseIds = []; + object.deletedMcEnterpriseIds = []; + } + if (options.defaults) { + object.username = ""; + object.userId = 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.enterpriseUserId = options.longs === String ? "0" : 0; + object.status = options.enums === String ? "VALID" : 0; + object.statusMessage = ""; + object.hasMSPPermission = false; + } + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.userId != null && message.hasOwnProperty("userId")) + object.userId = message.userId; + if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + 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")) + 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")) + 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")) + object.hasMSPPermission = message.hasMSPPermission; + if (message.deletedMcEnterpriseIds && message.deletedMcEnterpriseIds.length) { + object.deletedMcEnterpriseIds = []; + for (let j = 0; j < message.deletedMcEnterpriseIds.length; ++j) + object.deletedMcEnterpriseIds[j] = message.deletedMcEnterpriseIds[j]; + } + return object; + }; + + /** + * Converts this ValidateSessionTokenResponse to JSON. + * @function toJSON + * @memberof BI.ValidateSessionTokenResponse + * @instance + * @returns {Object.} JSON object + */ + ValidateSessionTokenResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ValidateSessionTokenResponse + * @function getTypeUrl + * @memberof BI.ValidateSessionTokenResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ValidateSessionTokenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.ValidateSessionTokenResponse"; + }; + + /** + * Status enum. + * @name BI.ValidateSessionTokenResponse.Status + * @enum {number} + * @property {number} VALID=0 VALID value + * @property {number} NOT_VALID=1 NOT_VALID value + * @property {number} EXPIRED=2 EXPIRED value + * @property {number} IP_BLOCKED=3 IP_BLOCKED value + * @property {number} INVALID_CLIENT_VERSION=4 INVALID_CLIENT_VERSION value + */ + ValidateSessionTokenResponse.Status = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "VALID"] = 0; + values[valuesById[1] = "NOT_VALID"] = 1; + values[valuesById[2] = "EXPIRED"] = 2; + values[valuesById[3] = "IP_BLOCKED"] = 3; + values[valuesById[4] = "INVALID_CLIENT_VERSION"] = 4; + return values; + })(); + + return ValidateSessionTokenResponse; + })(); + + BI.SubscriptionStatusRequest = (function() { + + /** + * Properties of a SubscriptionStatusRequest. + * @memberof BI + * @interface ISubscriptionStatusRequest + */ + + /** + * Constructs a new SubscriptionStatusRequest. + * @memberof BI + * @classdesc Represents a SubscriptionStatusRequest. + * @implements ISubscriptionStatusRequest + * @constructor + * @param {BI.ISubscriptionStatusRequest=} [properties] Properties to set + */ + function SubscriptionStatusRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new SubscriptionStatusRequest instance using the specified properties. + * @function create + * @memberof BI.SubscriptionStatusRequest + * @static + * @param {BI.ISubscriptionStatusRequest=} [properties] Properties to set + * @returns {BI.SubscriptionStatusRequest} SubscriptionStatusRequest instance + */ + SubscriptionStatusRequest.create = function create(properties) { + return new SubscriptionStatusRequest(properties); + }; + + /** + * Encodes the specified SubscriptionStatusRequest message. Does not implicitly {@link BI.SubscriptionStatusRequest.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + 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 + * @memberof BI.SubscriptionStatusRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionStatusRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a SubscriptionStatusRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof BI.SubscriptionStatusRequest + * @static + * @param {Object.} object Plain object + * @returns {BI.SubscriptionStatusRequest} SubscriptionStatusRequest + */ + SubscriptionStatusRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SubscriptionStatusRequest) + return object; + return new $root.BI.SubscriptionStatusRequest(); + }; + + /** + * Creates a plain object from a SubscriptionStatusRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.SubscriptionStatusRequest + * @static + * @param {BI.SubscriptionStatusRequest} message SubscriptionStatusRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SubscriptionStatusRequest.toObject = function toObject() { + return {}; + }; + + /** + * Converts this SubscriptionStatusRequest to JSON. + * @function toJSON + * @memberof BI.SubscriptionStatusRequest + * @instance + * @returns {Object.} JSON object + */ + SubscriptionStatusRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SubscriptionStatusRequest + * @function getTypeUrl + * @memberof BI.SubscriptionStatusRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SubscriptionStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.SubscriptionStatusRequest"; + }; + + return SubscriptionStatusRequest; + })(); + + BI.SubscriptionStatusResponse = (function() { + + /** + * Properties of a SubscriptionStatusResponse. + * @memberof BI + * @interface ISubscriptionStatusResponse + * @property {BI.IAutoRenewal|null} [autoRenewal] SubscriptionStatusResponse autoRenewal + * @property {BI.IPaymentMethod|null} [currentPaymentMethod] SubscriptionStatusResponse currentPaymentMethod + * @property {string|null} [checkoutLink] SubscriptionStatusResponse checkoutLink + * @property {number|Long|null} [licenseCreateDate] SubscriptionStatusResponse licenseCreateDate + * @property {boolean|null} [isDistributor] SubscriptionStatusResponse isDistributor + * @property {boolean|null} [isLegacyMsp] SubscriptionStatusResponse isLegacyMsp + * @property {Array.|null} [licenseStats] SubscriptionStatusResponse licenseStats + * @property {BI.GradientIntegrationStatus|null} [gradientStatus] SubscriptionStatusResponse gradientStatus + * @property {boolean|null} [hideTrialBanner] SubscriptionStatusResponse hideTrialBanner + * @property {string|null} [gradientLastSyncDate] SubscriptionStatusResponse gradientLastSyncDate + * @property {string|null} [gradientNextSyncDate] SubscriptionStatusResponse gradientNextSyncDate + * @property {boolean|null} [isGradientMappingPending] SubscriptionStatusResponse isGradientMappingPending + */ + + /** + * Constructs a new SubscriptionStatusResponse. + * @memberof BI + * @classdesc Represents a SubscriptionStatusResponse. + * @implements ISubscriptionStatusResponse + * @constructor + * @param {BI.ISubscriptionStatusResponse=} [properties] Properties to set + */ + function SubscriptionStatusResponse(properties) { + this.licenseStats = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SubscriptionStatusResponse autoRenewal. + * @member {BI.IAutoRenewal|null|undefined} autoRenewal + * @memberof BI.SubscriptionStatusResponse + * @instance + */ + SubscriptionStatusResponse.prototype.autoRenewal = null; + + /** + * SubscriptionStatusResponse currentPaymentMethod. + * @member {BI.IPaymentMethod|null|undefined} currentPaymentMethod + * @memberof BI.SubscriptionStatusResponse + * @instance + */ + SubscriptionStatusResponse.prototype.currentPaymentMethod = null; + + /** + * SubscriptionStatusResponse checkoutLink. + * @member {string} checkoutLink + * @memberof BI.SubscriptionStatusResponse + * @instance + */ + SubscriptionStatusResponse.prototype.checkoutLink = ""; + + /** + * SubscriptionStatusResponse licenseCreateDate. + * @member {number|Long} licenseCreateDate + * @memberof BI.SubscriptionStatusResponse + * @instance + */ + SubscriptionStatusResponse.prototype.licenseCreateDate = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SubscriptionStatusResponse isDistributor. + * @member {boolean} isDistributor + * @memberof BI.SubscriptionStatusResponse + * @instance + */ + SubscriptionStatusResponse.prototype.isDistributor = false; + + /** + * SubscriptionStatusResponse isLegacyMsp. + * @member {boolean} isLegacyMsp + * @memberof BI.SubscriptionStatusResponse + * @instance + */ + SubscriptionStatusResponse.prototype.isLegacyMsp = false; + + /** + * SubscriptionStatusResponse licenseStats. + * @member {Array.} licenseStats + * @memberof BI.SubscriptionStatusResponse + * @instance + */ + SubscriptionStatusResponse.prototype.licenseStats = $util.emptyArray; + + /** + * SubscriptionStatusResponse gradientStatus. + * @member {BI.GradientIntegrationStatus} gradientStatus + * @memberof BI.SubscriptionStatusResponse + * @instance + */ + SubscriptionStatusResponse.prototype.gradientStatus = 0; + + /** + * SubscriptionStatusResponse hideTrialBanner. + * @member {boolean} hideTrialBanner + * @memberof BI.SubscriptionStatusResponse + * @instance + */ + SubscriptionStatusResponse.prototype.hideTrialBanner = false; + + /** + * SubscriptionStatusResponse gradientLastSyncDate. + * @member {string} gradientLastSyncDate + * @memberof BI.SubscriptionStatusResponse + * @instance + */ + SubscriptionStatusResponse.prototype.gradientLastSyncDate = ""; + + /** + * SubscriptionStatusResponse gradientNextSyncDate. + * @member {string} gradientNextSyncDate + * @memberof BI.SubscriptionStatusResponse + * @instance + */ + SubscriptionStatusResponse.prototype.gradientNextSyncDate = ""; + + /** + * SubscriptionStatusResponse isGradientMappingPending. + * @member {boolean} isGradientMappingPending + * @memberof BI.SubscriptionStatusResponse + * @instance + */ + SubscriptionStatusResponse.prototype.isGradientMappingPending = false; + + /** + * Creates a new SubscriptionStatusResponse instance using the specified properties. + * @function create + * @memberof BI.SubscriptionStatusResponse + * @static + * @param {BI.ISubscriptionStatusResponse=} [properties] Properties to set + * @returns {BI.SubscriptionStatusResponse} SubscriptionStatusResponse instance + */ + SubscriptionStatusResponse.create = function create(properties) { + return new SubscriptionStatusResponse(properties); + }; + + /** + * Encodes the specified SubscriptionStatusResponse message. Does not implicitly {@link BI.SubscriptionStatusResponse.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.autoRenewal != null && Object.hasOwnProperty.call(message, "autoRenewal")) + $root.BI.AutoRenewal.encode(message.autoRenewal, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.currentPaymentMethod != null && Object.hasOwnProperty.call(message, "currentPaymentMethod")) + $root.BI.PaymentMethod.encode(message.currentPaymentMethod, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.checkoutLink != null && Object.hasOwnProperty.call(message, "checkoutLink")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.checkoutLink); + if (message.licenseCreateDate != null && Object.hasOwnProperty.call(message, "licenseCreateDate")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.licenseCreateDate); + if (message.isDistributor != null && Object.hasOwnProperty.call(message, "isDistributor")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isDistributor); + if (message.isLegacyMsp != null && Object.hasOwnProperty.call(message, "isLegacyMsp")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isLegacyMsp); + if (message.licenseStats != null && message.licenseStats.length) + for (let i = 0; i < message.licenseStats.length; ++i) + $root.BI.LicenseStats.encode(message.licenseStats[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.gradientStatus != null && Object.hasOwnProperty.call(message, "gradientStatus")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.gradientStatus); + if (message.hideTrialBanner != null && Object.hasOwnProperty.call(message, "hideTrialBanner")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.hideTrialBanner); + if (message.gradientLastSyncDate != null && Object.hasOwnProperty.call(message, "gradientLastSyncDate")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.gradientLastSyncDate); + if (message.gradientNextSyncDate != null && Object.hasOwnProperty.call(message, "gradientNextSyncDate")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.gradientNextSyncDate); + if (message.isGradientMappingPending != null && Object.hasOwnProperty.call(message, "isGradientMappingPending")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.isGradientMappingPending); + 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 + * @memberof BI.SubscriptionStatusResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionStatusResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.autoRenewal = $root.BI.AutoRenewal.decode(reader, reader.uint32()); + break; + } + case 2: { + message.currentPaymentMethod = $root.BI.PaymentMethod.decode(reader, reader.uint32()); + break; + } + case 3: { + message.checkoutLink = reader.string(); + break; + } + case 4: { + message.licenseCreateDate = reader.int64(); + break; + } + case 5: { + message.isDistributor = reader.bool(); + break; + } + case 6: { + message.isLegacyMsp = reader.bool(); + break; + } + case 8: { + if (!(message.licenseStats && message.licenseStats.length)) + message.licenseStats = []; + message.licenseStats.push($root.BI.LicenseStats.decode(reader, reader.uint32())); + break; + } + case 9: { + message.gradientStatus = reader.int32(); + break; + } + case 10: { + message.hideTrialBanner = reader.bool(); + break; + } + case 11: { + message.gradientLastSyncDate = reader.string(); + break; + } + case 12: { + message.gradientNextSyncDate = reader.string(); + break; + } + case 13: { + message.isGradientMappingPending = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.autoRenewal != null && message.hasOwnProperty("autoRenewal")) { + let error = $root.BI.AutoRenewal.verify(message.autoRenewal); + if (error) + return "autoRenewal." + error; + } + if (message.currentPaymentMethod != null && message.hasOwnProperty("currentPaymentMethod")) { + let error = $root.BI.PaymentMethod.verify(message.currentPaymentMethod); + 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]); + 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"; + return null; + }; + + /** + * Creates a SubscriptionStatusResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof BI.SubscriptionStatusResponse + * @static + * @param {Object.} object Plain object + * @returns {BI.SubscriptionStatusResponse} SubscriptionStatusResponse + */ + SubscriptionStatusResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SubscriptionStatusResponse) + return object; + let message = new $root.BI.SubscriptionStatusResponse(); + if (object.autoRenewal != null) { + if (typeof object.autoRenewal !== "object") + throw TypeError(".BI.SubscriptionStatusResponse.autoRenewal: object expected"); + message.autoRenewal = $root.BI.AutoRenewal.fromObject(object.autoRenewal); + } + if (object.currentPaymentMethod != null) { + if (typeof object.currentPaymentMethod !== "object") + throw TypeError(".BI.SubscriptionStatusResponse.currentPaymentMethod: object expected"); + message.currentPaymentMethod = $root.BI.PaymentMethod.fromObject(object.currentPaymentMethod); + } + if (object.checkoutLink != null) + message.checkoutLink = String(object.checkoutLink); + if (object.licenseCreateDate != null) + if ($util.Long) + (message.licenseCreateDate = $util.Long.fromValue(object.licenseCreateDate)).unsigned = false; + else if (typeof object.licenseCreateDate === "string") + message.licenseCreateDate = parseInt(object.licenseCreateDate, 10); + else if (typeof object.licenseCreateDate === "number") + message.licenseCreateDate = object.licenseCreateDate; + else if (typeof object.licenseCreateDate === "object") + message.licenseCreateDate = new $util.LongBits(object.licenseCreateDate.low >>> 0, object.licenseCreateDate.high >>> 0).toNumber(); + if (object.isDistributor != null) + message.isDistributor = Boolean(object.isDistributor); + if (object.isLegacyMsp != null) + message.isLegacyMsp = Boolean(object.isLegacyMsp); + if (object.licenseStats) { + if (!Array.isArray(object.licenseStats)) + throw TypeError(".BI.SubscriptionStatusResponse.licenseStats: array expected"); + message.licenseStats = []; + for (let i = 0; i < object.licenseStats.length; ++i) { + if (typeof object.licenseStats[i] !== "object") + throw TypeError(".BI.SubscriptionStatusResponse.licenseStats: object expected"); + message.licenseStats[i] = $root.BI.LicenseStats.fromObject(object.licenseStats[i]); + } + } + switch (object.gradientStatus) { + default: + if (typeof object.gradientStatus === "number") { + message.gradientStatus = object.gradientStatus; + break; + } + break; + case "NOTCONNECTED": + case 0: + message.gradientStatus = 0; + break; + case "PENDING": + case 1: + message.gradientStatus = 1; + break; + case "CONNECTED": + case 2: + message.gradientStatus = 2; + break; + case "NONE": + case 3: + message.gradientStatus = 3; + break; + } + if (object.hideTrialBanner != null) + message.hideTrialBanner = Boolean(object.hideTrialBanner); + if (object.gradientLastSyncDate != null) + message.gradientLastSyncDate = String(object.gradientLastSyncDate); + if (object.gradientNextSyncDate != null) + message.gradientNextSyncDate = String(object.gradientNextSyncDate); + if (object.isGradientMappingPending != null) + message.isGradientMappingPending = Boolean(object.isGradientMappingPending); + return message; + }; + + /** + * Creates a plain object from a SubscriptionStatusResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.SubscriptionStatusResponse + * @static + * @param {BI.SubscriptionStatusResponse} message SubscriptionStatusResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SubscriptionStatusResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.licenseStats = []; + if (options.defaults) { + object.autoRenewal = null; + object.currentPaymentMethod = null; + object.checkoutLink = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.licenseCreateDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.licenseCreateDate = options.longs === String ? "0" : 0; + object.isDistributor = false; + object.isLegacyMsp = false; + object.gradientStatus = options.enums === String ? "NOTCONNECTED" : 0; + object.hideTrialBanner = false; + object.gradientLastSyncDate = ""; + object.gradientNextSyncDate = ""; + object.isGradientMappingPending = false; + } + if (message.autoRenewal != null && message.hasOwnProperty("autoRenewal")) + object.autoRenewal = $root.BI.AutoRenewal.toObject(message.autoRenewal, options); + if (message.currentPaymentMethod != null && message.hasOwnProperty("currentPaymentMethod")) + object.currentPaymentMethod = $root.BI.PaymentMethod.toObject(message.currentPaymentMethod, options); + if (message.checkoutLink != null && message.hasOwnProperty("checkoutLink")) + object.checkoutLink = message.checkoutLink; + if (message.licenseCreateDate != null && message.hasOwnProperty("licenseCreateDate")) + 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")) + object.isDistributor = message.isDistributor; + if (message.isLegacyMsp != null && message.hasOwnProperty("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); + } + if (message.gradientStatus != null && message.hasOwnProperty("gradientStatus")) + object.gradientStatus = options.enums === String ? $root.BI.GradientIntegrationStatus[message.gradientStatus] === undefined ? message.gradientStatus : $root.BI.GradientIntegrationStatus[message.gradientStatus] : message.gradientStatus; + if (message.hideTrialBanner != null && message.hasOwnProperty("hideTrialBanner")) + object.hideTrialBanner = message.hideTrialBanner; + if (message.gradientLastSyncDate != null && message.hasOwnProperty("gradientLastSyncDate")) + object.gradientLastSyncDate = message.gradientLastSyncDate; + if (message.gradientNextSyncDate != null && message.hasOwnProperty("gradientNextSyncDate")) + object.gradientNextSyncDate = message.gradientNextSyncDate; + if (message.isGradientMappingPending != null && message.hasOwnProperty("isGradientMappingPending")) + object.isGradientMappingPending = message.isGradientMappingPending; + return object; + }; + + /** + * Converts this SubscriptionStatusResponse to JSON. + * @function toJSON + * @memberof BI.SubscriptionStatusResponse + * @instance + * @returns {Object.} JSON object + */ + SubscriptionStatusResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SubscriptionStatusResponse + * @function getTypeUrl + * @memberof BI.SubscriptionStatusResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SubscriptionStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.SubscriptionStatusResponse"; + }; + + return SubscriptionStatusResponse; + })(); + + BI.LicenseStats = (function() { + + /** + * Properties of a LicenseStats. + * @memberof BI + * @interface ILicenseStats + * @property {BI.LicenseStats.Type|null} [type] LicenseStats type + * @property {number|null} [available] LicenseStats available + * @property {number|null} [used] LicenseStats used + */ + + /** + * Constructs a new LicenseStats. + * @memberof BI + * @classdesc Represents a LicenseStats. + * @implements ILicenseStats + * @constructor + * @param {BI.ILicenseStats=} [properties] Properties to set + */ + function LicenseStats(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LicenseStats type. + * @member {BI.LicenseStats.Type} type + * @memberof BI.LicenseStats + * @instance + */ + LicenseStats.prototype.type = 0; + + /** + * LicenseStats available. + * @member {number} available + * @memberof BI.LicenseStats + * @instance + */ + LicenseStats.prototype.available = 0; + + /** + * LicenseStats used. + * @member {number} used + * @memberof BI.LicenseStats + * @instance + */ + LicenseStats.prototype.used = 0; + + /** + * Creates a new LicenseStats instance using the specified properties. + * @function create + * @memberof BI.LicenseStats + * @static + * @param {BI.ILicenseStats=} [properties] Properties to set + * @returns {BI.LicenseStats} LicenseStats instance + */ + LicenseStats.create = function create(properties) { + return new LicenseStats(properties); + }; + + /** + * Encodes the specified LicenseStats message. Does not implicitly {@link BI.LicenseStats.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.available != null && Object.hasOwnProperty.call(message, "available")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.available); + if (message.used != null && Object.hasOwnProperty.call(message, "used")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.used); + 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 + * @memberof BI.LicenseStats + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.LicenseStats(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 2: { + message.available = reader.int32(); + break; + } + case 3: { + message.used = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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: + 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 + * @memberof BI.LicenseStats + * @static + * @param {Object.} object Plain object + * @returns {BI.LicenseStats} LicenseStats + */ + LicenseStats.fromObject = function fromObject(object) { + if (object instanceof $root.BI.LicenseStats) + return object; + let message = new $root.BI.LicenseStats(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "LICENSE_STAT_UNKNOWN": + case 0: + message.type = 0; + break; + case "MSP_BASE": + case 1: + message.type = 1; + break; + case "MC_BUSINESS": + case 2: + message.type = 2; + break; + case "MC_BUSINESS_PLUS": + case 3: + message.type = 3; + break; + case "MC_ENTERPRISE": + case 4: + message.type = 4; + break; + case "MC_ENTERPRISE_PLUS": + case 5: + message.type = 5; + break; + case "B2B_BUSINESS_STARTER": + case 6: + message.type = 6; + break; + case "B2B_BUSINESS": + case 7: + message.type = 7; + break; + case "B2B_ENTERPRISE": + case 8: + message.type = 8; + break; + } + if (object.available != null) + message.available = object.available | 0; + if (object.used != null) + message.used = object.used | 0; + return message; + }; + + /** + * Creates a plain object from a LicenseStats message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.LicenseStats + * @static + * @param {BI.LicenseStats} message LicenseStats + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LicenseStats.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.type = options.enums === String ? "LICENSE_STAT_UNKNOWN" : 0; + object.available = 0; + object.used = 0; + } + if (message.type != null && message.hasOwnProperty("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")) + object.available = message.available; + if (message.used != null && message.hasOwnProperty("used")) + object.used = message.used; + return object; + }; + + /** + * Converts this LicenseStats to JSON. + * @function toJSON + * @memberof BI.LicenseStats + * @instance + * @returns {Object.} JSON object + */ + LicenseStats.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LicenseStats + * @function getTypeUrl + * @memberof BI.LicenseStats + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LicenseStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.LicenseStats"; + }; + + /** + * Type enum. + * @name BI.LicenseStats.Type + * @enum {number} + * @property {number} LICENSE_STAT_UNKNOWN=0 LICENSE_STAT_UNKNOWN value + * @property {number} MSP_BASE=1 MSP_BASE value + * @property {number} MC_BUSINESS=2 MC_BUSINESS value + * @property {number} MC_BUSINESS_PLUS=3 MC_BUSINESS_PLUS value + * @property {number} MC_ENTERPRISE=4 MC_ENTERPRISE value + * @property {number} MC_ENTERPRISE_PLUS=5 MC_ENTERPRISE_PLUS value + * @property {number} B2B_BUSINESS_STARTER=6 B2B_BUSINESS_STARTER value + * @property {number} B2B_BUSINESS=7 B2B_BUSINESS value + * @property {number} B2B_ENTERPRISE=8 B2B_ENTERPRISE value + */ + LicenseStats.Type = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LICENSE_STAT_UNKNOWN"] = 0; + values[valuesById[1] = "MSP_BASE"] = 1; + values[valuesById[2] = "MC_BUSINESS"] = 2; + values[valuesById[3] = "MC_BUSINESS_PLUS"] = 3; + values[valuesById[4] = "MC_ENTERPRISE"] = 4; + values[valuesById[5] = "MC_ENTERPRISE_PLUS"] = 5; + values[valuesById[6] = "B2B_BUSINESS_STARTER"] = 6; + values[valuesById[7] = "B2B_BUSINESS"] = 7; + values[valuesById[8] = "B2B_ENTERPRISE"] = 8; + return values; + })(); + + return LicenseStats; + })(); + + BI.AutoRenewal = (function() { + + /** + * Properties of an AutoRenewal. + * @memberof BI + * @interface IAutoRenewal + * @property {number|Long|null} [nextOn] AutoRenewal nextOn + * @property {number|null} [daysLeft] AutoRenewal daysLeft + * @property {boolean|null} [isTrial] AutoRenewal isTrial + */ + + /** + * Constructs a new AutoRenewal. + * @memberof BI + * @classdesc Represents an AutoRenewal. + * @implements IAutoRenewal + * @constructor + * @param {BI.IAutoRenewal=} [properties] Properties to set + */ + function AutoRenewal(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AutoRenewal nextOn. + * @member {number|Long} nextOn + * @memberof BI.AutoRenewal + * @instance + */ + AutoRenewal.prototype.nextOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * AutoRenewal daysLeft. + * @member {number} daysLeft + * @memberof BI.AutoRenewal + * @instance + */ + AutoRenewal.prototype.daysLeft = 0; + + /** + * AutoRenewal isTrial. + * @member {boolean} isTrial + * @memberof BI.AutoRenewal + * @instance + */ + AutoRenewal.prototype.isTrial = false; + + /** + * Creates a new AutoRenewal instance using the specified properties. + * @function create + * @memberof BI.AutoRenewal + * @static + * @param {BI.IAutoRenewal=} [properties] Properties to set + * @returns {BI.AutoRenewal} AutoRenewal instance + */ + AutoRenewal.create = function create(properties) { + return new AutoRenewal(properties); + }; + + /** + * Encodes the specified AutoRenewal message. Does not implicitly {@link BI.AutoRenewal.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nextOn != null && Object.hasOwnProperty.call(message, "nextOn")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nextOn); + if (message.daysLeft != null && Object.hasOwnProperty.call(message, "daysLeft")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.daysLeft); + if (message.isTrial != null && Object.hasOwnProperty.call(message, "isTrial")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isTrial); + 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 + * @memberof BI.AutoRenewal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.AutoRenewal(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.nextOn = reader.int64(); + break; + } + case 2: { + message.daysLeft = reader.int32(); + break; + } + case 3: { + message.isTrial = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof BI.AutoRenewal + * @static + * @param {Object.} object Plain object + * @returns {BI.AutoRenewal} AutoRenewal + */ + AutoRenewal.fromObject = function fromObject(object) { + if (object instanceof $root.BI.AutoRenewal) + return object; + let message = new $root.BI.AutoRenewal(); + if (object.nextOn != null) + if ($util.Long) + (message.nextOn = $util.Long.fromValue(object.nextOn)).unsigned = false; + else if (typeof object.nextOn === "string") + message.nextOn = parseInt(object.nextOn, 10); + else if (typeof object.nextOn === "number") + message.nextOn = object.nextOn; + else if (typeof object.nextOn === "object") + message.nextOn = new $util.LongBits(object.nextOn.low >>> 0, object.nextOn.high >>> 0).toNumber(); + if (object.daysLeft != null) + message.daysLeft = object.daysLeft | 0; + if (object.isTrial != null) + message.isTrial = Boolean(object.isTrial); + return message; + }; + + /** + * Creates a plain object from an AutoRenewal message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.AutoRenewal + * @static + * @param {BI.AutoRenewal} message AutoRenewal + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoRenewal.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.nextOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.nextOn = options.longs === String ? "0" : 0; + object.daysLeft = 0; + object.isTrial = false; + } + if (message.nextOn != null && message.hasOwnProperty("nextOn")) + 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")) + object.daysLeft = message.daysLeft; + if (message.isTrial != null && message.hasOwnProperty("isTrial")) + object.isTrial = message.isTrial; + return object; + }; + + /** + * Converts this AutoRenewal to JSON. + * @function toJSON + * @memberof BI.AutoRenewal + * @instance + * @returns {Object.} JSON object + */ + AutoRenewal.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AutoRenewal + * @function getTypeUrl + * @memberof BI.AutoRenewal + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AutoRenewal.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.AutoRenewal"; + }; + + return AutoRenewal; + })(); + + BI.PaymentMethod = (function() { + + /** + * Properties of a PaymentMethod. + * @memberof BI + * @interface IPaymentMethod + * @property {BI.PaymentMethod.Type|null} [type] PaymentMethod type + * @property {BI.PaymentMethod.ICard|null} [card] PaymentMethod card + * @property {BI.PaymentMethod.ISepa|null} [sepa] PaymentMethod sepa + * @property {BI.PaymentMethod.IPaypal|null} [paypal] PaymentMethod paypal + * @property {boolean|null} [failedBilling] PaymentMethod failedBilling + * @property {BI.PaymentMethod.IVendor|null} [vendor] PaymentMethod vendor + * @property {BI.PaymentMethod.IPurchaseOrder|null} [purchaseOrder] PaymentMethod purchaseOrder + */ + + /** + * Constructs a new PaymentMethod. + * @memberof BI + * @classdesc Represents a PaymentMethod. + * @implements IPaymentMethod + * @constructor + * @param {BI.IPaymentMethod=} [properties] Properties to set + */ + function PaymentMethod(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PaymentMethod type. + * @member {BI.PaymentMethod.Type} type + * @memberof BI.PaymentMethod + * @instance + */ + PaymentMethod.prototype.type = 0; + + /** + * PaymentMethod card. + * @member {BI.PaymentMethod.ICard|null|undefined} card + * @memberof BI.PaymentMethod + * @instance + */ + PaymentMethod.prototype.card = null; + + /** + * PaymentMethod sepa. + * @member {BI.PaymentMethod.ISepa|null|undefined} sepa + * @memberof BI.PaymentMethod + * @instance + */ + PaymentMethod.prototype.sepa = null; + + /** + * PaymentMethod paypal. + * @member {BI.PaymentMethod.IPaypal|null|undefined} paypal + * @memberof BI.PaymentMethod + * @instance + */ + PaymentMethod.prototype.paypal = null; + + /** + * PaymentMethod failedBilling. + * @member {boolean} failedBilling + * @memberof BI.PaymentMethod + * @instance + */ + PaymentMethod.prototype.failedBilling = false; + + /** + * PaymentMethod vendor. + * @member {BI.PaymentMethod.IVendor|null|undefined} vendor + * @memberof BI.PaymentMethod + * @instance + */ + PaymentMethod.prototype.vendor = null; + + /** + * PaymentMethod purchaseOrder. + * @member {BI.PaymentMethod.IPurchaseOrder|null|undefined} purchaseOrder + * @memberof BI.PaymentMethod + * @instance + */ + PaymentMethod.prototype.purchaseOrder = null; + + /** + * Creates a new PaymentMethod instance using the specified properties. + * @function create + * @memberof BI.PaymentMethod + * @static + * @param {BI.IPaymentMethod=} [properties] Properties to set + * @returns {BI.PaymentMethod} PaymentMethod instance + */ + PaymentMethod.create = function create(properties) { + return new PaymentMethod(properties); + }; + + /** + * Encodes the specified PaymentMethod message. Does not implicitly {@link BI.PaymentMethod.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.card != null && Object.hasOwnProperty.call(message, "card")) + $root.BI.PaymentMethod.Card.encode(message.card, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sepa != null && Object.hasOwnProperty.call(message, "sepa")) + $root.BI.PaymentMethod.Sepa.encode(message.sepa, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.paypal != null && Object.hasOwnProperty.call(message, "paypal")) + $root.BI.PaymentMethod.Paypal.encode(message.paypal, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.failedBilling != null && Object.hasOwnProperty.call(message, "failedBilling")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.failedBilling); + if (message.vendor != null && Object.hasOwnProperty.call(message, "vendor")) + $root.BI.PaymentMethod.Vendor.encode(message.vendor, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.purchaseOrder != null && Object.hasOwnProperty.call(message, "purchaseOrder")) + $root.BI.PaymentMethod.PurchaseOrder.encode(message.purchaseOrder, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + 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 + * @memberof BI.PaymentMethod + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 2: { + message.card = $root.BI.PaymentMethod.Card.decode(reader, reader.uint32()); + break; + } + case 3: { + message.sepa = $root.BI.PaymentMethod.Sepa.decode(reader, reader.uint32()); + break; + } + case 4: { + message.paypal = $root.BI.PaymentMethod.Paypal.decode(reader, reader.uint32()); + break; + } + case 5: { + message.failedBilling = reader.bool(); + break; + } + case 6: { + message.vendor = $root.BI.PaymentMethod.Vendor.decode(reader, reader.uint32()); + break; + } + case 7: { + message.purchaseOrder = $root.BI.PaymentMethod.PurchaseOrder.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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: + break; + } + if (message.card != null && message.hasOwnProperty("card")) { + let error = $root.BI.PaymentMethod.Card.verify(message.card); + if (error) + return "card." + error; + } + if (message.sepa != null && message.hasOwnProperty("sepa")) { + let error = $root.BI.PaymentMethod.Sepa.verify(message.sepa); + if (error) + return "sepa." + error; + } + if (message.paypal != null && message.hasOwnProperty("paypal")) { + let error = $root.BI.PaymentMethod.Paypal.verify(message.paypal); + 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); + if (error) + return "vendor." + error; + } + if (message.purchaseOrder != null && message.hasOwnProperty("purchaseOrder")) { + let error = $root.BI.PaymentMethod.PurchaseOrder.verify(message.purchaseOrder); + 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 + * @memberof BI.PaymentMethod + * @static + * @param {Object.} object Plain object + * @returns {BI.PaymentMethod} PaymentMethod + */ + PaymentMethod.fromObject = function fromObject(object) { + if (object instanceof $root.BI.PaymentMethod) + return object; + let message = new $root.BI.PaymentMethod(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "CARD": + case 0: + message.type = 0; + break; + case "SEPA": + case 1: + message.type = 1; + break; + case "PAYPAL": + case 2: + message.type = 2; + break; + case "NONE": + case 3: + message.type = 3; + break; + case "VENDOR": + case 4: + message.type = 4; + break; + case "PURCHASEORDER": + case 5: + message.type = 5; + break; + } + if (object.card != null) { + if (typeof object.card !== "object") + throw TypeError(".BI.PaymentMethod.card: object expected"); + message.card = $root.BI.PaymentMethod.Card.fromObject(object.card); + } + if (object.sepa != null) { + if (typeof object.sepa !== "object") + throw TypeError(".BI.PaymentMethod.sepa: object expected"); + message.sepa = $root.BI.PaymentMethod.Sepa.fromObject(object.sepa); + } + if (object.paypal != null) { + if (typeof object.paypal !== "object") + throw TypeError(".BI.PaymentMethod.paypal: object expected"); + message.paypal = $root.BI.PaymentMethod.Paypal.fromObject(object.paypal); + } + if (object.failedBilling != null) + message.failedBilling = Boolean(object.failedBilling); + if (object.vendor != null) { + if (typeof object.vendor !== "object") + throw TypeError(".BI.PaymentMethod.vendor: object expected"); + message.vendor = $root.BI.PaymentMethod.Vendor.fromObject(object.vendor); + } + if (object.purchaseOrder != null) { + if (typeof object.purchaseOrder !== "object") + throw TypeError(".BI.PaymentMethod.purchaseOrder: object expected"); + message.purchaseOrder = $root.BI.PaymentMethod.PurchaseOrder.fromObject(object.purchaseOrder); + } + return message; + }; + + /** + * Creates a plain object from a PaymentMethod message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.PaymentMethod + * @static + * @param {BI.PaymentMethod} message PaymentMethod + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PaymentMethod.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.type = options.enums === String ? "CARD" : 0; + object.card = null; + object.sepa = null; + object.paypal = null; + object.failedBilling = false; + object.vendor = null; + object.purchaseOrder = null; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.BI.PaymentMethod.Type[message.type] === undefined ? message.type : $root.BI.PaymentMethod.Type[message.type] : message.type; + if (message.card != null && message.hasOwnProperty("card")) + object.card = $root.BI.PaymentMethod.Card.toObject(message.card, options); + if (message.sepa != null && message.hasOwnProperty("sepa")) + object.sepa = $root.BI.PaymentMethod.Sepa.toObject(message.sepa, options); + if (message.paypal != null && message.hasOwnProperty("paypal")) + object.paypal = $root.BI.PaymentMethod.Paypal.toObject(message.paypal, options); + if (message.failedBilling != null && message.hasOwnProperty("failedBilling")) + object.failedBilling = message.failedBilling; + if (message.vendor != null && message.hasOwnProperty("vendor")) + object.vendor = $root.BI.PaymentMethod.Vendor.toObject(message.vendor, options); + if (message.purchaseOrder != null && message.hasOwnProperty("purchaseOrder")) + object.purchaseOrder = $root.BI.PaymentMethod.PurchaseOrder.toObject(message.purchaseOrder, options); + return object; + }; + + /** + * Converts this PaymentMethod to JSON. + * @function toJSON + * @memberof BI.PaymentMethod + * @instance + * @returns {Object.} JSON object + */ + PaymentMethod.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PaymentMethod + * @function getTypeUrl + * @memberof BI.PaymentMethod + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PaymentMethod.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.PaymentMethod"; + }; + + /** + * Type enum. + * @name BI.PaymentMethod.Type + * @enum {number} + * @property {number} CARD=0 CARD value + * @property {number} SEPA=1 SEPA value + * @property {number} PAYPAL=2 PAYPAL value + * @property {number} NONE=3 NONE value + * @property {number} VENDOR=4 VENDOR value + * @property {number} PURCHASEORDER=5 PURCHASEORDER value + */ + PaymentMethod.Type = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CARD"] = 0; + values[valuesById[1] = "SEPA"] = 1; + values[valuesById[2] = "PAYPAL"] = 2; + values[valuesById[3] = "NONE"] = 3; + values[valuesById[4] = "VENDOR"] = 4; + values[valuesById[5] = "PURCHASEORDER"] = 5; + return values; + })(); + + PaymentMethod.Card = (function() { + + /** + * Properties of a Card. + * @memberof BI.PaymentMethod + * @interface ICard + * @property {string|null} [last4] Card last4 + * @property {string|null} [brand] Card brand + */ + + /** + * Constructs a new Card. + * @memberof BI.PaymentMethod + * @classdesc Represents a Card. + * @implements ICard + * @constructor + * @param {BI.PaymentMethod.ICard=} [properties] Properties to set + */ + function Card(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Card last4. + * @member {string} last4 + * @memberof BI.PaymentMethod.Card + * @instance + */ + Card.prototype.last4 = ""; + + /** + * Card brand. + * @member {string} brand + * @memberof BI.PaymentMethod.Card + * @instance + */ + Card.prototype.brand = ""; + + /** + * Creates a new Card instance using the specified properties. + * @function create + * @memberof BI.PaymentMethod.Card + * @static + * @param {BI.PaymentMethod.ICard=} [properties] Properties to set + * @returns {BI.PaymentMethod.Card} Card instance + */ + Card.create = function create(properties) { + return new Card(properties); + }; + + /** + * Encodes the specified Card message. Does not implicitly {@link BI.PaymentMethod.Card.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.last4 != null && Object.hasOwnProperty.call(message, "last4")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.last4); + if (message.brand != null && Object.hasOwnProperty.call(message, "brand")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.brand); + 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 + * @memberof BI.PaymentMethod.Card + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod.Card(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.last4 = reader.string(); + break; + } + case 2: { + message.brand = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof BI.PaymentMethod.Card + * @static + * @param {Object.} object Plain object + * @returns {BI.PaymentMethod.Card} Card + */ + Card.fromObject = function fromObject(object) { + if (object instanceof $root.BI.PaymentMethod.Card) + return object; + let message = new $root.BI.PaymentMethod.Card(); + if (object.last4 != null) + message.last4 = String(object.last4); + if (object.brand != null) + message.brand = String(object.brand); + return message; + }; + + /** + * Creates a plain object from a Card message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.PaymentMethod.Card + * @static + * @param {BI.PaymentMethod.Card} message Card + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Card.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.last4 = ""; + object.brand = ""; + } + if (message.last4 != null && message.hasOwnProperty("last4")) + object.last4 = message.last4; + if (message.brand != null && message.hasOwnProperty("brand")) + object.brand = message.brand; + return object; + }; + + /** + * Converts this Card to JSON. + * @function toJSON + * @memberof BI.PaymentMethod.Card + * @instance + * @returns {Object.} JSON object + */ + Card.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Card + * @function getTypeUrl + * @memberof BI.PaymentMethod.Card + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Card.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.PaymentMethod.Card"; + }; + + return Card; + })(); + + PaymentMethod.Sepa = (function() { + + /** + * Properties of a Sepa. + * @memberof BI.PaymentMethod + * @interface ISepa + * @property {string|null} [last4] Sepa last4 + * @property {string|null} [country] Sepa country + */ + + /** + * Constructs a new Sepa. + * @memberof BI.PaymentMethod + * @classdesc Represents a Sepa. + * @implements ISepa + * @constructor + * @param {BI.PaymentMethod.ISepa=} [properties] Properties to set + */ + function Sepa(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Sepa last4. + * @member {string} last4 + * @memberof BI.PaymentMethod.Sepa + * @instance + */ + Sepa.prototype.last4 = ""; + + /** + * Sepa country. + * @member {string} country + * @memberof BI.PaymentMethod.Sepa + * @instance + */ + Sepa.prototype.country = ""; + + /** + * Creates a new Sepa instance using the specified properties. + * @function create + * @memberof BI.PaymentMethod.Sepa + * @static + * @param {BI.PaymentMethod.ISepa=} [properties] Properties to set + * @returns {BI.PaymentMethod.Sepa} Sepa instance + */ + Sepa.create = function create(properties) { + return new Sepa(properties); + }; + + /** + * Encodes the specified Sepa message. Does not implicitly {@link BI.PaymentMethod.Sepa.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.last4 != null && Object.hasOwnProperty.call(message, "last4")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.last4); + if (message.country != null && Object.hasOwnProperty.call(message, "country")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.country); + 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 + * @memberof BI.PaymentMethod.Sepa + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod.Sepa(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.last4 = reader.string(); + break; + } + case 2: { + message.country = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof BI.PaymentMethod.Sepa + * @static + * @param {Object.} object Plain object + * @returns {BI.PaymentMethod.Sepa} Sepa + */ + Sepa.fromObject = function fromObject(object) { + if (object instanceof $root.BI.PaymentMethod.Sepa) + return object; + let message = new $root.BI.PaymentMethod.Sepa(); + if (object.last4 != null) + message.last4 = String(object.last4); + if (object.country != null) + message.country = String(object.country); + return message; + }; + + /** + * Creates a plain object from a Sepa message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.PaymentMethod.Sepa + * @static + * @param {BI.PaymentMethod.Sepa} message Sepa + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Sepa.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.last4 = ""; + object.country = ""; + } + if (message.last4 != null && message.hasOwnProperty("last4")) + object.last4 = message.last4; + if (message.country != null && message.hasOwnProperty("country")) + object.country = message.country; + return object; + }; + + /** + * Converts this Sepa to JSON. + * @function toJSON + * @memberof BI.PaymentMethod.Sepa + * @instance + * @returns {Object.} JSON object + */ + Sepa.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Sepa + * @function getTypeUrl + * @memberof BI.PaymentMethod.Sepa + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Sepa.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.PaymentMethod.Sepa"; + }; + + return Sepa; + })(); + + PaymentMethod.Paypal = (function() { + + /** + * Properties of a Paypal. + * @memberof BI.PaymentMethod + * @interface IPaypal + */ + + /** + * Constructs a new Paypal. + * @memberof BI.PaymentMethod + * @classdesc Represents a Paypal. + * @implements IPaypal + * @constructor + * @param {BI.PaymentMethod.IPaypal=} [properties] Properties to set + */ + function Paypal(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new Paypal instance using the specified properties. + * @function create + * @memberof BI.PaymentMethod.Paypal + * @static + * @param {BI.PaymentMethod.IPaypal=} [properties] Properties to set + * @returns {BI.PaymentMethod.Paypal} Paypal instance + */ + Paypal.create = function create(properties) { + return new Paypal(properties); + }; + + /** + * Encodes the specified Paypal message. Does not implicitly {@link BI.PaymentMethod.Paypal.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + 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 + * @memberof BI.PaymentMethod.Paypal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod.Paypal(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a Paypal message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof BI.PaymentMethod.Paypal + * @static + * @param {Object.} object Plain object + * @returns {BI.PaymentMethod.Paypal} Paypal + */ + Paypal.fromObject = function fromObject(object) { + if (object instanceof $root.BI.PaymentMethod.Paypal) + return object; + return new $root.BI.PaymentMethod.Paypal(); + }; + + /** + * Creates a plain object from a Paypal message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.PaymentMethod.Paypal + * @static + * @param {BI.PaymentMethod.Paypal} message Paypal + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Paypal.toObject = function toObject() { + return {}; + }; + + /** + * Converts this Paypal to JSON. + * @function toJSON + * @memberof BI.PaymentMethod.Paypal + * @instance + * @returns {Object.} JSON object + */ + Paypal.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Paypal + * @function getTypeUrl + * @memberof BI.PaymentMethod.Paypal + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Paypal.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.PaymentMethod.Paypal"; + }; + + return Paypal; + })(); + + PaymentMethod.Vendor = (function() { + + /** + * Properties of a Vendor. + * @memberof BI.PaymentMethod + * @interface IVendor + * @property {string|null} [name] Vendor name + */ + + /** + * Constructs a new Vendor. + * @memberof BI.PaymentMethod + * @classdesc Represents a Vendor. + * @implements IVendor + * @constructor + * @param {BI.PaymentMethod.IVendor=} [properties] Properties to set + */ + function Vendor(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Vendor name. + * @member {string} name + * @memberof BI.PaymentMethod.Vendor + * @instance + */ + Vendor.prototype.name = ""; + + /** + * Creates a new Vendor instance using the specified properties. + * @function create + * @memberof BI.PaymentMethod.Vendor + * @static + * @param {BI.PaymentMethod.IVendor=} [properties] Properties to set + * @returns {BI.PaymentMethod.Vendor} Vendor instance + */ + Vendor.create = function create(properties) { + return new Vendor(properties); + }; + + /** + * Encodes the specified Vendor message. Does not implicitly {@link BI.PaymentMethod.Vendor.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + 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 + * @memberof BI.PaymentMethod.Vendor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod.Vendor(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof BI.PaymentMethod.Vendor + * @static + * @param {Object.} object Plain object + * @returns {BI.PaymentMethod.Vendor} Vendor + */ + Vendor.fromObject = function fromObject(object) { + if (object instanceof $root.BI.PaymentMethod.Vendor) + return object; + let message = new $root.BI.PaymentMethod.Vendor(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a Vendor message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.PaymentMethod.Vendor + * @static + * @param {BI.PaymentMethod.Vendor} message Vendor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Vendor.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this Vendor to JSON. + * @function toJSON + * @memberof BI.PaymentMethod.Vendor + * @instance + * @returns {Object.} JSON object + */ + Vendor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Vendor + * @function getTypeUrl + * @memberof BI.PaymentMethod.Vendor + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Vendor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.PaymentMethod.Vendor"; + }; + + return Vendor; + })(); + + PaymentMethod.PurchaseOrder = (function() { + + /** + * Properties of a PurchaseOrder. + * @memberof BI.PaymentMethod + * @interface IPurchaseOrder + * @property {string|null} [name] PurchaseOrder name + */ + + /** + * Constructs a new PurchaseOrder. + * @memberof BI.PaymentMethod + * @classdesc Represents a PurchaseOrder. + * @implements IPurchaseOrder + * @constructor + * @param {BI.PaymentMethod.IPurchaseOrder=} [properties] Properties to set + */ + function PurchaseOrder(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PurchaseOrder name. + * @member {string} name + * @memberof BI.PaymentMethod.PurchaseOrder + * @instance + */ + PurchaseOrder.prototype.name = ""; + + /** + * Creates a new PurchaseOrder instance using the specified properties. + * @function create + * @memberof BI.PaymentMethod.PurchaseOrder + * @static + * @param {BI.PaymentMethod.IPurchaseOrder=} [properties] Properties to set + * @returns {BI.PaymentMethod.PurchaseOrder} PurchaseOrder instance + */ + PurchaseOrder.create = function create(properties) { + return new PurchaseOrder(properties); + }; + + /** + * Encodes the specified PurchaseOrder message. Does not implicitly {@link BI.PaymentMethod.PurchaseOrder.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + 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 + * @memberof BI.PaymentMethod.PurchaseOrder + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod.PurchaseOrder(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof BI.PaymentMethod.PurchaseOrder + * @static + * @param {Object.} object Plain object + * @returns {BI.PaymentMethod.PurchaseOrder} PurchaseOrder + */ + PurchaseOrder.fromObject = function fromObject(object) { + if (object instanceof $root.BI.PaymentMethod.PurchaseOrder) + return object; + let message = new $root.BI.PaymentMethod.PurchaseOrder(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a PurchaseOrder message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.PaymentMethod.PurchaseOrder + * @static + * @param {BI.PaymentMethod.PurchaseOrder} message PurchaseOrder + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PurchaseOrder.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this PurchaseOrder to JSON. + * @function toJSON + * @memberof BI.PaymentMethod.PurchaseOrder + * @instance + * @returns {Object.} JSON object + */ + PurchaseOrder.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PurchaseOrder + * @function getTypeUrl + * @memberof BI.PaymentMethod.PurchaseOrder + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PurchaseOrder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.PaymentMethod.PurchaseOrder"; + }; + + return PurchaseOrder; + })(); + + return PaymentMethod; + })(); + + BI.SubscriptionMspPricingRequest = (function() { + + /** + * Properties of a SubscriptionMspPricingRequest. + * @memberof BI + * @interface ISubscriptionMspPricingRequest + */ + + /** + * Constructs a new SubscriptionMspPricingRequest. + * @memberof BI + * @classdesc Represents a SubscriptionMspPricingRequest. + * @implements ISubscriptionMspPricingRequest + * @constructor + * @param {BI.ISubscriptionMspPricingRequest=} [properties] Properties to set + */ + function SubscriptionMspPricingRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new SubscriptionMspPricingRequest instance using the specified properties. + * @function create + * @memberof BI.SubscriptionMspPricingRequest + * @static + * @param {BI.ISubscriptionMspPricingRequest=} [properties] Properties to set + * @returns {BI.SubscriptionMspPricingRequest} SubscriptionMspPricingRequest instance + */ + SubscriptionMspPricingRequest.create = function create(properties) { + return new SubscriptionMspPricingRequest(properties); + }; + + /** + * Encodes the specified SubscriptionMspPricingRequest message. Does not implicitly {@link BI.SubscriptionMspPricingRequest.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + 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 + * @memberof BI.SubscriptionMspPricingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionMspPricingRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a SubscriptionMspPricingRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof BI.SubscriptionMspPricingRequest + * @static + * @param {Object.} object Plain object + * @returns {BI.SubscriptionMspPricingRequest} SubscriptionMspPricingRequest + */ + SubscriptionMspPricingRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SubscriptionMspPricingRequest) + return object; + return new $root.BI.SubscriptionMspPricingRequest(); + }; + + /** + * Creates a plain object from a SubscriptionMspPricingRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.SubscriptionMspPricingRequest + * @static + * @param {BI.SubscriptionMspPricingRequest} message SubscriptionMspPricingRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SubscriptionMspPricingRequest.toObject = function toObject() { + return {}; + }; + + /** + * Converts this SubscriptionMspPricingRequest to JSON. + * @function toJSON + * @memberof BI.SubscriptionMspPricingRequest + * @instance + * @returns {Object.} JSON object + */ + SubscriptionMspPricingRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SubscriptionMspPricingRequest + * @function getTypeUrl + * @memberof BI.SubscriptionMspPricingRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SubscriptionMspPricingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.SubscriptionMspPricingRequest"; + }; + + return SubscriptionMspPricingRequest; + })(); + + BI.SubscriptionMspPricingResponse = (function() { + + /** + * Properties of a SubscriptionMspPricingResponse. + * @memberof BI + * @interface ISubscriptionMspPricingResponse + * @property {Array.|null} [addons] SubscriptionMspPricingResponse addons + * @property {Array.|null} [filePlans] SubscriptionMspPricingResponse filePlans + */ + + /** + * Constructs a new SubscriptionMspPricingResponse. + * @memberof BI + * @classdesc Represents a SubscriptionMspPricingResponse. + * @implements ISubscriptionMspPricingResponse + * @constructor + * @param {BI.ISubscriptionMspPricingResponse=} [properties] Properties to set + */ + function SubscriptionMspPricingResponse(properties) { + this.addons = []; + this.filePlans = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SubscriptionMspPricingResponse addons. + * @member {Array.} addons + * @memberof BI.SubscriptionMspPricingResponse + * @instance + */ + SubscriptionMspPricingResponse.prototype.addons = $util.emptyArray; + + /** + * SubscriptionMspPricingResponse filePlans. + * @member {Array.} filePlans + * @memberof BI.SubscriptionMspPricingResponse + * @instance + */ + SubscriptionMspPricingResponse.prototype.filePlans = $util.emptyArray; + + /** + * Creates a new SubscriptionMspPricingResponse instance using the specified properties. + * @function create + * @memberof BI.SubscriptionMspPricingResponse + * @static + * @param {BI.ISubscriptionMspPricingResponse=} [properties] Properties to set + * @returns {BI.SubscriptionMspPricingResponse} SubscriptionMspPricingResponse instance + */ + SubscriptionMspPricingResponse.create = function create(properties) { + return new SubscriptionMspPricingResponse(properties); + }; + + /** + * Encodes the specified SubscriptionMspPricingResponse message. Does not implicitly {@link BI.SubscriptionMspPricingResponse.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.addons != null && message.addons.length) + for (let i = 0; i < message.addons.length; ++i) + $root.BI.Addon.encode(message.addons[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.filePlans != null && message.filePlans.length) + for (let i = 0; i < message.filePlans.length; ++i) + $root.BI.FilePlan.encode(message.filePlans[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + 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 + * @memberof BI.SubscriptionMspPricingResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionMspPricingResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + if (!(message.addons && message.addons.length)) + message.addons = []; + message.addons.push($root.BI.Addon.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.filePlans && message.filePlans.length)) + message.filePlans = []; + message.filePlans.push($root.BI.FilePlan.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object 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.Addon.verify(message.addons[i]); + 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]); + 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 + * @memberof BI.SubscriptionMspPricingResponse + * @static + * @param {Object.} object Plain object + * @returns {BI.SubscriptionMspPricingResponse} SubscriptionMspPricingResponse + */ + SubscriptionMspPricingResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SubscriptionMspPricingResponse) + return object; + let message = new $root.BI.SubscriptionMspPricingResponse(); + if (object.addons) { + if (!Array.isArray(object.addons)) + throw TypeError(".BI.SubscriptionMspPricingResponse.addons: array expected"); + message.addons = []; + for (let i = 0; i < object.addons.length; ++i) { + if (typeof object.addons[i] !== "object") + throw TypeError(".BI.SubscriptionMspPricingResponse.addons: object expected"); + message.addons[i] = $root.BI.Addon.fromObject(object.addons[i]); + } + } + if (object.filePlans) { + if (!Array.isArray(object.filePlans)) + throw TypeError(".BI.SubscriptionMspPricingResponse.filePlans: array expected"); + message.filePlans = []; + for (let i = 0; i < object.filePlans.length; ++i) { + if (typeof object.filePlans[i] !== "object") + throw TypeError(".BI.SubscriptionMspPricingResponse.filePlans: object expected"); + message.filePlans[i] = $root.BI.FilePlan.fromObject(object.filePlans[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a SubscriptionMspPricingResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.SubscriptionMspPricingResponse + * @static + * @param {BI.SubscriptionMspPricingResponse} message SubscriptionMspPricingResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SubscriptionMspPricingResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.addons = []; + object.filePlans = []; + } + if (message.addons && message.addons.length) { + object.addons = []; + for (let j = 0; j < message.addons.length; ++j) + object.addons[j] = $root.BI.Addon.toObject(message.addons[j], options); + } + if (message.filePlans && message.filePlans.length) { + object.filePlans = []; + for (let j = 0; j < message.filePlans.length; ++j) + object.filePlans[j] = $root.BI.FilePlan.toObject(message.filePlans[j], options); + } + return object; + }; + + /** + * Converts this SubscriptionMspPricingResponse to JSON. + * @function toJSON + * @memberof BI.SubscriptionMspPricingResponse + * @instance + * @returns {Object.} JSON object + */ + SubscriptionMspPricingResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SubscriptionMspPricingResponse + * @function getTypeUrl + * @memberof BI.SubscriptionMspPricingResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SubscriptionMspPricingResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.SubscriptionMspPricingResponse"; + }; + + return SubscriptionMspPricingResponse; + })(); + + BI.SubscriptionMcPricingRequest = (function() { + + /** + * Properties of a SubscriptionMcPricingRequest. + * @memberof BI + * @interface ISubscriptionMcPricingRequest + */ + + /** + * Constructs a new SubscriptionMcPricingRequest. + * @memberof BI + * @classdesc Represents a SubscriptionMcPricingRequest. + * @implements ISubscriptionMcPricingRequest + * @constructor + * @param {BI.ISubscriptionMcPricingRequest=} [properties] Properties to set + */ + function SubscriptionMcPricingRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new SubscriptionMcPricingRequest instance using the specified properties. + * @function create + * @memberof BI.SubscriptionMcPricingRequest + * @static + * @param {BI.ISubscriptionMcPricingRequest=} [properties] Properties to set + * @returns {BI.SubscriptionMcPricingRequest} SubscriptionMcPricingRequest instance + */ + SubscriptionMcPricingRequest.create = function create(properties) { + return new SubscriptionMcPricingRequest(properties); + }; + + /** + * Encodes the specified SubscriptionMcPricingRequest message. Does not implicitly {@link BI.SubscriptionMcPricingRequest.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + 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 + * @memberof BI.SubscriptionMcPricingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionMcPricingRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a SubscriptionMcPricingRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof BI.SubscriptionMcPricingRequest + * @static + * @param {Object.} object Plain object + * @returns {BI.SubscriptionMcPricingRequest} SubscriptionMcPricingRequest + */ + SubscriptionMcPricingRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SubscriptionMcPricingRequest) + return object; + return new $root.BI.SubscriptionMcPricingRequest(); + }; + + /** + * Creates a plain object from a SubscriptionMcPricingRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.SubscriptionMcPricingRequest + * @static + * @param {BI.SubscriptionMcPricingRequest} message SubscriptionMcPricingRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SubscriptionMcPricingRequest.toObject = function toObject() { + return {}; + }; + + /** + * Converts this SubscriptionMcPricingRequest to JSON. + * @function toJSON + * @memberof BI.SubscriptionMcPricingRequest + * @instance + * @returns {Object.} JSON object + */ + SubscriptionMcPricingRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SubscriptionMcPricingRequest + * @function getTypeUrl + * @memberof BI.SubscriptionMcPricingRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SubscriptionMcPricingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.SubscriptionMcPricingRequest"; + }; + + return SubscriptionMcPricingRequest; + })(); + + BI.SubscriptionMcPricingResponse = (function() { + + /** + * Properties of a SubscriptionMcPricingResponse. + * @memberof BI + * @interface ISubscriptionMcPricingResponse + * @property {Array.|null} [basePlans] SubscriptionMcPricingResponse basePlans + * @property {Array.|null} [addons] SubscriptionMcPricingResponse addons + * @property {Array.|null} [filePlans] SubscriptionMcPricingResponse filePlans + */ + + /** + * Constructs a new SubscriptionMcPricingResponse. + * @memberof BI + * @classdesc Represents a SubscriptionMcPricingResponse. + * @implements ISubscriptionMcPricingResponse + * @constructor + * @param {BI.ISubscriptionMcPricingResponse=} [properties] Properties to set + */ + function SubscriptionMcPricingResponse(properties) { + this.basePlans = []; + this.addons = []; + this.filePlans = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SubscriptionMcPricingResponse basePlans. + * @member {Array.} basePlans + * @memberof BI.SubscriptionMcPricingResponse + * @instance + */ + SubscriptionMcPricingResponse.prototype.basePlans = $util.emptyArray; + + /** + * SubscriptionMcPricingResponse addons. + * @member {Array.} addons + * @memberof BI.SubscriptionMcPricingResponse + * @instance + */ + SubscriptionMcPricingResponse.prototype.addons = $util.emptyArray; + + /** + * SubscriptionMcPricingResponse filePlans. + * @member {Array.} filePlans + * @memberof BI.SubscriptionMcPricingResponse + * @instance + */ + SubscriptionMcPricingResponse.prototype.filePlans = $util.emptyArray; + + /** + * Creates a new SubscriptionMcPricingResponse instance using the specified properties. + * @function create + * @memberof BI.SubscriptionMcPricingResponse + * @static + * @param {BI.ISubscriptionMcPricingResponse=} [properties] Properties to set + * @returns {BI.SubscriptionMcPricingResponse} SubscriptionMcPricingResponse instance + */ + SubscriptionMcPricingResponse.create = function create(properties) { + return new SubscriptionMcPricingResponse(properties); + }; + + /** + * Encodes the specified SubscriptionMcPricingResponse message. Does not implicitly {@link BI.SubscriptionMcPricingResponse.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.basePlans != null && message.basePlans.length) + for (let i = 0; i < message.basePlans.length; ++i) + $root.BI.BasePlan.encode(message.basePlans[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.addons != null && message.addons.length) + for (let i = 0; i < message.addons.length; ++i) + $root.BI.Addon.encode(message.addons[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.filePlans != null && message.filePlans.length) + for (let i = 0; i < message.filePlans.length; ++i) + $root.BI.FilePlan.encode(message.filePlans[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + 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 + * @memberof BI.SubscriptionMcPricingResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionMcPricingResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.basePlans && message.basePlans.length)) + message.basePlans = []; + message.basePlans.push($root.BI.BasePlan.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.addons && message.addons.length)) + message.addons = []; + message.addons.push($root.BI.Addon.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.filePlans && message.filePlans.length)) + message.filePlans = []; + message.filePlans.push($root.BI.FilePlan.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + 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]); + 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]); + 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 + * @memberof BI.SubscriptionMcPricingResponse + * @static + * @param {Object.} object Plain object + * @returns {BI.SubscriptionMcPricingResponse} SubscriptionMcPricingResponse + */ + SubscriptionMcPricingResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SubscriptionMcPricingResponse) + return object; + let message = new $root.BI.SubscriptionMcPricingResponse(); + if (object.basePlans) { + if (!Array.isArray(object.basePlans)) + throw TypeError(".BI.SubscriptionMcPricingResponse.basePlans: array expected"); + message.basePlans = []; + for (let i = 0; i < object.basePlans.length; ++i) { + if (typeof object.basePlans[i] !== "object") + throw TypeError(".BI.SubscriptionMcPricingResponse.basePlans: object expected"); + message.basePlans[i] = $root.BI.BasePlan.fromObject(object.basePlans[i]); + } + } + if (object.addons) { + if (!Array.isArray(object.addons)) + throw TypeError(".BI.SubscriptionMcPricingResponse.addons: array expected"); + message.addons = []; + for (let i = 0; i < object.addons.length; ++i) { + if (typeof object.addons[i] !== "object") + throw TypeError(".BI.SubscriptionMcPricingResponse.addons: object expected"); + message.addons[i] = $root.BI.Addon.fromObject(object.addons[i]); + } + } + if (object.filePlans) { + if (!Array.isArray(object.filePlans)) + throw TypeError(".BI.SubscriptionMcPricingResponse.filePlans: array expected"); + message.filePlans = []; + for (let i = 0; i < object.filePlans.length; ++i) { + if (typeof object.filePlans[i] !== "object") + throw TypeError(".BI.SubscriptionMcPricingResponse.filePlans: object expected"); + message.filePlans[i] = $root.BI.FilePlan.fromObject(object.filePlans[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a SubscriptionMcPricingResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.SubscriptionMcPricingResponse + * @static + * @param {BI.SubscriptionMcPricingResponse} message SubscriptionMcPricingResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SubscriptionMcPricingResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.basePlans = []; + object.addons = []; + object.filePlans = []; + } + if (message.basePlans && message.basePlans.length) { + object.basePlans = []; + for (let j = 0; j < message.basePlans.length; ++j) + object.basePlans[j] = $root.BI.BasePlan.toObject(message.basePlans[j], options); + } + if (message.addons && message.addons.length) { + object.addons = []; + for (let j = 0; j < message.addons.length; ++j) + object.addons[j] = $root.BI.Addon.toObject(message.addons[j], options); + } + if (message.filePlans && message.filePlans.length) { + object.filePlans = []; + for (let j = 0; j < message.filePlans.length; ++j) + object.filePlans[j] = $root.BI.FilePlan.toObject(message.filePlans[j], options); + } + return object; + }; + + /** + * Converts this SubscriptionMcPricingResponse to JSON. + * @function toJSON + * @memberof BI.SubscriptionMcPricingResponse + * @instance + * @returns {Object.} JSON object + */ + SubscriptionMcPricingResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SubscriptionMcPricingResponse + * @function getTypeUrl + * @memberof BI.SubscriptionMcPricingResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SubscriptionMcPricingResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.SubscriptionMcPricingResponse"; + }; + + return SubscriptionMcPricingResponse; + })(); + + BI.BasePlan = (function() { + + /** + * Properties of a BasePlan. + * @memberof BI + * @interface IBasePlan + * @property {number|null} [id] BasePlan id + * @property {BI.ICost|null} [cost] BasePlan cost + */ + + /** + * Constructs a new BasePlan. + * @memberof BI + * @classdesc Represents a BasePlan. + * @implements IBasePlan + * @constructor + * @param {BI.IBasePlan=} [properties] Properties to set + */ + function BasePlan(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BasePlan id. + * @member {number} id + * @memberof BI.BasePlan + * @instance + */ + BasePlan.prototype.id = 0; + + /** + * BasePlan cost. + * @member {BI.ICost|null|undefined} cost + * @memberof BI.BasePlan + * @instance + */ + BasePlan.prototype.cost = null; + + /** + * Creates a new BasePlan instance using the specified properties. + * @function create + * @memberof BI.BasePlan + * @static + * @param {BI.IBasePlan=} [properties] Properties to set + * @returns {BI.BasePlan} BasePlan instance + */ + BasePlan.create = function create(properties) { + return new BasePlan(properties); + }; + + /** + * Encodes the specified BasePlan message. Does not implicitly {@link BI.BasePlan.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); + if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) + $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + 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 + * @memberof BI.BasePlan + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.BasePlan(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.id = reader.int32(); + break; + } + case 2: { + message.cost = $root.BI.Cost.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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); + 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 + * @memberof BI.BasePlan + * @static + * @param {Object.} object Plain object + * @returns {BI.BasePlan} BasePlan + */ + BasePlan.fromObject = function fromObject(object) { + if (object instanceof $root.BI.BasePlan) + return object; + let message = new $root.BI.BasePlan(); + if (object.id != null) + message.id = object.id | 0; + if (object.cost != null) { + if (typeof object.cost !== "object") + throw TypeError(".BI.BasePlan.cost: object expected"); + message.cost = $root.BI.Cost.fromObject(object.cost); + } + return message; + }; + + /** + * Creates a plain object from a BasePlan message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.BasePlan + * @static + * @param {BI.BasePlan} message BasePlan + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BasePlan.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.id = 0; + object.cost = null; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.cost != null && message.hasOwnProperty("cost")) + object.cost = $root.BI.Cost.toObject(message.cost, options); + return object; + }; + + /** + * Converts this BasePlan to JSON. + * @function toJSON + * @memberof BI.BasePlan + * @instance + * @returns {Object.} JSON object + */ + BasePlan.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BasePlan + * @function getTypeUrl + * @memberof BI.BasePlan + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BasePlan.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.BasePlan"; + }; + + return BasePlan; + })(); + + BI.Addon = (function() { + + /** + * Properties of an Addon. + * @memberof BI + * @interface IAddon + * @property {number|null} [id] Addon id + * @property {BI.ICost|null} [cost] Addon cost + * @property {number|Long|null} [amountConsumed] Addon amountConsumed + */ + + /** + * Constructs a new Addon. + * @memberof BI + * @classdesc Represents an Addon. + * @implements IAddon + * @constructor + * @param {BI.IAddon=} [properties] Properties to set + */ + function Addon(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Addon id. + * @member {number} id + * @memberof BI.Addon + * @instance + */ + Addon.prototype.id = 0; + + /** + * Addon cost. + * @member {BI.ICost|null|undefined} cost + * @memberof BI.Addon + * @instance + */ + Addon.prototype.cost = null; + + /** + * Addon amountConsumed. + * @member {number|Long} amountConsumed + * @memberof BI.Addon + * @instance + */ + Addon.prototype.amountConsumed = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new Addon instance using the specified properties. + * @function create + * @memberof BI.Addon + * @static + * @param {BI.IAddon=} [properties] Properties to set + * @returns {BI.Addon} Addon instance + */ + Addon.create = function create(properties) { + return new Addon(properties); + }; + + /** + * Encodes the specified Addon message. Does not implicitly {@link BI.Addon.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); + if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) + $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.amountConsumed != null && Object.hasOwnProperty.call(message, "amountConsumed")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.amountConsumed); + 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 + * @memberof BI.Addon + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.Addon(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.id = reader.int32(); + break; + } + case 2: { + message.cost = $root.BI.Cost.decode(reader, reader.uint32()); + break; + } + case 3: { + message.amountConsumed = reader.int64(); + break; + } default: - return "lastRotationStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: + reader.skipType(tag & 7); break; } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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); + 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 a RecordRotation message from a plain object. Also converts values to their respective internal types. + * Creates an Addon message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.RecordRotation + * @memberof BI.Addon * @static * @param {Object.} object Plain object - * @returns {Vault.RecordRotation} RecordRotation + * @returns {BI.Addon} Addon */ - RecordRotation.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.RecordRotation) + Addon.fromObject = function fromObject(object) { + if (object instanceof $root.BI.Addon) return object; - let message = new $root.Vault.RecordRotation(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.configurationUid != null) - if (typeof object.configurationUid === "string") - $util.base64.decode(object.configurationUid, message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid)), 0); - else if (object.configurationUid.length >= 0) - message.configurationUid = object.configurationUid; - if (object.schedule != null) - message.schedule = String(object.schedule); - if (object.pwdComplexity != null) - if (typeof object.pwdComplexity === "string") - $util.base64.decode(object.pwdComplexity, message.pwdComplexity = $util.newBuffer($util.base64.length(object.pwdComplexity)), 0); - else if (object.pwdComplexity.length >= 0) - message.pwdComplexity = object.pwdComplexity; - if (object.disabled != null) - message.disabled = Boolean(object.disabled); - if (object.resourceUid != null) - if (typeof object.resourceUid === "string") - $util.base64.decode(object.resourceUid, message.resourceUid = $util.newBuffer($util.base64.length(object.resourceUid)), 0); - else if (object.resourceUid.length >= 0) - message.resourceUid = object.resourceUid; - if (object.lastRotation != null) - if ($util.Long) - (message.lastRotation = $util.Long.fromValue(object.lastRotation)).unsigned = false; - else if (typeof object.lastRotation === "string") - message.lastRotation = parseInt(object.lastRotation, 10); - else if (typeof object.lastRotation === "number") - message.lastRotation = object.lastRotation; - else if (typeof object.lastRotation === "object") - message.lastRotation = new $util.LongBits(object.lastRotation.low >>> 0, object.lastRotation.high >>> 0).toNumber(); - switch (object.lastRotationStatus) { - default: - if (typeof object.lastRotationStatus === "number") { - message.lastRotationStatus = object.lastRotationStatus; - break; - } - break; - case "RRST_NOT_ROTATED": - case 0: - message.lastRotationStatus = 0; - break; - case "RRST_IN_PROGRESS": - case 1: - message.lastRotationStatus = 1; - break; - case "RRST_SUCCESS": - case 2: - message.lastRotationStatus = 2; - break; - case "RRST_FAILURE": - case 3: - message.lastRotationStatus = 3; - break; + let message = new $root.BI.Addon(); + if (object.id != null) + message.id = object.id | 0; + if (object.cost != null) { + if (typeof object.cost !== "object") + throw TypeError(".BI.Addon.cost: object expected"); + message.cost = $root.BI.Cost.fromObject(object.cost); } + if (object.amountConsumed != null) + if ($util.Long) + (message.amountConsumed = $util.Long.fromValue(object.amountConsumed)).unsigned = false; + else if (typeof object.amountConsumed === "string") + message.amountConsumed = parseInt(object.amountConsumed, 10); + else if (typeof object.amountConsumed === "number") + message.amountConsumed = object.amountConsumed; + else if (typeof object.amountConsumed === "object") + message.amountConsumed = new $util.LongBits(object.amountConsumed.low >>> 0, object.amountConsumed.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a RecordRotation message. Also converts values to other types if specified. + * Creates a plain object from an Addon message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.RecordRotation + * @memberof BI.Addon * @static - * @param {Vault.RecordRotation} message RecordRotation + * @param {BI.Addon} message Addon * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordRotation.toObject = function toObject(message, options) { + Addon.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.configurationUid = ""; - else { - object.configurationUid = []; - if (options.bytes !== Array) - object.configurationUid = $util.newBuffer(object.configurationUid); - } - object.schedule = ""; - if (options.bytes === String) - object.pwdComplexity = ""; - else { - object.pwdComplexity = []; - if (options.bytes !== Array) - object.pwdComplexity = $util.newBuffer(object.pwdComplexity); - } - object.disabled = false; - if (options.bytes === String) - object.resourceUid = ""; - else { - object.resourceUid = []; - if (options.bytes !== Array) - object.resourceUid = $util.newBuffer(object.resourceUid); - } + object.id = 0; + object.cost = null; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastRotation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.amountConsumed = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastRotation = options.longs === String ? "0" : 0; - object.lastRotationStatus = options.enums === String ? "RRST_NOT_ROTATED" : 0; + object.amountConsumed = options.longs === String ? "0" : 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof 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")) - 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")) - object.schedule = message.schedule; - if (message.pwdComplexity != null && message.hasOwnProperty("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")) - object.disabled = message.disabled; - if (message.resourceUid != null && message.hasOwnProperty("resourceUid")) - object.resourceUid = options.bytes === String ? $util.base64.encode(message.resourceUid, 0, message.resourceUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.resourceUid) : message.resourceUid; - if (message.lastRotation != null && message.hasOwnProperty("lastRotation")) - if (typeof message.lastRotation === "number") - object.lastRotation = options.longs === String ? String(message.lastRotation) : message.lastRotation; + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.cost != null && message.hasOwnProperty("cost")) + object.cost = $root.BI.Cost.toObject(message.cost, options); + if (message.amountConsumed != null && message.hasOwnProperty("amountConsumed")) + if (typeof message.amountConsumed === "number") + object.amountConsumed = options.longs === String ? String(message.amountConsumed) : message.amountConsumed; 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")) - object.lastRotationStatus = options.enums === String ? $root.Vault.RecordRotationStatus[message.lastRotationStatus] === undefined ? message.lastRotationStatus : $root.Vault.RecordRotationStatus[message.lastRotationStatus] : message.lastRotationStatus; + object.amountConsumed = options.longs === String ? $util.Long.prototype.toString.call(message.amountConsumed) : options.longs === Number ? new $util.LongBits(message.amountConsumed.low >>> 0, message.amountConsumed.high >>> 0).toNumber() : message.amountConsumed; return object; }; /** - * Converts this RecordRotation to JSON. + * Converts this Addon to JSON. * @function toJSON - * @memberof Vault.RecordRotation + * @memberof BI.Addon * @instance * @returns {Object.} JSON object */ - RecordRotation.prototype.toJSON = function toJSON() { + Addon.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecordRotation + * Gets the default type url for Addon * @function getTypeUrl - * @memberof Vault.RecordRotation + * @memberof BI.Addon * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecordRotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Addon.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.RecordRotation"; + return typeUrlPrefix + "/BI.Addon"; }; - return RecordRotation; + return Addon; })(); - Vault.SecurityScoreData = (function() { + BI.FilePlan = (function() { /** - * Properties of a SecurityScoreData. - * @memberof Vault - * @interface ISecurityScoreData - * @property {Uint8Array|null} [recordUid] SecurityScoreData recordUid - * @property {Uint8Array|null} [data] SecurityScoreData data - * @property {number|Long|null} [revision] SecurityScoreData revision + * Properties of a FilePlan. + * @memberof BI + * @interface IFilePlan + * @property {number|null} [id] FilePlan id + * @property {BI.ICost|null} [cost] FilePlan cost */ /** - * Constructs a new SecurityScoreData. - * @memberof Vault - * @classdesc Represents a SecurityScoreData. - * @implements ISecurityScoreData + * Constructs a new FilePlan. + * @memberof BI + * @classdesc Represents a FilePlan. + * @implements IFilePlan * @constructor - * @param {Vault.ISecurityScoreData=} [properties] Properties to set + * @param {BI.IFilePlan=} [properties] Properties to set */ - function SecurityScoreData(properties) { + function FilePlan(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -214011,103 +245231,336 @@ export const Vault = $root.Vault = (() => { } /** - * SecurityScoreData recordUid. - * @member {Uint8Array} recordUid - * @memberof Vault.SecurityScoreData + * FilePlan id. + * @member {number} id + * @memberof BI.FilePlan * @instance */ - SecurityScoreData.prototype.recordUid = $util.newBuffer([]); + FilePlan.prototype.id = 0; /** - * SecurityScoreData data. - * @member {Uint8Array} data - * @memberof Vault.SecurityScoreData + * FilePlan cost. + * @member {BI.ICost|null|undefined} cost + * @memberof BI.FilePlan * @instance */ - SecurityScoreData.prototype.data = $util.newBuffer([]); + FilePlan.prototype.cost = null; /** - * SecurityScoreData revision. - * @member {number|Long} revision - * @memberof Vault.SecurityScoreData + * Creates a new FilePlan instance using the specified properties. + * @function create + * @memberof BI.FilePlan + * @static + * @param {BI.IFilePlan=} [properties] Properties to set + * @returns {BI.FilePlan} FilePlan instance + */ + FilePlan.create = function create(properties) { + return new FilePlan(properties); + }; + + /** + * Encodes the specified FilePlan message. Does not implicitly {@link BI.FilePlan.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); + if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) + $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + 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 + * @memberof BI.FilePlan + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.FilePlan(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.id = reader.int32(); + break; + } + case 2: { + message.cost = $root.BI.Cost.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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); + 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 + * @memberof BI.FilePlan + * @static + * @param {Object.} object Plain object + * @returns {BI.FilePlan} FilePlan + */ + FilePlan.fromObject = function fromObject(object) { + if (object instanceof $root.BI.FilePlan) + return object; + let message = new $root.BI.FilePlan(); + if (object.id != null) + message.id = object.id | 0; + if (object.cost != null) { + if (typeof object.cost !== "object") + throw TypeError(".BI.FilePlan.cost: object expected"); + message.cost = $root.BI.Cost.fromObject(object.cost); + } + return message; + }; + + /** + * Creates a plain object from a FilePlan message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.FilePlan + * @static + * @param {BI.FilePlan} message FilePlan + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FilePlan.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.id = 0; + object.cost = null; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.cost != null && message.hasOwnProperty("cost")) + object.cost = $root.BI.Cost.toObject(message.cost, options); + return object; + }; + + /** + * Converts this FilePlan to JSON. + * @function toJSON + * @memberof BI.FilePlan * @instance + * @returns {Object.} JSON object */ - SecurityScoreData.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FilePlan.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Creates a new SecurityScoreData instance using the specified properties. + * Gets the default type url for FilePlan + * @function getTypeUrl + * @memberof BI.FilePlan + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FilePlan.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.FilePlan"; + }; + + return FilePlan; + })(); + + BI.Cost = (function() { + + /** + * Properties of a Cost. + * @memberof BI + * @interface ICost + * @property {number|null} [amount] Cost amount + * @property {BI.Cost.AmountPer|null} [amountPer] Cost amountPer + * @property {BI.Currency|null} [currency] Cost currency + */ + + /** + * Constructs a new Cost. + * @memberof BI + * @classdesc Represents a Cost. + * @implements ICost + * @constructor + * @param {BI.ICost=} [properties] Properties to set + */ + function Cost(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Cost amount. + * @member {number} amount + * @memberof BI.Cost + * @instance + */ + Cost.prototype.amount = 0; + + /** + * Cost amountPer. + * @member {BI.Cost.AmountPer} amountPer + * @memberof BI.Cost + * @instance + */ + Cost.prototype.amountPer = 0; + + /** + * Cost currency. + * @member {BI.Currency} currency + * @memberof BI.Cost + * @instance + */ + Cost.prototype.currency = 0; + + /** + * Creates a new Cost instance using the specified properties. * @function create - * @memberof Vault.SecurityScoreData + * @memberof BI.Cost * @static - * @param {Vault.ISecurityScoreData=} [properties] Properties to set - * @returns {Vault.SecurityScoreData} SecurityScoreData instance + * @param {BI.ICost=} [properties] Properties to set + * @returns {BI.Cost} Cost instance */ - SecurityScoreData.create = function create(properties) { - return new SecurityScoreData(properties); + Cost.create = function create(properties) { + return new Cost(properties); }; /** - * Encodes the specified SecurityScoreData message. Does not implicitly {@link Vault.SecurityScoreData.verify|verify} messages. + * Encodes the specified Cost message. Does not implicitly {@link BI.Cost.verify|verify} messages. * @function encode - * @memberof Vault.SecurityScoreData + * @memberof BI.Cost * @static - * @param {Vault.ISecurityScoreData} message SecurityScoreData message or plain object to encode + * @param {BI.ICost} message Cost message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecurityScoreData.encode = function encode(message, writer) { + Cost.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); + if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.amount); + if (message.amountPer != null && Object.hasOwnProperty.call(message, "amountPer")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.amountPer); + if (message.currency != null && Object.hasOwnProperty.call(message, "currency")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.currency); return writer; }; /** - * Encodes the specified SecurityScoreData message, length delimited. Does not implicitly {@link Vault.SecurityScoreData.verify|verify} messages. + * Encodes the specified Cost message, length delimited. Does not implicitly {@link BI.Cost.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.SecurityScoreData + * @memberof BI.Cost * @static - * @param {Vault.ISecurityScoreData} message SecurityScoreData message or plain object to encode + * @param {BI.ICost} message Cost message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecurityScoreData.encodeDelimited = function encodeDelimited(message, writer) { + Cost.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SecurityScoreData message from the specified reader or buffer. + * Decodes a Cost message from the specified reader or buffer. * @function decode - * @memberof Vault.SecurityScoreData + * @memberof BI.Cost * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.SecurityScoreData} SecurityScoreData + * @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 */ - SecurityScoreData.decode = function decode(reader, length) { + Cost.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SecurityScoreData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.Cost(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.recordUid = reader.bytes(); + case 3: { + message.amount = reader.double(); break; } - case 2: { - message.data = reader.bytes(); + case 4: { + message.amountPer = reader.int32(); break; } - case 3: { - message.revision = reader.int64(); + case 5: { + message.currency = reader.int32(); break; } default: @@ -214119,172 +245572,267 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a SecurityScoreData message from the specified reader or buffer, length delimited. + * Decodes a Cost message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.SecurityScoreData + * @memberof BI.Cost * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.SecurityScoreData} SecurityScoreData + * @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 */ - SecurityScoreData.decodeDelimited = function decodeDelimited(reader) { + Cost.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SecurityScoreData message. + * Verifies a Cost message. * @function verify - * @memberof Vault.SecurityScoreData + * @memberof BI.Cost * @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) { + Cost.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.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"; + 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; + } return null; }; /** - * Creates a SecurityScoreData message from a plain object. Also converts values to their respective internal types. + * Creates a Cost message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.SecurityScoreData + * @memberof BI.Cost * @static * @param {Object.} object Plain object - * @returns {Vault.SecurityScoreData} SecurityScoreData + * @returns {BI.Cost} Cost */ - SecurityScoreData.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SecurityScoreData) + Cost.fromObject = function fromObject(object) { + if (object instanceof $root.BI.Cost) return object; - let message = new $root.Vault.SecurityScoreData(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + let message = new $root.BI.Cost(); + if (object.amount != null) + message.amount = Number(object.amount); + switch (object.amountPer) { + default: + if (typeof object.amountPer === "number") { + message.amountPer = object.amountPer; + break; + } + break; + case "UNKNOWN": + case 0: + message.amountPer = 0; + break; + case "MONTH": + case 1: + message.amountPer = 1; + break; + case "USER_MONTH": + case 2: + message.amountPer = 2; + break; + case "USER_CONSUMED_MONTH": + case 3: + message.amountPer = 3; + break; + case "ENDPOINT_MONTH": + case 4: + message.amountPer = 4; + break; + case "USER_YEAR": + case 5: + message.amountPer = 5; + break; + case "USER_CONSUMED_YEAR": + case 6: + message.amountPer = 6; + break; + case "YEAR": + case 7: + message.amountPer = 7; + break; + case "ENDPOINT_YEAR": + case 8: + message.amountPer = 8; + break; + } + switch (object.currency) { + default: + if (typeof object.currency === "number") { + message.currency = object.currency; + break; + } + break; + case "UNKNOWN": + case 0: + message.currency = 0; + break; + case "USD": + case 1: + message.currency = 1; + break; + case "GBP": + case 2: + message.currency = 2; + break; + case "JPY": + case 3: + message.currency = 3; + break; + case "EUR": + case 4: + message.currency = 4; + break; + case "AUD": + case 5: + message.currency = 5; + break; + case "CAD": + case 6: + message.currency = 6; + break; + } return message; }; /** - * Creates a plain object from a SecurityScoreData message. Also converts values to other types if specified. + * Creates a plain object from a Cost message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.SecurityScoreData + * @memberof BI.Cost * @static - * @param {Vault.SecurityScoreData} message SecurityScoreData + * @param {BI.Cost} message Cost * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SecurityScoreData.toObject = function toObject(message, options) { + Cost.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; + object.amount = 0; + object.amountPer = options.enums === String ? "UNKNOWN" : 0; + object.currency = options.enums === String ? "UNKNOWN" : 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof 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.amount != null && message.hasOwnProperty("amount")) + object.amount = options.json && !isFinite(message.amount) ? String(message.amount) : message.amount; + if (message.amountPer != null && message.hasOwnProperty("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")) + object.currency = options.enums === String ? $root.BI.Currency[message.currency] === undefined ? message.currency : $root.BI.Currency[message.currency] : message.currency; return object; }; /** - * Converts this SecurityScoreData to JSON. + * Converts this Cost to JSON. * @function toJSON - * @memberof Vault.SecurityScoreData + * @memberof BI.Cost * @instance * @returns {Object.} JSON object */ - SecurityScoreData.prototype.toJSON = function toJSON() { + Cost.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SecurityScoreData + * Gets the default type url for Cost * @function getTypeUrl - * @memberof Vault.SecurityScoreData + * @memberof BI.Cost * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SecurityScoreData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Cost.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.SecurityScoreData"; + return typeUrlPrefix + "/BI.Cost"; }; - return SecurityScoreData; + /** + * AmountPer enum. + * @name BI.Cost.AmountPer + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} MONTH=1 MONTH value + * @property {number} USER_MONTH=2 USER_MONTH value + * @property {number} USER_CONSUMED_MONTH=3 USER_CONSUMED_MONTH value + * @property {number} ENDPOINT_MONTH=4 ENDPOINT_MONTH value + * @property {number} USER_YEAR=5 USER_YEAR value + * @property {number} USER_CONSUMED_YEAR=6 USER_CONSUMED_YEAR value + * @property {number} YEAR=7 YEAR value + * @property {number} ENDPOINT_YEAR=8 ENDPOINT_YEAR value + */ + Cost.AmountPer = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "MONTH"] = 1; + values[valuesById[2] = "USER_MONTH"] = 2; + values[valuesById[3] = "USER_CONSUMED_MONTH"] = 3; + values[valuesById[4] = "ENDPOINT_MONTH"] = 4; + values[valuesById[5] = "USER_YEAR"] = 5; + values[valuesById[6] = "USER_CONSUMED_YEAR"] = 6; + values[valuesById[7] = "YEAR"] = 7; + values[valuesById[8] = "ENDPOINT_YEAR"] = 8; + return values; + })(); + + return Cost; })(); - Vault.BreachWatchGetSyncDataRequest = (function() { + BI.InvoiceSearchRequest = (function() { /** - * Properties of a BreachWatchGetSyncDataRequest. - * @memberof Vault - * @interface IBreachWatchGetSyncDataRequest - * @property {Array.|null} [recordUids] BreachWatchGetSyncDataRequest recordUids + * Properties of an InvoiceSearchRequest. + * @memberof BI + * @interface IInvoiceSearchRequest + * @property {number|null} [size] InvoiceSearchRequest size + * @property {number|null} [startingAfterId] InvoiceSearchRequest startingAfterId + * @property {boolean|null} [allInvoicesUnfiltered] InvoiceSearchRequest allInvoicesUnfiltered */ /** - * Constructs a new BreachWatchGetSyncDataRequest. - * @memberof Vault - * @classdesc Represents a BreachWatchGetSyncDataRequest. - * @implements IBreachWatchGetSyncDataRequest + * Constructs a new InvoiceSearchRequest. + * @memberof BI + * @classdesc Represents an InvoiceSearchRequest. + * @implements IInvoiceSearchRequest * @constructor - * @param {Vault.IBreachWatchGetSyncDataRequest=} [properties] Properties to set + * @param {BI.IInvoiceSearchRequest=} [properties] Properties to set */ - function BreachWatchGetSyncDataRequest(properties) { - this.recordUids = []; + function InvoiceSearchRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -214292,78 +245840,103 @@ export const Vault = $root.Vault = (() => { } /** - * BreachWatchGetSyncDataRequest recordUids. - * @member {Array.} recordUids - * @memberof Vault.BreachWatchGetSyncDataRequest + * InvoiceSearchRequest size. + * @member {number} size + * @memberof BI.InvoiceSearchRequest * @instance */ - BreachWatchGetSyncDataRequest.prototype.recordUids = $util.emptyArray; + InvoiceSearchRequest.prototype.size = 0; /** - * Creates a new BreachWatchGetSyncDataRequest instance using the specified properties. + * InvoiceSearchRequest startingAfterId. + * @member {number} startingAfterId + * @memberof BI.InvoiceSearchRequest + * @instance + */ + InvoiceSearchRequest.prototype.startingAfterId = 0; + + /** + * InvoiceSearchRequest allInvoicesUnfiltered. + * @member {boolean} allInvoicesUnfiltered + * @memberof BI.InvoiceSearchRequest + * @instance + */ + InvoiceSearchRequest.prototype.allInvoicesUnfiltered = false; + + /** + * Creates a new InvoiceSearchRequest instance using the specified properties. * @function create - * @memberof Vault.BreachWatchGetSyncDataRequest + * @memberof BI.InvoiceSearchRequest * @static - * @param {Vault.IBreachWatchGetSyncDataRequest=} [properties] Properties to set - * @returns {Vault.BreachWatchGetSyncDataRequest} BreachWatchGetSyncDataRequest instance + * @param {BI.IInvoiceSearchRequest=} [properties] Properties to set + * @returns {BI.InvoiceSearchRequest} InvoiceSearchRequest instance */ - BreachWatchGetSyncDataRequest.create = function create(properties) { - return new BreachWatchGetSyncDataRequest(properties); + InvoiceSearchRequest.create = function create(properties) { + return new InvoiceSearchRequest(properties); }; /** - * Encodes the specified BreachWatchGetSyncDataRequest message. Does not implicitly {@link Vault.BreachWatchGetSyncDataRequest.verify|verify} messages. + * Encodes the specified InvoiceSearchRequest message. Does not implicitly {@link BI.InvoiceSearchRequest.verify|verify} messages. * @function encode - * @memberof Vault.BreachWatchGetSyncDataRequest + * @memberof BI.InvoiceSearchRequest * @static - * @param {Vault.IBreachWatchGetSyncDataRequest} message BreachWatchGetSyncDataRequest message or plain object to encode + * @param {BI.IInvoiceSearchRequest} message InvoiceSearchRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchGetSyncDataRequest.encode = function encode(message, writer) { + InvoiceSearchRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUids != null && message.recordUids.length) - for (let i = 0; i < message.recordUids.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUids[i]); + if (message.size != null && Object.hasOwnProperty.call(message, "size")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.size); + if (message.startingAfterId != null && Object.hasOwnProperty.call(message, "startingAfterId")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.startingAfterId); + if (message.allInvoicesUnfiltered != null && Object.hasOwnProperty.call(message, "allInvoicesUnfiltered")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allInvoicesUnfiltered); return writer; }; /** - * Encodes the specified BreachWatchGetSyncDataRequest message, length delimited. Does not implicitly {@link Vault.BreachWatchGetSyncDataRequest.verify|verify} messages. + * Encodes the specified InvoiceSearchRequest message, length delimited. Does not implicitly {@link BI.InvoiceSearchRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.BreachWatchGetSyncDataRequest + * @memberof BI.InvoiceSearchRequest * @static - * @param {Vault.IBreachWatchGetSyncDataRequest} message BreachWatchGetSyncDataRequest message or plain object to encode + * @param {BI.IInvoiceSearchRequest} message InvoiceSearchRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchGetSyncDataRequest.encodeDelimited = function encodeDelimited(message, writer) { + InvoiceSearchRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BreachWatchGetSyncDataRequest message from the specified reader or buffer. + * Decodes an InvoiceSearchRequest message from the specified reader or buffer. * @function decode - * @memberof Vault.BreachWatchGetSyncDataRequest + * @memberof BI.InvoiceSearchRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.BreachWatchGetSyncDataRequest} BreachWatchGetSyncDataRequest + * @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 */ - BreachWatchGetSyncDataRequest.decode = function decode(reader, length) { + InvoiceSearchRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.BreachWatchGetSyncDataRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.InvoiceSearchRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.recordUids && message.recordUids.length)) - message.recordUids = []; - message.recordUids.push(reader.bytes()); + message.size = reader.int32(); + break; + } + case 2: { + message.startingAfterId = reader.int32(); + break; + } + case 3: { + message.allInvoicesUnfiltered = reader.bool(); break; } default: @@ -214375,142 +245948,140 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a BreachWatchGetSyncDataRequest message from the specified reader or buffer, length delimited. + * Decodes an InvoiceSearchRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.BreachWatchGetSyncDataRequest + * @memberof BI.InvoiceSearchRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.BreachWatchGetSyncDataRequest} BreachWatchGetSyncDataRequest + * @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 */ - BreachWatchGetSyncDataRequest.decodeDelimited = function decodeDelimited(reader) { + InvoiceSearchRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BreachWatchGetSyncDataRequest message. + * Verifies an InvoiceSearchRequest message. * @function verify - * @memberof Vault.BreachWatchGetSyncDataRequest + * @memberof BI.InvoiceSearchRequest * @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) { + InvoiceSearchRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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 a BreachWatchGetSyncDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InvoiceSearchRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.BreachWatchGetSyncDataRequest + * @memberof BI.InvoiceSearchRequest * @static * @param {Object.} object Plain object - * @returns {Vault.BreachWatchGetSyncDataRequest} BreachWatchGetSyncDataRequest + * @returns {BI.InvoiceSearchRequest} InvoiceSearchRequest */ - BreachWatchGetSyncDataRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.BreachWatchGetSyncDataRequest) + InvoiceSearchRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.InvoiceSearchRequest) return object; - let message = new $root.Vault.BreachWatchGetSyncDataRequest(); - if (object.recordUids) { - if (!Array.isArray(object.recordUids)) - throw TypeError(".Vault.BreachWatchGetSyncDataRequest.recordUids: array expected"); - message.recordUids = []; - for (let i = 0; i < object.recordUids.length; ++i) - if (typeof object.recordUids[i] === "string") - $util.base64.decode(object.recordUids[i], message.recordUids[i] = $util.newBuffer($util.base64.length(object.recordUids[i])), 0); - else if (object.recordUids[i].length >= 0) - message.recordUids[i] = object.recordUids[i]; - } + let message = new $root.BI.InvoiceSearchRequest(); + if (object.size != null) + message.size = object.size | 0; + if (object.startingAfterId != null) + message.startingAfterId = object.startingAfterId | 0; + if (object.allInvoicesUnfiltered != null) + message.allInvoicesUnfiltered = Boolean(object.allInvoicesUnfiltered); return message; }; /** - * Creates a plain object from a BreachWatchGetSyncDataRequest message. Also converts values to other types if specified. + * Creates a plain object from an InvoiceSearchRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.BreachWatchGetSyncDataRequest + * @memberof BI.InvoiceSearchRequest * @static - * @param {Vault.BreachWatchGetSyncDataRequest} message BreachWatchGetSyncDataRequest + * @param {BI.InvoiceSearchRequest} message InvoiceSearchRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachWatchGetSyncDataRequest.toObject = function toObject(message, options) { + InvoiceSearchRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.recordUids = []; - if (message.recordUids && message.recordUids.length) { - object.recordUids = []; - for (let j = 0; j < message.recordUids.length; ++j) - object.recordUids[j] = options.bytes === String ? $util.base64.encode(message.recordUids[j], 0, message.recordUids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUids[j]) : message.recordUids[j]; + if (options.defaults) { + object.size = 0; + object.startingAfterId = 0; + object.allInvoicesUnfiltered = false; } + if (message.size != null && message.hasOwnProperty("size")) + object.size = message.size; + if (message.startingAfterId != null && message.hasOwnProperty("startingAfterId")) + object.startingAfterId = message.startingAfterId; + if (message.allInvoicesUnfiltered != null && message.hasOwnProperty("allInvoicesUnfiltered")) + object.allInvoicesUnfiltered = message.allInvoicesUnfiltered; return object; }; /** - * Converts this BreachWatchGetSyncDataRequest to JSON. + * Converts this InvoiceSearchRequest to JSON. * @function toJSON - * @memberof Vault.BreachWatchGetSyncDataRequest + * @memberof BI.InvoiceSearchRequest * @instance * @returns {Object.} JSON object */ - BreachWatchGetSyncDataRequest.prototype.toJSON = function toJSON() { + InvoiceSearchRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BreachWatchGetSyncDataRequest + * Gets the default type url for InvoiceSearchRequest * @function getTypeUrl - * @memberof Vault.BreachWatchGetSyncDataRequest + * @memberof BI.InvoiceSearchRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BreachWatchGetSyncDataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InvoiceSearchRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.BreachWatchGetSyncDataRequest"; + return typeUrlPrefix + "/BI.InvoiceSearchRequest"; }; - return BreachWatchGetSyncDataRequest; + return InvoiceSearchRequest; })(); - Vault.BreachWatchGetSyncDataResponse = (function() { + BI.InvoiceSearchResponse = (function() { /** - * Properties of a BreachWatchGetSyncDataResponse. - * @memberof Vault - * @interface IBreachWatchGetSyncDataResponse - * @property {Array.|null} [breachWatchRecords] BreachWatchGetSyncDataResponse breachWatchRecords - * @property {Array.|null} [breachWatchSecurityData] BreachWatchGetSyncDataResponse breachWatchSecurityData - * @property {Array.|null} [users] BreachWatchGetSyncDataResponse users + * Properties of an InvoiceSearchResponse. + * @memberof BI + * @interface IInvoiceSearchResponse + * @property {Array.|null} [invoices] InvoiceSearchResponse invoices */ /** - * Constructs a new BreachWatchGetSyncDataResponse. - * @memberof Vault - * @classdesc Represents a BreachWatchGetSyncDataResponse. - * @implements IBreachWatchGetSyncDataResponse + * Constructs a new InvoiceSearchResponse. + * @memberof BI + * @classdesc Represents an InvoiceSearchResponse. + * @implements IInvoiceSearchResponse * @constructor - * @param {Vault.IBreachWatchGetSyncDataResponse=} [properties] Properties to set + * @param {BI.IInvoiceSearchResponse=} [properties] Properties to set */ - function BreachWatchGetSyncDataResponse(properties) { - this.breachWatchRecords = []; - this.breachWatchSecurityData = []; - this.users = []; + function InvoiceSearchResponse(properties) { + this.invoices = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -214518,112 +246089,78 @@ export const Vault = $root.Vault = (() => { } /** - * BreachWatchGetSyncDataResponse breachWatchRecords. - * @member {Array.} breachWatchRecords - * @memberof Vault.BreachWatchGetSyncDataResponse - * @instance - */ - BreachWatchGetSyncDataResponse.prototype.breachWatchRecords = $util.emptyArray; - - /** - * BreachWatchGetSyncDataResponse breachWatchSecurityData. - * @member {Array.} breachWatchSecurityData - * @memberof Vault.BreachWatchGetSyncDataResponse - * @instance - */ - BreachWatchGetSyncDataResponse.prototype.breachWatchSecurityData = $util.emptyArray; - - /** - * BreachWatchGetSyncDataResponse users. - * @member {Array.} users - * @memberof Vault.BreachWatchGetSyncDataResponse + * InvoiceSearchResponse invoices. + * @member {Array.} invoices + * @memberof BI.InvoiceSearchResponse * @instance */ - BreachWatchGetSyncDataResponse.prototype.users = $util.emptyArray; + InvoiceSearchResponse.prototype.invoices = $util.emptyArray; /** - * Creates a new BreachWatchGetSyncDataResponse instance using the specified properties. + * Creates a new InvoiceSearchResponse instance using the specified properties. * @function create - * @memberof Vault.BreachWatchGetSyncDataResponse + * @memberof BI.InvoiceSearchResponse * @static - * @param {Vault.IBreachWatchGetSyncDataResponse=} [properties] Properties to set - * @returns {Vault.BreachWatchGetSyncDataResponse} BreachWatchGetSyncDataResponse instance + * @param {BI.IInvoiceSearchResponse=} [properties] Properties to set + * @returns {BI.InvoiceSearchResponse} InvoiceSearchResponse instance */ - BreachWatchGetSyncDataResponse.create = function create(properties) { - return new BreachWatchGetSyncDataResponse(properties); + InvoiceSearchResponse.create = function create(properties) { + return new InvoiceSearchResponse(properties); }; /** - * Encodes the specified BreachWatchGetSyncDataResponse message. Does not implicitly {@link Vault.BreachWatchGetSyncDataResponse.verify|verify} messages. + * Encodes the specified InvoiceSearchResponse message. Does not implicitly {@link BI.InvoiceSearchResponse.verify|verify} messages. * @function encode - * @memberof Vault.BreachWatchGetSyncDataResponse + * @memberof BI.InvoiceSearchResponse * @static - * @param {Vault.IBreachWatchGetSyncDataResponse} message BreachWatchGetSyncDataResponse message or plain object to encode + * @param {BI.IInvoiceSearchResponse} message InvoiceSearchResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchGetSyncDataResponse.encode = function encode(message, writer) { + InvoiceSearchResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.breachWatchRecords != null && message.breachWatchRecords.length) - for (let i = 0; i < message.breachWatchRecords.length; ++i) - $root.Vault.BreachWatchRecord.encode(message.breachWatchRecords[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.breachWatchSecurityData != null && message.breachWatchSecurityData.length) - for (let i = 0; i < message.breachWatchSecurityData.length; ++i) - $root.Vault.BreachWatchSecurityData.encode(message.breachWatchSecurityData[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.users != null && message.users.length) - for (let i = 0; i < message.users.length; ++i) - $root.Vault.User.encode(message.users[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.invoices != null && message.invoices.length) + for (let i = 0; i < message.invoices.length; ++i) + $root.BI.Invoice.encode(message.invoices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified BreachWatchGetSyncDataResponse message, length delimited. Does not implicitly {@link Vault.BreachWatchGetSyncDataResponse.verify|verify} messages. + * Encodes the specified InvoiceSearchResponse message, length delimited. Does not implicitly {@link BI.InvoiceSearchResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.BreachWatchGetSyncDataResponse + * @memberof BI.InvoiceSearchResponse * @static - * @param {Vault.IBreachWatchGetSyncDataResponse} message BreachWatchGetSyncDataResponse message or plain object to encode + * @param {BI.IInvoiceSearchResponse} message InvoiceSearchResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchGetSyncDataResponse.encodeDelimited = function encodeDelimited(message, writer) { + InvoiceSearchResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BreachWatchGetSyncDataResponse message from the specified reader or buffer. + * Decodes an InvoiceSearchResponse message from the specified reader or buffer. * @function decode - * @memberof Vault.BreachWatchGetSyncDataResponse + * @memberof BI.InvoiceSearchResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.BreachWatchGetSyncDataResponse} BreachWatchGetSyncDataResponse + * @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 */ - BreachWatchGetSyncDataResponse.decode = function decode(reader, length) { + InvoiceSearchResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.BreachWatchGetSyncDataResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.InvoiceSearchResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.breachWatchRecords && message.breachWatchRecords.length)) - message.breachWatchRecords = []; - message.breachWatchRecords.push($root.Vault.BreachWatchRecord.decode(reader, reader.uint32())); - break; - } - case 2: { - if (!(message.breachWatchSecurityData && message.breachWatchSecurityData.length)) - message.breachWatchSecurityData = []; - message.breachWatchSecurityData.push($root.Vault.BreachWatchSecurityData.decode(reader, reader.uint32())); - break; - } - case 3: { - if (!(message.users && message.users.length)) - message.users = []; - message.users.push($root.Vault.User.decode(reader, reader.uint32())); + if (!(message.invoices && message.invoices.length)) + message.invoices = []; + message.invoices.push($root.BI.Invoice.decode(reader, reader.uint32())); break; } default: @@ -214635,191 +246172,144 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a BreachWatchGetSyncDataResponse message from the specified reader or buffer, length delimited. + * Decodes an InvoiceSearchResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.BreachWatchGetSyncDataResponse + * @memberof BI.InvoiceSearchResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.BreachWatchGetSyncDataResponse} BreachWatchGetSyncDataResponse + * @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 */ - BreachWatchGetSyncDataResponse.decodeDelimited = function decodeDelimited(reader) { + InvoiceSearchResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BreachWatchGetSyncDataResponse message. + * Verifies an InvoiceSearchResponse message. * @function verify - * @memberof Vault.BreachWatchGetSyncDataResponse + * @memberof BI.InvoiceSearchResponse * @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) { + InvoiceSearchResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - 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]); - 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]); + 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]); if (error) - return "users." + error; + return "invoices." + error; } } return null; }; /** - * Creates a BreachWatchGetSyncDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates an InvoiceSearchResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.BreachWatchGetSyncDataResponse + * @memberof BI.InvoiceSearchResponse * @static * @param {Object.} object Plain object - * @returns {Vault.BreachWatchGetSyncDataResponse} BreachWatchGetSyncDataResponse + * @returns {BI.InvoiceSearchResponse} InvoiceSearchResponse */ - BreachWatchGetSyncDataResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.BreachWatchGetSyncDataResponse) + InvoiceSearchResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.InvoiceSearchResponse) return object; - let message = new $root.Vault.BreachWatchGetSyncDataResponse(); - if (object.breachWatchRecords) { - if (!Array.isArray(object.breachWatchRecords)) - throw TypeError(".Vault.BreachWatchGetSyncDataResponse.breachWatchRecords: array expected"); - message.breachWatchRecords = []; - for (let i = 0; i < object.breachWatchRecords.length; ++i) { - if (typeof object.breachWatchRecords[i] !== "object") - throw TypeError(".Vault.BreachWatchGetSyncDataResponse.breachWatchRecords: object expected"); - message.breachWatchRecords[i] = $root.Vault.BreachWatchRecord.fromObject(object.breachWatchRecords[i]); - } - } - if (object.breachWatchSecurityData) { - if (!Array.isArray(object.breachWatchSecurityData)) - throw TypeError(".Vault.BreachWatchGetSyncDataResponse.breachWatchSecurityData: array expected"); - message.breachWatchSecurityData = []; - for (let i = 0; i < object.breachWatchSecurityData.length; ++i) { - if (typeof object.breachWatchSecurityData[i] !== "object") - throw TypeError(".Vault.BreachWatchGetSyncDataResponse.breachWatchSecurityData: object expected"); - message.breachWatchSecurityData[i] = $root.Vault.BreachWatchSecurityData.fromObject(object.breachWatchSecurityData[i]); - } - } - if (object.users) { - if (!Array.isArray(object.users)) - throw TypeError(".Vault.BreachWatchGetSyncDataResponse.users: array expected"); - message.users = []; - for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".Vault.BreachWatchGetSyncDataResponse.users: object expected"); - message.users[i] = $root.Vault.User.fromObject(object.users[i]); + let message = new $root.BI.InvoiceSearchResponse(); + if (object.invoices) { + if (!Array.isArray(object.invoices)) + throw TypeError(".BI.InvoiceSearchResponse.invoices: array expected"); + message.invoices = []; + for (let i = 0; i < object.invoices.length; ++i) { + if (typeof object.invoices[i] !== "object") + throw TypeError(".BI.InvoiceSearchResponse.invoices: object expected"); + message.invoices[i] = $root.BI.Invoice.fromObject(object.invoices[i]); } } return message; }; /** - * Creates a plain object from a BreachWatchGetSyncDataResponse message. Also converts values to other types if specified. + * Creates a plain object from an InvoiceSearchResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.BreachWatchGetSyncDataResponse + * @memberof BI.InvoiceSearchResponse * @static - * @param {Vault.BreachWatchGetSyncDataResponse} message BreachWatchGetSyncDataResponse + * @param {BI.InvoiceSearchResponse} message InvoiceSearchResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachWatchGetSyncDataResponse.toObject = function toObject(message, options) { + InvoiceSearchResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.breachWatchRecords = []; - object.breachWatchSecurityData = []; - object.users = []; - } - if (message.breachWatchRecords && message.breachWatchRecords.length) { - object.breachWatchRecords = []; - for (let j = 0; j < message.breachWatchRecords.length; ++j) - object.breachWatchRecords[j] = $root.Vault.BreachWatchRecord.toObject(message.breachWatchRecords[j], options); - } - if (message.breachWatchSecurityData && message.breachWatchSecurityData.length) { - object.breachWatchSecurityData = []; - for (let j = 0; j < message.breachWatchSecurityData.length; ++j) - object.breachWatchSecurityData[j] = $root.Vault.BreachWatchSecurityData.toObject(message.breachWatchSecurityData[j], options); - } - if (message.users && message.users.length) { - object.users = []; - for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.Vault.User.toObject(message.users[j], options); + if (options.arrays || options.defaults) + object.invoices = []; + if (message.invoices && message.invoices.length) { + object.invoices = []; + for (let j = 0; j < message.invoices.length; ++j) + object.invoices[j] = $root.BI.Invoice.toObject(message.invoices[j], options); } return object; }; /** - * Converts this BreachWatchGetSyncDataResponse to JSON. + * Converts this InvoiceSearchResponse to JSON. * @function toJSON - * @memberof Vault.BreachWatchGetSyncDataResponse + * @memberof BI.InvoiceSearchResponse * @instance * @returns {Object.} JSON object */ - BreachWatchGetSyncDataResponse.prototype.toJSON = function toJSON() { + InvoiceSearchResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BreachWatchGetSyncDataResponse + * Gets the default type url for InvoiceSearchResponse * @function getTypeUrl - * @memberof Vault.BreachWatchGetSyncDataResponse + * @memberof BI.InvoiceSearchResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BreachWatchGetSyncDataResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InvoiceSearchResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.BreachWatchGetSyncDataResponse"; + return typeUrlPrefix + "/BI.InvoiceSearchResponse"; }; - return BreachWatchGetSyncDataResponse; + return InvoiceSearchResponse; })(); - Vault.GetAccountUidMapResponse = (function() { + BI.Invoice = (function() { /** - * Properties of a GetAccountUidMapResponse. - * @memberof Vault - * @interface IGetAccountUidMapResponse - * @property {Array.|null} [users] GetAccountUidMapResponse users + * Properties of an Invoice. + * @memberof BI + * @interface IInvoice + * @property {number|null} [id] Invoice id + * @property {string|null} [invoiceNumber] Invoice invoiceNumber + * @property {number|Long|null} [invoiceDate] Invoice invoiceDate + * @property {number|null} [licenseCount] Invoice licenseCount + * @property {BI.Invoice.ICost|null} [totalCost] Invoice totalCost + * @property {BI.Invoice.Type|null} [invoiceType] Invoice invoiceType */ /** - * Constructs a new GetAccountUidMapResponse. - * @memberof Vault - * @classdesc Represents a GetAccountUidMapResponse. - * @implements IGetAccountUidMapResponse + * Constructs a new Invoice. + * @memberof BI + * @classdesc Represents an Invoice. + * @implements IInvoice * @constructor - * @param {Vault.IGetAccountUidMapResponse=} [properties] Properties to set + * @param {BI.IInvoice=} [properties] Properties to set */ - function GetAccountUidMapResponse(properties) { - this.users = []; + function Invoice(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -214827,78 +246317,145 @@ export const Vault = $root.Vault = (() => { } /** - * GetAccountUidMapResponse users. - * @member {Array.} users - * @memberof Vault.GetAccountUidMapResponse + * Invoice id. + * @member {number} id + * @memberof BI.Invoice * @instance */ - GetAccountUidMapResponse.prototype.users = $util.emptyArray; + Invoice.prototype.id = 0; /** - * Creates a new GetAccountUidMapResponse instance using the specified properties. + * Invoice invoiceNumber. + * @member {string} invoiceNumber + * @memberof BI.Invoice + * @instance + */ + Invoice.prototype.invoiceNumber = ""; + + /** + * Invoice invoiceDate. + * @member {number|Long} invoiceDate + * @memberof BI.Invoice + * @instance + */ + Invoice.prototype.invoiceDate = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Invoice licenseCount. + * @member {number} licenseCount + * @memberof BI.Invoice + * @instance + */ + Invoice.prototype.licenseCount = 0; + + /** + * Invoice totalCost. + * @member {BI.Invoice.ICost|null|undefined} totalCost + * @memberof BI.Invoice + * @instance + */ + Invoice.prototype.totalCost = null; + + /** + * Invoice invoiceType. + * @member {BI.Invoice.Type} invoiceType + * @memberof BI.Invoice + * @instance + */ + Invoice.prototype.invoiceType = 0; + + /** + * Creates a new Invoice instance using the specified properties. * @function create - * @memberof Vault.GetAccountUidMapResponse + * @memberof BI.Invoice * @static - * @param {Vault.IGetAccountUidMapResponse=} [properties] Properties to set - * @returns {Vault.GetAccountUidMapResponse} GetAccountUidMapResponse instance + * @param {BI.IInvoice=} [properties] Properties to set + * @returns {BI.Invoice} Invoice instance */ - GetAccountUidMapResponse.create = function create(properties) { - return new GetAccountUidMapResponse(properties); + Invoice.create = function create(properties) { + return new Invoice(properties); }; /** - * Encodes the specified GetAccountUidMapResponse message. Does not implicitly {@link Vault.GetAccountUidMapResponse.verify|verify} messages. + * Encodes the specified Invoice message. Does not implicitly {@link BI.Invoice.verify|verify} messages. * @function encode - * @memberof Vault.GetAccountUidMapResponse + * @memberof BI.Invoice * @static - * @param {Vault.IGetAccountUidMapResponse} message GetAccountUidMapResponse message or plain object to encode + * @param {BI.IInvoice} message Invoice message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAccountUidMapResponse.encode = function encode(message, writer) { + Invoice.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.users != null && message.users.length) - for (let i = 0; i < message.users.length; ++i) - $root.Vault.User.encode(message.users[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); + if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.invoiceNumber); + if (message.invoiceDate != null && Object.hasOwnProperty.call(message, "invoiceDate")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.invoiceDate); + if (message.licenseCount != null && Object.hasOwnProperty.call(message, "licenseCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.licenseCount); + if (message.totalCost != null && Object.hasOwnProperty.call(message, "totalCost")) + $root.BI.Invoice.Cost.encode(message.totalCost, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.invoiceType != null && Object.hasOwnProperty.call(message, "invoiceType")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.invoiceType); return writer; }; /** - * Encodes the specified GetAccountUidMapResponse message, length delimited. Does not implicitly {@link Vault.GetAccountUidMapResponse.verify|verify} messages. + * Encodes the specified Invoice message, length delimited. Does not implicitly {@link BI.Invoice.verify|verify} messages. * @function encodeDelimited - * @memberof Vault.GetAccountUidMapResponse + * @memberof BI.Invoice * @static - * @param {Vault.IGetAccountUidMapResponse} message GetAccountUidMapResponse message or plain object to encode + * @param {BI.IInvoice} message Invoice message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAccountUidMapResponse.encodeDelimited = function encodeDelimited(message, writer) { + Invoice.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetAccountUidMapResponse message from the specified reader or buffer. + * Decodes an Invoice message from the specified reader or buffer. * @function decode - * @memberof Vault.GetAccountUidMapResponse + * @memberof BI.Invoice * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Vault.GetAccountUidMapResponse} GetAccountUidMapResponse + * @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 */ - GetAccountUidMapResponse.decode = function decode(reader, length) { + Invoice.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.GetAccountUidMapResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.Invoice(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.users && message.users.length)) - message.users = []; - message.users.push($root.Vault.User.decode(reader, reader.uint32())); + message.id = reader.int32(); + break; + } + case 2: { + message.invoiceNumber = reader.string(); + break; + } + case 3: { + message.invoiceDate = reader.int64(); + break; + } + case 4: { + message.licenseCount = reader.int32(); + break; + } + case 5: { + message.totalCost = $root.BI.Invoice.Cost.decode(reader, reader.uint32()); + break; + } + case 6: { + message.invoiceType = reader.int32(); break; } default: @@ -214910,506 +246467,520 @@ export const Vault = $root.Vault = (() => { }; /** - * Decodes a GetAccountUidMapResponse message from the specified reader or buffer, length delimited. + * Decodes an Invoice message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Vault.GetAccountUidMapResponse + * @memberof BI.Invoice * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Vault.GetAccountUidMapResponse} GetAccountUidMapResponse + * @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 */ - GetAccountUidMapResponse.decodeDelimited = function decodeDelimited(reader) { + Invoice.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetAccountUidMapResponse message. + * Verifies an Invoice message. * @function verify - * @memberof Vault.GetAccountUidMapResponse + * @memberof BI.Invoice * @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) { + Invoice.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.Vault.User.verify(message.users[i]); - if (error) - return "users." + error; - } + 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); + 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 a GetAccountUidMapResponse message from a plain object. Also converts values to their respective internal types. + * Creates an Invoice message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Vault.GetAccountUidMapResponse + * @memberof BI.Invoice * @static * @param {Object.} object Plain object - * @returns {Vault.GetAccountUidMapResponse} GetAccountUidMapResponse + * @returns {BI.Invoice} Invoice */ - GetAccountUidMapResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.GetAccountUidMapResponse) + Invoice.fromObject = function fromObject(object) { + if (object instanceof $root.BI.Invoice) return object; - let message = new $root.Vault.GetAccountUidMapResponse(); - if (object.users) { - if (!Array.isArray(object.users)) - throw TypeError(".Vault.GetAccountUidMapResponse.users: array expected"); - message.users = []; - for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".Vault.GetAccountUidMapResponse.users: object expected"); - message.users[i] = $root.Vault.User.fromObject(object.users[i]); + let message = new $root.BI.Invoice(); + if (object.id != null) + message.id = object.id | 0; + if (object.invoiceNumber != null) + message.invoiceNumber = String(object.invoiceNumber); + if (object.invoiceDate != null) + if ($util.Long) + (message.invoiceDate = $util.Long.fromValue(object.invoiceDate)).unsigned = false; + else if (typeof object.invoiceDate === "string") + message.invoiceDate = parseInt(object.invoiceDate, 10); + else if (typeof object.invoiceDate === "number") + message.invoiceDate = object.invoiceDate; + else if (typeof object.invoiceDate === "object") + message.invoiceDate = new $util.LongBits(object.invoiceDate.low >>> 0, object.invoiceDate.high >>> 0).toNumber(); + if (object.licenseCount != null) + message.licenseCount = object.licenseCount | 0; + if (object.totalCost != null) { + if (typeof object.totalCost !== "object") + throw TypeError(".BI.Invoice.totalCost: object expected"); + message.totalCost = $root.BI.Invoice.Cost.fromObject(object.totalCost); + } + switch (object.invoiceType) { + default: + if (typeof object.invoiceType === "number") { + message.invoiceType = object.invoiceType; + break; } + break; + case "UNKNOWN": + case 0: + message.invoiceType = 0; + break; + case "NEW": + case 1: + message.invoiceType = 1; + break; + case "RENEWAL": + case 2: + message.invoiceType = 2; + break; + case "UPGRADE": + case 3: + message.invoiceType = 3; + break; + case "RESTORE": + case 4: + message.invoiceType = 4; + break; + case "ASSOCIATION": + case 5: + message.invoiceType = 5; + break; + case "OVERAGE": + case 6: + message.invoiceType = 6; + break; } return message; }; /** - * Creates a plain object from a GetAccountUidMapResponse message. Also converts values to other types if specified. + * Creates a plain object from an Invoice message. Also converts values to other types if specified. * @function toObject - * @memberof Vault.GetAccountUidMapResponse + * @memberof BI.Invoice * @static - * @param {Vault.GetAccountUidMapResponse} message GetAccountUidMapResponse + * @param {BI.Invoice} message Invoice * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetAccountUidMapResponse.toObject = function toObject(message, options) { + Invoice.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.users = []; - if (message.users && message.users.length) { - object.users = []; - for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.Vault.User.toObject(message.users[j], options); + if (options.defaults) { + object.id = 0; + object.invoiceNumber = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.invoiceDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.invoiceDate = options.longs === String ? "0" : 0; + object.licenseCount = 0; + object.totalCost = null; + object.invoiceType = options.enums === String ? "UNKNOWN" : 0; } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) + object.invoiceNumber = message.invoiceNumber; + if (message.invoiceDate != null && message.hasOwnProperty("invoiceDate")) + if (typeof message.invoiceDate === "number") + object.invoiceDate = options.longs === String ? String(message.invoiceDate) : message.invoiceDate; + else + object.invoiceDate = options.longs === String ? $util.Long.prototype.toString.call(message.invoiceDate) : options.longs === Number ? new $util.LongBits(message.invoiceDate.low >>> 0, message.invoiceDate.high >>> 0).toNumber() : message.invoiceDate; + if (message.licenseCount != null && message.hasOwnProperty("licenseCount")) + object.licenseCount = message.licenseCount; + if (message.totalCost != null && message.hasOwnProperty("totalCost")) + object.totalCost = $root.BI.Invoice.Cost.toObject(message.totalCost, options); + if (message.invoiceType != null && message.hasOwnProperty("invoiceType")) + object.invoiceType = options.enums === String ? $root.BI.Invoice.Type[message.invoiceType] === undefined ? message.invoiceType : $root.BI.Invoice.Type[message.invoiceType] : message.invoiceType; return object; }; /** - * Converts this GetAccountUidMapResponse to JSON. + * Converts this Invoice to JSON. * @function toJSON - * @memberof Vault.GetAccountUidMapResponse + * @memberof BI.Invoice * @instance * @returns {Object.} JSON object */ - GetAccountUidMapResponse.prototype.toJSON = function toJSON() { + Invoice.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetAccountUidMapResponse + * Gets the default type url for Invoice * @function getTypeUrl - * @memberof Vault.GetAccountUidMapResponse + * @memberof BI.Invoice * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetAccountUidMapResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Invoice.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Vault.GetAccountUidMapResponse"; + return typeUrlPrefix + "/BI.Invoice"; }; - return GetAccountUidMapResponse; - })(); - - return Vault; -})(); - -export const NotificationCenter = $root.NotificationCenter = (() => { - - /** - * Namespace NotificationCenter. - * @exports NotificationCenter - * @namespace - */ - const NotificationCenter = {}; - - /** - * NotificationCategory enum. - * @name NotificationCenter.NotificationCategory - * @enum {number} - * @property {number} NC_UNSPECIFIED=0 NC_UNSPECIFIED value - * @property {number} NC_ACCOUNT=1 NC_ACCOUNT value - * @property {number} NC_SHARING=2 NC_SHARING value - * @property {number} NC_ENTERPRISE=3 NC_ENTERPRISE value - * @property {number} NC_SECURITY=4 NC_SECURITY value - * @property {number} NC_REQUEST=5 NC_REQUEST value - * @property {number} NC_SYSTEM=6 NC_SYSTEM value - * @property {number} NC_PROMOTION=7 NC_PROMOTION value - */ - NotificationCenter.NotificationCategory = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NC_UNSPECIFIED"] = 0; - values[valuesById[1] = "NC_ACCOUNT"] = 1; - values[valuesById[2] = "NC_SHARING"] = 2; - values[valuesById[3] = "NC_ENTERPRISE"] = 3; - values[valuesById[4] = "NC_SECURITY"] = 4; - values[valuesById[5] = "NC_REQUEST"] = 5; - values[valuesById[6] = "NC_SYSTEM"] = 6; - values[valuesById[7] = "NC_PROMOTION"] = 7; - return values; - })(); - - /** - * NotificationType enum. - * @name NotificationCenter.NotificationType - * @enum {number} - * @property {number} NT_UNSPECIFIED=0 NT_UNSPECIFIED value - * @property {number} NT_ALERT=1 NT_ALERT value - * @property {number} NT_DEVICE_APPROVAL=2 NT_DEVICE_APPROVAL value - * @property {number} NT_MASTER_PASS_UPDATED=3 NT_MASTER_PASS_UPDATED value - * @property {number} NT_SHARE_APPROVAL=4 NT_SHARE_APPROVAL value - * @property {number} NT_SHARE_APPROVAL_APPROVED=5 NT_SHARE_APPROVAL_APPROVED value - * @property {number} NT_SHARED=6 NT_SHARED value - * @property {number} NT_TRANSFERRED=7 NT_TRANSFERRED value - * @property {number} NT_LICENSE_LIMIT_REACHED=8 NT_LICENSE_LIMIT_REACHED value - * @property {number} NT_APPROVAL_REQUEST=9 NT_APPROVAL_REQUEST value - * @property {number} NT_APPROVED_RESPONSE=10 NT_APPROVED_RESPONSE value - * @property {number} NT_DENIED_RESPONSE=11 NT_DENIED_RESPONSE value - * @property {number} NT_2FA_CONFIGURED=12 NT_2FA_CONFIGURED value - * @property {number} NT_SHARE_APPROVAL_DENIED=13 NT_SHARE_APPROVAL_DENIED value - * @property {number} NT_DEVICE_APPROVAL_APPROVED=14 NT_DEVICE_APPROVAL_APPROVED value - * @property {number} NT_DEVICE_APPROVAL_DENIED=15 NT_DEVICE_APPROVAL_DENIED value - * @property {number} NT_ACCOUNT_CREATED=16 NT_ACCOUNT_CREATED value - * @property {number} NT_2FA_ENABLED=17 NT_2FA_ENABLED value - * @property {number} NT_2FA_DISABLED=18 NT_2FA_DISABLED value - * @property {number} NT_SECURITY_KEYS_ENABLED=19 NT_SECURITY_KEYS_ENABLED value - * @property {number} NT_SECURITY_KEYS_DISABLED=20 NT_SECURITY_KEYS_DISABLED value - */ - NotificationCenter.NotificationType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NT_UNSPECIFIED"] = 0; - values[valuesById[1] = "NT_ALERT"] = 1; - values[valuesById[2] = "NT_DEVICE_APPROVAL"] = 2; - values[valuesById[3] = "NT_MASTER_PASS_UPDATED"] = 3; - values[valuesById[4] = "NT_SHARE_APPROVAL"] = 4; - values[valuesById[5] = "NT_SHARE_APPROVAL_APPROVED"] = 5; - values[valuesById[6] = "NT_SHARED"] = 6; - values[valuesById[7] = "NT_TRANSFERRED"] = 7; - values[valuesById[8] = "NT_LICENSE_LIMIT_REACHED"] = 8; - values[valuesById[9] = "NT_APPROVAL_REQUEST"] = 9; - values[valuesById[10] = "NT_APPROVED_RESPONSE"] = 10; - values[valuesById[11] = "NT_DENIED_RESPONSE"] = 11; - values[valuesById[12] = "NT_2FA_CONFIGURED"] = 12; - values[valuesById[13] = "NT_SHARE_APPROVAL_DENIED"] = 13; - values[valuesById[14] = "NT_DEVICE_APPROVAL_APPROVED"] = 14; - values[valuesById[15] = "NT_DEVICE_APPROVAL_DENIED"] = 15; - values[valuesById[16] = "NT_ACCOUNT_CREATED"] = 16; - values[valuesById[17] = "NT_2FA_ENABLED"] = 17; - values[valuesById[18] = "NT_2FA_DISABLED"] = 18; - values[valuesById[19] = "NT_SECURITY_KEYS_ENABLED"] = 19; - values[valuesById[20] = "NT_SECURITY_KEYS_DISABLED"] = 20; - return values; - })(); - - /** - * NotificationReadStatus enum. - * @name NotificationCenter.NotificationReadStatus - * @enum {number} - * @property {number} NRS_UNSPECIFIED=0 NRS_UNSPECIFIED value - * @property {number} NRS_LAST=1 NRS_LAST value - * @property {number} NRS_READ=2 NRS_READ value - * @property {number} NRS_UNREAD=3 NRS_UNREAD value - */ - NotificationCenter.NotificationReadStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NRS_UNSPECIFIED"] = 0; - values[valuesById[1] = "NRS_LAST"] = 1; - values[valuesById[2] = "NRS_READ"] = 2; - values[valuesById[3] = "NRS_UNREAD"] = 3; - return values; - })(); - - /** - * NotificationApprovalStatus enum. - * @name NotificationCenter.NotificationApprovalStatus - * @enum {number} - * @property {number} NAS_UNSPECIFIED=0 NAS_UNSPECIFIED value - * @property {number} NAS_APPROVED=1 NAS_APPROVED value - * @property {number} NAS_DENIED=2 NAS_DENIED value - * @property {number} NAS_LOST_APPROVAL_RIGHTS=3 NAS_LOST_APPROVAL_RIGHTS value - * @property {number} NAS_LOST_ACCESS=4 NAS_LOST_ACCESS value - * @property {number} NAS_ESCALATED=5 NAS_ESCALATED value - */ - NotificationCenter.NotificationApprovalStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NAS_UNSPECIFIED"] = 0; - values[valuesById[1] = "NAS_APPROVED"] = 1; - values[valuesById[2] = "NAS_DENIED"] = 2; - values[valuesById[3] = "NAS_LOST_APPROVAL_RIGHTS"] = 3; - values[valuesById[4] = "NAS_LOST_ACCESS"] = 4; - values[valuesById[5] = "NAS_ESCALATED"] = 5; - return values; - })(); - - NotificationCenter.EncryptedData = (function() { + Invoice.Cost = (function() { - /** - * Properties of an EncryptedData. - * @memberof NotificationCenter - * @interface IEncryptedData - * @property {number|null} [version] EncryptedData version - * @property {Uint8Array|null} [data] EncryptedData data - */ + /** + * Properties of a Cost. + * @memberof BI.Invoice + * @interface ICost + * @property {number|null} [amount] Cost amount + * @property {BI.Currency|null} [currency] Cost currency + */ - /** - * Constructs a new EncryptedData. - * @memberof NotificationCenter - * @classdesc Represents an EncryptedData. - * @implements IEncryptedData - * @constructor - * @param {NotificationCenter.IEncryptedData=} [properties] Properties to set - */ - function EncryptedData(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Cost. + * @memberof BI.Invoice + * @classdesc Represents a Cost. + * @implements ICost + * @constructor + * @param {BI.Invoice.ICost=} [properties] Properties to set + */ + function Cost(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * EncryptedData version. - * @member {number} version - * @memberof NotificationCenter.EncryptedData - * @instance - */ - EncryptedData.prototype.version = 0; + /** + * Cost amount. + * @member {number} amount + * @memberof BI.Invoice.Cost + * @instance + */ + Cost.prototype.amount = 0; - /** - * EncryptedData data. - * @member {Uint8Array} data - * @memberof NotificationCenter.EncryptedData - * @instance - */ - EncryptedData.prototype.data = $util.newBuffer([]); + /** + * Cost currency. + * @member {BI.Currency} currency + * @memberof BI.Invoice.Cost + * @instance + */ + Cost.prototype.currency = 0; - /** - * Creates a new EncryptedData instance using the specified properties. - * @function create - * @memberof NotificationCenter.EncryptedData - * @static - * @param {NotificationCenter.IEncryptedData=} [properties] Properties to set - * @returns {NotificationCenter.EncryptedData} EncryptedData instance - */ - EncryptedData.create = function create(properties) { - return new EncryptedData(properties); - }; + /** + * Creates a new Cost instance using the specified properties. + * @function create + * @memberof BI.Invoice.Cost + * @static + * @param {BI.Invoice.ICost=} [properties] Properties to set + * @returns {BI.Invoice.Cost} Cost instance + */ + Cost.create = function create(properties) { + return new Cost(properties); + }; - /** - * Encodes the specified EncryptedData message. Does not implicitly {@link NotificationCenter.EncryptedData.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); - return writer; - }; + /** + * Encodes the specified Cost message. Does not implicitly {@link BI.Invoice.Cost.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.amount); + if (message.currency != null && Object.hasOwnProperty.call(message, "currency")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.currency); + 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(); - }; + /** + * 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 an EncryptedData message from the specified reader or buffer. - * @function decode - * @memberof NotificationCenter.EncryptedData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.EncryptedData(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.version = reader.int32(); + /** + * Decodes a Cost message from the specified reader or buffer. + * @function decode + * @memberof BI.Invoice.Cost + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.Invoice.Cost(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.amount = reader.double(); + break; + } + case 2: { + message.currency = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); break; } - case 2: { - message.data = reader.bytes(); + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof BI.Invoice.Cost + * @static + * @param {Object.} object Plain object + * @returns {BI.Invoice.Cost} Cost + */ + Cost.fromObject = function fromObject(object) { + if (object instanceof $root.BI.Invoice.Cost) + return object; + let message = new $root.BI.Invoice.Cost(); + if (object.amount != null) + message.amount = Number(object.amount); + switch (object.currency) { default: - reader.skipType(tag & 7); + if (typeof object.currency === "number") { + message.currency = object.currency; + break; + } + break; + case "UNKNOWN": + case 0: + message.currency = 0; + break; + case "USD": + case 1: + message.currency = 1; + break; + case "GBP": + case 2: + message.currency = 2; + break; + case "JPY": + case 3: + message.currency = 3; + break; + case "EUR": + case 4: + message.currency = 4; + break; + case "AUD": + case 5: + message.currency = 5; + break; + case "CAD": + case 6: + message.currency = 6; break; } - } - 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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; - }; + return message; + }; - /** - * Creates an EncryptedData message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof NotificationCenter.EncryptedData - * @static - * @param {Object.} object Plain object - * @returns {NotificationCenter.EncryptedData} EncryptedData - */ - EncryptedData.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.EncryptedData) + /** + * Creates a plain object from a Cost message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.Invoice.Cost + * @static + * @param {BI.Invoice.Cost} message Cost + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Cost.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.amount = 0; + object.currency = options.enums === String ? "UNKNOWN" : 0; + } + if (message.amount != null && message.hasOwnProperty("amount")) + object.amount = options.json && !isFinite(message.amount) ? String(message.amount) : message.amount; + if (message.currency != null && message.hasOwnProperty("currency")) + object.currency = options.enums === String ? $root.BI.Currency[message.currency] === undefined ? message.currency : $root.BI.Currency[message.currency] : message.currency; return object; - let message = new $root.NotificationCenter.EncryptedData(); - if (object.version != null) - message.version = object.version | 0; - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - return message; - }; + }; - /** - * Creates a plain object from an EncryptedData message. Also converts values to other types if specified. - * @function toObject - * @memberof NotificationCenter.EncryptedData - * @static - * @param {NotificationCenter.EncryptedData} message EncryptedData - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EncryptedData.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.version = 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + /** + * Converts this Cost to JSON. + * @function toJSON + * @memberof BI.Invoice.Cost + * @instance + * @returns {Object.} JSON object + */ + Cost.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Cost + * @function getTypeUrl + * @memberof BI.Invoice.Cost + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Cost.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - return object; - }; + return typeUrlPrefix + "/BI.Invoice.Cost"; + }; - /** - * Converts this EncryptedData to JSON. - * @function toJSON - * @memberof NotificationCenter.EncryptedData - * @instance - * @returns {Object.} JSON object - */ - EncryptedData.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Cost; + })(); /** - * Gets the default type url for EncryptedData - * @function getTypeUrl - * @memberof NotificationCenter.EncryptedData - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Type enum. + * @name BI.Invoice.Type + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} NEW=1 NEW value + * @property {number} RENEWAL=2 RENEWAL value + * @property {number} UPGRADE=3 UPGRADE value + * @property {number} RESTORE=4 RESTORE value + * @property {number} ASSOCIATION=5 ASSOCIATION value + * @property {number} OVERAGE=6 OVERAGE value */ - EncryptedData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/NotificationCenter.EncryptedData"; - }; + Invoice.Type = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "NEW"] = 1; + values[valuesById[2] = "RENEWAL"] = 2; + values[valuesById[3] = "UPGRADE"] = 3; + values[valuesById[4] = "RESTORE"] = 4; + values[valuesById[5] = "ASSOCIATION"] = 5; + values[valuesById[6] = "OVERAGE"] = 6; + return values; + })(); - return EncryptedData; + return Invoice; })(); - NotificationCenter.NotificationParameter = (function() { + BI.VaultInvoicesListRequest = (function() { /** - * Properties of a NotificationParameter. - * @memberof NotificationCenter - * @interface INotificationParameter - * @property {string|null} [key] NotificationParameter key - * @property {Uint8Array|null} [data] NotificationParameter data + * Properties of a VaultInvoicesListRequest. + * @memberof BI + * @interface IVaultInvoicesListRequest */ /** - * Constructs a new NotificationParameter. - * @memberof NotificationCenter - * @classdesc Represents a NotificationParameter. - * @implements INotificationParameter + * Constructs a new VaultInvoicesListRequest. + * @memberof BI + * @classdesc Represents a VaultInvoicesListRequest. + * @implements IVaultInvoicesListRequest * @constructor - * @param {NotificationCenter.INotificationParameter=} [properties] Properties to set + * @param {BI.IVaultInvoicesListRequest=} [properties] Properties to set */ - function NotificationParameter(properties) { + function VaultInvoicesListRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -215417,91 +246988,63 @@ export const NotificationCenter = $root.NotificationCenter = (() => { } /** - * NotificationParameter key. - * @member {string} key - * @memberof NotificationCenter.NotificationParameter - * @instance - */ - NotificationParameter.prototype.key = ""; - - /** - * NotificationParameter data. - * @member {Uint8Array} data - * @memberof NotificationCenter.NotificationParameter - * @instance - */ - NotificationParameter.prototype.data = $util.newBuffer([]); - - /** - * Creates a new NotificationParameter instance using the specified properties. + * Creates a new VaultInvoicesListRequest instance using the specified properties. * @function create - * @memberof NotificationCenter.NotificationParameter + * @memberof BI.VaultInvoicesListRequest * @static - * @param {NotificationCenter.INotificationParameter=} [properties] Properties to set - * @returns {NotificationCenter.NotificationParameter} NotificationParameter instance + * @param {BI.IVaultInvoicesListRequest=} [properties] Properties to set + * @returns {BI.VaultInvoicesListRequest} VaultInvoicesListRequest instance */ - NotificationParameter.create = function create(properties) { - return new NotificationParameter(properties); + VaultInvoicesListRequest.create = function create(properties) { + return new VaultInvoicesListRequest(properties); }; /** - * Encodes the specified NotificationParameter message. Does not implicitly {@link NotificationCenter.NotificationParameter.verify|verify} messages. + * Encodes the specified VaultInvoicesListRequest message. Does not implicitly {@link BI.VaultInvoicesListRequest.verify|verify} messages. * @function encode - * @memberof NotificationCenter.NotificationParameter + * @memberof BI.VaultInvoicesListRequest * @static - * @param {NotificationCenter.INotificationParameter} message NotificationParameter message or plain object to encode + * @param {BI.IVaultInvoicesListRequest} message VaultInvoicesListRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationParameter.encode = function encode(message, writer) { + VaultInvoicesListRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); return writer; }; /** - * Encodes the specified NotificationParameter message, length delimited. Does not implicitly {@link NotificationCenter.NotificationParameter.verify|verify} messages. + * Encodes the specified VaultInvoicesListRequest message, length delimited. Does not implicitly {@link BI.VaultInvoicesListRequest.verify|verify} messages. * @function encodeDelimited - * @memberof NotificationCenter.NotificationParameter + * @memberof BI.VaultInvoicesListRequest * @static - * @param {NotificationCenter.INotificationParameter} message NotificationParameter message or plain object to encode + * @param {BI.IVaultInvoicesListRequest} message VaultInvoicesListRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationParameter.encodeDelimited = function encodeDelimited(message, writer) { + VaultInvoicesListRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NotificationParameter message from the specified reader or buffer. + * Decodes a VaultInvoicesListRequest message from the specified reader or buffer. * @function decode - * @memberof NotificationCenter.NotificationParameter + * @memberof BI.VaultInvoicesListRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {NotificationCenter.NotificationParameter} NotificationParameter + * @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 */ - NotificationParameter.decode = function decode(reader, length) { + VaultInvoicesListRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationParameter(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.VaultInvoicesListRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.key = reader.string(); - break; - } - case 2: { - message.data = reader.bytes(); - break; - } default: reader.skipType(tag & 7); break; @@ -215511,150 +247054,110 @@ export const NotificationCenter = $root.NotificationCenter = (() => { }; /** - * Decodes a NotificationParameter message from the specified reader or buffer, length delimited. + * Decodes a VaultInvoicesListRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof NotificationCenter.NotificationParameter + * @memberof BI.VaultInvoicesListRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.NotificationParameter} NotificationParameter + * @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 */ - NotificationParameter.decodeDelimited = function decodeDelimited(reader) { + VaultInvoicesListRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NotificationParameter message. + * Verifies a VaultInvoicesListRequest message. * @function verify - * @memberof NotificationCenter.NotificationParameter + * @memberof BI.VaultInvoicesListRequest * @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) { + VaultInvoicesListRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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. + * Creates a VaultInvoicesListRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof NotificationCenter.NotificationParameter + * @memberof BI.VaultInvoicesListRequest * @static * @param {Object.} object Plain object - * @returns {NotificationCenter.NotificationParameter} NotificationParameter + * @returns {BI.VaultInvoicesListRequest} VaultInvoicesListRequest */ - NotificationParameter.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.NotificationParameter) + VaultInvoicesListRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.VaultInvoicesListRequest) return object; - let message = new $root.NotificationCenter.NotificationParameter(); - if (object.key != null) - message.key = String(object.key); - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - return message; + return new $root.BI.VaultInvoicesListRequest(); }; /** - * Creates a plain object from a NotificationParameter message. Also converts values to other types if specified. + * Creates a plain object from a VaultInvoicesListRequest message. Also converts values to other types if specified. * @function toObject - * @memberof NotificationCenter.NotificationParameter + * @memberof BI.VaultInvoicesListRequest * @static - * @param {NotificationCenter.NotificationParameter} message NotificationParameter + * @param {BI.VaultInvoicesListRequest} message VaultInvoicesListRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NotificationParameter.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.key = ""; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - } - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - return object; + VaultInvoicesListRequest.toObject = function toObject() { + return {}; }; /** - * Converts this NotificationParameter to JSON. + * Converts this VaultInvoicesListRequest to JSON. * @function toJSON - * @memberof NotificationCenter.NotificationParameter + * @memberof BI.VaultInvoicesListRequest * @instance * @returns {Object.} JSON object */ - NotificationParameter.prototype.toJSON = function toJSON() { + VaultInvoicesListRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NotificationParameter + * Gets the default type url for VaultInvoicesListRequest * @function getTypeUrl - * @memberof NotificationCenter.NotificationParameter + * @memberof BI.VaultInvoicesListRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NotificationParameter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VaultInvoicesListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/NotificationCenter.NotificationParameter"; + return typeUrlPrefix + "/BI.VaultInvoicesListRequest"; }; - return NotificationParameter; + return VaultInvoicesListRequest; })(); - NotificationCenter.Notification = (function() { + BI.VaultInvoicesListResponse = (function() { /** - * Properties of a Notification. - * @memberof NotificationCenter - * @interface INotification - * @property {NotificationCenter.NotificationType|null} [type] Notification type - * @property {NotificationCenter.NotificationCategory|null} [category] Notification category - * @property {GraphSync.IGraphSyncRef|null} [sender] Notification sender - * @property {string|null} [senderFullName] Notification senderFullName - * @property {NotificationCenter.IEncryptedData|null} [encryptedData] Notification encryptedData - * @property {Array.|null} [refs] Notification refs - * @property {Array.|null} [categories] Notification categories - * @property {Array.|null} [parameters] Notification parameters + * Properties of a VaultInvoicesListResponse. + * @memberof BI + * @interface IVaultInvoicesListResponse + * @property {Array.|null} [invoices] VaultInvoicesListResponse invoices */ /** - * Constructs a new Notification. - * @memberof NotificationCenter - * @classdesc Represents a Notification. - * @implements INotification + * Constructs a new VaultInvoicesListResponse. + * @memberof BI + * @classdesc Represents a VaultInvoicesListResponse. + * @implements IVaultInvoicesListResponse * @constructor - * @param {NotificationCenter.INotification=} [properties] Properties to set + * @param {BI.IVaultInvoicesListResponse=} [properties] Properties to set */ - function Notification(properties) { - this.refs = []; - this.categories = []; - this.parameters = []; + function VaultInvoicesListResponse(properties) { + this.invoices = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -215662,647 +247165,226 @@ export const NotificationCenter = $root.NotificationCenter = (() => { } /** - * Notification type. - * @member {NotificationCenter.NotificationType} type - * @memberof NotificationCenter.Notification - * @instance - */ - Notification.prototype.type = 0; - - /** - * Notification category. - * @member {NotificationCenter.NotificationCategory} category - * @memberof NotificationCenter.Notification - * @instance - */ - Notification.prototype.category = 0; - - /** - * Notification sender. - * @member {GraphSync.IGraphSyncRef|null|undefined} sender - * @memberof NotificationCenter.Notification - * @instance - */ - Notification.prototype.sender = null; - - /** - * Notification senderFullName. - * @member {string} senderFullName - * @memberof NotificationCenter.Notification - * @instance - */ - Notification.prototype.senderFullName = ""; - - /** - * Notification encryptedData. - * @member {NotificationCenter.IEncryptedData|null|undefined} encryptedData - * @memberof NotificationCenter.Notification - * @instance - */ - Notification.prototype.encryptedData = null; - - /** - * Notification refs. - * @member {Array.} refs - * @memberof NotificationCenter.Notification - * @instance - */ - Notification.prototype.refs = $util.emptyArray; - - /** - * Notification categories. - * @member {Array.} categories - * @memberof NotificationCenter.Notification - * @instance - */ - Notification.prototype.categories = $util.emptyArray; - - /** - * Notification parameters. - * @member {Array.} parameters - * @memberof NotificationCenter.Notification + * VaultInvoicesListResponse invoices. + * @member {Array.} invoices + * @memberof BI.VaultInvoicesListResponse * @instance */ - Notification.prototype.parameters = $util.emptyArray; + VaultInvoicesListResponse.prototype.invoices = $util.emptyArray; /** - * Creates a new Notification instance using the specified properties. + * Creates a new VaultInvoicesListResponse instance using the specified properties. * @function create - * @memberof NotificationCenter.Notification + * @memberof BI.VaultInvoicesListResponse * @static - * @param {NotificationCenter.INotification=} [properties] Properties to set - * @returns {NotificationCenter.Notification} Notification instance + * @param {BI.IVaultInvoicesListResponse=} [properties] Properties to set + * @returns {BI.VaultInvoicesListResponse} VaultInvoicesListResponse instance */ - Notification.create = function create(properties) { - return new Notification(properties); + VaultInvoicesListResponse.create = function create(properties) { + return new VaultInvoicesListResponse(properties); }; /** - * Encodes the specified Notification message. Does not implicitly {@link NotificationCenter.Notification.verify|verify} messages. + * Encodes the specified VaultInvoicesListResponse message. Does not implicitly {@link BI.VaultInvoicesListResponse.verify|verify} messages. * @function encode - * @memberof NotificationCenter.Notification + * @memberof BI.VaultInvoicesListResponse * @static - * @param {NotificationCenter.INotification} message Notification message or plain object to encode + * @param {BI.IVaultInvoicesListResponse} message VaultInvoicesListResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Notification.encode = function encode(message, writer) { + VaultInvoicesListResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.category != null && Object.hasOwnProperty.call(message, "category")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.category); - if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) - $root.GraphSync.GraphSyncRef.encode(message.sender, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.senderFullName != null && Object.hasOwnProperty.call(message, "senderFullName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.senderFullName); - if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) - $root.NotificationCenter.EncryptedData.encode(message.encryptedData, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.refs != null && message.refs.length) - for (let i = 0; i < message.refs.length; ++i) - $root.GraphSync.GraphSyncRef.encode(message.refs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.categories != null && message.categories.length) { - writer.uint32(/* id 7, wireType 2 =*/58).fork(); - for (let i = 0; i < message.categories.length; ++i) - writer.int32(message.categories[i]); - writer.ldelim(); - } - if (message.parameters != null && message.parameters.length) - for (let i = 0; i < message.parameters.length; ++i) - $root.NotificationCenter.NotificationParameter.encode(message.parameters[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.invoices != null && message.invoices.length) + for (let i = 0; i < message.invoices.length; ++i) + $root.BI.VaultInvoice.encode(message.invoices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); 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 - * @memberof NotificationCenter.Notification - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.Notification(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.type = reader.int32(); - break; - } - case 2: { - message.category = reader.int32(); - break; - } - case 3: { - message.sender = $root.GraphSync.GraphSyncRef.decode(reader, reader.uint32()); - break; - } - case 4: { - message.senderFullName = reader.string(); - break; - } - case 5: { - message.encryptedData = $root.NotificationCenter.EncryptedData.decode(reader, reader.uint32()); - break; - } - case 6: { - if (!(message.refs && message.refs.length)) - message.refs = []; - message.refs.push($root.GraphSync.GraphSyncRef.decode(reader, reader.uint32())); - break; - } - case 7: { - if (!(message.categories && message.categories.length)) - message.categories = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.categories.push(reader.int32()); - } else - message.categories.push(reader.int32()); - break; - } - case 8: { - if (!(message.parameters && message.parameters.length)) - message.parameters = []; - message.parameters.push($root.NotificationCenter.NotificationParameter.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - 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) { - if (typeof message !== "object" || message === null) - return "object 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: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - 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); - 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); - 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]); - 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]); - 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 - * @memberof NotificationCenter.Notification - * @static - * @param {Object.} object Plain object - * @returns {NotificationCenter.Notification} Notification - */ - Notification.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.Notification) - return object; - let message = new $root.NotificationCenter.Notification(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "NT_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "NT_ALERT": - case 1: - message.type = 1; - break; - case "NT_DEVICE_APPROVAL": - case 2: - message.type = 2; - break; - case "NT_MASTER_PASS_UPDATED": - case 3: - message.type = 3; - break; - case "NT_SHARE_APPROVAL": - case 4: - message.type = 4; - break; - case "NT_SHARE_APPROVAL_APPROVED": - case 5: - message.type = 5; - break; - case "NT_SHARED": - case 6: - message.type = 6; - break; - case "NT_TRANSFERRED": - case 7: - message.type = 7; - break; - case "NT_LICENSE_LIMIT_REACHED": - case 8: - message.type = 8; - break; - case "NT_APPROVAL_REQUEST": - case 9: - message.type = 9; - break; - case "NT_APPROVED_RESPONSE": - case 10: - message.type = 10; - break; - case "NT_DENIED_RESPONSE": - case 11: - message.type = 11; - break; - case "NT_2FA_CONFIGURED": - case 12: - message.type = 12; - break; - case "NT_SHARE_APPROVAL_DENIED": - case 13: - message.type = 13; - break; - case "NT_DEVICE_APPROVAL_APPROVED": - case 14: - message.type = 14; - break; - case "NT_DEVICE_APPROVAL_DENIED": - case 15: - message.type = 15; - break; - case "NT_ACCOUNT_CREATED": - case 16: - message.type = 16; - break; - case "NT_2FA_ENABLED": - case 17: - message.type = 17; - break; - case "NT_2FA_DISABLED": - case 18: - message.type = 18; - break; - case "NT_SECURITY_KEYS_ENABLED": - case 19: - message.type = 19; - break; - case "NT_SECURITY_KEYS_DISABLED": - case 20: - message.type = 20; - break; - } - switch (object.category) { - default: - if (typeof object.category === "number") { - message.category = object.category; - break; - } - break; - case "NC_UNSPECIFIED": - case 0: - message.category = 0; - break; - case "NC_ACCOUNT": - case 1: - message.category = 1; - break; - case "NC_SHARING": - case 2: - message.category = 2; - break; - case "NC_ENTERPRISE": - case 3: - message.category = 3; - break; - case "NC_SECURITY": - case 4: - message.category = 4; - break; - case "NC_REQUEST": - case 5: - message.category = 5; - break; - case "NC_SYSTEM": - case 6: - message.category = 6; - break; - case "NC_PROMOTION": - case 7: - message.category = 7; - break; - } - if (object.sender != null) { - if (typeof object.sender !== "object") - throw TypeError(".NotificationCenter.Notification.sender: object expected"); - message.sender = $root.GraphSync.GraphSyncRef.fromObject(object.sender); - } - if (object.senderFullName != null) - message.senderFullName = String(object.senderFullName); - if (object.encryptedData != null) { - if (typeof object.encryptedData !== "object") - throw TypeError(".NotificationCenter.Notification.encryptedData: object expected"); - message.encryptedData = $root.NotificationCenter.EncryptedData.fromObject(object.encryptedData); - } - if (object.refs) { - if (!Array.isArray(object.refs)) - throw TypeError(".NotificationCenter.Notification.refs: array expected"); - message.refs = []; - for (let i = 0; i < object.refs.length; ++i) { - if (typeof object.refs[i] !== "object") - throw TypeError(".NotificationCenter.Notification.refs: object expected"); - message.refs[i] = $root.GraphSync.GraphSyncRef.fromObject(object.refs[i]); - } - } - if (object.categories) { - if (!Array.isArray(object.categories)) - throw TypeError(".NotificationCenter.Notification.categories: array expected"); - message.categories = []; - for (let i = 0; i < object.categories.length; ++i) - switch (object.categories[i]) { - default: - if (typeof object.categories[i] === "number") { - message.categories[i] = object.categories[i]; - break; - } - case "NC_UNSPECIFIED": - case 0: - message.categories[i] = 0; - break; - case "NC_ACCOUNT": - case 1: - message.categories[i] = 1; - break; - case "NC_SHARING": - case 2: - message.categories[i] = 2; - break; - case "NC_ENTERPRISE": - case 3: - message.categories[i] = 3; - break; - case "NC_SECURITY": - case 4: - message.categories[i] = 4; - break; - case "NC_REQUEST": - case 5: - message.categories[i] = 5; - break; - case "NC_SYSTEM": - case 6: - message.categories[i] = 6; - break; - case "NC_PROMOTION": - case 7: - message.categories[i] = 7; + * 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 + * @memberof BI.VaultInvoicesListResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.VaultInvoicesListResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.invoices && message.invoices.length)) + message.invoices = []; + message.invoices.push($root.BI.VaultInvoice.decode(reader, reader.uint32())); break; } + default: + reader.skipType(tag & 7); + break; + } } - if (object.parameters) { - if (!Array.isArray(object.parameters)) - throw TypeError(".NotificationCenter.Notification.parameters: array expected"); - message.parameters = []; - for (let i = 0; i < object.parameters.length; ++i) { - if (typeof object.parameters[i] !== "object") - throw TypeError(".NotificationCenter.Notification.parameters: object expected"); - message.parameters[i] = $root.NotificationCenter.NotificationParameter.fromObject(object.parameters[i]); + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + 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 + * @memberof BI.VaultInvoicesListResponse + * @static + * @param {Object.} object Plain object + * @returns {BI.VaultInvoicesListResponse} VaultInvoicesListResponse + */ + VaultInvoicesListResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.VaultInvoicesListResponse) + return object; + let message = new $root.BI.VaultInvoicesListResponse(); + if (object.invoices) { + if (!Array.isArray(object.invoices)) + throw TypeError(".BI.VaultInvoicesListResponse.invoices: array expected"); + message.invoices = []; + for (let i = 0; i < object.invoices.length; ++i) { + if (typeof object.invoices[i] !== "object") + throw TypeError(".BI.VaultInvoicesListResponse.invoices: object expected"); + message.invoices[i] = $root.BI.VaultInvoice.fromObject(object.invoices[i]); } } return message; }; /** - * Creates a plain object from a Notification message. Also converts values to other types if specified. + * Creates a plain object from a VaultInvoicesListResponse message. Also converts values to other types if specified. * @function toObject - * @memberof NotificationCenter.Notification + * @memberof BI.VaultInvoicesListResponse * @static - * @param {NotificationCenter.Notification} message Notification + * @param {BI.VaultInvoicesListResponse} message VaultInvoicesListResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Notification.toObject = function toObject(message, options) { + VaultInvoicesListResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.refs = []; - object.categories = []; - object.parameters = []; - } - if (options.defaults) { - object.type = options.enums === String ? "NT_UNSPECIFIED" : 0; - object.category = options.enums === String ? "NC_UNSPECIFIED" : 0; - object.sender = null; - object.senderFullName = ""; - object.encryptedData = null; - } - if (message.type != null && message.hasOwnProperty("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")) - object.category = options.enums === String ? $root.NotificationCenter.NotificationCategory[message.category] === undefined ? message.category : $root.NotificationCenter.NotificationCategory[message.category] : message.category; - if (message.sender != null && message.hasOwnProperty("sender")) - object.sender = $root.GraphSync.GraphSyncRef.toObject(message.sender, options); - if (message.senderFullName != null && message.hasOwnProperty("senderFullName")) - object.senderFullName = message.senderFullName; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - object.encryptedData = $root.NotificationCenter.EncryptedData.toObject(message.encryptedData, options); - if (message.refs && message.refs.length) { - object.refs = []; - for (let j = 0; j < message.refs.length; ++j) - object.refs[j] = $root.GraphSync.GraphSyncRef.toObject(message.refs[j], options); - } - if (message.categories && message.categories.length) { - object.categories = []; - for (let j = 0; j < message.categories.length; ++j) - object.categories[j] = options.enums === String ? $root.NotificationCenter.NotificationCategory[message.categories[j]] === undefined ? message.categories[j] : $root.NotificationCenter.NotificationCategory[message.categories[j]] : message.categories[j]; - } - if (message.parameters && message.parameters.length) { - object.parameters = []; - for (let j = 0; j < message.parameters.length; ++j) - object.parameters[j] = $root.NotificationCenter.NotificationParameter.toObject(message.parameters[j], options); + if (options.arrays || options.defaults) + object.invoices = []; + if (message.invoices && message.invoices.length) { + object.invoices = []; + for (let j = 0; j < message.invoices.length; ++j) + object.invoices[j] = $root.BI.VaultInvoice.toObject(message.invoices[j], options); } return object; }; /** - * Converts this Notification to JSON. + * Converts this VaultInvoicesListResponse to JSON. * @function toJSON - * @memberof NotificationCenter.Notification + * @memberof BI.VaultInvoicesListResponse * @instance * @returns {Object.} JSON object */ - Notification.prototype.toJSON = function toJSON() { + VaultInvoicesListResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Notification + * Gets the default type url for VaultInvoicesListResponse * @function getTypeUrl - * @memberof NotificationCenter.Notification + * @memberof BI.VaultInvoicesListResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Notification.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VaultInvoicesListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/NotificationCenter.Notification"; + return typeUrlPrefix + "/BI.VaultInvoicesListResponse"; }; - return Notification; + return VaultInvoicesListResponse; })(); - NotificationCenter.NotificationReadMark = (function() { + BI.VaultInvoice = (function() { /** - * Properties of a NotificationReadMark. - * @memberof NotificationCenter - * @interface INotificationReadMark - * @property {Uint8Array|null} [uid] NotificationReadMark uid - * @property {number|Long|null} [notificationEdgeId] NotificationReadMark notificationEdgeId - * @property {number|Long|null} [markEdgeId] NotificationReadMark markEdgeId - * @property {NotificationCenter.NotificationReadStatus|null} [readStatus] NotificationReadMark readStatus + * Properties of a VaultInvoice. + * @memberof BI + * @interface IVaultInvoice + * @property {number|null} [id] VaultInvoice id + * @property {string|null} [invoiceNumber] VaultInvoice invoiceNumber + * @property {number|Long|null} [dateCreated] VaultInvoice dateCreated + * @property {BI.Invoice.ICost|null} [total] VaultInvoice total + * @property {BI.Invoice.Type|null} [purchaseType] VaultInvoice purchaseType */ /** - * Constructs a new NotificationReadMark. - * @memberof NotificationCenter - * @classdesc Represents a NotificationReadMark. - * @implements INotificationReadMark + * Constructs a new VaultInvoice. + * @memberof BI + * @classdesc Represents a VaultInvoice. + * @implements IVaultInvoice * @constructor - * @param {NotificationCenter.INotificationReadMark=} [properties] Properties to set + * @param {BI.IVaultInvoice=} [properties] Properties to set */ - function NotificationReadMark(properties) { + function VaultInvoice(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -216310,117 +247392,131 @@ export const NotificationCenter = $root.NotificationCenter = (() => { } /** - * NotificationReadMark uid. - * @member {Uint8Array} uid - * @memberof NotificationCenter.NotificationReadMark + * VaultInvoice id. + * @member {number} id + * @memberof BI.VaultInvoice * @instance */ - NotificationReadMark.prototype.uid = $util.newBuffer([]); + VaultInvoice.prototype.id = 0; /** - * NotificationReadMark notificationEdgeId. - * @member {number|Long} notificationEdgeId - * @memberof NotificationCenter.NotificationReadMark + * VaultInvoice invoiceNumber. + * @member {string} invoiceNumber + * @memberof BI.VaultInvoice * @instance */ - NotificationReadMark.prototype.notificationEdgeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + VaultInvoice.prototype.invoiceNumber = ""; /** - * NotificationReadMark markEdgeId. - * @member {number|Long} markEdgeId - * @memberof NotificationCenter.NotificationReadMark + * VaultInvoice dateCreated. + * @member {number|Long} dateCreated + * @memberof BI.VaultInvoice * @instance */ - NotificationReadMark.prototype.markEdgeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + VaultInvoice.prototype.dateCreated = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * NotificationReadMark readStatus. - * @member {NotificationCenter.NotificationReadStatus} readStatus - * @memberof NotificationCenter.NotificationReadMark + * VaultInvoice total. + * @member {BI.Invoice.ICost|null|undefined} total + * @memberof BI.VaultInvoice * @instance */ - NotificationReadMark.prototype.readStatus = 0; + VaultInvoice.prototype.total = null; /** - * Creates a new NotificationReadMark instance using the specified properties. + * VaultInvoice purchaseType. + * @member {BI.Invoice.Type} purchaseType + * @memberof BI.VaultInvoice + * @instance + */ + VaultInvoice.prototype.purchaseType = 0; + + /** + * Creates a new VaultInvoice instance using the specified properties. * @function create - * @memberof NotificationCenter.NotificationReadMark + * @memberof BI.VaultInvoice * @static - * @param {NotificationCenter.INotificationReadMark=} [properties] Properties to set - * @returns {NotificationCenter.NotificationReadMark} NotificationReadMark instance + * @param {BI.IVaultInvoice=} [properties] Properties to set + * @returns {BI.VaultInvoice} VaultInvoice instance */ - NotificationReadMark.create = function create(properties) { - return new NotificationReadMark(properties); + VaultInvoice.create = function create(properties) { + return new VaultInvoice(properties); }; /** - * Encodes the specified NotificationReadMark message. Does not implicitly {@link NotificationCenter.NotificationReadMark.verify|verify} messages. + * Encodes the specified VaultInvoice message. Does not implicitly {@link BI.VaultInvoice.verify|verify} messages. * @function encode - * @memberof NotificationCenter.NotificationReadMark + * @memberof BI.VaultInvoice * @static - * @param {NotificationCenter.INotificationReadMark} message NotificationReadMark message or plain object to encode + * @param {BI.IVaultInvoice} message VaultInvoice message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationReadMark.encode = function encode(message, writer) { + VaultInvoice.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); - if (message.notificationEdgeId != null && Object.hasOwnProperty.call(message, "notificationEdgeId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.notificationEdgeId); - if (message.markEdgeId != null && Object.hasOwnProperty.call(message, "markEdgeId")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.markEdgeId); - if (message.readStatus != null && Object.hasOwnProperty.call(message, "readStatus")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.readStatus); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); + if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.invoiceNumber); + if (message.dateCreated != null && Object.hasOwnProperty.call(message, "dateCreated")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.dateCreated); + if (message.total != null && Object.hasOwnProperty.call(message, "total")) + $root.BI.Invoice.Cost.encode(message.total, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.purchaseType != null && Object.hasOwnProperty.call(message, "purchaseType")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.purchaseType); return writer; }; /** - * Encodes the specified NotificationReadMark message, length delimited. Does not implicitly {@link NotificationCenter.NotificationReadMark.verify|verify} messages. + * Encodes the specified VaultInvoice message, length delimited. Does not implicitly {@link BI.VaultInvoice.verify|verify} messages. * @function encodeDelimited - * @memberof NotificationCenter.NotificationReadMark + * @memberof BI.VaultInvoice * @static - * @param {NotificationCenter.INotificationReadMark} message NotificationReadMark message or plain object to encode + * @param {BI.IVaultInvoice} message VaultInvoice message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationReadMark.encodeDelimited = function encodeDelimited(message, writer) { + VaultInvoice.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NotificationReadMark message from the specified reader or buffer. + * Decodes a VaultInvoice message from the specified reader or buffer. * @function decode - * @memberof NotificationCenter.NotificationReadMark + * @memberof BI.VaultInvoice * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {NotificationCenter.NotificationReadMark} NotificationReadMark + * @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 */ - NotificationReadMark.decode = function decode(reader, length) { + VaultInvoice.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationReadMark(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.VaultInvoice(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.uid = reader.bytes(); + message.id = reader.int32(); break; } case 2: { - message.notificationEdgeId = reader.int64(); + message.invoiceNumber = reader.string(); break; } case 3: { - message.markEdgeId = reader.int64(); + message.dateCreated = reader.int64(); break; } case 4: { - message.readStatus = reader.int32(); + message.total = $root.BI.Invoice.Cost.decode(reader, reader.uint32()); + break; + } + case 5: { + message.purchaseType = reader.int32(); break; } default: @@ -216432,220 +247528,218 @@ export const NotificationCenter = $root.NotificationCenter = (() => { }; /** - * Decodes a NotificationReadMark message from the specified reader or buffer, length delimited. + * Decodes a VaultInvoice message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof NotificationCenter.NotificationReadMark + * @memberof BI.VaultInvoice * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.NotificationReadMark} NotificationReadMark + * @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 */ - NotificationReadMark.decodeDelimited = function decodeDelimited(reader) { + VaultInvoice.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NotificationReadMark message. + * Verifies a VaultInvoice message. * @function verify - * @memberof NotificationCenter.NotificationReadMark + * @memberof BI.VaultInvoice * @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) { + VaultInvoice.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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) { + 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); + if (error) + return "total." + error; + } + if (message.purchaseType != null && message.hasOwnProperty("purchaseType")) + switch (message.purchaseType) { default: - return "readStatus: enum value expected"; + return "purchaseType: enum value expected"; case 0: case 1: case 2: case 3: + case 4: + case 5: + case 6: break; } return null; }; /** - * Creates a NotificationReadMark message from a plain object. Also converts values to their respective internal types. + * Creates a VaultInvoice message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof NotificationCenter.NotificationReadMark + * @memberof BI.VaultInvoice * @static * @param {Object.} object Plain object - * @returns {NotificationCenter.NotificationReadMark} NotificationReadMark + * @returns {BI.VaultInvoice} VaultInvoice */ - NotificationReadMark.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.NotificationReadMark) + VaultInvoice.fromObject = function fromObject(object) { + if (object instanceof $root.BI.VaultInvoice) return object; - let message = new $root.NotificationCenter.NotificationReadMark(); - if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; - if (object.notificationEdgeId != null) - if ($util.Long) - (message.notificationEdgeId = $util.Long.fromValue(object.notificationEdgeId)).unsigned = false; - else if (typeof object.notificationEdgeId === "string") - message.notificationEdgeId = parseInt(object.notificationEdgeId, 10); - else if (typeof object.notificationEdgeId === "number") - message.notificationEdgeId = object.notificationEdgeId; - else if (typeof object.notificationEdgeId === "object") - message.notificationEdgeId = new $util.LongBits(object.notificationEdgeId.low >>> 0, object.notificationEdgeId.high >>> 0).toNumber(); - if (object.markEdgeId != null) + let message = new $root.BI.VaultInvoice(); + if (object.id != null) + message.id = object.id | 0; + if (object.invoiceNumber != null) + message.invoiceNumber = String(object.invoiceNumber); + if (object.dateCreated != null) if ($util.Long) - (message.markEdgeId = $util.Long.fromValue(object.markEdgeId)).unsigned = false; - else if (typeof object.markEdgeId === "string") - message.markEdgeId = parseInt(object.markEdgeId, 10); - else if (typeof object.markEdgeId === "number") - message.markEdgeId = object.markEdgeId; - else if (typeof object.markEdgeId === "object") - message.markEdgeId = new $util.LongBits(object.markEdgeId.low >>> 0, object.markEdgeId.high >>> 0).toNumber(); - switch (object.readStatus) { + (message.dateCreated = $util.Long.fromValue(object.dateCreated)).unsigned = false; + else if (typeof object.dateCreated === "string") + message.dateCreated = parseInt(object.dateCreated, 10); + else if (typeof object.dateCreated === "number") + message.dateCreated = object.dateCreated; + 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") + throw TypeError(".BI.VaultInvoice.total: object expected"); + message.total = $root.BI.Invoice.Cost.fromObject(object.total); + } + switch (object.purchaseType) { default: - if (typeof object.readStatus === "number") { - message.readStatus = object.readStatus; + if (typeof object.purchaseType === "number") { + message.purchaseType = object.purchaseType; break; } break; - case "NRS_UNSPECIFIED": + case "UNKNOWN": case 0: - message.readStatus = 0; + message.purchaseType = 0; break; - case "NRS_LAST": + case "NEW": case 1: - message.readStatus = 1; + message.purchaseType = 1; break; - case "NRS_READ": + case "RENEWAL": case 2: - message.readStatus = 2; + message.purchaseType = 2; break; - case "NRS_UNREAD": + case "UPGRADE": case 3: - message.readStatus = 3; + message.purchaseType = 3; + break; + case "RESTORE": + case 4: + message.purchaseType = 4; + break; + case "ASSOCIATION": + case 5: + message.purchaseType = 5; + break; + case "OVERAGE": + case 6: + message.purchaseType = 6; break; } return message; }; /** - * Creates a plain object from a NotificationReadMark message. Also converts values to other types if specified. + * Creates a plain object from a VaultInvoice message. Also converts values to other types if specified. * @function toObject - * @memberof NotificationCenter.NotificationReadMark + * @memberof BI.VaultInvoice * @static - * @param {NotificationCenter.NotificationReadMark} message NotificationReadMark + * @param {BI.VaultInvoice} message VaultInvoice * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NotificationReadMark.toObject = function toObject(message, options) { + VaultInvoice.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.uid = ""; - else { - object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.notificationEdgeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.notificationEdgeId = options.longs === String ? "0" : 0; + object.id = 0; + object.invoiceNumber = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.markEdgeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.dateCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.markEdgeId = options.longs === String ? "0" : 0; - object.readStatus = options.enums === String ? "NRS_UNSPECIFIED" : 0; + object.dateCreated = options.longs === String ? "0" : 0; + object.total = null; + object.purchaseType = options.enums === String ? "UNKNOWN" : 0; } - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; - if (message.notificationEdgeId != null && message.hasOwnProperty("notificationEdgeId")) - if (typeof message.notificationEdgeId === "number") - object.notificationEdgeId = options.longs === String ? String(message.notificationEdgeId) : message.notificationEdgeId; - else - object.notificationEdgeId = options.longs === String ? $util.Long.prototype.toString.call(message.notificationEdgeId) : options.longs === Number ? new $util.LongBits(message.notificationEdgeId.low >>> 0, message.notificationEdgeId.high >>> 0).toNumber() : message.notificationEdgeId; - if (message.markEdgeId != null && message.hasOwnProperty("markEdgeId")) - if (typeof message.markEdgeId === "number") - object.markEdgeId = options.longs === String ? String(message.markEdgeId) : message.markEdgeId; + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) + object.invoiceNumber = message.invoiceNumber; + if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) + if (typeof message.dateCreated === "number") + object.dateCreated = options.longs === String ? String(message.dateCreated) : message.dateCreated; 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")) - object.readStatus = options.enums === String ? $root.NotificationCenter.NotificationReadStatus[message.readStatus] === undefined ? message.readStatus : $root.NotificationCenter.NotificationReadStatus[message.readStatus] : message.readStatus; + object.dateCreated = options.longs === String ? $util.Long.prototype.toString.call(message.dateCreated) : options.longs === Number ? new $util.LongBits(message.dateCreated.low >>> 0, message.dateCreated.high >>> 0).toNumber() : message.dateCreated; + if (message.total != null && message.hasOwnProperty("total")) + object.total = $root.BI.Invoice.Cost.toObject(message.total, options); + if (message.purchaseType != null && message.hasOwnProperty("purchaseType")) + object.purchaseType = options.enums === String ? $root.BI.Invoice.Type[message.purchaseType] === undefined ? message.purchaseType : $root.BI.Invoice.Type[message.purchaseType] : message.purchaseType; return object; }; /** - * Converts this NotificationReadMark to JSON. + * Converts this VaultInvoice to JSON. * @function toJSON - * @memberof NotificationCenter.NotificationReadMark + * @memberof BI.VaultInvoice * @instance * @returns {Object.} JSON object */ - NotificationReadMark.prototype.toJSON = function toJSON() { + VaultInvoice.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NotificationReadMark + * Gets the default type url for VaultInvoice * @function getTypeUrl - * @memberof NotificationCenter.NotificationReadMark + * @memberof BI.VaultInvoice * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NotificationReadMark.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VaultInvoice.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/NotificationCenter.NotificationReadMark"; + return typeUrlPrefix + "/BI.VaultInvoice"; }; - return NotificationReadMark; + return VaultInvoice; })(); - NotificationCenter.NotificationContent = (function() { + BI.InvoiceDownloadRequest = (function() { /** - * Properties of a NotificationContent. - * @memberof NotificationCenter - * @interface INotificationContent - * @property {NotificationCenter.INotification|null} [notification] NotificationContent notification - * @property {NotificationCenter.NotificationReadStatus|null} [readStatus] NotificationContent readStatus - * @property {NotificationCenter.NotificationApprovalStatus|null} [approvalStatus] NotificationContent approvalStatus - * @property {boolean|null} [trimmingPoint] NotificationContent trimmingPoint - * @property {Array.|null} [clientTypeIDs] NotificationContent clientTypeIDs - * @property {Array.|null} [deviceIDs] NotificationContent deviceIDs + * Properties of an InvoiceDownloadRequest. + * @memberof BI + * @interface IInvoiceDownloadRequest + * @property {string|null} [invoiceNumber] InvoiceDownloadRequest invoiceNumber */ /** - * Constructs a new NotificationContent. - * @memberof NotificationCenter - * @classdesc Represents a NotificationContent. - * @implements INotificationContent + * Constructs a new InvoiceDownloadRequest. + * @memberof BI + * @classdesc Represents an InvoiceDownloadRequest. + * @implements IInvoiceDownloadRequest * @constructor - * @param {NotificationCenter.INotificationContent=} [properties] Properties to set + * @param {BI.IInvoiceDownloadRequest=} [properties] Properties to set */ - function NotificationContent(properties) { - this.clientTypeIDs = []; - this.deviceIDs = []; + function InvoiceDownloadRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -216653,181 +247747,75 @@ export const NotificationCenter = $root.NotificationCenter = (() => { } /** - * NotificationContent notification. - * @member {NotificationCenter.INotification|null|undefined} notification - * @memberof NotificationCenter.NotificationContent - * @instance - */ - NotificationContent.prototype.notification = null; - - /** - * NotificationContent readStatus. - * @member {NotificationCenter.NotificationReadStatus|null|undefined} readStatus - * @memberof NotificationCenter.NotificationContent - * @instance - */ - NotificationContent.prototype.readStatus = null; - - /** - * NotificationContent approvalStatus. - * @member {NotificationCenter.NotificationApprovalStatus|null|undefined} approvalStatus - * @memberof NotificationCenter.NotificationContent - * @instance - */ - NotificationContent.prototype.approvalStatus = null; - - /** - * NotificationContent trimmingPoint. - * @member {boolean|null|undefined} trimmingPoint - * @memberof NotificationCenter.NotificationContent - * @instance - */ - NotificationContent.prototype.trimmingPoint = null; - - /** - * NotificationContent clientTypeIDs. - * @member {Array.} clientTypeIDs - * @memberof NotificationCenter.NotificationContent - * @instance - */ - NotificationContent.prototype.clientTypeIDs = $util.emptyArray; - - /** - * NotificationContent deviceIDs. - * @member {Array.} deviceIDs - * @memberof NotificationCenter.NotificationContent - * @instance - */ - NotificationContent.prototype.deviceIDs = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; - - /** - * NotificationContent type. - * @member {"notification"|"readStatus"|"approvalStatus"|"trimmingPoint"|undefined} type - * @memberof NotificationCenter.NotificationContent + * InvoiceDownloadRequest invoiceNumber. + * @member {string} invoiceNumber + * @memberof BI.InvoiceDownloadRequest * @instance */ - Object.defineProperty(NotificationContent.prototype, "type", { - get: $util.oneOfGetter($oneOfFields = ["notification", "readStatus", "approvalStatus", "trimmingPoint"]), - set: $util.oneOfSetter($oneOfFields) - }); + InvoiceDownloadRequest.prototype.invoiceNumber = ""; /** - * Creates a new NotificationContent instance using the specified properties. + * Creates a new InvoiceDownloadRequest instance using the specified properties. * @function create - * @memberof NotificationCenter.NotificationContent + * @memberof BI.InvoiceDownloadRequest * @static - * @param {NotificationCenter.INotificationContent=} [properties] Properties to set - * @returns {NotificationCenter.NotificationContent} NotificationContent instance + * @param {BI.IInvoiceDownloadRequest=} [properties] Properties to set + * @returns {BI.InvoiceDownloadRequest} InvoiceDownloadRequest instance */ - NotificationContent.create = function create(properties) { - return new NotificationContent(properties); + InvoiceDownloadRequest.create = function create(properties) { + return new InvoiceDownloadRequest(properties); }; /** - * Encodes the specified NotificationContent message. Does not implicitly {@link NotificationCenter.NotificationContent.verify|verify} messages. + * Encodes the specified InvoiceDownloadRequest message. Does not implicitly {@link BI.InvoiceDownloadRequest.verify|verify} messages. * @function encode - * @memberof NotificationCenter.NotificationContent + * @memberof BI.InvoiceDownloadRequest * @static - * @param {NotificationCenter.INotificationContent} message NotificationContent message or plain object to encode + * @param {BI.IInvoiceDownloadRequest} message InvoiceDownloadRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationContent.encode = function encode(message, writer) { + InvoiceDownloadRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.notification != null && Object.hasOwnProperty.call(message, "notification")) - $root.NotificationCenter.Notification.encode(message.notification, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.readStatus != null && Object.hasOwnProperty.call(message, "readStatus")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.readStatus); - if (message.approvalStatus != null && Object.hasOwnProperty.call(message, "approvalStatus")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.approvalStatus); - if (message.trimmingPoint != null && Object.hasOwnProperty.call(message, "trimmingPoint")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.trimmingPoint); - if (message.clientTypeIDs != null && message.clientTypeIDs.length) { - writer.uint32(/* id 5, wireType 2 =*/42).fork(); - for (let i = 0; i < message.clientTypeIDs.length; ++i) - writer.int32(message.clientTypeIDs[i]); - writer.ldelim(); - } - if (message.deviceIDs != null && message.deviceIDs.length) { - writer.uint32(/* id 6, wireType 2 =*/50).fork(); - for (let i = 0; i < message.deviceIDs.length; ++i) - writer.int64(message.deviceIDs[i]); - writer.ldelim(); - } + if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.invoiceNumber); return writer; }; /** - * Encodes the specified NotificationContent message, length delimited. Does not implicitly {@link NotificationCenter.NotificationContent.verify|verify} messages. + * Encodes the specified InvoiceDownloadRequest message, length delimited. Does not implicitly {@link BI.InvoiceDownloadRequest.verify|verify} messages. * @function encodeDelimited - * @memberof NotificationCenter.NotificationContent + * @memberof BI.InvoiceDownloadRequest * @static - * @param {NotificationCenter.INotificationContent} message NotificationContent message or plain object to encode + * @param {BI.IInvoiceDownloadRequest} message InvoiceDownloadRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationContent.encodeDelimited = function encodeDelimited(message, writer) { + InvoiceDownloadRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NotificationContent message from the specified reader or buffer. + * Decodes an InvoiceDownloadRequest message from the specified reader or buffer. * @function decode - * @memberof NotificationCenter.NotificationContent + * @memberof BI.InvoiceDownloadRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {NotificationCenter.NotificationContent} NotificationContent + * @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 */ - NotificationContent.decode = function decode(reader, length) { + InvoiceDownloadRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationContent(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.InvoiceDownloadRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.notification = $root.NotificationCenter.Notification.decode(reader, reader.uint32()); - break; - } - case 2: { - message.readStatus = reader.int32(); - break; - } - case 3: { - message.approvalStatus = reader.int32(); - break; - } - case 4: { - message.trimmingPoint = reader.bool(); - break; - } - case 5: { - if (!(message.clientTypeIDs && message.clientTypeIDs.length)) - message.clientTypeIDs = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.clientTypeIDs.push(reader.int32()); - } else - message.clientTypeIDs.push(reader.int32()); - break; - } - case 6: { - if (!(message.deviceIDs && message.deviceIDs.length)) - message.deviceIDs = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.deviceIDs.push(reader.int64()); - } else - message.deviceIDs.push(reader.int64()); + message.invoiceNumber = reader.string(); break; } default: @@ -216839,296 +247827,123 @@ export const NotificationCenter = $root.NotificationCenter = (() => { }; /** - * Decodes a NotificationContent message from the specified reader or buffer, length delimited. + * Decodes an InvoiceDownloadRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof NotificationCenter.NotificationContent + * @memberof BI.InvoiceDownloadRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.NotificationContent} NotificationContent + * @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 */ - NotificationContent.decodeDelimited = function decodeDelimited(reader) { + InvoiceDownloadRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NotificationContent message. + * Verifies an InvoiceDownloadRequest message. * @function verify - * @memberof NotificationCenter.NotificationContent + * @memberof BI.InvoiceDownloadRequest * @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) { + InvoiceDownloadRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - let properties = {}; - if (message.notification != null && message.hasOwnProperty("notification")) { - properties.type = 1; - { - let error = $root.NotificationCenter.Notification.verify(message.notification); - 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: - case 5: - 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"; - } + if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) + if (!$util.isString(message.invoiceNumber)) + return "invoiceNumber: string expected"; return null; }; /** - * Creates a NotificationContent message from a plain object. Also converts values to their respective internal types. + * Creates an InvoiceDownloadRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof NotificationCenter.NotificationContent + * @memberof BI.InvoiceDownloadRequest * @static * @param {Object.} object Plain object - * @returns {NotificationCenter.NotificationContent} NotificationContent + * @returns {BI.InvoiceDownloadRequest} InvoiceDownloadRequest */ - NotificationContent.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.NotificationContent) + InvoiceDownloadRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.InvoiceDownloadRequest) return object; - let message = new $root.NotificationCenter.NotificationContent(); - if (object.notification != null) { - if (typeof object.notification !== "object") - throw TypeError(".NotificationCenter.NotificationContent.notification: object expected"); - message.notification = $root.NotificationCenter.Notification.fromObject(object.notification); - } - switch (object.readStatus) { - default: - if (typeof object.readStatus === "number") { - message.readStatus = object.readStatus; - break; - } - break; - case "NRS_UNSPECIFIED": - case 0: - message.readStatus = 0; - break; - case "NRS_LAST": - case 1: - message.readStatus = 1; - break; - case "NRS_READ": - case 2: - message.readStatus = 2; - break; - case "NRS_UNREAD": - case 3: - message.readStatus = 3; - break; - } - switch (object.approvalStatus) { - default: - if (typeof object.approvalStatus === "number") { - message.approvalStatus = object.approvalStatus; - break; - } - break; - case "NAS_UNSPECIFIED": - case 0: - message.approvalStatus = 0; - break; - case "NAS_APPROVED": - case 1: - message.approvalStatus = 1; - break; - case "NAS_DENIED": - case 2: - message.approvalStatus = 2; - break; - case "NAS_LOST_APPROVAL_RIGHTS": - case 3: - message.approvalStatus = 3; - break; - case "NAS_LOST_ACCESS": - case 4: - message.approvalStatus = 4; - break; - case "NAS_ESCALATED": - case 5: - message.approvalStatus = 5; - break; - } - if (object.trimmingPoint != null) - message.trimmingPoint = Boolean(object.trimmingPoint); - if (object.clientTypeIDs) { - if (!Array.isArray(object.clientTypeIDs)) - throw TypeError(".NotificationCenter.NotificationContent.clientTypeIDs: array expected"); - message.clientTypeIDs = []; - for (let i = 0; i < object.clientTypeIDs.length; ++i) - message.clientTypeIDs[i] = object.clientTypeIDs[i] | 0; - } - if (object.deviceIDs) { - if (!Array.isArray(object.deviceIDs)) - throw TypeError(".NotificationCenter.NotificationContent.deviceIDs: array expected"); - message.deviceIDs = []; - for (let i = 0; i < object.deviceIDs.length; ++i) - if ($util.Long) - (message.deviceIDs[i] = $util.Long.fromValue(object.deviceIDs[i])).unsigned = false; - else if (typeof object.deviceIDs[i] === "string") - message.deviceIDs[i] = parseInt(object.deviceIDs[i], 10); - else if (typeof object.deviceIDs[i] === "number") - message.deviceIDs[i] = object.deviceIDs[i]; - else if (typeof object.deviceIDs[i] === "object") - message.deviceIDs[i] = new $util.LongBits(object.deviceIDs[i].low >>> 0, object.deviceIDs[i].high >>> 0).toNumber(); - } + let message = new $root.BI.InvoiceDownloadRequest(); + if (object.invoiceNumber != null) + message.invoiceNumber = String(object.invoiceNumber); return message; }; /** - * Creates a plain object from a NotificationContent message. Also converts values to other types if specified. + * Creates a plain object from an InvoiceDownloadRequest message. Also converts values to other types if specified. * @function toObject - * @memberof NotificationCenter.NotificationContent + * @memberof BI.InvoiceDownloadRequest * @static - * @param {NotificationCenter.NotificationContent} message NotificationContent + * @param {BI.InvoiceDownloadRequest} message InvoiceDownloadRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NotificationContent.toObject = function toObject(message, options) { + InvoiceDownloadRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.clientTypeIDs = []; - object.deviceIDs = []; - } - if (message.notification != null && message.hasOwnProperty("notification")) { - object.notification = $root.NotificationCenter.Notification.toObject(message.notification, options); - if (options.oneofs) - object.type = "notification"; - } - if (message.readStatus != null && message.hasOwnProperty("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")) { - 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")) { - object.trimmingPoint = message.trimmingPoint; - if (options.oneofs) - object.type = "trimmingPoint"; - } - if (message.clientTypeIDs && message.clientTypeIDs.length) { - object.clientTypeIDs = []; - for (let j = 0; j < message.clientTypeIDs.length; ++j) - object.clientTypeIDs[j] = message.clientTypeIDs[j]; - } - if (message.deviceIDs && message.deviceIDs.length) { - object.deviceIDs = []; - for (let j = 0; j < message.deviceIDs.length; ++j) - if (typeof message.deviceIDs[j] === "number") - object.deviceIDs[j] = options.longs === String ? String(message.deviceIDs[j]) : message.deviceIDs[j]; - else - object.deviceIDs[j] = options.longs === String ? $util.Long.prototype.toString.call(message.deviceIDs[j]) : options.longs === Number ? new $util.LongBits(message.deviceIDs[j].low >>> 0, message.deviceIDs[j].high >>> 0).toNumber() : message.deviceIDs[j]; - } + if (options.defaults) + object.invoiceNumber = ""; + if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) + object.invoiceNumber = message.invoiceNumber; return object; }; /** - * Converts this NotificationContent to JSON. + * Converts this InvoiceDownloadRequest to JSON. * @function toJSON - * @memberof NotificationCenter.NotificationContent + * @memberof BI.InvoiceDownloadRequest * @instance * @returns {Object.} JSON object */ - NotificationContent.prototype.toJSON = function toJSON() { + InvoiceDownloadRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NotificationContent + * Gets the default type url for InvoiceDownloadRequest * @function getTypeUrl - * @memberof NotificationCenter.NotificationContent + * @memberof BI.InvoiceDownloadRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NotificationContent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InvoiceDownloadRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/NotificationCenter.NotificationContent"; + return typeUrlPrefix + "/BI.InvoiceDownloadRequest"; }; - return NotificationContent; + return InvoiceDownloadRequest; })(); - NotificationCenter.NotificationWrapper = (function() { + BI.InvoiceDownloadResponse = (function() { /** - * Properties of a NotificationWrapper. - * @memberof NotificationCenter - * @interface INotificationWrapper - * @property {Uint8Array|null} [uid] NotificationWrapper uid - * @property {NotificationCenter.INotificationContent|null} [content] NotificationWrapper content - * @property {number|Long|null} [timestamp] NotificationWrapper timestamp + * Properties of an InvoiceDownloadResponse. + * @memberof BI + * @interface IInvoiceDownloadResponse + * @property {string|null} [link] InvoiceDownloadResponse link + * @property {string|null} [fileName] InvoiceDownloadResponse fileName */ /** - * Constructs a new NotificationWrapper. - * @memberof NotificationCenter - * @classdesc Represents a NotificationWrapper. - * @implements INotificationWrapper + * Constructs a new InvoiceDownloadResponse. + * @memberof BI + * @classdesc Represents an InvoiceDownloadResponse. + * @implements IInvoiceDownloadResponse * @constructor - * @param {NotificationCenter.INotificationWrapper=} [properties] Properties to set + * @param {BI.IInvoiceDownloadResponse=} [properties] Properties to set */ - function NotificationWrapper(properties) { + function InvoiceDownloadResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -217136,103 +247951,89 @@ export const NotificationCenter = $root.NotificationCenter = (() => { } /** - * NotificationWrapper uid. - * @member {Uint8Array} uid - * @memberof NotificationCenter.NotificationWrapper - * @instance - */ - NotificationWrapper.prototype.uid = $util.newBuffer([]); - - /** - * NotificationWrapper content. - * @member {NotificationCenter.INotificationContent|null|undefined} content - * @memberof NotificationCenter.NotificationWrapper + * InvoiceDownloadResponse link. + * @member {string} link + * @memberof BI.InvoiceDownloadResponse * @instance */ - NotificationWrapper.prototype.content = null; + InvoiceDownloadResponse.prototype.link = ""; /** - * NotificationWrapper timestamp. - * @member {number|Long} timestamp - * @memberof NotificationCenter.NotificationWrapper + * InvoiceDownloadResponse fileName. + * @member {string} fileName + * @memberof BI.InvoiceDownloadResponse * @instance */ - NotificationWrapper.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + InvoiceDownloadResponse.prototype.fileName = ""; /** - * Creates a new NotificationWrapper instance using the specified properties. + * Creates a new InvoiceDownloadResponse instance using the specified properties. * @function create - * @memberof NotificationCenter.NotificationWrapper + * @memberof BI.InvoiceDownloadResponse * @static - * @param {NotificationCenter.INotificationWrapper=} [properties] Properties to set - * @returns {NotificationCenter.NotificationWrapper} NotificationWrapper instance + * @param {BI.IInvoiceDownloadResponse=} [properties] Properties to set + * @returns {BI.InvoiceDownloadResponse} InvoiceDownloadResponse instance */ - NotificationWrapper.create = function create(properties) { - return new NotificationWrapper(properties); + InvoiceDownloadResponse.create = function create(properties) { + return new InvoiceDownloadResponse(properties); }; /** - * Encodes the specified NotificationWrapper message. Does not implicitly {@link NotificationCenter.NotificationWrapper.verify|verify} messages. + * Encodes the specified InvoiceDownloadResponse message. Does not implicitly {@link BI.InvoiceDownloadResponse.verify|verify} messages. * @function encode - * @memberof NotificationCenter.NotificationWrapper + * @memberof BI.InvoiceDownloadResponse * @static - * @param {NotificationCenter.INotificationWrapper} message NotificationWrapper message or plain object to encode + * @param {BI.IInvoiceDownloadResponse} message InvoiceDownloadResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationWrapper.encode = function encode(message, writer) { + InvoiceDownloadResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - $root.NotificationCenter.NotificationContent.encode(message.content, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.timestamp); + if (message.link != null && Object.hasOwnProperty.call(message, "link")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.link); + if (message.fileName != null && Object.hasOwnProperty.call(message, "fileName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.fileName); return writer; }; /** - * Encodes the specified NotificationWrapper message, length delimited. Does not implicitly {@link NotificationCenter.NotificationWrapper.verify|verify} messages. + * Encodes the specified InvoiceDownloadResponse message, length delimited. Does not implicitly {@link BI.InvoiceDownloadResponse.verify|verify} messages. * @function encodeDelimited - * @memberof NotificationCenter.NotificationWrapper + * @memberof BI.InvoiceDownloadResponse * @static - * @param {NotificationCenter.INotificationWrapper} message NotificationWrapper message or plain object to encode + * @param {BI.IInvoiceDownloadResponse} message InvoiceDownloadResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationWrapper.encodeDelimited = function encodeDelimited(message, writer) { + InvoiceDownloadResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NotificationWrapper message from the specified reader or buffer. + * Decodes an InvoiceDownloadResponse message from the specified reader or buffer. * @function decode - * @memberof NotificationCenter.NotificationWrapper + * @memberof BI.InvoiceDownloadResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {NotificationCenter.NotificationWrapper} NotificationWrapper + * @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 */ - NotificationWrapper.decode = function decode(reader, length) { + InvoiceDownloadResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationWrapper(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.InvoiceDownloadResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.uid = reader.bytes(); + message.link = reader.string(); break; } case 2: { - message.content = $root.NotificationCenter.NotificationContent.decode(reader, reader.uint32()); - break; - } - case 3: { - message.timestamp = reader.int64(); + message.fileName = reader.string(); break; } default: @@ -217244,170 +248045,131 @@ export const NotificationCenter = $root.NotificationCenter = (() => { }; /** - * Decodes a NotificationWrapper message from the specified reader or buffer, length delimited. + * Decodes an InvoiceDownloadResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof NotificationCenter.NotificationWrapper + * @memberof BI.InvoiceDownloadResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.NotificationWrapper} NotificationWrapper + * @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 */ - NotificationWrapper.decodeDelimited = function decodeDelimited(reader) { + InvoiceDownloadResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NotificationWrapper message. + * Verifies an InvoiceDownloadResponse message. * @function verify - * @memberof NotificationCenter.NotificationWrapper + * @memberof BI.InvoiceDownloadResponse * @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) { + InvoiceDownloadResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.content != null && message.hasOwnProperty("content")) { - let error = $root.NotificationCenter.NotificationContent.verify(message.content); - 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"; + 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 NotificationWrapper message from a plain object. Also converts values to their respective internal types. + * Creates an InvoiceDownloadResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof NotificationCenter.NotificationWrapper + * @memberof BI.InvoiceDownloadResponse * @static * @param {Object.} object Plain object - * @returns {NotificationCenter.NotificationWrapper} NotificationWrapper + * @returns {BI.InvoiceDownloadResponse} InvoiceDownloadResponse */ - NotificationWrapper.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.NotificationWrapper) + InvoiceDownloadResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.InvoiceDownloadResponse) return object; - let message = new $root.NotificationCenter.NotificationWrapper(); - if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; - if (object.content != null) { - if (typeof object.content !== "object") - throw TypeError(".NotificationCenter.NotificationWrapper.content: object expected"); - message.content = $root.NotificationCenter.NotificationContent.fromObject(object.content); - } - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = false; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(); + let message = new $root.BI.InvoiceDownloadResponse(); + if (object.link != null) + message.link = String(object.link); + if (object.fileName != null) + message.fileName = String(object.fileName); return message; }; /** - * Creates a plain object from a NotificationWrapper message. Also converts values to other types if specified. + * Creates a plain object from an InvoiceDownloadResponse message. Also converts values to other types if specified. * @function toObject - * @memberof NotificationCenter.NotificationWrapper + * @memberof BI.InvoiceDownloadResponse * @static - * @param {NotificationCenter.NotificationWrapper} message NotificationWrapper + * @param {BI.InvoiceDownloadResponse} message InvoiceDownloadResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NotificationWrapper.toObject = function toObject(message, options) { + InvoiceDownloadResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.uid = ""; - else { - object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); - } - object.content = null; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; + object.link = ""; + object.fileName = ""; } - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; - if (message.content != null && message.hasOwnProperty("content")) - object.content = $root.NotificationCenter.NotificationContent.toObject(message.content, options); - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - 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.link != null && message.hasOwnProperty("link")) + object.link = message.link; + if (message.fileName != null && message.hasOwnProperty("fileName")) + object.fileName = message.fileName; return object; }; /** - * Converts this NotificationWrapper to JSON. + * Converts this InvoiceDownloadResponse to JSON. * @function toJSON - * @memberof NotificationCenter.NotificationWrapper + * @memberof BI.InvoiceDownloadResponse * @instance * @returns {Object.} JSON object */ - NotificationWrapper.prototype.toJSON = function toJSON() { + InvoiceDownloadResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NotificationWrapper + * Gets the default type url for InvoiceDownloadResponse * @function getTypeUrl - * @memberof NotificationCenter.NotificationWrapper + * @memberof BI.InvoiceDownloadResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NotificationWrapper.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InvoiceDownloadResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/NotificationCenter.NotificationWrapper"; + return typeUrlPrefix + "/BI.InvoiceDownloadResponse"; }; - return NotificationWrapper; + return InvoiceDownloadResponse; })(); - NotificationCenter.NotificationSync = (function() { + BI.VaultInvoiceDownloadLinkRequest = (function() { /** - * Properties of a NotificationSync. - * @memberof NotificationCenter - * @interface INotificationSync - * @property {Array.|null} [data] NotificationSync data - * @property {number|Long|null} [syncPoint] NotificationSync syncPoint - * @property {boolean|null} [hasMore] NotificationSync hasMore + * Properties of a VaultInvoiceDownloadLinkRequest. + * @memberof BI + * @interface IVaultInvoiceDownloadLinkRequest + * @property {string|null} [invoiceNumber] VaultInvoiceDownloadLinkRequest invoiceNumber */ /** - * Constructs a new NotificationSync. - * @memberof NotificationCenter - * @classdesc Represents a NotificationSync. - * @implements INotificationSync + * Constructs a new VaultInvoiceDownloadLinkRequest. + * @memberof BI + * @classdesc Represents a VaultInvoiceDownloadLinkRequest. + * @implements IVaultInvoiceDownloadLinkRequest * @constructor - * @param {NotificationCenter.INotificationSync=} [properties] Properties to set + * @param {BI.IVaultInvoiceDownloadLinkRequest=} [properties] Properties to set */ - function NotificationSync(properties) { - this.data = []; + function VaultInvoiceDownloadLinkRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -217415,106 +248177,75 @@ export const NotificationCenter = $root.NotificationCenter = (() => { } /** - * NotificationSync data. - * @member {Array.} data - * @memberof NotificationCenter.NotificationSync - * @instance - */ - NotificationSync.prototype.data = $util.emptyArray; - - /** - * NotificationSync syncPoint. - * @member {number|Long} syncPoint - * @memberof NotificationCenter.NotificationSync - * @instance - */ - NotificationSync.prototype.syncPoint = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * NotificationSync hasMore. - * @member {boolean} hasMore - * @memberof NotificationCenter.NotificationSync + * VaultInvoiceDownloadLinkRequest invoiceNumber. + * @member {string} invoiceNumber + * @memberof BI.VaultInvoiceDownloadLinkRequest * @instance */ - NotificationSync.prototype.hasMore = false; + VaultInvoiceDownloadLinkRequest.prototype.invoiceNumber = ""; /** - * Creates a new NotificationSync instance using the specified properties. + * Creates a new VaultInvoiceDownloadLinkRequest instance using the specified properties. * @function create - * @memberof NotificationCenter.NotificationSync + * @memberof BI.VaultInvoiceDownloadLinkRequest * @static - * @param {NotificationCenter.INotificationSync=} [properties] Properties to set - * @returns {NotificationCenter.NotificationSync} NotificationSync instance + * @param {BI.IVaultInvoiceDownloadLinkRequest=} [properties] Properties to set + * @returns {BI.VaultInvoiceDownloadLinkRequest} VaultInvoiceDownloadLinkRequest instance */ - NotificationSync.create = function create(properties) { - return new NotificationSync(properties); + VaultInvoiceDownloadLinkRequest.create = function create(properties) { + return new VaultInvoiceDownloadLinkRequest(properties); }; /** - * Encodes the specified NotificationSync message. Does not implicitly {@link NotificationCenter.NotificationSync.verify|verify} messages. + * Encodes the specified VaultInvoiceDownloadLinkRequest message. Does not implicitly {@link BI.VaultInvoiceDownloadLinkRequest.verify|verify} messages. * @function encode - * @memberof NotificationCenter.NotificationSync + * @memberof BI.VaultInvoiceDownloadLinkRequest * @static - * @param {NotificationCenter.INotificationSync} message NotificationSync message or plain object to encode + * @param {BI.IVaultInvoiceDownloadLinkRequest} message VaultInvoiceDownloadLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationSync.encode = function encode(message, writer) { + VaultInvoiceDownloadLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.data != null && message.data.length) - for (let i = 0; i < message.data.length; ++i) - $root.NotificationCenter.NotificationWrapper.encode(message.data[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.syncPoint != null && Object.hasOwnProperty.call(message, "syncPoint")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.syncPoint); - if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.hasMore); + if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.invoiceNumber); return writer; }; /** - * Encodes the specified NotificationSync message, length delimited. Does not implicitly {@link NotificationCenter.NotificationSync.verify|verify} messages. + * Encodes the specified VaultInvoiceDownloadLinkRequest message, length delimited. Does not implicitly {@link BI.VaultInvoiceDownloadLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof NotificationCenter.NotificationSync + * @memberof BI.VaultInvoiceDownloadLinkRequest * @static - * @param {NotificationCenter.INotificationSync} message NotificationSync message or plain object to encode + * @param {BI.IVaultInvoiceDownloadLinkRequest} message VaultInvoiceDownloadLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationSync.encodeDelimited = function encodeDelimited(message, writer) { + VaultInvoiceDownloadLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NotificationSync message from the specified reader or buffer. + * Decodes a VaultInvoiceDownloadLinkRequest message from the specified reader or buffer. * @function decode - * @memberof NotificationCenter.NotificationSync + * @memberof BI.VaultInvoiceDownloadLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {NotificationCenter.NotificationSync} NotificationSync + * @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 */ - NotificationSync.decode = function decode(reader, length) { + VaultInvoiceDownloadLinkRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationSync(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.VaultInvoiceDownloadLinkRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.data && message.data.length)) - message.data = []; - message.data.push($root.NotificationCenter.NotificationWrapper.decode(reader, reader.uint32())); - break; - } - case 2: { - message.syncPoint = reader.int64(); - break; - } - case 3: { - message.hasMore = reader.bool(); + message.invoiceNumber = reader.string(); break; } default: @@ -217526,172 +248257,123 @@ export const NotificationCenter = $root.NotificationCenter = (() => { }; /** - * Decodes a NotificationSync message from the specified reader or buffer, length delimited. + * Decodes a VaultInvoiceDownloadLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof NotificationCenter.NotificationSync + * @memberof BI.VaultInvoiceDownloadLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.NotificationSync} NotificationSync + * @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 */ - NotificationSync.decodeDelimited = function decodeDelimited(reader) { + VaultInvoiceDownloadLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NotificationSync message. + * Verifies a VaultInvoiceDownloadLinkRequest message. * @function verify - * @memberof NotificationCenter.NotificationSync + * @memberof BI.VaultInvoiceDownloadLinkRequest * @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) { + VaultInvoiceDownloadLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.NotificationCenter.NotificationWrapper.verify(message.data[i]); - 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"; + if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) + if (!$util.isString(message.invoiceNumber)) + return "invoiceNumber: string expected"; return null; }; /** - * Creates a NotificationSync message from a plain object. Also converts values to their respective internal types. + * Creates a VaultInvoiceDownloadLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof NotificationCenter.NotificationSync + * @memberof BI.VaultInvoiceDownloadLinkRequest * @static * @param {Object.} object Plain object - * @returns {NotificationCenter.NotificationSync} NotificationSync + * @returns {BI.VaultInvoiceDownloadLinkRequest} VaultInvoiceDownloadLinkRequest */ - NotificationSync.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.NotificationSync) + VaultInvoiceDownloadLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.VaultInvoiceDownloadLinkRequest) return object; - let message = new $root.NotificationCenter.NotificationSync(); - if (object.data) { - if (!Array.isArray(object.data)) - throw TypeError(".NotificationCenter.NotificationSync.data: array expected"); - message.data = []; - for (let i = 0; i < object.data.length; ++i) { - if (typeof object.data[i] !== "object") - throw TypeError(".NotificationCenter.NotificationSync.data: object expected"); - message.data[i] = $root.NotificationCenter.NotificationWrapper.fromObject(object.data[i]); - } - } - if (object.syncPoint != null) - if ($util.Long) - (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; - else if (typeof object.syncPoint === "string") - message.syncPoint = parseInt(object.syncPoint, 10); - else if (typeof object.syncPoint === "number") - message.syncPoint = object.syncPoint; - else if (typeof object.syncPoint === "object") - message.syncPoint = new $util.LongBits(object.syncPoint.low >>> 0, object.syncPoint.high >>> 0).toNumber(); - if (object.hasMore != null) - message.hasMore = Boolean(object.hasMore); + let message = new $root.BI.VaultInvoiceDownloadLinkRequest(); + if (object.invoiceNumber != null) + message.invoiceNumber = String(object.invoiceNumber); return message; }; /** - * Creates a plain object from a NotificationSync message. Also converts values to other types if specified. + * Creates a plain object from a VaultInvoiceDownloadLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof NotificationCenter.NotificationSync + * @memberof BI.VaultInvoiceDownloadLinkRequest * @static - * @param {NotificationCenter.NotificationSync} message NotificationSync + * @param {BI.VaultInvoiceDownloadLinkRequest} message VaultInvoiceDownloadLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NotificationSync.toObject = function toObject(message, options) { + VaultInvoiceDownloadLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.data = []; - if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.syncPoint = options.longs === String ? "0" : 0; - object.hasMore = false; - } - if (message.data && message.data.length) { - object.data = []; - for (let j = 0; j < message.data.length; ++j) - object.data[j] = $root.NotificationCenter.NotificationWrapper.toObject(message.data[j], options); - } - if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) - 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")) - object.hasMore = message.hasMore; + if (options.defaults) + object.invoiceNumber = ""; + if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) + object.invoiceNumber = message.invoiceNumber; return object; }; /** - * Converts this NotificationSync to JSON. + * Converts this VaultInvoiceDownloadLinkRequest to JSON. * @function toJSON - * @memberof NotificationCenter.NotificationSync + * @memberof BI.VaultInvoiceDownloadLinkRequest * @instance * @returns {Object.} JSON object */ - NotificationSync.prototype.toJSON = function toJSON() { + VaultInvoiceDownloadLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NotificationSync + * Gets the default type url for VaultInvoiceDownloadLinkRequest * @function getTypeUrl - * @memberof NotificationCenter.NotificationSync + * @memberof BI.VaultInvoiceDownloadLinkRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NotificationSync.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VaultInvoiceDownloadLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/NotificationCenter.NotificationSync"; + return typeUrlPrefix + "/BI.VaultInvoiceDownloadLinkRequest"; }; - return NotificationSync; + return VaultInvoiceDownloadLinkRequest; })(); - NotificationCenter.ReadStatusUpdate = (function() { + BI.VaultInvoiceDownloadLinkResponse = (function() { /** - * Properties of a ReadStatusUpdate. - * @memberof NotificationCenter - * @interface IReadStatusUpdate - * @property {Uint8Array|null} [notificationUid] ReadStatusUpdate notificationUid - * @property {NotificationCenter.NotificationReadStatus|null} [status] ReadStatusUpdate status + * Properties of a VaultInvoiceDownloadLinkResponse. + * @memberof BI + * @interface IVaultInvoiceDownloadLinkResponse + * @property {string|null} [link] VaultInvoiceDownloadLinkResponse link + * @property {string|null} [fileName] VaultInvoiceDownloadLinkResponse fileName */ /** - * Constructs a new ReadStatusUpdate. - * @memberof NotificationCenter - * @classdesc Represents a ReadStatusUpdate. - * @implements IReadStatusUpdate + * Constructs a new VaultInvoiceDownloadLinkResponse. + * @memberof BI + * @classdesc Represents a VaultInvoiceDownloadLinkResponse. + * @implements IVaultInvoiceDownloadLinkResponse * @constructor - * @param {NotificationCenter.IReadStatusUpdate=} [properties] Properties to set + * @param {BI.IVaultInvoiceDownloadLinkResponse=} [properties] Properties to set */ - function ReadStatusUpdate(properties) { + function VaultInvoiceDownloadLinkResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -217699,89 +248381,89 @@ export const NotificationCenter = $root.NotificationCenter = (() => { } /** - * ReadStatusUpdate notificationUid. - * @member {Uint8Array} notificationUid - * @memberof NotificationCenter.ReadStatusUpdate + * VaultInvoiceDownloadLinkResponse link. + * @member {string} link + * @memberof BI.VaultInvoiceDownloadLinkResponse * @instance */ - ReadStatusUpdate.prototype.notificationUid = $util.newBuffer([]); + VaultInvoiceDownloadLinkResponse.prototype.link = ""; /** - * ReadStatusUpdate status. - * @member {NotificationCenter.NotificationReadStatus} status - * @memberof NotificationCenter.ReadStatusUpdate + * VaultInvoiceDownloadLinkResponse fileName. + * @member {string} fileName + * @memberof BI.VaultInvoiceDownloadLinkResponse * @instance */ - ReadStatusUpdate.prototype.status = 0; + VaultInvoiceDownloadLinkResponse.prototype.fileName = ""; /** - * Creates a new ReadStatusUpdate instance using the specified properties. + * Creates a new VaultInvoiceDownloadLinkResponse instance using the specified properties. * @function create - * @memberof NotificationCenter.ReadStatusUpdate + * @memberof BI.VaultInvoiceDownloadLinkResponse * @static - * @param {NotificationCenter.IReadStatusUpdate=} [properties] Properties to set - * @returns {NotificationCenter.ReadStatusUpdate} ReadStatusUpdate instance + * @param {BI.IVaultInvoiceDownloadLinkResponse=} [properties] Properties to set + * @returns {BI.VaultInvoiceDownloadLinkResponse} VaultInvoiceDownloadLinkResponse instance */ - ReadStatusUpdate.create = function create(properties) { - return new ReadStatusUpdate(properties); + VaultInvoiceDownloadLinkResponse.create = function create(properties) { + return new VaultInvoiceDownloadLinkResponse(properties); }; /** - * Encodes the specified ReadStatusUpdate message. Does not implicitly {@link NotificationCenter.ReadStatusUpdate.verify|verify} messages. + * Encodes the specified VaultInvoiceDownloadLinkResponse message. Does not implicitly {@link BI.VaultInvoiceDownloadLinkResponse.verify|verify} messages. * @function encode - * @memberof NotificationCenter.ReadStatusUpdate + * @memberof BI.VaultInvoiceDownloadLinkResponse * @static - * @param {NotificationCenter.IReadStatusUpdate} message ReadStatusUpdate message or plain object to encode + * @param {BI.IVaultInvoiceDownloadLinkResponse} message VaultInvoiceDownloadLinkResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadStatusUpdate.encode = function encode(message, writer) { + VaultInvoiceDownloadLinkResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.notificationUid != null && Object.hasOwnProperty.call(message, "notificationUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.notificationUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); + if (message.link != null && Object.hasOwnProperty.call(message, "link")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.link); + if (message.fileName != null && Object.hasOwnProperty.call(message, "fileName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.fileName); return writer; }; /** - * Encodes the specified ReadStatusUpdate message, length delimited. Does not implicitly {@link NotificationCenter.ReadStatusUpdate.verify|verify} messages. + * Encodes the specified VaultInvoiceDownloadLinkResponse message, length delimited. Does not implicitly {@link BI.VaultInvoiceDownloadLinkResponse.verify|verify} messages. * @function encodeDelimited - * @memberof NotificationCenter.ReadStatusUpdate + * @memberof BI.VaultInvoiceDownloadLinkResponse * @static - * @param {NotificationCenter.IReadStatusUpdate} message ReadStatusUpdate message or plain object to encode + * @param {BI.IVaultInvoiceDownloadLinkResponse} message VaultInvoiceDownloadLinkResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadStatusUpdate.encodeDelimited = function encodeDelimited(message, writer) { + VaultInvoiceDownloadLinkResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadStatusUpdate message from the specified reader or buffer. + * Decodes a VaultInvoiceDownloadLinkResponse message from the specified reader or buffer. * @function decode - * @memberof NotificationCenter.ReadStatusUpdate + * @memberof BI.VaultInvoiceDownloadLinkResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {NotificationCenter.ReadStatusUpdate} ReadStatusUpdate + * @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 */ - ReadStatusUpdate.decode = function decode(reader, length) { + VaultInvoiceDownloadLinkResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.ReadStatusUpdate(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.VaultInvoiceDownloadLinkResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.notificationUid = reader.bytes(); + message.link = reader.string(); break; } case 2: { - message.status = reader.int32(); + message.fileName = reader.string(); break; } default: @@ -217793,170 +248475,132 @@ export const NotificationCenter = $root.NotificationCenter = (() => { }; /** - * Decodes a ReadStatusUpdate message from the specified reader or buffer, length delimited. + * Decodes a VaultInvoiceDownloadLinkResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof NotificationCenter.ReadStatusUpdate + * @memberof BI.VaultInvoiceDownloadLinkResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.ReadStatusUpdate} ReadStatusUpdate + * @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 */ - ReadStatusUpdate.decodeDelimited = function decodeDelimited(reader) { + VaultInvoiceDownloadLinkResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadStatusUpdate message. + * Verifies a VaultInvoiceDownloadLinkResponse message. * @function verify - * @memberof NotificationCenter.ReadStatusUpdate + * @memberof BI.VaultInvoiceDownloadLinkResponse * @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) { + VaultInvoiceDownloadLinkResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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; - } + 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 ReadStatusUpdate message from a plain object. Also converts values to their respective internal types. + * Creates a VaultInvoiceDownloadLinkResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof NotificationCenter.ReadStatusUpdate + * @memberof BI.VaultInvoiceDownloadLinkResponse * @static * @param {Object.} object Plain object - * @returns {NotificationCenter.ReadStatusUpdate} ReadStatusUpdate + * @returns {BI.VaultInvoiceDownloadLinkResponse} VaultInvoiceDownloadLinkResponse */ - ReadStatusUpdate.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.ReadStatusUpdate) + VaultInvoiceDownloadLinkResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.VaultInvoiceDownloadLinkResponse) return object; - let message = new $root.NotificationCenter.ReadStatusUpdate(); - if (object.notificationUid != null) - if (typeof object.notificationUid === "string") - $util.base64.decode(object.notificationUid, message.notificationUid = $util.newBuffer($util.base64.length(object.notificationUid)), 0); - else if (object.notificationUid.length >= 0) - message.notificationUid = object.notificationUid; - switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; - } - break; - case "NRS_UNSPECIFIED": - case 0: - message.status = 0; - break; - case "NRS_LAST": - case 1: - message.status = 1; - break; - case "NRS_READ": - case 2: - message.status = 2; - break; - case "NRS_UNREAD": - case 3: - message.status = 3; - break; - } + let message = new $root.BI.VaultInvoiceDownloadLinkResponse(); + if (object.link != null) + message.link = String(object.link); + if (object.fileName != null) + message.fileName = String(object.fileName); return message; }; /** - * Creates a plain object from a ReadStatusUpdate message. Also converts values to other types if specified. + * Creates a plain object from a VaultInvoiceDownloadLinkResponse message. Also converts values to other types if specified. * @function toObject - * @memberof NotificationCenter.ReadStatusUpdate + * @memberof BI.VaultInvoiceDownloadLinkResponse * @static - * @param {NotificationCenter.ReadStatusUpdate} message ReadStatusUpdate + * @param {BI.VaultInvoiceDownloadLinkResponse} message VaultInvoiceDownloadLinkResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadStatusUpdate.toObject = function toObject(message, options) { + VaultInvoiceDownloadLinkResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.notificationUid = ""; - else { - object.notificationUid = []; - if (options.bytes !== Array) - object.notificationUid = $util.newBuffer(object.notificationUid); - } - object.status = options.enums === String ? "NRS_UNSPECIFIED" : 0; + object.link = ""; + object.fileName = ""; } - if (message.notificationUid != null && message.hasOwnProperty("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")) - object.status = options.enums === String ? $root.NotificationCenter.NotificationReadStatus[message.status] === undefined ? message.status : $root.NotificationCenter.NotificationReadStatus[message.status] : message.status; + if (message.link != null && message.hasOwnProperty("link")) + object.link = message.link; + if (message.fileName != null && message.hasOwnProperty("fileName")) + object.fileName = message.fileName; return object; }; /** - * Converts this ReadStatusUpdate to JSON. + * Converts this VaultInvoiceDownloadLinkResponse to JSON. * @function toJSON - * @memberof NotificationCenter.ReadStatusUpdate + * @memberof BI.VaultInvoiceDownloadLinkResponse * @instance * @returns {Object.} JSON object */ - ReadStatusUpdate.prototype.toJSON = function toJSON() { + VaultInvoiceDownloadLinkResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadStatusUpdate + * Gets the default type url for VaultInvoiceDownloadLinkResponse * @function getTypeUrl - * @memberof NotificationCenter.ReadStatusUpdate + * @memberof BI.VaultInvoiceDownloadLinkResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadStatusUpdate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VaultInvoiceDownloadLinkResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/NotificationCenter.ReadStatusUpdate"; + return typeUrlPrefix + "/BI.VaultInvoiceDownloadLinkResponse"; }; - return ReadStatusUpdate; + return VaultInvoiceDownloadLinkResponse; })(); - NotificationCenter.ApprovalStatusUpdate = (function() { + BI.ReportingDailySnapshotRequest = (function() { /** - * Properties of an ApprovalStatusUpdate. - * @memberof NotificationCenter - * @interface IApprovalStatusUpdate - * @property {Uint8Array|null} [notificationUid] ApprovalStatusUpdate notificationUid - * @property {NotificationCenter.NotificationApprovalStatus|null} [status] ApprovalStatusUpdate status + * Properties of a ReportingDailySnapshotRequest. + * @memberof BI + * @interface IReportingDailySnapshotRequest + * @property {number|null} [month] ReportingDailySnapshotRequest month + * @property {number|null} [year] ReportingDailySnapshotRequest year */ /** - * Constructs a new ApprovalStatusUpdate. - * @memberof NotificationCenter - * @classdesc Represents an ApprovalStatusUpdate. - * @implements IApprovalStatusUpdate + * Constructs a new ReportingDailySnapshotRequest. + * @memberof BI + * @classdesc Represents a ReportingDailySnapshotRequest. + * @implements IReportingDailySnapshotRequest * @constructor - * @param {NotificationCenter.IApprovalStatusUpdate=} [properties] Properties to set + * @param {BI.IReportingDailySnapshotRequest=} [properties] Properties to set */ - function ApprovalStatusUpdate(properties) { + function ReportingDailySnapshotRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -217964,89 +248608,89 @@ export const NotificationCenter = $root.NotificationCenter = (() => { } /** - * ApprovalStatusUpdate notificationUid. - * @member {Uint8Array} notificationUid - * @memberof NotificationCenter.ApprovalStatusUpdate + * ReportingDailySnapshotRequest month. + * @member {number} month + * @memberof BI.ReportingDailySnapshotRequest * @instance */ - ApprovalStatusUpdate.prototype.notificationUid = $util.newBuffer([]); + ReportingDailySnapshotRequest.prototype.month = 0; /** - * ApprovalStatusUpdate status. - * @member {NotificationCenter.NotificationApprovalStatus} status - * @memberof NotificationCenter.ApprovalStatusUpdate + * ReportingDailySnapshotRequest year. + * @member {number} year + * @memberof BI.ReportingDailySnapshotRequest * @instance */ - ApprovalStatusUpdate.prototype.status = 0; + ReportingDailySnapshotRequest.prototype.year = 0; /** - * Creates a new ApprovalStatusUpdate instance using the specified properties. + * Creates a new ReportingDailySnapshotRequest instance using the specified properties. * @function create - * @memberof NotificationCenter.ApprovalStatusUpdate + * @memberof BI.ReportingDailySnapshotRequest * @static - * @param {NotificationCenter.IApprovalStatusUpdate=} [properties] Properties to set - * @returns {NotificationCenter.ApprovalStatusUpdate} ApprovalStatusUpdate instance + * @param {BI.IReportingDailySnapshotRequest=} [properties] Properties to set + * @returns {BI.ReportingDailySnapshotRequest} ReportingDailySnapshotRequest instance */ - ApprovalStatusUpdate.create = function create(properties) { - return new ApprovalStatusUpdate(properties); + ReportingDailySnapshotRequest.create = function create(properties) { + return new ReportingDailySnapshotRequest(properties); }; /** - * Encodes the specified ApprovalStatusUpdate message. Does not implicitly {@link NotificationCenter.ApprovalStatusUpdate.verify|verify} messages. + * Encodes the specified ReportingDailySnapshotRequest message. Does not implicitly {@link BI.ReportingDailySnapshotRequest.verify|verify} messages. * @function encode - * @memberof NotificationCenter.ApprovalStatusUpdate + * @memberof BI.ReportingDailySnapshotRequest * @static - * @param {NotificationCenter.IApprovalStatusUpdate} message ApprovalStatusUpdate message or plain object to encode + * @param {BI.IReportingDailySnapshotRequest} message ReportingDailySnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApprovalStatusUpdate.encode = function encode(message, writer) { + ReportingDailySnapshotRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.notificationUid != null && Object.hasOwnProperty.call(message, "notificationUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.notificationUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); + if (message.month != null && Object.hasOwnProperty.call(message, "month")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.month); + if (message.year != null && Object.hasOwnProperty.call(message, "year")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.year); return writer; }; /** - * Encodes the specified ApprovalStatusUpdate message, length delimited. Does not implicitly {@link NotificationCenter.ApprovalStatusUpdate.verify|verify} messages. + * Encodes the specified ReportingDailySnapshotRequest message, length delimited. Does not implicitly {@link BI.ReportingDailySnapshotRequest.verify|verify} messages. * @function encodeDelimited - * @memberof NotificationCenter.ApprovalStatusUpdate + * @memberof BI.ReportingDailySnapshotRequest * @static - * @param {NotificationCenter.IApprovalStatusUpdate} message ApprovalStatusUpdate message or plain object to encode + * @param {BI.IReportingDailySnapshotRequest} message ReportingDailySnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApprovalStatusUpdate.encodeDelimited = function encodeDelimited(message, writer) { + ReportingDailySnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApprovalStatusUpdate message from the specified reader or buffer. + * Decodes a ReportingDailySnapshotRequest message from the specified reader or buffer. * @function decode - * @memberof NotificationCenter.ApprovalStatusUpdate + * @memberof BI.ReportingDailySnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {NotificationCenter.ApprovalStatusUpdate} ApprovalStatusUpdate + * @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 */ - ApprovalStatusUpdate.decode = function decode(reader, length) { + ReportingDailySnapshotRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.ApprovalStatusUpdate(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ReportingDailySnapshotRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.notificationUid = reader.bytes(); + message.month = reader.int32(); break; } case 2: { - message.status = reader.int32(); + message.year = reader.int32(); break; } default: @@ -218058,180 +248702,134 @@ export const NotificationCenter = $root.NotificationCenter = (() => { }; /** - * Decodes an ApprovalStatusUpdate message from the specified reader or buffer, length delimited. + * Decodes a ReportingDailySnapshotRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof NotificationCenter.ApprovalStatusUpdate + * @memberof BI.ReportingDailySnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.ApprovalStatusUpdate} ApprovalStatusUpdate + * @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 */ - ApprovalStatusUpdate.decodeDelimited = function decodeDelimited(reader) { + ReportingDailySnapshotRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApprovalStatusUpdate message. + * Verifies a ReportingDailySnapshotRequest message. * @function verify - * @memberof NotificationCenter.ApprovalStatusUpdate + * @memberof BI.ReportingDailySnapshotRequest * @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) { + ReportingDailySnapshotRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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: - case 5: - break; - } + 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 an ApprovalStatusUpdate message from a plain object. Also converts values to their respective internal types. + * Creates a ReportingDailySnapshotRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof NotificationCenter.ApprovalStatusUpdate + * @memberof BI.ReportingDailySnapshotRequest * @static * @param {Object.} object Plain object - * @returns {NotificationCenter.ApprovalStatusUpdate} ApprovalStatusUpdate + * @returns {BI.ReportingDailySnapshotRequest} ReportingDailySnapshotRequest */ - ApprovalStatusUpdate.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.ApprovalStatusUpdate) + ReportingDailySnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.ReportingDailySnapshotRequest) return object; - let message = new $root.NotificationCenter.ApprovalStatusUpdate(); - if (object.notificationUid != null) - if (typeof object.notificationUid === "string") - $util.base64.decode(object.notificationUid, message.notificationUid = $util.newBuffer($util.base64.length(object.notificationUid)), 0); - else if (object.notificationUid.length >= 0) - message.notificationUid = object.notificationUid; - switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; - } - break; - case "NAS_UNSPECIFIED": - case 0: - message.status = 0; - break; - case "NAS_APPROVED": - case 1: - message.status = 1; - break; - case "NAS_DENIED": - case 2: - message.status = 2; - break; - case "NAS_LOST_APPROVAL_RIGHTS": - case 3: - message.status = 3; - break; - case "NAS_LOST_ACCESS": - case 4: - message.status = 4; - break; - case "NAS_ESCALATED": - case 5: - message.status = 5; - break; - } + let message = new $root.BI.ReportingDailySnapshotRequest(); + if (object.month != null) + message.month = object.month | 0; + if (object.year != null) + message.year = object.year | 0; return message; }; /** - * Creates a plain object from an ApprovalStatusUpdate message. Also converts values to other types if specified. + * Creates a plain object from a ReportingDailySnapshotRequest message. Also converts values to other types if specified. * @function toObject - * @memberof NotificationCenter.ApprovalStatusUpdate + * @memberof BI.ReportingDailySnapshotRequest * @static - * @param {NotificationCenter.ApprovalStatusUpdate} message ApprovalStatusUpdate + * @param {BI.ReportingDailySnapshotRequest} message ReportingDailySnapshotRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApprovalStatusUpdate.toObject = function toObject(message, options) { + ReportingDailySnapshotRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.notificationUid = ""; - else { - object.notificationUid = []; - if (options.bytes !== Array) - object.notificationUid = $util.newBuffer(object.notificationUid); - } - object.status = options.enums === String ? "NAS_UNSPECIFIED" : 0; + object.month = 0; + object.year = 0; } - if (message.notificationUid != null && message.hasOwnProperty("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")) - object.status = options.enums === String ? $root.NotificationCenter.NotificationApprovalStatus[message.status] === undefined ? message.status : $root.NotificationCenter.NotificationApprovalStatus[message.status] : message.status; + if (message.month != null && message.hasOwnProperty("month")) + object.month = message.month; + if (message.year != null && message.hasOwnProperty("year")) + object.year = message.year; return object; }; /** - * Converts this ApprovalStatusUpdate to JSON. + * Converts this ReportingDailySnapshotRequest to JSON. * @function toJSON - * @memberof NotificationCenter.ApprovalStatusUpdate + * @memberof BI.ReportingDailySnapshotRequest * @instance * @returns {Object.} JSON object */ - ApprovalStatusUpdate.prototype.toJSON = function toJSON() { + ReportingDailySnapshotRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ApprovalStatusUpdate + * Gets the default type url for ReportingDailySnapshotRequest * @function getTypeUrl - * @memberof NotificationCenter.ApprovalStatusUpdate + * @memberof BI.ReportingDailySnapshotRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ApprovalStatusUpdate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReportingDailySnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/NotificationCenter.ApprovalStatusUpdate"; + return typeUrlPrefix + "/BI.ReportingDailySnapshotRequest"; }; - return ApprovalStatusUpdate; + return ReportingDailySnapshotRequest; })(); - NotificationCenter.ProcessMarkReadEventsRequest = (function() { + BI.ReportingDailySnapshotResponse = (function() { /** - * Properties of a ProcessMarkReadEventsRequest. - * @memberof NotificationCenter - * @interface IProcessMarkReadEventsRequest - * @property {Array.|null} [readStatusUpdate] ProcessMarkReadEventsRequest readStatusUpdate + * Properties of a ReportingDailySnapshotResponse. + * @memberof BI + * @interface IReportingDailySnapshotResponse + * @property {Array.|null} [records] ReportingDailySnapshotResponse records + * @property {Array.|null} [mcEnterprises] ReportingDailySnapshotResponse mcEnterprises */ /** - * Constructs a new ProcessMarkReadEventsRequest. - * @memberof NotificationCenter - * @classdesc Represents a ProcessMarkReadEventsRequest. - * @implements IProcessMarkReadEventsRequest + * Constructs a new ReportingDailySnapshotResponse. + * @memberof BI + * @classdesc Represents a ReportingDailySnapshotResponse. + * @implements IReportingDailySnapshotResponse * @constructor - * @param {NotificationCenter.IProcessMarkReadEventsRequest=} [properties] Properties to set + * @param {BI.IReportingDailySnapshotResponse=} [properties] Properties to set */ - function ProcessMarkReadEventsRequest(properties) { - this.readStatusUpdate = []; + function ReportingDailySnapshotResponse(properties) { + this.records = []; + this.mcEnterprises = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -218239,78 +248837,95 @@ export const NotificationCenter = $root.NotificationCenter = (() => { } /** - * ProcessMarkReadEventsRequest readStatusUpdate. - * @member {Array.} readStatusUpdate - * @memberof NotificationCenter.ProcessMarkReadEventsRequest + * ReportingDailySnapshotResponse records. + * @member {Array.} records + * @memberof BI.ReportingDailySnapshotResponse * @instance */ - ProcessMarkReadEventsRequest.prototype.readStatusUpdate = $util.emptyArray; + ReportingDailySnapshotResponse.prototype.records = $util.emptyArray; /** - * Creates a new ProcessMarkReadEventsRequest instance using the specified properties. + * ReportingDailySnapshotResponse mcEnterprises. + * @member {Array.} mcEnterprises + * @memberof BI.ReportingDailySnapshotResponse + * @instance + */ + ReportingDailySnapshotResponse.prototype.mcEnterprises = $util.emptyArray; + + /** + * Creates a new ReportingDailySnapshotResponse instance using the specified properties. * @function create - * @memberof NotificationCenter.ProcessMarkReadEventsRequest + * @memberof BI.ReportingDailySnapshotResponse * @static - * @param {NotificationCenter.IProcessMarkReadEventsRequest=} [properties] Properties to set - * @returns {NotificationCenter.ProcessMarkReadEventsRequest} ProcessMarkReadEventsRequest instance + * @param {BI.IReportingDailySnapshotResponse=} [properties] Properties to set + * @returns {BI.ReportingDailySnapshotResponse} ReportingDailySnapshotResponse instance */ - ProcessMarkReadEventsRequest.create = function create(properties) { - return new ProcessMarkReadEventsRequest(properties); + ReportingDailySnapshotResponse.create = function create(properties) { + return new ReportingDailySnapshotResponse(properties); }; /** - * Encodes the specified ProcessMarkReadEventsRequest message. Does not implicitly {@link NotificationCenter.ProcessMarkReadEventsRequest.verify|verify} messages. + * Encodes the specified ReportingDailySnapshotResponse message. Does not implicitly {@link BI.ReportingDailySnapshotResponse.verify|verify} messages. * @function encode - * @memberof NotificationCenter.ProcessMarkReadEventsRequest + * @memberof BI.ReportingDailySnapshotResponse * @static - * @param {NotificationCenter.IProcessMarkReadEventsRequest} message ProcessMarkReadEventsRequest message or plain object to encode + * @param {BI.IReportingDailySnapshotResponse} message ReportingDailySnapshotResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProcessMarkReadEventsRequest.encode = function encode(message, writer) { + ReportingDailySnapshotResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.readStatusUpdate != null && message.readStatusUpdate.length) - for (let i = 0; i < message.readStatusUpdate.length; ++i) - $root.NotificationCenter.ReadStatusUpdate.encode(message.readStatusUpdate[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.records != null && message.records.length) + for (let i = 0; i < message.records.length; ++i) + $root.BI.SnapshotRecord.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.mcEnterprises != null && message.mcEnterprises.length) + for (let i = 0; i < message.mcEnterprises.length; ++i) + $root.BI.SnapshotMcEnterprise.encode(message.mcEnterprises[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ProcessMarkReadEventsRequest message, length delimited. Does not implicitly {@link NotificationCenter.ProcessMarkReadEventsRequest.verify|verify} messages. + * Encodes the specified ReportingDailySnapshotResponse message, length delimited. Does not implicitly {@link BI.ReportingDailySnapshotResponse.verify|verify} messages. * @function encodeDelimited - * @memberof NotificationCenter.ProcessMarkReadEventsRequest + * @memberof BI.ReportingDailySnapshotResponse * @static - * @param {NotificationCenter.IProcessMarkReadEventsRequest} message ProcessMarkReadEventsRequest message or plain object to encode + * @param {BI.IReportingDailySnapshotResponse} message ReportingDailySnapshotResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProcessMarkReadEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReportingDailySnapshotResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ProcessMarkReadEventsRequest message from the specified reader or buffer. + * Decodes a ReportingDailySnapshotResponse message from the specified reader or buffer. * @function decode - * @memberof NotificationCenter.ProcessMarkReadEventsRequest + * @memberof BI.ReportingDailySnapshotResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {NotificationCenter.ProcessMarkReadEventsRequest} ProcessMarkReadEventsRequest + * @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 */ - ProcessMarkReadEventsRequest.decode = function decode(reader, length) { + ReportingDailySnapshotResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.ProcessMarkReadEventsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ReportingDailySnapshotResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.readStatusUpdate && message.readStatusUpdate.length)) - message.readStatusUpdate = []; - message.readStatusUpdate.push($root.NotificationCenter.ReadStatusUpdate.decode(reader, reader.uint32())); + if (!(message.records && message.records.length)) + message.records = []; + message.records.push($root.BI.SnapshotRecord.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.mcEnterprises && message.mcEnterprises.length)) + message.mcEnterprises = []; + message.mcEnterprises.push($root.BI.SnapshotMcEnterprise.decode(reader, reader.uint32())); break; } default: @@ -218322,146 +248937,171 @@ export const NotificationCenter = $root.NotificationCenter = (() => { }; /** - * Decodes a ProcessMarkReadEventsRequest message from the specified reader or buffer, length delimited. + * Decodes a ReportingDailySnapshotResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof NotificationCenter.ProcessMarkReadEventsRequest + * @memberof BI.ReportingDailySnapshotResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.ProcessMarkReadEventsRequest} ProcessMarkReadEventsRequest + * @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 */ - ProcessMarkReadEventsRequest.decodeDelimited = function decodeDelimited(reader) { + ReportingDailySnapshotResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ProcessMarkReadEventsRequest message. + * Verifies a ReportingDailySnapshotResponse message. * @function verify - * @memberof NotificationCenter.ProcessMarkReadEventsRequest + * @memberof BI.ReportingDailySnapshotResponse * @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) { + ReportingDailySnapshotResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); + 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]); if (error) - return "readStatusUpdate." + 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]); + if (error) + return "mcEnterprises." + error; } } return null; }; /** - * Creates a ProcessMarkReadEventsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReportingDailySnapshotResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof NotificationCenter.ProcessMarkReadEventsRequest + * @memberof BI.ReportingDailySnapshotResponse * @static * @param {Object.} object Plain object - * @returns {NotificationCenter.ProcessMarkReadEventsRequest} ProcessMarkReadEventsRequest + * @returns {BI.ReportingDailySnapshotResponse} ReportingDailySnapshotResponse */ - ProcessMarkReadEventsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.ProcessMarkReadEventsRequest) + ReportingDailySnapshotResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.ReportingDailySnapshotResponse) return object; - let message = new $root.NotificationCenter.ProcessMarkReadEventsRequest(); - if (object.readStatusUpdate) { - if (!Array.isArray(object.readStatusUpdate)) - throw TypeError(".NotificationCenter.ProcessMarkReadEventsRequest.readStatusUpdate: array expected"); - message.readStatusUpdate = []; - for (let i = 0; i < object.readStatusUpdate.length; ++i) { - if (typeof object.readStatusUpdate[i] !== "object") - throw TypeError(".NotificationCenter.ProcessMarkReadEventsRequest.readStatusUpdate: object expected"); - message.readStatusUpdate[i] = $root.NotificationCenter.ReadStatusUpdate.fromObject(object.readStatusUpdate[i]); + let message = new $root.BI.ReportingDailySnapshotResponse(); + if (object.records) { + if (!Array.isArray(object.records)) + throw TypeError(".BI.ReportingDailySnapshotResponse.records: array expected"); + message.records = []; + for (let i = 0; i < object.records.length; ++i) { + if (typeof object.records[i] !== "object") + throw TypeError(".BI.ReportingDailySnapshotResponse.records: object expected"); + message.records[i] = $root.BI.SnapshotRecord.fromObject(object.records[i]); + } + } + if (object.mcEnterprises) { + if (!Array.isArray(object.mcEnterprises)) + throw TypeError(".BI.ReportingDailySnapshotResponse.mcEnterprises: array expected"); + message.mcEnterprises = []; + for (let i = 0; i < object.mcEnterprises.length; ++i) { + if (typeof object.mcEnterprises[i] !== "object") + throw TypeError(".BI.ReportingDailySnapshotResponse.mcEnterprises: object expected"); + message.mcEnterprises[i] = $root.BI.SnapshotMcEnterprise.fromObject(object.mcEnterprises[i]); } } return message; }; /** - * Creates a plain object from a ProcessMarkReadEventsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReportingDailySnapshotResponse message. Also converts values to other types if specified. * @function toObject - * @memberof NotificationCenter.ProcessMarkReadEventsRequest + * @memberof BI.ReportingDailySnapshotResponse * @static - * @param {NotificationCenter.ProcessMarkReadEventsRequest} message ProcessMarkReadEventsRequest + * @param {BI.ReportingDailySnapshotResponse} message ReportingDailySnapshotResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ProcessMarkReadEventsRequest.toObject = function toObject(message, options) { + ReportingDailySnapshotResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.readStatusUpdate = []; - if (message.readStatusUpdate && message.readStatusUpdate.length) { - object.readStatusUpdate = []; - for (let j = 0; j < message.readStatusUpdate.length; ++j) - object.readStatusUpdate[j] = $root.NotificationCenter.ReadStatusUpdate.toObject(message.readStatusUpdate[j], options); + if (options.arrays || options.defaults) { + object.records = []; + object.mcEnterprises = []; + } + if (message.records && message.records.length) { + object.records = []; + for (let j = 0; j < message.records.length; ++j) + object.records[j] = $root.BI.SnapshotRecord.toObject(message.records[j], options); + } + if (message.mcEnterprises && message.mcEnterprises.length) { + object.mcEnterprises = []; + for (let j = 0; j < message.mcEnterprises.length; ++j) + object.mcEnterprises[j] = $root.BI.SnapshotMcEnterprise.toObject(message.mcEnterprises[j], options); } return object; }; /** - * Converts this ProcessMarkReadEventsRequest to JSON. + * Converts this ReportingDailySnapshotResponse to JSON. * @function toJSON - * @memberof NotificationCenter.ProcessMarkReadEventsRequest + * @memberof BI.ReportingDailySnapshotResponse * @instance * @returns {Object.} JSON object */ - ProcessMarkReadEventsRequest.prototype.toJSON = function toJSON() { + ReportingDailySnapshotResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ProcessMarkReadEventsRequest + * Gets the default type url for ReportingDailySnapshotResponse * @function getTypeUrl - * @memberof NotificationCenter.ProcessMarkReadEventsRequest + * @memberof BI.ReportingDailySnapshotResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ProcessMarkReadEventsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReportingDailySnapshotResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/NotificationCenter.ProcessMarkReadEventsRequest"; + return typeUrlPrefix + "/BI.ReportingDailySnapshotResponse"; }; - return ProcessMarkReadEventsRequest; + return ReportingDailySnapshotResponse; })(); - NotificationCenter.NotificationSendRequest = (function() { + BI.SnapshotRecord = (function() { /** - * Properties of a NotificationSendRequest. - * @memberof NotificationCenter - * @interface INotificationSendRequest - * @property {Array.|null} [recipients] NotificationSendRequest recipients - * @property {NotificationCenter.INotification|null} [notification] NotificationSendRequest notification - * @property {Array.|null} [clientTypeIDs] NotificationSendRequest clientTypeIDs - * @property {Array.|null} [deviceIDs] NotificationSendRequest deviceIDs - * @property {Uint8Array|null} [predefinedUid] NotificationSendRequest predefinedUid + * Properties of a SnapshotRecord. + * @memberof BI + * @interface ISnapshotRecord + * @property {number|Long|null} [date] SnapshotRecord date + * @property {number|null} [mcEnterpriseId] SnapshotRecord mcEnterpriseId + * @property {number|null} [maxLicenseCount] SnapshotRecord maxLicenseCount + * @property {number|null} [maxFilePlanTypeId] SnapshotRecord maxFilePlanTypeId + * @property {number|null} [maxBasePlanId] SnapshotRecord maxBasePlanId + * @property {Array.|null} [addons] SnapshotRecord addons */ /** - * Constructs a new NotificationSendRequest. - * @memberof NotificationCenter - * @classdesc Represents a NotificationSendRequest. - * @implements INotificationSendRequest + * Constructs a new SnapshotRecord. + * @memberof BI + * @classdesc Represents a SnapshotRecord. + * @implements ISnapshotRecord * @constructor - * @param {NotificationCenter.INotificationSendRequest=} [properties] Properties to set + * @param {BI.ISnapshotRecord=} [properties] Properties to set */ - function NotificationSendRequest(properties) { - this.recipients = []; - this.clientTypeIDs = []; - this.deviceIDs = []; + function SnapshotRecord(properties) { + this.addons = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -218469,170 +249109,148 @@ export const NotificationCenter = $root.NotificationCenter = (() => { } /** - * NotificationSendRequest recipients. - * @member {Array.} recipients - * @memberof NotificationCenter.NotificationSendRequest + * SnapshotRecord date. + * @member {number|Long} date + * @memberof BI.SnapshotRecord * @instance */ - NotificationSendRequest.prototype.recipients = $util.emptyArray; + SnapshotRecord.prototype.date = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * NotificationSendRequest notification. - * @member {NotificationCenter.INotification|null|undefined} notification - * @memberof NotificationCenter.NotificationSendRequest + * SnapshotRecord mcEnterpriseId. + * @member {number} mcEnterpriseId + * @memberof BI.SnapshotRecord * @instance */ - NotificationSendRequest.prototype.notification = null; + SnapshotRecord.prototype.mcEnterpriseId = 0; /** - * NotificationSendRequest clientTypeIDs. - * @member {Array.} clientTypeIDs - * @memberof NotificationCenter.NotificationSendRequest + * SnapshotRecord maxLicenseCount. + * @member {number} maxLicenseCount + * @memberof BI.SnapshotRecord * @instance */ - NotificationSendRequest.prototype.clientTypeIDs = $util.emptyArray; + SnapshotRecord.prototype.maxLicenseCount = 0; /** - * NotificationSendRequest deviceIDs. - * @member {Array.} deviceIDs - * @memberof NotificationCenter.NotificationSendRequest + * SnapshotRecord maxFilePlanTypeId. + * @member {number} maxFilePlanTypeId + * @memberof BI.SnapshotRecord * @instance */ - NotificationSendRequest.prototype.deviceIDs = $util.emptyArray; + SnapshotRecord.prototype.maxFilePlanTypeId = 0; /** - * NotificationSendRequest predefinedUid. - * @member {Uint8Array|null|undefined} predefinedUid - * @memberof NotificationCenter.NotificationSendRequest + * SnapshotRecord maxBasePlanId. + * @member {number} maxBasePlanId + * @memberof BI.SnapshotRecord * @instance */ - NotificationSendRequest.prototype.predefinedUid = null; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; + SnapshotRecord.prototype.maxBasePlanId = 0; /** - * NotificationSendRequest _predefinedUid. - * @member {"predefinedUid"|undefined} _predefinedUid - * @memberof NotificationCenter.NotificationSendRequest + * SnapshotRecord addons. + * @member {Array.} addons + * @memberof BI.SnapshotRecord * @instance */ - Object.defineProperty(NotificationSendRequest.prototype, "_predefinedUid", { - get: $util.oneOfGetter($oneOfFields = ["predefinedUid"]), - set: $util.oneOfSetter($oneOfFields) - }); + SnapshotRecord.prototype.addons = $util.emptyArray; /** - * Creates a new NotificationSendRequest instance using the specified properties. + * Creates a new SnapshotRecord instance using the specified properties. * @function create - * @memberof NotificationCenter.NotificationSendRequest + * @memberof BI.SnapshotRecord * @static - * @param {NotificationCenter.INotificationSendRequest=} [properties] Properties to set - * @returns {NotificationCenter.NotificationSendRequest} NotificationSendRequest instance + * @param {BI.ISnapshotRecord=} [properties] Properties to set + * @returns {BI.SnapshotRecord} SnapshotRecord instance */ - NotificationSendRequest.create = function create(properties) { - return new NotificationSendRequest(properties); + SnapshotRecord.create = function create(properties) { + return new SnapshotRecord(properties); }; /** - * Encodes the specified NotificationSendRequest message. Does not implicitly {@link NotificationCenter.NotificationSendRequest.verify|verify} messages. + * Encodes the specified SnapshotRecord message. Does not implicitly {@link BI.SnapshotRecord.verify|verify} messages. * @function encode - * @memberof NotificationCenter.NotificationSendRequest + * @memberof BI.SnapshotRecord * @static - * @param {NotificationCenter.INotificationSendRequest} message NotificationSendRequest message or plain object to encode + * @param {BI.ISnapshotRecord} message SnapshotRecord message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationSendRequest.encode = function encode(message, writer) { + SnapshotRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recipients != null && message.recipients.length) - for (let i = 0; i < message.recipients.length; ++i) - $root.GraphSync.GraphSyncRef.encode(message.recipients[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.notification != null && Object.hasOwnProperty.call(message, "notification")) - $root.NotificationCenter.Notification.encode(message.notification, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.clientTypeIDs != null && message.clientTypeIDs.length) { - writer.uint32(/* id 3, wireType 2 =*/26).fork(); - for (let i = 0; i < message.clientTypeIDs.length; ++i) - writer.int32(message.clientTypeIDs[i]); - writer.ldelim(); - } - if (message.deviceIDs != null && message.deviceIDs.length) { - writer.uint32(/* id 4, wireType 2 =*/34).fork(); - for (let i = 0; i < message.deviceIDs.length; ++i) - writer.int64(message.deviceIDs[i]); - writer.ldelim(); - } - if (message.predefinedUid != null && Object.hasOwnProperty.call(message, "predefinedUid")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.predefinedUid); + if (message.date != null && Object.hasOwnProperty.call(message, "date")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.date); + if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.mcEnterpriseId); + if (message.maxLicenseCount != null && Object.hasOwnProperty.call(message, "maxLicenseCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maxLicenseCount); + if (message.maxFilePlanTypeId != null && Object.hasOwnProperty.call(message, "maxFilePlanTypeId")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxFilePlanTypeId); + if (message.maxBasePlanId != null && Object.hasOwnProperty.call(message, "maxBasePlanId")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.maxBasePlanId); + if (message.addons != null && message.addons.length) + for (let i = 0; i < message.addons.length; ++i) + $root.BI.SnapshotRecord.Addon.encode(message.addons[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified NotificationSendRequest message, length delimited. Does not implicitly {@link NotificationCenter.NotificationSendRequest.verify|verify} messages. + * Encodes the specified SnapshotRecord message, length delimited. Does not implicitly {@link BI.SnapshotRecord.verify|verify} messages. * @function encodeDelimited - * @memberof NotificationCenter.NotificationSendRequest + * @memberof BI.SnapshotRecord * @static - * @param {NotificationCenter.INotificationSendRequest} message NotificationSendRequest message or plain object to encode + * @param {BI.ISnapshotRecord} message SnapshotRecord message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationSendRequest.encodeDelimited = function encodeDelimited(message, writer) { + SnapshotRecord.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NotificationSendRequest message from the specified reader or buffer. + * Decodes a SnapshotRecord message from the specified reader or buffer. * @function decode - * @memberof NotificationCenter.NotificationSendRequest + * @memberof BI.SnapshotRecord * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {NotificationCenter.NotificationSendRequest} NotificationSendRequest + * @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 */ - NotificationSendRequest.decode = function decode(reader, length) { + SnapshotRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationSendRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SnapshotRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.recipients && message.recipients.length)) - message.recipients = []; - message.recipients.push($root.GraphSync.GraphSyncRef.decode(reader, reader.uint32())); + message.date = reader.int64(); break; } case 2: { - message.notification = $root.NotificationCenter.Notification.decode(reader, reader.uint32()); - break; - } - case 3: { - if (!(message.clientTypeIDs && message.clientTypeIDs.length)) - message.clientTypeIDs = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.clientTypeIDs.push(reader.int32()); - } else - message.clientTypeIDs.push(reader.int32()); + message.mcEnterpriseId = reader.int32(); break; } case 4: { - if (!(message.deviceIDs && message.deviceIDs.length)) - message.deviceIDs = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.deviceIDs.push(reader.int64()); - } else - message.deviceIDs.push(reader.int64()); + message.maxLicenseCount = reader.int32(); break; } case 5: { - message.predefinedUid = reader.bytes(); + message.maxFilePlanTypeId = reader.int32(); + break; + } + case 6: { + message.maxBasePlanId = reader.int32(); + break; + } + case 7: { + if (!(message.addons && message.addons.length)) + message.addons = []; + message.addons.push($root.BI.SnapshotRecord.Addon.decode(reader, reader.uint32())); break; } default: @@ -218644,221 +249262,437 @@ export const NotificationCenter = $root.NotificationCenter = (() => { }; /** - * Decodes a NotificationSendRequest message from the specified reader or buffer, length delimited. + * Decodes a SnapshotRecord message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof NotificationCenter.NotificationSendRequest + * @memberof BI.SnapshotRecord * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.NotificationSendRequest} NotificationSendRequest + * @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 */ - NotificationSendRequest.decodeDelimited = function decodeDelimited(reader) { + SnapshotRecord.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NotificationSendRequest message. + * Verifies a SnapshotRecord message. * @function verify - * @memberof NotificationCenter.NotificationSendRequest + * @memberof BI.SnapshotRecord * @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) { + SnapshotRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); + 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]); if (error) - return "recipients." + error; + return "addons." + error; } } - if (message.notification != null && message.hasOwnProperty("notification")) { - let error = $root.NotificationCenter.Notification.verify(message.notification); - 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. + * Creates a SnapshotRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof NotificationCenter.NotificationSendRequest + * @memberof BI.SnapshotRecord * @static * @param {Object.} object Plain object - * @returns {NotificationCenter.NotificationSendRequest} NotificationSendRequest + * @returns {BI.SnapshotRecord} SnapshotRecord */ - NotificationSendRequest.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.NotificationSendRequest) + SnapshotRecord.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SnapshotRecord) return object; - let message = new $root.NotificationCenter.NotificationSendRequest(); - if (object.recipients) { - if (!Array.isArray(object.recipients)) - throw TypeError(".NotificationCenter.NotificationSendRequest.recipients: array expected"); - message.recipients = []; - for (let i = 0; i < object.recipients.length; ++i) { - if (typeof object.recipients[i] !== "object") - throw TypeError(".NotificationCenter.NotificationSendRequest.recipients: object expected"); - message.recipients[i] = $root.GraphSync.GraphSyncRef.fromObject(object.recipients[i]); + let message = new $root.BI.SnapshotRecord(); + if (object.date != null) + if ($util.Long) + (message.date = $util.Long.fromValue(object.date)).unsigned = false; + else if (typeof object.date === "string") + message.date = parseInt(object.date, 10); + else if (typeof object.date === "number") + message.date = object.date; + else if (typeof object.date === "object") + message.date = new $util.LongBits(object.date.low >>> 0, object.date.high >>> 0).toNumber(); + if (object.mcEnterpriseId != null) + message.mcEnterpriseId = object.mcEnterpriseId | 0; + if (object.maxLicenseCount != null) + message.maxLicenseCount = object.maxLicenseCount | 0; + if (object.maxFilePlanTypeId != null) + message.maxFilePlanTypeId = object.maxFilePlanTypeId | 0; + if (object.maxBasePlanId != null) + message.maxBasePlanId = object.maxBasePlanId | 0; + if (object.addons) { + if (!Array.isArray(object.addons)) + throw TypeError(".BI.SnapshotRecord.addons: array expected"); + message.addons = []; + for (let i = 0; i < object.addons.length; ++i) { + if (typeof object.addons[i] !== "object") + throw TypeError(".BI.SnapshotRecord.addons: object expected"); + message.addons[i] = $root.BI.SnapshotRecord.Addon.fromObject(object.addons[i]); } } - if (object.notification != null) { - if (typeof object.notification !== "object") - throw TypeError(".NotificationCenter.NotificationSendRequest.notification: object expected"); - message.notification = $root.NotificationCenter.Notification.fromObject(object.notification); - } - if (object.clientTypeIDs) { - if (!Array.isArray(object.clientTypeIDs)) - throw TypeError(".NotificationCenter.NotificationSendRequest.clientTypeIDs: array expected"); - message.clientTypeIDs = []; - for (let i = 0; i < object.clientTypeIDs.length; ++i) - message.clientTypeIDs[i] = object.clientTypeIDs[i] | 0; - } - if (object.deviceIDs) { - if (!Array.isArray(object.deviceIDs)) - throw TypeError(".NotificationCenter.NotificationSendRequest.deviceIDs: array expected"); - message.deviceIDs = []; - for (let i = 0; i < object.deviceIDs.length; ++i) - if ($util.Long) - (message.deviceIDs[i] = $util.Long.fromValue(object.deviceIDs[i])).unsigned = false; - else if (typeof object.deviceIDs[i] === "string") - message.deviceIDs[i] = parseInt(object.deviceIDs[i], 10); - else if (typeof object.deviceIDs[i] === "number") - message.deviceIDs[i] = object.deviceIDs[i]; - else if (typeof object.deviceIDs[i] === "object") - message.deviceIDs[i] = new $util.LongBits(object.deviceIDs[i].low >>> 0, object.deviceIDs[i].high >>> 0).toNumber(); - } - if (object.predefinedUid != null) - if (typeof object.predefinedUid === "string") - $util.base64.decode(object.predefinedUid, message.predefinedUid = $util.newBuffer($util.base64.length(object.predefinedUid)), 0); - else if (object.predefinedUid.length >= 0) - message.predefinedUid = object.predefinedUid; return message; }; /** - * Creates a plain object from a NotificationSendRequest message. Also converts values to other types if specified. + * Creates a plain object from a SnapshotRecord message. Also converts values to other types if specified. * @function toObject - * @memberof NotificationCenter.NotificationSendRequest + * @memberof BI.SnapshotRecord * @static - * @param {NotificationCenter.NotificationSendRequest} message NotificationSendRequest + * @param {BI.SnapshotRecord} message SnapshotRecord * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NotificationSendRequest.toObject = function toObject(message, options) { + SnapshotRecord.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.recipients = []; - object.clientTypeIDs = []; - object.deviceIDs = []; - } - if (options.defaults) - object.notification = null; - if (message.recipients && message.recipients.length) { - object.recipients = []; - for (let j = 0; j < message.recipients.length; ++j) - object.recipients[j] = $root.GraphSync.GraphSyncRef.toObject(message.recipients[j], options); - } - if (message.notification != null && message.hasOwnProperty("notification")) - object.notification = $root.NotificationCenter.Notification.toObject(message.notification, options); - if (message.clientTypeIDs && message.clientTypeIDs.length) { - object.clientTypeIDs = []; - for (let j = 0; j < message.clientTypeIDs.length; ++j) - object.clientTypeIDs[j] = message.clientTypeIDs[j]; - } - if (message.deviceIDs && message.deviceIDs.length) { - object.deviceIDs = []; - for (let j = 0; j < message.deviceIDs.length; ++j) - if (typeof message.deviceIDs[j] === "number") - object.deviceIDs[j] = options.longs === String ? String(message.deviceIDs[j]) : message.deviceIDs[j]; - else - object.deviceIDs[j] = options.longs === String ? $util.Long.prototype.toString.call(message.deviceIDs[j]) : options.longs === Number ? new $util.LongBits(message.deviceIDs[j].low >>> 0, message.deviceIDs[j].high >>> 0).toNumber() : message.deviceIDs[j]; + if (options.arrays || options.defaults) + object.addons = []; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.date = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.date = options.longs === String ? "0" : 0; + object.mcEnterpriseId = 0; + object.maxLicenseCount = 0; + object.maxFilePlanTypeId = 0; + object.maxBasePlanId = 0; } - if (message.predefinedUid != null && message.hasOwnProperty("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"; + if (message.date != null && message.hasOwnProperty("date")) + 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")) + object.mcEnterpriseId = message.mcEnterpriseId; + if (message.maxLicenseCount != null && message.hasOwnProperty("maxLicenseCount")) + object.maxLicenseCount = message.maxLicenseCount; + if (message.maxFilePlanTypeId != null && message.hasOwnProperty("maxFilePlanTypeId")) + object.maxFilePlanTypeId = message.maxFilePlanTypeId; + if (message.maxBasePlanId != null && message.hasOwnProperty("maxBasePlanId")) + object.maxBasePlanId = message.maxBasePlanId; + if (message.addons && message.addons.length) { + object.addons = []; + for (let j = 0; j < message.addons.length; ++j) + object.addons[j] = $root.BI.SnapshotRecord.Addon.toObject(message.addons[j], options); } return object; }; /** - * Converts this NotificationSendRequest to JSON. + * Converts this SnapshotRecord to JSON. * @function toJSON - * @memberof NotificationCenter.NotificationSendRequest + * @memberof BI.SnapshotRecord * @instance * @returns {Object.} JSON object */ - NotificationSendRequest.prototype.toJSON = function toJSON() { + SnapshotRecord.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NotificationSendRequest + * Gets the default type url for SnapshotRecord * @function getTypeUrl - * @memberof NotificationCenter.NotificationSendRequest + * @memberof BI.SnapshotRecord * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NotificationSendRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SnapshotRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/NotificationCenter.NotificationSendRequest"; + return typeUrlPrefix + "/BI.SnapshotRecord"; }; - return NotificationSendRequest; + SnapshotRecord.Addon = (function() { + + /** + * Properties of an Addon. + * @memberof BI.SnapshotRecord + * @interface IAddon + * @property {number|null} [maxAddonId] Addon maxAddonId + * @property {number|Long|null} [units] Addon units + */ + + /** + * Constructs a new Addon. + * @memberof BI.SnapshotRecord + * @classdesc Represents an Addon. + * @implements IAddon + * @constructor + * @param {BI.SnapshotRecord.IAddon=} [properties] Properties to set + */ + function Addon(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Addon maxAddonId. + * @member {number} maxAddonId + * @memberof BI.SnapshotRecord.Addon + * @instance + */ + Addon.prototype.maxAddonId = 0; + + /** + * Addon units. + * @member {number|Long} units + * @memberof BI.SnapshotRecord.Addon + * @instance + */ + Addon.prototype.units = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new Addon instance using the specified properties. + * @function create + * @memberof BI.SnapshotRecord.Addon + * @static + * @param {BI.SnapshotRecord.IAddon=} [properties] Properties to set + * @returns {BI.SnapshotRecord.Addon} Addon instance + */ + Addon.create = function create(properties) { + return new Addon(properties); + }; + + /** + * Encodes the specified Addon message. Does not implicitly {@link BI.SnapshotRecord.Addon.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.maxAddonId != null && Object.hasOwnProperty.call(message, "maxAddonId")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.maxAddonId); + if (message.units != null && Object.hasOwnProperty.call(message, "units")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.units); + 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 + * @memberof BI.SnapshotRecord.Addon + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SnapshotRecord.Addon(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.maxAddonId = reader.int32(); + break; + } + case 2: { + message.units = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof BI.SnapshotRecord.Addon + * @static + * @param {Object.} object Plain object + * @returns {BI.SnapshotRecord.Addon} Addon + */ + Addon.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SnapshotRecord.Addon) + return object; + let message = new $root.BI.SnapshotRecord.Addon(); + if (object.maxAddonId != null) + message.maxAddonId = object.maxAddonId | 0; + if (object.units != null) + if ($util.Long) + (message.units = $util.Long.fromValue(object.units)).unsigned = false; + else if (typeof object.units === "string") + message.units = parseInt(object.units, 10); + else if (typeof object.units === "number") + message.units = object.units; + else if (typeof object.units === "object") + message.units = new $util.LongBits(object.units.low >>> 0, object.units.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from an Addon message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.SnapshotRecord.Addon + * @static + * @param {BI.SnapshotRecord.Addon} message Addon + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Addon.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.maxAddonId = 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.units = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.units = options.longs === String ? "0" : 0; + } + if (message.maxAddonId != null && message.hasOwnProperty("maxAddonId")) + object.maxAddonId = message.maxAddonId; + if (message.units != null && message.hasOwnProperty("units")) + if (typeof message.units === "number") + object.units = options.longs === String ? String(message.units) : message.units; + else + object.units = options.longs === String ? $util.Long.prototype.toString.call(message.units) : options.longs === Number ? new $util.LongBits(message.units.low >>> 0, message.units.high >>> 0).toNumber() : message.units; + return object; + }; + + /** + * Converts this Addon to JSON. + * @function toJSON + * @memberof BI.SnapshotRecord.Addon + * @instance + * @returns {Object.} JSON object + */ + Addon.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Addon + * @function getTypeUrl + * @memberof BI.SnapshotRecord.Addon + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Addon.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.SnapshotRecord.Addon"; + }; + + return Addon; + })(); + + return SnapshotRecord; })(); - NotificationCenter.NotificationsSendRequest = (function() { + BI.SnapshotMcEnterprise = (function() { /** - * Properties of a NotificationsSendRequest. - * @memberof NotificationCenter - * @interface INotificationsSendRequest - * @property {Array.|null} [notifications] NotificationsSendRequest notifications + * Properties of a SnapshotMcEnterprise. + * @memberof BI + * @interface ISnapshotMcEnterprise + * @property {number|null} [id] SnapshotMcEnterprise id + * @property {string|null} [name] SnapshotMcEnterprise name */ /** - * Constructs a new NotificationsSendRequest. - * @memberof NotificationCenter - * @classdesc Represents a NotificationsSendRequest. - * @implements INotificationsSendRequest + * Constructs a new SnapshotMcEnterprise. + * @memberof BI + * @classdesc Represents a SnapshotMcEnterprise. + * @implements ISnapshotMcEnterprise * @constructor - * @param {NotificationCenter.INotificationsSendRequest=} [properties] Properties to set + * @param {BI.ISnapshotMcEnterprise=} [properties] Properties to set */ - function NotificationsSendRequest(properties) { - this.notifications = []; + function SnapshotMcEnterprise(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -218866,78 +249700,89 @@ export const NotificationCenter = $root.NotificationCenter = (() => { } /** - * NotificationsSendRequest notifications. - * @member {Array.} notifications - * @memberof NotificationCenter.NotificationsSendRequest + * SnapshotMcEnterprise id. + * @member {number} id + * @memberof BI.SnapshotMcEnterprise * @instance */ - NotificationsSendRequest.prototype.notifications = $util.emptyArray; + SnapshotMcEnterprise.prototype.id = 0; /** - * Creates a new NotificationsSendRequest instance using the specified properties. + * SnapshotMcEnterprise name. + * @member {string} name + * @memberof BI.SnapshotMcEnterprise + * @instance + */ + SnapshotMcEnterprise.prototype.name = ""; + + /** + * Creates a new SnapshotMcEnterprise instance using the specified properties. * @function create - * @memberof NotificationCenter.NotificationsSendRequest + * @memberof BI.SnapshotMcEnterprise * @static - * @param {NotificationCenter.INotificationsSendRequest=} [properties] Properties to set - * @returns {NotificationCenter.NotificationsSendRequest} NotificationsSendRequest instance + * @param {BI.ISnapshotMcEnterprise=} [properties] Properties to set + * @returns {BI.SnapshotMcEnterprise} SnapshotMcEnterprise instance */ - NotificationsSendRequest.create = function create(properties) { - return new NotificationsSendRequest(properties); + SnapshotMcEnterprise.create = function create(properties) { + return new SnapshotMcEnterprise(properties); }; /** - * Encodes the specified NotificationsSendRequest message. Does not implicitly {@link NotificationCenter.NotificationsSendRequest.verify|verify} messages. + * Encodes the specified SnapshotMcEnterprise message. Does not implicitly {@link BI.SnapshotMcEnterprise.verify|verify} messages. * @function encode - * @memberof NotificationCenter.NotificationsSendRequest + * @memberof BI.SnapshotMcEnterprise * @static - * @param {NotificationCenter.INotificationsSendRequest} message NotificationsSendRequest message or plain object to encode + * @param {BI.ISnapshotMcEnterprise} message SnapshotMcEnterprise message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationsSendRequest.encode = function encode(message, writer) { + SnapshotMcEnterprise.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.notifications != null && message.notifications.length) - for (let i = 0; i < message.notifications.length; ++i) - $root.NotificationCenter.NotificationSendRequest.encode(message.notifications[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); return writer; }; /** - * Encodes the specified NotificationsSendRequest message, length delimited. Does not implicitly {@link NotificationCenter.NotificationsSendRequest.verify|verify} messages. + * Encodes the specified SnapshotMcEnterprise message, length delimited. Does not implicitly {@link BI.SnapshotMcEnterprise.verify|verify} messages. * @function encodeDelimited - * @memberof NotificationCenter.NotificationsSendRequest + * @memberof BI.SnapshotMcEnterprise * @static - * @param {NotificationCenter.INotificationsSendRequest} message NotificationsSendRequest message or plain object to encode + * @param {BI.ISnapshotMcEnterprise} message SnapshotMcEnterprise message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationsSendRequest.encodeDelimited = function encodeDelimited(message, writer) { + SnapshotMcEnterprise.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NotificationsSendRequest message from the specified reader or buffer. + * Decodes a SnapshotMcEnterprise message from the specified reader or buffer. * @function decode - * @memberof NotificationCenter.NotificationsSendRequest + * @memberof BI.SnapshotMcEnterprise * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {NotificationCenter.NotificationsSendRequest} NotificationsSendRequest + * @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 */ - NotificationsSendRequest.decode = function decode(reader, length) { + SnapshotMcEnterprise.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationsSendRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SnapshotMcEnterprise(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.notifications && message.notifications.length)) - message.notifications = []; - message.notifications.push($root.NotificationCenter.NotificationSendRequest.decode(reader, reader.uint32())); + message.id = reader.int32(); + break; + } + case 2: { + message.name = reader.string(); break; } default: @@ -218949,139 +249794,130 @@ export const NotificationCenter = $root.NotificationCenter = (() => { }; /** - * Decodes a NotificationsSendRequest message from the specified reader or buffer, length delimited. + * Decodes a SnapshotMcEnterprise message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof NotificationCenter.NotificationsSendRequest + * @memberof BI.SnapshotMcEnterprise * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.NotificationsSendRequest} NotificationsSendRequest + * @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 */ - NotificationsSendRequest.decodeDelimited = function decodeDelimited(reader) { + SnapshotMcEnterprise.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NotificationsSendRequest message. + * Verifies a SnapshotMcEnterprise message. * @function verify - * @memberof NotificationCenter.NotificationsSendRequest + * @memberof BI.SnapshotMcEnterprise * @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) { + SnapshotMcEnterprise.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "notifications." + error; - } - } + 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 NotificationsSendRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SnapshotMcEnterprise message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof NotificationCenter.NotificationsSendRequest + * @memberof BI.SnapshotMcEnterprise * @static * @param {Object.} object Plain object - * @returns {NotificationCenter.NotificationsSendRequest} NotificationsSendRequest + * @returns {BI.SnapshotMcEnterprise} SnapshotMcEnterprise */ - NotificationsSendRequest.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.NotificationsSendRequest) + SnapshotMcEnterprise.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SnapshotMcEnterprise) return object; - let message = new $root.NotificationCenter.NotificationsSendRequest(); - if (object.notifications) { - if (!Array.isArray(object.notifications)) - throw TypeError(".NotificationCenter.NotificationsSendRequest.notifications: array expected"); - message.notifications = []; - for (let i = 0; i < object.notifications.length; ++i) { - if (typeof object.notifications[i] !== "object") - throw TypeError(".NotificationCenter.NotificationsSendRequest.notifications: object expected"); - message.notifications[i] = $root.NotificationCenter.NotificationSendRequest.fromObject(object.notifications[i]); - } - } + let message = new $root.BI.SnapshotMcEnterprise(); + if (object.id != null) + message.id = object.id | 0; + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a NotificationsSendRequest message. Also converts values to other types if specified. + * Creates a plain object from a SnapshotMcEnterprise message. Also converts values to other types if specified. * @function toObject - * @memberof NotificationCenter.NotificationsSendRequest + * @memberof BI.SnapshotMcEnterprise * @static - * @param {NotificationCenter.NotificationsSendRequest} message NotificationsSendRequest + * @param {BI.SnapshotMcEnterprise} message SnapshotMcEnterprise * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NotificationsSendRequest.toObject = function toObject(message, options) { + SnapshotMcEnterprise.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.notifications = []; - if (message.notifications && message.notifications.length) { - object.notifications = []; - for (let j = 0; j < message.notifications.length; ++j) - object.notifications[j] = $root.NotificationCenter.NotificationSendRequest.toObject(message.notifications[j], options); + if (options.defaults) { + object.id = 0; + object.name = ""; } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this NotificationsSendRequest to JSON. + * Converts this SnapshotMcEnterprise to JSON. * @function toJSON - * @memberof NotificationCenter.NotificationsSendRequest + * @memberof BI.SnapshotMcEnterprise * @instance * @returns {Object.} JSON object */ - NotificationsSendRequest.prototype.toJSON = function toJSON() { + SnapshotMcEnterprise.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NotificationsSendRequest + * Gets the default type url for SnapshotMcEnterprise * @function getTypeUrl - * @memberof NotificationCenter.NotificationsSendRequest + * @memberof BI.SnapshotMcEnterprise * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NotificationsSendRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SnapshotMcEnterprise.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/NotificationCenter.NotificationsSendRequest"; + return typeUrlPrefix + "/BI.SnapshotMcEnterprise"; }; - return NotificationsSendRequest; + return SnapshotMcEnterprise; })(); - NotificationCenter.NotificationSyncRequest = (function() { + BI.MappingAddonsRequest = (function() { /** - * Properties of a NotificationSyncRequest. - * @memberof NotificationCenter - * @interface INotificationSyncRequest - * @property {number|Long|null} [syncPoint] NotificationSyncRequest syncPoint + * Properties of a MappingAddonsRequest. + * @memberof BI + * @interface IMappingAddonsRequest */ /** - * Constructs a new NotificationSyncRequest. - * @memberof NotificationCenter - * @classdesc Represents a NotificationSyncRequest. - * @implements INotificationSyncRequest + * Constructs a new MappingAddonsRequest. + * @memberof BI + * @classdesc Represents a MappingAddonsRequest. + * @implements IMappingAddonsRequest * @constructor - * @param {NotificationCenter.INotificationSyncRequest=} [properties] Properties to set + * @param {BI.IMappingAddonsRequest=} [properties] Properties to set */ - function NotificationSyncRequest(properties) { + function MappingAddonsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -219089,77 +249925,63 @@ export const NotificationCenter = $root.NotificationCenter = (() => { } /** - * NotificationSyncRequest syncPoint. - * @member {number|Long} syncPoint - * @memberof NotificationCenter.NotificationSyncRequest - * @instance - */ - NotificationSyncRequest.prototype.syncPoint = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new NotificationSyncRequest instance using the specified properties. + * Creates a new MappingAddonsRequest instance using the specified properties. * @function create - * @memberof NotificationCenter.NotificationSyncRequest + * @memberof BI.MappingAddonsRequest * @static - * @param {NotificationCenter.INotificationSyncRequest=} [properties] Properties to set - * @returns {NotificationCenter.NotificationSyncRequest} NotificationSyncRequest instance + * @param {BI.IMappingAddonsRequest=} [properties] Properties to set + * @returns {BI.MappingAddonsRequest} MappingAddonsRequest instance */ - NotificationSyncRequest.create = function create(properties) { - return new NotificationSyncRequest(properties); + MappingAddonsRequest.create = function create(properties) { + return new MappingAddonsRequest(properties); }; /** - * Encodes the specified NotificationSyncRequest message. Does not implicitly {@link NotificationCenter.NotificationSyncRequest.verify|verify} messages. + * Encodes the specified MappingAddonsRequest message. Does not implicitly {@link BI.MappingAddonsRequest.verify|verify} messages. * @function encode - * @memberof NotificationCenter.NotificationSyncRequest + * @memberof BI.MappingAddonsRequest * @static - * @param {NotificationCenter.INotificationSyncRequest} message NotificationSyncRequest message or plain object to encode + * @param {BI.IMappingAddonsRequest} message MappingAddonsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationSyncRequest.encode = function encode(message, writer) { + MappingAddonsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.syncPoint != null && Object.hasOwnProperty.call(message, "syncPoint")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.syncPoint); return writer; }; /** - * Encodes the specified NotificationSyncRequest message, length delimited. Does not implicitly {@link NotificationCenter.NotificationSyncRequest.verify|verify} messages. + * Encodes the specified MappingAddonsRequest message, length delimited. Does not implicitly {@link BI.MappingAddonsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof NotificationCenter.NotificationSyncRequest + * @memberof BI.MappingAddonsRequest * @static - * @param {NotificationCenter.INotificationSyncRequest} message NotificationSyncRequest message or plain object to encode + * @param {BI.IMappingAddonsRequest} message MappingAddonsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationSyncRequest.encodeDelimited = function encodeDelimited(message, writer) { + MappingAddonsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NotificationSyncRequest message from the specified reader or buffer. + * Decodes a MappingAddonsRequest message from the specified reader or buffer. * @function decode - * @memberof NotificationCenter.NotificationSyncRequest + * @memberof BI.MappingAddonsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {NotificationCenter.NotificationSyncRequest} NotificationSyncRequest + * @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 */ - NotificationSyncRequest.decode = function decode(reader, length) { + MappingAddonsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationSyncRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.MappingAddonsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.syncPoint = reader.int64(); - break; - } default: reader.skipType(tag & 7); break; @@ -219169,137 +249991,112 @@ export const NotificationCenter = $root.NotificationCenter = (() => { }; /** - * Decodes a NotificationSyncRequest message from the specified reader or buffer, length delimited. + * Decodes a MappingAddonsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof NotificationCenter.NotificationSyncRequest + * @memberof BI.MappingAddonsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.NotificationSyncRequest} NotificationSyncRequest + * @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 */ - NotificationSyncRequest.decodeDelimited = function decodeDelimited(reader) { + MappingAddonsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NotificationSyncRequest message. + * Verifies a MappingAddonsRequest message. * @function verify - * @memberof NotificationCenter.NotificationSyncRequest + * @memberof BI.MappingAddonsRequest * @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) { + MappingAddonsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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"; return null; }; /** - * Creates a NotificationSyncRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MappingAddonsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof NotificationCenter.NotificationSyncRequest + * @memberof BI.MappingAddonsRequest * @static * @param {Object.} object Plain object - * @returns {NotificationCenter.NotificationSyncRequest} NotificationSyncRequest + * @returns {BI.MappingAddonsRequest} MappingAddonsRequest */ - NotificationSyncRequest.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.NotificationSyncRequest) + MappingAddonsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.MappingAddonsRequest) return object; - let message = new $root.NotificationCenter.NotificationSyncRequest(); - if (object.syncPoint != null) - if ($util.Long) - (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; - else if (typeof object.syncPoint === "string") - message.syncPoint = parseInt(object.syncPoint, 10); - else if (typeof object.syncPoint === "number") - message.syncPoint = object.syncPoint; - else if (typeof object.syncPoint === "object") - message.syncPoint = new $util.LongBits(object.syncPoint.low >>> 0, object.syncPoint.high >>> 0).toNumber(); - return message; + return new $root.BI.MappingAddonsRequest(); }; /** - * Creates a plain object from a NotificationSyncRequest message. Also converts values to other types if specified. + * Creates a plain object from a MappingAddonsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof NotificationCenter.NotificationSyncRequest + * @memberof BI.MappingAddonsRequest * @static - * @param {NotificationCenter.NotificationSyncRequest} message NotificationSyncRequest + * @param {BI.MappingAddonsRequest} message MappingAddonsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NotificationSyncRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.syncPoint = options.longs === String ? "0" : 0; - if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) - 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; - return object; + MappingAddonsRequest.toObject = function toObject() { + return {}; }; /** - * Converts this NotificationSyncRequest to JSON. + * Converts this MappingAddonsRequest to JSON. * @function toJSON - * @memberof NotificationCenter.NotificationSyncRequest + * @memberof BI.MappingAddonsRequest * @instance * @returns {Object.} JSON object */ - NotificationSyncRequest.prototype.toJSON = function toJSON() { + MappingAddonsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NotificationSyncRequest + * Gets the default type url for MappingAddonsRequest * @function getTypeUrl - * @memberof NotificationCenter.NotificationSyncRequest + * @memberof BI.MappingAddonsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NotificationSyncRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MappingAddonsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/NotificationCenter.NotificationSyncRequest"; + return typeUrlPrefix + "/BI.MappingAddonsRequest"; }; - return NotificationSyncRequest; + return MappingAddonsRequest; })(); - NotificationCenter.NotificationsApprovalStatusUpdateRequest = (function() { + BI.MappingAddonsResponse = (function() { /** - * Properties of a NotificationsApprovalStatusUpdateRequest. - * @memberof NotificationCenter - * @interface INotificationsApprovalStatusUpdateRequest - * @property {Array.|null} [updates] NotificationsApprovalStatusUpdateRequest updates + * Properties of a MappingAddonsResponse. + * @memberof BI + * @interface IMappingAddonsResponse + * @property {Array.|null} [addons] MappingAddonsResponse addons + * @property {Array.|null} [filePlans] MappingAddonsResponse filePlans */ /** - * Constructs a new NotificationsApprovalStatusUpdateRequest. - * @memberof NotificationCenter - * @classdesc Represents a NotificationsApprovalStatusUpdateRequest. - * @implements INotificationsApprovalStatusUpdateRequest + * Constructs a new MappingAddonsResponse. + * @memberof BI + * @classdesc Represents a MappingAddonsResponse. + * @implements IMappingAddonsResponse * @constructor - * @param {NotificationCenter.INotificationsApprovalStatusUpdateRequest=} [properties] Properties to set + * @param {BI.IMappingAddonsResponse=} [properties] Properties to set */ - function NotificationsApprovalStatusUpdateRequest(properties) { - this.updates = []; + function MappingAddonsResponse(properties) { + this.addons = []; + this.filePlans = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -219307,78 +250104,95 @@ export const NotificationCenter = $root.NotificationCenter = (() => { } /** - * NotificationsApprovalStatusUpdateRequest updates. - * @member {Array.} updates - * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest + * MappingAddonsResponse addons. + * @member {Array.} addons + * @memberof BI.MappingAddonsResponse * @instance */ - NotificationsApprovalStatusUpdateRequest.prototype.updates = $util.emptyArray; + MappingAddonsResponse.prototype.addons = $util.emptyArray; /** - * Creates a new NotificationsApprovalStatusUpdateRequest instance using the specified properties. + * MappingAddonsResponse filePlans. + * @member {Array.} filePlans + * @memberof BI.MappingAddonsResponse + * @instance + */ + MappingAddonsResponse.prototype.filePlans = $util.emptyArray; + + /** + * Creates a new MappingAddonsResponse instance using the specified properties. * @function create - * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest + * @memberof BI.MappingAddonsResponse * @static - * @param {NotificationCenter.INotificationsApprovalStatusUpdateRequest=} [properties] Properties to set - * @returns {NotificationCenter.NotificationsApprovalStatusUpdateRequest} NotificationsApprovalStatusUpdateRequest instance + * @param {BI.IMappingAddonsResponse=} [properties] Properties to set + * @returns {BI.MappingAddonsResponse} MappingAddonsResponse instance */ - NotificationsApprovalStatusUpdateRequest.create = function create(properties) { - return new NotificationsApprovalStatusUpdateRequest(properties); + MappingAddonsResponse.create = function create(properties) { + return new MappingAddonsResponse(properties); }; /** - * Encodes the specified NotificationsApprovalStatusUpdateRequest message. Does not implicitly {@link NotificationCenter.NotificationsApprovalStatusUpdateRequest.verify|verify} messages. + * Encodes the specified MappingAddonsResponse message. Does not implicitly {@link BI.MappingAddonsResponse.verify|verify} messages. * @function encode - * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest + * @memberof BI.MappingAddonsResponse * @static - * @param {NotificationCenter.INotificationsApprovalStatusUpdateRequest} message NotificationsApprovalStatusUpdateRequest message or plain object to encode + * @param {BI.IMappingAddonsResponse} message MappingAddonsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationsApprovalStatusUpdateRequest.encode = function encode(message, writer) { + MappingAddonsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.updates != null && message.updates.length) - for (let i = 0; i < message.updates.length; ++i) - $root.NotificationCenter.ApprovalStatusUpdate.encode(message.updates[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.addons != null && message.addons.length) + for (let i = 0; i < message.addons.length; ++i) + $root.BI.MappingItem.encode(message.addons[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.filePlans != null && message.filePlans.length) + for (let i = 0; i < message.filePlans.length; ++i) + $root.BI.MappingItem.encode(message.filePlans[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified NotificationsApprovalStatusUpdateRequest message, length delimited. Does not implicitly {@link NotificationCenter.NotificationsApprovalStatusUpdateRequest.verify|verify} messages. + * Encodes the specified MappingAddonsResponse message, length delimited. Does not implicitly {@link BI.MappingAddonsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest + * @memberof BI.MappingAddonsResponse * @static - * @param {NotificationCenter.INotificationsApprovalStatusUpdateRequest} message NotificationsApprovalStatusUpdateRequest message or plain object to encode + * @param {BI.IMappingAddonsResponse} message MappingAddonsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationsApprovalStatusUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { + MappingAddonsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NotificationsApprovalStatusUpdateRequest message from the specified reader or buffer. + * Decodes a MappingAddonsResponse message from the specified reader or buffer. * @function decode - * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest + * @memberof BI.MappingAddonsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {NotificationCenter.NotificationsApprovalStatusUpdateRequest} NotificationsApprovalStatusUpdateRequest + * @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 */ - NotificationsApprovalStatusUpdateRequest.decode = function decode(reader, length) { + MappingAddonsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationsApprovalStatusUpdateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.MappingAddonsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.updates && message.updates.length)) - message.updates = []; - message.updates.push($root.NotificationCenter.ApprovalStatusUpdate.decode(reader, reader.uint32())); + if (!(message.addons && message.addons.length)) + message.addons = []; + message.addons.push($root.BI.MappingItem.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.filePlans && message.filePlans.length)) + message.filePlans = []; + message.filePlans.push($root.BI.MappingItem.decode(reader, reader.uint32())); break; } default: @@ -219390,201 +250204,166 @@ export const NotificationCenter = $root.NotificationCenter = (() => { }; /** - * Decodes a NotificationsApprovalStatusUpdateRequest message from the specified reader or buffer, length delimited. + * Decodes a MappingAddonsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest + * @memberof BI.MappingAddonsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {NotificationCenter.NotificationsApprovalStatusUpdateRequest} NotificationsApprovalStatusUpdateRequest + * @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 */ - NotificationsApprovalStatusUpdateRequest.decodeDelimited = function decodeDelimited(reader) { + MappingAddonsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NotificationsApprovalStatusUpdateRequest message. + * Verifies a MappingAddonsResponse message. * @function verify - * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest + * @memberof BI.MappingAddonsResponse * @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) { + MappingAddonsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.updates != null && message.hasOwnProperty("updates")) { - if (!Array.isArray(message.updates)) - return "updates: array expected"; - for (let i = 0; i < message.updates.length; ++i) { - let error = $root.NotificationCenter.ApprovalStatusUpdate.verify(message.updates[i]); + 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]); + 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]); if (error) - return "updates." + error; + return "filePlans." + error; } } return null; }; /** - * Creates a NotificationsApprovalStatusUpdateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MappingAddonsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest + * @memberof BI.MappingAddonsResponse * @static * @param {Object.} object Plain object - * @returns {NotificationCenter.NotificationsApprovalStatusUpdateRequest} NotificationsApprovalStatusUpdateRequest + * @returns {BI.MappingAddonsResponse} MappingAddonsResponse */ - NotificationsApprovalStatusUpdateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.NotificationsApprovalStatusUpdateRequest) + MappingAddonsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.MappingAddonsResponse) return object; - let message = new $root.NotificationCenter.NotificationsApprovalStatusUpdateRequest(); - if (object.updates) { - if (!Array.isArray(object.updates)) - throw TypeError(".NotificationCenter.NotificationsApprovalStatusUpdateRequest.updates: array expected"); - message.updates = []; - for (let i = 0; i < object.updates.length; ++i) { - if (typeof object.updates[i] !== "object") - throw TypeError(".NotificationCenter.NotificationsApprovalStatusUpdateRequest.updates: object expected"); - message.updates[i] = $root.NotificationCenter.ApprovalStatusUpdate.fromObject(object.updates[i]); + let message = new $root.BI.MappingAddonsResponse(); + if (object.addons) { + if (!Array.isArray(object.addons)) + throw TypeError(".BI.MappingAddonsResponse.addons: array expected"); + message.addons = []; + for (let i = 0; i < object.addons.length; ++i) { + if (typeof object.addons[i] !== "object") + throw TypeError(".BI.MappingAddonsResponse.addons: object expected"); + message.addons[i] = $root.BI.MappingItem.fromObject(object.addons[i]); + } + } + if (object.filePlans) { + if (!Array.isArray(object.filePlans)) + throw TypeError(".BI.MappingAddonsResponse.filePlans: array expected"); + message.filePlans = []; + for (let i = 0; i < object.filePlans.length; ++i) { + if (typeof object.filePlans[i] !== "object") + throw TypeError(".BI.MappingAddonsResponse.filePlans: object expected"); + message.filePlans[i] = $root.BI.MappingItem.fromObject(object.filePlans[i]); } } return message; }; /** - * Creates a plain object from a NotificationsApprovalStatusUpdateRequest message. Also converts values to other types if specified. + * Creates a plain object from a MappingAddonsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest + * @memberof BI.MappingAddonsResponse * @static - * @param {NotificationCenter.NotificationsApprovalStatusUpdateRequest} message NotificationsApprovalStatusUpdateRequest + * @param {BI.MappingAddonsResponse} message MappingAddonsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NotificationsApprovalStatusUpdateRequest.toObject = function toObject(message, options) { + MappingAddonsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.updates = []; - if (message.updates && message.updates.length) { - object.updates = []; - for (let j = 0; j < message.updates.length; ++j) - object.updates[j] = $root.NotificationCenter.ApprovalStatusUpdate.toObject(message.updates[j], options); + if (options.arrays || options.defaults) { + object.addons = []; + object.filePlans = []; + } + if (message.addons && message.addons.length) { + object.addons = []; + for (let j = 0; j < message.addons.length; ++j) + object.addons[j] = $root.BI.MappingItem.toObject(message.addons[j], options); + } + if (message.filePlans && message.filePlans.length) { + object.filePlans = []; + for (let j = 0; j < message.filePlans.length; ++j) + object.filePlans[j] = $root.BI.MappingItem.toObject(message.filePlans[j], options); } return object; }; /** - * Converts this NotificationsApprovalStatusUpdateRequest to JSON. + * Converts this MappingAddonsResponse to JSON. * @function toJSON - * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest + * @memberof BI.MappingAddonsResponse * @instance * @returns {Object.} JSON object */ - NotificationsApprovalStatusUpdateRequest.prototype.toJSON = function toJSON() { + MappingAddonsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NotificationsApprovalStatusUpdateRequest + * Gets the default type url for MappingAddonsResponse * @function getTypeUrl - * @memberof NotificationCenter.NotificationsApprovalStatusUpdateRequest + * @memberof BI.MappingAddonsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NotificationsApprovalStatusUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MappingAddonsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/NotificationCenter.NotificationsApprovalStatusUpdateRequest"; + return typeUrlPrefix + "/BI.MappingAddonsResponse"; }; - return NotificationsApprovalStatusUpdateRequest; - })(); - - return NotificationCenter; -})(); - -export const GraphSync = $root.GraphSync = (() => { - - /** - * Namespace GraphSync. - * @exports GraphSync - * @namespace - */ - const GraphSync = {}; - - /** - * RefType enum. - * @name GraphSync.RefType - * @enum {number} - * @property {number} RFT_GENERAL=0 RFT_GENERAL value - * @property {number} RFT_USER=1 RFT_USER value - * @property {number} RFT_DEVICE=2 RFT_DEVICE value - * @property {number} RFT_REC=3 RFT_REC value - * @property {number} RFT_FOLDER=4 RFT_FOLDER value - * @property {number} RFT_TEAM=5 RFT_TEAM value - * @property {number} RFT_ENTERPRISE=6 RFT_ENTERPRISE value - * @property {number} RFT_PAM_DIRECTORY=7 RFT_PAM_DIRECTORY value - * @property {number} RFT_PAM_MACHINE=8 RFT_PAM_MACHINE value - * @property {number} RFT_PAM_DATABASE=9 RFT_PAM_DATABASE value - * @property {number} RFT_PAM_USER=10 RFT_PAM_USER value - * @property {number} RFT_PAM_NETWORK=11 RFT_PAM_NETWORK value - * @property {number} RFT_PAM_BROWSER=12 RFT_PAM_BROWSER value - * @property {number} RFT_CONNECTION=13 RFT_CONNECTION value - * @property {number} RFT_WORKFLOW=14 RFT_WORKFLOW value - * @property {number} RFT_NOTIFICATION=15 RFT_NOTIFICATION value - * @property {number} RFT_USER_INFO=16 RFT_USER_INFO value - * @property {number} RFT_TEAM_INFO=17 RFT_TEAM_INFO value - * @property {number} RFT_ROLE=18 RFT_ROLE value - */ - GraphSync.RefType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RFT_GENERAL"] = 0; - values[valuesById[1] = "RFT_USER"] = 1; - values[valuesById[2] = "RFT_DEVICE"] = 2; - values[valuesById[3] = "RFT_REC"] = 3; - values[valuesById[4] = "RFT_FOLDER"] = 4; - values[valuesById[5] = "RFT_TEAM"] = 5; - values[valuesById[6] = "RFT_ENTERPRISE"] = 6; - values[valuesById[7] = "RFT_PAM_DIRECTORY"] = 7; - values[valuesById[8] = "RFT_PAM_MACHINE"] = 8; - values[valuesById[9] = "RFT_PAM_DATABASE"] = 9; - values[valuesById[10] = "RFT_PAM_USER"] = 10; - values[valuesById[11] = "RFT_PAM_NETWORK"] = 11; - values[valuesById[12] = "RFT_PAM_BROWSER"] = 12; - values[valuesById[13] = "RFT_CONNECTION"] = 13; - values[valuesById[14] = "RFT_WORKFLOW"] = 14; - values[valuesById[15] = "RFT_NOTIFICATION"] = 15; - values[valuesById[16] = "RFT_USER_INFO"] = 16; - values[valuesById[17] = "RFT_TEAM_INFO"] = 17; - values[valuesById[18] = "RFT_ROLE"] = 18; - return values; + return MappingAddonsResponse; })(); - GraphSync.GraphSyncRef = (function() { + BI.MappingItem = (function() { /** - * Properties of a GraphSyncRef. - * @memberof GraphSync - * @interface IGraphSyncRef - * @property {GraphSync.RefType|null} [type] GraphSyncRef type - * @property {Uint8Array|null} [value] GraphSyncRef value - * @property {string|null} [name] GraphSyncRef name + * Properties of a MappingItem. + * @memberof BI + * @interface IMappingItem + * @property {number|null} [id] MappingItem id + * @property {string|null} [name] MappingItem name */ /** - * Constructs a new GraphSyncRef. - * @memberof GraphSync - * @classdesc Represents a GraphSyncRef. - * @implements IGraphSyncRef + * Constructs a new MappingItem. + * @memberof BI + * @classdesc Represents a MappingItem. + * @implements IMappingItem * @constructor - * @param {GraphSync.IGraphSyncRef=} [properties] Properties to set + * @param {BI.IMappingItem=} [properties] Properties to set */ - function GraphSyncRef(properties) { + function MappingItem(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -219592,102 +250371,88 @@ export const GraphSync = $root.GraphSync = (() => { } /** - * GraphSyncRef type. - * @member {GraphSync.RefType} type - * @memberof GraphSync.GraphSyncRef - * @instance - */ - GraphSyncRef.prototype.type = 0; - - /** - * GraphSyncRef value. - * @member {Uint8Array} value - * @memberof GraphSync.GraphSyncRef + * MappingItem id. + * @member {number} id + * @memberof BI.MappingItem * @instance */ - GraphSyncRef.prototype.value = $util.newBuffer([]); + MappingItem.prototype.id = 0; /** - * GraphSyncRef name. + * MappingItem name. * @member {string} name - * @memberof GraphSync.GraphSyncRef + * @memberof BI.MappingItem * @instance */ - GraphSyncRef.prototype.name = ""; + MappingItem.prototype.name = ""; /** - * Creates a new GraphSyncRef instance using the specified properties. + * Creates a new MappingItem instance using the specified properties. * @function create - * @memberof GraphSync.GraphSyncRef + * @memberof BI.MappingItem * @static - * @param {GraphSync.IGraphSyncRef=} [properties] Properties to set - * @returns {GraphSync.GraphSyncRef} GraphSyncRef instance + * @param {BI.IMappingItem=} [properties] Properties to set + * @returns {BI.MappingItem} MappingItem instance */ - GraphSyncRef.create = function create(properties) { - return new GraphSyncRef(properties); + MappingItem.create = function create(properties) { + return new MappingItem(properties); }; /** - * Encodes the specified GraphSyncRef message. Does not implicitly {@link GraphSync.GraphSyncRef.verify|verify} messages. + * Encodes the specified MappingItem message. Does not implicitly {@link BI.MappingItem.verify|verify} messages. * @function encode - * @memberof GraphSync.GraphSyncRef + * @memberof BI.MappingItem * @static - * @param {GraphSync.IGraphSyncRef} message GraphSyncRef message or plain object to encode + * @param {BI.IMappingItem} message MappingItem message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncRef.encode = function encode(message, writer) { + MappingItem.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); return writer; }; /** - * Encodes the specified GraphSyncRef message, length delimited. Does not implicitly {@link GraphSync.GraphSyncRef.verify|verify} messages. + * Encodes the specified MappingItem message, length delimited. Does not implicitly {@link BI.MappingItem.verify|verify} messages. * @function encodeDelimited - * @memberof GraphSync.GraphSyncRef + * @memberof BI.MappingItem * @static - * @param {GraphSync.IGraphSyncRef} message GraphSyncRef message or plain object to encode + * @param {BI.IMappingItem} message MappingItem message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncRef.encodeDelimited = function encodeDelimited(message, writer) { + MappingItem.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GraphSyncRef message from the specified reader or buffer. + * Decodes a MappingItem message from the specified reader or buffer. * @function decode - * @memberof GraphSync.GraphSyncRef + * @memberof BI.MappingItem * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {GraphSync.GraphSyncRef} GraphSyncRef + * @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 */ - GraphSyncRef.decode = function decode(reader, length) { + MappingItem.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncRef(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.MappingItem(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.type = reader.int32(); + message.id = reader.int32(); break; } case 2: { - message.value = reader.bytes(); - break; - } - case 3: { message.name = reader.string(); break; } @@ -219700,60 +250465,35 @@ export const GraphSync = $root.GraphSync = (() => { }; /** - * Decodes a GraphSyncRef message from the specified reader or buffer, length delimited. + * Decodes a MappingItem message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof GraphSync.GraphSyncRef + * @memberof BI.MappingItem * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncRef} GraphSyncRef + * @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 */ - GraphSyncRef.decodeDelimited = function decodeDelimited(reader) { + MappingItem.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GraphSyncRef message. + * Verifies a MappingItem message. * @function verify - * @memberof GraphSync.GraphSyncRef + * @memberof BI.MappingItem * @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) { + MappingItem.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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: - 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.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"; @@ -219761,230 +250501,95 @@ export const GraphSync = $root.GraphSync = (() => { }; /** - * Creates a GraphSyncRef message from a plain object. Also converts values to their respective internal types. + * Creates a MappingItem message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof GraphSync.GraphSyncRef + * @memberof BI.MappingItem * @static * @param {Object.} object Plain object - * @returns {GraphSync.GraphSyncRef} GraphSyncRef + * @returns {BI.MappingItem} MappingItem */ - GraphSyncRef.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncRef) + MappingItem.fromObject = function fromObject(object) { + if (object instanceof $root.BI.MappingItem) return object; - let message = new $root.GraphSync.GraphSyncRef(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "RFT_GENERAL": - case 0: - message.type = 0; - break; - case "RFT_USER": - case 1: - message.type = 1; - break; - case "RFT_DEVICE": - case 2: - message.type = 2; - break; - case "RFT_REC": - case 3: - message.type = 3; - break; - case "RFT_FOLDER": - case 4: - message.type = 4; - break; - case "RFT_TEAM": - case 5: - message.type = 5; - break; - case "RFT_ENTERPRISE": - case 6: - message.type = 6; - break; - case "RFT_PAM_DIRECTORY": - case 7: - message.type = 7; - break; - case "RFT_PAM_MACHINE": - case 8: - message.type = 8; - break; - case "RFT_PAM_DATABASE": - case 9: - message.type = 9; - break; - case "RFT_PAM_USER": - case 10: - message.type = 10; - break; - case "RFT_PAM_NETWORK": - case 11: - message.type = 11; - break; - case "RFT_PAM_BROWSER": - case 12: - message.type = 12; - break; - case "RFT_CONNECTION": - case 13: - message.type = 13; - break; - case "RFT_WORKFLOW": - case 14: - message.type = 14; - break; - case "RFT_NOTIFICATION": - case 15: - message.type = 15; - break; - case "RFT_USER_INFO": - case 16: - message.type = 16; - break; - case "RFT_TEAM_INFO": - case 17: - message.type = 17; - break; - case "RFT_ROLE": - case 18: - message.type = 18; - break; - } - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length >= 0) - message.value = object.value; + let message = new $root.BI.MappingItem(); + if (object.id != null) + message.id = object.id | 0; if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GraphSyncRef message. Also converts values to other types if specified. + * Creates a plain object from a MappingItem message. Also converts values to other types if specified. * @function toObject - * @memberof GraphSync.GraphSyncRef + * @memberof BI.MappingItem * @static - * @param {GraphSync.GraphSyncRef} message GraphSyncRef + * @param {BI.MappingItem} message MappingItem * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncRef.toObject = function toObject(message, options) { + MappingItem.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.type = options.enums === String ? "RFT_GENERAL" : 0; - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } + object.id = 0; object.name = ""; } - if (message.type != null && message.hasOwnProperty("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")) - 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.id != null && message.hasOwnProperty("id")) + object.id = message.id; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this GraphSyncRef to JSON. + * Converts this MappingItem to JSON. * @function toJSON - * @memberof GraphSync.GraphSyncRef + * @memberof BI.MappingItem * @instance * @returns {Object.} JSON object */ - GraphSyncRef.prototype.toJSON = function toJSON() { + MappingItem.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GraphSyncRef + * Gets the default type url for MappingItem * @function getTypeUrl - * @memberof GraphSync.GraphSyncRef + * @memberof BI.MappingItem * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GraphSyncRef.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MappingItem.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/GraphSync.GraphSyncRef"; + return typeUrlPrefix + "/BI.MappingItem"; }; - return GraphSyncRef; - })(); - - /** - * GraphSyncDataType enum. - * @name GraphSync.GraphSyncDataType - * @enum {number} - * @property {number} GSE_DATA=0 GSE_DATA value - * @property {number} GSE_KEY=1 GSE_KEY value - * @property {number} GSE_LINK=2 GSE_LINK value - * @property {number} GSE_ACL=3 GSE_ACL value - * @property {number} GSE_DELETION=4 GSE_DELETION value - */ - GraphSync.GraphSyncDataType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "GSE_DATA"] = 0; - values[valuesById[1] = "GSE_KEY"] = 1; - values[valuesById[2] = "GSE_LINK"] = 2; - values[valuesById[3] = "GSE_ACL"] = 3; - values[valuesById[4] = "GSE_DELETION"] = 4; - return values; - })(); - - /** - * GraphSyncActorType enum. - * @name GraphSync.GraphSyncActorType - * @enum {number} - * @property {number} GSA_USER=0 GSA_USER value - * @property {number} GSA_SERVICE=1 GSA_SERVICE value - * @property {number} GSA_PAM_GATEWAY=2 GSA_PAM_GATEWAY value - */ - GraphSync.GraphSyncActorType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "GSA_USER"] = 0; - values[valuesById[1] = "GSA_SERVICE"] = 1; - values[valuesById[2] = "GSA_PAM_GATEWAY"] = 2; - return values; + return MappingItem; })(); - GraphSync.GraphSyncActor = (function() { + BI.GradientValidateKeyRequest = (function() { /** - * Properties of a GraphSyncActor. - * @memberof GraphSync - * @interface IGraphSyncActor - * @property {GraphSync.GraphSyncActorType|null} [type] GraphSyncActor type - * @property {Uint8Array|null} [id] GraphSyncActor id - * @property {string|null} [name] GraphSyncActor name - * @property {Uint8Array|null} [effectiveUserId] GraphSyncActor effectiveUserId + * Properties of a GradientValidateKeyRequest. + * @memberof BI + * @interface IGradientValidateKeyRequest + * @property {string|null} [gradientKey] GradientValidateKeyRequest gradientKey */ /** - * Constructs a new GraphSyncActor. - * @memberof GraphSync - * @classdesc Represents a GraphSyncActor. - * @implements IGraphSyncActor + * Constructs a new GradientValidateKeyRequest. + * @memberof BI + * @classdesc Represents a GradientValidateKeyRequest. + * @implements IGradientValidateKeyRequest * @constructor - * @param {GraphSync.IGraphSyncActor=} [properties] Properties to set + * @param {BI.IGradientValidateKeyRequest=} [properties] Properties to set */ - function GraphSyncActor(properties) { + function GradientValidateKeyRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -219992,117 +250597,75 @@ export const GraphSync = $root.GraphSync = (() => { } /** - * GraphSyncActor type. - * @member {GraphSync.GraphSyncActorType} type - * @memberof GraphSync.GraphSyncActor - * @instance - */ - GraphSyncActor.prototype.type = 0; - - /** - * GraphSyncActor id. - * @member {Uint8Array} id - * @memberof GraphSync.GraphSyncActor - * @instance - */ - GraphSyncActor.prototype.id = $util.newBuffer([]); - - /** - * GraphSyncActor name. - * @member {string} name - * @memberof GraphSync.GraphSyncActor - * @instance - */ - GraphSyncActor.prototype.name = ""; - - /** - * GraphSyncActor effectiveUserId. - * @member {Uint8Array} effectiveUserId - * @memberof GraphSync.GraphSyncActor + * GradientValidateKeyRequest gradientKey. + * @member {string} gradientKey + * @memberof BI.GradientValidateKeyRequest * @instance */ - GraphSyncActor.prototype.effectiveUserId = $util.newBuffer([]); + GradientValidateKeyRequest.prototype.gradientKey = ""; /** - * Creates a new GraphSyncActor instance using the specified properties. + * Creates a new GradientValidateKeyRequest instance using the specified properties. * @function create - * @memberof GraphSync.GraphSyncActor + * @memberof BI.GradientValidateKeyRequest * @static - * @param {GraphSync.IGraphSyncActor=} [properties] Properties to set - * @returns {GraphSync.GraphSyncActor} GraphSyncActor instance + * @param {BI.IGradientValidateKeyRequest=} [properties] Properties to set + * @returns {BI.GradientValidateKeyRequest} GradientValidateKeyRequest instance */ - GraphSyncActor.create = function create(properties) { - return new GraphSyncActor(properties); + GradientValidateKeyRequest.create = function create(properties) { + return new GradientValidateKeyRequest(properties); }; /** - * Encodes the specified GraphSyncActor message. Does not implicitly {@link GraphSync.GraphSyncActor.verify|verify} messages. + * Encodes the specified GradientValidateKeyRequest message. Does not implicitly {@link BI.GradientValidateKeyRequest.verify|verify} messages. * @function encode - * @memberof GraphSync.GraphSyncActor + * @memberof BI.GradientValidateKeyRequest * @static - * @param {GraphSync.IGraphSyncActor} message GraphSyncActor message or plain object to encode + * @param {BI.IGradientValidateKeyRequest} message GradientValidateKeyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncActor.encode = function encode(message, writer) { + GradientValidateKeyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.id); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); - if (message.effectiveUserId != null && Object.hasOwnProperty.call(message, "effectiveUserId")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.effectiveUserId); + if (message.gradientKey != null && Object.hasOwnProperty.call(message, "gradientKey")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.gradientKey); return writer; }; /** - * Encodes the specified GraphSyncActor message, length delimited. Does not implicitly {@link GraphSync.GraphSyncActor.verify|verify} messages. + * Encodes the specified GradientValidateKeyRequest message, length delimited. Does not implicitly {@link BI.GradientValidateKeyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof GraphSync.GraphSyncActor + * @memberof BI.GradientValidateKeyRequest * @static - * @param {GraphSync.IGraphSyncActor} message GraphSyncActor message or plain object to encode + * @param {BI.IGradientValidateKeyRequest} message GradientValidateKeyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncActor.encodeDelimited = function encodeDelimited(message, writer) { + GradientValidateKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GraphSyncActor message from the specified reader or buffer. + * Decodes a GradientValidateKeyRequest message from the specified reader or buffer. * @function decode - * @memberof GraphSync.GraphSyncActor + * @memberof BI.GradientValidateKeyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {GraphSync.GraphSyncActor} GraphSyncActor + * @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 */ - GraphSyncActor.decode = function decode(reader, length) { + GradientValidateKeyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncActor(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientValidateKeyRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.type = reader.int32(); - break; - } - case 2: { - message.id = reader.bytes(); - break; - } - case 3: { - message.name = reader.string(); - break; - } - case 4: { - message.effectiveUserId = reader.bytes(); + message.gradientKey = reader.string(); break; } default: @@ -220114,193 +250677,123 @@ export const GraphSync = $root.GraphSync = (() => { }; /** - * Decodes a GraphSyncActor message from the specified reader or buffer, length delimited. + * Decodes a GradientValidateKeyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof GraphSync.GraphSyncActor + * @memberof BI.GradientValidateKeyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncActor} GraphSyncActor + * @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 */ - GraphSyncActor.decodeDelimited = function decodeDelimited(reader) { + GradientValidateKeyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GraphSyncActor message. + * Verifies a GradientValidateKeyRequest message. * @function verify - * @memberof GraphSync.GraphSyncActor + * @memberof BI.GradientValidateKeyRequest * @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) { + GradientValidateKeyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + if (message.gradientKey != null && message.hasOwnProperty("gradientKey")) + if (!$util.isString(message.gradientKey)) + return "gradientKey: string expected"; return null; }; /** - * Creates a GraphSyncActor message from a plain object. Also converts values to their respective internal types. + * Creates a GradientValidateKeyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof GraphSync.GraphSyncActor + * @memberof BI.GradientValidateKeyRequest * @static * @param {Object.} object Plain object - * @returns {GraphSync.GraphSyncActor} GraphSyncActor + * @returns {BI.GradientValidateKeyRequest} GradientValidateKeyRequest */ - GraphSyncActor.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncActor) + GradientValidateKeyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.GradientValidateKeyRequest) return object; - let message = new $root.GraphSync.GraphSyncActor(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "GSA_USER": - case 0: - message.type = 0; - break; - case "GSA_SERVICE": - case 1: - message.type = 1; - break; - case "GSA_PAM_GATEWAY": - case 2: - message.type = 2; - break; - } - if (object.id != null) - if (typeof object.id === "string") - $util.base64.decode(object.id, message.id = $util.newBuffer($util.base64.length(object.id)), 0); - else if (object.id.length >= 0) - message.id = object.id; - if (object.name != null) - message.name = String(object.name); - if (object.effectiveUserId != null) - if (typeof object.effectiveUserId === "string") - $util.base64.decode(object.effectiveUserId, message.effectiveUserId = $util.newBuffer($util.base64.length(object.effectiveUserId)), 0); - else if (object.effectiveUserId.length >= 0) - message.effectiveUserId = object.effectiveUserId; + let message = new $root.BI.GradientValidateKeyRequest(); + if (object.gradientKey != null) + message.gradientKey = String(object.gradientKey); return message; }; /** - * Creates a plain object from a GraphSyncActor message. Also converts values to other types if specified. + * Creates a plain object from a GradientValidateKeyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof GraphSync.GraphSyncActor + * @memberof BI.GradientValidateKeyRequest * @static - * @param {GraphSync.GraphSyncActor} message GraphSyncActor + * @param {BI.GradientValidateKeyRequest} message GradientValidateKeyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncActor.toObject = function toObject(message, options) { + GradientValidateKeyRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.type = options.enums === String ? "GSA_USER" : 0; - if (options.bytes === String) - object.id = ""; - else { - object.id = []; - if (options.bytes !== Array) - object.id = $util.newBuffer(object.id); - } - object.name = ""; - if (options.bytes === String) - object.effectiveUserId = ""; - else { - object.effectiveUserId = []; - if (options.bytes !== Array) - object.effectiveUserId = $util.newBuffer(object.effectiveUserId); - } - } - if (message.type != null && message.hasOwnProperty("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")) - 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")) - object.name = message.name; - if (message.effectiveUserId != null && message.hasOwnProperty("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; + if (options.defaults) + object.gradientKey = ""; + if (message.gradientKey != null && message.hasOwnProperty("gradientKey")) + object.gradientKey = message.gradientKey; return object; }; /** - * Converts this GraphSyncActor to JSON. + * Converts this GradientValidateKeyRequest to JSON. * @function toJSON - * @memberof GraphSync.GraphSyncActor + * @memberof BI.GradientValidateKeyRequest * @instance * @returns {Object.} JSON object */ - GraphSyncActor.prototype.toJSON = function toJSON() { + GradientValidateKeyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GraphSyncActor + * Gets the default type url for GradientValidateKeyRequest * @function getTypeUrl - * @memberof GraphSync.GraphSyncActor + * @memberof BI.GradientValidateKeyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GraphSyncActor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GradientValidateKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/GraphSync.GraphSyncActor"; + return typeUrlPrefix + "/BI.GradientValidateKeyRequest"; }; - return GraphSyncActor; + return GradientValidateKeyRequest; })(); - GraphSync.GraphSyncData = (function() { + BI.GradientValidateKeyResponse = (function() { /** - * Properties of a GraphSyncData. - * @memberof GraphSync - * @interface IGraphSyncData - * @property {GraphSync.GraphSyncDataType|null} [type] GraphSyncData type - * @property {GraphSync.IGraphSyncRef|null} [ref] GraphSyncData ref - * @property {GraphSync.IGraphSyncRef|null} [parentRef] GraphSyncData parentRef - * @property {Uint8Array|null} [content] GraphSyncData content - * @property {string|null} [path] GraphSyncData path + * Properties of a GradientValidateKeyResponse. + * @memberof BI + * @interface IGradientValidateKeyResponse + * @property {boolean|null} [success] GradientValidateKeyResponse success + * @property {string|null} [message] GradientValidateKeyResponse message */ /** - * Constructs a new GraphSyncData. - * @memberof GraphSync - * @classdesc Represents a GraphSyncData. - * @implements IGraphSyncData + * Constructs a new GradientValidateKeyResponse. + * @memberof BI + * @classdesc Represents a GradientValidateKeyResponse. + * @implements IGradientValidateKeyResponse * @constructor - * @param {GraphSync.IGraphSyncData=} [properties] Properties to set + * @param {BI.IGradientValidateKeyResponse=} [properties] Properties to set */ - function GraphSyncData(properties) { + function GradientValidateKeyResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -220308,131 +250801,89 @@ export const GraphSync = $root.GraphSync = (() => { } /** - * GraphSyncData type. - * @member {GraphSync.GraphSyncDataType} type - * @memberof GraphSync.GraphSyncData - * @instance - */ - GraphSyncData.prototype.type = 0; - - /** - * GraphSyncData ref. - * @member {GraphSync.IGraphSyncRef|null|undefined} ref - * @memberof GraphSync.GraphSyncData - * @instance - */ - GraphSyncData.prototype.ref = null; - - /** - * GraphSyncData parentRef. - * @member {GraphSync.IGraphSyncRef|null|undefined} parentRef - * @memberof GraphSync.GraphSyncData - * @instance - */ - GraphSyncData.prototype.parentRef = null; - - /** - * GraphSyncData content. - * @member {Uint8Array} content - * @memberof GraphSync.GraphSyncData + * GradientValidateKeyResponse success. + * @member {boolean} success + * @memberof BI.GradientValidateKeyResponse * @instance */ - GraphSyncData.prototype.content = $util.newBuffer([]); + GradientValidateKeyResponse.prototype.success = false; /** - * GraphSyncData path. - * @member {string} path - * @memberof GraphSync.GraphSyncData + * GradientValidateKeyResponse message. + * @member {string} message + * @memberof BI.GradientValidateKeyResponse * @instance */ - GraphSyncData.prototype.path = ""; + GradientValidateKeyResponse.prototype.message = ""; /** - * Creates a new GraphSyncData instance using the specified properties. + * Creates a new GradientValidateKeyResponse instance using the specified properties. * @function create - * @memberof GraphSync.GraphSyncData + * @memberof BI.GradientValidateKeyResponse * @static - * @param {GraphSync.IGraphSyncData=} [properties] Properties to set - * @returns {GraphSync.GraphSyncData} GraphSyncData instance + * @param {BI.IGradientValidateKeyResponse=} [properties] Properties to set + * @returns {BI.GradientValidateKeyResponse} GradientValidateKeyResponse instance */ - GraphSyncData.create = function create(properties) { - return new GraphSyncData(properties); + GradientValidateKeyResponse.create = function create(properties) { + return new GradientValidateKeyResponse(properties); }; /** - * Encodes the specified GraphSyncData message. Does not implicitly {@link GraphSync.GraphSyncData.verify|verify} messages. + * Encodes the specified GradientValidateKeyResponse message. Does not implicitly {@link BI.GradientValidateKeyResponse.verify|verify} messages. * @function encode - * @memberof GraphSync.GraphSyncData + * @memberof BI.GradientValidateKeyResponse * @static - * @param {GraphSync.IGraphSyncData} message GraphSyncData message or plain object to encode + * @param {BI.IGradientValidateKeyResponse} message GradientValidateKeyResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncData.encode = function encode(message, writer) { + GradientValidateKeyResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.ref != null && Object.hasOwnProperty.call(message, "ref")) - $root.GraphSync.GraphSyncRef.encode(message.ref, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.parentRef != null && Object.hasOwnProperty.call(message, "parentRef")) - $root.GraphSync.GraphSyncRef.encode(message.parentRef, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.content); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.path); + if (message.success != null && Object.hasOwnProperty.call(message, "success")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); return writer; }; /** - * Encodes the specified GraphSyncData message, length delimited. Does not implicitly {@link GraphSync.GraphSyncData.verify|verify} messages. + * Encodes the specified GradientValidateKeyResponse message, length delimited. Does not implicitly {@link BI.GradientValidateKeyResponse.verify|verify} messages. * @function encodeDelimited - * @memberof GraphSync.GraphSyncData + * @memberof BI.GradientValidateKeyResponse * @static - * @param {GraphSync.IGraphSyncData} message GraphSyncData message or plain object to encode + * @param {BI.IGradientValidateKeyResponse} message GradientValidateKeyResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncData.encodeDelimited = function encodeDelimited(message, writer) { + GradientValidateKeyResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GraphSyncData message from the specified reader or buffer. + * Decodes a GradientValidateKeyResponse message from the specified reader or buffer. * @function decode - * @memberof GraphSync.GraphSyncData + * @memberof BI.GradientValidateKeyResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {GraphSync.GraphSyncData} GraphSyncData + * @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 */ - GraphSyncData.decode = function decode(reader, length) { + GradientValidateKeyResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientValidateKeyResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.type = reader.int32(); + message.success = reader.bool(); break; } case 2: { - message.ref = $root.GraphSync.GraphSyncRef.decode(reader, reader.uint32()); - break; - } - case 3: { - message.parentRef = $root.GraphSync.GraphSyncRef.decode(reader, reader.uint32()); - break; - } - case 4: { - message.content = reader.bytes(); - break; - } - case 5: { - message.path = reader.string(); + message.message = reader.string(); break; } default: @@ -220444,210 +250895,132 @@ export const GraphSync = $root.GraphSync = (() => { }; /** - * Decodes a GraphSyncData message from the specified reader or buffer, length delimited. + * Decodes a GradientValidateKeyResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof GraphSync.GraphSyncData + * @memberof BI.GradientValidateKeyResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncData} GraphSyncData + * @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 */ - GraphSyncData.decodeDelimited = function decodeDelimited(reader) { + GradientValidateKeyResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GraphSyncData message. + * Verifies a GradientValidateKeyResponse message. * @function verify - * @memberof GraphSync.GraphSyncData + * @memberof BI.GradientValidateKeyResponse * @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) { + GradientValidateKeyResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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: - break; - } - if (message.ref != null && message.hasOwnProperty("ref")) { - let error = $root.GraphSync.GraphSyncRef.verify(message.ref); - if (error) - return "ref." + error; - } - if (message.parentRef != null && message.hasOwnProperty("parentRef")) { - let error = $root.GraphSync.GraphSyncRef.verify(message.parentRef); - 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 - * @memberof GraphSync.GraphSyncData - * @static - * @param {Object.} object Plain object - * @returns {GraphSync.GraphSyncData} GraphSyncData - */ - GraphSyncData.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncData) - return object; - let message = new $root.GraphSync.GraphSyncData(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "GSE_DATA": - case 0: - message.type = 0; - break; - case "GSE_KEY": - case 1: - message.type = 1; - break; - case "GSE_LINK": - case 2: - message.type = 2; - break; - case "GSE_ACL": - case 3: - message.type = 3; - break; - case "GSE_DELETION": - case 4: - message.type = 4; - break; - } - if (object.ref != null) { - if (typeof object.ref !== "object") - throw TypeError(".GraphSync.GraphSyncData.ref: object expected"); - message.ref = $root.GraphSync.GraphSyncRef.fromObject(object.ref); - } - if (object.parentRef != null) { - if (typeof object.parentRef !== "object") - throw TypeError(".GraphSync.GraphSyncData.parentRef: object expected"); - message.parentRef = $root.GraphSync.GraphSyncRef.fromObject(object.parentRef); - } - if (object.content != null) - if (typeof object.content === "string") - $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); - else if (object.content.length >= 0) - message.content = object.content; - if (object.path != null) - message.path = String(object.path); + 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 + * @memberof BI.GradientValidateKeyResponse + * @static + * @param {Object.} object Plain object + * @returns {BI.GradientValidateKeyResponse} GradientValidateKeyResponse + */ + GradientValidateKeyResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.GradientValidateKeyResponse) + return object; + let message = new $root.BI.GradientValidateKeyResponse(); + if (object.success != null) + message.success = Boolean(object.success); + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a GraphSyncData message. Also converts values to other types if specified. + * Creates a plain object from a GradientValidateKeyResponse message. Also converts values to other types if specified. * @function toObject - * @memberof GraphSync.GraphSyncData + * @memberof BI.GradientValidateKeyResponse * @static - * @param {GraphSync.GraphSyncData} message GraphSyncData + * @param {BI.GradientValidateKeyResponse} message GradientValidateKeyResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncData.toObject = function toObject(message, options) { + GradientValidateKeyResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.type = options.enums === String ? "GSE_DATA" : 0; - object.ref = null; - object.parentRef = null; - if (options.bytes === String) - object.content = ""; - else { - object.content = []; - if (options.bytes !== Array) - object.content = $util.newBuffer(object.content); - } - object.path = ""; + object.success = false; + object.message = ""; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.GraphSync.GraphSyncDataType[message.type] === undefined ? message.type : $root.GraphSync.GraphSyncDataType[message.type] : message.type; - if (message.ref != null && message.hasOwnProperty("ref")) - object.ref = $root.GraphSync.GraphSyncRef.toObject(message.ref, options); - if (message.parentRef != null && message.hasOwnProperty("parentRef")) - object.parentRef = $root.GraphSync.GraphSyncRef.toObject(message.parentRef, options); - if (message.content != null && message.hasOwnProperty("content")) - object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; + if (message.success != null && message.hasOwnProperty("success")) + object.success = message.success; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; return object; }; /** - * Converts this GraphSyncData to JSON. + * Converts this GradientValidateKeyResponse to JSON. * @function toJSON - * @memberof GraphSync.GraphSyncData + * @memberof BI.GradientValidateKeyResponse * @instance * @returns {Object.} JSON object */ - GraphSyncData.prototype.toJSON = function toJSON() { + GradientValidateKeyResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GraphSyncData + * Gets the default type url for GradientValidateKeyResponse * @function getTypeUrl - * @memberof GraphSync.GraphSyncData + * @memberof BI.GradientValidateKeyResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GraphSyncData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GradientValidateKeyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/GraphSync.GraphSyncData"; + return typeUrlPrefix + "/BI.GradientValidateKeyResponse"; }; - return GraphSyncData; + return GradientValidateKeyResponse; })(); - GraphSync.GraphSyncDataPlus = (function() { + BI.GradientSaveRequest = (function() { /** - * Properties of a GraphSyncDataPlus. - * @memberof GraphSync - * @interface IGraphSyncDataPlus - * @property {GraphSync.IGraphSyncData|null} [data] GraphSyncDataPlus data - * @property {number|Long|null} [timestamp] GraphSyncDataPlus timestamp - * @property {GraphSync.IGraphSyncActor|null} [actor] GraphSyncDataPlus actor + * Properties of a GradientSaveRequest. + * @memberof BI + * @interface IGradientSaveRequest + * @property {string|null} [gradientKey] GradientSaveRequest gradientKey + * @property {number|Long|null} [enterpriseUserId] GradientSaveRequest enterpriseUserId */ /** - * Constructs a new GraphSyncDataPlus. - * @memberof GraphSync - * @classdesc Represents a GraphSyncDataPlus. - * @implements IGraphSyncDataPlus + * Constructs a new GradientSaveRequest. + * @memberof BI + * @classdesc Represents a GradientSaveRequest. + * @implements IGradientSaveRequest * @constructor - * @param {GraphSync.IGraphSyncDataPlus=} [properties] Properties to set + * @param {BI.IGradientSaveRequest=} [properties] Properties to set */ - function GraphSyncDataPlus(properties) { + function GradientSaveRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -220655,103 +251028,89 @@ export const GraphSync = $root.GraphSync = (() => { } /** - * GraphSyncDataPlus data. - * @member {GraphSync.IGraphSyncData|null|undefined} data - * @memberof GraphSync.GraphSyncDataPlus - * @instance - */ - GraphSyncDataPlus.prototype.data = null; - - /** - * GraphSyncDataPlus timestamp. - * @member {number|Long} timestamp - * @memberof GraphSync.GraphSyncDataPlus + * GradientSaveRequest gradientKey. + * @member {string} gradientKey + * @memberof BI.GradientSaveRequest * @instance */ - GraphSyncDataPlus.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + GradientSaveRequest.prototype.gradientKey = ""; /** - * GraphSyncDataPlus actor. - * @member {GraphSync.IGraphSyncActor|null|undefined} actor - * @memberof GraphSync.GraphSyncDataPlus + * GradientSaveRequest enterpriseUserId. + * @member {number|Long} enterpriseUserId + * @memberof BI.GradientSaveRequest * @instance */ - GraphSyncDataPlus.prototype.actor = null; + GradientSaveRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new GraphSyncDataPlus instance using the specified properties. + * Creates a new GradientSaveRequest instance using the specified properties. * @function create - * @memberof GraphSync.GraphSyncDataPlus + * @memberof BI.GradientSaveRequest * @static - * @param {GraphSync.IGraphSyncDataPlus=} [properties] Properties to set - * @returns {GraphSync.GraphSyncDataPlus} GraphSyncDataPlus instance + * @param {BI.IGradientSaveRequest=} [properties] Properties to set + * @returns {BI.GradientSaveRequest} GradientSaveRequest instance */ - GraphSyncDataPlus.create = function create(properties) { - return new GraphSyncDataPlus(properties); + GradientSaveRequest.create = function create(properties) { + return new GradientSaveRequest(properties); }; /** - * Encodes the specified GraphSyncDataPlus message. Does not implicitly {@link GraphSync.GraphSyncDataPlus.verify|verify} messages. + * Encodes the specified GradientSaveRequest message. Does not implicitly {@link BI.GradientSaveRequest.verify|verify} messages. * @function encode - * @memberof GraphSync.GraphSyncDataPlus + * @memberof BI.GradientSaveRequest * @static - * @param {GraphSync.IGraphSyncDataPlus} message GraphSyncDataPlus message or plain object to encode + * @param {BI.IGradientSaveRequest} message GradientSaveRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncDataPlus.encode = function encode(message, writer) { + GradientSaveRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - $root.GraphSync.GraphSyncData.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.timestamp); - if (message.actor != null && Object.hasOwnProperty.call(message, "actor")) - $root.GraphSync.GraphSyncActor.encode(message.actor, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.gradientKey != null && Object.hasOwnProperty.call(message, "gradientKey")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.gradientKey); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.enterpriseUserId); return writer; }; /** - * Encodes the specified GraphSyncDataPlus message, length delimited. Does not implicitly {@link GraphSync.GraphSyncDataPlus.verify|verify} messages. + * Encodes the specified GradientSaveRequest message, length delimited. Does not implicitly {@link BI.GradientSaveRequest.verify|verify} messages. * @function encodeDelimited - * @memberof GraphSync.GraphSyncDataPlus + * @memberof BI.GradientSaveRequest * @static - * @param {GraphSync.IGraphSyncDataPlus} message GraphSyncDataPlus message or plain object to encode + * @param {BI.IGradientSaveRequest} message GradientSaveRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncDataPlus.encodeDelimited = function encodeDelimited(message, writer) { + GradientSaveRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GraphSyncDataPlus message from the specified reader or buffer. + * Decodes a GradientSaveRequest message from the specified reader or buffer. * @function decode - * @memberof GraphSync.GraphSyncDataPlus + * @memberof BI.GradientSaveRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {GraphSync.GraphSyncDataPlus} GraphSyncDataPlus + * @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 */ - GraphSyncDataPlus.decode = function decode(reader, length) { + GradientSaveRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncDataPlus(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientSaveRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.data = $root.GraphSync.GraphSyncData.decode(reader, reader.uint32()); + message.gradientKey = reader.string(); break; } case 2: { - message.timestamp = reader.int64(); - break; - } - case 3: { - message.actor = $root.GraphSync.GraphSyncActor.decode(reader, reader.uint32()); + message.enterpriseUserId = reader.int64(); break; } default: @@ -220763,166 +251122,147 @@ export const GraphSync = $root.GraphSync = (() => { }; /** - * Decodes a GraphSyncDataPlus message from the specified reader or buffer, length delimited. + * Decodes a GradientSaveRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof GraphSync.GraphSyncDataPlus + * @memberof BI.GradientSaveRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncDataPlus} GraphSyncDataPlus + * @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 */ - GraphSyncDataPlus.decodeDelimited = function decodeDelimited(reader) { + GradientSaveRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GraphSyncDataPlus message. + * Verifies a GradientSaveRequest message. * @function verify - * @memberof GraphSync.GraphSyncDataPlus + * @memberof BI.GradientSaveRequest * @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) { + GradientSaveRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.data != null && message.hasOwnProperty("data")) { - let error = $root.GraphSync.GraphSyncData.verify(message.data); - 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); - if (error) - return "actor." + error; - } + 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 GraphSyncDataPlus message from a plain object. Also converts values to their respective internal types. + * Creates a GradientSaveRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof GraphSync.GraphSyncDataPlus + * @memberof BI.GradientSaveRequest * @static * @param {Object.} object Plain object - * @returns {GraphSync.GraphSyncDataPlus} GraphSyncDataPlus + * @returns {BI.GradientSaveRequest} GradientSaveRequest */ - GraphSyncDataPlus.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncDataPlus) + GradientSaveRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.GradientSaveRequest) return object; - let message = new $root.GraphSync.GraphSyncDataPlus(); - if (object.data != null) { - if (typeof object.data !== "object") - throw TypeError(".GraphSync.GraphSyncDataPlus.data: object expected"); - message.data = $root.GraphSync.GraphSyncData.fromObject(object.data); - } - if (object.timestamp != null) + let message = new $root.BI.GradientSaveRequest(); + if (object.gradientKey != null) + message.gradientKey = String(object.gradientKey); + if (object.enterpriseUserId != null) if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = false; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - 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") - throw TypeError(".GraphSync.GraphSyncDataPlus.actor: object expected"); - message.actor = $root.GraphSync.GraphSyncActor.fromObject(object.actor); - } + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; + else if (typeof object.enterpriseUserId === "string") + message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); + else if (typeof object.enterpriseUserId === "number") + message.enterpriseUserId = object.enterpriseUserId; + else if (typeof object.enterpriseUserId === "object") + message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a GraphSyncDataPlus message. Also converts values to other types if specified. + * Creates a plain object from a GradientSaveRequest message. Also converts values to other types if specified. * @function toObject - * @memberof GraphSync.GraphSyncDataPlus + * @memberof BI.GradientSaveRequest * @static - * @param {GraphSync.GraphSyncDataPlus} message GraphSyncDataPlus + * @param {BI.GradientSaveRequest} message GradientSaveRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncDataPlus.toObject = function toObject(message, options) { + GradientSaveRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.data = null; + object.gradientKey = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.timestamp = options.longs === String ? "0" : 0; - object.actor = null; + object.enterpriseUserId = options.longs === String ? "0" : 0; } - if (message.data != null && message.hasOwnProperty("data")) - object.data = $root.GraphSync.GraphSyncData.toObject(message.data, options); - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") - object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; + if (message.gradientKey != null && message.hasOwnProperty("gradientKey")) + object.gradientKey = message.gradientKey; + if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (typeof message.enterpriseUserId === "number") + object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp; - if (message.actor != null && message.hasOwnProperty("actor")) - object.actor = $root.GraphSync.GraphSyncActor.toObject(message.actor, options); + 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; return object; }; /** - * Converts this GraphSyncDataPlus to JSON. + * Converts this GradientSaveRequest to JSON. * @function toJSON - * @memberof GraphSync.GraphSyncDataPlus + * @memberof BI.GradientSaveRequest * @instance * @returns {Object.} JSON object */ - GraphSyncDataPlus.prototype.toJSON = function toJSON() { + GradientSaveRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GraphSyncDataPlus + * Gets the default type url for GradientSaveRequest * @function getTypeUrl - * @memberof GraphSync.GraphSyncDataPlus + * @memberof BI.GradientSaveRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GraphSyncDataPlus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GradientSaveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/GraphSync.GraphSyncDataPlus"; + return typeUrlPrefix + "/BI.GradientSaveRequest"; }; - return GraphSyncDataPlus; + return GradientSaveRequest; })(); - GraphSync.GraphSyncQuery = (function() { + BI.GradientSaveResponse = (function() { /** - * Properties of a GraphSyncQuery. - * @memberof GraphSync - * @interface IGraphSyncQuery - * @property {Uint8Array|null} [streamId] GraphSyncQuery streamId - * @property {Uint8Array|null} [origin] GraphSyncQuery origin - * @property {number|Long|null} [syncPoint] GraphSyncQuery syncPoint - * @property {number|null} [maxCount] GraphSyncQuery maxCount + * Properties of a GradientSaveResponse. + * @memberof BI + * @interface IGradientSaveResponse + * @property {boolean|null} [success] GradientSaveResponse success + * @property {BI.GradientIntegrationStatus|null} [status] GradientSaveResponse status + * @property {string|null} [message] GradientSaveResponse message */ /** - * Constructs a new GraphSyncQuery. - * @memberof GraphSync - * @classdesc Represents a GraphSyncQuery. - * @implements IGraphSyncQuery + * Constructs a new GradientSaveResponse. + * @memberof BI + * @classdesc Represents a GradientSaveResponse. + * @implements IGradientSaveResponse * @constructor - * @param {GraphSync.IGraphSyncQuery=} [properties] Properties to set + * @param {BI.IGradientSaveResponse=} [properties] Properties to set */ - function GraphSyncQuery(properties) { + function GradientSaveResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -220930,117 +251270,103 @@ export const GraphSync = $root.GraphSync = (() => { } /** - * GraphSyncQuery streamId. - * @member {Uint8Array} streamId - * @memberof GraphSync.GraphSyncQuery - * @instance - */ - GraphSyncQuery.prototype.streamId = $util.newBuffer([]); - - /** - * GraphSyncQuery origin. - * @member {Uint8Array} origin - * @memberof GraphSync.GraphSyncQuery + * GradientSaveResponse success. + * @member {boolean} success + * @memberof BI.GradientSaveResponse * @instance */ - GraphSyncQuery.prototype.origin = $util.newBuffer([]); + GradientSaveResponse.prototype.success = false; /** - * GraphSyncQuery syncPoint. - * @member {number|Long} syncPoint - * @memberof GraphSync.GraphSyncQuery + * GradientSaveResponse status. + * @member {BI.GradientIntegrationStatus} status + * @memberof BI.GradientSaveResponse * @instance */ - GraphSyncQuery.prototype.syncPoint = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + GradientSaveResponse.prototype.status = 0; /** - * GraphSyncQuery maxCount. - * @member {number} maxCount - * @memberof GraphSync.GraphSyncQuery + * GradientSaveResponse message. + * @member {string} message + * @memberof BI.GradientSaveResponse * @instance */ - GraphSyncQuery.prototype.maxCount = 0; + GradientSaveResponse.prototype.message = ""; /** - * Creates a new GraphSyncQuery instance using the specified properties. + * Creates a new GradientSaveResponse instance using the specified properties. * @function create - * @memberof GraphSync.GraphSyncQuery + * @memberof BI.GradientSaveResponse * @static - * @param {GraphSync.IGraphSyncQuery=} [properties] Properties to set - * @returns {GraphSync.GraphSyncQuery} GraphSyncQuery instance + * @param {BI.IGradientSaveResponse=} [properties] Properties to set + * @returns {BI.GradientSaveResponse} GradientSaveResponse instance */ - GraphSyncQuery.create = function create(properties) { - return new GraphSyncQuery(properties); + GradientSaveResponse.create = function create(properties) { + return new GradientSaveResponse(properties); }; /** - * Encodes the specified GraphSyncQuery message. Does not implicitly {@link GraphSync.GraphSyncQuery.verify|verify} messages. + * Encodes the specified GradientSaveResponse message. Does not implicitly {@link BI.GradientSaveResponse.verify|verify} messages. * @function encode - * @memberof GraphSync.GraphSyncQuery + * @memberof BI.GradientSaveResponse * @static - * @param {GraphSync.IGraphSyncQuery} message GraphSyncQuery message or plain object to encode + * @param {BI.IGradientSaveResponse} message GradientSaveResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncQuery.encode = function encode(message, writer) { + GradientSaveResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.streamId); - if (message.origin != null && Object.hasOwnProperty.call(message, "origin")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.origin); - if (message.syncPoint != null && Object.hasOwnProperty.call(message, "syncPoint")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.syncPoint); - if (message.maxCount != null && Object.hasOwnProperty.call(message, "maxCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maxCount); + if (message.success != null && Object.hasOwnProperty.call(message, "success")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); return writer; }; /** - * Encodes the specified GraphSyncQuery message, length delimited. Does not implicitly {@link GraphSync.GraphSyncQuery.verify|verify} messages. + * Encodes the specified GradientSaveResponse message, length delimited. Does not implicitly {@link BI.GradientSaveResponse.verify|verify} messages. * @function encodeDelimited - * @memberof GraphSync.GraphSyncQuery + * @memberof BI.GradientSaveResponse * @static - * @param {GraphSync.IGraphSyncQuery} message GraphSyncQuery message or plain object to encode + * @param {BI.IGradientSaveResponse} message GradientSaveResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncQuery.encodeDelimited = function encodeDelimited(message, writer) { + GradientSaveResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GraphSyncQuery message from the specified reader or buffer. + * Decodes a GradientSaveResponse message from the specified reader or buffer. * @function decode - * @memberof GraphSync.GraphSyncQuery + * @memberof BI.GradientSaveResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {GraphSync.GraphSyncQuery} GraphSyncQuery + * @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 */ - GraphSyncQuery.decode = function decode(reader, length) { + GradientSaveResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncQuery(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientSaveResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.streamId = reader.bytes(); + message.success = reader.bool(); break; } case 2: { - message.origin = reader.bytes(); + message.status = reader.int32(); break; } case 3: { - message.syncPoint = reader.int64(); - break; - } - case 4: { - message.maxCount = reader.int32(); + message.message = reader.string(); break; } default: @@ -221052,183 +251378,168 @@ export const GraphSync = $root.GraphSync = (() => { }; /** - * Decodes a GraphSyncQuery message from the specified reader or buffer, length delimited. + * Decodes a GradientSaveResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof GraphSync.GraphSyncQuery + * @memberof BI.GradientSaveResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncQuery} GraphSyncQuery + * @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 */ - GraphSyncQuery.decodeDelimited = function decodeDelimited(reader) { + GradientSaveResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GraphSyncQuery message. + * Verifies a GradientSaveResponse message. * @function verify - * @memberof GraphSync.GraphSyncQuery + * @memberof BI.GradientSaveResponse * @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) { + GradientSaveResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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 GraphSyncQuery message from a plain object. Also converts values to their respective internal types. + * Creates a GradientSaveResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof GraphSync.GraphSyncQuery + * @memberof BI.GradientSaveResponse * @static * @param {Object.} object Plain object - * @returns {GraphSync.GraphSyncQuery} GraphSyncQuery + * @returns {BI.GradientSaveResponse} GradientSaveResponse */ - GraphSyncQuery.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncQuery) + GradientSaveResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.GradientSaveResponse) return object; - let message = new $root.GraphSync.GraphSyncQuery(); - if (object.streamId != null) - if (typeof object.streamId === "string") - $util.base64.decode(object.streamId, message.streamId = $util.newBuffer($util.base64.length(object.streamId)), 0); - else if (object.streamId.length >= 0) - message.streamId = object.streamId; - if (object.origin != null) - if (typeof object.origin === "string") - $util.base64.decode(object.origin, message.origin = $util.newBuffer($util.base64.length(object.origin)), 0); - else if (object.origin.length >= 0) - message.origin = object.origin; - if (object.syncPoint != null) - if ($util.Long) - (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; - else if (typeof object.syncPoint === "string") - message.syncPoint = parseInt(object.syncPoint, 10); - else if (typeof object.syncPoint === "number") - message.syncPoint = object.syncPoint; - else if (typeof object.syncPoint === "object") - message.syncPoint = new $util.LongBits(object.syncPoint.low >>> 0, object.syncPoint.high >>> 0).toNumber(); - if (object.maxCount != null) - message.maxCount = object.maxCount | 0; + let message = new $root.BI.GradientSaveResponse(); + if (object.success != null) + message.success = Boolean(object.success); + switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; + case "NOTCONNECTED": + case 0: + message.status = 0; + break; + case "PENDING": + case 1: + message.status = 1; + break; + case "CONNECTED": + case 2: + message.status = 2; + break; + case "NONE": + case 3: + message.status = 3; + break; + } + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a GraphSyncQuery message. Also converts values to other types if specified. + * Creates a plain object from a GradientSaveResponse message. Also converts values to other types if specified. * @function toObject - * @memberof GraphSync.GraphSyncQuery + * @memberof BI.GradientSaveResponse * @static - * @param {GraphSync.GraphSyncQuery} message GraphSyncQuery + * @param {BI.GradientSaveResponse} message GradientSaveResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncQuery.toObject = function toObject(message, options) { + GradientSaveResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.streamId = ""; - else { - object.streamId = []; - if (options.bytes !== Array) - object.streamId = $util.newBuffer(object.streamId); - } - if (options.bytes === String) - object.origin = ""; - else { - object.origin = []; - if (options.bytes !== Array) - object.origin = $util.newBuffer(object.origin); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.syncPoint = options.longs === String ? "0" : 0; - object.maxCount = 0; + object.success = false; + object.status = options.enums === String ? "NOTCONNECTED" : 0; + object.message = ""; } - if (message.streamId != null && message.hasOwnProperty("streamId")) - object.streamId = options.bytes === String ? $util.base64.encode(message.streamId, 0, message.streamId.length) : options.bytes === Array ? Array.prototype.slice.call(message.streamId) : message.streamId; - if (message.origin != null && message.hasOwnProperty("origin")) - object.origin = options.bytes === String ? $util.base64.encode(message.origin, 0, message.origin.length) : options.bytes === Array ? Array.prototype.slice.call(message.origin) : message.origin; - if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) - if (typeof 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")) - object.maxCount = message.maxCount; + if (message.success != null && message.hasOwnProperty("success")) + object.success = message.success; + if (message.status != null && message.hasOwnProperty("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")) + object.message = message.message; return object; }; /** - * Converts this GraphSyncQuery to JSON. + * Converts this GradientSaveResponse to JSON. * @function toJSON - * @memberof GraphSync.GraphSyncQuery + * @memberof BI.GradientSaveResponse * @instance * @returns {Object.} JSON object */ - GraphSyncQuery.prototype.toJSON = function toJSON() { + GradientSaveResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GraphSyncQuery + * Gets the default type url for GradientSaveResponse * @function getTypeUrl - * @memberof GraphSync.GraphSyncQuery + * @memberof BI.GradientSaveResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GraphSyncQuery.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GradientSaveResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/GraphSync.GraphSyncQuery"; + return typeUrlPrefix + "/BI.GradientSaveResponse"; }; - return GraphSyncQuery; + return GradientSaveResponse; })(); - GraphSync.GraphSyncResult = (function() { + BI.GradientRemoveRequest = (function() { /** - * Properties of a GraphSyncResult. - * @memberof GraphSync - * @interface IGraphSyncResult - * @property {Uint8Array|null} [streamId] GraphSyncResult streamId - * @property {number|Long|null} [syncPoint] GraphSyncResult syncPoint - * @property {Array.|null} [data] GraphSyncResult data - * @property {boolean|null} [hasMore] GraphSyncResult hasMore + * Properties of a GradientRemoveRequest. + * @memberof BI + * @interface IGradientRemoveRequest + * @property {number|Long|null} [enterpriseUserId] GradientRemoveRequest enterpriseUserId */ /** - * Constructs a new GraphSyncResult. - * @memberof GraphSync - * @classdesc Represents a GraphSyncResult. - * @implements IGraphSyncResult + * Constructs a new GradientRemoveRequest. + * @memberof BI + * @classdesc Represents a GradientRemoveRequest. + * @implements IGradientRemoveRequest * @constructor - * @param {GraphSync.IGraphSyncResult=} [properties] Properties to set + * @param {BI.IGradientRemoveRequest=} [properties] Properties to set */ - function GraphSyncResult(properties) { - this.data = []; + function GradientRemoveRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -221236,120 +251547,75 @@ export const GraphSync = $root.GraphSync = (() => { } /** - * GraphSyncResult streamId. - * @member {Uint8Array} streamId - * @memberof GraphSync.GraphSyncResult - * @instance - */ - GraphSyncResult.prototype.streamId = $util.newBuffer([]); - - /** - * GraphSyncResult syncPoint. - * @member {number|Long} syncPoint - * @memberof GraphSync.GraphSyncResult - * @instance - */ - GraphSyncResult.prototype.syncPoint = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * GraphSyncResult data. - * @member {Array.} data - * @memberof GraphSync.GraphSyncResult - * @instance - */ - GraphSyncResult.prototype.data = $util.emptyArray; - - /** - * GraphSyncResult hasMore. - * @member {boolean} hasMore - * @memberof GraphSync.GraphSyncResult + * GradientRemoveRequest enterpriseUserId. + * @member {number|Long} enterpriseUserId + * @memberof BI.GradientRemoveRequest * @instance */ - GraphSyncResult.prototype.hasMore = false; + GradientRemoveRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new GraphSyncResult instance using the specified properties. + * Creates a new GradientRemoveRequest instance using the specified properties. * @function create - * @memberof GraphSync.GraphSyncResult + * @memberof BI.GradientRemoveRequest * @static - * @param {GraphSync.IGraphSyncResult=} [properties] Properties to set - * @returns {GraphSync.GraphSyncResult} GraphSyncResult instance + * @param {BI.IGradientRemoveRequest=} [properties] Properties to set + * @returns {BI.GradientRemoveRequest} GradientRemoveRequest instance */ - GraphSyncResult.create = function create(properties) { - return new GraphSyncResult(properties); + GradientRemoveRequest.create = function create(properties) { + return new GradientRemoveRequest(properties); }; /** - * Encodes the specified GraphSyncResult message. Does not implicitly {@link GraphSync.GraphSyncResult.verify|verify} messages. + * Encodes the specified GradientRemoveRequest message. Does not implicitly {@link BI.GradientRemoveRequest.verify|verify} messages. * @function encode - * @memberof GraphSync.GraphSyncResult + * @memberof BI.GradientRemoveRequest * @static - * @param {GraphSync.IGraphSyncResult} message GraphSyncResult message or plain object to encode + * @param {BI.IGradientRemoveRequest} message GradientRemoveRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncResult.encode = function encode(message, writer) { + GradientRemoveRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.streamId); - if (message.syncPoint != null && Object.hasOwnProperty.call(message, "syncPoint")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.syncPoint); - if (message.data != null && message.data.length) - for (let i = 0; i < message.data.length; ++i) - $root.GraphSync.GraphSyncDataPlus.encode(message.data[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.hasMore); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); return writer; }; /** - * Encodes the specified GraphSyncResult message, length delimited. Does not implicitly {@link GraphSync.GraphSyncResult.verify|verify} messages. + * Encodes the specified GradientRemoveRequest message, length delimited. Does not implicitly {@link BI.GradientRemoveRequest.verify|verify} messages. * @function encodeDelimited - * @memberof GraphSync.GraphSyncResult + * @memberof BI.GradientRemoveRequest * @static - * @param {GraphSync.IGraphSyncResult} message GraphSyncResult message or plain object to encode + * @param {BI.IGradientRemoveRequest} message GradientRemoveRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncResult.encodeDelimited = function encodeDelimited(message, writer) { + GradientRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GraphSyncResult message from the specified reader or buffer. + * Decodes a GradientRemoveRequest message from the specified reader or buffer. * @function decode - * @memberof GraphSync.GraphSyncResult + * @memberof BI.GradientRemoveRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {GraphSync.GraphSyncResult} GraphSyncResult + * @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 */ - GraphSyncResult.decode = function decode(reader, length) { + GradientRemoveRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncResult(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientRemoveRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - message.streamId = reader.bytes(); - break; - } - case 3: { - message.syncPoint = reader.int64(); - break; - } - case 4: { - if (!(message.data && message.data.length)) - message.data = []; - message.data.push($root.GraphSync.GraphSyncDataPlus.decode(reader, reader.uint32())); - break; - } - case 5: { - message.hasMore = reader.bool(); + case 1: { + message.enterpriseUserId = reader.int64(); break; } default: @@ -221361,189 +251627,137 @@ export const GraphSync = $root.GraphSync = (() => { }; /** - * Decodes a GraphSyncResult message from the specified reader or buffer, length delimited. + * Decodes a GradientRemoveRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof GraphSync.GraphSyncResult + * @memberof BI.GradientRemoveRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncResult} GraphSyncResult + * @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 */ - GraphSyncResult.decodeDelimited = function decodeDelimited(reader) { + GradientRemoveRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GraphSyncResult message. + * Verifies a GradientRemoveRequest message. * @function verify - * @memberof GraphSync.GraphSyncResult + * @memberof BI.GradientRemoveRequest * @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) { + GradientRemoveRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "data." + error; - } - } - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - if (typeof message.hasMore !== "boolean") - return "hasMore: boolean 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 GraphSyncResult message from a plain object. Also converts values to their respective internal types. + * Creates a GradientRemoveRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof GraphSync.GraphSyncResult + * @memberof BI.GradientRemoveRequest * @static * @param {Object.} object Plain object - * @returns {GraphSync.GraphSyncResult} GraphSyncResult + * @returns {BI.GradientRemoveRequest} GradientRemoveRequest */ - GraphSyncResult.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncResult) + GradientRemoveRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.GradientRemoveRequest) return object; - let message = new $root.GraphSync.GraphSyncResult(); - if (object.streamId != null) - if (typeof object.streamId === "string") - $util.base64.decode(object.streamId, message.streamId = $util.newBuffer($util.base64.length(object.streamId)), 0); - else if (object.streamId.length >= 0) - message.streamId = object.streamId; - if (object.syncPoint != null) + let message = new $root.BI.GradientRemoveRequest(); + if (object.enterpriseUserId != null) if ($util.Long) - (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; - else if (typeof object.syncPoint === "string") - message.syncPoint = parseInt(object.syncPoint, 10); - else if (typeof object.syncPoint === "number") - message.syncPoint = object.syncPoint; - else if (typeof object.syncPoint === "object") - message.syncPoint = new $util.LongBits(object.syncPoint.low >>> 0, object.syncPoint.high >>> 0).toNumber(); - if (object.data) { - if (!Array.isArray(object.data)) - throw TypeError(".GraphSync.GraphSyncResult.data: array expected"); - message.data = []; - for (let i = 0; i < object.data.length; ++i) { - if (typeof object.data[i] !== "object") - throw TypeError(".GraphSync.GraphSyncResult.data: object expected"); - message.data[i] = $root.GraphSync.GraphSyncDataPlus.fromObject(object.data[i]); - } - } - if (object.hasMore != null) - message.hasMore = Boolean(object.hasMore); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; + else if (typeof object.enterpriseUserId === "string") + message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); + else if (typeof object.enterpriseUserId === "number") + message.enterpriseUserId = object.enterpriseUserId; + else if (typeof object.enterpriseUserId === "object") + message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a GraphSyncResult message. Also converts values to other types if specified. + * Creates a plain object from a GradientRemoveRequest message. Also converts values to other types if specified. * @function toObject - * @memberof GraphSync.GraphSyncResult + * @memberof BI.GradientRemoveRequest * @static - * @param {GraphSync.GraphSyncResult} message GraphSyncResult + * @param {BI.GradientRemoveRequest} message GradientRemoveRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncResult.toObject = function toObject(message, options) { + GradientRemoveRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.data = []; - if (options.defaults) { - if (options.bytes === String) - object.streamId = ""; - else { - object.streamId = []; - if (options.bytes !== Array) - object.streamId = $util.newBuffer(object.streamId); - } + if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.syncPoint = options.longs === String ? "0" : 0; - object.hasMore = false; - } - if (message.streamId != null && message.hasOwnProperty("streamId")) - object.streamId = options.bytes === String ? $util.base64.encode(message.streamId, 0, message.streamId.length) : options.bytes === Array ? Array.prototype.slice.call(message.streamId) : message.streamId; - if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) - if (typeof message.syncPoint === "number") - object.syncPoint = options.longs === String ? String(message.syncPoint) : message.syncPoint; + object.enterpriseUserId = options.longs === String ? "0" : 0; + if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (typeof message.enterpriseUserId === "number") + object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.syncPoint = options.longs === String ? $util.Long.prototype.toString.call(message.syncPoint) : options.longs === Number ? new $util.LongBits(message.syncPoint.low >>> 0, message.syncPoint.high >>> 0).toNumber() : message.syncPoint; - if (message.data && message.data.length) { - object.data = []; - for (let j = 0; j < message.data.length; ++j) - object.data[j] = $root.GraphSync.GraphSyncDataPlus.toObject(message.data[j], options); - } - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - object.hasMore = message.hasMore; + 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; return object; }; /** - * Converts this GraphSyncResult to JSON. + * Converts this GradientRemoveRequest to JSON. * @function toJSON - * @memberof GraphSync.GraphSyncResult + * @memberof BI.GradientRemoveRequest * @instance * @returns {Object.} JSON object */ - GraphSyncResult.prototype.toJSON = function toJSON() { + GradientRemoveRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GraphSyncResult + * Gets the default type url for GradientRemoveRequest * @function getTypeUrl - * @memberof GraphSync.GraphSyncResult + * @memberof BI.GradientRemoveRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GraphSyncResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GradientRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/GraphSync.GraphSyncResult"; + return typeUrlPrefix + "/BI.GradientRemoveRequest"; }; - return GraphSyncResult; + return GradientRemoveRequest; })(); - GraphSync.GraphSyncMultiQuery = (function() { + BI.GradientRemoveResponse = (function() { /** - * Properties of a GraphSyncMultiQuery. - * @memberof GraphSync - * @interface IGraphSyncMultiQuery - * @property {Array.|null} [queries] GraphSyncMultiQuery queries + * Properties of a GradientRemoveResponse. + * @memberof BI + * @interface IGradientRemoveResponse + * @property {boolean|null} [success] GradientRemoveResponse success + * @property {string|null} [message] GradientRemoveResponse message */ /** - * Constructs a new GraphSyncMultiQuery. - * @memberof GraphSync - * @classdesc Represents a GraphSyncMultiQuery. - * @implements IGraphSyncMultiQuery + * Constructs a new GradientRemoveResponse. + * @memberof BI + * @classdesc Represents a GradientRemoveResponse. + * @implements IGradientRemoveResponse * @constructor - * @param {GraphSync.IGraphSyncMultiQuery=} [properties] Properties to set + * @param {BI.IGradientRemoveResponse=} [properties] Properties to set */ - function GraphSyncMultiQuery(properties) { - this.queries = []; + function GradientRemoveResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -221551,78 +251765,89 @@ export const GraphSync = $root.GraphSync = (() => { } /** - * GraphSyncMultiQuery queries. - * @member {Array.} queries - * @memberof GraphSync.GraphSyncMultiQuery + * GradientRemoveResponse success. + * @member {boolean} success + * @memberof BI.GradientRemoveResponse * @instance */ - GraphSyncMultiQuery.prototype.queries = $util.emptyArray; + GradientRemoveResponse.prototype.success = false; /** - * Creates a new GraphSyncMultiQuery instance using the specified properties. + * GradientRemoveResponse message. + * @member {string} message + * @memberof BI.GradientRemoveResponse + * @instance + */ + GradientRemoveResponse.prototype.message = ""; + + /** + * Creates a new GradientRemoveResponse instance using the specified properties. * @function create - * @memberof GraphSync.GraphSyncMultiQuery + * @memberof BI.GradientRemoveResponse * @static - * @param {GraphSync.IGraphSyncMultiQuery=} [properties] Properties to set - * @returns {GraphSync.GraphSyncMultiQuery} GraphSyncMultiQuery instance + * @param {BI.IGradientRemoveResponse=} [properties] Properties to set + * @returns {BI.GradientRemoveResponse} GradientRemoveResponse instance */ - GraphSyncMultiQuery.create = function create(properties) { - return new GraphSyncMultiQuery(properties); + GradientRemoveResponse.create = function create(properties) { + return new GradientRemoveResponse(properties); }; /** - * Encodes the specified GraphSyncMultiQuery message. Does not implicitly {@link GraphSync.GraphSyncMultiQuery.verify|verify} messages. + * Encodes the specified GradientRemoveResponse message. Does not implicitly {@link BI.GradientRemoveResponse.verify|verify} messages. * @function encode - * @memberof GraphSync.GraphSyncMultiQuery + * @memberof BI.GradientRemoveResponse * @static - * @param {GraphSync.IGraphSyncMultiQuery} message GraphSyncMultiQuery message or plain object to encode + * @param {BI.IGradientRemoveResponse} message GradientRemoveResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncMultiQuery.encode = function encode(message, writer) { + GradientRemoveResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.queries != null && message.queries.length) - for (let i = 0; i < message.queries.length; ++i) - $root.GraphSync.GraphSyncQuery.encode(message.queries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.success != null && Object.hasOwnProperty.call(message, "success")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); return writer; }; /** - * Encodes the specified GraphSyncMultiQuery message, length delimited. Does not implicitly {@link GraphSync.GraphSyncMultiQuery.verify|verify} messages. + * Encodes the specified GradientRemoveResponse message, length delimited. Does not implicitly {@link BI.GradientRemoveResponse.verify|verify} messages. * @function encodeDelimited - * @memberof GraphSync.GraphSyncMultiQuery + * @memberof BI.GradientRemoveResponse * @static - * @param {GraphSync.IGraphSyncMultiQuery} message GraphSyncMultiQuery message or plain object to encode + * @param {BI.IGradientRemoveResponse} message GradientRemoveResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncMultiQuery.encodeDelimited = function encodeDelimited(message, writer) { + GradientRemoveResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GraphSyncMultiQuery message from the specified reader or buffer. + * Decodes a GradientRemoveResponse message from the specified reader or buffer. * @function decode - * @memberof GraphSync.GraphSyncMultiQuery + * @memberof BI.GradientRemoveResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {GraphSync.GraphSyncMultiQuery} GraphSyncMultiQuery + * @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 */ - GraphSyncMultiQuery.decode = function decode(reader, length) { + GradientRemoveResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncMultiQuery(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientRemoveResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.queries && message.queries.length)) - message.queries = []; - message.queries.push($root.GraphSync.GraphSyncQuery.decode(reader, reader.uint32())); + message.success = reader.bool(); + break; + } + case 2: { + message.message = reader.string(); break; } default: @@ -221634,140 +251859,131 @@ export const GraphSync = $root.GraphSync = (() => { }; /** - * Decodes a GraphSyncMultiQuery message from the specified reader or buffer, length delimited. + * Decodes a GradientRemoveResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof GraphSync.GraphSyncMultiQuery + * @memberof BI.GradientRemoveResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncMultiQuery} GraphSyncMultiQuery + * @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 */ - GraphSyncMultiQuery.decodeDelimited = function decodeDelimited(reader) { + GradientRemoveResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GraphSyncMultiQuery message. + * Verifies a GradientRemoveResponse message. * @function verify - * @memberof GraphSync.GraphSyncMultiQuery + * @memberof BI.GradientRemoveResponse * @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) { + GradientRemoveResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "queries." + 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"; return null; }; /** - * Creates a GraphSyncMultiQuery message from a plain object. Also converts values to their respective internal types. + * Creates a GradientRemoveResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof GraphSync.GraphSyncMultiQuery + * @memberof BI.GradientRemoveResponse * @static * @param {Object.} object Plain object - * @returns {GraphSync.GraphSyncMultiQuery} GraphSyncMultiQuery + * @returns {BI.GradientRemoveResponse} GradientRemoveResponse */ - GraphSyncMultiQuery.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncMultiQuery) + GradientRemoveResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.GradientRemoveResponse) return object; - let message = new $root.GraphSync.GraphSyncMultiQuery(); - if (object.queries) { - if (!Array.isArray(object.queries)) - throw TypeError(".GraphSync.GraphSyncMultiQuery.queries: array expected"); - message.queries = []; - for (let i = 0; i < object.queries.length; ++i) { - if (typeof object.queries[i] !== "object") - throw TypeError(".GraphSync.GraphSyncMultiQuery.queries: object expected"); - message.queries[i] = $root.GraphSync.GraphSyncQuery.fromObject(object.queries[i]); - } - } + let message = new $root.BI.GradientRemoveResponse(); + if (object.success != null) + message.success = Boolean(object.success); + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a GraphSyncMultiQuery message. Also converts values to other types if specified. + * Creates a plain object from a GradientRemoveResponse message. Also converts values to other types if specified. * @function toObject - * @memberof GraphSync.GraphSyncMultiQuery + * @memberof BI.GradientRemoveResponse * @static - * @param {GraphSync.GraphSyncMultiQuery} message GraphSyncMultiQuery + * @param {BI.GradientRemoveResponse} message GradientRemoveResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncMultiQuery.toObject = function toObject(message, options) { + GradientRemoveResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.queries = []; - if (message.queries && message.queries.length) { - object.queries = []; - for (let j = 0; j < message.queries.length; ++j) - object.queries[j] = $root.GraphSync.GraphSyncQuery.toObject(message.queries[j], options); + if (options.defaults) { + object.success = false; + object.message = ""; } + if (message.success != null && message.hasOwnProperty("success")) + object.success = message.success; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; return object; }; /** - * Converts this GraphSyncMultiQuery to JSON. + * Converts this GradientRemoveResponse to JSON. * @function toJSON - * @memberof GraphSync.GraphSyncMultiQuery + * @memberof BI.GradientRemoveResponse * @instance * @returns {Object.} JSON object */ - GraphSyncMultiQuery.prototype.toJSON = function toJSON() { + GradientRemoveResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GraphSyncMultiQuery + * Gets the default type url for GradientRemoveResponse * @function getTypeUrl - * @memberof GraphSync.GraphSyncMultiQuery + * @memberof BI.GradientRemoveResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GraphSyncMultiQuery.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GradientRemoveResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/GraphSync.GraphSyncMultiQuery"; + return typeUrlPrefix + "/BI.GradientRemoveResponse"; }; - return GraphSyncMultiQuery; + return GradientRemoveResponse; })(); - GraphSync.GraphSyncMultiResult = (function() { + BI.GradientSyncRequest = (function() { /** - * Properties of a GraphSyncMultiResult. - * @memberof GraphSync - * @interface IGraphSyncMultiResult - * @property {Array.|null} [results] GraphSyncMultiResult results + * Properties of a GradientSyncRequest. + * @memberof BI + * @interface IGradientSyncRequest + * @property {number|Long|null} [enterpriseUserId] GradientSyncRequest enterpriseUserId */ /** - * Constructs a new GraphSyncMultiResult. - * @memberof GraphSync - * @classdesc Represents a GraphSyncMultiResult. - * @implements IGraphSyncMultiResult + * Constructs a new GradientSyncRequest. + * @memberof BI + * @classdesc Represents a GradientSyncRequest. + * @implements IGradientSyncRequest * @constructor - * @param {GraphSync.IGraphSyncMultiResult=} [properties] Properties to set + * @param {BI.IGradientSyncRequest=} [properties] Properties to set */ - function GraphSyncMultiResult(properties) { - this.results = []; + function GradientSyncRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -221775,78 +251991,75 @@ export const GraphSync = $root.GraphSync = (() => { } /** - * GraphSyncMultiResult results. - * @member {Array.} results - * @memberof GraphSync.GraphSyncMultiResult + * GradientSyncRequest enterpriseUserId. + * @member {number|Long} enterpriseUserId + * @memberof BI.GradientSyncRequest * @instance */ - GraphSyncMultiResult.prototype.results = $util.emptyArray; + GradientSyncRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new GraphSyncMultiResult instance using the specified properties. + * Creates a new GradientSyncRequest instance using the specified properties. * @function create - * @memberof GraphSync.GraphSyncMultiResult + * @memberof BI.GradientSyncRequest * @static - * @param {GraphSync.IGraphSyncMultiResult=} [properties] Properties to set - * @returns {GraphSync.GraphSyncMultiResult} GraphSyncMultiResult instance + * @param {BI.IGradientSyncRequest=} [properties] Properties to set + * @returns {BI.GradientSyncRequest} GradientSyncRequest instance */ - GraphSyncMultiResult.create = function create(properties) { - return new GraphSyncMultiResult(properties); + GradientSyncRequest.create = function create(properties) { + return new GradientSyncRequest(properties); }; /** - * Encodes the specified GraphSyncMultiResult message. Does not implicitly {@link GraphSync.GraphSyncMultiResult.verify|verify} messages. + * Encodes the specified GradientSyncRequest message. Does not implicitly {@link BI.GradientSyncRequest.verify|verify} messages. * @function encode - * @memberof GraphSync.GraphSyncMultiResult + * @memberof BI.GradientSyncRequest * @static - * @param {GraphSync.IGraphSyncMultiResult} message GraphSyncMultiResult message or plain object to encode + * @param {BI.IGradientSyncRequest} message GradientSyncRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncMultiResult.encode = function encode(message, writer) { + GradientSyncRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.results != null && message.results.length) - for (let i = 0; i < message.results.length; ++i) - $root.GraphSync.GraphSyncResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); return writer; }; /** - * Encodes the specified GraphSyncMultiResult message, length delimited. Does not implicitly {@link GraphSync.GraphSyncMultiResult.verify|verify} messages. + * Encodes the specified GradientSyncRequest message, length delimited. Does not implicitly {@link BI.GradientSyncRequest.verify|verify} messages. * @function encodeDelimited - * @memberof GraphSync.GraphSyncMultiResult + * @memberof BI.GradientSyncRequest * @static - * @param {GraphSync.IGraphSyncMultiResult} message GraphSyncMultiResult message or plain object to encode + * @param {BI.IGradientSyncRequest} message GradientSyncRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncMultiResult.encodeDelimited = function encodeDelimited(message, writer) { + GradientSyncRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GraphSyncMultiResult message from the specified reader or buffer. + * Decodes a GradientSyncRequest message from the specified reader or buffer. * @function decode - * @memberof GraphSync.GraphSyncMultiResult + * @memberof BI.GradientSyncRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {GraphSync.GraphSyncMultiResult} GraphSyncMultiResult + * @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 */ - GraphSyncMultiResult.decode = function decode(reader, length) { + GradientSyncRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncMultiResult(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientSyncRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.results && message.results.length)) - message.results = []; - message.results.push($root.GraphSync.GraphSyncResult.decode(reader, reader.uint32())); + message.enterpriseUserId = reader.int64(); break; } default: @@ -221858,141 +252071,138 @@ export const GraphSync = $root.GraphSync = (() => { }; /** - * Decodes a GraphSyncMultiResult message from the specified reader or buffer, length delimited. + * Decodes a GradientSyncRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof GraphSync.GraphSyncMultiResult + * @memberof BI.GradientSyncRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncMultiResult} GraphSyncMultiResult + * @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 */ - GraphSyncMultiResult.decodeDelimited = function decodeDelimited(reader) { + GradientSyncRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GraphSyncMultiResult message. + * Verifies a GradientSyncRequest message. * @function verify - * @memberof GraphSync.GraphSyncMultiResult + * @memberof BI.GradientSyncRequest * @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) { + GradientSyncRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.GraphSync.GraphSyncResult.verify(message.results[i]); - if (error) - return "results." + 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"; return null; }; /** - * Creates a GraphSyncMultiResult message from a plain object. Also converts values to their respective internal types. + * Creates a GradientSyncRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof GraphSync.GraphSyncMultiResult + * @memberof BI.GradientSyncRequest * @static * @param {Object.} object Plain object - * @returns {GraphSync.GraphSyncMultiResult} GraphSyncMultiResult + * @returns {BI.GradientSyncRequest} GradientSyncRequest */ - GraphSyncMultiResult.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncMultiResult) + GradientSyncRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.GradientSyncRequest) return object; - let message = new $root.GraphSync.GraphSyncMultiResult(); - if (object.results) { - if (!Array.isArray(object.results)) - throw TypeError(".GraphSync.GraphSyncMultiResult.results: array expected"); - message.results = []; - for (let i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") - throw TypeError(".GraphSync.GraphSyncMultiResult.results: object expected"); - message.results[i] = $root.GraphSync.GraphSyncResult.fromObject(object.results[i]); - } - } + let message = new $root.BI.GradientSyncRequest(); + if (object.enterpriseUserId != null) + if ($util.Long) + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; + else if (typeof object.enterpriseUserId === "string") + message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); + else if (typeof object.enterpriseUserId === "number") + message.enterpriseUserId = object.enterpriseUserId; + else if (typeof object.enterpriseUserId === "object") + message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a GraphSyncMultiResult message. Also converts values to other types if specified. + * Creates a plain object from a GradientSyncRequest message. Also converts values to other types if specified. * @function toObject - * @memberof GraphSync.GraphSyncMultiResult + * @memberof BI.GradientSyncRequest * @static - * @param {GraphSync.GraphSyncMultiResult} message GraphSyncMultiResult + * @param {BI.GradientSyncRequest} message GradientSyncRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncMultiResult.toObject = function toObject(message, options) { + GradientSyncRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.results = []; - if (message.results && message.results.length) { - object.results = []; - for (let j = 0; j < message.results.length; ++j) - object.results[j] = $root.GraphSync.GraphSyncResult.toObject(message.results[j], options); - } + if (options.defaults) + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.enterpriseUserId = options.longs === String ? "0" : 0; + if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + 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; return object; }; /** - * Converts this GraphSyncMultiResult to JSON. + * Converts this GradientSyncRequest to JSON. * @function toJSON - * @memberof GraphSync.GraphSyncMultiResult + * @memberof BI.GradientSyncRequest * @instance * @returns {Object.} JSON object */ - GraphSyncMultiResult.prototype.toJSON = function toJSON() { + GradientSyncRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GraphSyncMultiResult + * Gets the default type url for GradientSyncRequest * @function getTypeUrl - * @memberof GraphSync.GraphSyncMultiResult + * @memberof BI.GradientSyncRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GraphSyncMultiResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GradientSyncRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/GraphSync.GraphSyncMultiResult"; + return typeUrlPrefix + "/BI.GradientSyncRequest"; }; - return GraphSyncMultiResult; + return GradientSyncRequest; })(); - GraphSync.GraphSyncAddDataRequest = (function() { + BI.GradientSyncResponse = (function() { /** - * Properties of a GraphSyncAddDataRequest. - * @memberof GraphSync - * @interface IGraphSyncAddDataRequest - * @property {GraphSync.IGraphSyncRef|null} [origin] GraphSyncAddDataRequest origin - * @property {Array.|null} [data] GraphSyncAddDataRequest data + * Properties of a GradientSyncResponse. + * @memberof BI + * @interface IGradientSyncResponse + * @property {boolean|null} [success] GradientSyncResponse success + * @property {BI.GradientIntegrationStatus|null} [status] GradientSyncResponse status + * @property {string|null} [message] GradientSyncResponse message */ /** - * Constructs a new GraphSyncAddDataRequest. - * @memberof GraphSync - * @classdesc Represents a GraphSyncAddDataRequest. - * @implements IGraphSyncAddDataRequest + * Constructs a new GradientSyncResponse. + * @memberof BI + * @classdesc Represents a GradientSyncResponse. + * @implements IGradientSyncResponse * @constructor - * @param {GraphSync.IGraphSyncAddDataRequest=} [properties] Properties to set + * @param {BI.IGradientSyncResponse=} [properties] Properties to set */ - function GraphSyncAddDataRequest(properties) { - this.data = []; + function GradientSyncResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -222000,92 +252210,103 @@ export const GraphSync = $root.GraphSync = (() => { } /** - * GraphSyncAddDataRequest origin. - * @member {GraphSync.IGraphSyncRef|null|undefined} origin - * @memberof GraphSync.GraphSyncAddDataRequest + * GradientSyncResponse success. + * @member {boolean} success + * @memberof BI.GradientSyncResponse * @instance */ - GraphSyncAddDataRequest.prototype.origin = null; + GradientSyncResponse.prototype.success = false; /** - * GraphSyncAddDataRequest data. - * @member {Array.} data - * @memberof GraphSync.GraphSyncAddDataRequest + * GradientSyncResponse status. + * @member {BI.GradientIntegrationStatus} status + * @memberof BI.GradientSyncResponse * @instance */ - GraphSyncAddDataRequest.prototype.data = $util.emptyArray; + GradientSyncResponse.prototype.status = 0; /** - * Creates a new GraphSyncAddDataRequest instance using the specified properties. + * GradientSyncResponse message. + * @member {string} message + * @memberof BI.GradientSyncResponse + * @instance + */ + GradientSyncResponse.prototype.message = ""; + + /** + * Creates a new GradientSyncResponse instance using the specified properties. * @function create - * @memberof GraphSync.GraphSyncAddDataRequest + * @memberof BI.GradientSyncResponse * @static - * @param {GraphSync.IGraphSyncAddDataRequest=} [properties] Properties to set - * @returns {GraphSync.GraphSyncAddDataRequest} GraphSyncAddDataRequest instance + * @param {BI.IGradientSyncResponse=} [properties] Properties to set + * @returns {BI.GradientSyncResponse} GradientSyncResponse instance */ - GraphSyncAddDataRequest.create = function create(properties) { - return new GraphSyncAddDataRequest(properties); + GradientSyncResponse.create = function create(properties) { + return new GradientSyncResponse(properties); }; /** - * Encodes the specified GraphSyncAddDataRequest message. Does not implicitly {@link GraphSync.GraphSyncAddDataRequest.verify|verify} messages. + * Encodes the specified GradientSyncResponse message. Does not implicitly {@link BI.GradientSyncResponse.verify|verify} messages. * @function encode - * @memberof GraphSync.GraphSyncAddDataRequest + * @memberof BI.GradientSyncResponse * @static - * @param {GraphSync.IGraphSyncAddDataRequest} message GraphSyncAddDataRequest message or plain object to encode + * @param {BI.IGradientSyncResponse} message GradientSyncResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncAddDataRequest.encode = function encode(message, writer) { + GradientSyncResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.origin != null && Object.hasOwnProperty.call(message, "origin")) - $root.GraphSync.GraphSyncRef.encode(message.origin, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.data != null && message.data.length) - for (let i = 0; i < message.data.length; ++i) - $root.GraphSync.GraphSyncData.encode(message.data[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.success != null && Object.hasOwnProperty.call(message, "success")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); return writer; }; /** - * Encodes the specified GraphSyncAddDataRequest message, length delimited. Does not implicitly {@link GraphSync.GraphSyncAddDataRequest.verify|verify} messages. + * Encodes the specified GradientSyncResponse message, length delimited. Does not implicitly {@link BI.GradientSyncResponse.verify|verify} messages. * @function encodeDelimited - * @memberof GraphSync.GraphSyncAddDataRequest + * @memberof BI.GradientSyncResponse * @static - * @param {GraphSync.IGraphSyncAddDataRequest} message GraphSyncAddDataRequest message or plain object to encode + * @param {BI.IGradientSyncResponse} message GradientSyncResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncAddDataRequest.encodeDelimited = function encodeDelimited(message, writer) { + GradientSyncResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GraphSyncAddDataRequest message from the specified reader or buffer. + * Decodes a GradientSyncResponse message from the specified reader or buffer. * @function decode - * @memberof GraphSync.GraphSyncAddDataRequest + * @memberof BI.GradientSyncResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {GraphSync.GraphSyncAddDataRequest} GraphSyncAddDataRequest + * @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 */ - GraphSyncAddDataRequest.decode = function decode(reader, length) { + GradientSyncResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncAddDataRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientSyncResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.origin = $root.GraphSync.GraphSyncRef.decode(reader, reader.uint32()); + message.success = reader.bool(); break; } case 2: { - if (!(message.data && message.data.length)) - message.data = []; - message.data.push($root.GraphSync.GraphSyncData.decode(reader, reader.uint32())); + message.status = reader.int32(); + break; + } + case 3: { + message.message = reader.string(); break; } default: @@ -222097,154 +252318,187 @@ export const GraphSync = $root.GraphSync = (() => { }; /** - * Decodes a GraphSyncAddDataRequest message from the specified reader or buffer, length delimited. + * Decodes a GradientSyncResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof GraphSync.GraphSyncAddDataRequest + * @memberof BI.GradientSyncResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncAddDataRequest} GraphSyncAddDataRequest + * @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 */ - GraphSyncAddDataRequest.decodeDelimited = function decodeDelimited(reader) { + GradientSyncResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GraphSyncAddDataRequest message. + * Verifies a GradientSyncResponse message. * @function verify - * @memberof GraphSync.GraphSyncAddDataRequest + * @memberof BI.GradientSyncResponse * @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) { + GradientSyncResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.origin != null && message.hasOwnProperty("origin")) { - let error = $root.GraphSync.GraphSyncRef.verify(message.origin); - 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]); - if (error) - return "data." + error; + 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 GraphSyncAddDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GradientSyncResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof GraphSync.GraphSyncAddDataRequest + * @memberof BI.GradientSyncResponse * @static * @param {Object.} object Plain object - * @returns {GraphSync.GraphSyncAddDataRequest} GraphSyncAddDataRequest + * @returns {BI.GradientSyncResponse} GradientSyncResponse */ - GraphSyncAddDataRequest.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncAddDataRequest) + GradientSyncResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.GradientSyncResponse) return object; - let message = new $root.GraphSync.GraphSyncAddDataRequest(); - if (object.origin != null) { - if (typeof object.origin !== "object") - throw TypeError(".GraphSync.GraphSyncAddDataRequest.origin: object expected"); - message.origin = $root.GraphSync.GraphSyncRef.fromObject(object.origin); - } - if (object.data) { - if (!Array.isArray(object.data)) - throw TypeError(".GraphSync.GraphSyncAddDataRequest.data: array expected"); - message.data = []; - for (let i = 0; i < object.data.length; ++i) { - if (typeof object.data[i] !== "object") - throw TypeError(".GraphSync.GraphSyncAddDataRequest.data: object expected"); - message.data[i] = $root.GraphSync.GraphSyncData.fromObject(object.data[i]); + let message = new $root.BI.GradientSyncResponse(); + if (object.success != null) + message.success = Boolean(object.success); + switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; } + break; + case "NOTCONNECTED": + case 0: + message.status = 0; + break; + case "PENDING": + case 1: + message.status = 1; + break; + case "CONNECTED": + case 2: + message.status = 2; + break; + case "NONE": + case 3: + message.status = 3; + break; } + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a GraphSyncAddDataRequest message. Also converts values to other types if specified. + * Creates a plain object from a GradientSyncResponse message. Also converts values to other types if specified. * @function toObject - * @memberof GraphSync.GraphSyncAddDataRequest + * @memberof BI.GradientSyncResponse * @static - * @param {GraphSync.GraphSyncAddDataRequest} message GraphSyncAddDataRequest + * @param {BI.GradientSyncResponse} message GradientSyncResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncAddDataRequest.toObject = function toObject(message, options) { + GradientSyncResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.data = []; - if (options.defaults) - object.origin = null; - if (message.origin != null && message.hasOwnProperty("origin")) - object.origin = $root.GraphSync.GraphSyncRef.toObject(message.origin, options); - if (message.data && message.data.length) { - object.data = []; - for (let j = 0; j < message.data.length; ++j) - object.data[j] = $root.GraphSync.GraphSyncData.toObject(message.data[j], options); + if (options.defaults) { + object.success = false; + object.status = options.enums === String ? "NOTCONNECTED" : 0; + object.message = ""; } + if (message.success != null && message.hasOwnProperty("success")) + object.success = message.success; + if (message.status != null && message.hasOwnProperty("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")) + object.message = message.message; return object; }; /** - * Converts this GraphSyncAddDataRequest to JSON. + * Converts this GradientSyncResponse to JSON. * @function toJSON - * @memberof GraphSync.GraphSyncAddDataRequest + * @memberof BI.GradientSyncResponse * @instance * @returns {Object.} JSON object */ - GraphSyncAddDataRequest.prototype.toJSON = function toJSON() { + GradientSyncResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GraphSyncAddDataRequest + * Gets the default type url for GradientSyncResponse * @function getTypeUrl - * @memberof GraphSync.GraphSyncAddDataRequest + * @memberof BI.GradientSyncResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GraphSyncAddDataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GradientSyncResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/GraphSync.GraphSyncAddDataRequest"; + return typeUrlPrefix + "/BI.GradientSyncResponse"; }; - return GraphSyncAddDataRequest; + return GradientSyncResponse; })(); - GraphSync.GraphSyncLeafsQuery = (function() { + /** + * GradientIntegrationStatus enum. + * @name BI.GradientIntegrationStatus + * @enum {number} + * @property {number} NOTCONNECTED=0 NOTCONNECTED value + * @property {number} PENDING=1 PENDING value + * @property {number} CONNECTED=2 CONNECTED value + * @property {number} NONE=3 NONE value + */ + BI.GradientIntegrationStatus = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NOTCONNECTED"] = 0; + values[valuesById[1] = "PENDING"] = 1; + values[valuesById[2] = "CONNECTED"] = 2; + values[valuesById[3] = "NONE"] = 3; + return values; + })(); + + BI.NetPromoterScoreSurveySubmissionRequest = (function() { /** - * Properties of a GraphSyncLeafsQuery. - * @memberof GraphSync - * @interface IGraphSyncLeafsQuery - * @property {Array.|null} [vertices] GraphSyncLeafsQuery vertices + * Properties of a NetPromoterScoreSurveySubmissionRequest. + * @memberof BI + * @interface INetPromoterScoreSurveySubmissionRequest + * @property {number|null} [surveyScore] NetPromoterScoreSurveySubmissionRequest surveyScore + * @property {string|null} [notes] NetPromoterScoreSurveySubmissionRequest notes */ /** - * Constructs a new GraphSyncLeafsQuery. - * @memberof GraphSync - * @classdesc Represents a GraphSyncLeafsQuery. - * @implements IGraphSyncLeafsQuery + * Constructs a new NetPromoterScoreSurveySubmissionRequest. + * @memberof BI + * @classdesc Represents a NetPromoterScoreSurveySubmissionRequest. + * @implements INetPromoterScoreSurveySubmissionRequest * @constructor - * @param {GraphSync.IGraphSyncLeafsQuery=} [properties] Properties to set + * @param {BI.INetPromoterScoreSurveySubmissionRequest=} [properties] Properties to set */ - function GraphSyncLeafsQuery(properties) { - this.vertices = []; + function NetPromoterScoreSurveySubmissionRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -222252,78 +252506,89 @@ export const GraphSync = $root.GraphSync = (() => { } /** - * GraphSyncLeafsQuery vertices. - * @member {Array.} vertices - * @memberof GraphSync.GraphSyncLeafsQuery + * NetPromoterScoreSurveySubmissionRequest surveyScore. + * @member {number} surveyScore + * @memberof BI.NetPromoterScoreSurveySubmissionRequest * @instance */ - GraphSyncLeafsQuery.prototype.vertices = $util.emptyArray; + NetPromoterScoreSurveySubmissionRequest.prototype.surveyScore = 0; /** - * Creates a new GraphSyncLeafsQuery instance using the specified properties. + * NetPromoterScoreSurveySubmissionRequest notes. + * @member {string} notes + * @memberof BI.NetPromoterScoreSurveySubmissionRequest + * @instance + */ + NetPromoterScoreSurveySubmissionRequest.prototype.notes = ""; + + /** + * Creates a new NetPromoterScoreSurveySubmissionRequest instance using the specified properties. * @function create - * @memberof GraphSync.GraphSyncLeafsQuery + * @memberof BI.NetPromoterScoreSurveySubmissionRequest * @static - * @param {GraphSync.IGraphSyncLeafsQuery=} [properties] Properties to set - * @returns {GraphSync.GraphSyncLeafsQuery} GraphSyncLeafsQuery instance + * @param {BI.INetPromoterScoreSurveySubmissionRequest=} [properties] Properties to set + * @returns {BI.NetPromoterScoreSurveySubmissionRequest} NetPromoterScoreSurveySubmissionRequest instance */ - GraphSyncLeafsQuery.create = function create(properties) { - return new GraphSyncLeafsQuery(properties); + NetPromoterScoreSurveySubmissionRequest.create = function create(properties) { + return new NetPromoterScoreSurveySubmissionRequest(properties); }; /** - * Encodes the specified GraphSyncLeafsQuery message. Does not implicitly {@link GraphSync.GraphSyncLeafsQuery.verify|verify} messages. + * Encodes the specified NetPromoterScoreSurveySubmissionRequest message. Does not implicitly {@link BI.NetPromoterScoreSurveySubmissionRequest.verify|verify} messages. * @function encode - * @memberof GraphSync.GraphSyncLeafsQuery + * @memberof BI.NetPromoterScoreSurveySubmissionRequest * @static - * @param {GraphSync.IGraphSyncLeafsQuery} message GraphSyncLeafsQuery message or plain object to encode + * @param {BI.INetPromoterScoreSurveySubmissionRequest} message NetPromoterScoreSurveySubmissionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncLeafsQuery.encode = function encode(message, writer) { + NetPromoterScoreSurveySubmissionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.vertices != null && message.vertices.length) - for (let i = 0; i < message.vertices.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.vertices[i]); + if (message.surveyScore != null && Object.hasOwnProperty.call(message, "surveyScore")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.surveyScore); + if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.notes); return writer; }; /** - * Encodes the specified GraphSyncLeafsQuery message, length delimited. Does not implicitly {@link GraphSync.GraphSyncLeafsQuery.verify|verify} messages. + * Encodes the specified NetPromoterScoreSurveySubmissionRequest message, length delimited. Does not implicitly {@link BI.NetPromoterScoreSurveySubmissionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof GraphSync.GraphSyncLeafsQuery + * @memberof BI.NetPromoterScoreSurveySubmissionRequest * @static - * @param {GraphSync.IGraphSyncLeafsQuery} message GraphSyncLeafsQuery message or plain object to encode + * @param {BI.INetPromoterScoreSurveySubmissionRequest} message NetPromoterScoreSurveySubmissionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncLeafsQuery.encodeDelimited = function encodeDelimited(message, writer) { + NetPromoterScoreSurveySubmissionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GraphSyncLeafsQuery message from the specified reader or buffer. + * Decodes a NetPromoterScoreSurveySubmissionRequest message from the specified reader or buffer. * @function decode - * @memberof GraphSync.GraphSyncLeafsQuery + * @memberof BI.NetPromoterScoreSurveySubmissionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {GraphSync.GraphSyncLeafsQuery} GraphSyncLeafsQuery + * @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 */ - GraphSyncLeafsQuery.decode = function decode(reader, length) { + NetPromoterScoreSurveySubmissionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncLeafsQuery(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScoreSurveySubmissionRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.surveyScore = reader.int32(); + break; + } case 2: { - if (!(message.vertices && message.vertices.length)) - message.vertices = []; - message.vertices.push(reader.bytes()); + message.notes = reader.string(); break; } default: @@ -222335,138 +252600,130 @@ export const GraphSync = $root.GraphSync = (() => { }; /** - * Decodes a GraphSyncLeafsQuery message from the specified reader or buffer, length delimited. + * Decodes a NetPromoterScoreSurveySubmissionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof GraphSync.GraphSyncLeafsQuery + * @memberof BI.NetPromoterScoreSurveySubmissionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncLeafsQuery} GraphSyncLeafsQuery + * @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 */ - GraphSyncLeafsQuery.decodeDelimited = function decodeDelimited(reader) { + NetPromoterScoreSurveySubmissionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GraphSyncLeafsQuery message. + * Verifies a NetPromoterScoreSurveySubmissionRequest message. * @function verify - * @memberof GraphSync.GraphSyncLeafsQuery + * @memberof BI.NetPromoterScoreSurveySubmissionRequest * @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) { + NetPromoterScoreSurveySubmissionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; - } + 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 GraphSyncLeafsQuery message from a plain object. Also converts values to their respective internal types. + * Creates a NetPromoterScoreSurveySubmissionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof GraphSync.GraphSyncLeafsQuery + * @memberof BI.NetPromoterScoreSurveySubmissionRequest * @static * @param {Object.} object Plain object - * @returns {GraphSync.GraphSyncLeafsQuery} GraphSyncLeafsQuery + * @returns {BI.NetPromoterScoreSurveySubmissionRequest} NetPromoterScoreSurveySubmissionRequest */ - GraphSyncLeafsQuery.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncLeafsQuery) + NetPromoterScoreSurveySubmissionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.NetPromoterScoreSurveySubmissionRequest) return object; - let message = new $root.GraphSync.GraphSyncLeafsQuery(); - if (object.vertices) { - if (!Array.isArray(object.vertices)) - throw TypeError(".GraphSync.GraphSyncLeafsQuery.vertices: array expected"); - message.vertices = []; - for (let i = 0; i < object.vertices.length; ++i) - if (typeof object.vertices[i] === "string") - $util.base64.decode(object.vertices[i], message.vertices[i] = $util.newBuffer($util.base64.length(object.vertices[i])), 0); - else if (object.vertices[i].length >= 0) - message.vertices[i] = object.vertices[i]; - } + let message = new $root.BI.NetPromoterScoreSurveySubmissionRequest(); + if (object.surveyScore != null) + message.surveyScore = object.surveyScore | 0; + if (object.notes != null) + message.notes = String(object.notes); return message; }; /** - * Creates a plain object from a GraphSyncLeafsQuery message. Also converts values to other types if specified. + * Creates a plain object from a NetPromoterScoreSurveySubmissionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof GraphSync.GraphSyncLeafsQuery + * @memberof BI.NetPromoterScoreSurveySubmissionRequest * @static - * @param {GraphSync.GraphSyncLeafsQuery} message GraphSyncLeafsQuery + * @param {BI.NetPromoterScoreSurveySubmissionRequest} message NetPromoterScoreSurveySubmissionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncLeafsQuery.toObject = function toObject(message, options) { + NetPromoterScoreSurveySubmissionRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.vertices = []; - if (message.vertices && message.vertices.length) { - object.vertices = []; - for (let j = 0; j < message.vertices.length; ++j) - object.vertices[j] = options.bytes === String ? $util.base64.encode(message.vertices[j], 0, message.vertices[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.vertices[j]) : message.vertices[j]; + if (options.defaults) { + object.surveyScore = 0; + object.notes = ""; } + if (message.surveyScore != null && message.hasOwnProperty("surveyScore")) + object.surveyScore = message.surveyScore; + if (message.notes != null && message.hasOwnProperty("notes")) + object.notes = message.notes; return object; }; /** - * Converts this GraphSyncLeafsQuery to JSON. + * Converts this NetPromoterScoreSurveySubmissionRequest to JSON. * @function toJSON - * @memberof GraphSync.GraphSyncLeafsQuery + * @memberof BI.NetPromoterScoreSurveySubmissionRequest * @instance * @returns {Object.} JSON object */ - GraphSyncLeafsQuery.prototype.toJSON = function toJSON() { + NetPromoterScoreSurveySubmissionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GraphSyncLeafsQuery + * Gets the default type url for NetPromoterScoreSurveySubmissionRequest * @function getTypeUrl - * @memberof GraphSync.GraphSyncLeafsQuery + * @memberof BI.NetPromoterScoreSurveySubmissionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GraphSyncLeafsQuery.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NetPromoterScoreSurveySubmissionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/GraphSync.GraphSyncLeafsQuery"; + return typeUrlPrefix + "/BI.NetPromoterScoreSurveySubmissionRequest"; }; - return GraphSyncLeafsQuery; + return NetPromoterScoreSurveySubmissionRequest; })(); - GraphSync.GraphSyncRefsResult = (function() { + BI.NetPromoterScoreSurveySubmissionResponse = (function() { /** - * Properties of a GraphSyncRefsResult. - * @memberof GraphSync - * @interface IGraphSyncRefsResult - * @property {Array.|null} [refs] GraphSyncRefsResult refs + * Properties of a NetPromoterScoreSurveySubmissionResponse. + * @memberof BI + * @interface INetPromoterScoreSurveySubmissionResponse */ /** - * Constructs a new GraphSyncRefsResult. - * @memberof GraphSync - * @classdesc Represents a GraphSyncRefsResult. - * @implements IGraphSyncRefsResult + * Constructs a new NetPromoterScoreSurveySubmissionResponse. + * @memberof BI + * @classdesc Represents a NetPromoterScoreSurveySubmissionResponse. + * @implements INetPromoterScoreSurveySubmissionResponse * @constructor - * @param {GraphSync.IGraphSyncRefsResult=} [properties] Properties to set + * @param {BI.INetPromoterScoreSurveySubmissionResponse=} [properties] Properties to set */ - function GraphSyncRefsResult(properties) { - this.refs = []; + function NetPromoterScoreSurveySubmissionResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -222474,80 +252731,63 @@ export const GraphSync = $root.GraphSync = (() => { } /** - * GraphSyncRefsResult refs. - * @member {Array.} refs - * @memberof GraphSync.GraphSyncRefsResult - * @instance - */ - GraphSyncRefsResult.prototype.refs = $util.emptyArray; - - /** - * Creates a new GraphSyncRefsResult instance using the specified properties. + * Creates a new NetPromoterScoreSurveySubmissionResponse instance using the specified properties. * @function create - * @memberof GraphSync.GraphSyncRefsResult + * @memberof BI.NetPromoterScoreSurveySubmissionResponse * @static - * @param {GraphSync.IGraphSyncRefsResult=} [properties] Properties to set - * @returns {GraphSync.GraphSyncRefsResult} GraphSyncRefsResult instance + * @param {BI.INetPromoterScoreSurveySubmissionResponse=} [properties] Properties to set + * @returns {BI.NetPromoterScoreSurveySubmissionResponse} NetPromoterScoreSurveySubmissionResponse instance */ - GraphSyncRefsResult.create = function create(properties) { - return new GraphSyncRefsResult(properties); + NetPromoterScoreSurveySubmissionResponse.create = function create(properties) { + return new NetPromoterScoreSurveySubmissionResponse(properties); }; /** - * Encodes the specified GraphSyncRefsResult message. Does not implicitly {@link GraphSync.GraphSyncRefsResult.verify|verify} messages. + * Encodes the specified NetPromoterScoreSurveySubmissionResponse message. Does not implicitly {@link BI.NetPromoterScoreSurveySubmissionResponse.verify|verify} messages. * @function encode - * @memberof GraphSync.GraphSyncRefsResult + * @memberof BI.NetPromoterScoreSurveySubmissionResponse * @static - * @param {GraphSync.IGraphSyncRefsResult} message GraphSyncRefsResult message or plain object to encode + * @param {BI.INetPromoterScoreSurveySubmissionResponse} message NetPromoterScoreSurveySubmissionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncRefsResult.encode = function encode(message, writer) { + NetPromoterScoreSurveySubmissionResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.refs != null && message.refs.length) - for (let i = 0; i < message.refs.length; ++i) - $root.GraphSync.GraphSyncRef.encode(message.refs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GraphSyncRefsResult message, length delimited. Does not implicitly {@link GraphSync.GraphSyncRefsResult.verify|verify} messages. + * Encodes the specified NetPromoterScoreSurveySubmissionResponse message, length delimited. Does not implicitly {@link BI.NetPromoterScoreSurveySubmissionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof GraphSync.GraphSyncRefsResult + * @memberof BI.NetPromoterScoreSurveySubmissionResponse * @static - * @param {GraphSync.IGraphSyncRefsResult} message GraphSyncRefsResult message or plain object to encode + * @param {BI.INetPromoterScoreSurveySubmissionResponse} message NetPromoterScoreSurveySubmissionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncRefsResult.encodeDelimited = function encodeDelimited(message, writer) { + NetPromoterScoreSurveySubmissionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GraphSyncRefsResult message from the specified reader or buffer. + * Decodes a NetPromoterScoreSurveySubmissionResponse message from the specified reader or buffer. * @function decode - * @memberof GraphSync.GraphSyncRefsResult + * @memberof BI.NetPromoterScoreSurveySubmissionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {GraphSync.GraphSyncRefsResult} GraphSyncRefsResult + * @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 */ - GraphSyncRefsResult.decode = function decode(reader, length) { + NetPromoterScoreSurveySubmissionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncRefsResult(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScoreSurveySubmissionResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.refs && message.refs.length)) - message.refs = []; - message.refs.push($root.GraphSync.GraphSyncRef.decode(reader, reader.uint32())); - break; - } default: reader.skipType(tag & 7); break; @@ -222557,154 +252797,108 @@ export const GraphSync = $root.GraphSync = (() => { }; /** - * Decodes a GraphSyncRefsResult message from the specified reader or buffer, length delimited. + * Decodes a NetPromoterScoreSurveySubmissionResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof GraphSync.GraphSyncRefsResult + * @memberof BI.NetPromoterScoreSurveySubmissionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {GraphSync.GraphSyncRefsResult} GraphSyncRefsResult + * @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 */ - GraphSyncRefsResult.decodeDelimited = function decodeDelimited(reader) { + NetPromoterScoreSurveySubmissionResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GraphSyncRefsResult message. + * Verifies a NetPromoterScoreSurveySubmissionResponse message. * @function verify - * @memberof GraphSync.GraphSyncRefsResult + * @memberof BI.NetPromoterScoreSurveySubmissionResponse * @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) { + NetPromoterScoreSurveySubmissionResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "refs." + error; - } - } return null; }; /** - * Creates a GraphSyncRefsResult message from a plain object. Also converts values to their respective internal types. + * Creates a NetPromoterScoreSurveySubmissionResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof GraphSync.GraphSyncRefsResult + * @memberof BI.NetPromoterScoreSurveySubmissionResponse * @static * @param {Object.} object Plain object - * @returns {GraphSync.GraphSyncRefsResult} GraphSyncRefsResult + * @returns {BI.NetPromoterScoreSurveySubmissionResponse} NetPromoterScoreSurveySubmissionResponse */ - GraphSyncRefsResult.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncRefsResult) + NetPromoterScoreSurveySubmissionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.NetPromoterScoreSurveySubmissionResponse) return object; - let message = new $root.GraphSync.GraphSyncRefsResult(); - if (object.refs) { - if (!Array.isArray(object.refs)) - throw TypeError(".GraphSync.GraphSyncRefsResult.refs: array expected"); - message.refs = []; - for (let i = 0; i < object.refs.length; ++i) { - if (typeof object.refs[i] !== "object") - throw TypeError(".GraphSync.GraphSyncRefsResult.refs: object expected"); - message.refs[i] = $root.GraphSync.GraphSyncRef.fromObject(object.refs[i]); - } - } - return message; + return new $root.BI.NetPromoterScoreSurveySubmissionResponse(); }; /** - * Creates a plain object from a GraphSyncRefsResult message. Also converts values to other types if specified. + * Creates a plain object from a NetPromoterScoreSurveySubmissionResponse message. Also converts values to other types if specified. * @function toObject - * @memberof GraphSync.GraphSyncRefsResult + * @memberof BI.NetPromoterScoreSurveySubmissionResponse * @static - * @param {GraphSync.GraphSyncRefsResult} message GraphSyncRefsResult + * @param {BI.NetPromoterScoreSurveySubmissionResponse} message NetPromoterScoreSurveySubmissionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncRefsResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.refs = []; - if (message.refs && message.refs.length) { - object.refs = []; - for (let j = 0; j < message.refs.length; ++j) - object.refs[j] = $root.GraphSync.GraphSyncRef.toObject(message.refs[j], options); - } - return object; + NetPromoterScoreSurveySubmissionResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GraphSyncRefsResult to JSON. + * Converts this NetPromoterScoreSurveySubmissionResponse to JSON. * @function toJSON - * @memberof GraphSync.GraphSyncRefsResult + * @memberof BI.NetPromoterScoreSurveySubmissionResponse * @instance * @returns {Object.} JSON object */ - GraphSyncRefsResult.prototype.toJSON = function toJSON() { + NetPromoterScoreSurveySubmissionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GraphSyncRefsResult + * Gets the default type url for NetPromoterScoreSurveySubmissionResponse * @function getTypeUrl - * @memberof GraphSync.GraphSyncRefsResult + * @memberof BI.NetPromoterScoreSurveySubmissionResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GraphSyncRefsResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NetPromoterScoreSurveySubmissionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/GraphSync.GraphSyncRefsResult"; + return typeUrlPrefix + "/BI.NetPromoterScoreSurveySubmissionResponse"; }; - return GraphSyncRefsResult; + return NetPromoterScoreSurveySubmissionResponse; })(); - return GraphSync; -})(); - -export const Upsell = $root.Upsell = (() => { - - /** - * Namespace Upsell. - * @exports Upsell - * @namespace - */ - const Upsell = {}; - - Upsell.UpsellRequest = (function() { + BI.NetPromoterScorePopupScheduleRequest = (function() { /** - * Properties of an UpsellRequest. - * @memberof Upsell - * @interface IUpsellRequest - * @property {string|null} [email] UpsellRequest email - * @property {string|null} [locale] UpsellRequest locale - * @property {string|null} [clientVersion] UpsellRequest clientVersion - * @property {string|null} [sessionToken] UpsellRequest sessionToken + * Properties of a NetPromoterScorePopupScheduleRequest. + * @memberof BI + * @interface INetPromoterScorePopupScheduleRequest */ /** - * Constructs a new UpsellRequest. - * @memberof Upsell - * @classdesc Represents an UpsellRequest. - * @implements IUpsellRequest + * Constructs a new NetPromoterScorePopupScheduleRequest. + * @memberof BI + * @classdesc Represents a NetPromoterScorePopupScheduleRequest. + * @implements INetPromoterScorePopupScheduleRequest * @constructor - * @param {Upsell.IUpsellRequest=} [properties] Properties to set + * @param {BI.INetPromoterScorePopupScheduleRequest=} [properties] Properties to set */ - function UpsellRequest(properties) { + function NetPromoterScorePopupScheduleRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -222712,119 +252906,63 @@ export const Upsell = $root.Upsell = (() => { } /** - * UpsellRequest email. - * @member {string} email - * @memberof Upsell.UpsellRequest - * @instance - */ - UpsellRequest.prototype.email = ""; - - /** - * UpsellRequest locale. - * @member {string} locale - * @memberof Upsell.UpsellRequest - * @instance - */ - UpsellRequest.prototype.locale = ""; - - /** - * UpsellRequest clientVersion. - * @member {string} clientVersion - * @memberof Upsell.UpsellRequest - * @instance - */ - UpsellRequest.prototype.clientVersion = ""; - - /** - * UpsellRequest sessionToken. - * @member {string} sessionToken - * @memberof Upsell.UpsellRequest - * @instance - */ - UpsellRequest.prototype.sessionToken = ""; - - /** - * Creates a new UpsellRequest instance using the specified properties. + * Creates a new NetPromoterScorePopupScheduleRequest instance using the specified properties. * @function create - * @memberof Upsell.UpsellRequest + * @memberof BI.NetPromoterScorePopupScheduleRequest * @static - * @param {Upsell.IUpsellRequest=} [properties] Properties to set - * @returns {Upsell.UpsellRequest} UpsellRequest instance + * @param {BI.INetPromoterScorePopupScheduleRequest=} [properties] Properties to set + * @returns {BI.NetPromoterScorePopupScheduleRequest} NetPromoterScorePopupScheduleRequest instance */ - UpsellRequest.create = function create(properties) { - return new UpsellRequest(properties); + NetPromoterScorePopupScheduleRequest.create = function create(properties) { + return new NetPromoterScorePopupScheduleRequest(properties); }; /** - * Encodes the specified UpsellRequest message. Does not implicitly {@link Upsell.UpsellRequest.verify|verify} messages. + * Encodes the specified NetPromoterScorePopupScheduleRequest message. Does not implicitly {@link BI.NetPromoterScorePopupScheduleRequest.verify|verify} messages. * @function encode - * @memberof Upsell.UpsellRequest + * @memberof BI.NetPromoterScorePopupScheduleRequest * @static - * @param {Upsell.IUpsellRequest} message UpsellRequest message or plain object to encode + * @param {BI.INetPromoterScorePopupScheduleRequest} message NetPromoterScorePopupScheduleRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpsellRequest.encode = function encode(message, writer) { + NetPromoterScorePopupScheduleRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); - if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.locale); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clientVersion); - if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.sessionToken); return writer; }; /** - * Encodes the specified UpsellRequest message, length delimited. Does not implicitly {@link Upsell.UpsellRequest.verify|verify} messages. + * Encodes the specified NetPromoterScorePopupScheduleRequest message, length delimited. Does not implicitly {@link BI.NetPromoterScorePopupScheduleRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Upsell.UpsellRequest + * @memberof BI.NetPromoterScorePopupScheduleRequest * @static - * @param {Upsell.IUpsellRequest} message UpsellRequest message or plain object to encode + * @param {BI.INetPromoterScorePopupScheduleRequest} message NetPromoterScorePopupScheduleRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpsellRequest.encodeDelimited = function encodeDelimited(message, writer) { + NetPromoterScorePopupScheduleRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpsellRequest message from the specified reader or buffer. + * Decodes a NetPromoterScorePopupScheduleRequest message from the specified reader or buffer. * @function decode - * @memberof Upsell.UpsellRequest + * @memberof BI.NetPromoterScorePopupScheduleRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Upsell.UpsellRequest} UpsellRequest + * @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 */ - UpsellRequest.decode = function decode(reader, length) { + NetPromoterScorePopupScheduleRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Upsell.UpsellRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScorePopupScheduleRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.email = reader.string(); - break; - } - case 2: { - message.locale = reader.string(); - break; - } - case 3: { - message.clientVersion = reader.string(); - break; - } - case 4: { - message.sessionToken = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -222834,148 +252972,109 @@ export const Upsell = $root.Upsell = (() => { }; /** - * Decodes an UpsellRequest message from the specified reader or buffer, length delimited. + * Decodes a NetPromoterScorePopupScheduleRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Upsell.UpsellRequest + * @memberof BI.NetPromoterScorePopupScheduleRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Upsell.UpsellRequest} UpsellRequest + * @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 */ - UpsellRequest.decodeDelimited = function decodeDelimited(reader) { + NetPromoterScorePopupScheduleRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpsellRequest message. + * Verifies a NetPromoterScorePopupScheduleRequest message. * @function verify - * @memberof Upsell.UpsellRequest + * @memberof BI.NetPromoterScorePopupScheduleRequest * @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) { + NetPromoterScorePopupScheduleRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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. + * Creates a NetPromoterScorePopupScheduleRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Upsell.UpsellRequest + * @memberof BI.NetPromoterScorePopupScheduleRequest * @static * @param {Object.} object Plain object - * @returns {Upsell.UpsellRequest} UpsellRequest + * @returns {BI.NetPromoterScorePopupScheduleRequest} NetPromoterScorePopupScheduleRequest */ - UpsellRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Upsell.UpsellRequest) + NetPromoterScorePopupScheduleRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.NetPromoterScorePopupScheduleRequest) return object; - let message = new $root.Upsell.UpsellRequest(); - if (object.email != null) - message.email = String(object.email); - if (object.locale != null) - message.locale = String(object.locale); - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); - if (object.sessionToken != null) - message.sessionToken = String(object.sessionToken); - return message; + return new $root.BI.NetPromoterScorePopupScheduleRequest(); }; /** - * Creates a plain object from an UpsellRequest message. Also converts values to other types if specified. + * Creates a plain object from a NetPromoterScorePopupScheduleRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Upsell.UpsellRequest + * @memberof BI.NetPromoterScorePopupScheduleRequest * @static - * @param {Upsell.UpsellRequest} message UpsellRequest + * @param {BI.NetPromoterScorePopupScheduleRequest} message NetPromoterScorePopupScheduleRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpsellRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.email = ""; - object.locale = ""; - object.clientVersion = ""; - object.sessionToken = ""; - } - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.locale != null && message.hasOwnProperty("locale")) - object.locale = message.locale; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - object.clientVersion = message.clientVersion; - if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) - object.sessionToken = message.sessionToken; - return object; + NetPromoterScorePopupScheduleRequest.toObject = function toObject() { + return {}; }; /** - * Converts this UpsellRequest to JSON. + * Converts this NetPromoterScorePopupScheduleRequest to JSON. * @function toJSON - * @memberof Upsell.UpsellRequest + * @memberof BI.NetPromoterScorePopupScheduleRequest * @instance * @returns {Object.} JSON object */ - UpsellRequest.prototype.toJSON = function toJSON() { + NetPromoterScorePopupScheduleRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpsellRequest + * Gets the default type url for NetPromoterScorePopupScheduleRequest * @function getTypeUrl - * @memberof Upsell.UpsellRequest + * @memberof BI.NetPromoterScorePopupScheduleRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpsellRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NetPromoterScorePopupScheduleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Upsell.UpsellRequest"; + return typeUrlPrefix + "/BI.NetPromoterScorePopupScheduleRequest"; }; - return UpsellRequest; + return NetPromoterScorePopupScheduleRequest; })(); - Upsell.UpsellResponse = (function() { + BI.NetPromoterScorePopupScheduleResponse = (function() { /** - * Properties of an UpsellResponse. - * @memberof Upsell - * @interface IUpsellResponse - * @property {Array.|null} [UpsellBanner] UpsellResponse UpsellBanner + * Properties of a NetPromoterScorePopupScheduleResponse. + * @memberof BI + * @interface INetPromoterScorePopupScheduleResponse + * @property {boolean|null} [showPopup] NetPromoterScorePopupScheduleResponse showPopup */ - - /** - * Constructs a new UpsellResponse. - * @memberof Upsell - * @classdesc Represents an UpsellResponse. - * @implements IUpsellResponse + + /** + * Constructs a new NetPromoterScorePopupScheduleResponse. + * @memberof BI + * @classdesc Represents a NetPromoterScorePopupScheduleResponse. + * @implements INetPromoterScorePopupScheduleResponse * @constructor - * @param {Upsell.IUpsellResponse=} [properties] Properties to set + * @param {BI.INetPromoterScorePopupScheduleResponse=} [properties] Properties to set */ - function UpsellResponse(properties) { - this.UpsellBanner = []; + function NetPromoterScorePopupScheduleResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -222983,78 +253082,75 @@ export const Upsell = $root.Upsell = (() => { } /** - * UpsellResponse UpsellBanner. - * @member {Array.} UpsellBanner - * @memberof Upsell.UpsellResponse + * NetPromoterScorePopupScheduleResponse showPopup. + * @member {boolean} showPopup + * @memberof BI.NetPromoterScorePopupScheduleResponse * @instance */ - UpsellResponse.prototype.UpsellBanner = $util.emptyArray; + NetPromoterScorePopupScheduleResponse.prototype.showPopup = false; /** - * Creates a new UpsellResponse instance using the specified properties. + * Creates a new NetPromoterScorePopupScheduleResponse instance using the specified properties. * @function create - * @memberof Upsell.UpsellResponse + * @memberof BI.NetPromoterScorePopupScheduleResponse * @static - * @param {Upsell.IUpsellResponse=} [properties] Properties to set - * @returns {Upsell.UpsellResponse} UpsellResponse instance + * @param {BI.INetPromoterScorePopupScheduleResponse=} [properties] Properties to set + * @returns {BI.NetPromoterScorePopupScheduleResponse} NetPromoterScorePopupScheduleResponse instance */ - UpsellResponse.create = function create(properties) { - return new UpsellResponse(properties); + NetPromoterScorePopupScheduleResponse.create = function create(properties) { + return new NetPromoterScorePopupScheduleResponse(properties); }; /** - * Encodes the specified UpsellResponse message. Does not implicitly {@link Upsell.UpsellResponse.verify|verify} messages. + * Encodes the specified NetPromoterScorePopupScheduleResponse message. Does not implicitly {@link BI.NetPromoterScorePopupScheduleResponse.verify|verify} messages. * @function encode - * @memberof Upsell.UpsellResponse + * @memberof BI.NetPromoterScorePopupScheduleResponse * @static - * @param {Upsell.IUpsellResponse} message UpsellResponse message or plain object to encode + * @param {BI.INetPromoterScorePopupScheduleResponse} message NetPromoterScorePopupScheduleResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpsellResponse.encode = function encode(message, writer) { + NetPromoterScorePopupScheduleResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.UpsellBanner != null && message.UpsellBanner.length) - for (let i = 0; i < message.UpsellBanner.length; ++i) - $root.Upsell.UpsellBanner.encode(message.UpsellBanner[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.showPopup != null && Object.hasOwnProperty.call(message, "showPopup")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.showPopup); return writer; }; /** - * Encodes the specified UpsellResponse message, length delimited. Does not implicitly {@link Upsell.UpsellResponse.verify|verify} messages. + * Encodes the specified NetPromoterScorePopupScheduleResponse message, length delimited. Does not implicitly {@link BI.NetPromoterScorePopupScheduleResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Upsell.UpsellResponse + * @memberof BI.NetPromoterScorePopupScheduleResponse * @static - * @param {Upsell.IUpsellResponse} message UpsellResponse message or plain object to encode + * @param {BI.INetPromoterScorePopupScheduleResponse} message NetPromoterScorePopupScheduleResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpsellResponse.encodeDelimited = function encodeDelimited(message, writer) { + NetPromoterScorePopupScheduleResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpsellResponse message from the specified reader or buffer. + * Decodes a NetPromoterScorePopupScheduleResponse message from the specified reader or buffer. * @function decode - * @memberof Upsell.UpsellResponse + * @memberof BI.NetPromoterScorePopupScheduleResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Upsell.UpsellResponse} UpsellResponse + * @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 */ - UpsellResponse.decode = function decode(reader, length) { + NetPromoterScorePopupScheduleResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Upsell.UpsellResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScorePopupScheduleResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.UpsellBanner && message.UpsellBanner.length)) - message.UpsellBanner = []; - message.UpsellBanner.push($root.Upsell.UpsellBanner.decode(reader, reader.uint32())); + message.showPopup = reader.bool(); break; } default: @@ -223066,145 +253162,121 @@ export const Upsell = $root.Upsell = (() => { }; /** - * Decodes an UpsellResponse message from the specified reader or buffer, length delimited. + * Decodes a NetPromoterScorePopupScheduleResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Upsell.UpsellResponse + * @memberof BI.NetPromoterScorePopupScheduleResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Upsell.UpsellResponse} UpsellResponse + * @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 */ - UpsellResponse.decodeDelimited = function decodeDelimited(reader) { + NetPromoterScorePopupScheduleResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpsellResponse message. + * Verifies a NetPromoterScorePopupScheduleResponse message. * @function verify - * @memberof Upsell.UpsellResponse + * @memberof BI.NetPromoterScorePopupScheduleResponse * @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) { + NetPromoterScorePopupScheduleResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "UpsellBanner." + error; - } - } + if (message.showPopup != null && message.hasOwnProperty("showPopup")) + if (typeof message.showPopup !== "boolean") + return "showPopup: boolean expected"; return null; }; /** - * Creates an UpsellResponse message from a plain object. Also converts values to their respective internal types. + * Creates a NetPromoterScorePopupScheduleResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Upsell.UpsellResponse + * @memberof BI.NetPromoterScorePopupScheduleResponse * @static * @param {Object.} object Plain object - * @returns {Upsell.UpsellResponse} UpsellResponse + * @returns {BI.NetPromoterScorePopupScheduleResponse} NetPromoterScorePopupScheduleResponse */ - UpsellResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Upsell.UpsellResponse) + NetPromoterScorePopupScheduleResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.NetPromoterScorePopupScheduleResponse) return object; - let message = new $root.Upsell.UpsellResponse(); - if (object.UpsellBanner) { - if (!Array.isArray(object.UpsellBanner)) - throw TypeError(".Upsell.UpsellResponse.UpsellBanner: array expected"); - message.UpsellBanner = []; - for (let i = 0; i < object.UpsellBanner.length; ++i) { - if (typeof object.UpsellBanner[i] !== "object") - throw TypeError(".Upsell.UpsellResponse.UpsellBanner: object expected"); - message.UpsellBanner[i] = $root.Upsell.UpsellBanner.fromObject(object.UpsellBanner[i]); - } - } + let message = new $root.BI.NetPromoterScorePopupScheduleResponse(); + if (object.showPopup != null) + message.showPopup = Boolean(object.showPopup); return message; }; /** - * Creates a plain object from an UpsellResponse message. Also converts values to other types if specified. + * Creates a plain object from a NetPromoterScorePopupScheduleResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Upsell.UpsellResponse + * @memberof BI.NetPromoterScorePopupScheduleResponse * @static - * @param {Upsell.UpsellResponse} message UpsellResponse + * @param {BI.NetPromoterScorePopupScheduleResponse} message NetPromoterScorePopupScheduleResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpsellResponse.toObject = function toObject(message, options) { + NetPromoterScorePopupScheduleResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.UpsellBanner = []; - if (message.UpsellBanner && message.UpsellBanner.length) { - object.UpsellBanner = []; - for (let j = 0; j < message.UpsellBanner.length; ++j) - object.UpsellBanner[j] = $root.Upsell.UpsellBanner.toObject(message.UpsellBanner[j], options); - } + if (options.defaults) + object.showPopup = false; + if (message.showPopup != null && message.hasOwnProperty("showPopup")) + object.showPopup = message.showPopup; return object; }; /** - * Converts this UpsellResponse to JSON. + * Converts this NetPromoterScorePopupScheduleResponse to JSON. * @function toJSON - * @memberof Upsell.UpsellResponse + * @memberof BI.NetPromoterScorePopupScheduleResponse * @instance * @returns {Object.} JSON object */ - UpsellResponse.prototype.toJSON = function toJSON() { + NetPromoterScorePopupScheduleResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpsellResponse + * Gets the default type url for NetPromoterScorePopupScheduleResponse * @function getTypeUrl - * @memberof Upsell.UpsellResponse + * @memberof BI.NetPromoterScorePopupScheduleResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpsellResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NetPromoterScorePopupScheduleResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Upsell.UpsellResponse"; + return typeUrlPrefix + "/BI.NetPromoterScorePopupScheduleResponse"; }; - return UpsellResponse; + return NetPromoterScorePopupScheduleResponse; })(); - Upsell.UpsellBanner = (function() { + BI.NetPromoterScorePopupDismissalRequest = (function() { /** - * Properties of an UpsellBanner. - * @memberof Upsell - * @interface IUpsellBanner - * @property {number|null} [bannerId] UpsellBanner bannerId - * @property {string|null} [bannerOkAction] UpsellBanner bannerOkAction - * @property {string|null} [bannerOkButton] UpsellBanner bannerOkButton - * @property {string|null} [bannerCancelAction] UpsellBanner bannerCancelAction - * @property {string|null} [bannerCancelButton] UpsellBanner bannerCancelButton - * @property {string|null} [bannerMessage] UpsellBanner bannerMessage - * @property {string|null} [locale] UpsellBanner locale + * Properties of a NetPromoterScorePopupDismissalRequest. + * @memberof BI + * @interface INetPromoterScorePopupDismissalRequest */ /** - * Constructs a new UpsellBanner. - * @memberof Upsell - * @classdesc Represents an UpsellBanner. - * @implements IUpsellBanner + * Constructs a new NetPromoterScorePopupDismissalRequest. + * @memberof BI + * @classdesc Represents a NetPromoterScorePopupDismissalRequest. + * @implements INetPromoterScorePopupDismissalRequest * @constructor - * @param {Upsell.IUpsellBanner=} [properties] Properties to set + * @param {BI.INetPromoterScorePopupDismissalRequest=} [properties] Properties to set */ - function UpsellBanner(properties) { + function NetPromoterScorePopupDismissalRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -223212,161 +253284,63 @@ export const Upsell = $root.Upsell = (() => { } /** - * UpsellBanner bannerId. - * @member {number} bannerId - * @memberof Upsell.UpsellBanner - * @instance - */ - UpsellBanner.prototype.bannerId = 0; - - /** - * UpsellBanner bannerOkAction. - * @member {string} bannerOkAction - * @memberof Upsell.UpsellBanner - * @instance - */ - UpsellBanner.prototype.bannerOkAction = ""; - - /** - * UpsellBanner bannerOkButton. - * @member {string} bannerOkButton - * @memberof Upsell.UpsellBanner - * @instance - */ - UpsellBanner.prototype.bannerOkButton = ""; - - /** - * UpsellBanner bannerCancelAction. - * @member {string} bannerCancelAction - * @memberof Upsell.UpsellBanner - * @instance - */ - UpsellBanner.prototype.bannerCancelAction = ""; - - /** - * UpsellBanner bannerCancelButton. - * @member {string} bannerCancelButton - * @memberof Upsell.UpsellBanner - * @instance - */ - UpsellBanner.prototype.bannerCancelButton = ""; - - /** - * UpsellBanner bannerMessage. - * @member {string} bannerMessage - * @memberof Upsell.UpsellBanner - * @instance - */ - UpsellBanner.prototype.bannerMessage = ""; - - /** - * UpsellBanner locale. - * @member {string} locale - * @memberof Upsell.UpsellBanner - * @instance - */ - UpsellBanner.prototype.locale = ""; - - /** - * Creates a new UpsellBanner instance using the specified properties. + * Creates a new NetPromoterScorePopupDismissalRequest instance using the specified properties. * @function create - * @memberof Upsell.UpsellBanner + * @memberof BI.NetPromoterScorePopupDismissalRequest * @static - * @param {Upsell.IUpsellBanner=} [properties] Properties to set - * @returns {Upsell.UpsellBanner} UpsellBanner instance + * @param {BI.INetPromoterScorePopupDismissalRequest=} [properties] Properties to set + * @returns {BI.NetPromoterScorePopupDismissalRequest} NetPromoterScorePopupDismissalRequest instance */ - UpsellBanner.create = function create(properties) { - return new UpsellBanner(properties); + NetPromoterScorePopupDismissalRequest.create = function create(properties) { + return new NetPromoterScorePopupDismissalRequest(properties); }; /** - * Encodes the specified UpsellBanner message. Does not implicitly {@link Upsell.UpsellBanner.verify|verify} messages. + * Encodes the specified NetPromoterScorePopupDismissalRequest message. Does not implicitly {@link BI.NetPromoterScorePopupDismissalRequest.verify|verify} messages. * @function encode - * @memberof Upsell.UpsellBanner + * @memberof BI.NetPromoterScorePopupDismissalRequest * @static - * @param {Upsell.IUpsellBanner} message UpsellBanner message or plain object to encode + * @param {BI.INetPromoterScorePopupDismissalRequest} message NetPromoterScorePopupDismissalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpsellBanner.encode = function encode(message, writer) { + NetPromoterScorePopupDismissalRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.bannerId != null && Object.hasOwnProperty.call(message, "bannerId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.bannerId); - if (message.bannerOkAction != null && Object.hasOwnProperty.call(message, "bannerOkAction")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.bannerOkAction); - if (message.bannerOkButton != null && Object.hasOwnProperty.call(message, "bannerOkButton")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.bannerOkButton); - if (message.bannerCancelAction != null && Object.hasOwnProperty.call(message, "bannerCancelAction")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.bannerCancelAction); - if (message.bannerCancelButton != null && Object.hasOwnProperty.call(message, "bannerCancelButton")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.bannerCancelButton); - if (message.bannerMessage != null && Object.hasOwnProperty.call(message, "bannerMessage")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.bannerMessage); - if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.locale); return writer; }; /** - * Encodes the specified UpsellBanner message, length delimited. Does not implicitly {@link Upsell.UpsellBanner.verify|verify} messages. + * Encodes the specified NetPromoterScorePopupDismissalRequest message, length delimited. Does not implicitly {@link BI.NetPromoterScorePopupDismissalRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Upsell.UpsellBanner + * @memberof BI.NetPromoterScorePopupDismissalRequest * @static - * @param {Upsell.IUpsellBanner} message UpsellBanner message or plain object to encode + * @param {BI.INetPromoterScorePopupDismissalRequest} message NetPromoterScorePopupDismissalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpsellBanner.encodeDelimited = function encodeDelimited(message, writer) { + NetPromoterScorePopupDismissalRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpsellBanner message from the specified reader or buffer. + * Decodes a NetPromoterScorePopupDismissalRequest message from the specified reader or buffer. * @function decode - * @memberof Upsell.UpsellBanner + * @memberof BI.NetPromoterScorePopupDismissalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Upsell.UpsellBanner} UpsellBanner + * @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 */ - UpsellBanner.decode = function decode(reader, length) { + NetPromoterScorePopupDismissalRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Upsell.UpsellBanner(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScorePopupDismissalRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.bannerId = reader.int32(); - break; - } - case 2: { - message.bannerOkAction = reader.string(); - break; - } - case 3: { - message.bannerOkButton = reader.string(); - break; - } - case 4: { - message.bannerCancelAction = reader.string(); - break; - } - case 5: { - message.bannerCancelButton = reader.string(); - break; - } - case 6: { - message.bannerMessage = reader.string(); - break; - } - case 7: { - message.locale = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -223376,249 +253350,108 @@ export const Upsell = $root.Upsell = (() => { }; /** - * Decodes an UpsellBanner message from the specified reader or buffer, length delimited. + * Decodes a NetPromoterScorePopupDismissalRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Upsell.UpsellBanner + * @memberof BI.NetPromoterScorePopupDismissalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Upsell.UpsellBanner} UpsellBanner + * @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 */ - UpsellBanner.decodeDelimited = function decodeDelimited(reader) { + NetPromoterScorePopupDismissalRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpsellBanner message. + * Verifies a NetPromoterScorePopupDismissalRequest message. * @function verify - * @memberof Upsell.UpsellBanner + * @memberof BI.NetPromoterScorePopupDismissalRequest * @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) { + NetPromoterScorePopupDismissalRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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. + * Creates a NetPromoterScorePopupDismissalRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Upsell.UpsellBanner + * @memberof BI.NetPromoterScorePopupDismissalRequest * @static * @param {Object.} object Plain object - * @returns {Upsell.UpsellBanner} UpsellBanner + * @returns {BI.NetPromoterScorePopupDismissalRequest} NetPromoterScorePopupDismissalRequest */ - UpsellBanner.fromObject = function fromObject(object) { - if (object instanceof $root.Upsell.UpsellBanner) + NetPromoterScorePopupDismissalRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.NetPromoterScorePopupDismissalRequest) return object; - let message = new $root.Upsell.UpsellBanner(); - if (object.bannerId != null) - message.bannerId = object.bannerId | 0; - if (object.bannerOkAction != null) - message.bannerOkAction = String(object.bannerOkAction); - if (object.bannerOkButton != null) - message.bannerOkButton = String(object.bannerOkButton); - if (object.bannerCancelAction != null) - message.bannerCancelAction = String(object.bannerCancelAction); - if (object.bannerCancelButton != null) - message.bannerCancelButton = String(object.bannerCancelButton); - if (object.bannerMessage != null) - message.bannerMessage = String(object.bannerMessage); - if (object.locale != null) - message.locale = String(object.locale); - return message; + return new $root.BI.NetPromoterScorePopupDismissalRequest(); }; /** - * Creates a plain object from an UpsellBanner message. Also converts values to other types if specified. + * Creates a plain object from a NetPromoterScorePopupDismissalRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Upsell.UpsellBanner + * @memberof BI.NetPromoterScorePopupDismissalRequest * @static - * @param {Upsell.UpsellBanner} message UpsellBanner + * @param {BI.NetPromoterScorePopupDismissalRequest} message NetPromoterScorePopupDismissalRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpsellBanner.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.bannerId = 0; - object.bannerOkAction = ""; - object.bannerOkButton = ""; - object.bannerCancelAction = ""; - object.bannerCancelButton = ""; - object.bannerMessage = ""; - object.locale = ""; - } - if (message.bannerId != null && message.hasOwnProperty("bannerId")) - object.bannerId = message.bannerId; - if (message.bannerOkAction != null && message.hasOwnProperty("bannerOkAction")) - object.bannerOkAction = message.bannerOkAction; - if (message.bannerOkButton != null && message.hasOwnProperty("bannerOkButton")) - object.bannerOkButton = message.bannerOkButton; - if (message.bannerCancelAction != null && message.hasOwnProperty("bannerCancelAction")) - object.bannerCancelAction = message.bannerCancelAction; - if (message.bannerCancelButton != null && message.hasOwnProperty("bannerCancelButton")) - object.bannerCancelButton = message.bannerCancelButton; - if (message.bannerMessage != null && message.hasOwnProperty("bannerMessage")) - object.bannerMessage = message.bannerMessage; - if (message.locale != null && message.hasOwnProperty("locale")) - object.locale = message.locale; - return object; + NetPromoterScorePopupDismissalRequest.toObject = function toObject() { + return {}; }; /** - * Converts this UpsellBanner to JSON. + * Converts this NetPromoterScorePopupDismissalRequest to JSON. * @function toJSON - * @memberof Upsell.UpsellBanner + * @memberof BI.NetPromoterScorePopupDismissalRequest * @instance * @returns {Object.} JSON object */ - UpsellBanner.prototype.toJSON = function toJSON() { + NetPromoterScorePopupDismissalRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpsellBanner + * Gets the default type url for NetPromoterScorePopupDismissalRequest * @function getTypeUrl - * @memberof Upsell.UpsellBanner + * @memberof BI.NetPromoterScorePopupDismissalRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpsellBanner.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NetPromoterScorePopupDismissalRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Upsell.UpsellBanner"; + return typeUrlPrefix + "/BI.NetPromoterScorePopupDismissalRequest"; }; - return UpsellBanner; - })(); - - /** - * ClientType enum. - * @name Upsell.ClientType - * @enum {number} - * @property {number} DEFAULT_CLIENT_TYPE=0 DEFAULT_CLIENT_TYPE value - * @property {number} ALL=1 ALL value - * @property {number} ANDROID=2 ANDROID value - * @property {number} IOS=3 IOS value - * @property {number} MICROSOFT=4 MICROSOFT value - * @property {number} WEBAPP=5 WEBAPP value - */ - Upsell.ClientType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DEFAULT_CLIENT_TYPE"] = 0; - values[valuesById[1] = "ALL"] = 1; - values[valuesById[2] = "ANDROID"] = 2; - values[valuesById[3] = "IOS"] = 3; - values[valuesById[4] = "MICROSOFT"] = 4; - values[valuesById[5] = "WEBAPP"] = 5; - return values; - })(); - - /** - * ClientVersion enum. - * @name Upsell.ClientVersion - * @enum {number} - * @property {number} DEFAULT_VERSION=0 DEFAULT_VERSION value - * @property {number} SUPPORTS_ALL=1 SUPPORTS_ALL value - * @property {number} BASEVERSION=14 BASEVERSION value - * @property {number} ABOVERANGE=15 ABOVERANGE value - */ - Upsell.ClientVersion = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DEFAULT_VERSION"] = 0; - values[valuesById[1] = "SUPPORTS_ALL"] = 1; - values[valuesById[14] = "BASEVERSION"] = 14; - values[valuesById[15] = "ABOVERANGE"] = 15; - return values; - })(); - - return Upsell; -})(); - -export const BI = $root.BI = (() => { - - /** - * Namespace BI. - * @exports BI - * @namespace - */ - const BI = {}; - - /** - * Currency enum. - * @name BI.Currency - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} USD=1 USD value - * @property {number} GBP=2 GBP value - * @property {number} JPY=3 JPY value - * @property {number} EUR=4 EUR value - * @property {number} AUD=5 AUD value - * @property {number} CAD=6 CAD value - */ - BI.Currency = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "USD"] = 1; - values[valuesById[2] = "GBP"] = 2; - values[valuesById[3] = "JPY"] = 3; - values[valuesById[4] = "EUR"] = 4; - values[valuesById[5] = "AUD"] = 5; - values[valuesById[6] = "CAD"] = 6; - return values; + return NetPromoterScorePopupDismissalRequest; })(); - BI.ValidateSessionTokenRequest = (function() { + BI.NetPromoterScorePopupDismissalResponse = (function() { /** - * Properties of a ValidateSessionTokenRequest. + * Properties of a NetPromoterScorePopupDismissalResponse. * @memberof BI - * @interface IValidateSessionTokenRequest - * @property {Uint8Array|null} [encryptedSessionToken] ValidateSessionTokenRequest encryptedSessionToken - * @property {boolean|null} [returnMcEnterpiseIds] ValidateSessionTokenRequest returnMcEnterpiseIds - * @property {string|null} [ip] ValidateSessionTokenRequest ip + * @interface INetPromoterScorePopupDismissalResponse */ /** - * Constructs a new ValidateSessionTokenRequest. + * Constructs a new NetPromoterScorePopupDismissalResponse. * @memberof BI - * @classdesc Represents a ValidateSessionTokenRequest. - * @implements IValidateSessionTokenRequest + * @classdesc Represents a NetPromoterScorePopupDismissalResponse. + * @implements INetPromoterScorePopupDismissalResponse * @constructor - * @param {BI.IValidateSessionTokenRequest=} [properties] Properties to set + * @param {BI.INetPromoterScorePopupDismissalResponse=} [properties] Properties to set */ - function ValidateSessionTokenRequest(properties) { + function NetPromoterScorePopupDismissalResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -223626,105 +253459,63 @@ export const BI = $root.BI = (() => { } /** - * ValidateSessionTokenRequest encryptedSessionToken. - * @member {Uint8Array} encryptedSessionToken - * @memberof BI.ValidateSessionTokenRequest - * @instance - */ - ValidateSessionTokenRequest.prototype.encryptedSessionToken = $util.newBuffer([]); - - /** - * ValidateSessionTokenRequest returnMcEnterpiseIds. - * @member {boolean} returnMcEnterpiseIds - * @memberof BI.ValidateSessionTokenRequest - * @instance - */ - ValidateSessionTokenRequest.prototype.returnMcEnterpiseIds = false; - - /** - * ValidateSessionTokenRequest ip. - * @member {string} ip - * @memberof BI.ValidateSessionTokenRequest - * @instance - */ - ValidateSessionTokenRequest.prototype.ip = ""; - - /** - * Creates a new ValidateSessionTokenRequest instance using the specified properties. + * Creates a new NetPromoterScorePopupDismissalResponse instance using the specified properties. * @function create - * @memberof BI.ValidateSessionTokenRequest + * @memberof BI.NetPromoterScorePopupDismissalResponse * @static - * @param {BI.IValidateSessionTokenRequest=} [properties] Properties to set - * @returns {BI.ValidateSessionTokenRequest} ValidateSessionTokenRequest instance + * @param {BI.INetPromoterScorePopupDismissalResponse=} [properties] Properties to set + * @returns {BI.NetPromoterScorePopupDismissalResponse} NetPromoterScorePopupDismissalResponse instance */ - ValidateSessionTokenRequest.create = function create(properties) { - return new ValidateSessionTokenRequest(properties); + NetPromoterScorePopupDismissalResponse.create = function create(properties) { + return new NetPromoterScorePopupDismissalResponse(properties); }; /** - * Encodes the specified ValidateSessionTokenRequest message. Does not implicitly {@link BI.ValidateSessionTokenRequest.verify|verify} messages. + * Encodes the specified NetPromoterScorePopupDismissalResponse message. Does not implicitly {@link BI.NetPromoterScorePopupDismissalResponse.verify|verify} messages. * @function encode - * @memberof BI.ValidateSessionTokenRequest + * @memberof BI.NetPromoterScorePopupDismissalResponse * @static - * @param {BI.IValidateSessionTokenRequest} message ValidateSessionTokenRequest message or plain object to encode + * @param {BI.INetPromoterScorePopupDismissalResponse} message NetPromoterScorePopupDismissalResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateSessionTokenRequest.encode = function encode(message, writer) { + NetPromoterScorePopupDismissalResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedSessionToken); - if (message.returnMcEnterpiseIds != null && Object.hasOwnProperty.call(message, "returnMcEnterpiseIds")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.returnMcEnterpiseIds); - if (message.ip != null && Object.hasOwnProperty.call(message, "ip")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.ip); return writer; }; /** - * Encodes the specified ValidateSessionTokenRequest message, length delimited. Does not implicitly {@link BI.ValidateSessionTokenRequest.verify|verify} messages. + * Encodes the specified NetPromoterScorePopupDismissalResponse message, length delimited. Does not implicitly {@link BI.NetPromoterScorePopupDismissalResponse.verify|verify} messages. * @function encodeDelimited - * @memberof BI.ValidateSessionTokenRequest + * @memberof BI.NetPromoterScorePopupDismissalResponse * @static - * @param {BI.IValidateSessionTokenRequest} message ValidateSessionTokenRequest message or plain object to encode + * @param {BI.INetPromoterScorePopupDismissalResponse} message NetPromoterScorePopupDismissalResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateSessionTokenRequest.encodeDelimited = function encodeDelimited(message, writer) { + NetPromoterScorePopupDismissalResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateSessionTokenRequest message from the specified reader or buffer. + * Decodes a NetPromoterScorePopupDismissalResponse message from the specified reader or buffer. * @function decode - * @memberof BI.ValidateSessionTokenRequest + * @memberof BI.NetPromoterScorePopupDismissalResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.ValidateSessionTokenRequest} ValidateSessionTokenRequest + * @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 */ - ValidateSessionTokenRequest.decode = function decode(reader, length) { + NetPromoterScorePopupDismissalResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ValidateSessionTokenRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScorePopupDismissalResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.encryptedSessionToken = reader.bytes(); - break; - } - case 2: { - message.returnMcEnterpiseIds = reader.bool(); - break; - } - case 3: { - message.ip = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -223734,157 +253525,109 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a ValidateSessionTokenRequest message from the specified reader or buffer, length delimited. + * Decodes a NetPromoterScorePopupDismissalResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.ValidateSessionTokenRequest + * @memberof BI.NetPromoterScorePopupDismissalResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.ValidateSessionTokenRequest} ValidateSessionTokenRequest + * @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 */ - ValidateSessionTokenRequest.decodeDelimited = function decodeDelimited(reader) { + NetPromoterScorePopupDismissalResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateSessionTokenRequest message. + * Verifies a NetPromoterScorePopupDismissalResponse message. * @function verify - * @memberof BI.ValidateSessionTokenRequest + * @memberof BI.NetPromoterScorePopupDismissalResponse * @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) { + NetPromoterScorePopupDismissalResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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. + * Creates a NetPromoterScorePopupDismissalResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.ValidateSessionTokenRequest + * @memberof BI.NetPromoterScorePopupDismissalResponse * @static * @param {Object.} object Plain object - * @returns {BI.ValidateSessionTokenRequest} ValidateSessionTokenRequest + * @returns {BI.NetPromoterScorePopupDismissalResponse} NetPromoterScorePopupDismissalResponse */ - ValidateSessionTokenRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.ValidateSessionTokenRequest) + NetPromoterScorePopupDismissalResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.NetPromoterScorePopupDismissalResponse) return object; - let message = new $root.BI.ValidateSessionTokenRequest(); - if (object.encryptedSessionToken != null) - if (typeof object.encryptedSessionToken === "string") - $util.base64.decode(object.encryptedSessionToken, message.encryptedSessionToken = $util.newBuffer($util.base64.length(object.encryptedSessionToken)), 0); - else if (object.encryptedSessionToken.length >= 0) - message.encryptedSessionToken = object.encryptedSessionToken; - if (object.returnMcEnterpiseIds != null) - message.returnMcEnterpiseIds = Boolean(object.returnMcEnterpiseIds); - if (object.ip != null) - message.ip = String(object.ip); - return message; + return new $root.BI.NetPromoterScorePopupDismissalResponse(); }; /** - * Creates a plain object from a ValidateSessionTokenRequest message. Also converts values to other types if specified. + * Creates a plain object from a NetPromoterScorePopupDismissalResponse message. Also converts values to other types if specified. * @function toObject - * @memberof BI.ValidateSessionTokenRequest + * @memberof BI.NetPromoterScorePopupDismissalResponse * @static - * @param {BI.ValidateSessionTokenRequest} message ValidateSessionTokenRequest + * @param {BI.NetPromoterScorePopupDismissalResponse} message NetPromoterScorePopupDismissalResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateSessionTokenRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.encryptedSessionToken = ""; - else { - object.encryptedSessionToken = []; - if (options.bytes !== Array) - object.encryptedSessionToken = $util.newBuffer(object.encryptedSessionToken); - } - object.returnMcEnterpiseIds = false; - object.ip = ""; - } - if (message.encryptedSessionToken != null && message.hasOwnProperty("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")) - object.returnMcEnterpiseIds = message.returnMcEnterpiseIds; - if (message.ip != null && message.hasOwnProperty("ip")) - object.ip = message.ip; - return object; + NetPromoterScorePopupDismissalResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ValidateSessionTokenRequest to JSON. + * Converts this NetPromoterScorePopupDismissalResponse to JSON. * @function toJSON - * @memberof BI.ValidateSessionTokenRequest + * @memberof BI.NetPromoterScorePopupDismissalResponse * @instance * @returns {Object.} JSON object */ - ValidateSessionTokenRequest.prototype.toJSON = function toJSON() { + NetPromoterScorePopupDismissalResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateSessionTokenRequest + * Gets the default type url for NetPromoterScorePopupDismissalResponse * @function getTypeUrl - * @memberof BI.ValidateSessionTokenRequest + * @memberof BI.NetPromoterScorePopupDismissalResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateSessionTokenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NetPromoterScorePopupDismissalResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.ValidateSessionTokenRequest"; + return typeUrlPrefix + "/BI.NetPromoterScorePopupDismissalResponse"; }; - return ValidateSessionTokenRequest; + return NetPromoterScorePopupDismissalResponse; })(); - BI.ValidateSessionTokenResponse = (function() { + BI.KCMLicenseRequest = (function() { /** - * Properties of a ValidateSessionTokenResponse. + * Properties of a KCMLicenseRequest. * @memberof BI - * @interface IValidateSessionTokenResponse - * @property {string|null} [username] ValidateSessionTokenResponse username - * @property {number|null} [userId] ValidateSessionTokenResponse userId - * @property {number|Long|null} [enterpriseUserId] ValidateSessionTokenResponse enterpriseUserId - * @property {BI.ValidateSessionTokenResponse.Status|null} [status] ValidateSessionTokenResponse status - * @property {string|null} [statusMessage] ValidateSessionTokenResponse statusMessage - * @property {Array.|null} [mcEnterpriseIds] ValidateSessionTokenResponse mcEnterpriseIds - * @property {boolean|null} [hasMSPPermission] ValidateSessionTokenResponse hasMSPPermission - * @property {Array.|null} [deletedMcEnterpriseIds] ValidateSessionTokenResponse deletedMcEnterpriseIds + * @interface IKCMLicenseRequest + * @property {number|Long|null} [enterpriseUserId] KCMLicenseRequest enterpriseUserId */ /** - * Constructs a new ValidateSessionTokenResponse. + * Constructs a new KCMLicenseRequest. * @memberof BI - * @classdesc Represents a ValidateSessionTokenResponse. - * @implements IValidateSessionTokenResponse + * @classdesc Represents a KCMLicenseRequest. + * @implements IKCMLicenseRequest * @constructor - * @param {BI.IValidateSessionTokenResponse=} [properties] Properties to set + * @param {BI.IKCMLicenseRequest=} [properties] Properties to set */ - function ValidateSessionTokenResponse(properties) { - this.mcEnterpriseIds = []; - this.deletedMcEnterpriseIds = []; + function KCMLicenseRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -223892,197 +253635,77 @@ export const BI = $root.BI = (() => { } /** - * ValidateSessionTokenResponse username. - * @member {string} username - * @memberof BI.ValidateSessionTokenResponse - * @instance - */ - ValidateSessionTokenResponse.prototype.username = ""; - - /** - * ValidateSessionTokenResponse userId. - * @member {number} userId - * @memberof BI.ValidateSessionTokenResponse - * @instance - */ - ValidateSessionTokenResponse.prototype.userId = 0; - - /** - * ValidateSessionTokenResponse enterpriseUserId. + * KCMLicenseRequest enterpriseUserId. * @member {number|Long} enterpriseUserId - * @memberof BI.ValidateSessionTokenResponse - * @instance - */ - ValidateSessionTokenResponse.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ValidateSessionTokenResponse status. - * @member {BI.ValidateSessionTokenResponse.Status} status - * @memberof BI.ValidateSessionTokenResponse - * @instance - */ - ValidateSessionTokenResponse.prototype.status = 0; - - /** - * ValidateSessionTokenResponse statusMessage. - * @member {string} statusMessage - * @memberof BI.ValidateSessionTokenResponse - * @instance - */ - ValidateSessionTokenResponse.prototype.statusMessage = ""; - - /** - * ValidateSessionTokenResponse mcEnterpriseIds. - * @member {Array.} mcEnterpriseIds - * @memberof BI.ValidateSessionTokenResponse - * @instance - */ - ValidateSessionTokenResponse.prototype.mcEnterpriseIds = $util.emptyArray; - - /** - * ValidateSessionTokenResponse hasMSPPermission. - * @member {boolean} hasMSPPermission - * @memberof BI.ValidateSessionTokenResponse - * @instance - */ - ValidateSessionTokenResponse.prototype.hasMSPPermission = false; - - /** - * ValidateSessionTokenResponse deletedMcEnterpriseIds. - * @member {Array.} deletedMcEnterpriseIds - * @memberof BI.ValidateSessionTokenResponse + * @memberof BI.KCMLicenseRequest * @instance */ - ValidateSessionTokenResponse.prototype.deletedMcEnterpriseIds = $util.emptyArray; + KCMLicenseRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new ValidateSessionTokenResponse instance using the specified properties. + * Creates a new KCMLicenseRequest instance using the specified properties. * @function create - * @memberof BI.ValidateSessionTokenResponse + * @memberof BI.KCMLicenseRequest * @static - * @param {BI.IValidateSessionTokenResponse=} [properties] Properties to set - * @returns {BI.ValidateSessionTokenResponse} ValidateSessionTokenResponse instance + * @param {BI.IKCMLicenseRequest=} [properties] Properties to set + * @returns {BI.KCMLicenseRequest} KCMLicenseRequest instance */ - ValidateSessionTokenResponse.create = function create(properties) { - return new ValidateSessionTokenResponse(properties); + KCMLicenseRequest.create = function create(properties) { + return new KCMLicenseRequest(properties); }; /** - * Encodes the specified ValidateSessionTokenResponse message. Does not implicitly {@link BI.ValidateSessionTokenResponse.verify|verify} messages. + * Encodes the specified KCMLicenseRequest message. Does not implicitly {@link BI.KCMLicenseRequest.verify|verify} messages. * @function encode - * @memberof BI.ValidateSessionTokenResponse + * @memberof BI.KCMLicenseRequest * @static - * @param {BI.IValidateSessionTokenResponse} message ValidateSessionTokenResponse message or plain object to encode + * @param {BI.IKCMLicenseRequest} message KCMLicenseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateSessionTokenResponse.encode = function encode(message, writer) { + KCMLicenseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.userId); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.enterpriseUserId); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status); - if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); - if (message.mcEnterpriseIds != null && message.mcEnterpriseIds.length) { - writer.uint32(/* id 6, wireType 2 =*/50).fork(); - for (let i = 0; i < message.mcEnterpriseIds.length; ++i) - writer.int32(message.mcEnterpriseIds[i]); - writer.ldelim(); - } - if (message.hasMSPPermission != null && Object.hasOwnProperty.call(message, "hasMSPPermission")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.hasMSPPermission); - if (message.deletedMcEnterpriseIds != null && message.deletedMcEnterpriseIds.length) { - writer.uint32(/* id 8, wireType 2 =*/66).fork(); - for (let i = 0; i < message.deletedMcEnterpriseIds.length; ++i) - writer.int32(message.deletedMcEnterpriseIds[i]); - writer.ldelim(); - } + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); return writer; }; /** - * Encodes the specified ValidateSessionTokenResponse message, length delimited. Does not implicitly {@link BI.ValidateSessionTokenResponse.verify|verify} messages. + * Encodes the specified KCMLicenseRequest message, length delimited. Does not implicitly {@link BI.KCMLicenseRequest.verify|verify} messages. * @function encodeDelimited - * @memberof BI.ValidateSessionTokenResponse + * @memberof BI.KCMLicenseRequest * @static - * @param {BI.IValidateSessionTokenResponse} message ValidateSessionTokenResponse message or plain object to encode + * @param {BI.IKCMLicenseRequest} message KCMLicenseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateSessionTokenResponse.encodeDelimited = function encodeDelimited(message, writer) { + KCMLicenseRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateSessionTokenResponse message from the specified reader or buffer. + * Decodes a KCMLicenseRequest message from the specified reader or buffer. * @function decode - * @memberof BI.ValidateSessionTokenResponse + * @memberof BI.KCMLicenseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.ValidateSessionTokenResponse} ValidateSessionTokenResponse + * @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 */ - ValidateSessionTokenResponse.decode = function decode(reader, length) { + KCMLicenseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ValidateSessionTokenResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.KCMLicenseRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.username = reader.string(); - break; - } - case 2: { - message.userId = reader.int32(); - break; - } - case 3: { message.enterpriseUserId = reader.int64(); break; } - case 4: { - message.status = reader.int32(); - break; - } - case 5: { - message.statusMessage = reader.string(); - break; - } - case 6: { - if (!(message.mcEnterpriseIds && message.mcEnterpriseIds.length)) - message.mcEnterpriseIds = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.mcEnterpriseIds.push(reader.int32()); - } else - message.mcEnterpriseIds.push(reader.int32()); - break; - } - case 7: { - message.hasMSPPermission = reader.bool(); - break; - } - case 8: { - if (!(message.deletedMcEnterpriseIds && message.deletedMcEnterpriseIds.length)) - message.deletedMcEnterpriseIds = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.deletedMcEnterpriseIds.push(reader.int32()); - } else - message.deletedMcEnterpriseIds.push(reader.int32()); - break; - } default: reader.skipType(tag & 7); break; @@ -224092,91 +253715,50 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a ValidateSessionTokenResponse message from the specified reader or buffer, length delimited. + * Decodes a KCMLicenseRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.ValidateSessionTokenResponse + * @memberof BI.KCMLicenseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.ValidateSessionTokenResponse} ValidateSessionTokenResponse + * @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 */ - ValidateSessionTokenResponse.decodeDelimited = function decodeDelimited(reader) { + KCMLicenseRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateSessionTokenResponse message. + * Verifies a KCMLicenseRequest message. * @function verify - * @memberof BI.ValidateSessionTokenResponse + * @memberof BI.KCMLicenseRequest * @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) { + KCMLicenseRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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. + * Creates a KCMLicenseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.ValidateSessionTokenResponse + * @memberof BI.KCMLicenseRequest * @static * @param {Object.} object Plain object - * @returns {BI.ValidateSessionTokenResponse} ValidateSessionTokenResponse + * @returns {BI.KCMLicenseRequest} KCMLicenseRequest */ - ValidateSessionTokenResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.ValidateSessionTokenResponse) + KCMLicenseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.KCMLicenseRequest) return object; - let message = new $root.BI.ValidateSessionTokenResponse(); - if (object.username != null) - message.username = String(object.username); - if (object.userId != null) - message.userId = object.userId | 0; + let message = new $root.BI.KCMLicenseRequest(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; @@ -224186,178 +253768,83 @@ export const BI = $root.BI = (() => { message.enterpriseUserId = object.enterpriseUserId; else if (typeof object.enterpriseUserId === "object") message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; - } - break; - case "VALID": - case 0: - message.status = 0; - break; - case "NOT_VALID": - case 1: - message.status = 1; - break; - case "EXPIRED": - case 2: - message.status = 2; - break; - case "IP_BLOCKED": - case 3: - message.status = 3; - break; - case "INVALID_CLIENT_VERSION": - case 4: - message.status = 4; - break; - } - if (object.statusMessage != null) - message.statusMessage = String(object.statusMessage); - if (object.mcEnterpriseIds) { - if (!Array.isArray(object.mcEnterpriseIds)) - throw TypeError(".BI.ValidateSessionTokenResponse.mcEnterpriseIds: array expected"); - message.mcEnterpriseIds = []; - for (let i = 0; i < object.mcEnterpriseIds.length; ++i) - message.mcEnterpriseIds[i] = object.mcEnterpriseIds[i] | 0; - } - if (object.hasMSPPermission != null) - message.hasMSPPermission = Boolean(object.hasMSPPermission); - if (object.deletedMcEnterpriseIds) { - if (!Array.isArray(object.deletedMcEnterpriseIds)) - throw TypeError(".BI.ValidateSessionTokenResponse.deletedMcEnterpriseIds: array expected"); - message.deletedMcEnterpriseIds = []; - for (let i = 0; i < object.deletedMcEnterpriseIds.length; ++i) - message.deletedMcEnterpriseIds[i] = object.deletedMcEnterpriseIds[i] | 0; - } return message; }; /** - * Creates a plain object from a ValidateSessionTokenResponse message. Also converts values to other types if specified. + * Creates a plain object from a KCMLicenseRequest message. Also converts values to other types if specified. * @function toObject - * @memberof BI.ValidateSessionTokenResponse + * @memberof BI.KCMLicenseRequest * @static - * @param {BI.ValidateSessionTokenResponse} message ValidateSessionTokenResponse + * @param {BI.KCMLicenseRequest} message KCMLicenseRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateSessionTokenResponse.toObject = function toObject(message, options) { + KCMLicenseRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.mcEnterpriseIds = []; - object.deletedMcEnterpriseIds = []; - } - if (options.defaults) { - object.username = ""; - object.userId = 0; + if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.enterpriseUserId = options.longs === String ? "0" : 0; - object.status = options.enums === String ? "VALID" : 0; - object.statusMessage = ""; - object.hasMSPPermission = false; - } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) 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")) - 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")) - 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")) - object.hasMSPPermission = message.hasMSPPermission; - if (message.deletedMcEnterpriseIds && message.deletedMcEnterpriseIds.length) { - object.deletedMcEnterpriseIds = []; - for (let j = 0; j < message.deletedMcEnterpriseIds.length; ++j) - object.deletedMcEnterpriseIds[j] = message.deletedMcEnterpriseIds[j]; - } return object; }; /** - * Converts this ValidateSessionTokenResponse to JSON. + * Converts this KCMLicenseRequest to JSON. * @function toJSON - * @memberof BI.ValidateSessionTokenResponse + * @memberof BI.KCMLicenseRequest * @instance * @returns {Object.} JSON object */ - ValidateSessionTokenResponse.prototype.toJSON = function toJSON() { + KCMLicenseRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateSessionTokenResponse + * Gets the default type url for KCMLicenseRequest * @function getTypeUrl - * @memberof BI.ValidateSessionTokenResponse + * @memberof BI.KCMLicenseRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateSessionTokenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + KCMLicenseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.ValidateSessionTokenResponse"; + return typeUrlPrefix + "/BI.KCMLicenseRequest"; }; - /** - * Status enum. - * @name BI.ValidateSessionTokenResponse.Status - * @enum {number} - * @property {number} VALID=0 VALID value - * @property {number} NOT_VALID=1 NOT_VALID value - * @property {number} EXPIRED=2 EXPIRED value - * @property {number} IP_BLOCKED=3 IP_BLOCKED value - * @property {number} INVALID_CLIENT_VERSION=4 INVALID_CLIENT_VERSION value - */ - ValidateSessionTokenResponse.Status = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "VALID"] = 0; - values[valuesById[1] = "NOT_VALID"] = 1; - values[valuesById[2] = "EXPIRED"] = 2; - values[valuesById[3] = "IP_BLOCKED"] = 3; - values[valuesById[4] = "INVALID_CLIENT_VERSION"] = 4; - return values; - })(); - - return ValidateSessionTokenResponse; + return KCMLicenseRequest; })(); - BI.SubscriptionStatusRequest = (function() { + BI.KCMLicenseResponse = (function() { /** - * Properties of a SubscriptionStatusRequest. + * Properties of a KCMLicenseResponse. * @memberof BI - * @interface ISubscriptionStatusRequest + * @interface IKCMLicenseResponse + * @property {string|null} [message] KCMLicenseResponse message */ /** - * Constructs a new SubscriptionStatusRequest. + * Constructs a new KCMLicenseResponse. * @memberof BI - * @classdesc Represents a SubscriptionStatusRequest. - * @implements ISubscriptionStatusRequest + * @classdesc Represents a KCMLicenseResponse. + * @implements IKCMLicenseResponse * @constructor - * @param {BI.ISubscriptionStatusRequest=} [properties] Properties to set + * @param {BI.IKCMLicenseResponse=} [properties] Properties to set */ - function SubscriptionStatusRequest(properties) { + function KCMLicenseResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -224365,63 +253852,77 @@ export const BI = $root.BI = (() => { } /** - * Creates a new SubscriptionStatusRequest instance using the specified properties. + * KCMLicenseResponse message. + * @member {string} message + * @memberof BI.KCMLicenseResponse + * @instance + */ + KCMLicenseResponse.prototype.message = ""; + + /** + * Creates a new KCMLicenseResponse instance using the specified properties. * @function create - * @memberof BI.SubscriptionStatusRequest + * @memberof BI.KCMLicenseResponse * @static - * @param {BI.ISubscriptionStatusRequest=} [properties] Properties to set - * @returns {BI.SubscriptionStatusRequest} SubscriptionStatusRequest instance + * @param {BI.IKCMLicenseResponse=} [properties] Properties to set + * @returns {BI.KCMLicenseResponse} KCMLicenseResponse instance */ - SubscriptionStatusRequest.create = function create(properties) { - return new SubscriptionStatusRequest(properties); + KCMLicenseResponse.create = function create(properties) { + return new KCMLicenseResponse(properties); }; /** - * Encodes the specified SubscriptionStatusRequest message. Does not implicitly {@link BI.SubscriptionStatusRequest.verify|verify} messages. + * Encodes the specified KCMLicenseResponse message. Does not implicitly {@link BI.KCMLicenseResponse.verify|verify} messages. * @function encode - * @memberof BI.SubscriptionStatusRequest + * @memberof BI.KCMLicenseResponse * @static - * @param {BI.ISubscriptionStatusRequest} message SubscriptionStatusRequest message or plain object to encode + * @param {BI.IKCMLicenseResponse} message KCMLicenseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionStatusRequest.encode = function encode(message, writer) { + KCMLicenseResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.message); return writer; }; /** - * Encodes the specified SubscriptionStatusRequest message, length delimited. Does not implicitly {@link BI.SubscriptionStatusRequest.verify|verify} messages. + * Encodes the specified KCMLicenseResponse message, length delimited. Does not implicitly {@link BI.KCMLicenseResponse.verify|verify} messages. * @function encodeDelimited - * @memberof BI.SubscriptionStatusRequest + * @memberof BI.KCMLicenseResponse * @static - * @param {BI.ISubscriptionStatusRequest} message SubscriptionStatusRequest message or plain object to encode + * @param {BI.IKCMLicenseResponse} message KCMLicenseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { + KCMLicenseResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SubscriptionStatusRequest message from the specified reader or buffer. + * Decodes a KCMLicenseResponse message from the specified reader or buffer. * @function decode - * @memberof BI.SubscriptionStatusRequest + * @memberof BI.KCMLicenseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.SubscriptionStatusRequest} SubscriptionStatusRequest + * @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 */ - SubscriptionStatusRequest.decode = function decode(reader, length) { + KCMLicenseResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionStatusRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.KCMLicenseResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.message = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -224431,121 +253932,151 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a SubscriptionStatusRequest message from the specified reader or buffer, length delimited. + * Decodes a KCMLicenseResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.SubscriptionStatusRequest + * @memberof BI.KCMLicenseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SubscriptionStatusRequest} SubscriptionStatusRequest + * @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 */ - SubscriptionStatusRequest.decodeDelimited = function decodeDelimited(reader) { + KCMLicenseResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SubscriptionStatusRequest message. + * Verifies a KCMLicenseResponse message. * @function verify - * @memberof BI.SubscriptionStatusRequest + * @memberof BI.KCMLicenseResponse * @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) { + KCMLicenseResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; return null; }; /** - * Creates a SubscriptionStatusRequest message from a plain object. Also converts values to their respective internal types. + * Creates a KCMLicenseResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.SubscriptionStatusRequest + * @memberof BI.KCMLicenseResponse * @static * @param {Object.} object Plain object - * @returns {BI.SubscriptionStatusRequest} SubscriptionStatusRequest + * @returns {BI.KCMLicenseResponse} KCMLicenseResponse */ - SubscriptionStatusRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SubscriptionStatusRequest) + KCMLicenseResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.KCMLicenseResponse) return object; - return new $root.BI.SubscriptionStatusRequest(); + let message = new $root.BI.KCMLicenseResponse(); + if (object.message != null) + message.message = String(object.message); + return message; }; /** - * Creates a plain object from a SubscriptionStatusRequest message. Also converts values to other types if specified. + * Creates a plain object from a KCMLicenseResponse message. Also converts values to other types if specified. * @function toObject - * @memberof BI.SubscriptionStatusRequest + * @memberof BI.KCMLicenseResponse * @static - * @param {BI.SubscriptionStatusRequest} message SubscriptionStatusRequest + * @param {BI.KCMLicenseResponse} message KCMLicenseResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SubscriptionStatusRequest.toObject = function toObject() { - return {}; + KCMLicenseResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.message = ""; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + return object; }; /** - * Converts this SubscriptionStatusRequest to JSON. + * Converts this KCMLicenseResponse to JSON. * @function toJSON - * @memberof BI.SubscriptionStatusRequest + * @memberof BI.KCMLicenseResponse * @instance * @returns {Object.} JSON object */ - SubscriptionStatusRequest.prototype.toJSON = function toJSON() { + KCMLicenseResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SubscriptionStatusRequest + * Gets the default type url for KCMLicenseResponse * @function getTypeUrl - * @memberof BI.SubscriptionStatusRequest + * @memberof BI.KCMLicenseResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SubscriptionStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + KCMLicenseResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.SubscriptionStatusRequest"; + return typeUrlPrefix + "/BI.KCMLicenseResponse"; }; - return SubscriptionStatusRequest; + return KCMLicenseResponse; })(); - BI.SubscriptionStatusResponse = (function() { + /** + * EventType enum. + * @name BI.EventType + * @enum {number} + * @property {number} UNKNOWN_TRACKING_EVENT_TYPE=0 UNKNOWN_TRACKING_EVENT_TYPE value + * @property {number} TRACKING_POPUP_DISPLAYED=1 TRACKING_POPUP_DISPLAYED value + * @property {number} TRACKING_POPUP_ACCEPTED=2 TRACKING_POPUP_ACCEPTED value + * @property {number} TRACKING_POPUP_DISMISSED=3 TRACKING_POPUP_DISMISSED value + * @property {number} TRACKING_POPUP_PAID=4 TRACKING_POPUP_PAID value + * @property {number} TRACKING_PUSH_CLICKED=5 TRACKING_PUSH_CLICKED value + * @property {number} CONSOLE_ACTION=6 CONSOLE_ACTION value + * @property {number} VAULT_ACTION=7 VAULT_ACTION value + */ + BI.EventType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN_TRACKING_EVENT_TYPE"] = 0; + values[valuesById[1] = "TRACKING_POPUP_DISPLAYED"] = 1; + values[valuesById[2] = "TRACKING_POPUP_ACCEPTED"] = 2; + values[valuesById[3] = "TRACKING_POPUP_DISMISSED"] = 3; + values[valuesById[4] = "TRACKING_POPUP_PAID"] = 4; + values[valuesById[5] = "TRACKING_PUSH_CLICKED"] = 5; + values[valuesById[6] = "CONSOLE_ACTION"] = 6; + values[valuesById[7] = "VAULT_ACTION"] = 7; + return values; + })(); + + BI.EventRequest = (function() { /** - * Properties of a SubscriptionStatusResponse. + * Properties of an EventRequest. * @memberof BI - * @interface ISubscriptionStatusResponse - * @property {BI.IAutoRenewal|null} [autoRenewal] SubscriptionStatusResponse autoRenewal - * @property {BI.IPaymentMethod|null} [currentPaymentMethod] SubscriptionStatusResponse currentPaymentMethod - * @property {string|null} [checkoutLink] SubscriptionStatusResponse checkoutLink - * @property {number|Long|null} [licenseCreateDate] SubscriptionStatusResponse licenseCreateDate - * @property {boolean|null} [isDistributor] SubscriptionStatusResponse isDistributor - * @property {boolean|null} [isLegacyMsp] SubscriptionStatusResponse isLegacyMsp - * @property {Array.|null} [licenseStats] SubscriptionStatusResponse licenseStats - * @property {BI.GradientIntegrationStatus|null} [gradientStatus] SubscriptionStatusResponse gradientStatus - * @property {boolean|null} [hideTrialBanner] SubscriptionStatusResponse hideTrialBanner - * @property {string|null} [gradientLastSyncDate] SubscriptionStatusResponse gradientLastSyncDate - * @property {string|null} [gradientNextSyncDate] SubscriptionStatusResponse gradientNextSyncDate - * @property {boolean|null} [isGradientMappingPending] SubscriptionStatusResponse isGradientMappingPending + * @interface IEventRequest + * @property {BI.EventType|null} [eventType] EventRequest eventType + * @property {string|null} [eventValue] EventRequest eventValue + * @property {number|Long|null} [eventTime] EventRequest eventTime + * @property {google.protobuf.IStruct|null} [attributes] EventRequest attributes */ /** - * Constructs a new SubscriptionStatusResponse. + * Constructs a new EventRequest. * @memberof BI - * @classdesc Represents a SubscriptionStatusResponse. - * @implements ISubscriptionStatusResponse + * @classdesc Represents an EventRequest. + * @implements IEventRequest * @constructor - * @param {BI.ISubscriptionStatusResponse=} [properties] Properties to set + * @param {BI.IEventRequest=} [properties] Properties to set */ - function SubscriptionStatusResponse(properties) { - this.licenseStats = []; + function EventRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -224553,232 +254084,117 @@ export const BI = $root.BI = (() => { } /** - * SubscriptionStatusResponse autoRenewal. - * @member {BI.IAutoRenewal|null|undefined} autoRenewal - * @memberof BI.SubscriptionStatusResponse - * @instance - */ - SubscriptionStatusResponse.prototype.autoRenewal = null; - - /** - * SubscriptionStatusResponse currentPaymentMethod. - * @member {BI.IPaymentMethod|null|undefined} currentPaymentMethod - * @memberof BI.SubscriptionStatusResponse - * @instance - */ - SubscriptionStatusResponse.prototype.currentPaymentMethod = null; - - /** - * SubscriptionStatusResponse checkoutLink. - * @member {string} checkoutLink - * @memberof BI.SubscriptionStatusResponse - * @instance - */ - SubscriptionStatusResponse.prototype.checkoutLink = ""; - - /** - * SubscriptionStatusResponse licenseCreateDate. - * @member {number|Long} licenseCreateDate - * @memberof BI.SubscriptionStatusResponse - * @instance - */ - SubscriptionStatusResponse.prototype.licenseCreateDate = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * SubscriptionStatusResponse isDistributor. - * @member {boolean} isDistributor - * @memberof BI.SubscriptionStatusResponse - * @instance - */ - SubscriptionStatusResponse.prototype.isDistributor = false; - - /** - * SubscriptionStatusResponse isLegacyMsp. - * @member {boolean} isLegacyMsp - * @memberof BI.SubscriptionStatusResponse - * @instance - */ - SubscriptionStatusResponse.prototype.isLegacyMsp = false; - - /** - * SubscriptionStatusResponse licenseStats. - * @member {Array.} licenseStats - * @memberof BI.SubscriptionStatusResponse - * @instance - */ - SubscriptionStatusResponse.prototype.licenseStats = $util.emptyArray; - - /** - * SubscriptionStatusResponse gradientStatus. - * @member {BI.GradientIntegrationStatus} gradientStatus - * @memberof BI.SubscriptionStatusResponse - * @instance - */ - SubscriptionStatusResponse.prototype.gradientStatus = 0; - - /** - * SubscriptionStatusResponse hideTrialBanner. - * @member {boolean} hideTrialBanner - * @memberof BI.SubscriptionStatusResponse + * EventRequest eventType. + * @member {BI.EventType} eventType + * @memberof BI.EventRequest * @instance */ - SubscriptionStatusResponse.prototype.hideTrialBanner = false; + EventRequest.prototype.eventType = 0; /** - * SubscriptionStatusResponse gradientLastSyncDate. - * @member {string} gradientLastSyncDate - * @memberof BI.SubscriptionStatusResponse + * EventRequest eventValue. + * @member {string} eventValue + * @memberof BI.EventRequest * @instance */ - SubscriptionStatusResponse.prototype.gradientLastSyncDate = ""; + EventRequest.prototype.eventValue = ""; /** - * SubscriptionStatusResponse gradientNextSyncDate. - * @member {string} gradientNextSyncDate - * @memberof BI.SubscriptionStatusResponse + * EventRequest eventTime. + * @member {number|Long} eventTime + * @memberof BI.EventRequest * @instance */ - SubscriptionStatusResponse.prototype.gradientNextSyncDate = ""; + EventRequest.prototype.eventTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * SubscriptionStatusResponse isGradientMappingPending. - * @member {boolean} isGradientMappingPending - * @memberof BI.SubscriptionStatusResponse + * EventRequest attributes. + * @member {google.protobuf.IStruct|null|undefined} attributes + * @memberof BI.EventRequest * @instance */ - SubscriptionStatusResponse.prototype.isGradientMappingPending = false; + EventRequest.prototype.attributes = null; /** - * Creates a new SubscriptionStatusResponse instance using the specified properties. + * Creates a new EventRequest instance using the specified properties. * @function create - * @memberof BI.SubscriptionStatusResponse + * @memberof BI.EventRequest * @static - * @param {BI.ISubscriptionStatusResponse=} [properties] Properties to set - * @returns {BI.SubscriptionStatusResponse} SubscriptionStatusResponse instance + * @param {BI.IEventRequest=} [properties] Properties to set + * @returns {BI.EventRequest} EventRequest instance */ - SubscriptionStatusResponse.create = function create(properties) { - return new SubscriptionStatusResponse(properties); + EventRequest.create = function create(properties) { + return new EventRequest(properties); }; /** - * Encodes the specified SubscriptionStatusResponse message. Does not implicitly {@link BI.SubscriptionStatusResponse.verify|verify} messages. + * Encodes the specified EventRequest message. Does not implicitly {@link BI.EventRequest.verify|verify} messages. * @function encode - * @memberof BI.SubscriptionStatusResponse + * @memberof BI.EventRequest * @static - * @param {BI.ISubscriptionStatusResponse} message SubscriptionStatusResponse message or plain object to encode + * @param {BI.IEventRequest} message EventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionStatusResponse.encode = function encode(message, writer) { + EventRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.autoRenewal != null && Object.hasOwnProperty.call(message, "autoRenewal")) - $root.BI.AutoRenewal.encode(message.autoRenewal, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.currentPaymentMethod != null && Object.hasOwnProperty.call(message, "currentPaymentMethod")) - $root.BI.PaymentMethod.encode(message.currentPaymentMethod, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.checkoutLink != null && Object.hasOwnProperty.call(message, "checkoutLink")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.checkoutLink); - if (message.licenseCreateDate != null && Object.hasOwnProperty.call(message, "licenseCreateDate")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.licenseCreateDate); - if (message.isDistributor != null && Object.hasOwnProperty.call(message, "isDistributor")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isDistributor); - if (message.isLegacyMsp != null && Object.hasOwnProperty.call(message, "isLegacyMsp")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isLegacyMsp); - if (message.licenseStats != null && message.licenseStats.length) - for (let i = 0; i < message.licenseStats.length; ++i) - $root.BI.LicenseStats.encode(message.licenseStats[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.gradientStatus != null && Object.hasOwnProperty.call(message, "gradientStatus")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.gradientStatus); - if (message.hideTrialBanner != null && Object.hasOwnProperty.call(message, "hideTrialBanner")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.hideTrialBanner); - if (message.gradientLastSyncDate != null && Object.hasOwnProperty.call(message, "gradientLastSyncDate")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.gradientLastSyncDate); - if (message.gradientNextSyncDate != null && Object.hasOwnProperty.call(message, "gradientNextSyncDate")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.gradientNextSyncDate); - if (message.isGradientMappingPending != null && Object.hasOwnProperty.call(message, "isGradientMappingPending")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.isGradientMappingPending); + if (message.eventType != null && Object.hasOwnProperty.call(message, "eventType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.eventType); + if (message.eventValue != null && Object.hasOwnProperty.call(message, "eventValue")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.eventValue); + if (message.eventTime != null && Object.hasOwnProperty.call(message, "eventTime")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.eventTime); + if (message.attributes != null && Object.hasOwnProperty.call(message, "attributes")) + $root.google.protobuf.Struct.encode(message.attributes, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified SubscriptionStatusResponse message, length delimited. Does not implicitly {@link BI.SubscriptionStatusResponse.verify|verify} messages. + * Encodes the specified EventRequest message, length delimited. Does not implicitly {@link BI.EventRequest.verify|verify} messages. * @function encodeDelimited - * @memberof BI.SubscriptionStatusResponse + * @memberof BI.EventRequest * @static - * @param {BI.ISubscriptionStatusResponse} message SubscriptionStatusResponse message or plain object to encode + * @param {BI.IEventRequest} message EventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { + EventRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SubscriptionStatusResponse message from the specified reader or buffer. + * Decodes an EventRequest message from the specified reader or buffer. * @function decode - * @memberof BI.SubscriptionStatusResponse + * @memberof BI.EventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.SubscriptionStatusResponse} SubscriptionStatusResponse + * @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 */ - SubscriptionStatusResponse.decode = function decode(reader, length) { + EventRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionStatusResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EventRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.autoRenewal = $root.BI.AutoRenewal.decode(reader, reader.uint32()); + message.eventType = reader.int32(); break; } case 2: { - message.currentPaymentMethod = $root.BI.PaymentMethod.decode(reader, reader.uint32()); + message.eventValue = reader.string(); break; } case 3: { - message.checkoutLink = reader.string(); + message.eventTime = reader.int64(); break; } case 4: { - message.licenseCreateDate = reader.int64(); - break; - } - case 5: { - message.isDistributor = reader.bool(); - break; - } - case 6: { - message.isLegacyMsp = reader.bool(); - break; - } - case 8: { - if (!(message.licenseStats && message.licenseStats.length)) - message.licenseStats = []; - message.licenseStats.push($root.BI.LicenseStats.decode(reader, reader.uint32())); - break; - } - case 9: { - message.gradientStatus = reader.int32(); - break; - } - case 10: { - message.hideTrialBanner = reader.bool(); - break; - } - case 11: { - message.gradientLastSyncDate = reader.string(); - break; - } - case 12: { - message.gradientNextSyncDate = reader.string(); - break; - } - case 13: { - message.isGradientMappingPending = reader.bool(); + message.attributes = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; } default: @@ -224790,284 +254206,216 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a SubscriptionStatusResponse message from the specified reader or buffer, length delimited. + * Decodes an EventRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.SubscriptionStatusResponse + * @memberof BI.EventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SubscriptionStatusResponse} SubscriptionStatusResponse + * @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 */ - SubscriptionStatusResponse.decodeDelimited = function decodeDelimited(reader) { + EventRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SubscriptionStatusResponse message. + * Verifies an EventRequest message. * @function verify - * @memberof BI.SubscriptionStatusResponse + * @memberof BI.EventRequest * @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) { + EventRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.autoRenewal != null && message.hasOwnProperty("autoRenewal")) { - let error = $root.BI.AutoRenewal.verify(message.autoRenewal); - if (error) - return "autoRenewal." + error; - } - if (message.currentPaymentMethod != null && message.hasOwnProperty("currentPaymentMethod")) { - let error = $root.BI.PaymentMethod.verify(message.currentPaymentMethod); - 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]); - if (error) - return "licenseStats." + error; - } - } - if (message.gradientStatus != null && message.hasOwnProperty("gradientStatus")) - switch (message.gradientStatus) { + if (message.eventType != null && message.hasOwnProperty("eventType")) + switch (message.eventType) { default: - return "gradientStatus: enum value expected"; + return "eventType: enum value expected"; case 0: case 1: case 2: case 3: + case 4: + case 5: + case 6: + case 7: 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.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); + if (error) + return "attributes." + error; + } return null; }; /** - * Creates a SubscriptionStatusResponse message from a plain object. Also converts values to their respective internal types. + * Creates an EventRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.SubscriptionStatusResponse + * @memberof BI.EventRequest * @static * @param {Object.} object Plain object - * @returns {BI.SubscriptionStatusResponse} SubscriptionStatusResponse + * @returns {BI.EventRequest} EventRequest */ - SubscriptionStatusResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SubscriptionStatusResponse) + EventRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.EventRequest) return object; - let message = new $root.BI.SubscriptionStatusResponse(); - if (object.autoRenewal != null) { - if (typeof object.autoRenewal !== "object") - throw TypeError(".BI.SubscriptionStatusResponse.autoRenewal: object expected"); - message.autoRenewal = $root.BI.AutoRenewal.fromObject(object.autoRenewal); - } - if (object.currentPaymentMethod != null) { - if (typeof object.currentPaymentMethod !== "object") - throw TypeError(".BI.SubscriptionStatusResponse.currentPaymentMethod: object expected"); - message.currentPaymentMethod = $root.BI.PaymentMethod.fromObject(object.currentPaymentMethod); - } - if (object.checkoutLink != null) - message.checkoutLink = String(object.checkoutLink); - if (object.licenseCreateDate != null) - if ($util.Long) - (message.licenseCreateDate = $util.Long.fromValue(object.licenseCreateDate)).unsigned = false; - else if (typeof object.licenseCreateDate === "string") - message.licenseCreateDate = parseInt(object.licenseCreateDate, 10); - else if (typeof object.licenseCreateDate === "number") - message.licenseCreateDate = object.licenseCreateDate; - else if (typeof object.licenseCreateDate === "object") - message.licenseCreateDate = new $util.LongBits(object.licenseCreateDate.low >>> 0, object.licenseCreateDate.high >>> 0).toNumber(); - if (object.isDistributor != null) - message.isDistributor = Boolean(object.isDistributor); - if (object.isLegacyMsp != null) - message.isLegacyMsp = Boolean(object.isLegacyMsp); - if (object.licenseStats) { - if (!Array.isArray(object.licenseStats)) - throw TypeError(".BI.SubscriptionStatusResponse.licenseStats: array expected"); - message.licenseStats = []; - for (let i = 0; i < object.licenseStats.length; ++i) { - if (typeof object.licenseStats[i] !== "object") - throw TypeError(".BI.SubscriptionStatusResponse.licenseStats: object expected"); - message.licenseStats[i] = $root.BI.LicenseStats.fromObject(object.licenseStats[i]); - } - } - switch (object.gradientStatus) { + let message = new $root.BI.EventRequest(); + switch (object.eventType) { default: - if (typeof object.gradientStatus === "number") { - message.gradientStatus = object.gradientStatus; + if (typeof object.eventType === "number") { + message.eventType = object.eventType; break; } break; - case "NOTCONNECTED": + case "UNKNOWN_TRACKING_EVENT_TYPE": case 0: - message.gradientStatus = 0; + message.eventType = 0; break; - case "PENDING": + case "TRACKING_POPUP_DISPLAYED": case 1: - message.gradientStatus = 1; + message.eventType = 1; break; - case "CONNECTED": + case "TRACKING_POPUP_ACCEPTED": case 2: - message.gradientStatus = 2; + message.eventType = 2; break; - case "NONE": + case "TRACKING_POPUP_DISMISSED": case 3: - message.gradientStatus = 3; + message.eventType = 3; + break; + case "TRACKING_POPUP_PAID": + case 4: + message.eventType = 4; + break; + case "TRACKING_PUSH_CLICKED": + case 5: + message.eventType = 5; + break; + case "CONSOLE_ACTION": + case 6: + message.eventType = 6; + break; + case "VAULT_ACTION": + case 7: + message.eventType = 7; break; } - if (object.hideTrialBanner != null) - message.hideTrialBanner = Boolean(object.hideTrialBanner); - if (object.gradientLastSyncDate != null) - message.gradientLastSyncDate = String(object.gradientLastSyncDate); - if (object.gradientNextSyncDate != null) - message.gradientNextSyncDate = String(object.gradientNextSyncDate); - if (object.isGradientMappingPending != null) - message.isGradientMappingPending = Boolean(object.isGradientMappingPending); + if (object.eventValue != null) + message.eventValue = String(object.eventValue); + if (object.eventTime != null) + if ($util.Long) + (message.eventTime = $util.Long.fromValue(object.eventTime)).unsigned = false; + else if (typeof object.eventTime === "string") + message.eventTime = parseInt(object.eventTime, 10); + else if (typeof object.eventTime === "number") + message.eventTime = object.eventTime; + 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") + throw TypeError(".BI.EventRequest.attributes: object expected"); + message.attributes = $root.google.protobuf.Struct.fromObject(object.attributes); + } return message; }; /** - * Creates a plain object from a SubscriptionStatusResponse message. Also converts values to other types if specified. + * Creates a plain object from an EventRequest message. Also converts values to other types if specified. * @function toObject - * @memberof BI.SubscriptionStatusResponse + * @memberof BI.EventRequest * @static - * @param {BI.SubscriptionStatusResponse} message SubscriptionStatusResponse + * @param {BI.EventRequest} message EventRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SubscriptionStatusResponse.toObject = function toObject(message, options) { + EventRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.licenseStats = []; if (options.defaults) { - object.autoRenewal = null; - object.currentPaymentMethod = null; - object.checkoutLink = ""; + object.eventType = options.enums === String ? "UNKNOWN_TRACKING_EVENT_TYPE" : 0; + object.eventValue = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.licenseCreateDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.eventTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.licenseCreateDate = options.longs === String ? "0" : 0; - object.isDistributor = false; - object.isLegacyMsp = false; - object.gradientStatus = options.enums === String ? "NOTCONNECTED" : 0; - object.hideTrialBanner = false; - object.gradientLastSyncDate = ""; - object.gradientNextSyncDate = ""; - object.isGradientMappingPending = false; + object.eventTime = options.longs === String ? "0" : 0; + object.attributes = null; } - if (message.autoRenewal != null && message.hasOwnProperty("autoRenewal")) - object.autoRenewal = $root.BI.AutoRenewal.toObject(message.autoRenewal, options); - if (message.currentPaymentMethod != null && message.hasOwnProperty("currentPaymentMethod")) - object.currentPaymentMethod = $root.BI.PaymentMethod.toObject(message.currentPaymentMethod, options); - if (message.checkoutLink != null && message.hasOwnProperty("checkoutLink")) - object.checkoutLink = message.checkoutLink; - if (message.licenseCreateDate != null && message.hasOwnProperty("licenseCreateDate")) - if (typeof message.licenseCreateDate === "number") - object.licenseCreateDate = options.longs === String ? String(message.licenseCreateDate) : message.licenseCreateDate; + if (message.eventType != null && message.hasOwnProperty("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")) + object.eventValue = message.eventValue; + if (message.eventTime != null && message.hasOwnProperty("eventTime")) + if (typeof message.eventTime === "number") + object.eventTime = options.longs === String ? String(message.eventTime) : message.eventTime; 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")) - object.isDistributor = message.isDistributor; - if (message.isLegacyMsp != null && message.hasOwnProperty("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); - } - if (message.gradientStatus != null && message.hasOwnProperty("gradientStatus")) - object.gradientStatus = options.enums === String ? $root.BI.GradientIntegrationStatus[message.gradientStatus] === undefined ? message.gradientStatus : $root.BI.GradientIntegrationStatus[message.gradientStatus] : message.gradientStatus; - if (message.hideTrialBanner != null && message.hasOwnProperty("hideTrialBanner")) - object.hideTrialBanner = message.hideTrialBanner; - if (message.gradientLastSyncDate != null && message.hasOwnProperty("gradientLastSyncDate")) - object.gradientLastSyncDate = message.gradientLastSyncDate; - if (message.gradientNextSyncDate != null && message.hasOwnProperty("gradientNextSyncDate")) - object.gradientNextSyncDate = message.gradientNextSyncDate; - if (message.isGradientMappingPending != null && message.hasOwnProperty("isGradientMappingPending")) - object.isGradientMappingPending = message.isGradientMappingPending; + object.eventTime = options.longs === String ? $util.Long.prototype.toString.call(message.eventTime) : options.longs === Number ? new $util.LongBits(message.eventTime.low >>> 0, message.eventTime.high >>> 0).toNumber() : message.eventTime; + if (message.attributes != null && message.hasOwnProperty("attributes")) + object.attributes = $root.google.protobuf.Struct.toObject(message.attributes, options); return object; }; /** - * Converts this SubscriptionStatusResponse to JSON. + * Converts this EventRequest to JSON. * @function toJSON - * @memberof BI.SubscriptionStatusResponse + * @memberof BI.EventRequest * @instance * @returns {Object.} JSON object */ - SubscriptionStatusResponse.prototype.toJSON = function toJSON() { + EventRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SubscriptionStatusResponse + * Gets the default type url for EventRequest * @function getTypeUrl - * @memberof BI.SubscriptionStatusResponse + * @memberof BI.EventRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SubscriptionStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EventRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.SubscriptionStatusResponse"; + return typeUrlPrefix + "/BI.EventRequest"; }; - return SubscriptionStatusResponse; + return EventRequest; })(); - BI.LicenseStats = (function() { + BI.EventsRequest = (function() { /** - * Properties of a LicenseStats. + * Properties of an EventsRequest. * @memberof BI - * @interface ILicenseStats - * @property {BI.LicenseStats.Type|null} [type] LicenseStats type - * @property {number|null} [available] LicenseStats available - * @property {number|null} [used] LicenseStats used + * @interface IEventsRequest + * @property {Array.|null} [event] EventsRequest event */ /** - * Constructs a new LicenseStats. + * Constructs a new EventsRequest. * @memberof BI - * @classdesc Represents a LicenseStats. - * @implements ILicenseStats + * @classdesc Represents an EventsRequest. + * @implements IEventsRequest * @constructor - * @param {BI.ILicenseStats=} [properties] Properties to set + * @param {BI.IEventsRequest=} [properties] Properties to set */ - function LicenseStats(properties) { + function EventsRequest(properties) { + this.event = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -225075,103 +254423,78 @@ export const BI = $root.BI = (() => { } /** - * LicenseStats type. - * @member {BI.LicenseStats.Type} type - * @memberof BI.LicenseStats - * @instance - */ - LicenseStats.prototype.type = 0; - - /** - * LicenseStats available. - * @member {number} available - * @memberof BI.LicenseStats - * @instance - */ - LicenseStats.prototype.available = 0; - - /** - * LicenseStats used. - * @member {number} used - * @memberof BI.LicenseStats + * EventsRequest event. + * @member {Array.} event + * @memberof BI.EventsRequest * @instance */ - LicenseStats.prototype.used = 0; + EventsRequest.prototype.event = $util.emptyArray; /** - * Creates a new LicenseStats instance using the specified properties. + * Creates a new EventsRequest instance using the specified properties. * @function create - * @memberof BI.LicenseStats + * @memberof BI.EventsRequest * @static - * @param {BI.ILicenseStats=} [properties] Properties to set - * @returns {BI.LicenseStats} LicenseStats instance + * @param {BI.IEventsRequest=} [properties] Properties to set + * @returns {BI.EventsRequest} EventsRequest instance */ - LicenseStats.create = function create(properties) { - return new LicenseStats(properties); + EventsRequest.create = function create(properties) { + return new EventsRequest(properties); }; /** - * Encodes the specified LicenseStats message. Does not implicitly {@link BI.LicenseStats.verify|verify} messages. + * Encodes the specified EventsRequest message. Does not implicitly {@link BI.EventsRequest.verify|verify} messages. * @function encode - * @memberof BI.LicenseStats + * @memberof BI.EventsRequest * @static - * @param {BI.ILicenseStats} message LicenseStats message or plain object to encode + * @param {BI.IEventsRequest} message EventsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LicenseStats.encode = function encode(message, writer) { + EventsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.available != null && Object.hasOwnProperty.call(message, "available")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.available); - if (message.used != null && Object.hasOwnProperty.call(message, "used")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.used); + if (message.event != null && message.event.length) + for (let i = 0; i < message.event.length; ++i) + $root.BI.EventRequest.encode(message.event[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified LicenseStats message, length delimited. Does not implicitly {@link BI.LicenseStats.verify|verify} messages. + * Encodes the specified EventsRequest message, length delimited. Does not implicitly {@link BI.EventsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof BI.LicenseStats + * @memberof BI.EventsRequest * @static - * @param {BI.ILicenseStats} message LicenseStats message or plain object to encode + * @param {BI.IEventsRequest} message EventsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LicenseStats.encodeDelimited = function encodeDelimited(message, writer) { + EventsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LicenseStats message from the specified reader or buffer. + * Decodes an EventsRequest message from the specified reader or buffer. * @function decode - * @memberof BI.LicenseStats + * @memberof BI.EventsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.LicenseStats} LicenseStats + * @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 */ - LicenseStats.decode = function decode(reader, length) { + EventsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.LicenseStats(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EventsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.type = reader.int32(); - break; - } - case 2: { - message.available = reader.int32(); - break; - } - case 3: { - message.used = reader.int32(); + if (!(message.event && message.event.length)) + message.event = []; + message.event.push($root.BI.EventRequest.decode(reader, reader.uint32())); break; } default: @@ -225183,223 +254506,140 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a LicenseStats message from the specified reader or buffer, length delimited. + * Decodes an EventsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.LicenseStats + * @memberof BI.EventsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.LicenseStats} LicenseStats + * @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 */ - LicenseStats.decodeDelimited = function decodeDelimited(reader) { + EventsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LicenseStats message. + * Verifies an EventsRequest message. * @function verify - * @memberof BI.LicenseStats + * @memberof BI.EventsRequest * @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) { + EventsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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: - break; + 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]); + if (error) + return "event." + error; } - 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. + * Creates an EventsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.LicenseStats + * @memberof BI.EventsRequest * @static * @param {Object.} object Plain object - * @returns {BI.LicenseStats} LicenseStats + * @returns {BI.EventsRequest} EventsRequest */ - LicenseStats.fromObject = function fromObject(object) { - if (object instanceof $root.BI.LicenseStats) + EventsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.EventsRequest) return object; - let message = new $root.BI.LicenseStats(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; + let message = new $root.BI.EventsRequest(); + if (object.event) { + if (!Array.isArray(object.event)) + throw TypeError(".BI.EventsRequest.event: array expected"); + message.event = []; + for (let i = 0; i < object.event.length; ++i) { + if (typeof object.event[i] !== "object") + throw TypeError(".BI.EventsRequest.event: object expected"); + message.event[i] = $root.BI.EventRequest.fromObject(object.event[i]); } - break; - case "LICENSE_STAT_UNKNOWN": - case 0: - message.type = 0; - break; - case "MSP_BASE": - case 1: - message.type = 1; - break; - case "MC_BUSINESS": - case 2: - message.type = 2; - break; - case "MC_BUSINESS_PLUS": - case 3: - message.type = 3; - break; - case "MC_ENTERPRISE": - case 4: - message.type = 4; - break; - case "MC_ENTERPRISE_PLUS": - case 5: - message.type = 5; - break; - case "B2B_BUSINESS_STARTER": - case 6: - message.type = 6; - break; - case "B2B_BUSINESS": - case 7: - message.type = 7; - break; - case "B2B_ENTERPRISE": - case 8: - message.type = 8; - break; } - if (object.available != null) - message.available = object.available | 0; - if (object.used != null) - message.used = object.used | 0; return message; }; /** - * Creates a plain object from a LicenseStats message. Also converts values to other types if specified. + * Creates a plain object from an EventsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof BI.LicenseStats + * @memberof BI.EventsRequest * @static - * @param {BI.LicenseStats} message LicenseStats + * @param {BI.EventsRequest} message EventsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LicenseStats.toObject = function toObject(message, options) { + EventsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.type = options.enums === String ? "LICENSE_STAT_UNKNOWN" : 0; - object.available = 0; - object.used = 0; + if (options.arrays || options.defaults) + object.event = []; + if (message.event && message.event.length) { + object.event = []; + for (let j = 0; j < message.event.length; ++j) + object.event[j] = $root.BI.EventRequest.toObject(message.event[j], options); } - if (message.type != null && message.hasOwnProperty("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")) - object.available = message.available; - if (message.used != null && message.hasOwnProperty("used")) - object.used = message.used; return object; }; /** - * Converts this LicenseStats to JSON. + * Converts this EventsRequest to JSON. * @function toJSON - * @memberof BI.LicenseStats + * @memberof BI.EventsRequest * @instance * @returns {Object.} JSON object */ - LicenseStats.prototype.toJSON = function toJSON() { + EventsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LicenseStats + * Gets the default type url for EventsRequest * @function getTypeUrl - * @memberof BI.LicenseStats + * @memberof BI.EventsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LicenseStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EventsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.LicenseStats"; + return typeUrlPrefix + "/BI.EventsRequest"; }; - /** - * Type enum. - * @name BI.LicenseStats.Type - * @enum {number} - * @property {number} LICENSE_STAT_UNKNOWN=0 LICENSE_STAT_UNKNOWN value - * @property {number} MSP_BASE=1 MSP_BASE value - * @property {number} MC_BUSINESS=2 MC_BUSINESS value - * @property {number} MC_BUSINESS_PLUS=3 MC_BUSINESS_PLUS value - * @property {number} MC_ENTERPRISE=4 MC_ENTERPRISE value - * @property {number} MC_ENTERPRISE_PLUS=5 MC_ENTERPRISE_PLUS value - * @property {number} B2B_BUSINESS_STARTER=6 B2B_BUSINESS_STARTER value - * @property {number} B2B_BUSINESS=7 B2B_BUSINESS value - * @property {number} B2B_ENTERPRISE=8 B2B_ENTERPRISE value - */ - LicenseStats.Type = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LICENSE_STAT_UNKNOWN"] = 0; - values[valuesById[1] = "MSP_BASE"] = 1; - values[valuesById[2] = "MC_BUSINESS"] = 2; - values[valuesById[3] = "MC_BUSINESS_PLUS"] = 3; - values[valuesById[4] = "MC_ENTERPRISE"] = 4; - values[valuesById[5] = "MC_ENTERPRISE_PLUS"] = 5; - values[valuesById[6] = "B2B_BUSINESS_STARTER"] = 6; - values[valuesById[7] = "B2B_BUSINESS"] = 7; - values[valuesById[8] = "B2B_ENTERPRISE"] = 8; - return values; - })(); - - return LicenseStats; + return EventsRequest; })(); - BI.AutoRenewal = (function() { + BI.EventResponse = (function() { /** - * Properties of an AutoRenewal. + * Properties of an EventResponse. * @memberof BI - * @interface IAutoRenewal - * @property {number|Long|null} [nextOn] AutoRenewal nextOn - * @property {number|null} [daysLeft] AutoRenewal daysLeft - * @property {boolean|null} [isTrial] AutoRenewal isTrial + * @interface IEventResponse + * @property {number|null} [index] EventResponse index + * @property {boolean|null} [status] EventResponse status */ /** - * Constructs a new AutoRenewal. + * Constructs a new EventResponse. * @memberof BI - * @classdesc Represents an AutoRenewal. - * @implements IAutoRenewal + * @classdesc Represents an EventResponse. + * @implements IEventResponse * @constructor - * @param {BI.IAutoRenewal=} [properties] Properties to set + * @param {BI.IEventResponse=} [properties] Properties to set */ - function AutoRenewal(properties) { + function EventResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -225407,103 +254647,89 @@ export const BI = $root.BI = (() => { } /** - * AutoRenewal nextOn. - * @member {number|Long} nextOn - * @memberof BI.AutoRenewal - * @instance - */ - AutoRenewal.prototype.nextOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * AutoRenewal daysLeft. - * @member {number} daysLeft - * @memberof BI.AutoRenewal + * EventResponse index. + * @member {number} index + * @memberof BI.EventResponse * @instance */ - AutoRenewal.prototype.daysLeft = 0; + EventResponse.prototype.index = 0; /** - * AutoRenewal isTrial. - * @member {boolean} isTrial - * @memberof BI.AutoRenewal + * EventResponse status. + * @member {boolean} status + * @memberof BI.EventResponse * @instance */ - AutoRenewal.prototype.isTrial = false; + EventResponse.prototype.status = false; /** - * Creates a new AutoRenewal instance using the specified properties. + * Creates a new EventResponse instance using the specified properties. * @function create - * @memberof BI.AutoRenewal + * @memberof BI.EventResponse * @static - * @param {BI.IAutoRenewal=} [properties] Properties to set - * @returns {BI.AutoRenewal} AutoRenewal instance + * @param {BI.IEventResponse=} [properties] Properties to set + * @returns {BI.EventResponse} EventResponse instance */ - AutoRenewal.create = function create(properties) { - return new AutoRenewal(properties); + EventResponse.create = function create(properties) { + return new EventResponse(properties); }; /** - * Encodes the specified AutoRenewal message. Does not implicitly {@link BI.AutoRenewal.verify|verify} messages. + * Encodes the specified EventResponse message. Does not implicitly {@link BI.EventResponse.verify|verify} messages. * @function encode - * @memberof BI.AutoRenewal + * @memberof BI.EventResponse * @static - * @param {BI.IAutoRenewal} message AutoRenewal message or plain object to encode + * @param {BI.IEventResponse} message EventResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutoRenewal.encode = function encode(message, writer) { + EventResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.nextOn != null && Object.hasOwnProperty.call(message, "nextOn")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nextOn); - if (message.daysLeft != null && Object.hasOwnProperty.call(message, "daysLeft")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.daysLeft); - if (message.isTrial != null && Object.hasOwnProperty.call(message, "isTrial")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isTrial); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.index); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.status); return writer; }; /** - * Encodes the specified AutoRenewal message, length delimited. Does not implicitly {@link BI.AutoRenewal.verify|verify} messages. + * Encodes the specified EventResponse message, length delimited. Does not implicitly {@link BI.EventResponse.verify|verify} messages. * @function encodeDelimited - * @memberof BI.AutoRenewal + * @memberof BI.EventResponse * @static - * @param {BI.IAutoRenewal} message AutoRenewal message or plain object to encode + * @param {BI.IEventResponse} message EventResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutoRenewal.encodeDelimited = function encodeDelimited(message, writer) { + EventResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AutoRenewal message from the specified reader or buffer. + * Decodes an EventResponse message from the specified reader or buffer. * @function decode - * @memberof BI.AutoRenewal + * @memberof BI.EventResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.AutoRenewal} AutoRenewal + * @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 */ - AutoRenewal.decode = function decode(reader, length) { + EventResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.AutoRenewal(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EventResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.nextOn = reader.int64(); + message.index = reader.int32(); break; } case 2: { - message.daysLeft = reader.int32(); - break; - } - case 3: { - message.isTrial = reader.bool(); + message.status = reader.bool(); break; } default: @@ -225515,159 +254741,132 @@ export const BI = $root.BI = (() => { }; /** - * Decodes an AutoRenewal message from the specified reader or buffer, length delimited. + * Decodes an EventResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.AutoRenewal + * @memberof BI.EventResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.AutoRenewal} AutoRenewal + * @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 */ - AutoRenewal.decodeDelimited = function decodeDelimited(reader) { + EventResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AutoRenewal message. + * Verifies an EventResponse message. * @function verify - * @memberof BI.AutoRenewal + * @memberof BI.EventResponse * @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) { + EventResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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 AutoRenewal message from a plain object. Also converts values to their respective internal types. + * Creates an EventResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.AutoRenewal + * @memberof BI.EventResponse * @static * @param {Object.} object Plain object - * @returns {BI.AutoRenewal} AutoRenewal + * @returns {BI.EventResponse} EventResponse */ - AutoRenewal.fromObject = function fromObject(object) { - if (object instanceof $root.BI.AutoRenewal) + EventResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.EventResponse) return object; - let message = new $root.BI.AutoRenewal(); - if (object.nextOn != null) - if ($util.Long) - (message.nextOn = $util.Long.fromValue(object.nextOn)).unsigned = false; - else if (typeof object.nextOn === "string") - message.nextOn = parseInt(object.nextOn, 10); - else if (typeof object.nextOn === "number") - message.nextOn = object.nextOn; - else if (typeof object.nextOn === "object") - message.nextOn = new $util.LongBits(object.nextOn.low >>> 0, object.nextOn.high >>> 0).toNumber(); - if (object.daysLeft != null) - message.daysLeft = object.daysLeft | 0; - if (object.isTrial != null) - message.isTrial = Boolean(object.isTrial); + let message = new $root.BI.EventResponse(); + if (object.index != null) + message.index = object.index | 0; + if (object.status != null) + message.status = Boolean(object.status); return message; }; /** - * Creates a plain object from an AutoRenewal message. Also converts values to other types if specified. + * Creates a plain object from an EventResponse message. Also converts values to other types if specified. * @function toObject - * @memberof BI.AutoRenewal + * @memberof BI.EventResponse * @static - * @param {BI.AutoRenewal} message AutoRenewal + * @param {BI.EventResponse} message EventResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AutoRenewal.toObject = function toObject(message, options) { + EventResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.nextOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nextOn = options.longs === String ? "0" : 0; - object.daysLeft = 0; - object.isTrial = false; + object.index = 0; + object.status = false; } - if (message.nextOn != null && message.hasOwnProperty("nextOn")) - 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")) - object.daysLeft = message.daysLeft; - if (message.isTrial != null && message.hasOwnProperty("isTrial")) - object.isTrial = message.isTrial; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.status != null && message.hasOwnProperty("status")) + object.status = message.status; return object; }; /** - * Converts this AutoRenewal to JSON. + * Converts this EventResponse to JSON. * @function toJSON - * @memberof BI.AutoRenewal + * @memberof BI.EventResponse * @instance * @returns {Object.} JSON object */ - AutoRenewal.prototype.toJSON = function toJSON() { + EventResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AutoRenewal + * Gets the default type url for EventResponse * @function getTypeUrl - * @memberof BI.AutoRenewal + * @memberof BI.EventResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AutoRenewal.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EventResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.AutoRenewal"; + return typeUrlPrefix + "/BI.EventResponse"; }; - return AutoRenewal; + return EventResponse; })(); - BI.PaymentMethod = (function() { + BI.EventsResponse = (function() { /** - * Properties of a PaymentMethod. + * Properties of an EventsResponse. * @memberof BI - * @interface IPaymentMethod - * @property {BI.PaymentMethod.Type|null} [type] PaymentMethod type - * @property {BI.PaymentMethod.ICard|null} [card] PaymentMethod card - * @property {BI.PaymentMethod.ISepa|null} [sepa] PaymentMethod sepa - * @property {BI.PaymentMethod.IPaypal|null} [paypal] PaymentMethod paypal - * @property {boolean|null} [failedBilling] PaymentMethod failedBilling - * @property {BI.PaymentMethod.IVendor|null} [vendor] PaymentMethod vendor - * @property {BI.PaymentMethod.IPurchaseOrder|null} [purchaseOrder] PaymentMethod purchaseOrder + * @interface IEventsResponse + * @property {Array.|null} [response] EventsResponse response */ /** - * Constructs a new PaymentMethod. + * Constructs a new EventsResponse. * @memberof BI - * @classdesc Represents a PaymentMethod. - * @implements IPaymentMethod + * @classdesc Represents an EventsResponse. + * @implements IEventsResponse * @constructor - * @param {BI.IPaymentMethod=} [properties] Properties to set + * @param {BI.IEventsResponse=} [properties] Properties to set */ - function PaymentMethod(properties) { + function EventsResponse(properties) { + this.response = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -225675,159 +254874,78 @@ export const BI = $root.BI = (() => { } /** - * PaymentMethod type. - * @member {BI.PaymentMethod.Type} type - * @memberof BI.PaymentMethod - * @instance - */ - PaymentMethod.prototype.type = 0; - - /** - * PaymentMethod card. - * @member {BI.PaymentMethod.ICard|null|undefined} card - * @memberof BI.PaymentMethod - * @instance - */ - PaymentMethod.prototype.card = null; - - /** - * PaymentMethod sepa. - * @member {BI.PaymentMethod.ISepa|null|undefined} sepa - * @memberof BI.PaymentMethod - * @instance - */ - PaymentMethod.prototype.sepa = null; - - /** - * PaymentMethod paypal. - * @member {BI.PaymentMethod.IPaypal|null|undefined} paypal - * @memberof BI.PaymentMethod - * @instance - */ - PaymentMethod.prototype.paypal = null; - - /** - * PaymentMethod failedBilling. - * @member {boolean} failedBilling - * @memberof BI.PaymentMethod - * @instance - */ - PaymentMethod.prototype.failedBilling = false; - - /** - * PaymentMethod vendor. - * @member {BI.PaymentMethod.IVendor|null|undefined} vendor - * @memberof BI.PaymentMethod - * @instance - */ - PaymentMethod.prototype.vendor = null; - - /** - * PaymentMethod purchaseOrder. - * @member {BI.PaymentMethod.IPurchaseOrder|null|undefined} purchaseOrder - * @memberof BI.PaymentMethod + * EventsResponse response. + * @member {Array.} response + * @memberof BI.EventsResponse * @instance */ - PaymentMethod.prototype.purchaseOrder = null; + EventsResponse.prototype.response = $util.emptyArray; /** - * Creates a new PaymentMethod instance using the specified properties. + * Creates a new EventsResponse instance using the specified properties. * @function create - * @memberof BI.PaymentMethod + * @memberof BI.EventsResponse * @static - * @param {BI.IPaymentMethod=} [properties] Properties to set - * @returns {BI.PaymentMethod} PaymentMethod instance + * @param {BI.IEventsResponse=} [properties] Properties to set + * @returns {BI.EventsResponse} EventsResponse instance */ - PaymentMethod.create = function create(properties) { - return new PaymentMethod(properties); + EventsResponse.create = function create(properties) { + return new EventsResponse(properties); }; /** - * Encodes the specified PaymentMethod message. Does not implicitly {@link BI.PaymentMethod.verify|verify} messages. + * Encodes the specified EventsResponse message. Does not implicitly {@link BI.EventsResponse.verify|verify} messages. * @function encode - * @memberof BI.PaymentMethod + * @memberof BI.EventsResponse * @static - * @param {BI.IPaymentMethod} message PaymentMethod message or plain object to encode + * @param {BI.IEventsResponse} message EventsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PaymentMethod.encode = function encode(message, writer) { + EventsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.card != null && Object.hasOwnProperty.call(message, "card")) - $root.BI.PaymentMethod.Card.encode(message.card, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sepa != null && Object.hasOwnProperty.call(message, "sepa")) - $root.BI.PaymentMethod.Sepa.encode(message.sepa, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.paypal != null && Object.hasOwnProperty.call(message, "paypal")) - $root.BI.PaymentMethod.Paypal.encode(message.paypal, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.failedBilling != null && Object.hasOwnProperty.call(message, "failedBilling")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.failedBilling); - if (message.vendor != null && Object.hasOwnProperty.call(message, "vendor")) - $root.BI.PaymentMethod.Vendor.encode(message.vendor, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.purchaseOrder != null && Object.hasOwnProperty.call(message, "purchaseOrder")) - $root.BI.PaymentMethod.PurchaseOrder.encode(message.purchaseOrder, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.response != null && message.response.length) + for (let i = 0; i < message.response.length; ++i) + $root.BI.EventResponse.encode(message.response[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified PaymentMethod message, length delimited. Does not implicitly {@link BI.PaymentMethod.verify|verify} messages. + * Encodes the specified EventsResponse message, length delimited. Does not implicitly {@link BI.EventsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof BI.PaymentMethod + * @memberof BI.EventsResponse * @static - * @param {BI.IPaymentMethod} message PaymentMethod message or plain object to encode + * @param {BI.IEventsResponse} message EventsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PaymentMethod.encodeDelimited = function encodeDelimited(message, writer) { + EventsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PaymentMethod message from the specified reader or buffer. + * Decodes an EventsResponse message from the specified reader or buffer. * @function decode - * @memberof BI.PaymentMethod + * @memberof BI.EventsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.PaymentMethod} PaymentMethod + * @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 */ - PaymentMethod.decode = function decode(reader, length) { + EventsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EventsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.type = reader.int32(); - break; - } - case 2: { - message.card = $root.BI.PaymentMethod.Card.decode(reader, reader.uint32()); - break; - } - case 3: { - message.sepa = $root.BI.PaymentMethod.Sepa.decode(reader, reader.uint32()); - break; - } - case 4: { - message.paypal = $root.BI.PaymentMethod.Paypal.decode(reader, reader.uint32()); - break; - } - case 5: { - message.failedBilling = reader.bool(); - break; - } - case 6: { - message.vendor = $root.BI.PaymentMethod.Vendor.decode(reader, reader.uint32()); - break; - } - case 7: { - message.purchaseOrder = $root.BI.PaymentMethod.PurchaseOrder.decode(reader, reader.uint32()); + if (!(message.response && message.response.length)) + message.response = []; + message.response.push($root.BI.EventResponse.decode(reader, reader.uint32())); break; } default: @@ -225839,1291 +254957,737 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a PaymentMethod message from the specified reader or buffer, length delimited. + * Decodes an EventsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.PaymentMethod + * @memberof BI.EventsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.PaymentMethod} PaymentMethod + * @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 */ - PaymentMethod.decodeDelimited = function decodeDelimited(reader) { + EventsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PaymentMethod message. + * Verifies an EventsResponse message. * @function verify - * @memberof BI.PaymentMethod + * @memberof BI.EventsResponse * @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) { + EventsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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: - break; - } - if (message.card != null && message.hasOwnProperty("card")) { - let error = $root.BI.PaymentMethod.Card.verify(message.card); - if (error) - return "card." + error; - } - if (message.sepa != null && message.hasOwnProperty("sepa")) { - let error = $root.BI.PaymentMethod.Sepa.verify(message.sepa); - if (error) - return "sepa." + error; - } - if (message.paypal != null && message.hasOwnProperty("paypal")) { - let error = $root.BI.PaymentMethod.Paypal.verify(message.paypal); - 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); - if (error) - return "vendor." + error; - } - if (message.purchaseOrder != null && message.hasOwnProperty("purchaseOrder")) { - let error = $root.BI.PaymentMethod.PurchaseOrder.verify(message.purchaseOrder); - 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 - * @memberof BI.PaymentMethod - * @static - * @param {Object.} object Plain object - * @returns {BI.PaymentMethod} PaymentMethod - */ - PaymentMethod.fromObject = function fromObject(object) { - if (object instanceof $root.BI.PaymentMethod) - return object; - let message = new $root.BI.PaymentMethod(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "CARD": - case 0: - message.type = 0; - break; - case "SEPA": - case 1: - message.type = 1; - break; - case "PAYPAL": - case 2: - message.type = 2; - break; - case "NONE": - case 3: - message.type = 3; - break; - case "VENDOR": - case 4: - message.type = 4; - break; - case "PURCHASEORDER": - case 5: - message.type = 5; - break; - } - if (object.card != null) { - if (typeof object.card !== "object") - throw TypeError(".BI.PaymentMethod.card: object expected"); - message.card = $root.BI.PaymentMethod.Card.fromObject(object.card); - } - if (object.sepa != null) { - if (typeof object.sepa !== "object") - throw TypeError(".BI.PaymentMethod.sepa: object expected"); - message.sepa = $root.BI.PaymentMethod.Sepa.fromObject(object.sepa); - } - if (object.paypal != null) { - if (typeof object.paypal !== "object") - throw TypeError(".BI.PaymentMethod.paypal: object expected"); - message.paypal = $root.BI.PaymentMethod.Paypal.fromObject(object.paypal); - } - if (object.failedBilling != null) - message.failedBilling = Boolean(object.failedBilling); - if (object.vendor != null) { - if (typeof object.vendor !== "object") - throw TypeError(".BI.PaymentMethod.vendor: object expected"); - message.vendor = $root.BI.PaymentMethod.Vendor.fromObject(object.vendor); - } - if (object.purchaseOrder != null) { - if (typeof object.purchaseOrder !== "object") - throw TypeError(".BI.PaymentMethod.purchaseOrder: object expected"); - message.purchaseOrder = $root.BI.PaymentMethod.PurchaseOrder.fromObject(object.purchaseOrder); - } - return message; - }; - - /** - * Creates a plain object from a PaymentMethod message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.PaymentMethod - * @static - * @param {BI.PaymentMethod} message PaymentMethod - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PaymentMethod.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.type = options.enums === String ? "CARD" : 0; - object.card = null; - object.sepa = null; - object.paypal = null; - object.failedBilling = false; - object.vendor = null; - object.purchaseOrder = null; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.BI.PaymentMethod.Type[message.type] === undefined ? message.type : $root.BI.PaymentMethod.Type[message.type] : message.type; - if (message.card != null && message.hasOwnProperty("card")) - object.card = $root.BI.PaymentMethod.Card.toObject(message.card, options); - if (message.sepa != null && message.hasOwnProperty("sepa")) - object.sepa = $root.BI.PaymentMethod.Sepa.toObject(message.sepa, options); - if (message.paypal != null && message.hasOwnProperty("paypal")) - object.paypal = $root.BI.PaymentMethod.Paypal.toObject(message.paypal, options); - if (message.failedBilling != null && message.hasOwnProperty("failedBilling")) - object.failedBilling = message.failedBilling; - if (message.vendor != null && message.hasOwnProperty("vendor")) - object.vendor = $root.BI.PaymentMethod.Vendor.toObject(message.vendor, options); - if (message.purchaseOrder != null && message.hasOwnProperty("purchaseOrder")) - object.purchaseOrder = $root.BI.PaymentMethod.PurchaseOrder.toObject(message.purchaseOrder, options); - return object; - }; - - /** - * Converts this PaymentMethod to JSON. - * @function toJSON - * @memberof BI.PaymentMethod - * @instance - * @returns {Object.} JSON object - */ - PaymentMethod.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for PaymentMethod - * @function getTypeUrl - * @memberof BI.PaymentMethod - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PaymentMethod.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.PaymentMethod"; - }; - - /** - * Type enum. - * @name BI.PaymentMethod.Type - * @enum {number} - * @property {number} CARD=0 CARD value - * @property {number} SEPA=1 SEPA value - * @property {number} PAYPAL=2 PAYPAL value - * @property {number} NONE=3 NONE value - * @property {number} VENDOR=4 VENDOR value - * @property {number} PURCHASEORDER=5 PURCHASEORDER value - */ - PaymentMethod.Type = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CARD"] = 0; - values[valuesById[1] = "SEPA"] = 1; - values[valuesById[2] = "PAYPAL"] = 2; - values[valuesById[3] = "NONE"] = 3; - values[valuesById[4] = "VENDOR"] = 4; - values[valuesById[5] = "PURCHASEORDER"] = 5; - return values; - })(); - - PaymentMethod.Card = (function() { - - /** - * Properties of a Card. - * @memberof BI.PaymentMethod - * @interface ICard - * @property {string|null} [last4] Card last4 - * @property {string|null} [brand] Card brand - */ - - /** - * Constructs a new Card. - * @memberof BI.PaymentMethod - * @classdesc Represents a Card. - * @implements ICard - * @constructor - * @param {BI.PaymentMethod.ICard=} [properties] Properties to set - */ - function Card(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Card last4. - * @member {string} last4 - * @memberof BI.PaymentMethod.Card - * @instance - */ - Card.prototype.last4 = ""; - - /** - * Card brand. - * @member {string} brand - * @memberof BI.PaymentMethod.Card - * @instance - */ - Card.prototype.brand = ""; - - /** - * Creates a new Card instance using the specified properties. - * @function create - * @memberof BI.PaymentMethod.Card - * @static - * @param {BI.PaymentMethod.ICard=} [properties] Properties to set - * @returns {BI.PaymentMethod.Card} Card instance - */ - Card.create = function create(properties) { - return new Card(properties); - }; - - /** - * Encodes the specified Card message. Does not implicitly {@link BI.PaymentMethod.Card.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.last4 != null && Object.hasOwnProperty.call(message, "last4")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.last4); - if (message.brand != null && Object.hasOwnProperty.call(message, "brand")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.brand); - 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 - * @memberof BI.PaymentMethod.Card - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod.Card(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.last4 = reader.string(); - break; - } - case 2: { - message.brand = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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 - * @memberof BI.PaymentMethod.Card - * @static - * @param {Object.} object Plain object - * @returns {BI.PaymentMethod.Card} Card - */ - Card.fromObject = function fromObject(object) { - if (object instanceof $root.BI.PaymentMethod.Card) - return object; - let message = new $root.BI.PaymentMethod.Card(); - if (object.last4 != null) - message.last4 = String(object.last4); - if (object.brand != null) - message.brand = String(object.brand); - return message; - }; - - /** - * Creates a plain object from a Card message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.PaymentMethod.Card - * @static - * @param {BI.PaymentMethod.Card} message Card - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Card.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.last4 = ""; - object.brand = ""; - } - if (message.last4 != null && message.hasOwnProperty("last4")) - object.last4 = message.last4; - if (message.brand != null && message.hasOwnProperty("brand")) - object.brand = message.brand; - return object; - }; - - /** - * Converts this Card to JSON. - * @function toJSON - * @memberof BI.PaymentMethod.Card - * @instance - * @returns {Object.} JSON object - */ - Card.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Card - * @function getTypeUrl - * @memberof BI.PaymentMethod.Card - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Card.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.PaymentMethod.Card"; - }; - - return Card; - })(); - - PaymentMethod.Sepa = (function() { - - /** - * Properties of a Sepa. - * @memberof BI.PaymentMethod - * @interface ISepa - * @property {string|null} [last4] Sepa last4 - * @property {string|null} [country] Sepa country - */ - - /** - * Constructs a new Sepa. - * @memberof BI.PaymentMethod - * @classdesc Represents a Sepa. - * @implements ISepa - * @constructor - * @param {BI.PaymentMethod.ISepa=} [properties] Properties to set - */ - function Sepa(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Sepa last4. - * @member {string} last4 - * @memberof BI.PaymentMethod.Sepa - * @instance - */ - Sepa.prototype.last4 = ""; - - /** - * Sepa country. - * @member {string} country - * @memberof BI.PaymentMethod.Sepa - * @instance - */ - Sepa.prototype.country = ""; - - /** - * Creates a new Sepa instance using the specified properties. - * @function create - * @memberof BI.PaymentMethod.Sepa - * @static - * @param {BI.PaymentMethod.ISepa=} [properties] Properties to set - * @returns {BI.PaymentMethod.Sepa} Sepa instance - */ - Sepa.create = function create(properties) { - return new Sepa(properties); - }; - - /** - * Encodes the specified Sepa message. Does not implicitly {@link BI.PaymentMethod.Sepa.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.last4 != null && Object.hasOwnProperty.call(message, "last4")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.last4); - if (message.country != null && Object.hasOwnProperty.call(message, "country")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.country); - 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 - * @memberof BI.PaymentMethod.Sepa - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod.Sepa(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.last4 = reader.string(); - break; - } - case 2: { - message.country = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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 - * @memberof BI.PaymentMethod.Sepa - * @static - * @param {Object.} object Plain object - * @returns {BI.PaymentMethod.Sepa} Sepa - */ - Sepa.fromObject = function fromObject(object) { - if (object instanceof $root.BI.PaymentMethod.Sepa) - return object; - let message = new $root.BI.PaymentMethod.Sepa(); - if (object.last4 != null) - message.last4 = String(object.last4); - if (object.country != null) - message.country = String(object.country); - return message; - }; - - /** - * Creates a plain object from a Sepa message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.PaymentMethod.Sepa - * @static - * @param {BI.PaymentMethod.Sepa} message Sepa - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Sepa.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.last4 = ""; - object.country = ""; - } - if (message.last4 != null && message.hasOwnProperty("last4")) - object.last4 = message.last4; - if (message.country != null && message.hasOwnProperty("country")) - object.country = message.country; - return object; - }; - - /** - * Converts this Sepa to JSON. - * @function toJSON - * @memberof BI.PaymentMethod.Sepa - * @instance - * @returns {Object.} JSON object - */ - Sepa.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Sepa - * @function getTypeUrl - * @memberof BI.PaymentMethod.Sepa - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Sepa.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.PaymentMethod.Sepa"; - }; - - return Sepa; - })(); - - PaymentMethod.Paypal = (function() { + 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]); + if (error) + return "response." + error; + } + } + return null; + }; - /** - * Properties of a Paypal. - * @memberof BI.PaymentMethod - * @interface IPaypal - */ + /** + * Creates an EventsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof BI.EventsResponse + * @static + * @param {Object.} object Plain object + * @returns {BI.EventsResponse} EventsResponse + */ + EventsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.EventsResponse) + return object; + let message = new $root.BI.EventsResponse(); + if (object.response) { + if (!Array.isArray(object.response)) + throw TypeError(".BI.EventsResponse.response: array expected"); + message.response = []; + for (let i = 0; i < object.response.length; ++i) { + if (typeof object.response[i] !== "object") + throw TypeError(".BI.EventsResponse.response: object expected"); + message.response[i] = $root.BI.EventResponse.fromObject(object.response[i]); + } + } + return message; + }; - /** - * Constructs a new Paypal. - * @memberof BI.PaymentMethod - * @classdesc Represents a Paypal. - * @implements IPaypal - * @constructor - * @param {BI.PaymentMethod.IPaypal=} [properties] Properties to set - */ - function Paypal(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Creates a plain object from an EventsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.EventsResponse + * @static + * @param {BI.EventsResponse} message EventsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EventsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.response = []; + if (message.response && message.response.length) { + object.response = []; + for (let j = 0; j < message.response.length; ++j) + object.response[j] = $root.BI.EventResponse.toObject(message.response[j], options); } + return object; + }; - /** - * Creates a new Paypal instance using the specified properties. - * @function create - * @memberof BI.PaymentMethod.Paypal - * @static - * @param {BI.PaymentMethod.IPaypal=} [properties] Properties to set - * @returns {BI.PaymentMethod.Paypal} Paypal instance - */ - Paypal.create = function create(properties) { - return new Paypal(properties); - }; + /** + * Converts this EventsResponse to JSON. + * @function toJSON + * @memberof BI.EventsResponse + * @instance + * @returns {Object.} JSON object + */ + EventsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Encodes the specified Paypal message. Does not implicitly {@link BI.PaymentMethod.Paypal.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Gets the default type url for EventsResponse + * @function getTypeUrl + * @memberof BI.EventsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EventsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.EventsResponse"; + }; - /** - * 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(); - }; + return EventsResponse; + })(); - /** - * Decodes a Paypal message from the specified reader or buffer. - * @function decode - * @memberof BI.PaymentMethod.Paypal - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod.Paypal(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + BI.CustomerCaptureRequest = (function() { - /** - * 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()); - }; + /** + * Properties of a CustomerCaptureRequest. + * @memberof BI + * @interface ICustomerCaptureRequest + * @property {string|null} [pageUrl] CustomerCaptureRequest pageUrl + * @property {string|null} [tree] CustomerCaptureRequest tree + * @property {string|null} [hash] CustomerCaptureRequest hash + * @property {string|null} [image] CustomerCaptureRequest image + * @property {string|null} [pageLoadTime] CustomerCaptureRequest pageLoadTime + * @property {string|null} [keyId] CustomerCaptureRequest keyId + * @property {boolean|null} [test] CustomerCaptureRequest test + * @property {string|null} [issueType] CustomerCaptureRequest issueType + * @property {string|null} [notes] CustomerCaptureRequest notes + */ - /** - * 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Constructs a new CustomerCaptureRequest. + * @memberof BI + * @classdesc Represents a CustomerCaptureRequest. + * @implements ICustomerCaptureRequest + * @constructor + * @param {BI.ICustomerCaptureRequest=} [properties] Properties to set + */ + function CustomerCaptureRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a Paypal message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.PaymentMethod.Paypal - * @static - * @param {Object.} object Plain object - * @returns {BI.PaymentMethod.Paypal} Paypal - */ - Paypal.fromObject = function fromObject(object) { - if (object instanceof $root.BI.PaymentMethod.Paypal) - return object; - return new $root.BI.PaymentMethod.Paypal(); - }; + /** + * CustomerCaptureRequest pageUrl. + * @member {string} pageUrl + * @memberof BI.CustomerCaptureRequest + * @instance + */ + CustomerCaptureRequest.prototype.pageUrl = ""; - /** - * Creates a plain object from a Paypal message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.PaymentMethod.Paypal - * @static - * @param {BI.PaymentMethod.Paypal} message Paypal - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Paypal.toObject = function toObject() { - return {}; - }; + /** + * CustomerCaptureRequest tree. + * @member {string} tree + * @memberof BI.CustomerCaptureRequest + * @instance + */ + CustomerCaptureRequest.prototype.tree = ""; - /** - * Converts this Paypal to JSON. - * @function toJSON - * @memberof BI.PaymentMethod.Paypal - * @instance - * @returns {Object.} JSON object - */ - Paypal.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * CustomerCaptureRequest hash. + * @member {string} hash + * @memberof BI.CustomerCaptureRequest + * @instance + */ + CustomerCaptureRequest.prototype.hash = ""; - /** - * Gets the default type url for Paypal - * @function getTypeUrl - * @memberof BI.PaymentMethod.Paypal - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Paypal.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.PaymentMethod.Paypal"; - }; + /** + * CustomerCaptureRequest image. + * @member {string} image + * @memberof BI.CustomerCaptureRequest + * @instance + */ + CustomerCaptureRequest.prototype.image = ""; - return Paypal; - })(); + /** + * CustomerCaptureRequest pageLoadTime. + * @member {string} pageLoadTime + * @memberof BI.CustomerCaptureRequest + * @instance + */ + CustomerCaptureRequest.prototype.pageLoadTime = ""; - PaymentMethod.Vendor = (function() { + /** + * CustomerCaptureRequest keyId. + * @member {string} keyId + * @memberof BI.CustomerCaptureRequest + * @instance + */ + CustomerCaptureRequest.prototype.keyId = ""; - /** - * Properties of a Vendor. - * @memberof BI.PaymentMethod - * @interface IVendor - * @property {string|null} [name] Vendor name - */ + /** + * CustomerCaptureRequest test. + * @member {boolean} test + * @memberof BI.CustomerCaptureRequest + * @instance + */ + CustomerCaptureRequest.prototype.test = false; - /** - * Constructs a new Vendor. - * @memberof BI.PaymentMethod - * @classdesc Represents a Vendor. - * @implements IVendor - * @constructor - * @param {BI.PaymentMethod.IVendor=} [properties] Properties to set - */ - function Vendor(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * CustomerCaptureRequest issueType. + * @member {string} issueType + * @memberof BI.CustomerCaptureRequest + * @instance + */ + CustomerCaptureRequest.prototype.issueType = ""; - /** - * Vendor name. - * @member {string} name - * @memberof BI.PaymentMethod.Vendor - * @instance - */ - Vendor.prototype.name = ""; + /** + * CustomerCaptureRequest notes. + * @member {string} notes + * @memberof BI.CustomerCaptureRequest + * @instance + */ + CustomerCaptureRequest.prototype.notes = ""; - /** - * Creates a new Vendor instance using the specified properties. - * @function create - * @memberof BI.PaymentMethod.Vendor - * @static - * @param {BI.PaymentMethod.IVendor=} [properties] Properties to set - * @returns {BI.PaymentMethod.Vendor} Vendor instance - */ - Vendor.create = function create(properties) { - return new Vendor(properties); - }; + /** + * Creates a new CustomerCaptureRequest instance using the specified properties. + * @function create + * @memberof BI.CustomerCaptureRequest + * @static + * @param {BI.ICustomerCaptureRequest=} [properties] Properties to set + * @returns {BI.CustomerCaptureRequest} CustomerCaptureRequest instance + */ + CustomerCaptureRequest.create = function create(properties) { + return new CustomerCaptureRequest(properties); + }; - /** - * Encodes the specified Vendor message. Does not implicitly {@link BI.PaymentMethod.Vendor.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + /** + * Encodes the specified CustomerCaptureRequest message. Does not implicitly {@link BI.CustomerCaptureRequest.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pageUrl != null && Object.hasOwnProperty.call(message, "pageUrl")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.pageUrl); + if (message.tree != null && Object.hasOwnProperty.call(message, "tree")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tree); + if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.hash); + if (message.image != null && Object.hasOwnProperty.call(message, "image")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.image); + if (message.pageLoadTime != null && Object.hasOwnProperty.call(message, "pageLoadTime")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.pageLoadTime); + if (message.keyId != null && Object.hasOwnProperty.call(message, "keyId")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.keyId); + if (message.test != null && Object.hasOwnProperty.call(message, "test")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.test); + if (message.issueType != null && Object.hasOwnProperty.call(message, "issueType")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.issueType); + if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.notes); + 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(); - }; + /** + * 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 Vendor message from the specified reader or buffer. - * @function decode - * @memberof BI.PaymentMethod.Vendor - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod.Vendor(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a CustomerCaptureRequest message from the specified reader or buffer. + * @function decode + * @memberof BI.CustomerCaptureRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.CustomerCaptureRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.pageUrl = reader.string(); + break; + } + case 2: { + message.tree = reader.string(); + break; + } + case 3: { + message.hash = reader.string(); + break; + } + case 4: { + message.image = reader.string(); + break; + } + case 5: { + message.pageLoadTime = reader.string(); break; } + case 6: { + message.keyId = reader.string(); + break; + } + case 7: { + message.test = reader.bool(); + break; + } + case 8: { + message.issueType = reader.string(); + break; + } + case 9: { + message.notes = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; } - 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()); - }; + } + return message; + }; - /** - * 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + /** + * 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()); + }; - /** - * Creates a Vendor message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.PaymentMethod.Vendor - * @static - * @param {Object.} object Plain object - * @returns {BI.PaymentMethod.Vendor} Vendor - */ - Vendor.fromObject = function fromObject(object) { - if (object instanceof $root.BI.PaymentMethod.Vendor) - return object; - let message = new $root.BI.PaymentMethod.Vendor(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 plain object from a Vendor message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.PaymentMethod.Vendor - * @static - * @param {BI.PaymentMethod.Vendor} message Vendor - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Vendor.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + /** + * Creates a CustomerCaptureRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof BI.CustomerCaptureRequest + * @static + * @param {Object.} object Plain object + * @returns {BI.CustomerCaptureRequest} CustomerCaptureRequest + */ + CustomerCaptureRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.CustomerCaptureRequest) return object; - }; + let message = new $root.BI.CustomerCaptureRequest(); + if (object.pageUrl != null) + message.pageUrl = String(object.pageUrl); + if (object.tree != null) + message.tree = String(object.tree); + if (object.hash != null) + message.hash = String(object.hash); + if (object.image != null) + message.image = String(object.image); + if (object.pageLoadTime != null) + message.pageLoadTime = String(object.pageLoadTime); + if (object.keyId != null) + message.keyId = String(object.keyId); + if (object.test != null) + message.test = Boolean(object.test); + if (object.issueType != null) + message.issueType = String(object.issueType); + if (object.notes != null) + message.notes = String(object.notes); + return message; + }; - /** - * Converts this Vendor to JSON. - * @function toJSON - * @memberof BI.PaymentMethod.Vendor - * @instance - * @returns {Object.} JSON object - */ - Vendor.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a CustomerCaptureRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.CustomerCaptureRequest + * @static + * @param {BI.CustomerCaptureRequest} message CustomerCaptureRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomerCaptureRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.pageUrl = ""; + object.tree = ""; + object.hash = ""; + object.image = ""; + object.pageLoadTime = ""; + object.keyId = ""; + object.test = false; + object.issueType = ""; + object.notes = ""; + } + if (message.pageUrl != null && message.hasOwnProperty("pageUrl")) + object.pageUrl = message.pageUrl; + if (message.tree != null && message.hasOwnProperty("tree")) + object.tree = message.tree; + if (message.hash != null && message.hasOwnProperty("hash")) + object.hash = message.hash; + if (message.image != null && message.hasOwnProperty("image")) + object.image = message.image; + if (message.pageLoadTime != null && message.hasOwnProperty("pageLoadTime")) + object.pageLoadTime = message.pageLoadTime; + if (message.keyId != null && message.hasOwnProperty("keyId")) + object.keyId = message.keyId; + if (message.test != null && message.hasOwnProperty("test")) + object.test = message.test; + if (message.issueType != null && message.hasOwnProperty("issueType")) + object.issueType = message.issueType; + if (message.notes != null && message.hasOwnProperty("notes")) + object.notes = message.notes; + return object; + }; - /** - * Gets the default type url for Vendor - * @function getTypeUrl - * @memberof BI.PaymentMethod.Vendor - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Vendor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.PaymentMethod.Vendor"; - }; + /** + * Converts this CustomerCaptureRequest to JSON. + * @function toJSON + * @memberof BI.CustomerCaptureRequest + * @instance + * @returns {Object.} JSON object + */ + CustomerCaptureRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Vendor; - })(); + /** + * Gets the default type url for CustomerCaptureRequest + * @function getTypeUrl + * @memberof BI.CustomerCaptureRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomerCaptureRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.CustomerCaptureRequest"; + }; - PaymentMethod.PurchaseOrder = (function() { + return CustomerCaptureRequest; + })(); - /** - * Properties of a PurchaseOrder. - * @memberof BI.PaymentMethod - * @interface IPurchaseOrder - * @property {string|null} [name] PurchaseOrder name - */ + BI.CustomerCaptureResponse = (function() { - /** - * Constructs a new PurchaseOrder. - * @memberof BI.PaymentMethod - * @classdesc Represents a PurchaseOrder. - * @implements IPurchaseOrder - * @constructor - * @param {BI.PaymentMethod.IPurchaseOrder=} [properties] Properties to set - */ - function PurchaseOrder(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a CustomerCaptureResponse. + * @memberof BI + * @interface ICustomerCaptureResponse + */ - /** - * PurchaseOrder name. - * @member {string} name - * @memberof BI.PaymentMethod.PurchaseOrder - * @instance - */ - PurchaseOrder.prototype.name = ""; + /** + * Constructs a new CustomerCaptureResponse. + * @memberof BI + * @classdesc Represents a CustomerCaptureResponse. + * @implements ICustomerCaptureResponse + * @constructor + * @param {BI.ICustomerCaptureResponse=} [properties] Properties to set + */ + function CustomerCaptureResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new PurchaseOrder instance using the specified properties. - * @function create - * @memberof BI.PaymentMethod.PurchaseOrder - * @static - * @param {BI.PaymentMethod.IPurchaseOrder=} [properties] Properties to set - * @returns {BI.PaymentMethod.PurchaseOrder} PurchaseOrder instance - */ - PurchaseOrder.create = function create(properties) { - return new PurchaseOrder(properties); - }; + /** + * Creates a new CustomerCaptureResponse instance using the specified properties. + * @function create + * @memberof BI.CustomerCaptureResponse + * @static + * @param {BI.ICustomerCaptureResponse=} [properties] Properties to set + * @returns {BI.CustomerCaptureResponse} CustomerCaptureResponse instance + */ + CustomerCaptureResponse.create = function create(properties) { + return new CustomerCaptureResponse(properties); + }; - /** - * Encodes the specified PurchaseOrder message. Does not implicitly {@link BI.PaymentMethod.PurchaseOrder.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + /** + * Encodes the specified CustomerCaptureResponse message. Does not implicitly {@link BI.CustomerCaptureResponse.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + 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(); - }; + /** + * 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 PurchaseOrder message from the specified reader or buffer. - * @function decode - * @memberof BI.PaymentMethod.PurchaseOrder - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod.PurchaseOrder(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a CustomerCaptureResponse message from the specified reader or buffer. + * @function decode + * @memberof BI.CustomerCaptureResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.CustomerCaptureResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; } - 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()); - }; + } + return message; + }; - /** - * 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + /** + * 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()); + }; - /** - * Creates a PurchaseOrder message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.PaymentMethod.PurchaseOrder - * @static - * @param {Object.} object Plain object - * @returns {BI.PaymentMethod.PurchaseOrder} PurchaseOrder - */ - PurchaseOrder.fromObject = function fromObject(object) { - if (object instanceof $root.BI.PaymentMethod.PurchaseOrder) - return object; - let message = new $root.BI.PaymentMethod.PurchaseOrder(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Creates a plain object from a PurchaseOrder message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.PaymentMethod.PurchaseOrder - * @static - * @param {BI.PaymentMethod.PurchaseOrder} message PurchaseOrder - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PurchaseOrder.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + /** + * Creates a CustomerCaptureResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof BI.CustomerCaptureResponse + * @static + * @param {Object.} object Plain object + * @returns {BI.CustomerCaptureResponse} CustomerCaptureResponse + */ + CustomerCaptureResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.CustomerCaptureResponse) return object; - }; + return new $root.BI.CustomerCaptureResponse(); + }; - /** - * Converts this PurchaseOrder to JSON. - * @function toJSON - * @memberof BI.PaymentMethod.PurchaseOrder - * @instance - * @returns {Object.} JSON object - */ - PurchaseOrder.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a CustomerCaptureResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.CustomerCaptureResponse + * @static + * @param {BI.CustomerCaptureResponse} message CustomerCaptureResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomerCaptureResponse.toObject = function toObject() { + return {}; + }; - /** - * Gets the default type url for PurchaseOrder - * @function getTypeUrl - * @memberof BI.PaymentMethod.PurchaseOrder - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PurchaseOrder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.PaymentMethod.PurchaseOrder"; - }; + /** + * Converts this CustomerCaptureResponse to JSON. + * @function toJSON + * @memberof BI.CustomerCaptureResponse + * @instance + * @returns {Object.} JSON object + */ + CustomerCaptureResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return PurchaseOrder; - })(); + /** + * Gets the default type url for CustomerCaptureResponse + * @function getTypeUrl + * @memberof BI.CustomerCaptureResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomerCaptureResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.CustomerCaptureResponse"; + }; - return PaymentMethod; + return CustomerCaptureResponse; })(); - BI.SubscriptionMspPricingRequest = (function() { + /** + * PurchaseProductType enum. + * @name BI.PurchaseProductType + * @enum {number} + * @property {number} upgradeToEnterprise=0 upgradeToEnterprise value + * @property {number} addUsers=1 addUsers value + * @property {number} addStorage=2 addStorage value + * @property {number} addAudit=3 addAudit value + * @property {number} addBreachWatch=4 addBreachWatch value + * @property {number} addCompliance=5 addCompliance value + * @property {number} addChat=6 addChat value + * @property {number} addPAM=7 addPAM value + * @property {number} addSilverSupport=8 addSilverSupport value + * @property {number} addPlatinumSupport=9 addPlatinumSupport value + * @property {number} addKEPM=10 addKEPM value + */ + BI.PurchaseProductType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "upgradeToEnterprise"] = 0; + values[valuesById[1] = "addUsers"] = 1; + values[valuesById[2] = "addStorage"] = 2; + values[valuesById[3] = "addAudit"] = 3; + values[valuesById[4] = "addBreachWatch"] = 4; + values[valuesById[5] = "addCompliance"] = 5; + values[valuesById[6] = "addChat"] = 6; + values[valuesById[7] = "addPAM"] = 7; + values[valuesById[8] = "addSilverSupport"] = 8; + values[valuesById[9] = "addPlatinumSupport"] = 9; + values[valuesById[10] = "addKEPM"] = 10; + return values; + })(); + + BI.Error = (function() { /** - * Properties of a SubscriptionMspPricingRequest. + * Properties of an Error. * @memberof BI - * @interface ISubscriptionMspPricingRequest + * @interface IError + * @property {string|null} [code] Error code + * @property {string|null} [message] Error message + * @property {Object.|null} [extras] Error extras */ /** - * Constructs a new SubscriptionMspPricingRequest. + * Constructs a new Error. * @memberof BI - * @classdesc Represents a SubscriptionMspPricingRequest. - * @implements ISubscriptionMspPricingRequest + * @classdesc Represents an Error. + * @implements IError * @constructor - * @param {BI.ISubscriptionMspPricingRequest=} [properties] Properties to set + * @param {BI.IError=} [properties] Properties to set */ - function SubscriptionMspPricingRequest(properties) { + function Error(properties) { + this.extras = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -227131,63 +255695,125 @@ export const BI = $root.BI = (() => { } /** - * Creates a new SubscriptionMspPricingRequest instance using the specified properties. + * Error code. + * @member {string} code + * @memberof BI.Error + * @instance + */ + Error.prototype.code = ""; + + /** + * Error message. + * @member {string} message + * @memberof BI.Error + * @instance + */ + Error.prototype.message = ""; + + /** + * Error extras. + * @member {Object.} extras + * @memberof BI.Error + * @instance + */ + Error.prototype.extras = $util.emptyObject; + + /** + * Creates a new Error instance using the specified properties. * @function create - * @memberof BI.SubscriptionMspPricingRequest + * @memberof BI.Error * @static - * @param {BI.ISubscriptionMspPricingRequest=} [properties] Properties to set - * @returns {BI.SubscriptionMspPricingRequest} SubscriptionMspPricingRequest instance + * @param {BI.IError=} [properties] Properties to set + * @returns {BI.Error} Error instance */ - SubscriptionMspPricingRequest.create = function create(properties) { - return new SubscriptionMspPricingRequest(properties); + Error.create = function create(properties) { + return new Error(properties); }; /** - * Encodes the specified SubscriptionMspPricingRequest message. Does not implicitly {@link BI.SubscriptionMspPricingRequest.verify|verify} messages. + * Encodes the specified Error message. Does not implicitly {@link BI.Error.verify|verify} messages. * @function encode - * @memberof BI.SubscriptionMspPricingRequest + * @memberof BI.Error * @static - * @param {BI.ISubscriptionMspPricingRequest} message SubscriptionMspPricingRequest message or plain object to encode + * @param {BI.IError} message Error message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionMspPricingRequest.encode = function encode(message, writer) { + Error.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.code != null && Object.hasOwnProperty.call(message, "code")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.code); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.extras != null && Object.hasOwnProperty.call(message, "extras")) + for (let keys = Object.keys(message.extras), i = 0; i < keys.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.extras[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified SubscriptionMspPricingRequest message, length delimited. Does not implicitly {@link BI.SubscriptionMspPricingRequest.verify|verify} messages. + * Encodes the specified Error message, length delimited. Does not implicitly {@link BI.Error.verify|verify} messages. * @function encodeDelimited - * @memberof BI.SubscriptionMspPricingRequest + * @memberof BI.Error * @static - * @param {BI.ISubscriptionMspPricingRequest} message SubscriptionMspPricingRequest message or plain object to encode + * @param {BI.IError} message Error message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionMspPricingRequest.encodeDelimited = function encodeDelimited(message, writer) { + Error.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SubscriptionMspPricingRequest message from the specified reader or buffer. + * Decodes an Error message from the specified reader or buffer. * @function decode - * @memberof BI.SubscriptionMspPricingRequest + * @memberof BI.Error * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.SubscriptionMspPricingRequest} SubscriptionMspPricingRequest + * @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 */ - SubscriptionMspPricingRequest.decode = function decode(reader, length) { + Error.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionMspPricingRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.Error(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.code = reader.string(); + break; + } + case 2: { + message.message = reader.string(); + break; + } + case 3: { + if (message.extras === $util.emptyObject) + message.extras = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.extras[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -227197,112 +255823,159 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a SubscriptionMspPricingRequest message from the specified reader or buffer, length delimited. + * Decodes an Error message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.SubscriptionMspPricingRequest + * @memberof BI.Error * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SubscriptionMspPricingRequest} SubscriptionMspPricingRequest + * @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 */ - SubscriptionMspPricingRequest.decodeDelimited = function decodeDelimited(reader) { + Error.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SubscriptionMspPricingRequest message. + * Verifies an Error message. * @function verify - * @memberof BI.SubscriptionMspPricingRequest + * @memberof BI.Error * @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) { + Error.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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 a SubscriptionMspPricingRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Error message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.SubscriptionMspPricingRequest + * @memberof BI.Error * @static * @param {Object.} object Plain object - * @returns {BI.SubscriptionMspPricingRequest} SubscriptionMspPricingRequest + * @returns {BI.Error} Error */ - SubscriptionMspPricingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SubscriptionMspPricingRequest) + Error.fromObject = function fromObject(object) { + if (object instanceof $root.BI.Error) return object; - return new $root.BI.SubscriptionMspPricingRequest(); + let message = new $root.BI.Error(); + if (object.code != null) + message.code = String(object.code); + if (object.message != null) + message.message = String(object.message); + if (object.extras) { + if (typeof object.extras !== "object") + throw TypeError(".BI.Error.extras: object expected"); + message.extras = {}; + for (let keys = Object.keys(object.extras), i = 0; i < keys.length; ++i) + message.extras[keys[i]] = String(object.extras[keys[i]]); + } + return message; }; /** - * Creates a plain object from a SubscriptionMspPricingRequest message. Also converts values to other types if specified. + * Creates a plain object from an Error message. Also converts values to other types if specified. * @function toObject - * @memberof BI.SubscriptionMspPricingRequest + * @memberof BI.Error * @static - * @param {BI.SubscriptionMspPricingRequest} message SubscriptionMspPricingRequest + * @param {BI.Error} message Error * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SubscriptionMspPricingRequest.toObject = function toObject() { - return {}; + Error.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.objects || options.defaults) + object.extras = {}; + if (options.defaults) { + object.code = ""; + object.message = ""; + } + if (message.code != null && message.hasOwnProperty("code")) + object.code = message.code; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + let keys2; + if (message.extras && (keys2 = Object.keys(message.extras)).length) { + object.extras = {}; + for (let j = 0; j < keys2.length; ++j) + object.extras[keys2[j]] = message.extras[keys2[j]]; + } + return object; }; /** - * Converts this SubscriptionMspPricingRequest to JSON. + * Converts this Error to JSON. * @function toJSON - * @memberof BI.SubscriptionMspPricingRequest + * @memberof BI.Error * @instance * @returns {Object.} JSON object */ - SubscriptionMspPricingRequest.prototype.toJSON = function toJSON() { + Error.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SubscriptionMspPricingRequest + * Gets the default type url for Error * @function getTypeUrl - * @memberof BI.SubscriptionMspPricingRequest + * @memberof BI.Error * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SubscriptionMspPricingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Error.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.SubscriptionMspPricingRequest"; + return typeUrlPrefix + "/BI.Error"; }; - return SubscriptionMspPricingRequest; + return Error; })(); - BI.SubscriptionMspPricingResponse = (function() { + BI.QuotePurchase = (function() { /** - * Properties of a SubscriptionMspPricingResponse. + * Properties of a QuotePurchase. * @memberof BI - * @interface ISubscriptionMspPricingResponse - * @property {Array.|null} [addons] SubscriptionMspPricingResponse addons - * @property {Array.|null} [filePlans] SubscriptionMspPricingResponse filePlans + * @interface IQuotePurchase + * @property {number|null} [quoteTotal] QuotePurchase quoteTotal + * @property {boolean|null} [includedTax] QuotePurchase includedTax + * @property {boolean|null} [includedOtherAddons] QuotePurchase includedOtherAddons + * @property {number|null} [taxAmount] QuotePurchase taxAmount + * @property {string|null} [taxLabel] QuotePurchase taxLabel + * @property {string|null} [purchaseIdentifier] QuotePurchase purchaseIdentifier */ /** - * Constructs a new SubscriptionMspPricingResponse. + * Constructs a new QuotePurchase. * @memberof BI - * @classdesc Represents a SubscriptionMspPricingResponse. - * @implements ISubscriptionMspPricingResponse + * @classdesc Represents a QuotePurchase. + * @implements IQuotePurchase * @constructor - * @param {BI.ISubscriptionMspPricingResponse=} [properties] Properties to set + * @param {BI.IQuotePurchase=} [properties] Properties to set */ - function SubscriptionMspPricingResponse(properties) { - this.addons = []; - this.filePlans = []; + function QuotePurchase(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -227310,95 +255983,145 @@ export const BI = $root.BI = (() => { } /** - * SubscriptionMspPricingResponse addons. - * @member {Array.} addons - * @memberof BI.SubscriptionMspPricingResponse + * QuotePurchase quoteTotal. + * @member {number} quoteTotal + * @memberof BI.QuotePurchase * @instance */ - SubscriptionMspPricingResponse.prototype.addons = $util.emptyArray; + QuotePurchase.prototype.quoteTotal = 0; /** - * SubscriptionMspPricingResponse filePlans. - * @member {Array.} filePlans - * @memberof BI.SubscriptionMspPricingResponse + * QuotePurchase includedTax. + * @member {boolean} includedTax + * @memberof BI.QuotePurchase * @instance */ - SubscriptionMspPricingResponse.prototype.filePlans = $util.emptyArray; + QuotePurchase.prototype.includedTax = false; /** - * Creates a new SubscriptionMspPricingResponse instance using the specified properties. + * QuotePurchase includedOtherAddons. + * @member {boolean} includedOtherAddons + * @memberof BI.QuotePurchase + * @instance + */ + QuotePurchase.prototype.includedOtherAddons = false; + + /** + * QuotePurchase taxAmount. + * @member {number} taxAmount + * @memberof BI.QuotePurchase + * @instance + */ + QuotePurchase.prototype.taxAmount = 0; + + /** + * QuotePurchase taxLabel. + * @member {string} taxLabel + * @memberof BI.QuotePurchase + * @instance + */ + QuotePurchase.prototype.taxLabel = ""; + + /** + * QuotePurchase purchaseIdentifier. + * @member {string} purchaseIdentifier + * @memberof BI.QuotePurchase + * @instance + */ + QuotePurchase.prototype.purchaseIdentifier = ""; + + /** + * Creates a new QuotePurchase instance using the specified properties. * @function create - * @memberof BI.SubscriptionMspPricingResponse + * @memberof BI.QuotePurchase * @static - * @param {BI.ISubscriptionMspPricingResponse=} [properties] Properties to set - * @returns {BI.SubscriptionMspPricingResponse} SubscriptionMspPricingResponse instance + * @param {BI.IQuotePurchase=} [properties] Properties to set + * @returns {BI.QuotePurchase} QuotePurchase instance */ - SubscriptionMspPricingResponse.create = function create(properties) { - return new SubscriptionMspPricingResponse(properties); + QuotePurchase.create = function create(properties) { + return new QuotePurchase(properties); }; /** - * Encodes the specified SubscriptionMspPricingResponse message. Does not implicitly {@link BI.SubscriptionMspPricingResponse.verify|verify} messages. + * Encodes the specified QuotePurchase message. Does not implicitly {@link BI.QuotePurchase.verify|verify} messages. * @function encode - * @memberof BI.SubscriptionMspPricingResponse + * @memberof BI.QuotePurchase * @static - * @param {BI.ISubscriptionMspPricingResponse} message SubscriptionMspPricingResponse message or plain object to encode + * @param {BI.IQuotePurchase} message QuotePurchase message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionMspPricingResponse.encode = function encode(message, writer) { + QuotePurchase.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.addons != null && message.addons.length) - for (let i = 0; i < message.addons.length; ++i) - $root.BI.Addon.encode(message.addons[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.filePlans != null && message.filePlans.length) - for (let i = 0; i < message.filePlans.length; ++i) - $root.BI.FilePlan.encode(message.filePlans[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.quoteTotal != null && Object.hasOwnProperty.call(message, "quoteTotal")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.quoteTotal); + if (message.includedTax != null && Object.hasOwnProperty.call(message, "includedTax")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.includedTax); + if (message.includedOtherAddons != null && Object.hasOwnProperty.call(message, "includedOtherAddons")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.includedOtherAddons); + if (message.taxAmount != null && Object.hasOwnProperty.call(message, "taxAmount")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.taxAmount); + if (message.taxLabel != null && Object.hasOwnProperty.call(message, "taxLabel")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.taxLabel); + if (message.purchaseIdentifier != null && Object.hasOwnProperty.call(message, "purchaseIdentifier")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.purchaseIdentifier); return writer; }; /** - * Encodes the specified SubscriptionMspPricingResponse message, length delimited. Does not implicitly {@link BI.SubscriptionMspPricingResponse.verify|verify} messages. + * Encodes the specified QuotePurchase message, length delimited. Does not implicitly {@link BI.QuotePurchase.verify|verify} messages. * @function encodeDelimited - * @memberof BI.SubscriptionMspPricingResponse + * @memberof BI.QuotePurchase * @static - * @param {BI.ISubscriptionMspPricingResponse} message SubscriptionMspPricingResponse message or plain object to encode + * @param {BI.IQuotePurchase} message QuotePurchase message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionMspPricingResponse.encodeDelimited = function encodeDelimited(message, writer) { + QuotePurchase.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SubscriptionMspPricingResponse message from the specified reader or buffer. + * Decodes a QuotePurchase message from the specified reader or buffer. * @function decode - * @memberof BI.SubscriptionMspPricingResponse + * @memberof BI.QuotePurchase * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.SubscriptionMspPricingResponse} SubscriptionMspPricingResponse + * @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 */ - SubscriptionMspPricingResponse.decode = function decode(reader, length) { + QuotePurchase.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionMspPricingResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.QuotePurchase(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.quoteTotal = reader.double(); + break; + } case 2: { - if (!(message.addons && message.addons.length)) - message.addons = []; - message.addons.push($root.BI.Addon.decode(reader, reader.uint32())); + message.includedTax = reader.bool(); break; } case 3: { - if (!(message.filePlans && message.filePlans.length)) - message.filePlans = []; - message.filePlans.push($root.BI.FilePlan.decode(reader, reader.uint32())); + message.includedOtherAddons = reader.bool(); + break; + } + case 4: { + message.taxAmount = reader.double(); + break; + } + case 5: { + message.taxLabel = reader.string(); + break; + } + case 6: { + message.purchaseIdentifier = reader.string(); break; } default: @@ -227410,164 +256133,164 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a SubscriptionMspPricingResponse message from the specified reader or buffer, length delimited. + * Decodes a QuotePurchase message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.SubscriptionMspPricingResponse + * @memberof BI.QuotePurchase * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SubscriptionMspPricingResponse} SubscriptionMspPricingResponse + * @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 */ - SubscriptionMspPricingResponse.decodeDelimited = function decodeDelimited(reader) { + QuotePurchase.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SubscriptionMspPricingResponse message. + * Verifies a QuotePurchase message. * @function verify - * @memberof BI.SubscriptionMspPricingResponse + * @memberof BI.QuotePurchase * @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) { + QuotePurchase.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.Addon.verify(message.addons[i]); - 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]); - if (error) - return "filePlans." + error; - } - } + 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 SubscriptionMspPricingResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QuotePurchase message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.SubscriptionMspPricingResponse + * @memberof BI.QuotePurchase * @static * @param {Object.} object Plain object - * @returns {BI.SubscriptionMspPricingResponse} SubscriptionMspPricingResponse + * @returns {BI.QuotePurchase} QuotePurchase */ - SubscriptionMspPricingResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SubscriptionMspPricingResponse) + QuotePurchase.fromObject = function fromObject(object) { + if (object instanceof $root.BI.QuotePurchase) return object; - let message = new $root.BI.SubscriptionMspPricingResponse(); - if (object.addons) { - if (!Array.isArray(object.addons)) - throw TypeError(".BI.SubscriptionMspPricingResponse.addons: array expected"); - message.addons = []; - for (let i = 0; i < object.addons.length; ++i) { - if (typeof object.addons[i] !== "object") - throw TypeError(".BI.SubscriptionMspPricingResponse.addons: object expected"); - message.addons[i] = $root.BI.Addon.fromObject(object.addons[i]); - } - } - if (object.filePlans) { - if (!Array.isArray(object.filePlans)) - throw TypeError(".BI.SubscriptionMspPricingResponse.filePlans: array expected"); - message.filePlans = []; - for (let i = 0; i < object.filePlans.length; ++i) { - if (typeof object.filePlans[i] !== "object") - throw TypeError(".BI.SubscriptionMspPricingResponse.filePlans: object expected"); - message.filePlans[i] = $root.BI.FilePlan.fromObject(object.filePlans[i]); - } - } + let message = new $root.BI.QuotePurchase(); + if (object.quoteTotal != null) + message.quoteTotal = Number(object.quoteTotal); + if (object.includedTax != null) + message.includedTax = Boolean(object.includedTax); + if (object.includedOtherAddons != null) + message.includedOtherAddons = Boolean(object.includedOtherAddons); + if (object.taxAmount != null) + message.taxAmount = Number(object.taxAmount); + if (object.taxLabel != null) + message.taxLabel = String(object.taxLabel); + if (object.purchaseIdentifier != null) + message.purchaseIdentifier = String(object.purchaseIdentifier); return message; }; /** - * Creates a plain object from a SubscriptionMspPricingResponse message. Also converts values to other types if specified. + * Creates a plain object from a QuotePurchase message. Also converts values to other types if specified. * @function toObject - * @memberof BI.SubscriptionMspPricingResponse + * @memberof BI.QuotePurchase * @static - * @param {BI.SubscriptionMspPricingResponse} message SubscriptionMspPricingResponse + * @param {BI.QuotePurchase} message QuotePurchase * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SubscriptionMspPricingResponse.toObject = function toObject(message, options) { + QuotePurchase.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.addons = []; - object.filePlans = []; - } - if (message.addons && message.addons.length) { - object.addons = []; - for (let j = 0; j < message.addons.length; ++j) - object.addons[j] = $root.BI.Addon.toObject(message.addons[j], options); - } - if (message.filePlans && message.filePlans.length) { - object.filePlans = []; - for (let j = 0; j < message.filePlans.length; ++j) - object.filePlans[j] = $root.BI.FilePlan.toObject(message.filePlans[j], options); + if (options.defaults) { + object.quoteTotal = 0; + object.includedTax = false; + object.includedOtherAddons = false; + object.taxAmount = 0; + object.taxLabel = ""; + object.purchaseIdentifier = ""; } + if (message.quoteTotal != null && message.hasOwnProperty("quoteTotal")) + object.quoteTotal = options.json && !isFinite(message.quoteTotal) ? String(message.quoteTotal) : message.quoteTotal; + if (message.includedTax != null && message.hasOwnProperty("includedTax")) + object.includedTax = message.includedTax; + if (message.includedOtherAddons != null && message.hasOwnProperty("includedOtherAddons")) + object.includedOtherAddons = message.includedOtherAddons; + if (message.taxAmount != null && message.hasOwnProperty("taxAmount")) + object.taxAmount = options.json && !isFinite(message.taxAmount) ? String(message.taxAmount) : message.taxAmount; + if (message.taxLabel != null && message.hasOwnProperty("taxLabel")) + object.taxLabel = message.taxLabel; + if (message.purchaseIdentifier != null && message.hasOwnProperty("purchaseIdentifier")) + object.purchaseIdentifier = message.purchaseIdentifier; return object; }; /** - * Converts this SubscriptionMspPricingResponse to JSON. + * Converts this QuotePurchase to JSON. * @function toJSON - * @memberof BI.SubscriptionMspPricingResponse + * @memberof BI.QuotePurchase * @instance * @returns {Object.} JSON object */ - SubscriptionMspPricingResponse.prototype.toJSON = function toJSON() { + QuotePurchase.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SubscriptionMspPricingResponse + * Gets the default type url for QuotePurchase * @function getTypeUrl - * @memberof BI.SubscriptionMspPricingResponse + * @memberof BI.QuotePurchase * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SubscriptionMspPricingResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QuotePurchase.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.SubscriptionMspPricingResponse"; + return typeUrlPrefix + "/BI.QuotePurchase"; }; - return SubscriptionMspPricingResponse; + return QuotePurchase; })(); - BI.SubscriptionMcPricingRequest = (function() { + BI.PurchaseOptions = (function() { /** - * Properties of a SubscriptionMcPricingRequest. + * Properties of a PurchaseOptions. * @memberof BI - * @interface ISubscriptionMcPricingRequest + * @interface IPurchaseOptions + * @property {boolean|null} [inConsole] PurchaseOptions inConsole + * @property {boolean|null} [externalCheckout] PurchaseOptions externalCheckout */ /** - * Constructs a new SubscriptionMcPricingRequest. + * Constructs a new PurchaseOptions. * @memberof BI - * @classdesc Represents a SubscriptionMcPricingRequest. - * @implements ISubscriptionMcPricingRequest + * @classdesc Represents a PurchaseOptions. + * @implements IPurchaseOptions * @constructor - * @param {BI.ISubscriptionMcPricingRequest=} [properties] Properties to set + * @param {BI.IPurchaseOptions=} [properties] Properties to set */ - function SubscriptionMcPricingRequest(properties) { + function PurchaseOptions(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -227575,63 +256298,116 @@ export const BI = $root.BI = (() => { } /** - * Creates a new SubscriptionMcPricingRequest instance using the specified properties. + * PurchaseOptions inConsole. + * @member {boolean|null|undefined} inConsole + * @memberof BI.PurchaseOptions + * @instance + */ + PurchaseOptions.prototype.inConsole = null; + + /** + * PurchaseOptions externalCheckout. + * @member {boolean|null|undefined} externalCheckout + * @memberof BI.PurchaseOptions + * @instance + */ + PurchaseOptions.prototype.externalCheckout = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * PurchaseOptions _inConsole. + * @member {"inConsole"|undefined} _inConsole + * @memberof BI.PurchaseOptions + * @instance + */ + Object.defineProperty(PurchaseOptions.prototype, "_inConsole", { + get: $util.oneOfGetter($oneOfFields = ["inConsole"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PurchaseOptions _externalCheckout. + * @member {"externalCheckout"|undefined} _externalCheckout + * @memberof BI.PurchaseOptions + * @instance + */ + Object.defineProperty(PurchaseOptions.prototype, "_externalCheckout", { + get: $util.oneOfGetter($oneOfFields = ["externalCheckout"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PurchaseOptions instance using the specified properties. * @function create - * @memberof BI.SubscriptionMcPricingRequest + * @memberof BI.PurchaseOptions * @static - * @param {BI.ISubscriptionMcPricingRequest=} [properties] Properties to set - * @returns {BI.SubscriptionMcPricingRequest} SubscriptionMcPricingRequest instance + * @param {BI.IPurchaseOptions=} [properties] Properties to set + * @returns {BI.PurchaseOptions} PurchaseOptions instance */ - SubscriptionMcPricingRequest.create = function create(properties) { - return new SubscriptionMcPricingRequest(properties); + PurchaseOptions.create = function create(properties) { + return new PurchaseOptions(properties); }; /** - * Encodes the specified SubscriptionMcPricingRequest message. Does not implicitly {@link BI.SubscriptionMcPricingRequest.verify|verify} messages. + * Encodes the specified PurchaseOptions message. Does not implicitly {@link BI.PurchaseOptions.verify|verify} messages. * @function encode - * @memberof BI.SubscriptionMcPricingRequest + * @memberof BI.PurchaseOptions * @static - * @param {BI.ISubscriptionMcPricingRequest} message SubscriptionMcPricingRequest message or plain object to encode + * @param {BI.IPurchaseOptions} message PurchaseOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionMcPricingRequest.encode = function encode(message, writer) { + PurchaseOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.inConsole != null && Object.hasOwnProperty.call(message, "inConsole")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.inConsole); + if (message.externalCheckout != null && Object.hasOwnProperty.call(message, "externalCheckout")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.externalCheckout); return writer; }; /** - * Encodes the specified SubscriptionMcPricingRequest message, length delimited. Does not implicitly {@link BI.SubscriptionMcPricingRequest.verify|verify} messages. + * Encodes the specified PurchaseOptions message, length delimited. Does not implicitly {@link BI.PurchaseOptions.verify|verify} messages. * @function encodeDelimited - * @memberof BI.SubscriptionMcPricingRequest + * @memberof BI.PurchaseOptions * @static - * @param {BI.ISubscriptionMcPricingRequest} message SubscriptionMcPricingRequest message or plain object to encode + * @param {BI.IPurchaseOptions} message PurchaseOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionMcPricingRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurchaseOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SubscriptionMcPricingRequest message from the specified reader or buffer. + * Decodes a PurchaseOptions message from the specified reader or buffer. * @function decode - * @memberof BI.SubscriptionMcPricingRequest + * @memberof BI.PurchaseOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.SubscriptionMcPricingRequest} SubscriptionMcPricingRequest + * @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 */ - SubscriptionMcPricingRequest.decode = function decode(reader, length) { + PurchaseOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionMcPricingRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PurchaseOptions(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.inConsole = reader.bool(); + break; + } + case 2: { + message.externalCheckout = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -227641,227 +256417,514 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a SubscriptionMcPricingRequest message from the specified reader or buffer, length delimited. + * Decodes a PurchaseOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.SubscriptionMcPricingRequest + * @memberof BI.PurchaseOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SubscriptionMcPricingRequest} SubscriptionMcPricingRequest + * @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 */ - SubscriptionMcPricingRequest.decodeDelimited = function decodeDelimited(reader) { + PurchaseOptions.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 + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof BI.PurchaseOptions + * @static + * @param {Object.} object Plain object + * @returns {BI.PurchaseOptions} PurchaseOptions + */ + PurchaseOptions.fromObject = function fromObject(object) { + if (object instanceof $root.BI.PurchaseOptions) + return object; + let message = new $root.BI.PurchaseOptions(); + if (object.inConsole != null) + message.inConsole = Boolean(object.inConsole); + if (object.externalCheckout != null) + message.externalCheckout = Boolean(object.externalCheckout); + return message; + }; + + /** + * Creates a plain object from a PurchaseOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.PurchaseOptions + * @static + * @param {BI.PurchaseOptions} message PurchaseOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PurchaseOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (message.inConsole != null && message.hasOwnProperty("inConsole")) { + object.inConsole = message.inConsole; + if (options.oneofs) + object._inConsole = "inConsole"; + } + if (message.externalCheckout != null && message.hasOwnProperty("externalCheckout")) { + object.externalCheckout = message.externalCheckout; + if (options.oneofs) + object._externalCheckout = "externalCheckout"; + } + return object; + }; + + /** + * Converts this PurchaseOptions to JSON. + * @function toJSON + * @memberof BI.PurchaseOptions + * @instance + * @returns {Object.} JSON object + */ + PurchaseOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PurchaseOptions + * @function getTypeUrl + * @memberof BI.PurchaseOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PurchaseOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.PurchaseOptions"; + }; + + return PurchaseOptions; + })(); + + BI.AddonPurchaseOptions = (function() { + + /** + * Properties of an AddonPurchaseOptions. + * @memberof BI + * @interface IAddonPurchaseOptions + * @property {BI.IPurchaseOptions|null} [storage] AddonPurchaseOptions storage + * @property {BI.IPurchaseOptions|null} [audit] AddonPurchaseOptions audit + * @property {BI.IPurchaseOptions|null} [breachwatch] AddonPurchaseOptions breachwatch + * @property {BI.IPurchaseOptions|null} [chat] AddonPurchaseOptions chat + * @property {BI.IPurchaseOptions|null} [compliance] AddonPurchaseOptions compliance + * @property {BI.IPurchaseOptions|null} [professionalServicesSilver] AddonPurchaseOptions professionalServicesSilver + * @property {BI.IPurchaseOptions|null} [professionalServicesPlatinum] AddonPurchaseOptions professionalServicesPlatinum + * @property {BI.IPurchaseOptions|null} [pam] AddonPurchaseOptions pam + * @property {BI.IPurchaseOptions|null} [epm] AddonPurchaseOptions epm + * @property {BI.IPurchaseOptions|null} [secretsManager] AddonPurchaseOptions secretsManager + * @property {BI.IPurchaseOptions|null} [connectionManager] AddonPurchaseOptions connectionManager + * @property {BI.IPurchaseOptions|null} [remoteBrowserIsolation] AddonPurchaseOptions remoteBrowserIsolation + */ + + /** + * Constructs a new AddonPurchaseOptions. + * @memberof BI + * @classdesc Represents an AddonPurchaseOptions. + * @implements IAddonPurchaseOptions + * @constructor + * @param {BI.IAddonPurchaseOptions=} [properties] Properties to set + */ + function AddonPurchaseOptions(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AddonPurchaseOptions storage. + * @member {BI.IPurchaseOptions|null|undefined} storage + * @memberof BI.AddonPurchaseOptions + * @instance + */ + AddonPurchaseOptions.prototype.storage = null; + + /** + * AddonPurchaseOptions audit. + * @member {BI.IPurchaseOptions|null|undefined} audit + * @memberof BI.AddonPurchaseOptions + * @instance + */ + AddonPurchaseOptions.prototype.audit = null; + + /** + * AddonPurchaseOptions breachwatch. + * @member {BI.IPurchaseOptions|null|undefined} breachwatch + * @memberof BI.AddonPurchaseOptions + * @instance + */ + AddonPurchaseOptions.prototype.breachwatch = null; + + /** + * AddonPurchaseOptions chat. + * @member {BI.IPurchaseOptions|null|undefined} chat + * @memberof BI.AddonPurchaseOptions + * @instance + */ + AddonPurchaseOptions.prototype.chat = null; + + /** + * AddonPurchaseOptions compliance. + * @member {BI.IPurchaseOptions|null|undefined} compliance + * @memberof BI.AddonPurchaseOptions + * @instance + */ + AddonPurchaseOptions.prototype.compliance = null; + + /** + * AddonPurchaseOptions professionalServicesSilver. + * @member {BI.IPurchaseOptions|null|undefined} professionalServicesSilver + * @memberof BI.AddonPurchaseOptions + * @instance + */ + AddonPurchaseOptions.prototype.professionalServicesSilver = null; + + /** + * AddonPurchaseOptions professionalServicesPlatinum. + * @member {BI.IPurchaseOptions|null|undefined} professionalServicesPlatinum + * @memberof BI.AddonPurchaseOptions + * @instance + */ + AddonPurchaseOptions.prototype.professionalServicesPlatinum = null; + + /** + * AddonPurchaseOptions pam. + * @member {BI.IPurchaseOptions|null|undefined} pam + * @memberof BI.AddonPurchaseOptions + * @instance + */ + AddonPurchaseOptions.prototype.pam = null; + + /** + * AddonPurchaseOptions epm. + * @member {BI.IPurchaseOptions|null|undefined} epm + * @memberof BI.AddonPurchaseOptions + * @instance + */ + AddonPurchaseOptions.prototype.epm = null; + + /** + * AddonPurchaseOptions secretsManager. + * @member {BI.IPurchaseOptions|null|undefined} secretsManager + * @memberof BI.AddonPurchaseOptions + * @instance + */ + AddonPurchaseOptions.prototype.secretsManager = null; + + /** + * AddonPurchaseOptions connectionManager. + * @member {BI.IPurchaseOptions|null|undefined} connectionManager + * @memberof BI.AddonPurchaseOptions + * @instance + */ + AddonPurchaseOptions.prototype.connectionManager = null; + + /** + * AddonPurchaseOptions remoteBrowserIsolation. + * @member {BI.IPurchaseOptions|null|undefined} remoteBrowserIsolation + * @memberof BI.AddonPurchaseOptions + * @instance + */ + AddonPurchaseOptions.prototype.remoteBrowserIsolation = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * AddonPurchaseOptions _storage. + * @member {"storage"|undefined} _storage + * @memberof BI.AddonPurchaseOptions + * @instance + */ + Object.defineProperty(AddonPurchaseOptions.prototype, "_storage", { + get: $util.oneOfGetter($oneOfFields = ["storage"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AddonPurchaseOptions _audit. + * @member {"audit"|undefined} _audit + * @memberof BI.AddonPurchaseOptions + * @instance + */ + Object.defineProperty(AddonPurchaseOptions.prototype, "_audit", { + get: $util.oneOfGetter($oneOfFields = ["audit"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AddonPurchaseOptions _breachwatch. + * @member {"breachwatch"|undefined} _breachwatch + * @memberof BI.AddonPurchaseOptions + * @instance */ - SubscriptionMcPricingRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + Object.defineProperty(AddonPurchaseOptions.prototype, "_breachwatch", { + get: $util.oneOfGetter($oneOfFields = ["breachwatch"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a SubscriptionMcPricingRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.SubscriptionMcPricingRequest - * @static - * @param {Object.} object Plain object - * @returns {BI.SubscriptionMcPricingRequest} SubscriptionMcPricingRequest + * AddonPurchaseOptions _chat. + * @member {"chat"|undefined} _chat + * @memberof BI.AddonPurchaseOptions + * @instance */ - SubscriptionMcPricingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SubscriptionMcPricingRequest) - return object; - return new $root.BI.SubscriptionMcPricingRequest(); - }; + Object.defineProperty(AddonPurchaseOptions.prototype, "_chat", { + get: $util.oneOfGetter($oneOfFields = ["chat"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a plain object from a SubscriptionMcPricingRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.SubscriptionMcPricingRequest - * @static - * @param {BI.SubscriptionMcPricingRequest} message SubscriptionMcPricingRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * AddonPurchaseOptions _compliance. + * @member {"compliance"|undefined} _compliance + * @memberof BI.AddonPurchaseOptions + * @instance */ - SubscriptionMcPricingRequest.toObject = function toObject() { - return {}; - }; + Object.defineProperty(AddonPurchaseOptions.prototype, "_compliance", { + get: $util.oneOfGetter($oneOfFields = ["compliance"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Converts this SubscriptionMcPricingRequest to JSON. - * @function toJSON - * @memberof BI.SubscriptionMcPricingRequest + * AddonPurchaseOptions _professionalServicesSilver. + * @member {"professionalServicesSilver"|undefined} _professionalServicesSilver + * @memberof BI.AddonPurchaseOptions * @instance - * @returns {Object.} JSON object */ - SubscriptionMcPricingRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(AddonPurchaseOptions.prototype, "_professionalServicesSilver", { + get: $util.oneOfGetter($oneOfFields = ["professionalServicesSilver"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Gets the default type url for SubscriptionMcPricingRequest - * @function getTypeUrl - * @memberof BI.SubscriptionMcPricingRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * AddonPurchaseOptions _professionalServicesPlatinum. + * @member {"professionalServicesPlatinum"|undefined} _professionalServicesPlatinum + * @memberof BI.AddonPurchaseOptions + * @instance */ - SubscriptionMcPricingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.SubscriptionMcPricingRequest"; - }; - - return SubscriptionMcPricingRequest; - })(); - - BI.SubscriptionMcPricingResponse = (function() { + Object.defineProperty(AddonPurchaseOptions.prototype, "_professionalServicesPlatinum", { + get: $util.oneOfGetter($oneOfFields = ["professionalServicesPlatinum"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Properties of a SubscriptionMcPricingResponse. - * @memberof BI - * @interface ISubscriptionMcPricingResponse - * @property {Array.|null} [basePlans] SubscriptionMcPricingResponse basePlans - * @property {Array.|null} [addons] SubscriptionMcPricingResponse addons - * @property {Array.|null} [filePlans] SubscriptionMcPricingResponse filePlans + * AddonPurchaseOptions _pam. + * @member {"pam"|undefined} _pam + * @memberof BI.AddonPurchaseOptions + * @instance */ + Object.defineProperty(AddonPurchaseOptions.prototype, "_pam", { + get: $util.oneOfGetter($oneOfFields = ["pam"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Constructs a new SubscriptionMcPricingResponse. - * @memberof BI - * @classdesc Represents a SubscriptionMcPricingResponse. - * @implements ISubscriptionMcPricingResponse - * @constructor - * @param {BI.ISubscriptionMcPricingResponse=} [properties] Properties to set + * AddonPurchaseOptions _epm. + * @member {"epm"|undefined} _epm + * @memberof BI.AddonPurchaseOptions + * @instance */ - function SubscriptionMcPricingResponse(properties) { - this.basePlans = []; - this.addons = []; - this.filePlans = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(AddonPurchaseOptions.prototype, "_epm", { + get: $util.oneOfGetter($oneOfFields = ["epm"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * SubscriptionMcPricingResponse basePlans. - * @member {Array.} basePlans - * @memberof BI.SubscriptionMcPricingResponse + * AddonPurchaseOptions _secretsManager. + * @member {"secretsManager"|undefined} _secretsManager + * @memberof BI.AddonPurchaseOptions * @instance */ - SubscriptionMcPricingResponse.prototype.basePlans = $util.emptyArray; + Object.defineProperty(AddonPurchaseOptions.prototype, "_secretsManager", { + get: $util.oneOfGetter($oneOfFields = ["secretsManager"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * SubscriptionMcPricingResponse addons. - * @member {Array.} addons - * @memberof BI.SubscriptionMcPricingResponse + * AddonPurchaseOptions _connectionManager. + * @member {"connectionManager"|undefined} _connectionManager + * @memberof BI.AddonPurchaseOptions * @instance */ - SubscriptionMcPricingResponse.prototype.addons = $util.emptyArray; + Object.defineProperty(AddonPurchaseOptions.prototype, "_connectionManager", { + get: $util.oneOfGetter($oneOfFields = ["connectionManager"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * SubscriptionMcPricingResponse filePlans. - * @member {Array.} filePlans - * @memberof BI.SubscriptionMcPricingResponse + * AddonPurchaseOptions _remoteBrowserIsolation. + * @member {"remoteBrowserIsolation"|undefined} _remoteBrowserIsolation + * @memberof BI.AddonPurchaseOptions * @instance */ - SubscriptionMcPricingResponse.prototype.filePlans = $util.emptyArray; + Object.defineProperty(AddonPurchaseOptions.prototype, "_remoteBrowserIsolation", { + get: $util.oneOfGetter($oneOfFields = ["remoteBrowserIsolation"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new SubscriptionMcPricingResponse instance using the specified properties. + * Creates a new AddonPurchaseOptions instance using the specified properties. * @function create - * @memberof BI.SubscriptionMcPricingResponse + * @memberof BI.AddonPurchaseOptions * @static - * @param {BI.ISubscriptionMcPricingResponse=} [properties] Properties to set - * @returns {BI.SubscriptionMcPricingResponse} SubscriptionMcPricingResponse instance + * @param {BI.IAddonPurchaseOptions=} [properties] Properties to set + * @returns {BI.AddonPurchaseOptions} AddonPurchaseOptions instance */ - SubscriptionMcPricingResponse.create = function create(properties) { - return new SubscriptionMcPricingResponse(properties); + AddonPurchaseOptions.create = function create(properties) { + return new AddonPurchaseOptions(properties); }; /** - * Encodes the specified SubscriptionMcPricingResponse message. Does not implicitly {@link BI.SubscriptionMcPricingResponse.verify|verify} messages. + * Encodes the specified AddonPurchaseOptions message. Does not implicitly {@link BI.AddonPurchaseOptions.verify|verify} messages. * @function encode - * @memberof BI.SubscriptionMcPricingResponse + * @memberof BI.AddonPurchaseOptions * @static - * @param {BI.ISubscriptionMcPricingResponse} message SubscriptionMcPricingResponse message or plain object to encode + * @param {BI.IAddonPurchaseOptions} message AddonPurchaseOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionMcPricingResponse.encode = function encode(message, writer) { + AddonPurchaseOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.basePlans != null && message.basePlans.length) - for (let i = 0; i < message.basePlans.length; ++i) - $root.BI.BasePlan.encode(message.basePlans[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.addons != null && message.addons.length) - for (let i = 0; i < message.addons.length; ++i) - $root.BI.Addon.encode(message.addons[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.filePlans != null && message.filePlans.length) - for (let i = 0; i < message.filePlans.length; ++i) - $root.BI.FilePlan.encode(message.filePlans[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.storage != null && Object.hasOwnProperty.call(message, "storage")) + $root.BI.PurchaseOptions.encode(message.storage, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) + $root.BI.PurchaseOptions.encode(message.audit, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.breachwatch != null && Object.hasOwnProperty.call(message, "breachwatch")) + $root.BI.PurchaseOptions.encode(message.breachwatch, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.chat != null && Object.hasOwnProperty.call(message, "chat")) + $root.BI.PurchaseOptions.encode(message.chat, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.compliance != null && Object.hasOwnProperty.call(message, "compliance")) + $root.BI.PurchaseOptions.encode(message.compliance, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.professionalServicesSilver != null && Object.hasOwnProperty.call(message, "professionalServicesSilver")) + $root.BI.PurchaseOptions.encode(message.professionalServicesSilver, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.professionalServicesPlatinum != null && Object.hasOwnProperty.call(message, "professionalServicesPlatinum")) + $root.BI.PurchaseOptions.encode(message.professionalServicesPlatinum, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.pam != null && Object.hasOwnProperty.call(message, "pam")) + $root.BI.PurchaseOptions.encode(message.pam, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.epm != null && Object.hasOwnProperty.call(message, "epm")) + $root.BI.PurchaseOptions.encode(message.epm, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.secretsManager != null && Object.hasOwnProperty.call(message, "secretsManager")) + $root.BI.PurchaseOptions.encode(message.secretsManager, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.connectionManager != null && Object.hasOwnProperty.call(message, "connectionManager")) + $root.BI.PurchaseOptions.encode(message.connectionManager, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.remoteBrowserIsolation != null && Object.hasOwnProperty.call(message, "remoteBrowserIsolation")) + $root.BI.PurchaseOptions.encode(message.remoteBrowserIsolation, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; /** - * Encodes the specified SubscriptionMcPricingResponse message, length delimited. Does not implicitly {@link BI.SubscriptionMcPricingResponse.verify|verify} messages. + * Encodes the specified AddonPurchaseOptions message, length delimited. Does not implicitly {@link BI.AddonPurchaseOptions.verify|verify} messages. * @function encodeDelimited - * @memberof BI.SubscriptionMcPricingResponse + * @memberof BI.AddonPurchaseOptions * @static - * @param {BI.ISubscriptionMcPricingResponse} message SubscriptionMcPricingResponse message or plain object to encode + * @param {BI.IAddonPurchaseOptions} message AddonPurchaseOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionMcPricingResponse.encodeDelimited = function encodeDelimited(message, writer) { + AddonPurchaseOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SubscriptionMcPricingResponse message from the specified reader or buffer. + * Decodes an AddonPurchaseOptions message from the specified reader or buffer. * @function decode - * @memberof BI.SubscriptionMcPricingResponse + * @memberof BI.AddonPurchaseOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.SubscriptionMcPricingResponse} SubscriptionMcPricingResponse + * @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 */ - SubscriptionMcPricingResponse.decode = function decode(reader, length) { + AddonPurchaseOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionMcPricingResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.AddonPurchaseOptions(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.basePlans && message.basePlans.length)) - message.basePlans = []; - message.basePlans.push($root.BI.BasePlan.decode(reader, reader.uint32())); + message.storage = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } case 2: { - if (!(message.addons && message.addons.length)) - message.addons = []; - message.addons.push($root.BI.Addon.decode(reader, reader.uint32())); + message.audit = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } case 3: { - if (!(message.filePlans && message.filePlans.length)) - message.filePlans = []; - message.filePlans.push($root.BI.FilePlan.decode(reader, reader.uint32())); + message.breachwatch = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + break; + } + case 4: { + message.chat = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + break; + } + case 5: { + message.compliance = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + break; + } + case 6: { + message.professionalServicesSilver = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + break; + } + case 7: { + message.professionalServicesPlatinum = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + break; + } + case 8: { + message.pam = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + message.epm = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + break; + } + case 10: { + message.secretsManager = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + break; + } + case 11: { + message.connectionManager = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + break; + } + case 12: { + message.remoteBrowserIsolation = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } default: @@ -227873,191 +256936,332 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a SubscriptionMcPricingResponse message from the specified reader or buffer, length delimited. + * Decodes an AddonPurchaseOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.SubscriptionMcPricingResponse + * @memberof BI.AddonPurchaseOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SubscriptionMcPricingResponse} SubscriptionMcPricingResponse + * @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 */ - SubscriptionMcPricingResponse.decodeDelimited = function decodeDelimited(reader) { + AddonPurchaseOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SubscriptionMcPricingResponse message. + * Verifies an AddonPurchaseOptions message. * @function verify - * @memberof BI.SubscriptionMcPricingResponse + * @memberof BI.AddonPurchaseOptions * @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) { + AddonPurchaseOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); + let properties = {}; + if (message.storage != null && message.hasOwnProperty("storage")) { + properties._storage = 1; + { + let error = $root.BI.PurchaseOptions.verify(message.storage); if (error) - return "basePlans." + error; + return "storage." + 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]); + if (message.audit != null && message.hasOwnProperty("audit")) { + properties._audit = 1; + { + let error = $root.BI.PurchaseOptions.verify(message.audit); if (error) - return "addons." + error; + return "audit." + 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]); + if (message.breachwatch != null && message.hasOwnProperty("breachwatch")) { + properties._breachwatch = 1; + { + let error = $root.BI.PurchaseOptions.verify(message.breachwatch); if (error) - return "filePlans." + error; + return "breachwatch." + error; + } + } + if (message.chat != null && message.hasOwnProperty("chat")) { + properties._chat = 1; + { + let error = $root.BI.PurchaseOptions.verify(message.chat); + if (error) + return "chat." + error; + } + } + if (message.compliance != null && message.hasOwnProperty("compliance")) { + properties._compliance = 1; + { + let error = $root.BI.PurchaseOptions.verify(message.compliance); + if (error) + return "compliance." + error; + } + } + if (message.professionalServicesSilver != null && message.hasOwnProperty("professionalServicesSilver")) { + properties._professionalServicesSilver = 1; + { + let error = $root.BI.PurchaseOptions.verify(message.professionalServicesSilver); + if (error) + return "professionalServicesSilver." + error; + } + } + if (message.professionalServicesPlatinum != null && message.hasOwnProperty("professionalServicesPlatinum")) { + properties._professionalServicesPlatinum = 1; + { + let error = $root.BI.PurchaseOptions.verify(message.professionalServicesPlatinum); + if (error) + return "professionalServicesPlatinum." + error; + } + } + if (message.pam != null && message.hasOwnProperty("pam")) { + properties._pam = 1; + { + let error = $root.BI.PurchaseOptions.verify(message.pam); + if (error) + return "pam." + error; + } + } + if (message.epm != null && message.hasOwnProperty("epm")) { + properties._epm = 1; + { + let error = $root.BI.PurchaseOptions.verify(message.epm); + if (error) + return "epm." + error; + } + } + if (message.secretsManager != null && message.hasOwnProperty("secretsManager")) { + properties._secretsManager = 1; + { + let error = $root.BI.PurchaseOptions.verify(message.secretsManager); + if (error) + return "secretsManager." + error; + } + } + if (message.connectionManager != null && message.hasOwnProperty("connectionManager")) { + properties._connectionManager = 1; + { + let error = $root.BI.PurchaseOptions.verify(message.connectionManager); + if (error) + return "connectionManager." + error; + } + } + if (message.remoteBrowserIsolation != null && message.hasOwnProperty("remoteBrowserIsolation")) { + properties._remoteBrowserIsolation = 1; + { + let error = $root.BI.PurchaseOptions.verify(message.remoteBrowserIsolation); + if (error) + return "remoteBrowserIsolation." + error; } } return null; }; /** - * Creates a SubscriptionMcPricingResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AddonPurchaseOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.SubscriptionMcPricingResponse + * @memberof BI.AddonPurchaseOptions * @static * @param {Object.} object Plain object - * @returns {BI.SubscriptionMcPricingResponse} SubscriptionMcPricingResponse + * @returns {BI.AddonPurchaseOptions} AddonPurchaseOptions */ - SubscriptionMcPricingResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SubscriptionMcPricingResponse) + AddonPurchaseOptions.fromObject = function fromObject(object) { + if (object instanceof $root.BI.AddonPurchaseOptions) return object; - let message = new $root.BI.SubscriptionMcPricingResponse(); - if (object.basePlans) { - if (!Array.isArray(object.basePlans)) - throw TypeError(".BI.SubscriptionMcPricingResponse.basePlans: array expected"); - message.basePlans = []; - for (let i = 0; i < object.basePlans.length; ++i) { - if (typeof object.basePlans[i] !== "object") - throw TypeError(".BI.SubscriptionMcPricingResponse.basePlans: object expected"); - message.basePlans[i] = $root.BI.BasePlan.fromObject(object.basePlans[i]); - } + let message = new $root.BI.AddonPurchaseOptions(); + if (object.storage != null) { + if (typeof object.storage !== "object") + throw TypeError(".BI.AddonPurchaseOptions.storage: object expected"); + message.storage = $root.BI.PurchaseOptions.fromObject(object.storage); } - if (object.addons) { - if (!Array.isArray(object.addons)) - throw TypeError(".BI.SubscriptionMcPricingResponse.addons: array expected"); - message.addons = []; - for (let i = 0; i < object.addons.length; ++i) { - if (typeof object.addons[i] !== "object") - throw TypeError(".BI.SubscriptionMcPricingResponse.addons: object expected"); - message.addons[i] = $root.BI.Addon.fromObject(object.addons[i]); - } + if (object.audit != null) { + if (typeof object.audit !== "object") + throw TypeError(".BI.AddonPurchaseOptions.audit: object expected"); + message.audit = $root.BI.PurchaseOptions.fromObject(object.audit); } - if (object.filePlans) { - if (!Array.isArray(object.filePlans)) - throw TypeError(".BI.SubscriptionMcPricingResponse.filePlans: array expected"); - message.filePlans = []; - for (let i = 0; i < object.filePlans.length; ++i) { - if (typeof object.filePlans[i] !== "object") - throw TypeError(".BI.SubscriptionMcPricingResponse.filePlans: object expected"); - message.filePlans[i] = $root.BI.FilePlan.fromObject(object.filePlans[i]); - } + if (object.breachwatch != null) { + if (typeof object.breachwatch !== "object") + throw TypeError(".BI.AddonPurchaseOptions.breachwatch: object expected"); + message.breachwatch = $root.BI.PurchaseOptions.fromObject(object.breachwatch); + } + if (object.chat != null) { + if (typeof object.chat !== "object") + throw TypeError(".BI.AddonPurchaseOptions.chat: object expected"); + message.chat = $root.BI.PurchaseOptions.fromObject(object.chat); + } + if (object.compliance != null) { + if (typeof object.compliance !== "object") + throw TypeError(".BI.AddonPurchaseOptions.compliance: object expected"); + message.compliance = $root.BI.PurchaseOptions.fromObject(object.compliance); + } + if (object.professionalServicesSilver != null) { + if (typeof object.professionalServicesSilver !== "object") + throw TypeError(".BI.AddonPurchaseOptions.professionalServicesSilver: object expected"); + message.professionalServicesSilver = $root.BI.PurchaseOptions.fromObject(object.professionalServicesSilver); + } + if (object.professionalServicesPlatinum != null) { + if (typeof object.professionalServicesPlatinum !== "object") + throw TypeError(".BI.AddonPurchaseOptions.professionalServicesPlatinum: object expected"); + message.professionalServicesPlatinum = $root.BI.PurchaseOptions.fromObject(object.professionalServicesPlatinum); + } + if (object.pam != null) { + if (typeof object.pam !== "object") + throw TypeError(".BI.AddonPurchaseOptions.pam: object expected"); + message.pam = $root.BI.PurchaseOptions.fromObject(object.pam); + } + if (object.epm != null) { + if (typeof object.epm !== "object") + throw TypeError(".BI.AddonPurchaseOptions.epm: object expected"); + message.epm = $root.BI.PurchaseOptions.fromObject(object.epm); + } + if (object.secretsManager != null) { + if (typeof object.secretsManager !== "object") + throw TypeError(".BI.AddonPurchaseOptions.secretsManager: object expected"); + message.secretsManager = $root.BI.PurchaseOptions.fromObject(object.secretsManager); + } + if (object.connectionManager != null) { + if (typeof object.connectionManager !== "object") + throw TypeError(".BI.AddonPurchaseOptions.connectionManager: object expected"); + message.connectionManager = $root.BI.PurchaseOptions.fromObject(object.connectionManager); + } + if (object.remoteBrowserIsolation != null) { + if (typeof object.remoteBrowserIsolation !== "object") + throw TypeError(".BI.AddonPurchaseOptions.remoteBrowserIsolation: object expected"); + message.remoteBrowserIsolation = $root.BI.PurchaseOptions.fromObject(object.remoteBrowserIsolation); } return message; }; /** - * Creates a plain object from a SubscriptionMcPricingResponse message. Also converts values to other types if specified. + * Creates a plain object from an AddonPurchaseOptions message. Also converts values to other types if specified. * @function toObject - * @memberof BI.SubscriptionMcPricingResponse + * @memberof BI.AddonPurchaseOptions * @static - * @param {BI.SubscriptionMcPricingResponse} message SubscriptionMcPricingResponse + * @param {BI.AddonPurchaseOptions} message AddonPurchaseOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SubscriptionMcPricingResponse.toObject = function toObject(message, options) { + AddonPurchaseOptions.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.basePlans = []; - object.addons = []; - object.filePlans = []; + if (message.storage != null && message.hasOwnProperty("storage")) { + object.storage = $root.BI.PurchaseOptions.toObject(message.storage, options); + if (options.oneofs) + object._storage = "storage"; } - if (message.basePlans && message.basePlans.length) { - object.basePlans = []; - for (let j = 0; j < message.basePlans.length; ++j) - object.basePlans[j] = $root.BI.BasePlan.toObject(message.basePlans[j], options); + if (message.audit != null && message.hasOwnProperty("audit")) { + object.audit = $root.BI.PurchaseOptions.toObject(message.audit, options); + if (options.oneofs) + object._audit = "audit"; } - if (message.addons && message.addons.length) { - object.addons = []; - for (let j = 0; j < message.addons.length; ++j) - object.addons[j] = $root.BI.Addon.toObject(message.addons[j], options); + if (message.breachwatch != null && message.hasOwnProperty("breachwatch")) { + object.breachwatch = $root.BI.PurchaseOptions.toObject(message.breachwatch, options); + if (options.oneofs) + object._breachwatch = "breachwatch"; } - if (message.filePlans && message.filePlans.length) { - object.filePlans = []; - for (let j = 0; j < message.filePlans.length; ++j) - object.filePlans[j] = $root.BI.FilePlan.toObject(message.filePlans[j], options); + if (message.chat != null && message.hasOwnProperty("chat")) { + object.chat = $root.BI.PurchaseOptions.toObject(message.chat, options); + if (options.oneofs) + object._chat = "chat"; + } + if (message.compliance != null && message.hasOwnProperty("compliance")) { + object.compliance = $root.BI.PurchaseOptions.toObject(message.compliance, options); + if (options.oneofs) + object._compliance = "compliance"; + } + if (message.professionalServicesSilver != null && message.hasOwnProperty("professionalServicesSilver")) { + object.professionalServicesSilver = $root.BI.PurchaseOptions.toObject(message.professionalServicesSilver, options); + if (options.oneofs) + object._professionalServicesSilver = "professionalServicesSilver"; + } + if (message.professionalServicesPlatinum != null && message.hasOwnProperty("professionalServicesPlatinum")) { + object.professionalServicesPlatinum = $root.BI.PurchaseOptions.toObject(message.professionalServicesPlatinum, options); + if (options.oneofs) + object._professionalServicesPlatinum = "professionalServicesPlatinum"; + } + if (message.pam != null && message.hasOwnProperty("pam")) { + object.pam = $root.BI.PurchaseOptions.toObject(message.pam, options); + if (options.oneofs) + object._pam = "pam"; + } + if (message.epm != null && message.hasOwnProperty("epm")) { + object.epm = $root.BI.PurchaseOptions.toObject(message.epm, options); + if (options.oneofs) + object._epm = "epm"; + } + if (message.secretsManager != null && message.hasOwnProperty("secretsManager")) { + object.secretsManager = $root.BI.PurchaseOptions.toObject(message.secretsManager, options); + if (options.oneofs) + object._secretsManager = "secretsManager"; + } + if (message.connectionManager != null && message.hasOwnProperty("connectionManager")) { + object.connectionManager = $root.BI.PurchaseOptions.toObject(message.connectionManager, options); + if (options.oneofs) + object._connectionManager = "connectionManager"; + } + if (message.remoteBrowserIsolation != null && message.hasOwnProperty("remoteBrowserIsolation")) { + object.remoteBrowserIsolation = $root.BI.PurchaseOptions.toObject(message.remoteBrowserIsolation, options); + if (options.oneofs) + object._remoteBrowserIsolation = "remoteBrowserIsolation"; } return object; }; /** - * Converts this SubscriptionMcPricingResponse to JSON. + * Converts this AddonPurchaseOptions to JSON. * @function toJSON - * @memberof BI.SubscriptionMcPricingResponse + * @memberof BI.AddonPurchaseOptions * @instance * @returns {Object.} JSON object */ - SubscriptionMcPricingResponse.prototype.toJSON = function toJSON() { + AddonPurchaseOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SubscriptionMcPricingResponse + * Gets the default type url for AddonPurchaseOptions * @function getTypeUrl - * @memberof BI.SubscriptionMcPricingResponse + * @memberof BI.AddonPurchaseOptions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SubscriptionMcPricingResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AddonPurchaseOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.SubscriptionMcPricingResponse"; + return typeUrlPrefix + "/BI.AddonPurchaseOptions"; }; - return SubscriptionMcPricingResponse; + return AddonPurchaseOptions; })(); - BI.BasePlan = (function() { + BI.AvailablePurchaseOptions = (function() { /** - * Properties of a BasePlan. + * Properties of an AvailablePurchaseOptions. * @memberof BI - * @interface IBasePlan - * @property {number|null} [id] BasePlan id - * @property {BI.ICost|null} [cost] BasePlan cost + * @interface IAvailablePurchaseOptions + * @property {BI.IPurchaseOptions|null} [basePlan] AvailablePurchaseOptions basePlan + * @property {BI.IPurchaseOptions|null} [users] AvailablePurchaseOptions users + * @property {BI.IAddonPurchaseOptions|null} [addons] AvailablePurchaseOptions addons */ /** - * Constructs a new BasePlan. + * Constructs a new AvailablePurchaseOptions. * @memberof BI - * @classdesc Represents a BasePlan. - * @implements IBasePlan + * @classdesc Represents an AvailablePurchaseOptions. + * @implements IAvailablePurchaseOptions * @constructor - * @param {BI.IBasePlan=} [properties] Properties to set + * @param {BI.IAvailablePurchaseOptions=} [properties] Properties to set */ - function BasePlan(properties) { + function AvailablePurchaseOptions(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -228065,89 +257269,103 @@ export const BI = $root.BI = (() => { } /** - * BasePlan id. - * @member {number} id - * @memberof BI.BasePlan + * AvailablePurchaseOptions basePlan. + * @member {BI.IPurchaseOptions|null|undefined} basePlan + * @memberof BI.AvailablePurchaseOptions * @instance */ - BasePlan.prototype.id = 0; + AvailablePurchaseOptions.prototype.basePlan = null; /** - * BasePlan cost. - * @member {BI.ICost|null|undefined} cost - * @memberof BI.BasePlan + * AvailablePurchaseOptions users. + * @member {BI.IPurchaseOptions|null|undefined} users + * @memberof BI.AvailablePurchaseOptions * @instance */ - BasePlan.prototype.cost = null; + AvailablePurchaseOptions.prototype.users = null; /** - * Creates a new BasePlan instance using the specified properties. + * AvailablePurchaseOptions addons. + * @member {BI.IAddonPurchaseOptions|null|undefined} addons + * @memberof BI.AvailablePurchaseOptions + * @instance + */ + AvailablePurchaseOptions.prototype.addons = null; + + /** + * Creates a new AvailablePurchaseOptions instance using the specified properties. * @function create - * @memberof BI.BasePlan + * @memberof BI.AvailablePurchaseOptions * @static - * @param {BI.IBasePlan=} [properties] Properties to set - * @returns {BI.BasePlan} BasePlan instance + * @param {BI.IAvailablePurchaseOptions=} [properties] Properties to set + * @returns {BI.AvailablePurchaseOptions} AvailablePurchaseOptions instance */ - BasePlan.create = function create(properties) { - return new BasePlan(properties); + AvailablePurchaseOptions.create = function create(properties) { + return new AvailablePurchaseOptions(properties); }; /** - * Encodes the specified BasePlan message. Does not implicitly {@link BI.BasePlan.verify|verify} messages. + * Encodes the specified AvailablePurchaseOptions message. Does not implicitly {@link BI.AvailablePurchaseOptions.verify|verify} messages. * @function encode - * @memberof BI.BasePlan + * @memberof BI.AvailablePurchaseOptions * @static - * @param {BI.IBasePlan} message BasePlan message or plain object to encode + * @param {BI.IAvailablePurchaseOptions} message AvailablePurchaseOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BasePlan.encode = function encode(message, writer) { + AvailablePurchaseOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); - if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) - $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.basePlan != null && Object.hasOwnProperty.call(message, "basePlan")) + $root.BI.PurchaseOptions.encode(message.basePlan, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.users != null && Object.hasOwnProperty.call(message, "users")) + $root.BI.PurchaseOptions.encode(message.users, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.addons != null && Object.hasOwnProperty.call(message, "addons")) + $root.BI.AddonPurchaseOptions.encode(message.addons, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified BasePlan message, length delimited. Does not implicitly {@link BI.BasePlan.verify|verify} messages. + * Encodes the specified AvailablePurchaseOptions message, length delimited. Does not implicitly {@link BI.AvailablePurchaseOptions.verify|verify} messages. * @function encodeDelimited - * @memberof BI.BasePlan + * @memberof BI.AvailablePurchaseOptions * @static - * @param {BI.IBasePlan} message BasePlan message or plain object to encode + * @param {BI.IAvailablePurchaseOptions} message AvailablePurchaseOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BasePlan.encodeDelimited = function encodeDelimited(message, writer) { + AvailablePurchaseOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BasePlan message from the specified reader or buffer. + * Decodes an AvailablePurchaseOptions message from the specified reader or buffer. * @function decode - * @memberof BI.BasePlan + * @memberof BI.AvailablePurchaseOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.BasePlan} BasePlan + * @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 */ - BasePlan.decode = function decode(reader, length) { + AvailablePurchaseOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.BasePlan(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.AvailablePurchaseOptions(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.id = reader.int32(); + message.basePlan = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } case 2: { - message.cost = $root.BI.Cost.decode(reader, reader.uint32()); + message.users = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + break; + } + case 3: { + message.addons = $root.BI.AddonPurchaseOptions.decode(reader, reader.uint32()); break; } default: @@ -228159,138 +257377,153 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a BasePlan message from the specified reader or buffer, length delimited. + * Decodes an AvailablePurchaseOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.BasePlan + * @memberof BI.AvailablePurchaseOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.BasePlan} BasePlan + * @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 */ - BasePlan.decodeDelimited = function decodeDelimited(reader) { + AvailablePurchaseOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BasePlan message. + * Verifies an AvailablePurchaseOptions message. * @function verify - * @memberof BI.BasePlan + * @memberof BI.AvailablePurchaseOptions * @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) { + AvailablePurchaseOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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); + if (message.basePlan != null && message.hasOwnProperty("basePlan")) { + let error = $root.BI.PurchaseOptions.verify(message.basePlan); if (error) - return "cost." + error; + return "basePlan." + error; + } + if (message.users != null && message.hasOwnProperty("users")) { + let error = $root.BI.PurchaseOptions.verify(message.users); + if (error) + return "users." + error; + } + if (message.addons != null && message.hasOwnProperty("addons")) { + let error = $root.BI.AddonPurchaseOptions.verify(message.addons); + if (error) + return "addons." + error; } return null; }; /** - * Creates a BasePlan message from a plain object. Also converts values to their respective internal types. + * Creates an AvailablePurchaseOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.BasePlan + * @memberof BI.AvailablePurchaseOptions * @static * @param {Object.} object Plain object - * @returns {BI.BasePlan} BasePlan + * @returns {BI.AvailablePurchaseOptions} AvailablePurchaseOptions */ - BasePlan.fromObject = function fromObject(object) { - if (object instanceof $root.BI.BasePlan) + AvailablePurchaseOptions.fromObject = function fromObject(object) { + if (object instanceof $root.BI.AvailablePurchaseOptions) return object; - let message = new $root.BI.BasePlan(); - if (object.id != null) - message.id = object.id | 0; - if (object.cost != null) { - if (typeof object.cost !== "object") - throw TypeError(".BI.BasePlan.cost: object expected"); - message.cost = $root.BI.Cost.fromObject(object.cost); + let message = new $root.BI.AvailablePurchaseOptions(); + if (object.basePlan != null) { + if (typeof object.basePlan !== "object") + throw TypeError(".BI.AvailablePurchaseOptions.basePlan: object expected"); + message.basePlan = $root.BI.PurchaseOptions.fromObject(object.basePlan); + } + if (object.users != null) { + if (typeof object.users !== "object") + throw TypeError(".BI.AvailablePurchaseOptions.users: object expected"); + message.users = $root.BI.PurchaseOptions.fromObject(object.users); + } + if (object.addons != null) { + if (typeof object.addons !== "object") + throw TypeError(".BI.AvailablePurchaseOptions.addons: object expected"); + message.addons = $root.BI.AddonPurchaseOptions.fromObject(object.addons); } return message; }; /** - * Creates a plain object from a BasePlan message. Also converts values to other types if specified. + * Creates a plain object from an AvailablePurchaseOptions message. Also converts values to other types if specified. * @function toObject - * @memberof BI.BasePlan + * @memberof BI.AvailablePurchaseOptions * @static - * @param {BI.BasePlan} message BasePlan + * @param {BI.AvailablePurchaseOptions} message AvailablePurchaseOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BasePlan.toObject = function toObject(message, options) { + AvailablePurchaseOptions.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.id = 0; - object.cost = null; + object.basePlan = null; + object.users = null; + object.addons = null; } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.cost != null && message.hasOwnProperty("cost")) - object.cost = $root.BI.Cost.toObject(message.cost, options); + if (message.basePlan != null && message.hasOwnProperty("basePlan")) + object.basePlan = $root.BI.PurchaseOptions.toObject(message.basePlan, options); + if (message.users != null && message.hasOwnProperty("users")) + object.users = $root.BI.PurchaseOptions.toObject(message.users, options); + if (message.addons != null && message.hasOwnProperty("addons")) + object.addons = $root.BI.AddonPurchaseOptions.toObject(message.addons, options); return object; }; /** - * Converts this BasePlan to JSON. + * Converts this AvailablePurchaseOptions to JSON. * @function toJSON - * @memberof BI.BasePlan + * @memberof BI.AvailablePurchaseOptions * @instance * @returns {Object.} JSON object */ - BasePlan.prototype.toJSON = function toJSON() { + AvailablePurchaseOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BasePlan + * Gets the default type url for AvailablePurchaseOptions * @function getTypeUrl - * @memberof BI.BasePlan + * @memberof BI.AvailablePurchaseOptions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BasePlan.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AvailablePurchaseOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.BasePlan"; + return typeUrlPrefix + "/BI.AvailablePurchaseOptions"; }; - return BasePlan; + return AvailablePurchaseOptions; })(); - BI.Addon = (function() { + BI.UpgradeLicenseStatusRequest = (function() { /** - * Properties of an Addon. + * Properties of an UpgradeLicenseStatusRequest. * @memberof BI - * @interface IAddon - * @property {number|null} [id] Addon id - * @property {BI.ICost|null} [cost] Addon cost - * @property {number|Long|null} [amountConsumed] Addon amountConsumed + * @interface IUpgradeLicenseStatusRequest */ /** - * Constructs a new Addon. + * Constructs a new UpgradeLicenseStatusRequest. * @memberof BI - * @classdesc Represents an Addon. - * @implements IAddon + * @classdesc Represents an UpgradeLicenseStatusRequest. + * @implements IUpgradeLicenseStatusRequest * @constructor - * @param {BI.IAddon=} [properties] Properties to set + * @param {BI.IUpgradeLicenseStatusRequest=} [properties] Properties to set */ - function Addon(properties) { + function UpgradeLicenseStatusRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -228298,105 +257531,63 @@ export const BI = $root.BI = (() => { } /** - * Addon id. - * @member {number} id - * @memberof BI.Addon - * @instance - */ - Addon.prototype.id = 0; - - /** - * Addon cost. - * @member {BI.ICost|null|undefined} cost - * @memberof BI.Addon - * @instance - */ - Addon.prototype.cost = null; - - /** - * Addon amountConsumed. - * @member {number|Long} amountConsumed - * @memberof BI.Addon - * @instance - */ - Addon.prototype.amountConsumed = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new Addon instance using the specified properties. + * Creates a new UpgradeLicenseStatusRequest instance using the specified properties. * @function create - * @memberof BI.Addon + * @memberof BI.UpgradeLicenseStatusRequest * @static - * @param {BI.IAddon=} [properties] Properties to set - * @returns {BI.Addon} Addon instance + * @param {BI.IUpgradeLicenseStatusRequest=} [properties] Properties to set + * @returns {BI.UpgradeLicenseStatusRequest} UpgradeLicenseStatusRequest instance */ - Addon.create = function create(properties) { - return new Addon(properties); + UpgradeLicenseStatusRequest.create = function create(properties) { + return new UpgradeLicenseStatusRequest(properties); }; /** - * Encodes the specified Addon message. Does not implicitly {@link BI.Addon.verify|verify} messages. + * Encodes the specified UpgradeLicenseStatusRequest message. Does not implicitly {@link BI.UpgradeLicenseStatusRequest.verify|verify} messages. * @function encode - * @memberof BI.Addon + * @memberof BI.UpgradeLicenseStatusRequest * @static - * @param {BI.IAddon} message Addon message or plain object to encode + * @param {BI.IUpgradeLicenseStatusRequest} message UpgradeLicenseStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Addon.encode = function encode(message, writer) { + UpgradeLicenseStatusRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); - if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) - $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.amountConsumed != null && Object.hasOwnProperty.call(message, "amountConsumed")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.amountConsumed); return writer; }; /** - * Encodes the specified Addon message, length delimited. Does not implicitly {@link BI.Addon.verify|verify} messages. + * Encodes the specified UpgradeLicenseStatusRequest message, length delimited. Does not implicitly {@link BI.UpgradeLicenseStatusRequest.verify|verify} messages. * @function encodeDelimited - * @memberof BI.Addon + * @memberof BI.UpgradeLicenseStatusRequest * @static - * @param {BI.IAddon} message Addon message or plain object to encode + * @param {BI.IUpgradeLicenseStatusRequest} message UpgradeLicenseStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Addon.encodeDelimited = function encodeDelimited(message, writer) { + UpgradeLicenseStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Addon message from the specified reader or buffer. + * Decodes an UpgradeLicenseStatusRequest message from the specified reader or buffer. * @function decode - * @memberof BI.Addon + * @memberof BI.UpgradeLicenseStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.Addon} Addon + * @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 */ - Addon.decode = function decode(reader, length) { + UpgradeLicenseStatusRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.Addon(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseStatusRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.id = reader.int32(); - break; - } - case 2: { - message.cost = $root.BI.Cost.decode(reader, reader.uint32()); - break; - } - case 3: { - message.amountConsumed = reader.int64(); - break; - } default: reader.skipType(tag & 7); break; @@ -228406,159 +257597,111 @@ export const BI = $root.BI = (() => { }; /** - * Decodes an Addon message from the specified reader or buffer, length delimited. + * Decodes an UpgradeLicenseStatusRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.Addon + * @memberof BI.UpgradeLicenseStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.Addon} Addon + * @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 */ - Addon.decodeDelimited = function decodeDelimited(reader) { + UpgradeLicenseStatusRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Addon message. + * Verifies an UpgradeLicenseStatusRequest message. * @function verify - * @memberof BI.Addon + * @memberof BI.UpgradeLicenseStatusRequest * @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) { + UpgradeLicenseStatusRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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); - 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. + * Creates an UpgradeLicenseStatusRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.Addon + * @memberof BI.UpgradeLicenseStatusRequest * @static * @param {Object.} object Plain object - * @returns {BI.Addon} Addon + * @returns {BI.UpgradeLicenseStatusRequest} UpgradeLicenseStatusRequest */ - Addon.fromObject = function fromObject(object) { - if (object instanceof $root.BI.Addon) + UpgradeLicenseStatusRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.UpgradeLicenseStatusRequest) return object; - let message = new $root.BI.Addon(); - if (object.id != null) - message.id = object.id | 0; - if (object.cost != null) { - if (typeof object.cost !== "object") - throw TypeError(".BI.Addon.cost: object expected"); - message.cost = $root.BI.Cost.fromObject(object.cost); - } - if (object.amountConsumed != null) - if ($util.Long) - (message.amountConsumed = $util.Long.fromValue(object.amountConsumed)).unsigned = false; - else if (typeof object.amountConsumed === "string") - message.amountConsumed = parseInt(object.amountConsumed, 10); - else if (typeof object.amountConsumed === "number") - message.amountConsumed = object.amountConsumed; - else if (typeof object.amountConsumed === "object") - message.amountConsumed = new $util.LongBits(object.amountConsumed.low >>> 0, object.amountConsumed.high >>> 0).toNumber(); - return message; + return new $root.BI.UpgradeLicenseStatusRequest(); }; /** - * Creates a plain object from an Addon message. Also converts values to other types if specified. + * Creates a plain object from an UpgradeLicenseStatusRequest message. Also converts values to other types if specified. * @function toObject - * @memberof BI.Addon + * @memberof BI.UpgradeLicenseStatusRequest * @static - * @param {BI.Addon} message Addon + * @param {BI.UpgradeLicenseStatusRequest} message UpgradeLicenseStatusRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Addon.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.id = 0; - object.cost = null; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.amountConsumed = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.amountConsumed = options.longs === String ? "0" : 0; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.cost != null && message.hasOwnProperty("cost")) - object.cost = $root.BI.Cost.toObject(message.cost, options); - if (message.amountConsumed != null && message.hasOwnProperty("amountConsumed")) - if (typeof message.amountConsumed === "number") - object.amountConsumed = options.longs === String ? String(message.amountConsumed) : message.amountConsumed; - else - object.amountConsumed = options.longs === String ? $util.Long.prototype.toString.call(message.amountConsumed) : options.longs === Number ? new $util.LongBits(message.amountConsumed.low >>> 0, message.amountConsumed.high >>> 0).toNumber() : message.amountConsumed; - return object; + UpgradeLicenseStatusRequest.toObject = function toObject() { + return {}; }; /** - * Converts this Addon to JSON. + * Converts this UpgradeLicenseStatusRequest to JSON. * @function toJSON - * @memberof BI.Addon + * @memberof BI.UpgradeLicenseStatusRequest * @instance * @returns {Object.} JSON object */ - Addon.prototype.toJSON = function toJSON() { + UpgradeLicenseStatusRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Addon + * Gets the default type url for UpgradeLicenseStatusRequest * @function getTypeUrl - * @memberof BI.Addon + * @memberof BI.UpgradeLicenseStatusRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Addon.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpgradeLicenseStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.Addon"; + return typeUrlPrefix + "/BI.UpgradeLicenseStatusRequest"; }; - return Addon; + return UpgradeLicenseStatusRequest; })(); - BI.FilePlan = (function() { + BI.UpgradeLicenseStatusResponse = (function() { /** - * Properties of a FilePlan. + * Properties of an UpgradeLicenseStatusResponse. * @memberof BI - * @interface IFilePlan - * @property {number|null} [id] FilePlan id - * @property {BI.ICost|null} [cost] FilePlan cost + * @interface IUpgradeLicenseStatusResponse + * @property {boolean|null} [allowPurchaseFromConsole] UpgradeLicenseStatusResponse allowPurchaseFromConsole + * @property {BI.IAvailablePurchaseOptions|null} [purchaseOptions] UpgradeLicenseStatusResponse purchaseOptions + * @property {BI.IError|null} [error] UpgradeLicenseStatusResponse error */ /** - * Constructs a new FilePlan. + * Constructs a new UpgradeLicenseStatusResponse. * @memberof BI - * @classdesc Represents a FilePlan. - * @implements IFilePlan + * @classdesc Represents an UpgradeLicenseStatusResponse. + * @implements IUpgradeLicenseStatusResponse * @constructor - * @param {BI.IFilePlan=} [properties] Properties to set + * @param {BI.IUpgradeLicenseStatusResponse=} [properties] Properties to set */ - function FilePlan(properties) { + function UpgradeLicenseStatusResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -228566,89 +257709,103 @@ export const BI = $root.BI = (() => { } /** - * FilePlan id. - * @member {number} id - * @memberof BI.FilePlan + * UpgradeLicenseStatusResponse allowPurchaseFromConsole. + * @member {boolean} allowPurchaseFromConsole + * @memberof BI.UpgradeLicenseStatusResponse * @instance */ - FilePlan.prototype.id = 0; + UpgradeLicenseStatusResponse.prototype.allowPurchaseFromConsole = false; /** - * FilePlan cost. - * @member {BI.ICost|null|undefined} cost - * @memberof BI.FilePlan + * UpgradeLicenseStatusResponse purchaseOptions. + * @member {BI.IAvailablePurchaseOptions|null|undefined} purchaseOptions + * @memberof BI.UpgradeLicenseStatusResponse * @instance */ - FilePlan.prototype.cost = null; + UpgradeLicenseStatusResponse.prototype.purchaseOptions = null; /** - * Creates a new FilePlan instance using the specified properties. + * UpgradeLicenseStatusResponse error. + * @member {BI.IError|null|undefined} error + * @memberof BI.UpgradeLicenseStatusResponse + * @instance + */ + UpgradeLicenseStatusResponse.prototype.error = null; + + /** + * Creates a new UpgradeLicenseStatusResponse instance using the specified properties. * @function create - * @memberof BI.FilePlan + * @memberof BI.UpgradeLicenseStatusResponse * @static - * @param {BI.IFilePlan=} [properties] Properties to set - * @returns {BI.FilePlan} FilePlan instance + * @param {BI.IUpgradeLicenseStatusResponse=} [properties] Properties to set + * @returns {BI.UpgradeLicenseStatusResponse} UpgradeLicenseStatusResponse instance */ - FilePlan.create = function create(properties) { - return new FilePlan(properties); + UpgradeLicenseStatusResponse.create = function create(properties) { + return new UpgradeLicenseStatusResponse(properties); }; /** - * Encodes the specified FilePlan message. Does not implicitly {@link BI.FilePlan.verify|verify} messages. + * Encodes the specified UpgradeLicenseStatusResponse message. Does not implicitly {@link BI.UpgradeLicenseStatusResponse.verify|verify} messages. * @function encode - * @memberof BI.FilePlan + * @memberof BI.UpgradeLicenseStatusResponse * @static - * @param {BI.IFilePlan} message FilePlan message or plain object to encode + * @param {BI.IUpgradeLicenseStatusResponse} message UpgradeLicenseStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilePlan.encode = function encode(message, writer) { + UpgradeLicenseStatusResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); - if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) - $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.allowPurchaseFromConsole != null && Object.hasOwnProperty.call(message, "allowPurchaseFromConsole")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.allowPurchaseFromConsole); + if (message.purchaseOptions != null && Object.hasOwnProperty.call(message, "purchaseOptions")) + $root.BI.AvailablePurchaseOptions.encode(message.purchaseOptions, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.BI.Error.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified FilePlan message, length delimited. Does not implicitly {@link BI.FilePlan.verify|verify} messages. + * Encodes the specified UpgradeLicenseStatusResponse message, length delimited. Does not implicitly {@link BI.UpgradeLicenseStatusResponse.verify|verify} messages. * @function encodeDelimited - * @memberof BI.FilePlan + * @memberof BI.UpgradeLicenseStatusResponse * @static - * @param {BI.IFilePlan} message FilePlan message or plain object to encode + * @param {BI.IUpgradeLicenseStatusResponse} message UpgradeLicenseStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilePlan.encodeDelimited = function encodeDelimited(message, writer) { + UpgradeLicenseStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FilePlan message from the specified reader or buffer. + * Decodes an UpgradeLicenseStatusResponse message from the specified reader or buffer. * @function decode - * @memberof BI.FilePlan + * @memberof BI.UpgradeLicenseStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.FilePlan} FilePlan + * @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 */ - FilePlan.decode = function decode(reader, length) { + UpgradeLicenseStatusResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.FilePlan(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseStatusResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.id = reader.int32(); + message.allowPurchaseFromConsole = reader.bool(); break; } case 2: { - message.cost = $root.BI.Cost.decode(reader, reader.uint32()); + message.purchaseOptions = $root.BI.AvailablePurchaseOptions.decode(reader, reader.uint32()); + break; + } + case 3: { + message.error = $root.BI.Error.decode(reader, reader.uint32()); break; } default: @@ -228660,138 +257817,151 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a FilePlan message from the specified reader or buffer, length delimited. + * Decodes an UpgradeLicenseStatusResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.FilePlan + * @memberof BI.UpgradeLicenseStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.FilePlan} FilePlan + * @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 */ - FilePlan.decodeDelimited = function decodeDelimited(reader) { + UpgradeLicenseStatusResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FilePlan message. + * Verifies an UpgradeLicenseStatusResponse message. * @function verify - * @memberof BI.FilePlan + * @memberof BI.UpgradeLicenseStatusResponse * @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) { + UpgradeLicenseStatusResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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); + 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); if (error) - return "cost." + error; + return "purchaseOptions." + error; + } + if (message.error != null && message.hasOwnProperty("error")) { + let error = $root.BI.Error.verify(message.error); + if (error) + return "error." + error; } return null; }; /** - * Creates a FilePlan message from a plain object. Also converts values to their respective internal types. + * Creates an UpgradeLicenseStatusResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.FilePlan + * @memberof BI.UpgradeLicenseStatusResponse * @static * @param {Object.} object Plain object - * @returns {BI.FilePlan} FilePlan + * @returns {BI.UpgradeLicenseStatusResponse} UpgradeLicenseStatusResponse */ - FilePlan.fromObject = function fromObject(object) { - if (object instanceof $root.BI.FilePlan) + UpgradeLicenseStatusResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.UpgradeLicenseStatusResponse) return object; - let message = new $root.BI.FilePlan(); - if (object.id != null) - message.id = object.id | 0; - if (object.cost != null) { - if (typeof object.cost !== "object") - throw TypeError(".BI.FilePlan.cost: object expected"); - message.cost = $root.BI.Cost.fromObject(object.cost); + let message = new $root.BI.UpgradeLicenseStatusResponse(); + if (object.allowPurchaseFromConsole != null) + message.allowPurchaseFromConsole = Boolean(object.allowPurchaseFromConsole); + if (object.purchaseOptions != null) { + if (typeof object.purchaseOptions !== "object") + throw TypeError(".BI.UpgradeLicenseStatusResponse.purchaseOptions: object expected"); + message.purchaseOptions = $root.BI.AvailablePurchaseOptions.fromObject(object.purchaseOptions); + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".BI.UpgradeLicenseStatusResponse.error: object expected"); + message.error = $root.BI.Error.fromObject(object.error); } return message; }; /** - * Creates a plain object from a FilePlan message. Also converts values to other types if specified. + * Creates a plain object from an UpgradeLicenseStatusResponse message. Also converts values to other types if specified. * @function toObject - * @memberof BI.FilePlan + * @memberof BI.UpgradeLicenseStatusResponse * @static - * @param {BI.FilePlan} message FilePlan + * @param {BI.UpgradeLicenseStatusResponse} message UpgradeLicenseStatusResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FilePlan.toObject = function toObject(message, options) { + UpgradeLicenseStatusResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.id = 0; - object.cost = null; + object.allowPurchaseFromConsole = false; + object.purchaseOptions = null; + object.error = null; } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.cost != null && message.hasOwnProperty("cost")) - object.cost = $root.BI.Cost.toObject(message.cost, options); + if (message.allowPurchaseFromConsole != null && message.hasOwnProperty("allowPurchaseFromConsole")) + object.allowPurchaseFromConsole = message.allowPurchaseFromConsole; + if (message.purchaseOptions != null && message.hasOwnProperty("purchaseOptions")) + object.purchaseOptions = $root.BI.AvailablePurchaseOptions.toObject(message.purchaseOptions, options); + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.BI.Error.toObject(message.error, options); return object; }; /** - * Converts this FilePlan to JSON. + * Converts this UpgradeLicenseStatusResponse to JSON. * @function toJSON - * @memberof BI.FilePlan + * @memberof BI.UpgradeLicenseStatusResponse * @instance * @returns {Object.} JSON object */ - FilePlan.prototype.toJSON = function toJSON() { + UpgradeLicenseStatusResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FilePlan + * Gets the default type url for UpgradeLicenseStatusResponse * @function getTypeUrl - * @memberof BI.FilePlan + * @memberof BI.UpgradeLicenseStatusResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FilePlan.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpgradeLicenseStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.FilePlan"; + return typeUrlPrefix + "/BI.UpgradeLicenseStatusResponse"; }; - return FilePlan; + return UpgradeLicenseStatusResponse; })(); - BI.Cost = (function() { + BI.UpgradeLicenseQuotePurchaseRequest = (function() { /** - * Properties of a Cost. + * Properties of an UpgradeLicenseQuotePurchaseRequest. * @memberof BI - * @interface ICost - * @property {number|null} [amount] Cost amount - * @property {BI.Cost.AmountPer|null} [amountPer] Cost amountPer - * @property {BI.Currency|null} [currency] Cost currency + * @interface IUpgradeLicenseQuotePurchaseRequest + * @property {BI.PurchaseProductType|null} [productType] UpgradeLicenseQuotePurchaseRequest productType + * @property {number|null} [quantity] UpgradeLicenseQuotePurchaseRequest quantity + * @property {number|null} [tier] UpgradeLicenseQuotePurchaseRequest tier */ /** - * Constructs a new Cost. + * Constructs a new UpgradeLicenseQuotePurchaseRequest. * @memberof BI - * @classdesc Represents a Cost. - * @implements ICost + * @classdesc Represents an UpgradeLicenseQuotePurchaseRequest. + * @implements IUpgradeLicenseQuotePurchaseRequest * @constructor - * @param {BI.ICost=} [properties] Properties to set + * @param {BI.IUpgradeLicenseQuotePurchaseRequest=} [properties] Properties to set */ - function Cost(properties) { + function UpgradeLicenseQuotePurchaseRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -228799,103 +257969,103 @@ export const BI = $root.BI = (() => { } /** - * Cost amount. - * @member {number} amount - * @memberof BI.Cost + * UpgradeLicenseQuotePurchaseRequest productType. + * @member {BI.PurchaseProductType} productType + * @memberof BI.UpgradeLicenseQuotePurchaseRequest * @instance */ - Cost.prototype.amount = 0; + UpgradeLicenseQuotePurchaseRequest.prototype.productType = 0; /** - * Cost amountPer. - * @member {BI.Cost.AmountPer} amountPer - * @memberof BI.Cost + * UpgradeLicenseQuotePurchaseRequest quantity. + * @member {number} quantity + * @memberof BI.UpgradeLicenseQuotePurchaseRequest * @instance */ - Cost.prototype.amountPer = 0; + UpgradeLicenseQuotePurchaseRequest.prototype.quantity = 0; /** - * Cost currency. - * @member {BI.Currency} currency - * @memberof BI.Cost + * UpgradeLicenseQuotePurchaseRequest tier. + * @member {number} tier + * @memberof BI.UpgradeLicenseQuotePurchaseRequest * @instance */ - Cost.prototype.currency = 0; + UpgradeLicenseQuotePurchaseRequest.prototype.tier = 0; /** - * Creates a new Cost instance using the specified properties. + * Creates a new UpgradeLicenseQuotePurchaseRequest instance using the specified properties. * @function create - * @memberof BI.Cost + * @memberof BI.UpgradeLicenseQuotePurchaseRequest * @static - * @param {BI.ICost=} [properties] Properties to set - * @returns {BI.Cost} Cost instance + * @param {BI.IUpgradeLicenseQuotePurchaseRequest=} [properties] Properties to set + * @returns {BI.UpgradeLicenseQuotePurchaseRequest} UpgradeLicenseQuotePurchaseRequest instance */ - Cost.create = function create(properties) { - return new Cost(properties); + UpgradeLicenseQuotePurchaseRequest.create = function create(properties) { + return new UpgradeLicenseQuotePurchaseRequest(properties); }; /** - * Encodes the specified Cost message. Does not implicitly {@link BI.Cost.verify|verify} messages. + * Encodes the specified UpgradeLicenseQuotePurchaseRequest message. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseRequest.verify|verify} messages. * @function encode - * @memberof BI.Cost + * @memberof BI.UpgradeLicenseQuotePurchaseRequest * @static - * @param {BI.ICost} message Cost message or plain object to encode + * @param {BI.IUpgradeLicenseQuotePurchaseRequest} message UpgradeLicenseQuotePurchaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Cost.encode = function encode(message, writer) { + UpgradeLicenseQuotePurchaseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.amount); - if (message.amountPer != null && Object.hasOwnProperty.call(message, "amountPer")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.amountPer); - if (message.currency != null && Object.hasOwnProperty.call(message, "currency")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.currency); + if (message.productType != null && Object.hasOwnProperty.call(message, "productType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.productType); + if (message.quantity != null && Object.hasOwnProperty.call(message, "quantity")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.quantity); + if (message.tier != null && Object.hasOwnProperty.call(message, "tier")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.tier); return writer; }; /** - * Encodes the specified Cost message, length delimited. Does not implicitly {@link BI.Cost.verify|verify} messages. + * Encodes the specified UpgradeLicenseQuotePurchaseRequest message, length delimited. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseRequest.verify|verify} messages. * @function encodeDelimited - * @memberof BI.Cost + * @memberof BI.UpgradeLicenseQuotePurchaseRequest * @static - * @param {BI.ICost} message Cost message or plain object to encode + * @param {BI.IUpgradeLicenseQuotePurchaseRequest} message UpgradeLicenseQuotePurchaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Cost.encodeDelimited = function encodeDelimited(message, writer) { + UpgradeLicenseQuotePurchaseRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Cost message from the specified reader or buffer. + * Decodes an UpgradeLicenseQuotePurchaseRequest message from the specified reader or buffer. * @function decode - * @memberof BI.Cost + * @memberof BI.UpgradeLicenseQuotePurchaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.Cost} Cost + * @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 */ - Cost.decode = function decode(reader, length) { + UpgradeLicenseQuotePurchaseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.Cost(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseQuotePurchaseRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 3: { - message.amount = reader.double(); + case 1: { + message.productType = reader.int32(); break; } - case 4: { - message.amountPer = reader.int32(); + case 2: { + message.quantity = reader.int32(); break; } - case 5: { - message.currency = reader.int32(); + case 3: { + message.tier = reader.int32(); break; } default: @@ -228907,39 +258077,36 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a Cost message from the specified reader or buffer, length delimited. + * Decodes an UpgradeLicenseQuotePurchaseRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.Cost + * @memberof BI.UpgradeLicenseQuotePurchaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.Cost} Cost + * @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 */ - Cost.decodeDelimited = function decodeDelimited(reader) { + UpgradeLicenseQuotePurchaseRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Cost message. + * Verifies an UpgradeLicenseQuotePurchaseRequest message. * @function verify - * @memberof BI.Cost + * @memberof BI.UpgradeLicenseQuotePurchaseRequest * @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) { + UpgradeLicenseQuotePurchaseRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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) { + if (message.productType != null && message.hasOwnProperty("productType")) + switch (message.productType) { default: - return "amountPer: enum value expected"; + return "productType: enum value expected"; case 0: case 1: case 2: @@ -228949,225 +258116,167 @@ export const BI = $root.BI = (() => { case 6: case 7: case 8: + case 9: + case 10: 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.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 a Cost message from a plain object. Also converts values to their respective internal types. + * Creates an UpgradeLicenseQuotePurchaseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.Cost + * @memberof BI.UpgradeLicenseQuotePurchaseRequest * @static * @param {Object.} object Plain object - * @returns {BI.Cost} Cost + * @returns {BI.UpgradeLicenseQuotePurchaseRequest} UpgradeLicenseQuotePurchaseRequest */ - Cost.fromObject = function fromObject(object) { - if (object instanceof $root.BI.Cost) + UpgradeLicenseQuotePurchaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.UpgradeLicenseQuotePurchaseRequest) return object; - let message = new $root.BI.Cost(); - if (object.amount != null) - message.amount = Number(object.amount); - switch (object.amountPer) { + let message = new $root.BI.UpgradeLicenseQuotePurchaseRequest(); + switch (object.productType) { default: - if (typeof object.amountPer === "number") { - message.amountPer = object.amountPer; + if (typeof object.productType === "number") { + message.productType = object.productType; break; } break; - case "UNKNOWN": + case "upgradeToEnterprise": case 0: - message.amountPer = 0; + message.productType = 0; break; - case "MONTH": + case "addUsers": case 1: - message.amountPer = 1; + message.productType = 1; break; - case "USER_MONTH": + case "addStorage": case 2: - message.amountPer = 2; + message.productType = 2; break; - case "USER_CONSUMED_MONTH": + case "addAudit": case 3: - message.amountPer = 3; + message.productType = 3; break; - case "ENDPOINT_MONTH": + case "addBreachWatch": case 4: - message.amountPer = 4; + message.productType = 4; break; - case "USER_YEAR": + case "addCompliance": case 5: - message.amountPer = 5; + message.productType = 5; break; - case "USER_CONSUMED_YEAR": + case "addChat": case 6: - message.amountPer = 6; + message.productType = 6; break; - case "YEAR": + case "addPAM": case 7: - message.amountPer = 7; + message.productType = 7; break; - case "ENDPOINT_YEAR": + case "addSilverSupport": case 8: - message.amountPer = 8; - break; - } - switch (object.currency) { - default: - if (typeof object.currency === "number") { - message.currency = object.currency; - break; - } - break; - case "UNKNOWN": - case 0: - message.currency = 0; - break; - case "USD": - case 1: - message.currency = 1; - break; - case "GBP": - case 2: - message.currency = 2; - break; - case "JPY": - case 3: - message.currency = 3; - break; - case "EUR": - case 4: - message.currency = 4; + message.productType = 8; break; - case "AUD": - case 5: - message.currency = 5; + case "addPlatinumSupport": + case 9: + message.productType = 9; break; - case "CAD": - case 6: - message.currency = 6; + case "addKEPM": + case 10: + message.productType = 10; break; } + if (object.quantity != null) + message.quantity = object.quantity | 0; + if (object.tier != null) + message.tier = object.tier | 0; return message; }; /** - * Creates a plain object from a Cost message. Also converts values to other types if specified. + * Creates a plain object from an UpgradeLicenseQuotePurchaseRequest message. Also converts values to other types if specified. * @function toObject - * @memberof BI.Cost + * @memberof BI.UpgradeLicenseQuotePurchaseRequest * @static - * @param {BI.Cost} message Cost + * @param {BI.UpgradeLicenseQuotePurchaseRequest} message UpgradeLicenseQuotePurchaseRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Cost.toObject = function toObject(message, options) { + UpgradeLicenseQuotePurchaseRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.amount = 0; - object.amountPer = options.enums === String ? "UNKNOWN" : 0; - object.currency = options.enums === String ? "UNKNOWN" : 0; + object.productType = options.enums === String ? "upgradeToEnterprise" : 0; + object.quantity = 0; + object.tier = 0; } - if (message.amount != null && message.hasOwnProperty("amount")) - object.amount = options.json && !isFinite(message.amount) ? String(message.amount) : message.amount; - if (message.amountPer != null && message.hasOwnProperty("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")) - object.currency = options.enums === String ? $root.BI.Currency[message.currency] === undefined ? message.currency : $root.BI.Currency[message.currency] : message.currency; + if (message.productType != null && message.hasOwnProperty("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")) + object.quantity = message.quantity; + if (message.tier != null && message.hasOwnProperty("tier")) + object.tier = message.tier; return object; }; /** - * Converts this Cost to JSON. + * Converts this UpgradeLicenseQuotePurchaseRequest to JSON. * @function toJSON - * @memberof BI.Cost + * @memberof BI.UpgradeLicenseQuotePurchaseRequest * @instance * @returns {Object.} JSON object */ - Cost.prototype.toJSON = function toJSON() { + UpgradeLicenseQuotePurchaseRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Cost + * Gets the default type url for UpgradeLicenseQuotePurchaseRequest * @function getTypeUrl - * @memberof BI.Cost + * @memberof BI.UpgradeLicenseQuotePurchaseRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Cost.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpgradeLicenseQuotePurchaseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.Cost"; + return typeUrlPrefix + "/BI.UpgradeLicenseQuotePurchaseRequest"; }; - /** - * AmountPer enum. - * @name BI.Cost.AmountPer - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} MONTH=1 MONTH value - * @property {number} USER_MONTH=2 USER_MONTH value - * @property {number} USER_CONSUMED_MONTH=3 USER_CONSUMED_MONTH value - * @property {number} ENDPOINT_MONTH=4 ENDPOINT_MONTH value - * @property {number} USER_YEAR=5 USER_YEAR value - * @property {number} USER_CONSUMED_YEAR=6 USER_CONSUMED_YEAR value - * @property {number} YEAR=7 YEAR value - * @property {number} ENDPOINT_YEAR=8 ENDPOINT_YEAR value - */ - Cost.AmountPer = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "MONTH"] = 1; - values[valuesById[2] = "USER_MONTH"] = 2; - values[valuesById[3] = "USER_CONSUMED_MONTH"] = 3; - values[valuesById[4] = "ENDPOINT_MONTH"] = 4; - values[valuesById[5] = "USER_YEAR"] = 5; - values[valuesById[6] = "USER_CONSUMED_YEAR"] = 6; - values[valuesById[7] = "YEAR"] = 7; - values[valuesById[8] = "ENDPOINT_YEAR"] = 8; - return values; - })(); - - return Cost; + return UpgradeLicenseQuotePurchaseRequest; })(); - BI.InvoiceSearchRequest = (function() { + BI.UpgradeLicenseQuotePurchaseResponse = (function() { /** - * Properties of an InvoiceSearchRequest. + * Properties of an UpgradeLicenseQuotePurchaseResponse. * @memberof BI - * @interface IInvoiceSearchRequest - * @property {number|null} [size] InvoiceSearchRequest size - * @property {number|null} [startingAfterId] InvoiceSearchRequest startingAfterId - * @property {boolean|null} [allInvoicesUnfiltered] InvoiceSearchRequest allInvoicesUnfiltered + * @interface IUpgradeLicenseQuotePurchaseResponse + * @property {boolean|null} [success] UpgradeLicenseQuotePurchaseResponse success + * @property {BI.IQuotePurchase|null} [quotePurchase] UpgradeLicenseQuotePurchaseResponse quotePurchase + * @property {string|null} [viewSummaryLink] UpgradeLicenseQuotePurchaseResponse viewSummaryLink + * @property {BI.IError|null} [error] UpgradeLicenseQuotePurchaseResponse error */ /** - * Constructs a new InvoiceSearchRequest. + * Constructs a new UpgradeLicenseQuotePurchaseResponse. * @memberof BI - * @classdesc Represents an InvoiceSearchRequest. - * @implements IInvoiceSearchRequest + * @classdesc Represents an UpgradeLicenseQuotePurchaseResponse. + * @implements IUpgradeLicenseQuotePurchaseResponse * @constructor - * @param {BI.IInvoiceSearchRequest=} [properties] Properties to set + * @param {BI.IUpgradeLicenseQuotePurchaseResponse=} [properties] Properties to set */ - function InvoiceSearchRequest(properties) { + function UpgradeLicenseQuotePurchaseResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -229175,103 +258284,117 @@ export const BI = $root.BI = (() => { } /** - * InvoiceSearchRequest size. - * @member {number} size - * @memberof BI.InvoiceSearchRequest + * UpgradeLicenseQuotePurchaseResponse success. + * @member {boolean} success + * @memberof BI.UpgradeLicenseQuotePurchaseResponse * @instance */ - InvoiceSearchRequest.prototype.size = 0; + UpgradeLicenseQuotePurchaseResponse.prototype.success = false; /** - * InvoiceSearchRequest startingAfterId. - * @member {number} startingAfterId - * @memberof BI.InvoiceSearchRequest + * UpgradeLicenseQuotePurchaseResponse quotePurchase. + * @member {BI.IQuotePurchase|null|undefined} quotePurchase + * @memberof BI.UpgradeLicenseQuotePurchaseResponse * @instance */ - InvoiceSearchRequest.prototype.startingAfterId = 0; + UpgradeLicenseQuotePurchaseResponse.prototype.quotePurchase = null; /** - * InvoiceSearchRequest allInvoicesUnfiltered. - * @member {boolean} allInvoicesUnfiltered - * @memberof BI.InvoiceSearchRequest + * UpgradeLicenseQuotePurchaseResponse viewSummaryLink. + * @member {string} viewSummaryLink + * @memberof BI.UpgradeLicenseQuotePurchaseResponse * @instance */ - InvoiceSearchRequest.prototype.allInvoicesUnfiltered = false; + UpgradeLicenseQuotePurchaseResponse.prototype.viewSummaryLink = ""; /** - * Creates a new InvoiceSearchRequest instance using the specified properties. + * UpgradeLicenseQuotePurchaseResponse error. + * @member {BI.IError|null|undefined} error + * @memberof BI.UpgradeLicenseQuotePurchaseResponse + * @instance + */ + UpgradeLicenseQuotePurchaseResponse.prototype.error = null; + + /** + * Creates a new UpgradeLicenseQuotePurchaseResponse instance using the specified properties. * @function create - * @memberof BI.InvoiceSearchRequest + * @memberof BI.UpgradeLicenseQuotePurchaseResponse * @static - * @param {BI.IInvoiceSearchRequest=} [properties] Properties to set - * @returns {BI.InvoiceSearchRequest} InvoiceSearchRequest instance + * @param {BI.IUpgradeLicenseQuotePurchaseResponse=} [properties] Properties to set + * @returns {BI.UpgradeLicenseQuotePurchaseResponse} UpgradeLicenseQuotePurchaseResponse instance */ - InvoiceSearchRequest.create = function create(properties) { - return new InvoiceSearchRequest(properties); + UpgradeLicenseQuotePurchaseResponse.create = function create(properties) { + return new UpgradeLicenseQuotePurchaseResponse(properties); }; /** - * Encodes the specified InvoiceSearchRequest message. Does not implicitly {@link BI.InvoiceSearchRequest.verify|verify} messages. + * Encodes the specified UpgradeLicenseQuotePurchaseResponse message. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseResponse.verify|verify} messages. * @function encode - * @memberof BI.InvoiceSearchRequest + * @memberof BI.UpgradeLicenseQuotePurchaseResponse * @static - * @param {BI.IInvoiceSearchRequest} message InvoiceSearchRequest message or plain object to encode + * @param {BI.IUpgradeLicenseQuotePurchaseResponse} message UpgradeLicenseQuotePurchaseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InvoiceSearchRequest.encode = function encode(message, writer) { + UpgradeLicenseQuotePurchaseResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.size != null && Object.hasOwnProperty.call(message, "size")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.size); - if (message.startingAfterId != null && Object.hasOwnProperty.call(message, "startingAfterId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.startingAfterId); - if (message.allInvoicesUnfiltered != null && Object.hasOwnProperty.call(message, "allInvoicesUnfiltered")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allInvoicesUnfiltered); + if (message.success != null && Object.hasOwnProperty.call(message, "success")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); + if (message.quotePurchase != null && Object.hasOwnProperty.call(message, "quotePurchase")) + $root.BI.QuotePurchase.encode(message.quotePurchase, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.viewSummaryLink != null && Object.hasOwnProperty.call(message, "viewSummaryLink")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.viewSummaryLink); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.BI.Error.encode(message.error, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified InvoiceSearchRequest message, length delimited. Does not implicitly {@link BI.InvoiceSearchRequest.verify|verify} messages. + * Encodes the specified UpgradeLicenseQuotePurchaseResponse message, length delimited. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseResponse.verify|verify} messages. * @function encodeDelimited - * @memberof BI.InvoiceSearchRequest + * @memberof BI.UpgradeLicenseQuotePurchaseResponse * @static - * @param {BI.IInvoiceSearchRequest} message InvoiceSearchRequest message or plain object to encode + * @param {BI.IUpgradeLicenseQuotePurchaseResponse} message UpgradeLicenseQuotePurchaseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InvoiceSearchRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpgradeLicenseQuotePurchaseResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InvoiceSearchRequest message from the specified reader or buffer. + * Decodes an UpgradeLicenseQuotePurchaseResponse message from the specified reader or buffer. * @function decode - * @memberof BI.InvoiceSearchRequest + * @memberof BI.UpgradeLicenseQuotePurchaseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.InvoiceSearchRequest} InvoiceSearchRequest + * @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 */ - InvoiceSearchRequest.decode = function decode(reader, length) { + UpgradeLicenseQuotePurchaseResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.InvoiceSearchRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseQuotePurchaseResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.size = reader.int32(); + message.success = reader.bool(); break; } case 2: { - message.startingAfterId = reader.int32(); + message.quotePurchase = $root.BI.QuotePurchase.decode(reader, reader.uint32()); break; } case 3: { - message.allInvoicesUnfiltered = reader.bool(); + message.viewSummaryLink = reader.string(); + break; + } + case 4: { + message.error = $root.BI.Error.decode(reader, reader.uint32()); break; } default: @@ -229283,140 +258406,160 @@ export const BI = $root.BI = (() => { }; /** - * Decodes an InvoiceSearchRequest message from the specified reader or buffer, length delimited. + * Decodes an UpgradeLicenseQuotePurchaseResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.InvoiceSearchRequest + * @memberof BI.UpgradeLicenseQuotePurchaseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.InvoiceSearchRequest} InvoiceSearchRequest + * @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 */ - InvoiceSearchRequest.decodeDelimited = function decodeDelimited(reader) { + UpgradeLicenseQuotePurchaseResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InvoiceSearchRequest message. + * Verifies an UpgradeLicenseQuotePurchaseResponse message. * @function verify - * @memberof BI.InvoiceSearchRequest + * @memberof BI.UpgradeLicenseQuotePurchaseResponse * @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) { + UpgradeLicenseQuotePurchaseResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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); + 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); + if (error) + return "error." + error; + } return null; }; /** - * Creates an InvoiceSearchRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpgradeLicenseQuotePurchaseResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.InvoiceSearchRequest + * @memberof BI.UpgradeLicenseQuotePurchaseResponse * @static * @param {Object.} object Plain object - * @returns {BI.InvoiceSearchRequest} InvoiceSearchRequest + * @returns {BI.UpgradeLicenseQuotePurchaseResponse} UpgradeLicenseQuotePurchaseResponse */ - InvoiceSearchRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.InvoiceSearchRequest) + UpgradeLicenseQuotePurchaseResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.UpgradeLicenseQuotePurchaseResponse) return object; - let message = new $root.BI.InvoiceSearchRequest(); - if (object.size != null) - message.size = object.size | 0; - if (object.startingAfterId != null) - message.startingAfterId = object.startingAfterId | 0; - if (object.allInvoicesUnfiltered != null) - message.allInvoicesUnfiltered = Boolean(object.allInvoicesUnfiltered); + let message = new $root.BI.UpgradeLicenseQuotePurchaseResponse(); + if (object.success != null) + message.success = Boolean(object.success); + if (object.quotePurchase != null) { + if (typeof object.quotePurchase !== "object") + throw TypeError(".BI.UpgradeLicenseQuotePurchaseResponse.quotePurchase: object expected"); + message.quotePurchase = $root.BI.QuotePurchase.fromObject(object.quotePurchase); + } + if (object.viewSummaryLink != null) + message.viewSummaryLink = String(object.viewSummaryLink); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".BI.UpgradeLicenseQuotePurchaseResponse.error: object expected"); + message.error = $root.BI.Error.fromObject(object.error); + } return message; }; /** - * Creates a plain object from an InvoiceSearchRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpgradeLicenseQuotePurchaseResponse message. Also converts values to other types if specified. * @function toObject - * @memberof BI.InvoiceSearchRequest + * @memberof BI.UpgradeLicenseQuotePurchaseResponse * @static - * @param {BI.InvoiceSearchRequest} message InvoiceSearchRequest + * @param {BI.UpgradeLicenseQuotePurchaseResponse} message UpgradeLicenseQuotePurchaseResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InvoiceSearchRequest.toObject = function toObject(message, options) { + UpgradeLicenseQuotePurchaseResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.size = 0; - object.startingAfterId = 0; - object.allInvoicesUnfiltered = false; + object.success = false; + object.quotePurchase = null; + object.viewSummaryLink = ""; + object.error = null; } - if (message.size != null && message.hasOwnProperty("size")) - object.size = message.size; - if (message.startingAfterId != null && message.hasOwnProperty("startingAfterId")) - object.startingAfterId = message.startingAfterId; - if (message.allInvoicesUnfiltered != null && message.hasOwnProperty("allInvoicesUnfiltered")) - object.allInvoicesUnfiltered = message.allInvoicesUnfiltered; + if (message.success != null && message.hasOwnProperty("success")) + object.success = message.success; + if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) + object.quotePurchase = $root.BI.QuotePurchase.toObject(message.quotePurchase, options); + if (message.viewSummaryLink != null && message.hasOwnProperty("viewSummaryLink")) + object.viewSummaryLink = message.viewSummaryLink; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.BI.Error.toObject(message.error, options); return object; }; /** - * Converts this InvoiceSearchRequest to JSON. + * Converts this UpgradeLicenseQuotePurchaseResponse to JSON. * @function toJSON - * @memberof BI.InvoiceSearchRequest + * @memberof BI.UpgradeLicenseQuotePurchaseResponse * @instance * @returns {Object.} JSON object */ - InvoiceSearchRequest.prototype.toJSON = function toJSON() { + UpgradeLicenseQuotePurchaseResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InvoiceSearchRequest + * Gets the default type url for UpgradeLicenseQuotePurchaseResponse * @function getTypeUrl - * @memberof BI.InvoiceSearchRequest + * @memberof BI.UpgradeLicenseQuotePurchaseResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InvoiceSearchRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpgradeLicenseQuotePurchaseResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.InvoiceSearchRequest"; + return typeUrlPrefix + "/BI.UpgradeLicenseQuotePurchaseResponse"; }; - return InvoiceSearchRequest; + return UpgradeLicenseQuotePurchaseResponse; })(); - BI.InvoiceSearchResponse = (function() { + BI.UpgradeLicenseCompletePurchaseRequest = (function() { /** - * Properties of an InvoiceSearchResponse. + * Properties of an UpgradeLicenseCompletePurchaseRequest. * @memberof BI - * @interface IInvoiceSearchResponse - * @property {Array.|null} [invoices] InvoiceSearchResponse invoices + * @interface IUpgradeLicenseCompletePurchaseRequest + * @property {BI.PurchaseProductType|null} [productType] UpgradeLicenseCompletePurchaseRequest productType + * @property {number|null} [quantity] UpgradeLicenseCompletePurchaseRequest quantity + * @property {BI.IQuotePurchase|null} [quotePurchase] UpgradeLicenseCompletePurchaseRequest quotePurchase + * @property {number|null} [tier] UpgradeLicenseCompletePurchaseRequest tier */ /** - * Constructs a new InvoiceSearchResponse. + * Constructs a new UpgradeLicenseCompletePurchaseRequest. * @memberof BI - * @classdesc Represents an InvoiceSearchResponse. - * @implements IInvoiceSearchResponse + * @classdesc Represents an UpgradeLicenseCompletePurchaseRequest. + * @implements IUpgradeLicenseCompletePurchaseRequest * @constructor - * @param {BI.IInvoiceSearchResponse=} [properties] Properties to set + * @param {BI.IUpgradeLicenseCompletePurchaseRequest=} [properties] Properties to set */ - function InvoiceSearchResponse(properties) { - this.invoices = []; + function UpgradeLicenseCompletePurchaseRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -229424,78 +258567,117 @@ export const BI = $root.BI = (() => { } /** - * InvoiceSearchResponse invoices. - * @member {Array.} invoices - * @memberof BI.InvoiceSearchResponse + * UpgradeLicenseCompletePurchaseRequest productType. + * @member {BI.PurchaseProductType} productType + * @memberof BI.UpgradeLicenseCompletePurchaseRequest * @instance */ - InvoiceSearchResponse.prototype.invoices = $util.emptyArray; + UpgradeLicenseCompletePurchaseRequest.prototype.productType = 0; /** - * Creates a new InvoiceSearchResponse instance using the specified properties. + * UpgradeLicenseCompletePurchaseRequest quantity. + * @member {number} quantity + * @memberof BI.UpgradeLicenseCompletePurchaseRequest + * @instance + */ + UpgradeLicenseCompletePurchaseRequest.prototype.quantity = 0; + + /** + * UpgradeLicenseCompletePurchaseRequest quotePurchase. + * @member {BI.IQuotePurchase|null|undefined} quotePurchase + * @memberof BI.UpgradeLicenseCompletePurchaseRequest + * @instance + */ + UpgradeLicenseCompletePurchaseRequest.prototype.quotePurchase = null; + + /** + * UpgradeLicenseCompletePurchaseRequest tier. + * @member {number} tier + * @memberof BI.UpgradeLicenseCompletePurchaseRequest + * @instance + */ + UpgradeLicenseCompletePurchaseRequest.prototype.tier = 0; + + /** + * Creates a new UpgradeLicenseCompletePurchaseRequest instance using the specified properties. * @function create - * @memberof BI.InvoiceSearchResponse + * @memberof BI.UpgradeLicenseCompletePurchaseRequest * @static - * @param {BI.IInvoiceSearchResponse=} [properties] Properties to set - * @returns {BI.InvoiceSearchResponse} InvoiceSearchResponse instance + * @param {BI.IUpgradeLicenseCompletePurchaseRequest=} [properties] Properties to set + * @returns {BI.UpgradeLicenseCompletePurchaseRequest} UpgradeLicenseCompletePurchaseRequest instance */ - InvoiceSearchResponse.create = function create(properties) { - return new InvoiceSearchResponse(properties); + UpgradeLicenseCompletePurchaseRequest.create = function create(properties) { + return new UpgradeLicenseCompletePurchaseRequest(properties); }; /** - * Encodes the specified InvoiceSearchResponse message. Does not implicitly {@link BI.InvoiceSearchResponse.verify|verify} messages. + * Encodes the specified UpgradeLicenseCompletePurchaseRequest message. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseRequest.verify|verify} messages. * @function encode - * @memberof BI.InvoiceSearchResponse + * @memberof BI.UpgradeLicenseCompletePurchaseRequest * @static - * @param {BI.IInvoiceSearchResponse} message InvoiceSearchResponse message or plain object to encode + * @param {BI.IUpgradeLicenseCompletePurchaseRequest} message UpgradeLicenseCompletePurchaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InvoiceSearchResponse.encode = function encode(message, writer) { + UpgradeLicenseCompletePurchaseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.invoices != null && message.invoices.length) - for (let i = 0; i < message.invoices.length; ++i) - $root.BI.Invoice.encode(message.invoices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.productType != null && Object.hasOwnProperty.call(message, "productType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.productType); + if (message.quantity != null && Object.hasOwnProperty.call(message, "quantity")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.quantity); + if (message.quotePurchase != null && Object.hasOwnProperty.call(message, "quotePurchase")) + $root.BI.QuotePurchase.encode(message.quotePurchase, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.tier != null && Object.hasOwnProperty.call(message, "tier")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.tier); return writer; }; /** - * Encodes the specified InvoiceSearchResponse message, length delimited. Does not implicitly {@link BI.InvoiceSearchResponse.verify|verify} messages. + * Encodes the specified UpgradeLicenseCompletePurchaseRequest message, length delimited. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseRequest.verify|verify} messages. * @function encodeDelimited - * @memberof BI.InvoiceSearchResponse + * @memberof BI.UpgradeLicenseCompletePurchaseRequest * @static - * @param {BI.IInvoiceSearchResponse} message InvoiceSearchResponse message or plain object to encode + * @param {BI.IUpgradeLicenseCompletePurchaseRequest} message UpgradeLicenseCompletePurchaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InvoiceSearchResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpgradeLicenseCompletePurchaseRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InvoiceSearchResponse message from the specified reader or buffer. + * Decodes an UpgradeLicenseCompletePurchaseRequest message from the specified reader or buffer. * @function decode - * @memberof BI.InvoiceSearchResponse + * @memberof BI.UpgradeLicenseCompletePurchaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.InvoiceSearchResponse} InvoiceSearchResponse + * @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 */ - InvoiceSearchResponse.decode = function decode(reader, length) { + UpgradeLicenseCompletePurchaseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.InvoiceSearchResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseCompletePurchaseRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.invoices && message.invoices.length)) - message.invoices = []; - message.invoices.push($root.BI.Invoice.decode(reader, reader.uint32())); + message.productType = reader.int32(); + break; + } + case 2: { + message.quantity = reader.int32(); + break; + } + case 3: { + message.quotePurchase = $root.BI.QuotePurchase.decode(reader, reader.uint32()); + break; + } + case 4: { + message.tier = reader.int32(); break; } default: @@ -229507,144 +258689,219 @@ export const BI = $root.BI = (() => { }; /** - * Decodes an InvoiceSearchResponse message from the specified reader or buffer, length delimited. + * Decodes an UpgradeLicenseCompletePurchaseRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.InvoiceSearchResponse + * @memberof BI.UpgradeLicenseCompletePurchaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.InvoiceSearchResponse} InvoiceSearchResponse + * @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 */ - InvoiceSearchResponse.decodeDelimited = function decodeDelimited(reader) { + UpgradeLicenseCompletePurchaseRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InvoiceSearchResponse message. + * Verifies an UpgradeLicenseCompletePurchaseRequest message. * @function verify - * @memberof BI.InvoiceSearchResponse + * @memberof BI.UpgradeLicenseCompletePurchaseRequest * @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) { + UpgradeLicenseCompletePurchaseRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "invoices." + error; + 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: + 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); + 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 InvoiceSearchResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpgradeLicenseCompletePurchaseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.InvoiceSearchResponse + * @memberof BI.UpgradeLicenseCompletePurchaseRequest * @static * @param {Object.} object Plain object - * @returns {BI.InvoiceSearchResponse} InvoiceSearchResponse + * @returns {BI.UpgradeLicenseCompletePurchaseRequest} UpgradeLicenseCompletePurchaseRequest */ - InvoiceSearchResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.InvoiceSearchResponse) + UpgradeLicenseCompletePurchaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.UpgradeLicenseCompletePurchaseRequest) return object; - let message = new $root.BI.InvoiceSearchResponse(); - if (object.invoices) { - if (!Array.isArray(object.invoices)) - throw TypeError(".BI.InvoiceSearchResponse.invoices: array expected"); - message.invoices = []; - for (let i = 0; i < object.invoices.length; ++i) { - if (typeof object.invoices[i] !== "object") - throw TypeError(".BI.InvoiceSearchResponse.invoices: object expected"); - message.invoices[i] = $root.BI.Invoice.fromObject(object.invoices[i]); + let message = new $root.BI.UpgradeLicenseCompletePurchaseRequest(); + switch (object.productType) { + default: + if (typeof object.productType === "number") { + message.productType = object.productType; + break; } + break; + case "upgradeToEnterprise": + case 0: + message.productType = 0; + break; + case "addUsers": + case 1: + message.productType = 1; + break; + case "addStorage": + case 2: + message.productType = 2; + break; + case "addAudit": + case 3: + message.productType = 3; + break; + case "addBreachWatch": + case 4: + message.productType = 4; + break; + case "addCompliance": + case 5: + message.productType = 5; + break; + case "addChat": + case 6: + message.productType = 6; + break; + case "addPAM": + case 7: + message.productType = 7; + break; + case "addSilverSupport": + case 8: + message.productType = 8; + break; + case "addPlatinumSupport": + case 9: + message.productType = 9; + break; + case "addKEPM": + case 10: + message.productType = 10; + break; + } + if (object.quantity != null) + message.quantity = object.quantity | 0; + if (object.quotePurchase != null) { + if (typeof object.quotePurchase !== "object") + throw TypeError(".BI.UpgradeLicenseCompletePurchaseRequest.quotePurchase: object expected"); + message.quotePurchase = $root.BI.QuotePurchase.fromObject(object.quotePurchase); } + if (object.tier != null) + message.tier = object.tier | 0; return message; }; /** - * Creates a plain object from an InvoiceSearchResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpgradeLicenseCompletePurchaseRequest message. Also converts values to other types if specified. * @function toObject - * @memberof BI.InvoiceSearchResponse + * @memberof BI.UpgradeLicenseCompletePurchaseRequest * @static - * @param {BI.InvoiceSearchResponse} message InvoiceSearchResponse + * @param {BI.UpgradeLicenseCompletePurchaseRequest} message UpgradeLicenseCompletePurchaseRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InvoiceSearchResponse.toObject = function toObject(message, options) { + UpgradeLicenseCompletePurchaseRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.invoices = []; - if (message.invoices && message.invoices.length) { - object.invoices = []; - for (let j = 0; j < message.invoices.length; ++j) - object.invoices[j] = $root.BI.Invoice.toObject(message.invoices[j], options); + if (options.defaults) { + object.productType = options.enums === String ? "upgradeToEnterprise" : 0; + object.quantity = 0; + object.quotePurchase = null; + object.tier = 0; } + if (message.productType != null && message.hasOwnProperty("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")) + object.quantity = message.quantity; + if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) + object.quotePurchase = $root.BI.QuotePurchase.toObject(message.quotePurchase, options); + if (message.tier != null && message.hasOwnProperty("tier")) + object.tier = message.tier; return object; }; /** - * Converts this InvoiceSearchResponse to JSON. + * Converts this UpgradeLicenseCompletePurchaseRequest to JSON. * @function toJSON - * @memberof BI.InvoiceSearchResponse + * @memberof BI.UpgradeLicenseCompletePurchaseRequest * @instance * @returns {Object.} JSON object */ - InvoiceSearchResponse.prototype.toJSON = function toJSON() { + UpgradeLicenseCompletePurchaseRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InvoiceSearchResponse + * Gets the default type url for UpgradeLicenseCompletePurchaseRequest * @function getTypeUrl - * @memberof BI.InvoiceSearchResponse + * @memberof BI.UpgradeLicenseCompletePurchaseRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InvoiceSearchResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpgradeLicenseCompletePurchaseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.InvoiceSearchResponse"; + return typeUrlPrefix + "/BI.UpgradeLicenseCompletePurchaseRequest"; }; - return InvoiceSearchResponse; + return UpgradeLicenseCompletePurchaseRequest; })(); - BI.Invoice = (function() { + BI.UpgradeLicenseCompletePurchaseResponse = (function() { /** - * Properties of an Invoice. + * Properties of an UpgradeLicenseCompletePurchaseResponse. * @memberof BI - * @interface IInvoice - * @property {number|null} [id] Invoice id - * @property {string|null} [invoiceNumber] Invoice invoiceNumber - * @property {number|Long|null} [invoiceDate] Invoice invoiceDate - * @property {number|null} [licenseCount] Invoice licenseCount - * @property {BI.Invoice.ICost|null} [totalCost] Invoice totalCost - * @property {BI.Invoice.Type|null} [invoiceType] Invoice invoiceType + * @interface IUpgradeLicenseCompletePurchaseResponse + * @property {boolean|null} [success] UpgradeLicenseCompletePurchaseResponse success + * @property {string|null} [invoiceNumber] UpgradeLicenseCompletePurchaseResponse invoiceNumber + * @property {BI.IError|null} [error] UpgradeLicenseCompletePurchaseResponse error + * @property {BI.IQuotePurchase|null} [quotePurchase] UpgradeLicenseCompletePurchaseResponse quotePurchase */ /** - * Constructs a new Invoice. + * Constructs a new UpgradeLicenseCompletePurchaseResponse. * @memberof BI - * @classdesc Represents an Invoice. - * @implements IInvoice + * @classdesc Represents an UpgradeLicenseCompletePurchaseResponse. + * @implements IUpgradeLicenseCompletePurchaseResponse * @constructor - * @param {BI.IInvoice=} [properties] Properties to set + * @param {BI.IUpgradeLicenseCompletePurchaseResponse=} [properties] Properties to set */ - function Invoice(properties) { + function UpgradeLicenseCompletePurchaseResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -229652,125 +258909,105 @@ export const BI = $root.BI = (() => { } /** - * Invoice id. - * @member {number} id - * @memberof BI.Invoice + * UpgradeLicenseCompletePurchaseResponse success. + * @member {boolean} success + * @memberof BI.UpgradeLicenseCompletePurchaseResponse * @instance */ - Invoice.prototype.id = 0; + UpgradeLicenseCompletePurchaseResponse.prototype.success = false; /** - * Invoice invoiceNumber. + * UpgradeLicenseCompletePurchaseResponse invoiceNumber. * @member {string} invoiceNumber - * @memberof BI.Invoice - * @instance - */ - Invoice.prototype.invoiceNumber = ""; - - /** - * Invoice invoiceDate. - * @member {number|Long} invoiceDate - * @memberof BI.Invoice - * @instance - */ - Invoice.prototype.invoiceDate = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Invoice licenseCount. - * @member {number} licenseCount - * @memberof BI.Invoice + * @memberof BI.UpgradeLicenseCompletePurchaseResponse * @instance */ - Invoice.prototype.licenseCount = 0; + UpgradeLicenseCompletePurchaseResponse.prototype.invoiceNumber = ""; /** - * Invoice totalCost. - * @member {BI.Invoice.ICost|null|undefined} totalCost - * @memberof BI.Invoice + * UpgradeLicenseCompletePurchaseResponse error. + * @member {BI.IError|null|undefined} error + * @memberof BI.UpgradeLicenseCompletePurchaseResponse * @instance */ - Invoice.prototype.totalCost = null; + UpgradeLicenseCompletePurchaseResponse.prototype.error = null; /** - * Invoice invoiceType. - * @member {BI.Invoice.Type} invoiceType - * @memberof BI.Invoice + * UpgradeLicenseCompletePurchaseResponse quotePurchase. + * @member {BI.IQuotePurchase|null|undefined} quotePurchase + * @memberof BI.UpgradeLicenseCompletePurchaseResponse * @instance */ - Invoice.prototype.invoiceType = 0; + UpgradeLicenseCompletePurchaseResponse.prototype.quotePurchase = null; /** - * Creates a new Invoice instance using the specified properties. + * Creates a new UpgradeLicenseCompletePurchaseResponse instance using the specified properties. * @function create - * @memberof BI.Invoice + * @memberof BI.UpgradeLicenseCompletePurchaseResponse * @static - * @param {BI.IInvoice=} [properties] Properties to set - * @returns {BI.Invoice} Invoice instance + * @param {BI.IUpgradeLicenseCompletePurchaseResponse=} [properties] Properties to set + * @returns {BI.UpgradeLicenseCompletePurchaseResponse} UpgradeLicenseCompletePurchaseResponse instance */ - Invoice.create = function create(properties) { - return new Invoice(properties); + UpgradeLicenseCompletePurchaseResponse.create = function create(properties) { + return new UpgradeLicenseCompletePurchaseResponse(properties); }; /** - * Encodes the specified Invoice message. Does not implicitly {@link BI.Invoice.verify|verify} messages. + * Encodes the specified UpgradeLicenseCompletePurchaseResponse message. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseResponse.verify|verify} messages. * @function encode - * @memberof BI.Invoice + * @memberof BI.UpgradeLicenseCompletePurchaseResponse * @static - * @param {BI.IInvoice} message Invoice message or plain object to encode + * @param {BI.IUpgradeLicenseCompletePurchaseResponse} message UpgradeLicenseCompletePurchaseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Invoice.encode = function encode(message, writer) { + UpgradeLicenseCompletePurchaseResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); + if (message.success != null && Object.hasOwnProperty.call(message, "success")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.invoiceNumber); - if (message.invoiceDate != null && Object.hasOwnProperty.call(message, "invoiceDate")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.invoiceDate); - if (message.licenseCount != null && Object.hasOwnProperty.call(message, "licenseCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.licenseCount); - if (message.totalCost != null && Object.hasOwnProperty.call(message, "totalCost")) - $root.BI.Invoice.Cost.encode(message.totalCost, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.invoiceType != null && Object.hasOwnProperty.call(message, "invoiceType")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.invoiceType); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.BI.Error.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.quotePurchase != null && Object.hasOwnProperty.call(message, "quotePurchase")) + $root.BI.QuotePurchase.encode(message.quotePurchase, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified Invoice message, length delimited. Does not implicitly {@link BI.Invoice.verify|verify} messages. + * Encodes the specified UpgradeLicenseCompletePurchaseResponse message, length delimited. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseResponse.verify|verify} messages. * @function encodeDelimited - * @memberof BI.Invoice + * @memberof BI.UpgradeLicenseCompletePurchaseResponse * @static - * @param {BI.IInvoice} message Invoice message or plain object to encode + * @param {BI.IUpgradeLicenseCompletePurchaseResponse} message UpgradeLicenseCompletePurchaseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Invoice.encodeDelimited = function encodeDelimited(message, writer) { + UpgradeLicenseCompletePurchaseResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Invoice message from the specified reader or buffer. + * Decodes an UpgradeLicenseCompletePurchaseResponse message from the specified reader or buffer. * @function decode - * @memberof BI.Invoice + * @memberof BI.UpgradeLicenseCompletePurchaseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.Invoice} Invoice + * @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 */ - Invoice.decode = function decode(reader, length) { + UpgradeLicenseCompletePurchaseResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.Invoice(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseCompletePurchaseResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.id = reader.int32(); + message.success = reader.bool(); break; } case 2: { @@ -229778,19 +259015,11 @@ export const BI = $root.BI = (() => { break; } case 3: { - message.invoiceDate = reader.int64(); + message.error = $root.BI.Error.decode(reader, reader.uint32()); break; } case 4: { - message.licenseCount = reader.int32(); - break; - } - case 5: { - message.totalCost = $root.BI.Invoice.Cost.decode(reader, reader.uint32()); - break; - } - case 6: { - message.invoiceType = reader.int32(); + message.quotePurchase = $root.BI.QuotePurchase.decode(reader, reader.uint32()); break; } default: @@ -229802,520 +259031,158 @@ export const BI = $root.BI = (() => { }; /** - * Decodes an Invoice message from the specified reader or buffer, length delimited. + * Decodes an UpgradeLicenseCompletePurchaseResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.Invoice + * @memberof BI.UpgradeLicenseCompletePurchaseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.Invoice} Invoice + * @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 */ - Invoice.decodeDelimited = function decodeDelimited(reader) { + UpgradeLicenseCompletePurchaseResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Invoice message. + * Verifies an UpgradeLicenseCompletePurchaseResponse message. * @function verify - * @memberof BI.Invoice + * @memberof BI.UpgradeLicenseCompletePurchaseResponse * @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) { + UpgradeLicenseCompletePurchaseResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id)) - return "id: integer expected"; + 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.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); + if (message.error != null && message.hasOwnProperty("error")) { + let error = $root.BI.Error.verify(message.error); if (error) - return "totalCost." + error; + return "error." + error; + } + if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) { + let error = $root.BI.QuotePurchase.verify(message.quotePurchase); + if (error) + return "quotePurchase." + 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. + * Creates an UpgradeLicenseCompletePurchaseResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.Invoice + * @memberof BI.UpgradeLicenseCompletePurchaseResponse * @static * @param {Object.} object Plain object - * @returns {BI.Invoice} Invoice + * @returns {BI.UpgradeLicenseCompletePurchaseResponse} UpgradeLicenseCompletePurchaseResponse */ - Invoice.fromObject = function fromObject(object) { - if (object instanceof $root.BI.Invoice) + UpgradeLicenseCompletePurchaseResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.UpgradeLicenseCompletePurchaseResponse) return object; - let message = new $root.BI.Invoice(); - if (object.id != null) - message.id = object.id | 0; + let message = new $root.BI.UpgradeLicenseCompletePurchaseResponse(); + if (object.success != null) + message.success = Boolean(object.success); if (object.invoiceNumber != null) message.invoiceNumber = String(object.invoiceNumber); - if (object.invoiceDate != null) - if ($util.Long) - (message.invoiceDate = $util.Long.fromValue(object.invoiceDate)).unsigned = false; - else if (typeof object.invoiceDate === "string") - message.invoiceDate = parseInt(object.invoiceDate, 10); - else if (typeof object.invoiceDate === "number") - message.invoiceDate = object.invoiceDate; - else if (typeof object.invoiceDate === "object") - message.invoiceDate = new $util.LongBits(object.invoiceDate.low >>> 0, object.invoiceDate.high >>> 0).toNumber(); - if (object.licenseCount != null) - message.licenseCount = object.licenseCount | 0; - if (object.totalCost != null) { - if (typeof object.totalCost !== "object") - throw TypeError(".BI.Invoice.totalCost: object expected"); - message.totalCost = $root.BI.Invoice.Cost.fromObject(object.totalCost); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".BI.UpgradeLicenseCompletePurchaseResponse.error: object expected"); + message.error = $root.BI.Error.fromObject(object.error); } - switch (object.invoiceType) { - default: - if (typeof object.invoiceType === "number") { - message.invoiceType = object.invoiceType; - break; - } - break; - case "UNKNOWN": - case 0: - message.invoiceType = 0; - break; - case "NEW": - case 1: - message.invoiceType = 1; - break; - case "RENEWAL": - case 2: - message.invoiceType = 2; - break; - case "UPGRADE": - case 3: - message.invoiceType = 3; - break; - case "RESTORE": - case 4: - message.invoiceType = 4; - break; - case "ASSOCIATION": - case 5: - message.invoiceType = 5; - break; - case "OVERAGE": - case 6: - message.invoiceType = 6; - break; + if (object.quotePurchase != null) { + if (typeof object.quotePurchase !== "object") + throw TypeError(".BI.UpgradeLicenseCompletePurchaseResponse.quotePurchase: object expected"); + message.quotePurchase = $root.BI.QuotePurchase.fromObject(object.quotePurchase); } return message; }; /** - * Creates a plain object from an Invoice message. Also converts values to other types if specified. + * Creates a plain object from an UpgradeLicenseCompletePurchaseResponse message. Also converts values to other types if specified. * @function toObject - * @memberof BI.Invoice + * @memberof BI.UpgradeLicenseCompletePurchaseResponse * @static - * @param {BI.Invoice} message Invoice + * @param {BI.UpgradeLicenseCompletePurchaseResponse} message UpgradeLicenseCompletePurchaseResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Invoice.toObject = function toObject(message, options) { + UpgradeLicenseCompletePurchaseResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.id = 0; + object.success = false; object.invoiceNumber = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.invoiceDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.invoiceDate = options.longs === String ? "0" : 0; - object.licenseCount = 0; - object.totalCost = null; - object.invoiceType = options.enums === String ? "UNKNOWN" : 0; + object.error = null; + object.quotePurchase = null; } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; + if (message.success != null && message.hasOwnProperty("success")) + object.success = message.success; if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) object.invoiceNumber = message.invoiceNumber; - if (message.invoiceDate != null && message.hasOwnProperty("invoiceDate")) - if (typeof message.invoiceDate === "number") - object.invoiceDate = options.longs === String ? String(message.invoiceDate) : message.invoiceDate; - else - object.invoiceDate = options.longs === String ? $util.Long.prototype.toString.call(message.invoiceDate) : options.longs === Number ? new $util.LongBits(message.invoiceDate.low >>> 0, message.invoiceDate.high >>> 0).toNumber() : message.invoiceDate; - if (message.licenseCount != null && message.hasOwnProperty("licenseCount")) - object.licenseCount = message.licenseCount; - if (message.totalCost != null && message.hasOwnProperty("totalCost")) - object.totalCost = $root.BI.Invoice.Cost.toObject(message.totalCost, options); - if (message.invoiceType != null && message.hasOwnProperty("invoiceType")) - object.invoiceType = options.enums === String ? $root.BI.Invoice.Type[message.invoiceType] === undefined ? message.invoiceType : $root.BI.Invoice.Type[message.invoiceType] : message.invoiceType; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.BI.Error.toObject(message.error, options); + if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) + object.quotePurchase = $root.BI.QuotePurchase.toObject(message.quotePurchase, options); return object; }; /** - * Converts this Invoice to JSON. + * Converts this UpgradeLicenseCompletePurchaseResponse to JSON. * @function toJSON - * @memberof BI.Invoice + * @memberof BI.UpgradeLicenseCompletePurchaseResponse * @instance * @returns {Object.} JSON object */ - Invoice.prototype.toJSON = function toJSON() { + UpgradeLicenseCompletePurchaseResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Invoice + * Gets the default type url for UpgradeLicenseCompletePurchaseResponse * @function getTypeUrl - * @memberof BI.Invoice + * @memberof BI.UpgradeLicenseCompletePurchaseResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Invoice.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpgradeLicenseCompletePurchaseResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.Invoice"; + return typeUrlPrefix + "/BI.UpgradeLicenseCompletePurchaseResponse"; }; - Invoice.Cost = (function() { - - /** - * Properties of a Cost. - * @memberof BI.Invoice - * @interface ICost - * @property {number|null} [amount] Cost amount - * @property {BI.Currency|null} [currency] Cost currency - */ - - /** - * Constructs a new Cost. - * @memberof BI.Invoice - * @classdesc Represents a Cost. - * @implements ICost - * @constructor - * @param {BI.Invoice.ICost=} [properties] Properties to set - */ - function Cost(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Cost amount. - * @member {number} amount - * @memberof BI.Invoice.Cost - * @instance - */ - Cost.prototype.amount = 0; - - /** - * Cost currency. - * @member {BI.Currency} currency - * @memberof BI.Invoice.Cost - * @instance - */ - Cost.prototype.currency = 0; - - /** - * Creates a new Cost instance using the specified properties. - * @function create - * @memberof BI.Invoice.Cost - * @static - * @param {BI.Invoice.ICost=} [properties] Properties to set - * @returns {BI.Invoice.Cost} Cost instance - */ - Cost.create = function create(properties) { - return new Cost(properties); - }; - - /** - * Encodes the specified Cost message. Does not implicitly {@link BI.Invoice.Cost.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.amount); - if (message.currency != null && Object.hasOwnProperty.call(message, "currency")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.currency); - 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 - * @memberof BI.Invoice.Cost - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.Invoice.Cost(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.amount = reader.double(); - break; - } - case 2: { - message.currency = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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 - * @memberof BI.Invoice.Cost - * @static - * @param {Object.} object Plain object - * @returns {BI.Invoice.Cost} Cost - */ - Cost.fromObject = function fromObject(object) { - if (object instanceof $root.BI.Invoice.Cost) - return object; - let message = new $root.BI.Invoice.Cost(); - if (object.amount != null) - message.amount = Number(object.amount); - switch (object.currency) { - default: - if (typeof object.currency === "number") { - message.currency = object.currency; - break; - } - break; - case "UNKNOWN": - case 0: - message.currency = 0; - break; - case "USD": - case 1: - message.currency = 1; - break; - case "GBP": - case 2: - message.currency = 2; - break; - case "JPY": - case 3: - message.currency = 3; - break; - case "EUR": - case 4: - message.currency = 4; - break; - case "AUD": - case 5: - message.currency = 5; - break; - case "CAD": - case 6: - message.currency = 6; - break; - } - return message; - }; - - /** - * Creates a plain object from a Cost message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.Invoice.Cost - * @static - * @param {BI.Invoice.Cost} message Cost - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Cost.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.amount = 0; - object.currency = options.enums === String ? "UNKNOWN" : 0; - } - if (message.amount != null && message.hasOwnProperty("amount")) - object.amount = options.json && !isFinite(message.amount) ? String(message.amount) : message.amount; - if (message.currency != null && message.hasOwnProperty("currency")) - object.currency = options.enums === String ? $root.BI.Currency[message.currency] === undefined ? message.currency : $root.BI.Currency[message.currency] : message.currency; - return object; - }; - - /** - * Converts this Cost to JSON. - * @function toJSON - * @memberof BI.Invoice.Cost - * @instance - * @returns {Object.} JSON object - */ - Cost.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Cost - * @function getTypeUrl - * @memberof BI.Invoice.Cost - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Cost.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.Invoice.Cost"; - }; - - return Cost; - })(); - - /** - * Type enum. - * @name BI.Invoice.Type - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} NEW=1 NEW value - * @property {number} RENEWAL=2 RENEWAL value - * @property {number} UPGRADE=3 UPGRADE value - * @property {number} RESTORE=4 RESTORE value - * @property {number} ASSOCIATION=5 ASSOCIATION value - * @property {number} OVERAGE=6 OVERAGE value - */ - Invoice.Type = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "NEW"] = 1; - values[valuesById[2] = "RENEWAL"] = 2; - values[valuesById[3] = "UPGRADE"] = 3; - values[valuesById[4] = "RESTORE"] = 4; - values[valuesById[5] = "ASSOCIATION"] = 5; - values[valuesById[6] = "OVERAGE"] = 6; - return values; - })(); - - return Invoice; + return UpgradeLicenseCompletePurchaseResponse; })(); - BI.VaultInvoicesListRequest = (function() { + BI.EnterpriseBasePlan = (function() { /** - * Properties of a VaultInvoicesListRequest. + * Properties of an EnterpriseBasePlan. * @memberof BI - * @interface IVaultInvoicesListRequest + * @interface IEnterpriseBasePlan + * @property {BI.EnterpriseBasePlan.EnterpriseBasePlanVersion|null} [baseplanVersion] EnterpriseBasePlan baseplanVersion + * @property {BI.ICost|null} [cost] EnterpriseBasePlan cost */ /** - * Constructs a new VaultInvoicesListRequest. + * Constructs a new EnterpriseBasePlan. * @memberof BI - * @classdesc Represents a VaultInvoicesListRequest. - * @implements IVaultInvoicesListRequest + * @classdesc Represents an EnterpriseBasePlan. + * @implements IEnterpriseBasePlan * @constructor - * @param {BI.IVaultInvoicesListRequest=} [properties] Properties to set + * @param {BI.IEnterpriseBasePlan=} [properties] Properties to set */ - function VaultInvoicesListRequest(properties) { + function EnterpriseBasePlan(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -230323,63 +259190,91 @@ export const BI = $root.BI = (() => { } /** - * Creates a new VaultInvoicesListRequest instance using the specified properties. + * EnterpriseBasePlan baseplanVersion. + * @member {BI.EnterpriseBasePlan.EnterpriseBasePlanVersion} baseplanVersion + * @memberof BI.EnterpriseBasePlan + * @instance + */ + EnterpriseBasePlan.prototype.baseplanVersion = 0; + + /** + * EnterpriseBasePlan cost. + * @member {BI.ICost|null|undefined} cost + * @memberof BI.EnterpriseBasePlan + * @instance + */ + EnterpriseBasePlan.prototype.cost = null; + + /** + * Creates a new EnterpriseBasePlan instance using the specified properties. * @function create - * @memberof BI.VaultInvoicesListRequest + * @memberof BI.EnterpriseBasePlan * @static - * @param {BI.IVaultInvoicesListRequest=} [properties] Properties to set - * @returns {BI.VaultInvoicesListRequest} VaultInvoicesListRequest instance + * @param {BI.IEnterpriseBasePlan=} [properties] Properties to set + * @returns {BI.EnterpriseBasePlan} EnterpriseBasePlan instance */ - VaultInvoicesListRequest.create = function create(properties) { - return new VaultInvoicesListRequest(properties); + EnterpriseBasePlan.create = function create(properties) { + return new EnterpriseBasePlan(properties); }; /** - * Encodes the specified VaultInvoicesListRequest message. Does not implicitly {@link BI.VaultInvoicesListRequest.verify|verify} messages. + * Encodes the specified EnterpriseBasePlan message. Does not implicitly {@link BI.EnterpriseBasePlan.verify|verify} messages. * @function encode - * @memberof BI.VaultInvoicesListRequest + * @memberof BI.EnterpriseBasePlan * @static - * @param {BI.IVaultInvoicesListRequest} message VaultInvoicesListRequest message or plain object to encode + * @param {BI.IEnterpriseBasePlan} message EnterpriseBasePlan message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VaultInvoicesListRequest.encode = function encode(message, writer) { + EnterpriseBasePlan.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.baseplanVersion != null && Object.hasOwnProperty.call(message, "baseplanVersion")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.baseplanVersion); + if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) + $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified VaultInvoicesListRequest message, length delimited. Does not implicitly {@link BI.VaultInvoicesListRequest.verify|verify} messages. + * Encodes the specified EnterpriseBasePlan message, length delimited. Does not implicitly {@link BI.EnterpriseBasePlan.verify|verify} messages. * @function encodeDelimited - * @memberof BI.VaultInvoicesListRequest + * @memberof BI.EnterpriseBasePlan * @static - * @param {BI.IVaultInvoicesListRequest} message VaultInvoicesListRequest message or plain object to encode + * @param {BI.IEnterpriseBasePlan} message EnterpriseBasePlan message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VaultInvoicesListRequest.encodeDelimited = function encodeDelimited(message, writer) { + EnterpriseBasePlan.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VaultInvoicesListRequest message from the specified reader or buffer. + * Decodes an EnterpriseBasePlan message from the specified reader or buffer. * @function decode - * @memberof BI.VaultInvoicesListRequest + * @memberof BI.EnterpriseBasePlan * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.VaultInvoicesListRequest} VaultInvoicesListRequest + * @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 */ - VaultInvoicesListRequest.decode = function decode(reader, length) { + EnterpriseBasePlan.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.VaultInvoicesListRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EnterpriseBasePlan(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.baseplanVersion = reader.int32(); + break; + } + case 2: { + message.cost = $root.BI.Cost.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -230389,110 +259284,182 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a VaultInvoicesListRequest message from the specified reader or buffer, length delimited. + * Decodes an EnterpriseBasePlan message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.VaultInvoicesListRequest + * @memberof BI.EnterpriseBasePlan * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.VaultInvoicesListRequest} VaultInvoicesListRequest + * @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 */ - VaultInvoicesListRequest.decodeDelimited = function decodeDelimited(reader) { + EnterpriseBasePlan.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VaultInvoicesListRequest message. + * Verifies an EnterpriseBasePlan message. * @function verify - * @memberof BI.VaultInvoicesListRequest + * @memberof BI.EnterpriseBasePlan * @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) { + EnterpriseBasePlan.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + 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); + if (error) + return "cost." + error; + } return null; }; /** - * Creates a VaultInvoicesListRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EnterpriseBasePlan message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.VaultInvoicesListRequest + * @memberof BI.EnterpriseBasePlan * @static * @param {Object.} object Plain object - * @returns {BI.VaultInvoicesListRequest} VaultInvoicesListRequest + * @returns {BI.EnterpriseBasePlan} EnterpriseBasePlan */ - VaultInvoicesListRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.VaultInvoicesListRequest) + EnterpriseBasePlan.fromObject = function fromObject(object) { + if (object instanceof $root.BI.EnterpriseBasePlan) return object; - return new $root.BI.VaultInvoicesListRequest(); + let message = new $root.BI.EnterpriseBasePlan(); + switch (object.baseplanVersion) { + default: + if (typeof object.baseplanVersion === "number") { + message.baseplanVersion = object.baseplanVersion; + break; + } + break; + case "UNKNOWN": + case 0: + message.baseplanVersion = 0; + break; + case "BUSINESS_STARTER": + case 1: + message.baseplanVersion = 1; + break; + case "BUSINESS": + case 2: + message.baseplanVersion = 2; + break; + case "ENTERPRISE": + case 3: + message.baseplanVersion = 3; + break; + } + if (object.cost != null) { + if (typeof object.cost !== "object") + throw TypeError(".BI.EnterpriseBasePlan.cost: object expected"); + message.cost = $root.BI.Cost.fromObject(object.cost); + } + return message; }; /** - * Creates a plain object from a VaultInvoicesListRequest message. Also converts values to other types if specified. + * Creates a plain object from an EnterpriseBasePlan message. Also converts values to other types if specified. * @function toObject - * @memberof BI.VaultInvoicesListRequest + * @memberof BI.EnterpriseBasePlan * @static - * @param {BI.VaultInvoicesListRequest} message VaultInvoicesListRequest + * @param {BI.EnterpriseBasePlan} message EnterpriseBasePlan * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VaultInvoicesListRequest.toObject = function toObject() { - return {}; + EnterpriseBasePlan.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.baseplanVersion = options.enums === String ? "UNKNOWN" : 0; + object.cost = null; + } + if (message.baseplanVersion != null && message.hasOwnProperty("baseplanVersion")) + object.baseplanVersion = options.enums === String ? $root.BI.EnterpriseBasePlan.EnterpriseBasePlanVersion[message.baseplanVersion] === undefined ? message.baseplanVersion : $root.BI.EnterpriseBasePlan.EnterpriseBasePlanVersion[message.baseplanVersion] : message.baseplanVersion; + if (message.cost != null && message.hasOwnProperty("cost")) + object.cost = $root.BI.Cost.toObject(message.cost, options); + return object; }; /** - * Converts this VaultInvoicesListRequest to JSON. + * Converts this EnterpriseBasePlan to JSON. * @function toJSON - * @memberof BI.VaultInvoicesListRequest + * @memberof BI.EnterpriseBasePlan * @instance * @returns {Object.} JSON object */ - VaultInvoicesListRequest.prototype.toJSON = function toJSON() { + EnterpriseBasePlan.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VaultInvoicesListRequest + * Gets the default type url for EnterpriseBasePlan * @function getTypeUrl - * @memberof BI.VaultInvoicesListRequest + * @memberof BI.EnterpriseBasePlan * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VaultInvoicesListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EnterpriseBasePlan.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.VaultInvoicesListRequest"; + return typeUrlPrefix + "/BI.EnterpriseBasePlan"; }; - return VaultInvoicesListRequest; + /** + * EnterpriseBasePlanVersion enum. + * @name BI.EnterpriseBasePlan.EnterpriseBasePlanVersion + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} BUSINESS_STARTER=1 BUSINESS_STARTER value + * @property {number} BUSINESS=2 BUSINESS value + * @property {number} ENTERPRISE=3 ENTERPRISE value + */ + EnterpriseBasePlan.EnterpriseBasePlanVersion = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "BUSINESS_STARTER"] = 1; + values[valuesById[2] = "BUSINESS"] = 2; + values[valuesById[3] = "ENTERPRISE"] = 3; + return values; + })(); + + return EnterpriseBasePlan; })(); - BI.VaultInvoicesListResponse = (function() { + BI.SubscriptionEnterprisePricingRequest = (function() { /** - * Properties of a VaultInvoicesListResponse. + * Properties of a SubscriptionEnterprisePricingRequest. * @memberof BI - * @interface IVaultInvoicesListResponse - * @property {Array.|null} [invoices] VaultInvoicesListResponse invoices + * @interface ISubscriptionEnterprisePricingRequest */ /** - * Constructs a new VaultInvoicesListResponse. + * Constructs a new SubscriptionEnterprisePricingRequest. * @memberof BI - * @classdesc Represents a VaultInvoicesListResponse. - * @implements IVaultInvoicesListResponse + * @classdesc Represents a SubscriptionEnterprisePricingRequest. + * @implements ISubscriptionEnterprisePricingRequest * @constructor - * @param {BI.IVaultInvoicesListResponse=} [properties] Properties to set + * @param {BI.ISubscriptionEnterprisePricingRequest=} [properties] Properties to set */ - function VaultInvoicesListResponse(properties) { - this.invoices = []; + function SubscriptionEnterprisePricingRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -230500,80 +259467,63 @@ export const BI = $root.BI = (() => { } /** - * VaultInvoicesListResponse invoices. - * @member {Array.} invoices - * @memberof BI.VaultInvoicesListResponse - * @instance - */ - VaultInvoicesListResponse.prototype.invoices = $util.emptyArray; - - /** - * Creates a new VaultInvoicesListResponse instance using the specified properties. + * Creates a new SubscriptionEnterprisePricingRequest instance using the specified properties. * @function create - * @memberof BI.VaultInvoicesListResponse + * @memberof BI.SubscriptionEnterprisePricingRequest * @static - * @param {BI.IVaultInvoicesListResponse=} [properties] Properties to set - * @returns {BI.VaultInvoicesListResponse} VaultInvoicesListResponse instance + * @param {BI.ISubscriptionEnterprisePricingRequest=} [properties] Properties to set + * @returns {BI.SubscriptionEnterprisePricingRequest} SubscriptionEnterprisePricingRequest instance */ - VaultInvoicesListResponse.create = function create(properties) { - return new VaultInvoicesListResponse(properties); + SubscriptionEnterprisePricingRequest.create = function create(properties) { + return new SubscriptionEnterprisePricingRequest(properties); }; /** - * Encodes the specified VaultInvoicesListResponse message. Does not implicitly {@link BI.VaultInvoicesListResponse.verify|verify} messages. + * Encodes the specified SubscriptionEnterprisePricingRequest message. Does not implicitly {@link BI.SubscriptionEnterprisePricingRequest.verify|verify} messages. * @function encode - * @memberof BI.VaultInvoicesListResponse + * @memberof BI.SubscriptionEnterprisePricingRequest * @static - * @param {BI.IVaultInvoicesListResponse} message VaultInvoicesListResponse message or plain object to encode + * @param {BI.ISubscriptionEnterprisePricingRequest} message SubscriptionEnterprisePricingRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VaultInvoicesListResponse.encode = function encode(message, writer) { + SubscriptionEnterprisePricingRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.invoices != null && message.invoices.length) - for (let i = 0; i < message.invoices.length; ++i) - $root.BI.VaultInvoice.encode(message.invoices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified VaultInvoicesListResponse message, length delimited. Does not implicitly {@link BI.VaultInvoicesListResponse.verify|verify} messages. + * Encodes the specified SubscriptionEnterprisePricingRequest message, length delimited. Does not implicitly {@link BI.SubscriptionEnterprisePricingRequest.verify|verify} messages. * @function encodeDelimited - * @memberof BI.VaultInvoicesListResponse + * @memberof BI.SubscriptionEnterprisePricingRequest * @static - * @param {BI.IVaultInvoicesListResponse} message VaultInvoicesListResponse message or plain object to encode + * @param {BI.ISubscriptionEnterprisePricingRequest} message SubscriptionEnterprisePricingRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VaultInvoicesListResponse.encodeDelimited = function encodeDelimited(message, writer) { + SubscriptionEnterprisePricingRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VaultInvoicesListResponse message from the specified reader or buffer. + * Decodes a SubscriptionEnterprisePricingRequest message from the specified reader or buffer. * @function decode - * @memberof BI.VaultInvoicesListResponse + * @memberof BI.SubscriptionEnterprisePricingRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.VaultInvoicesListResponse} VaultInvoicesListResponse + * @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 */ - VaultInvoicesListResponse.decode = function decode(reader, length) { + SubscriptionEnterprisePricingRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.VaultInvoicesListResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionEnterprisePricingRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.invoices && message.invoices.length)) - message.invoices = []; - message.invoices.push($root.BI.VaultInvoice.decode(reader, reader.uint32())); - break; - } default: reader.skipType(tag & 7); break; @@ -230583,275 +259533,227 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a VaultInvoicesListResponse message from the specified reader or buffer, length delimited. + * Decodes a SubscriptionEnterprisePricingRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.VaultInvoicesListResponse + * @memberof BI.SubscriptionEnterprisePricingRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.VaultInvoicesListResponse} VaultInvoicesListResponse + * @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 */ - VaultInvoicesListResponse.decodeDelimited = function decodeDelimited(reader) { + SubscriptionEnterprisePricingRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VaultInvoicesListResponse message. + * Verifies a SubscriptionEnterprisePricingRequest message. * @function verify - * @memberof BI.VaultInvoicesListResponse + * @memberof BI.SubscriptionEnterprisePricingRequest * @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) { + SubscriptionEnterprisePricingRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "invoices." + error; - } - } return null; }; /** - * Creates a VaultInvoicesListResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SubscriptionEnterprisePricingRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.VaultInvoicesListResponse + * @memberof BI.SubscriptionEnterprisePricingRequest * @static * @param {Object.} object Plain object - * @returns {BI.VaultInvoicesListResponse} VaultInvoicesListResponse + * @returns {BI.SubscriptionEnterprisePricingRequest} SubscriptionEnterprisePricingRequest */ - VaultInvoicesListResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.VaultInvoicesListResponse) + SubscriptionEnterprisePricingRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SubscriptionEnterprisePricingRequest) return object; - let message = new $root.BI.VaultInvoicesListResponse(); - if (object.invoices) { - if (!Array.isArray(object.invoices)) - throw TypeError(".BI.VaultInvoicesListResponse.invoices: array expected"); - message.invoices = []; - for (let i = 0; i < object.invoices.length; ++i) { - if (typeof object.invoices[i] !== "object") - throw TypeError(".BI.VaultInvoicesListResponse.invoices: object expected"); - message.invoices[i] = $root.BI.VaultInvoice.fromObject(object.invoices[i]); - } - } - return message; + return new $root.BI.SubscriptionEnterprisePricingRequest(); }; /** - * Creates a plain object from a VaultInvoicesListResponse message. Also converts values to other types if specified. + * Creates a plain object from a SubscriptionEnterprisePricingRequest message. Also converts values to other types if specified. * @function toObject - * @memberof BI.VaultInvoicesListResponse + * @memberof BI.SubscriptionEnterprisePricingRequest * @static - * @param {BI.VaultInvoicesListResponse} message VaultInvoicesListResponse + * @param {BI.SubscriptionEnterprisePricingRequest} message SubscriptionEnterprisePricingRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VaultInvoicesListResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.invoices = []; - if (message.invoices && message.invoices.length) { - object.invoices = []; - for (let j = 0; j < message.invoices.length; ++j) - object.invoices[j] = $root.BI.VaultInvoice.toObject(message.invoices[j], options); - } - return object; + SubscriptionEnterprisePricingRequest.toObject = function toObject() { + return {}; }; /** - * Converts this VaultInvoicesListResponse to JSON. + * Converts this SubscriptionEnterprisePricingRequest to JSON. * @function toJSON - * @memberof BI.VaultInvoicesListResponse + * @memberof BI.SubscriptionEnterprisePricingRequest * @instance * @returns {Object.} JSON object */ - VaultInvoicesListResponse.prototype.toJSON = function toJSON() { + SubscriptionEnterprisePricingRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VaultInvoicesListResponse + * Gets the default type url for SubscriptionEnterprisePricingRequest * @function getTypeUrl - * @memberof BI.VaultInvoicesListResponse + * @memberof BI.SubscriptionEnterprisePricingRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VaultInvoicesListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SubscriptionEnterprisePricingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.VaultInvoicesListResponse"; + return typeUrlPrefix + "/BI.SubscriptionEnterprisePricingRequest"; }; - return VaultInvoicesListResponse; + return SubscriptionEnterprisePricingRequest; })(); - BI.VaultInvoice = (function() { + BI.SubscriptionEnterprisePricingResponse = (function() { /** - * Properties of a VaultInvoice. + * Properties of a SubscriptionEnterprisePricingResponse. * @memberof BI - * @interface IVaultInvoice - * @property {number|null} [id] VaultInvoice id - * @property {string|null} [invoiceNumber] VaultInvoice invoiceNumber - * @property {number|Long|null} [dateCreated] VaultInvoice dateCreated - * @property {BI.Invoice.ICost|null} [total] VaultInvoice total - * @property {BI.Invoice.Type|null} [purchaseType] VaultInvoice purchaseType + * @interface ISubscriptionEnterprisePricingResponse + * @property {Array.|null} [basePlans] SubscriptionEnterprisePricingResponse basePlans + * @property {Array.|null} [addons] SubscriptionEnterprisePricingResponse addons + * @property {Array.|null} [filePlans] SubscriptionEnterprisePricingResponse filePlans */ /** - * Constructs a new VaultInvoice. + * Constructs a new SubscriptionEnterprisePricingResponse. * @memberof BI - * @classdesc Represents a VaultInvoice. - * @implements IVaultInvoice - * @constructor - * @param {BI.IVaultInvoice=} [properties] Properties to set - */ - function VaultInvoice(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * VaultInvoice id. - * @member {number} id - * @memberof BI.VaultInvoice - * @instance - */ - VaultInvoice.prototype.id = 0; - - /** - * VaultInvoice invoiceNumber. - * @member {string} invoiceNumber - * @memberof BI.VaultInvoice - * @instance + * @classdesc Represents a SubscriptionEnterprisePricingResponse. + * @implements ISubscriptionEnterprisePricingResponse + * @constructor + * @param {BI.ISubscriptionEnterprisePricingResponse=} [properties] Properties to set */ - VaultInvoice.prototype.invoiceNumber = ""; + function SubscriptionEnterprisePricingResponse(properties) { + this.basePlans = []; + this.addons = []; + this.filePlans = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * VaultInvoice dateCreated. - * @member {number|Long} dateCreated - * @memberof BI.VaultInvoice + * SubscriptionEnterprisePricingResponse basePlans. + * @member {Array.} basePlans + * @memberof BI.SubscriptionEnterprisePricingResponse * @instance */ - VaultInvoice.prototype.dateCreated = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SubscriptionEnterprisePricingResponse.prototype.basePlans = $util.emptyArray; /** - * VaultInvoice total. - * @member {BI.Invoice.ICost|null|undefined} total - * @memberof BI.VaultInvoice + * SubscriptionEnterprisePricingResponse addons. + * @member {Array.} addons + * @memberof BI.SubscriptionEnterprisePricingResponse * @instance */ - VaultInvoice.prototype.total = null; + SubscriptionEnterprisePricingResponse.prototype.addons = $util.emptyArray; /** - * VaultInvoice purchaseType. - * @member {BI.Invoice.Type} purchaseType - * @memberof BI.VaultInvoice + * SubscriptionEnterprisePricingResponse filePlans. + * @member {Array.} filePlans + * @memberof BI.SubscriptionEnterprisePricingResponse * @instance */ - VaultInvoice.prototype.purchaseType = 0; + SubscriptionEnterprisePricingResponse.prototype.filePlans = $util.emptyArray; /** - * Creates a new VaultInvoice instance using the specified properties. + * Creates a new SubscriptionEnterprisePricingResponse instance using the specified properties. * @function create - * @memberof BI.VaultInvoice + * @memberof BI.SubscriptionEnterprisePricingResponse * @static - * @param {BI.IVaultInvoice=} [properties] Properties to set - * @returns {BI.VaultInvoice} VaultInvoice instance + * @param {BI.ISubscriptionEnterprisePricingResponse=} [properties] Properties to set + * @returns {BI.SubscriptionEnterprisePricingResponse} SubscriptionEnterprisePricingResponse instance */ - VaultInvoice.create = function create(properties) { - return new VaultInvoice(properties); + SubscriptionEnterprisePricingResponse.create = function create(properties) { + return new SubscriptionEnterprisePricingResponse(properties); }; /** - * Encodes the specified VaultInvoice message. Does not implicitly {@link BI.VaultInvoice.verify|verify} messages. + * Encodes the specified SubscriptionEnterprisePricingResponse message. Does not implicitly {@link BI.SubscriptionEnterprisePricingResponse.verify|verify} messages. * @function encode - * @memberof BI.VaultInvoice + * @memberof BI.SubscriptionEnterprisePricingResponse * @static - * @param {BI.IVaultInvoice} message VaultInvoice message or plain object to encode + * @param {BI.ISubscriptionEnterprisePricingResponse} message SubscriptionEnterprisePricingResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VaultInvoice.encode = function encode(message, writer) { + SubscriptionEnterprisePricingResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); - if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.invoiceNumber); - if (message.dateCreated != null && Object.hasOwnProperty.call(message, "dateCreated")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.dateCreated); - if (message.total != null && Object.hasOwnProperty.call(message, "total")) - $root.BI.Invoice.Cost.encode(message.total, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.purchaseType != null && Object.hasOwnProperty.call(message, "purchaseType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.purchaseType); + if (message.basePlans != null && message.basePlans.length) + for (let i = 0; i < message.basePlans.length; ++i) + $root.BI.EnterpriseBasePlan.encode(message.basePlans[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.addons != null && message.addons.length) + for (let i = 0; i < message.addons.length; ++i) + $root.BI.Addon.encode(message.addons[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.filePlans != null && message.filePlans.length) + for (let i = 0; i < message.filePlans.length; ++i) + $root.BI.FilePlan.encode(message.filePlans[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified VaultInvoice message, length delimited. Does not implicitly {@link BI.VaultInvoice.verify|verify} messages. + * Encodes the specified SubscriptionEnterprisePricingResponse message, length delimited. Does not implicitly {@link BI.SubscriptionEnterprisePricingResponse.verify|verify} messages. * @function encodeDelimited - * @memberof BI.VaultInvoice + * @memberof BI.SubscriptionEnterprisePricingResponse * @static - * @param {BI.IVaultInvoice} message VaultInvoice message or plain object to encode + * @param {BI.ISubscriptionEnterprisePricingResponse} message SubscriptionEnterprisePricingResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VaultInvoice.encodeDelimited = function encodeDelimited(message, writer) { + SubscriptionEnterprisePricingResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VaultInvoice message from the specified reader or buffer. + * Decodes a SubscriptionEnterprisePricingResponse message from the specified reader or buffer. * @function decode - * @memberof BI.VaultInvoice + * @memberof BI.SubscriptionEnterprisePricingResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.VaultInvoice} VaultInvoice + * @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 */ - VaultInvoice.decode = function decode(reader, length) { + SubscriptionEnterprisePricingResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.VaultInvoice(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionEnterprisePricingResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.id = reader.int32(); + if (!(message.basePlans && message.basePlans.length)) + message.basePlans = []; + message.basePlans.push($root.BI.EnterpriseBasePlan.decode(reader, reader.uint32())); break; } case 2: { - message.invoiceNumber = reader.string(); + if (!(message.addons && message.addons.length)) + message.addons = []; + message.addons.push($root.BI.Addon.decode(reader, reader.uint32())); break; } case 3: { - message.dateCreated = reader.int64(); - break; - } - case 4: { - message.total = $root.BI.Invoice.Cost.decode(reader, reader.uint32()); - break; - } - case 5: { - message.purchaseType = reader.int32(); + if (!(message.filePlans && message.filePlans.length)) + message.filePlans = []; + message.filePlans.push($root.BI.FilePlan.decode(reader, reader.uint32())); break; } default: @@ -230863,218 +259765,219 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a VaultInvoice message from the specified reader or buffer, length delimited. + * Decodes a SubscriptionEnterprisePricingResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.VaultInvoice + * @memberof BI.SubscriptionEnterprisePricingResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.VaultInvoice} VaultInvoice + * @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 */ - VaultInvoice.decodeDelimited = function decodeDelimited(reader) { + SubscriptionEnterprisePricingResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VaultInvoice message. + * Verifies a SubscriptionEnterprisePricingResponse message. * @function verify - * @memberof BI.VaultInvoice + * @memberof BI.SubscriptionEnterprisePricingResponse * @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) { + SubscriptionEnterprisePricingResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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); - if (error) - return "total." + error; + 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]); + if (error) + return "basePlans." + 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; + 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]); + 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]); + if (error) + return "filePlans." + error; } + } return null; }; /** - * Creates a VaultInvoice message from a plain object. Also converts values to their respective internal types. + * Creates a SubscriptionEnterprisePricingResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.VaultInvoice + * @memberof BI.SubscriptionEnterprisePricingResponse * @static * @param {Object.} object Plain object - * @returns {BI.VaultInvoice} VaultInvoice + * @returns {BI.SubscriptionEnterprisePricingResponse} SubscriptionEnterprisePricingResponse */ - VaultInvoice.fromObject = function fromObject(object) { - if (object instanceof $root.BI.VaultInvoice) + SubscriptionEnterprisePricingResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SubscriptionEnterprisePricingResponse) return object; - let message = new $root.BI.VaultInvoice(); - if (object.id != null) - message.id = object.id | 0; - if (object.invoiceNumber != null) - message.invoiceNumber = String(object.invoiceNumber); - if (object.dateCreated != null) - if ($util.Long) - (message.dateCreated = $util.Long.fromValue(object.dateCreated)).unsigned = false; - else if (typeof object.dateCreated === "string") - message.dateCreated = parseInt(object.dateCreated, 10); - else if (typeof object.dateCreated === "number") - message.dateCreated = object.dateCreated; - 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") - throw TypeError(".BI.VaultInvoice.total: object expected"); - message.total = $root.BI.Invoice.Cost.fromObject(object.total); + let message = new $root.BI.SubscriptionEnterprisePricingResponse(); + if (object.basePlans) { + if (!Array.isArray(object.basePlans)) + throw TypeError(".BI.SubscriptionEnterprisePricingResponse.basePlans: array expected"); + message.basePlans = []; + for (let i = 0; i < object.basePlans.length; ++i) { + if (typeof object.basePlans[i] !== "object") + throw TypeError(".BI.SubscriptionEnterprisePricingResponse.basePlans: object expected"); + message.basePlans[i] = $root.BI.EnterpriseBasePlan.fromObject(object.basePlans[i]); + } } - switch (object.purchaseType) { - default: - if (typeof object.purchaseType === "number") { - message.purchaseType = object.purchaseType; - break; + if (object.addons) { + if (!Array.isArray(object.addons)) + throw TypeError(".BI.SubscriptionEnterprisePricingResponse.addons: array expected"); + message.addons = []; + for (let i = 0; i < object.addons.length; ++i) { + if (typeof object.addons[i] !== "object") + throw TypeError(".BI.SubscriptionEnterprisePricingResponse.addons: object expected"); + message.addons[i] = $root.BI.Addon.fromObject(object.addons[i]); + } + } + if (object.filePlans) { + if (!Array.isArray(object.filePlans)) + throw TypeError(".BI.SubscriptionEnterprisePricingResponse.filePlans: array expected"); + message.filePlans = []; + for (let i = 0; i < object.filePlans.length; ++i) { + if (typeof object.filePlans[i] !== "object") + throw TypeError(".BI.SubscriptionEnterprisePricingResponse.filePlans: object expected"); + message.filePlans[i] = $root.BI.FilePlan.fromObject(object.filePlans[i]); } - break; - case "UNKNOWN": - case 0: - message.purchaseType = 0; - break; - case "NEW": - case 1: - message.purchaseType = 1; - break; - case "RENEWAL": - case 2: - message.purchaseType = 2; - break; - case "UPGRADE": - case 3: - message.purchaseType = 3; - break; - case "RESTORE": - case 4: - message.purchaseType = 4; - break; - case "ASSOCIATION": - case 5: - message.purchaseType = 5; - break; - case "OVERAGE": - case 6: - message.purchaseType = 6; - break; } return message; }; /** - * Creates a plain object from a VaultInvoice message. Also converts values to other types if specified. + * Creates a plain object from a SubscriptionEnterprisePricingResponse message. Also converts values to other types if specified. * @function toObject - * @memberof BI.VaultInvoice + * @memberof BI.SubscriptionEnterprisePricingResponse * @static - * @param {BI.VaultInvoice} message VaultInvoice + * @param {BI.SubscriptionEnterprisePricingResponse} message SubscriptionEnterprisePricingResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VaultInvoice.toObject = function toObject(message, options) { + SubscriptionEnterprisePricingResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.id = 0; - object.invoiceNumber = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.dateCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.dateCreated = options.longs === String ? "0" : 0; - object.total = null; - object.purchaseType = options.enums === String ? "UNKNOWN" : 0; + if (options.arrays || options.defaults) { + object.basePlans = []; + object.addons = []; + object.filePlans = []; + } + if (message.basePlans && message.basePlans.length) { + object.basePlans = []; + for (let j = 0; j < message.basePlans.length; ++j) + object.basePlans[j] = $root.BI.EnterpriseBasePlan.toObject(message.basePlans[j], options); + } + if (message.addons && message.addons.length) { + object.addons = []; + for (let j = 0; j < message.addons.length; ++j) + object.addons[j] = $root.BI.Addon.toObject(message.addons[j], options); + } + if (message.filePlans && message.filePlans.length) { + object.filePlans = []; + for (let j = 0; j < message.filePlans.length; ++j) + object.filePlans[j] = $root.BI.FilePlan.toObject(message.filePlans[j], options); } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) - object.invoiceNumber = message.invoiceNumber; - if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) - if (typeof message.dateCreated === "number") - object.dateCreated = options.longs === String ? String(message.dateCreated) : message.dateCreated; - else - object.dateCreated = options.longs === String ? $util.Long.prototype.toString.call(message.dateCreated) : options.longs === Number ? new $util.LongBits(message.dateCreated.low >>> 0, message.dateCreated.high >>> 0).toNumber() : message.dateCreated; - if (message.total != null && message.hasOwnProperty("total")) - object.total = $root.BI.Invoice.Cost.toObject(message.total, options); - if (message.purchaseType != null && message.hasOwnProperty("purchaseType")) - object.purchaseType = options.enums === String ? $root.BI.Invoice.Type[message.purchaseType] === undefined ? message.purchaseType : $root.BI.Invoice.Type[message.purchaseType] : message.purchaseType; return object; }; /** - * Converts this VaultInvoice to JSON. + * Converts this SubscriptionEnterprisePricingResponse to JSON. * @function toJSON - * @memberof BI.VaultInvoice + * @memberof BI.SubscriptionEnterprisePricingResponse * @instance * @returns {Object.} JSON object */ - VaultInvoice.prototype.toJSON = function toJSON() { + SubscriptionEnterprisePricingResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VaultInvoice + * Gets the default type url for SubscriptionEnterprisePricingResponse * @function getTypeUrl - * @memberof BI.VaultInvoice + * @memberof BI.SubscriptionEnterprisePricingResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VaultInvoice.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SubscriptionEnterprisePricingResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.VaultInvoice"; + return typeUrlPrefix + "/BI.SubscriptionEnterprisePricingResponse"; }; - return VaultInvoice; + return SubscriptionEnterprisePricingResponse; })(); - BI.InvoiceDownloadRequest = (function() { + /** + * IdentifierType enum. + * @name BI.IdentifierType + * @enum {number} + * @property {number} UNKNOWN_IDENTIFIER_TYPE=0 UNKNOWN_IDENTIFIER_TYPE value + * @property {number} IOS_ID=1 IOS_ID value + * @property {number} ANDROID_GOOGLE_PLAY_ID=2 ANDROID_GOOGLE_PLAY_ID value + * @property {number} ANDROID_APP_SET_ID=3 ANDROID_APP_SET_ID value + * @property {number} ANDROID_ID=4 ANDROID_ID value + * @property {number} AMAZON_ADVERTISING_ID=5 AMAZON_ADVERTISING_ID value + * @property {number} OPEN_ADVERTISING_ID=6 OPEN_ADVERTISING_ID value + * @property {number} SINGULAR_DEVICE_ID=7 SINGULAR_DEVICE_ID value + * @property {number} CLIENT_DEFINED_ID=8 CLIENT_DEFINED_ID value + */ + BI.IdentifierType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN_IDENTIFIER_TYPE"] = 0; + values[valuesById[1] = "IOS_ID"] = 1; + values[valuesById[2] = "ANDROID_GOOGLE_PLAY_ID"] = 2; + values[valuesById[3] = "ANDROID_APP_SET_ID"] = 3; + values[valuesById[4] = "ANDROID_ID"] = 4; + values[valuesById[5] = "AMAZON_ADVERTISING_ID"] = 5; + values[valuesById[6] = "OPEN_ADVERTISING_ID"] = 6; + values[valuesById[7] = "SINGULAR_DEVICE_ID"] = 7; + values[valuesById[8] = "CLIENT_DEFINED_ID"] = 8; + return values; + })(); + + BI.SingularDeviceIdentifier = (function() { /** - * Properties of an InvoiceDownloadRequest. + * Properties of a SingularDeviceIdentifier. * @memberof BI - * @interface IInvoiceDownloadRequest - * @property {string|null} [invoiceNumber] InvoiceDownloadRequest invoiceNumber + * @interface ISingularDeviceIdentifier + * @property {string|null} [id] SingularDeviceIdentifier id + * @property {BI.IdentifierType|null} [idType] SingularDeviceIdentifier idType */ /** - * Constructs a new InvoiceDownloadRequest. + * Constructs a new SingularDeviceIdentifier. * @memberof BI - * @classdesc Represents an InvoiceDownloadRequest. - * @implements IInvoiceDownloadRequest + * @classdesc Represents a SingularDeviceIdentifier. + * @implements ISingularDeviceIdentifier * @constructor - * @param {BI.IInvoiceDownloadRequest=} [properties] Properties to set + * @param {BI.ISingularDeviceIdentifier=} [properties] Properties to set */ - function InvoiceDownloadRequest(properties) { + function SingularDeviceIdentifier(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -231082,75 +259985,89 @@ export const BI = $root.BI = (() => { } /** - * InvoiceDownloadRequest invoiceNumber. - * @member {string} invoiceNumber - * @memberof BI.InvoiceDownloadRequest + * SingularDeviceIdentifier id. + * @member {string} id + * @memberof BI.SingularDeviceIdentifier * @instance */ - InvoiceDownloadRequest.prototype.invoiceNumber = ""; + SingularDeviceIdentifier.prototype.id = ""; /** - * Creates a new InvoiceDownloadRequest instance using the specified properties. + * SingularDeviceIdentifier idType. + * @member {BI.IdentifierType} idType + * @memberof BI.SingularDeviceIdentifier + * @instance + */ + SingularDeviceIdentifier.prototype.idType = 0; + + /** + * Creates a new SingularDeviceIdentifier instance using the specified properties. * @function create - * @memberof BI.InvoiceDownloadRequest + * @memberof BI.SingularDeviceIdentifier * @static - * @param {BI.IInvoiceDownloadRequest=} [properties] Properties to set - * @returns {BI.InvoiceDownloadRequest} InvoiceDownloadRequest instance + * @param {BI.ISingularDeviceIdentifier=} [properties] Properties to set + * @returns {BI.SingularDeviceIdentifier} SingularDeviceIdentifier instance */ - InvoiceDownloadRequest.create = function create(properties) { - return new InvoiceDownloadRequest(properties); + SingularDeviceIdentifier.create = function create(properties) { + return new SingularDeviceIdentifier(properties); }; /** - * Encodes the specified InvoiceDownloadRequest message. Does not implicitly {@link BI.InvoiceDownloadRequest.verify|verify} messages. + * Encodes the specified SingularDeviceIdentifier message. Does not implicitly {@link BI.SingularDeviceIdentifier.verify|verify} messages. * @function encode - * @memberof BI.InvoiceDownloadRequest + * @memberof BI.SingularDeviceIdentifier * @static - * @param {BI.IInvoiceDownloadRequest} message InvoiceDownloadRequest message or plain object to encode + * @param {BI.ISingularDeviceIdentifier} message SingularDeviceIdentifier message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InvoiceDownloadRequest.encode = function encode(message, writer) { + SingularDeviceIdentifier.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.invoiceNumber); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.idType != null && Object.hasOwnProperty.call(message, "idType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.idType); return writer; }; /** - * Encodes the specified InvoiceDownloadRequest message, length delimited. Does not implicitly {@link BI.InvoiceDownloadRequest.verify|verify} messages. + * Encodes the specified SingularDeviceIdentifier message, length delimited. Does not implicitly {@link BI.SingularDeviceIdentifier.verify|verify} messages. * @function encodeDelimited - * @memberof BI.InvoiceDownloadRequest + * @memberof BI.SingularDeviceIdentifier * @static - * @param {BI.IInvoiceDownloadRequest} message InvoiceDownloadRequest message or plain object to encode + * @param {BI.ISingularDeviceIdentifier} message SingularDeviceIdentifier message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InvoiceDownloadRequest.encodeDelimited = function encodeDelimited(message, writer) { + SingularDeviceIdentifier.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InvoiceDownloadRequest message from the specified reader or buffer. + * Decodes a SingularDeviceIdentifier message from the specified reader or buffer. * @function decode - * @memberof BI.InvoiceDownloadRequest + * @memberof BI.SingularDeviceIdentifier * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.InvoiceDownloadRequest} InvoiceDownloadRequest + * @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 */ - InvoiceDownloadRequest.decode = function decode(reader, length) { + SingularDeviceIdentifier.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.InvoiceDownloadRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SingularDeviceIdentifier(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.invoiceNumber = reader.string(); + message.id = reader.string(); + break; + } + case 2: { + message.idType = reader.int32(); break; } default: @@ -231162,123 +260079,192 @@ export const BI = $root.BI = (() => { }; /** - * Decodes an InvoiceDownloadRequest message from the specified reader or buffer, length delimited. + * Decodes a SingularDeviceIdentifier message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.InvoiceDownloadRequest + * @memberof BI.SingularDeviceIdentifier * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.InvoiceDownloadRequest} InvoiceDownloadRequest + * @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 */ - InvoiceDownloadRequest.decodeDelimited = function decodeDelimited(reader) { + SingularDeviceIdentifier.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InvoiceDownloadRequest message. + * Verifies a SingularDeviceIdentifier message. * @function verify - * @memberof BI.InvoiceDownloadRequest + * @memberof BI.SingularDeviceIdentifier * @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) { + SingularDeviceIdentifier.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) - if (!$util.isString(message.invoiceNumber)) - return "invoiceNumber: string expected"; + 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 an InvoiceDownloadRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SingularDeviceIdentifier message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.InvoiceDownloadRequest + * @memberof BI.SingularDeviceIdentifier * @static * @param {Object.} object Plain object - * @returns {BI.InvoiceDownloadRequest} InvoiceDownloadRequest + * @returns {BI.SingularDeviceIdentifier} SingularDeviceIdentifier */ - InvoiceDownloadRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.InvoiceDownloadRequest) + SingularDeviceIdentifier.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SingularDeviceIdentifier) return object; - let message = new $root.BI.InvoiceDownloadRequest(); - if (object.invoiceNumber != null) - message.invoiceNumber = String(object.invoiceNumber); + let message = new $root.BI.SingularDeviceIdentifier(); + if (object.id != null) + message.id = String(object.id); + switch (object.idType) { + default: + if (typeof object.idType === "number") { + message.idType = object.idType; + break; + } + break; + case "UNKNOWN_IDENTIFIER_TYPE": + case 0: + message.idType = 0; + break; + case "IOS_ID": + case 1: + message.idType = 1; + break; + case "ANDROID_GOOGLE_PLAY_ID": + case 2: + message.idType = 2; + break; + case "ANDROID_APP_SET_ID": + case 3: + message.idType = 3; + break; + case "ANDROID_ID": + case 4: + message.idType = 4; + break; + case "AMAZON_ADVERTISING_ID": + case 5: + message.idType = 5; + break; + case "OPEN_ADVERTISING_ID": + case 6: + message.idType = 6; + break; + case "SINGULAR_DEVICE_ID": + case 7: + message.idType = 7; + break; + case "CLIENT_DEFINED_ID": + case 8: + message.idType = 8; + break; + } return message; }; /** - * Creates a plain object from an InvoiceDownloadRequest message. Also converts values to other types if specified. + * Creates a plain object from a SingularDeviceIdentifier message. Also converts values to other types if specified. * @function toObject - * @memberof BI.InvoiceDownloadRequest + * @memberof BI.SingularDeviceIdentifier * @static - * @param {BI.InvoiceDownloadRequest} message InvoiceDownloadRequest + * @param {BI.SingularDeviceIdentifier} message SingularDeviceIdentifier * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InvoiceDownloadRequest.toObject = function toObject(message, options) { + SingularDeviceIdentifier.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.invoiceNumber = ""; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) - object.invoiceNumber = message.invoiceNumber; + if (options.defaults) { + object.id = ""; + object.idType = options.enums === String ? "UNKNOWN_IDENTIFIER_TYPE" : 0; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.idType != null && message.hasOwnProperty("idType")) + object.idType = options.enums === String ? $root.BI.IdentifierType[message.idType] === undefined ? message.idType : $root.BI.IdentifierType[message.idType] : message.idType; return object; }; /** - * Converts this InvoiceDownloadRequest to JSON. + * Converts this SingularDeviceIdentifier to JSON. * @function toJSON - * @memberof BI.InvoiceDownloadRequest + * @memberof BI.SingularDeviceIdentifier * @instance * @returns {Object.} JSON object */ - InvoiceDownloadRequest.prototype.toJSON = function toJSON() { + SingularDeviceIdentifier.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InvoiceDownloadRequest + * Gets the default type url for SingularDeviceIdentifier * @function getTypeUrl - * @memberof BI.InvoiceDownloadRequest + * @memberof BI.SingularDeviceIdentifier * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InvoiceDownloadRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SingularDeviceIdentifier.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.InvoiceDownloadRequest"; + return typeUrlPrefix + "/BI.SingularDeviceIdentifier"; }; - return InvoiceDownloadRequest; + return SingularDeviceIdentifier; })(); - BI.InvoiceDownloadResponse = (function() { + BI.SingularSharedData = (function() { /** - * Properties of an InvoiceDownloadResponse. + * Properties of a SingularSharedData. * @memberof BI - * @interface IInvoiceDownloadResponse - * @property {string|null} [link] InvoiceDownloadResponse link - * @property {string|null} [fileName] InvoiceDownloadResponse fileName + * @interface ISingularSharedData + * @property {string|null} [platform] SingularSharedData platform + * @property {string|null} [osVersion] SingularSharedData osVersion + * @property {string|null} [make] SingularSharedData make + * @property {string|null} [model] SingularSharedData model + * @property {string|null} [locale] SingularSharedData locale + * @property {string|null} [build] SingularSharedData build + * @property {string|null} [appIdentifier] SingularSharedData appIdentifier + * @property {number|null} [attAuthorizationStatus] SingularSharedData attAuthorizationStatus */ /** - * Constructs a new InvoiceDownloadResponse. + * Constructs a new SingularSharedData. * @memberof BI - * @classdesc Represents an InvoiceDownloadResponse. - * @implements IInvoiceDownloadResponse + * @classdesc Represents a SingularSharedData. + * @implements ISingularSharedData * @constructor - * @param {BI.IInvoiceDownloadResponse=} [properties] Properties to set + * @param {BI.ISingularSharedData=} [properties] Properties to set */ - function InvoiceDownloadResponse(properties) { + function SingularSharedData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -231286,89 +260272,173 @@ export const BI = $root.BI = (() => { } /** - * InvoiceDownloadResponse link. - * @member {string} link - * @memberof BI.InvoiceDownloadResponse + * SingularSharedData platform. + * @member {string} platform + * @memberof BI.SingularSharedData * @instance */ - InvoiceDownloadResponse.prototype.link = ""; + SingularSharedData.prototype.platform = ""; /** - * InvoiceDownloadResponse fileName. - * @member {string} fileName - * @memberof BI.InvoiceDownloadResponse + * SingularSharedData osVersion. + * @member {string} osVersion + * @memberof BI.SingularSharedData * @instance */ - InvoiceDownloadResponse.prototype.fileName = ""; + SingularSharedData.prototype.osVersion = ""; /** - * Creates a new InvoiceDownloadResponse instance using the specified properties. + * SingularSharedData make. + * @member {string} make + * @memberof BI.SingularSharedData + * @instance + */ + SingularSharedData.prototype.make = ""; + + /** + * SingularSharedData model. + * @member {string} model + * @memberof BI.SingularSharedData + * @instance + */ + SingularSharedData.prototype.model = ""; + + /** + * SingularSharedData locale. + * @member {string} locale + * @memberof BI.SingularSharedData + * @instance + */ + SingularSharedData.prototype.locale = ""; + + /** + * SingularSharedData build. + * @member {string} build + * @memberof BI.SingularSharedData + * @instance + */ + SingularSharedData.prototype.build = ""; + + /** + * SingularSharedData appIdentifier. + * @member {string} appIdentifier + * @memberof BI.SingularSharedData + * @instance + */ + SingularSharedData.prototype.appIdentifier = ""; + + /** + * SingularSharedData attAuthorizationStatus. + * @member {number} attAuthorizationStatus + * @memberof BI.SingularSharedData + * @instance + */ + SingularSharedData.prototype.attAuthorizationStatus = 0; + + /** + * Creates a new SingularSharedData instance using the specified properties. * @function create - * @memberof BI.InvoiceDownloadResponse + * @memberof BI.SingularSharedData * @static - * @param {BI.IInvoiceDownloadResponse=} [properties] Properties to set - * @returns {BI.InvoiceDownloadResponse} InvoiceDownloadResponse instance + * @param {BI.ISingularSharedData=} [properties] Properties to set + * @returns {BI.SingularSharedData} SingularSharedData instance */ - InvoiceDownloadResponse.create = function create(properties) { - return new InvoiceDownloadResponse(properties); + SingularSharedData.create = function create(properties) { + return new SingularSharedData(properties); }; /** - * Encodes the specified InvoiceDownloadResponse message. Does not implicitly {@link BI.InvoiceDownloadResponse.verify|verify} messages. + * Encodes the specified SingularSharedData message. Does not implicitly {@link BI.SingularSharedData.verify|verify} messages. * @function encode - * @memberof BI.InvoiceDownloadResponse + * @memberof BI.SingularSharedData * @static - * @param {BI.IInvoiceDownloadResponse} message InvoiceDownloadResponse message or plain object to encode + * @param {BI.ISingularSharedData} message SingularSharedData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InvoiceDownloadResponse.encode = function encode(message, writer) { + SingularSharedData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.link != null && Object.hasOwnProperty.call(message, "link")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.link); - if (message.fileName != null && Object.hasOwnProperty.call(message, "fileName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.fileName); + if (message.platform != null && Object.hasOwnProperty.call(message, "platform")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.platform); + if (message.osVersion != null && Object.hasOwnProperty.call(message, "osVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.osVersion); + if (message.make != null && Object.hasOwnProperty.call(message, "make")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.make); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.model); + if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.locale); + if (message.build != null && Object.hasOwnProperty.call(message, "build")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.build); + if (message.appIdentifier != null && Object.hasOwnProperty.call(message, "appIdentifier")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.appIdentifier); + if (message.attAuthorizationStatus != null && Object.hasOwnProperty.call(message, "attAuthorizationStatus")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.attAuthorizationStatus); return writer; }; /** - * Encodes the specified InvoiceDownloadResponse message, length delimited. Does not implicitly {@link BI.InvoiceDownloadResponse.verify|verify} messages. + * Encodes the specified SingularSharedData message, length delimited. Does not implicitly {@link BI.SingularSharedData.verify|verify} messages. * @function encodeDelimited - * @memberof BI.InvoiceDownloadResponse + * @memberof BI.SingularSharedData * @static - * @param {BI.IInvoiceDownloadResponse} message InvoiceDownloadResponse message or plain object to encode + * @param {BI.ISingularSharedData} message SingularSharedData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InvoiceDownloadResponse.encodeDelimited = function encodeDelimited(message, writer) { + SingularSharedData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InvoiceDownloadResponse message from the specified reader or buffer. + * Decodes a SingularSharedData message from the specified reader or buffer. * @function decode - * @memberof BI.InvoiceDownloadResponse + * @memberof BI.SingularSharedData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.InvoiceDownloadResponse} InvoiceDownloadResponse + * @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 */ - InvoiceDownloadResponse.decode = function decode(reader, length) { + SingularSharedData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.InvoiceDownloadResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SingularSharedData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.link = reader.string(); + message.platform = reader.string(); break; } case 2: { - message.fileName = reader.string(); + message.osVersion = reader.string(); + break; + } + case 3: { + message.make = reader.string(); + break; + } + case 4: { + message.model = reader.string(); + break; + } + case 5: { + message.locale = reader.string(); + break; + } + case 6: { + message.build = reader.string(); + break; + } + case 7: { + message.appIdentifier = reader.string(); + break; + } + case 8: { + message.attAuthorizationStatus = reader.int32(); break; } default: @@ -231380,131 +260450,193 @@ export const BI = $root.BI = (() => { }; /** - * Decodes an InvoiceDownloadResponse message from the specified reader or buffer, length delimited. + * Decodes a SingularSharedData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.InvoiceDownloadResponse + * @memberof BI.SingularSharedData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.InvoiceDownloadResponse} InvoiceDownloadResponse + * @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 */ - InvoiceDownloadResponse.decodeDelimited = function decodeDelimited(reader) { + SingularSharedData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InvoiceDownloadResponse message. + * Verifies a SingularSharedData message. * @function verify - * @memberof BI.InvoiceDownloadResponse + * @memberof BI.SingularSharedData * @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) { + SingularSharedData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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 an InvoiceDownloadResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SingularSharedData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.InvoiceDownloadResponse + * @memberof BI.SingularSharedData * @static * @param {Object.} object Plain object - * @returns {BI.InvoiceDownloadResponse} InvoiceDownloadResponse + * @returns {BI.SingularSharedData} SingularSharedData */ - InvoiceDownloadResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.InvoiceDownloadResponse) + SingularSharedData.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SingularSharedData) return object; - let message = new $root.BI.InvoiceDownloadResponse(); - if (object.link != null) - message.link = String(object.link); - if (object.fileName != null) - message.fileName = String(object.fileName); + let message = new $root.BI.SingularSharedData(); + if (object.platform != null) + message.platform = String(object.platform); + if (object.osVersion != null) + message.osVersion = String(object.osVersion); + if (object.make != null) + message.make = String(object.make); + if (object.model != null) + message.model = String(object.model); + if (object.locale != null) + message.locale = String(object.locale); + if (object.build != null) + message.build = String(object.build); + if (object.appIdentifier != null) + message.appIdentifier = String(object.appIdentifier); + if (object.attAuthorizationStatus != null) + message.attAuthorizationStatus = object.attAuthorizationStatus | 0; return message; }; /** - * Creates a plain object from an InvoiceDownloadResponse message. Also converts values to other types if specified. + * Creates a plain object from a SingularSharedData message. Also converts values to other types if specified. * @function toObject - * @memberof BI.InvoiceDownloadResponse + * @memberof BI.SingularSharedData * @static - * @param {BI.InvoiceDownloadResponse} message InvoiceDownloadResponse + * @param {BI.SingularSharedData} message SingularSharedData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InvoiceDownloadResponse.toObject = function toObject(message, options) { + SingularSharedData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.link = ""; - object.fileName = ""; + object.platform = ""; + object.osVersion = ""; + object.make = ""; + object.model = ""; + object.locale = ""; + object.build = ""; + object.appIdentifier = ""; + object.attAuthorizationStatus = 0; } - if (message.link != null && message.hasOwnProperty("link")) - object.link = message.link; - if (message.fileName != null && message.hasOwnProperty("fileName")) - object.fileName = message.fileName; + if (message.platform != null && message.hasOwnProperty("platform")) + object.platform = message.platform; + if (message.osVersion != null && message.hasOwnProperty("osVersion")) + object.osVersion = message.osVersion; + if (message.make != null && message.hasOwnProperty("make")) + object.make = message.make; + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.locale != null && message.hasOwnProperty("locale")) + object.locale = message.locale; + if (message.build != null && message.hasOwnProperty("build")) + object.build = message.build; + if (message.appIdentifier != null && message.hasOwnProperty("appIdentifier")) + object.appIdentifier = message.appIdentifier; + if (message.attAuthorizationStatus != null && message.hasOwnProperty("attAuthorizationStatus")) + object.attAuthorizationStatus = message.attAuthorizationStatus; return object; }; /** - * Converts this InvoiceDownloadResponse to JSON. + * Converts this SingularSharedData to JSON. * @function toJSON - * @memberof BI.InvoiceDownloadResponse + * @memberof BI.SingularSharedData * @instance * @returns {Object.} JSON object */ - InvoiceDownloadResponse.prototype.toJSON = function toJSON() { + SingularSharedData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InvoiceDownloadResponse + * Gets the default type url for SingularSharedData * @function getTypeUrl - * @memberof BI.InvoiceDownloadResponse + * @memberof BI.SingularSharedData * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InvoiceDownloadResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SingularSharedData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.InvoiceDownloadResponse"; + return typeUrlPrefix + "/BI.SingularSharedData"; }; - return InvoiceDownloadResponse; + return SingularSharedData; })(); - BI.VaultInvoiceDownloadLinkRequest = (function() { + BI.SingularSessionRequest = (function() { /** - * Properties of a VaultInvoiceDownloadLinkRequest. + * Properties of a SingularSessionRequest. * @memberof BI - * @interface IVaultInvoiceDownloadLinkRequest - * @property {string|null} [invoiceNumber] VaultInvoiceDownloadLinkRequest invoiceNumber + * @interface ISingularSessionRequest + * @property {Array.|null} [deviceIdentifiers] SingularSessionRequest deviceIdentifiers + * @property {BI.ISingularSharedData|null} [sharedData] SingularSessionRequest sharedData + * @property {string|null} [applicationVersion] SingularSessionRequest applicationVersion + * @property {boolean|null} [install] SingularSessionRequest install + * @property {number|Long|null} [installTime] SingularSessionRequest installTime + * @property {number|Long|null} [updateTime] SingularSessionRequest updateTime + * @property {string|null} [installSource] SingularSessionRequest installSource + * @property {string|null} [installReceipt] SingularSessionRequest installReceipt + * @property {string|null} [openuri] SingularSessionRequest openuri + * @property {boolean|null} [ddlEnabled] SingularSessionRequest ddlEnabled + * @property {boolean|null} [singularLinkResolveRequired] SingularSessionRequest singularLinkResolveRequired + * @property {string|null} [installRef] SingularSessionRequest installRef + * @property {string|null} [metaRef] SingularSessionRequest metaRef + * @property {string|null} [attributionToken] SingularSessionRequest attributionToken */ /** - * Constructs a new VaultInvoiceDownloadLinkRequest. + * Constructs a new SingularSessionRequest. * @memberof BI - * @classdesc Represents a VaultInvoiceDownloadLinkRequest. - * @implements IVaultInvoiceDownloadLinkRequest + * @classdesc Represents a SingularSessionRequest. + * @implements ISingularSessionRequest * @constructor - * @param {BI.IVaultInvoiceDownloadLinkRequest=} [properties] Properties to set + * @param {BI.ISingularSessionRequest=} [properties] Properties to set */ - function VaultInvoiceDownloadLinkRequest(properties) { + function SingularSessionRequest(properties) { + this.deviceIdentifiers = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -231512,293 +260644,260 @@ export const BI = $root.BI = (() => { } /** - * VaultInvoiceDownloadLinkRequest invoiceNumber. - * @member {string} invoiceNumber - * @memberof BI.VaultInvoiceDownloadLinkRequest + * SingularSessionRequest deviceIdentifiers. + * @member {Array.} deviceIdentifiers + * @memberof BI.SingularSessionRequest * @instance */ - VaultInvoiceDownloadLinkRequest.prototype.invoiceNumber = ""; - - /** - * Creates a new VaultInvoiceDownloadLinkRequest instance using the specified properties. - * @function create - * @memberof BI.VaultInvoiceDownloadLinkRequest - * @static - * @param {BI.IVaultInvoiceDownloadLinkRequest=} [properties] Properties to set - * @returns {BI.VaultInvoiceDownloadLinkRequest} VaultInvoiceDownloadLinkRequest instance - */ - VaultInvoiceDownloadLinkRequest.create = function create(properties) { - return new VaultInvoiceDownloadLinkRequest(properties); - }; - - /** - * Encodes the specified VaultInvoiceDownloadLinkRequest message. Does not implicitly {@link BI.VaultInvoiceDownloadLinkRequest.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.invoiceNumber); - 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(); - }; + SingularSessionRequest.prototype.deviceIdentifiers = $util.emptyArray; /** - * Decodes a VaultInvoiceDownloadLinkRequest message from the specified reader or buffer. - * @function decode - * @memberof BI.VaultInvoiceDownloadLinkRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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 + * SingularSessionRequest sharedData. + * @member {BI.ISingularSharedData|null|undefined} sharedData + * @memberof BI.SingularSessionRequest + * @instance */ - VaultInvoiceDownloadLinkRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.VaultInvoiceDownloadLinkRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.invoiceNumber = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + SingularSessionRequest.prototype.sharedData = null; /** - * 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 + * SingularSessionRequest applicationVersion. + * @member {string} applicationVersion + * @memberof BI.SingularSessionRequest + * @instance */ - VaultInvoiceDownloadLinkRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + SingularSessionRequest.prototype.applicationVersion = ""; /** - * 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 + * SingularSessionRequest install. + * @member {boolean} install + * @memberof BI.SingularSessionRequest + * @instance */ - VaultInvoiceDownloadLinkRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) - if (!$util.isString(message.invoiceNumber)) - return "invoiceNumber: string expected"; - return null; - }; + SingularSessionRequest.prototype.install = false; /** - * Creates a VaultInvoiceDownloadLinkRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.VaultInvoiceDownloadLinkRequest - * @static - * @param {Object.} object Plain object - * @returns {BI.VaultInvoiceDownloadLinkRequest} VaultInvoiceDownloadLinkRequest + * SingularSessionRequest installTime. + * @member {number|Long} installTime + * @memberof BI.SingularSessionRequest + * @instance */ - VaultInvoiceDownloadLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.VaultInvoiceDownloadLinkRequest) - return object; - let message = new $root.BI.VaultInvoiceDownloadLinkRequest(); - if (object.invoiceNumber != null) - message.invoiceNumber = String(object.invoiceNumber); - return message; - }; + SingularSessionRequest.prototype.installTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a plain object from a VaultInvoiceDownloadLinkRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.VaultInvoiceDownloadLinkRequest - * @static - * @param {BI.VaultInvoiceDownloadLinkRequest} message VaultInvoiceDownloadLinkRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * SingularSessionRequest updateTime. + * @member {number|Long} updateTime + * @memberof BI.SingularSessionRequest + * @instance */ - VaultInvoiceDownloadLinkRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.invoiceNumber = ""; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) - object.invoiceNumber = message.invoiceNumber; - return object; - }; + SingularSessionRequest.prototype.updateTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Converts this VaultInvoiceDownloadLinkRequest to JSON. - * @function toJSON - * @memberof BI.VaultInvoiceDownloadLinkRequest + * SingularSessionRequest installSource. + * @member {string} installSource + * @memberof BI.SingularSessionRequest * @instance - * @returns {Object.} JSON object */ - VaultInvoiceDownloadLinkRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + SingularSessionRequest.prototype.installSource = ""; /** - * Gets the default type url for VaultInvoiceDownloadLinkRequest - * @function getTypeUrl - * @memberof BI.VaultInvoiceDownloadLinkRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * SingularSessionRequest installReceipt. + * @member {string} installReceipt + * @memberof BI.SingularSessionRequest + * @instance */ - VaultInvoiceDownloadLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.VaultInvoiceDownloadLinkRequest"; - }; + SingularSessionRequest.prototype.installReceipt = ""; - return VaultInvoiceDownloadLinkRequest; - })(); + /** + * SingularSessionRequest openuri. + * @member {string} openuri + * @memberof BI.SingularSessionRequest + * @instance + */ + SingularSessionRequest.prototype.openuri = ""; - BI.VaultInvoiceDownloadLinkResponse = (function() { + /** + * SingularSessionRequest ddlEnabled. + * @member {boolean} ddlEnabled + * @memberof BI.SingularSessionRequest + * @instance + */ + SingularSessionRequest.prototype.ddlEnabled = false; /** - * Properties of a VaultInvoiceDownloadLinkResponse. - * @memberof BI - * @interface IVaultInvoiceDownloadLinkResponse - * @property {string|null} [link] VaultInvoiceDownloadLinkResponse link - * @property {string|null} [fileName] VaultInvoiceDownloadLinkResponse fileName + * SingularSessionRequest singularLinkResolveRequired. + * @member {boolean} singularLinkResolveRequired + * @memberof BI.SingularSessionRequest + * @instance */ + SingularSessionRequest.prototype.singularLinkResolveRequired = false; /** - * Constructs a new VaultInvoiceDownloadLinkResponse. - * @memberof BI - * @classdesc Represents a VaultInvoiceDownloadLinkResponse. - * @implements IVaultInvoiceDownloadLinkResponse - * @constructor - * @param {BI.IVaultInvoiceDownloadLinkResponse=} [properties] Properties to set + * SingularSessionRequest installRef. + * @member {string} installRef + * @memberof BI.SingularSessionRequest + * @instance */ - function VaultInvoiceDownloadLinkResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + SingularSessionRequest.prototype.installRef = ""; /** - * VaultInvoiceDownloadLinkResponse link. - * @member {string} link - * @memberof BI.VaultInvoiceDownloadLinkResponse + * SingularSessionRequest metaRef. + * @member {string} metaRef + * @memberof BI.SingularSessionRequest * @instance */ - VaultInvoiceDownloadLinkResponse.prototype.link = ""; + SingularSessionRequest.prototype.metaRef = ""; /** - * VaultInvoiceDownloadLinkResponse fileName. - * @member {string} fileName - * @memberof BI.VaultInvoiceDownloadLinkResponse + * SingularSessionRequest attributionToken. + * @member {string} attributionToken + * @memberof BI.SingularSessionRequest * @instance */ - VaultInvoiceDownloadLinkResponse.prototype.fileName = ""; + SingularSessionRequest.prototype.attributionToken = ""; /** - * Creates a new VaultInvoiceDownloadLinkResponse instance using the specified properties. + * Creates a new SingularSessionRequest instance using the specified properties. * @function create - * @memberof BI.VaultInvoiceDownloadLinkResponse + * @memberof BI.SingularSessionRequest * @static - * @param {BI.IVaultInvoiceDownloadLinkResponse=} [properties] Properties to set - * @returns {BI.VaultInvoiceDownloadLinkResponse} VaultInvoiceDownloadLinkResponse instance + * @param {BI.ISingularSessionRequest=} [properties] Properties to set + * @returns {BI.SingularSessionRequest} SingularSessionRequest instance */ - VaultInvoiceDownloadLinkResponse.create = function create(properties) { - return new VaultInvoiceDownloadLinkResponse(properties); + SingularSessionRequest.create = function create(properties) { + return new SingularSessionRequest(properties); }; /** - * Encodes the specified VaultInvoiceDownloadLinkResponse message. Does not implicitly {@link BI.VaultInvoiceDownloadLinkResponse.verify|verify} messages. + * Encodes the specified SingularSessionRequest message. Does not implicitly {@link BI.SingularSessionRequest.verify|verify} messages. * @function encode - * @memberof BI.VaultInvoiceDownloadLinkResponse + * @memberof BI.SingularSessionRequest * @static - * @param {BI.IVaultInvoiceDownloadLinkResponse} message VaultInvoiceDownloadLinkResponse message or plain object to encode + * @param {BI.ISingularSessionRequest} message SingularSessionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VaultInvoiceDownloadLinkResponse.encode = function encode(message, writer) { + SingularSessionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.link != null && Object.hasOwnProperty.call(message, "link")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.link); - if (message.fileName != null && Object.hasOwnProperty.call(message, "fileName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.fileName); + if (message.deviceIdentifiers != null && message.deviceIdentifiers.length) + for (let i = 0; i < message.deviceIdentifiers.length; ++i) + $root.BI.SingularDeviceIdentifier.encode(message.deviceIdentifiers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.sharedData != null && Object.hasOwnProperty.call(message, "sharedData")) + $root.BI.SingularSharedData.encode(message.sharedData, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.applicationVersion != null && Object.hasOwnProperty.call(message, "applicationVersion")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.applicationVersion); + if (message.install != null && Object.hasOwnProperty.call(message, "install")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.install); + if (message.installTime != null && Object.hasOwnProperty.call(message, "installTime")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.installTime); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.updateTime); + if (message.installSource != null && Object.hasOwnProperty.call(message, "installSource")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.installSource); + if (message.installReceipt != null && Object.hasOwnProperty.call(message, "installReceipt")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.installReceipt); + if (message.openuri != null && Object.hasOwnProperty.call(message, "openuri")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.openuri); + if (message.ddlEnabled != null && Object.hasOwnProperty.call(message, "ddlEnabled")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.ddlEnabled); + if (message.singularLinkResolveRequired != null && Object.hasOwnProperty.call(message, "singularLinkResolveRequired")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.singularLinkResolveRequired); + if (message.installRef != null && Object.hasOwnProperty.call(message, "installRef")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.installRef); + if (message.metaRef != null && Object.hasOwnProperty.call(message, "metaRef")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.metaRef); + if (message.attributionToken != null && Object.hasOwnProperty.call(message, "attributionToken")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.attributionToken); return writer; }; /** - * Encodes the specified VaultInvoiceDownloadLinkResponse message, length delimited. Does not implicitly {@link BI.VaultInvoiceDownloadLinkResponse.verify|verify} messages. + * Encodes the specified SingularSessionRequest message, length delimited. Does not implicitly {@link BI.SingularSessionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof BI.VaultInvoiceDownloadLinkResponse + * @memberof BI.SingularSessionRequest * @static - * @param {BI.IVaultInvoiceDownloadLinkResponse} message VaultInvoiceDownloadLinkResponse message or plain object to encode + * @param {BI.ISingularSessionRequest} message SingularSessionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VaultInvoiceDownloadLinkResponse.encodeDelimited = function encodeDelimited(message, writer) { + SingularSessionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VaultInvoiceDownloadLinkResponse message from the specified reader or buffer. + * Decodes a SingularSessionRequest message from the specified reader or buffer. * @function decode - * @memberof BI.VaultInvoiceDownloadLinkResponse + * @memberof BI.SingularSessionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.VaultInvoiceDownloadLinkResponse} VaultInvoiceDownloadLinkResponse + * @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 */ - VaultInvoiceDownloadLinkResponse.decode = function decode(reader, length) { + SingularSessionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.VaultInvoiceDownloadLinkResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SingularSessionRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.link = reader.string(); + if (!(message.deviceIdentifiers && message.deviceIdentifiers.length)) + message.deviceIdentifiers = []; + message.deviceIdentifiers.push($root.BI.SingularDeviceIdentifier.decode(reader, reader.uint32())); break; } case 2: { - message.fileName = reader.string(); + message.sharedData = $root.BI.SingularSharedData.decode(reader, reader.uint32()); + break; + } + case 3: { + message.applicationVersion = reader.string(); + break; + } + case 4: { + message.install = reader.bool(); + break; + } + case 5: { + message.installTime = reader.int64(); + break; + } + case 6: { + message.updateTime = reader.int64(); + break; + } + case 7: { + message.installSource = reader.string(); + break; + } + case 8: { + message.installReceipt = reader.string(); + break; + } + case 9: { + message.openuri = reader.string(); + break; + } + case 10: { + message.ddlEnabled = reader.bool(); + break; + } + case 11: { + message.singularLinkResolveRequired = reader.bool(); + break; + } + case 12: { + message.installRef = reader.string(); + break; + } + case 13: { + message.metaRef = reader.string(); + break; + } + case 14: { + message.attributionToken = reader.string(); break; } default: @@ -231810,132 +260909,281 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a VaultInvoiceDownloadLinkResponse message from the specified reader or buffer, length delimited. + * Decodes a SingularSessionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.VaultInvoiceDownloadLinkResponse + * @memberof BI.SingularSessionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.VaultInvoiceDownloadLinkResponse} VaultInvoiceDownloadLinkResponse + * @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 */ - VaultInvoiceDownloadLinkResponse.decodeDelimited = function decodeDelimited(reader) { + SingularSessionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VaultInvoiceDownloadLinkResponse message. + * Verifies a SingularSessionRequest message. * @function verify - * @memberof BI.VaultInvoiceDownloadLinkResponse + * @memberof BI.SingularSessionRequest * @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) { + SingularSessionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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]); + if (error) + return "deviceIdentifiers." + error; + } + } + if (message.sharedData != null && message.hasOwnProperty("sharedData")) { + let error = $root.BI.SingularSharedData.verify(message.sharedData); + 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 VaultInvoiceDownloadLinkResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SingularSessionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.VaultInvoiceDownloadLinkResponse + * @memberof BI.SingularSessionRequest * @static * @param {Object.} object Plain object - * @returns {BI.VaultInvoiceDownloadLinkResponse} VaultInvoiceDownloadLinkResponse + * @returns {BI.SingularSessionRequest} SingularSessionRequest */ - VaultInvoiceDownloadLinkResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.VaultInvoiceDownloadLinkResponse) + SingularSessionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SingularSessionRequest) return object; - let message = new $root.BI.VaultInvoiceDownloadLinkResponse(); - if (object.link != null) - message.link = String(object.link); - if (object.fileName != null) - message.fileName = String(object.fileName); + let message = new $root.BI.SingularSessionRequest(); + if (object.deviceIdentifiers) { + if (!Array.isArray(object.deviceIdentifiers)) + throw TypeError(".BI.SingularSessionRequest.deviceIdentifiers: array expected"); + message.deviceIdentifiers = []; + for (let i = 0; i < object.deviceIdentifiers.length; ++i) { + if (typeof object.deviceIdentifiers[i] !== "object") + throw TypeError(".BI.SingularSessionRequest.deviceIdentifiers: object expected"); + message.deviceIdentifiers[i] = $root.BI.SingularDeviceIdentifier.fromObject(object.deviceIdentifiers[i]); + } + } + if (object.sharedData != null) { + if (typeof object.sharedData !== "object") + throw TypeError(".BI.SingularSessionRequest.sharedData: object expected"); + message.sharedData = $root.BI.SingularSharedData.fromObject(object.sharedData); + } + if (object.applicationVersion != null) + message.applicationVersion = String(object.applicationVersion); + if (object.install != null) + message.install = Boolean(object.install); + if (object.installTime != null) + if ($util.Long) + (message.installTime = $util.Long.fromValue(object.installTime)).unsigned = false; + else if (typeof object.installTime === "string") + message.installTime = parseInt(object.installTime, 10); + else if (typeof object.installTime === "number") + message.installTime = object.installTime; + else if (typeof object.installTime === "object") + message.installTime = new $util.LongBits(object.installTime.low >>> 0, object.installTime.high >>> 0).toNumber(); + if (object.updateTime != null) + if ($util.Long) + (message.updateTime = $util.Long.fromValue(object.updateTime)).unsigned = false; + else if (typeof object.updateTime === "string") + message.updateTime = parseInt(object.updateTime, 10); + else if (typeof object.updateTime === "number") + message.updateTime = object.updateTime; + else if (typeof object.updateTime === "object") + message.updateTime = new $util.LongBits(object.updateTime.low >>> 0, object.updateTime.high >>> 0).toNumber(); + if (object.installSource != null) + message.installSource = String(object.installSource); + if (object.installReceipt != null) + message.installReceipt = String(object.installReceipt); + if (object.openuri != null) + message.openuri = String(object.openuri); + if (object.ddlEnabled != null) + message.ddlEnabled = Boolean(object.ddlEnabled); + if (object.singularLinkResolveRequired != null) + message.singularLinkResolveRequired = Boolean(object.singularLinkResolveRequired); + if (object.installRef != null) + message.installRef = String(object.installRef); + if (object.metaRef != null) + message.metaRef = String(object.metaRef); + if (object.attributionToken != null) + message.attributionToken = String(object.attributionToken); return message; }; /** - * Creates a plain object from a VaultInvoiceDownloadLinkResponse message. Also converts values to other types if specified. + * Creates a plain object from a SingularSessionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof BI.VaultInvoiceDownloadLinkResponse + * @memberof BI.SingularSessionRequest * @static - * @param {BI.VaultInvoiceDownloadLinkResponse} message VaultInvoiceDownloadLinkResponse + * @param {BI.SingularSessionRequest} message SingularSessionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VaultInvoiceDownloadLinkResponse.toObject = function toObject(message, options) { + SingularSessionRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.deviceIdentifiers = []; if (options.defaults) { - object.link = ""; - object.fileName = ""; + object.sharedData = null; + object.applicationVersion = ""; + object.install = false; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.installTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.installTime = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.updateTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.updateTime = options.longs === String ? "0" : 0; + object.installSource = ""; + object.installReceipt = ""; + object.openuri = ""; + object.ddlEnabled = false; + object.singularLinkResolveRequired = false; + object.installRef = ""; + object.metaRef = ""; + object.attributionToken = ""; } - if (message.link != null && message.hasOwnProperty("link")) - object.link = message.link; - if (message.fileName != null && message.hasOwnProperty("fileName")) - object.fileName = message.fileName; + if (message.deviceIdentifiers && message.deviceIdentifiers.length) { + object.deviceIdentifiers = []; + for (let j = 0; j < message.deviceIdentifiers.length; ++j) + object.deviceIdentifiers[j] = $root.BI.SingularDeviceIdentifier.toObject(message.deviceIdentifiers[j], options); + } + if (message.sharedData != null && message.hasOwnProperty("sharedData")) + object.sharedData = $root.BI.SingularSharedData.toObject(message.sharedData, options); + if (message.applicationVersion != null && message.hasOwnProperty("applicationVersion")) + object.applicationVersion = message.applicationVersion; + if (message.install != null && message.hasOwnProperty("install")) + object.install = message.install; + if (message.installTime != null && message.hasOwnProperty("installTime")) + if (typeof message.installTime === "number") + object.installTime = options.longs === String ? String(message.installTime) : message.installTime; + else + object.installTime = options.longs === String ? $util.Long.prototype.toString.call(message.installTime) : options.longs === Number ? new $util.LongBits(message.installTime.low >>> 0, message.installTime.high >>> 0).toNumber() : message.installTime; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + if (typeof 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")) + object.installSource = message.installSource; + if (message.installReceipt != null && message.hasOwnProperty("installReceipt")) + object.installReceipt = message.installReceipt; + if (message.openuri != null && message.hasOwnProperty("openuri")) + object.openuri = message.openuri; + if (message.ddlEnabled != null && message.hasOwnProperty("ddlEnabled")) + object.ddlEnabled = message.ddlEnabled; + if (message.singularLinkResolveRequired != null && message.hasOwnProperty("singularLinkResolveRequired")) + object.singularLinkResolveRequired = message.singularLinkResolveRequired; + if (message.installRef != null && message.hasOwnProperty("installRef")) + object.installRef = message.installRef; + if (message.metaRef != null && message.hasOwnProperty("metaRef")) + object.metaRef = message.metaRef; + if (message.attributionToken != null && message.hasOwnProperty("attributionToken")) + object.attributionToken = message.attributionToken; return object; }; /** - * Converts this VaultInvoiceDownloadLinkResponse to JSON. + * Converts this SingularSessionRequest to JSON. * @function toJSON - * @memberof BI.VaultInvoiceDownloadLinkResponse + * @memberof BI.SingularSessionRequest * @instance * @returns {Object.} JSON object */ - VaultInvoiceDownloadLinkResponse.prototype.toJSON = function toJSON() { + SingularSessionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VaultInvoiceDownloadLinkResponse + * Gets the default type url for SingularSessionRequest * @function getTypeUrl - * @memberof BI.VaultInvoiceDownloadLinkResponse + * @memberof BI.SingularSessionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VaultInvoiceDownloadLinkResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SingularSessionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.VaultInvoiceDownloadLinkResponse"; + return typeUrlPrefix + "/BI.SingularSessionRequest"; }; - return VaultInvoiceDownloadLinkResponse; + return SingularSessionRequest; })(); - BI.ReportingDailySnapshotRequest = (function() { + BI.SingularEventRequest = (function() { /** - * Properties of a ReportingDailySnapshotRequest. + * Properties of a SingularEventRequest. * @memberof BI - * @interface IReportingDailySnapshotRequest - * @property {number|null} [month] ReportingDailySnapshotRequest month - * @property {number|null} [year] ReportingDailySnapshotRequest year + * @interface ISingularEventRequest + * @property {Array.|null} [deviceIdentifiers] SingularEventRequest deviceIdentifiers + * @property {BI.ISingularSharedData|null} [sharedData] SingularEventRequest sharedData + * @property {string|null} [eventName] SingularEventRequest eventName */ /** - * Constructs a new ReportingDailySnapshotRequest. + * Constructs a new SingularEventRequest. * @memberof BI - * @classdesc Represents a ReportingDailySnapshotRequest. - * @implements IReportingDailySnapshotRequest + * @classdesc Represents a SingularEventRequest. + * @implements ISingularEventRequest * @constructor - * @param {BI.IReportingDailySnapshotRequest=} [properties] Properties to set + * @param {BI.ISingularEventRequest=} [properties] Properties to set */ - function ReportingDailySnapshotRequest(properties) { + function SingularEventRequest(properties) { + this.deviceIdentifiers = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -231943,89 +261191,106 @@ export const BI = $root.BI = (() => { } /** - * ReportingDailySnapshotRequest month. - * @member {number} month - * @memberof BI.ReportingDailySnapshotRequest + * SingularEventRequest deviceIdentifiers. + * @member {Array.} deviceIdentifiers + * @memberof BI.SingularEventRequest * @instance */ - ReportingDailySnapshotRequest.prototype.month = 0; + SingularEventRequest.prototype.deviceIdentifiers = $util.emptyArray; /** - * ReportingDailySnapshotRequest year. - * @member {number} year - * @memberof BI.ReportingDailySnapshotRequest + * SingularEventRequest sharedData. + * @member {BI.ISingularSharedData|null|undefined} sharedData + * @memberof BI.SingularEventRequest * @instance */ - ReportingDailySnapshotRequest.prototype.year = 0; + SingularEventRequest.prototype.sharedData = null; /** - * Creates a new ReportingDailySnapshotRequest instance using the specified properties. + * SingularEventRequest eventName. + * @member {string} eventName + * @memberof BI.SingularEventRequest + * @instance + */ + SingularEventRequest.prototype.eventName = ""; + + /** + * Creates a new SingularEventRequest instance using the specified properties. * @function create - * @memberof BI.ReportingDailySnapshotRequest + * @memberof BI.SingularEventRequest * @static - * @param {BI.IReportingDailySnapshotRequest=} [properties] Properties to set - * @returns {BI.ReportingDailySnapshotRequest} ReportingDailySnapshotRequest instance + * @param {BI.ISingularEventRequest=} [properties] Properties to set + * @returns {BI.SingularEventRequest} SingularEventRequest instance */ - ReportingDailySnapshotRequest.create = function create(properties) { - return new ReportingDailySnapshotRequest(properties); + SingularEventRequest.create = function create(properties) { + return new SingularEventRequest(properties); }; /** - * Encodes the specified ReportingDailySnapshotRequest message. Does not implicitly {@link BI.ReportingDailySnapshotRequest.verify|verify} messages. + * Encodes the specified SingularEventRequest message. Does not implicitly {@link BI.SingularEventRequest.verify|verify} messages. * @function encode - * @memberof BI.ReportingDailySnapshotRequest + * @memberof BI.SingularEventRequest * @static - * @param {BI.IReportingDailySnapshotRequest} message ReportingDailySnapshotRequest message or plain object to encode + * @param {BI.ISingularEventRequest} message SingularEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReportingDailySnapshotRequest.encode = function encode(message, writer) { + SingularEventRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.month != null && Object.hasOwnProperty.call(message, "month")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.month); - if (message.year != null && Object.hasOwnProperty.call(message, "year")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.year); + if (message.deviceIdentifiers != null && message.deviceIdentifiers.length) + for (let i = 0; i < message.deviceIdentifiers.length; ++i) + $root.BI.SingularDeviceIdentifier.encode(message.deviceIdentifiers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.sharedData != null && Object.hasOwnProperty.call(message, "sharedData")) + $root.BI.SingularSharedData.encode(message.sharedData, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.eventName != null && Object.hasOwnProperty.call(message, "eventName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.eventName); return writer; }; /** - * Encodes the specified ReportingDailySnapshotRequest message, length delimited. Does not implicitly {@link BI.ReportingDailySnapshotRequest.verify|verify} messages. + * Encodes the specified SingularEventRequest message, length delimited. Does not implicitly {@link BI.SingularEventRequest.verify|verify} messages. * @function encodeDelimited - * @memberof BI.ReportingDailySnapshotRequest + * @memberof BI.SingularEventRequest * @static - * @param {BI.IReportingDailySnapshotRequest} message ReportingDailySnapshotRequest message or plain object to encode + * @param {BI.ISingularEventRequest} message SingularEventRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReportingDailySnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + SingularEventRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReportingDailySnapshotRequest message from the specified reader or buffer. + * Decodes a SingularEventRequest message from the specified reader or buffer. * @function decode - * @memberof BI.ReportingDailySnapshotRequest + * @memberof BI.SingularEventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.ReportingDailySnapshotRequest} ReportingDailySnapshotRequest + * @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 */ - ReportingDailySnapshotRequest.decode = function decode(reader, length) { + SingularEventRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ReportingDailySnapshotRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SingularEventRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.month = reader.int32(); + if (!(message.deviceIdentifiers && message.deviceIdentifiers.length)) + message.deviceIdentifiers = []; + message.deviceIdentifiers.push($root.BI.SingularDeviceIdentifier.decode(reader, reader.uint32())); break; } case 2: { - message.year = reader.int32(); + message.sharedData = $root.BI.SingularSharedData.decode(reader, reader.uint32()); + break; + } + case 3: { + message.eventName = reader.string(); break; } default: @@ -232037,134 +261302,162 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a ReportingDailySnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a SingularEventRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.ReportingDailySnapshotRequest + * @memberof BI.SingularEventRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.ReportingDailySnapshotRequest} ReportingDailySnapshotRequest + * @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 */ - ReportingDailySnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + SingularEventRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReportingDailySnapshotRequest message. + * Verifies a SingularEventRequest message. * @function verify - * @memberof BI.ReportingDailySnapshotRequest + * @memberof BI.SingularEventRequest * @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) { + SingularEventRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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]); + if (error) + return "deviceIdentifiers." + error; + } + } + if (message.sharedData != null && message.hasOwnProperty("sharedData")) { + let error = $root.BI.SingularSharedData.verify(message.sharedData); + 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 ReportingDailySnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SingularEventRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.ReportingDailySnapshotRequest + * @memberof BI.SingularEventRequest * @static * @param {Object.} object Plain object - * @returns {BI.ReportingDailySnapshotRequest} ReportingDailySnapshotRequest + * @returns {BI.SingularEventRequest} SingularEventRequest */ - ReportingDailySnapshotRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.ReportingDailySnapshotRequest) + SingularEventRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SingularEventRequest) return object; - let message = new $root.BI.ReportingDailySnapshotRequest(); - if (object.month != null) - message.month = object.month | 0; - if (object.year != null) - message.year = object.year | 0; + let message = new $root.BI.SingularEventRequest(); + if (object.deviceIdentifiers) { + if (!Array.isArray(object.deviceIdentifiers)) + throw TypeError(".BI.SingularEventRequest.deviceIdentifiers: array expected"); + message.deviceIdentifiers = []; + for (let i = 0; i < object.deviceIdentifiers.length; ++i) { + if (typeof object.deviceIdentifiers[i] !== "object") + throw TypeError(".BI.SingularEventRequest.deviceIdentifiers: object expected"); + message.deviceIdentifiers[i] = $root.BI.SingularDeviceIdentifier.fromObject(object.deviceIdentifiers[i]); + } + } + if (object.sharedData != null) { + if (typeof object.sharedData !== "object") + throw TypeError(".BI.SingularEventRequest.sharedData: object expected"); + message.sharedData = $root.BI.SingularSharedData.fromObject(object.sharedData); + } + if (object.eventName != null) + message.eventName = String(object.eventName); return message; }; /** - * Creates a plain object from a ReportingDailySnapshotRequest message. Also converts values to other types if specified. + * Creates a plain object from a SingularEventRequest message. Also converts values to other types if specified. * @function toObject - * @memberof BI.ReportingDailySnapshotRequest + * @memberof BI.SingularEventRequest * @static - * @param {BI.ReportingDailySnapshotRequest} message ReportingDailySnapshotRequest + * @param {BI.SingularEventRequest} message SingularEventRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReportingDailySnapshotRequest.toObject = function toObject(message, options) { + SingularEventRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.deviceIdentifiers = []; if (options.defaults) { - object.month = 0; - object.year = 0; + object.sharedData = null; + object.eventName = ""; } - if (message.month != null && message.hasOwnProperty("month")) - object.month = message.month; - if (message.year != null && message.hasOwnProperty("year")) - object.year = message.year; + if (message.deviceIdentifiers && message.deviceIdentifiers.length) { + object.deviceIdentifiers = []; + for (let j = 0; j < message.deviceIdentifiers.length; ++j) + object.deviceIdentifiers[j] = $root.BI.SingularDeviceIdentifier.toObject(message.deviceIdentifiers[j], options); + } + if (message.sharedData != null && message.hasOwnProperty("sharedData")) + object.sharedData = $root.BI.SingularSharedData.toObject(message.sharedData, options); + if (message.eventName != null && message.hasOwnProperty("eventName")) + object.eventName = message.eventName; return object; }; /** - * Converts this ReportingDailySnapshotRequest to JSON. + * Converts this SingularEventRequest to JSON. * @function toJSON - * @memberof BI.ReportingDailySnapshotRequest + * @memberof BI.SingularEventRequest * @instance * @returns {Object.} JSON object */ - ReportingDailySnapshotRequest.prototype.toJSON = function toJSON() { + SingularEventRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReportingDailySnapshotRequest + * Gets the default type url for SingularEventRequest * @function getTypeUrl - * @memberof BI.ReportingDailySnapshotRequest + * @memberof BI.SingularEventRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReportingDailySnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SingularEventRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.ReportingDailySnapshotRequest"; + return typeUrlPrefix + "/BI.SingularEventRequest"; }; - return ReportingDailySnapshotRequest; + return SingularEventRequest; })(); - BI.ReportingDailySnapshotResponse = (function() { + BI.ActivePamCountRequest = (function() { /** - * Properties of a ReportingDailySnapshotResponse. + * Properties of an ActivePamCountRequest. * @memberof BI - * @interface IReportingDailySnapshotResponse - * @property {Array.|null} [records] ReportingDailySnapshotResponse records - * @property {Array.|null} [mcEnterprises] ReportingDailySnapshotResponse mcEnterprises + * @interface IActivePamCountRequest + * @property {number|null} [enterpriseId] ActivePamCountRequest enterpriseId */ /** - * Constructs a new ReportingDailySnapshotResponse. + * Constructs a new ActivePamCountRequest. * @memberof BI - * @classdesc Represents a ReportingDailySnapshotResponse. - * @implements IReportingDailySnapshotResponse + * @classdesc Represents an ActivePamCountRequest. + * @implements IActivePamCountRequest * @constructor - * @param {BI.IReportingDailySnapshotResponse=} [properties] Properties to set + * @param {BI.IActivePamCountRequest=} [properties] Properties to set */ - function ReportingDailySnapshotResponse(properties) { - this.records = []; - this.mcEnterprises = []; + function ActivePamCountRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -232172,95 +261465,75 @@ export const BI = $root.BI = (() => { } /** - * ReportingDailySnapshotResponse records. - * @member {Array.} records - * @memberof BI.ReportingDailySnapshotResponse - * @instance - */ - ReportingDailySnapshotResponse.prototype.records = $util.emptyArray; - - /** - * ReportingDailySnapshotResponse mcEnterprises. - * @member {Array.} mcEnterprises - * @memberof BI.ReportingDailySnapshotResponse + * ActivePamCountRequest enterpriseId. + * @member {number} enterpriseId + * @memberof BI.ActivePamCountRequest * @instance */ - ReportingDailySnapshotResponse.prototype.mcEnterprises = $util.emptyArray; + ActivePamCountRequest.prototype.enterpriseId = 0; /** - * Creates a new ReportingDailySnapshotResponse instance using the specified properties. + * Creates a new ActivePamCountRequest instance using the specified properties. * @function create - * @memberof BI.ReportingDailySnapshotResponse + * @memberof BI.ActivePamCountRequest * @static - * @param {BI.IReportingDailySnapshotResponse=} [properties] Properties to set - * @returns {BI.ReportingDailySnapshotResponse} ReportingDailySnapshotResponse instance + * @param {BI.IActivePamCountRequest=} [properties] Properties to set + * @returns {BI.ActivePamCountRequest} ActivePamCountRequest instance */ - ReportingDailySnapshotResponse.create = function create(properties) { - return new ReportingDailySnapshotResponse(properties); + ActivePamCountRequest.create = function create(properties) { + return new ActivePamCountRequest(properties); }; /** - * Encodes the specified ReportingDailySnapshotResponse message. Does not implicitly {@link BI.ReportingDailySnapshotResponse.verify|verify} messages. + * Encodes the specified ActivePamCountRequest message. Does not implicitly {@link BI.ActivePamCountRequest.verify|verify} messages. * @function encode - * @memberof BI.ReportingDailySnapshotResponse + * @memberof BI.ActivePamCountRequest * @static - * @param {BI.IReportingDailySnapshotResponse} message ReportingDailySnapshotResponse message or plain object to encode + * @param {BI.IActivePamCountRequest} message ActivePamCountRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReportingDailySnapshotResponse.encode = function encode(message, writer) { + ActivePamCountRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.records != null && message.records.length) - for (let i = 0; i < message.records.length; ++i) - $root.BI.SnapshotRecord.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.mcEnterprises != null && message.mcEnterprises.length) - for (let i = 0; i < message.mcEnterprises.length; ++i) - $root.BI.SnapshotMcEnterprise.encode(message.mcEnterprises[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.enterpriseId); return writer; }; /** - * Encodes the specified ReportingDailySnapshotResponse message, length delimited. Does not implicitly {@link BI.ReportingDailySnapshotResponse.verify|verify} messages. + * Encodes the specified ActivePamCountRequest message, length delimited. Does not implicitly {@link BI.ActivePamCountRequest.verify|verify} messages. * @function encodeDelimited - * @memberof BI.ReportingDailySnapshotResponse + * @memberof BI.ActivePamCountRequest * @static - * @param {BI.IReportingDailySnapshotResponse} message ReportingDailySnapshotResponse message or plain object to encode + * @param {BI.IActivePamCountRequest} message ActivePamCountRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReportingDailySnapshotResponse.encodeDelimited = function encodeDelimited(message, writer) { + ActivePamCountRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReportingDailySnapshotResponse message from the specified reader or buffer. + * Decodes an ActivePamCountRequest message from the specified reader or buffer. * @function decode - * @memberof BI.ReportingDailySnapshotResponse + * @memberof BI.ActivePamCountRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.ReportingDailySnapshotResponse} ReportingDailySnapshotResponse + * @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 */ - ReportingDailySnapshotResponse.decode = function decode(reader, length) { + ActivePamCountRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ReportingDailySnapshotResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ActivePamCountRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.records && message.records.length)) - message.records = []; - message.records.push($root.BI.SnapshotRecord.decode(reader, reader.uint32())); - break; - } - case 2: { - if (!(message.mcEnterprises && message.mcEnterprises.length)) - message.mcEnterprises = []; - message.mcEnterprises.push($root.BI.SnapshotMcEnterprise.decode(reader, reader.uint32())); + message.enterpriseId = reader.int32(); break; } default: @@ -232272,171 +261545,122 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a ReportingDailySnapshotResponse message from the specified reader or buffer, length delimited. + * Decodes an ActivePamCountRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.ReportingDailySnapshotResponse + * @memberof BI.ActivePamCountRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.ReportingDailySnapshotResponse} ReportingDailySnapshotResponse + * @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 */ - ReportingDailySnapshotResponse.decodeDelimited = function decodeDelimited(reader) { + ActivePamCountRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReportingDailySnapshotResponse message. + * Verifies an ActivePamCountRequest message. * @function verify - * @memberof BI.ReportingDailySnapshotResponse + * @memberof BI.ActivePamCountRequest * @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) { + ActivePamCountRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; - for (let i = 0; i < message.records.length; ++i) { - let error = $root.BI.SnapshotRecord.verify(message.records[i]); - 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]); - if (error) - return "mcEnterprises." + error; - } - } + if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (!$util.isInteger(message.enterpriseId)) + return "enterpriseId: integer expected"; return null; }; /** - * Creates a ReportingDailySnapshotResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ActivePamCountRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.ReportingDailySnapshotResponse + * @memberof BI.ActivePamCountRequest * @static * @param {Object.} object Plain object - * @returns {BI.ReportingDailySnapshotResponse} ReportingDailySnapshotResponse + * @returns {BI.ActivePamCountRequest} ActivePamCountRequest */ - ReportingDailySnapshotResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.ReportingDailySnapshotResponse) + ActivePamCountRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.ActivePamCountRequest) return object; - let message = new $root.BI.ReportingDailySnapshotResponse(); - if (object.records) { - if (!Array.isArray(object.records)) - throw TypeError(".BI.ReportingDailySnapshotResponse.records: array expected"); - message.records = []; - for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") - throw TypeError(".BI.ReportingDailySnapshotResponse.records: object expected"); - message.records[i] = $root.BI.SnapshotRecord.fromObject(object.records[i]); - } - } - if (object.mcEnterprises) { - if (!Array.isArray(object.mcEnterprises)) - throw TypeError(".BI.ReportingDailySnapshotResponse.mcEnterprises: array expected"); - message.mcEnterprises = []; - for (let i = 0; i < object.mcEnterprises.length; ++i) { - if (typeof object.mcEnterprises[i] !== "object") - throw TypeError(".BI.ReportingDailySnapshotResponse.mcEnterprises: object expected"); - message.mcEnterprises[i] = $root.BI.SnapshotMcEnterprise.fromObject(object.mcEnterprises[i]); - } - } + let message = new $root.BI.ActivePamCountRequest(); + if (object.enterpriseId != null) + message.enterpriseId = object.enterpriseId | 0; return message; }; /** - * Creates a plain object from a ReportingDailySnapshotResponse message. Also converts values to other types if specified. + * Creates a plain object from an ActivePamCountRequest message. Also converts values to other types if specified. * @function toObject - * @memberof BI.ReportingDailySnapshotResponse + * @memberof BI.ActivePamCountRequest * @static - * @param {BI.ReportingDailySnapshotResponse} message ReportingDailySnapshotResponse + * @param {BI.ActivePamCountRequest} message ActivePamCountRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReportingDailySnapshotResponse.toObject = function toObject(message, options) { + ActivePamCountRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.records = []; - object.mcEnterprises = []; - } - if (message.records && message.records.length) { - object.records = []; - for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.BI.SnapshotRecord.toObject(message.records[j], options); - } - if (message.mcEnterprises && message.mcEnterprises.length) { - object.mcEnterprises = []; - for (let j = 0; j < message.mcEnterprises.length; ++j) - object.mcEnterprises[j] = $root.BI.SnapshotMcEnterprise.toObject(message.mcEnterprises[j], options); - } + if (options.defaults) + object.enterpriseId = 0; + if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + object.enterpriseId = message.enterpriseId; return object; }; /** - * Converts this ReportingDailySnapshotResponse to JSON. + * Converts this ActivePamCountRequest to JSON. * @function toJSON - * @memberof BI.ReportingDailySnapshotResponse + * @memberof BI.ActivePamCountRequest * @instance * @returns {Object.} JSON object */ - ReportingDailySnapshotResponse.prototype.toJSON = function toJSON() { + ActivePamCountRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReportingDailySnapshotResponse + * Gets the default type url for ActivePamCountRequest * @function getTypeUrl - * @memberof BI.ReportingDailySnapshotResponse + * @memberof BI.ActivePamCountRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReportingDailySnapshotResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ActivePamCountRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.ReportingDailySnapshotResponse"; + return typeUrlPrefix + "/BI.ActivePamCountRequest"; }; - return ReportingDailySnapshotResponse; + return ActivePamCountRequest; })(); - BI.SnapshotRecord = (function() { + BI.ActivePamCountResponse = (function() { /** - * Properties of a SnapshotRecord. + * Properties of an ActivePamCountResponse. * @memberof BI - * @interface ISnapshotRecord - * @property {number|Long|null} [date] SnapshotRecord date - * @property {number|null} [mcEnterpriseId] SnapshotRecord mcEnterpriseId - * @property {number|null} [maxLicenseCount] SnapshotRecord maxLicenseCount - * @property {number|null} [maxFilePlanTypeId] SnapshotRecord maxFilePlanTypeId - * @property {number|null} [maxBasePlanId] SnapshotRecord maxBasePlanId - * @property {Array.|null} [addons] SnapshotRecord addons + * @interface IActivePamCountResponse + * @property {number|null} [pamCount] ActivePamCountResponse pamCount */ /** - * Constructs a new SnapshotRecord. + * Constructs a new ActivePamCountResponse. * @memberof BI - * @classdesc Represents a SnapshotRecord. - * @implements ISnapshotRecord + * @classdesc Represents an ActivePamCountResponse. + * @implements IActivePamCountResponse * @constructor - * @param {BI.ISnapshotRecord=} [properties] Properties to set + * @param {BI.IActivePamCountResponse=} [properties] Properties to set */ - function SnapshotRecord(properties) { - this.addons = []; + function ActivePamCountResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -232444,148 +261668,75 @@ export const BI = $root.BI = (() => { } /** - * SnapshotRecord date. - * @member {number|Long} date - * @memberof BI.SnapshotRecord - * @instance - */ - SnapshotRecord.prototype.date = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * SnapshotRecord mcEnterpriseId. - * @member {number} mcEnterpriseId - * @memberof BI.SnapshotRecord - * @instance - */ - SnapshotRecord.prototype.mcEnterpriseId = 0; - - /** - * SnapshotRecord maxLicenseCount. - * @member {number} maxLicenseCount - * @memberof BI.SnapshotRecord - * @instance - */ - SnapshotRecord.prototype.maxLicenseCount = 0; - - /** - * SnapshotRecord maxFilePlanTypeId. - * @member {number} maxFilePlanTypeId - * @memberof BI.SnapshotRecord - * @instance - */ - SnapshotRecord.prototype.maxFilePlanTypeId = 0; - - /** - * SnapshotRecord maxBasePlanId. - * @member {number} maxBasePlanId - * @memberof BI.SnapshotRecord - * @instance - */ - SnapshotRecord.prototype.maxBasePlanId = 0; - - /** - * SnapshotRecord addons. - * @member {Array.} addons - * @memberof BI.SnapshotRecord + * ActivePamCountResponse pamCount. + * @member {number} pamCount + * @memberof BI.ActivePamCountResponse * @instance */ - SnapshotRecord.prototype.addons = $util.emptyArray; + ActivePamCountResponse.prototype.pamCount = 0; /** - * Creates a new SnapshotRecord instance using the specified properties. + * Creates a new ActivePamCountResponse instance using the specified properties. * @function create - * @memberof BI.SnapshotRecord + * @memberof BI.ActivePamCountResponse * @static - * @param {BI.ISnapshotRecord=} [properties] Properties to set - * @returns {BI.SnapshotRecord} SnapshotRecord instance + * @param {BI.IActivePamCountResponse=} [properties] Properties to set + * @returns {BI.ActivePamCountResponse} ActivePamCountResponse instance */ - SnapshotRecord.create = function create(properties) { - return new SnapshotRecord(properties); + ActivePamCountResponse.create = function create(properties) { + return new ActivePamCountResponse(properties); }; /** - * Encodes the specified SnapshotRecord message. Does not implicitly {@link BI.SnapshotRecord.verify|verify} messages. + * Encodes the specified ActivePamCountResponse message. Does not implicitly {@link BI.ActivePamCountResponse.verify|verify} messages. * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.date != null && Object.hasOwnProperty.call(message, "date")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.date); - if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.mcEnterpriseId); - if (message.maxLicenseCount != null && Object.hasOwnProperty.call(message, "maxLicenseCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maxLicenseCount); - if (message.maxFilePlanTypeId != null && Object.hasOwnProperty.call(message, "maxFilePlanTypeId")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxFilePlanTypeId); - if (message.maxBasePlanId != null && Object.hasOwnProperty.call(message, "maxBasePlanId")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.maxBasePlanId); - if (message.addons != null && message.addons.length) - for (let i = 0; i < message.addons.length; ++i) - $root.BI.SnapshotRecord.Addon.encode(message.addons[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pamCount != null && Object.hasOwnProperty.call(message, "pamCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.pamCount); return writer; }; /** - * Encodes the specified SnapshotRecord message, length delimited. Does not implicitly {@link BI.SnapshotRecord.verify|verify} messages. + * Encodes the specified ActivePamCountResponse message, length delimited. Does not implicitly {@link BI.ActivePamCountResponse.verify|verify} messages. * @function encodeDelimited - * @memberof BI.SnapshotRecord + * @memberof BI.ActivePamCountResponse * @static - * @param {BI.ISnapshotRecord} message SnapshotRecord message or plain object to encode + * @param {BI.IActivePamCountResponse} message ActivePamCountResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SnapshotRecord.encodeDelimited = function encodeDelimited(message, writer) { + ActivePamCountResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SnapshotRecord message from the specified reader or buffer. + * Decodes an ActivePamCountResponse message from the specified reader or buffer. * @function decode - * @memberof BI.SnapshotRecord + * @memberof BI.ActivePamCountResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.SnapshotRecord} SnapshotRecord + * @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 */ - SnapshotRecord.decode = function decode(reader, length) { + ActivePamCountResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SnapshotRecord(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ActivePamCountResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.date = reader.int64(); - break; - } - case 2: { - message.mcEnterpriseId = reader.int32(); - break; - } - case 4: { - message.maxLicenseCount = reader.int32(); - break; - } - case 5: { - message.maxFilePlanTypeId = reader.int32(); - break; - } - case 6: { - message.maxBasePlanId = reader.int32(); - break; - } - case 7: { - if (!(message.addons && message.addons.length)) - message.addons = []; - message.addons.push($root.BI.SnapshotRecord.Addon.decode(reader, reader.uint32())); + message.pamCount = reader.int32(); break; } default: @@ -232597,193 +261748,144 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a SnapshotRecord message from the specified reader or buffer, length delimited. + * Decodes an ActivePamCountResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.SnapshotRecord + * @memberof BI.ActivePamCountResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SnapshotRecord} SnapshotRecord + * @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 */ - SnapshotRecord.decodeDelimited = function decodeDelimited(reader) { + ActivePamCountResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SnapshotRecord message. + * Verifies an ActivePamCountResponse message. * @function verify - * @memberof BI.SnapshotRecord + * @memberof BI.ActivePamCountResponse * @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) { + ActivePamCountResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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]); - if (error) - return "addons." + error; - } - } + if (message.pamCount != null && message.hasOwnProperty("pamCount")) + if (!$util.isInteger(message.pamCount)) + return "pamCount: integer expected"; return null; }; /** - * Creates a SnapshotRecord message from a plain object. Also converts values to their respective internal types. + * Creates an ActivePamCountResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.SnapshotRecord + * @memberof BI.ActivePamCountResponse * @static * @param {Object.} object Plain object - * @returns {BI.SnapshotRecord} SnapshotRecord + * @returns {BI.ActivePamCountResponse} ActivePamCountResponse */ - SnapshotRecord.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SnapshotRecord) + ActivePamCountResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.ActivePamCountResponse) return object; - let message = new $root.BI.SnapshotRecord(); - if (object.date != null) - if ($util.Long) - (message.date = $util.Long.fromValue(object.date)).unsigned = false; - else if (typeof object.date === "string") - message.date = parseInt(object.date, 10); - else if (typeof object.date === "number") - message.date = object.date; - else if (typeof object.date === "object") - message.date = new $util.LongBits(object.date.low >>> 0, object.date.high >>> 0).toNumber(); - if (object.mcEnterpriseId != null) - message.mcEnterpriseId = object.mcEnterpriseId | 0; - if (object.maxLicenseCount != null) - message.maxLicenseCount = object.maxLicenseCount | 0; - if (object.maxFilePlanTypeId != null) - message.maxFilePlanTypeId = object.maxFilePlanTypeId | 0; - if (object.maxBasePlanId != null) - message.maxBasePlanId = object.maxBasePlanId | 0; - if (object.addons) { - if (!Array.isArray(object.addons)) - throw TypeError(".BI.SnapshotRecord.addons: array expected"); - message.addons = []; - for (let i = 0; i < object.addons.length; ++i) { - if (typeof object.addons[i] !== "object") - throw TypeError(".BI.SnapshotRecord.addons: object expected"); - message.addons[i] = $root.BI.SnapshotRecord.Addon.fromObject(object.addons[i]); - } - } + let message = new $root.BI.ActivePamCountResponse(); + if (object.pamCount != null) + message.pamCount = object.pamCount | 0; return message; }; /** - * Creates a plain object from a SnapshotRecord message. Also converts values to other types if specified. + * Creates a plain object from an ActivePamCountResponse message. Also converts values to other types if specified. * @function toObject - * @memberof BI.SnapshotRecord + * @memberof BI.ActivePamCountResponse * @static - * @param {BI.SnapshotRecord} message SnapshotRecord + * @param {BI.ActivePamCountResponse} message ActivePamCountResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SnapshotRecord.toObject = function toObject(message, options) { + ActivePamCountResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.addons = []; - if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.date = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.date = options.longs === String ? "0" : 0; - object.mcEnterpriseId = 0; - object.maxLicenseCount = 0; - object.maxFilePlanTypeId = 0; - object.maxBasePlanId = 0; - } - if (message.date != null && message.hasOwnProperty("date")) - if (typeof 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")) - object.mcEnterpriseId = message.mcEnterpriseId; - if (message.maxLicenseCount != null && message.hasOwnProperty("maxLicenseCount")) - object.maxLicenseCount = message.maxLicenseCount; - if (message.maxFilePlanTypeId != null && message.hasOwnProperty("maxFilePlanTypeId")) - object.maxFilePlanTypeId = message.maxFilePlanTypeId; - if (message.maxBasePlanId != null && message.hasOwnProperty("maxBasePlanId")) - object.maxBasePlanId = message.maxBasePlanId; - if (message.addons && message.addons.length) { - object.addons = []; - for (let j = 0; j < message.addons.length; ++j) - object.addons[j] = $root.BI.SnapshotRecord.Addon.toObject(message.addons[j], options); - } + if (options.defaults) + object.pamCount = 0; + if (message.pamCount != null && message.hasOwnProperty("pamCount")) + object.pamCount = message.pamCount; return object; }; /** - * Converts this SnapshotRecord to JSON. + * Converts this ActivePamCountResponse to JSON. * @function toJSON - * @memberof BI.SnapshotRecord + * @memberof BI.ActivePamCountResponse * @instance * @returns {Object.} JSON object */ - SnapshotRecord.prototype.toJSON = function toJSON() { + ActivePamCountResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SnapshotRecord + * Gets the default type url for ActivePamCountResponse * @function getTypeUrl - * @memberof BI.SnapshotRecord + * @memberof BI.ActivePamCountResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SnapshotRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ActivePamCountResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.SnapshotRecord"; + return typeUrlPrefix + "/BI.ActivePamCountResponse"; }; - SnapshotRecord.Addon = (function() { + return ActivePamCountResponse; + })(); + + return BI; +})(); + +export const google = $root.google = (() => { + + /** + * Namespace google. + * @exports google + * @namespace + */ + const google = {}; + + google.api = (function() { + + /** + * Namespace api. + * @memberof google + * @namespace + */ + const api = {}; + + api.Http = (function() { /** - * Properties of an Addon. - * @memberof BI.SnapshotRecord - * @interface IAddon - * @property {number|null} [maxAddonId] Addon maxAddonId - * @property {number|Long|null} [units] Addon units + * Properties of a Http. + * @memberof google.api + * @interface IHttp + * @property {Array.|null} [rules] Http rules */ /** - * Constructs a new Addon. - * @memberof BI.SnapshotRecord - * @classdesc Represents an Addon. - * @implements IAddon + * Constructs a new Http. + * @memberof google.api + * @classdesc Represents a Http. + * @implements IHttp * @constructor - * @param {BI.SnapshotRecord.IAddon=} [properties] Properties to set + * @param {google.api.IHttp=} [properties] Properties to set */ - function Addon(properties) { + function Http(properties) { + this.rules = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -232791,89 +261893,436 @@ export const BI = $root.BI = (() => { } /** - * Addon maxAddonId. - * @member {number} maxAddonId - * @memberof BI.SnapshotRecord.Addon + * Http rules. + * @member {Array.} rules + * @memberof google.api.Http * @instance */ - Addon.prototype.maxAddonId = 0; + Http.prototype.rules = $util.emptyArray; /** - * Addon units. - * @member {number|Long} units - * @memberof BI.SnapshotRecord.Addon + * Creates a new Http instance using the specified properties. + * @function create + * @memberof google.api.Http + * @static + * @param {google.api.IHttp=} [properties] Properties to set + * @returns {google.api.Http} Http instance + */ + Http.create = function create(properties) { + return new Http(properties); + }; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (let i = 0; i < message.rules.length; ++i) + $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + 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 + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + 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 + * @memberof google.api.Http + * @static + * @param {Object.} object Plain object + * @returns {google.api.Http} Http + */ + Http.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.Http) + return object; + let message = new $root.google.api.Http(); + if (object.rules) { + if (!Array.isArray(object.rules)) + 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") + throw TypeError(".google.api.Http.rules: object expected"); + message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.Http + * @static + * @param {google.api.Http} message Http + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Http.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.rules = []; + if (message.rules && message.rules.length) { + object.rules = []; + for (let j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); + } + return object; + }; + + /** + * Converts this Http to JSON. + * @function toJSON + * @memberof google.api.Http * @instance + * @returns {Object.} JSON object */ - Addon.prototype.units = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Http.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Creates a new Addon instance using the specified properties. + * Gets the default type url for Http + * @function getTypeUrl + * @memberof google.api.Http + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Http.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.Http"; + }; + + return Http; + })(); + + api.HttpRule = (function() { + + /** + * Properties of a HttpRule. + * @memberof google.api + * @interface IHttpRule + * @property {string|null} [get] HttpRule get + * @property {string|null} [put] HttpRule put + * @property {string|null} [post] HttpRule post + * @property {string|null} ["delete"] HttpRule delete + * @property {string|null} [patch] HttpRule patch + * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom + * @property {string|null} [selector] HttpRule selector + * @property {string|null} [body] HttpRule body + * @property {Array.|null} [additionalBindings] HttpRule additionalBindings + */ + + /** + * Constructs a new HttpRule. + * @memberof google.api + * @classdesc Represents a HttpRule. + * @implements IHttpRule + * @constructor + * @param {google.api.IHttpRule=} [properties] Properties to set + */ + function HttpRule(properties) { + this.additionalBindings = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HttpRule get. + * @member {string|null|undefined} get + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.get = null; + + /** + * HttpRule put. + * @member {string|null|undefined} put + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.put = null; + + /** + * HttpRule post. + * @member {string|null|undefined} post + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.post = null; + + /** + * HttpRule delete. + * @member {string|null|undefined} delete + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype["delete"] = null; + + /** + * HttpRule patch. + * @member {string|null|undefined} patch + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.patch = null; + + /** + * HttpRule custom. + * @member {google.api.ICustomHttpPattern|null|undefined} custom + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.custom = null; + + /** + * HttpRule selector. + * @member {string} selector + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.selector = ""; + + /** + * HttpRule body. + * @member {string} body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.body = ""; + + /** + * HttpRule additionalBindings. + * @member {Array.} additionalBindings + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.additionalBindings = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * HttpRule pattern. + * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern + * @memberof google.api.HttpRule + * @instance + */ + Object.defineProperty(HttpRule.prototype, "pattern", { + get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HttpRule instance using the specified properties. * @function create - * @memberof BI.SnapshotRecord.Addon + * @memberof google.api.HttpRule * @static - * @param {BI.SnapshotRecord.IAddon=} [properties] Properties to set - * @returns {BI.SnapshotRecord.Addon} Addon instance + * @param {google.api.IHttpRule=} [properties] Properties to set + * @returns {google.api.HttpRule} HttpRule instance */ - Addon.create = function create(properties) { - return new Addon(properties); + HttpRule.create = function create(properties) { + return new HttpRule(properties); }; /** - * Encodes the specified Addon message. Does not implicitly {@link BI.SnapshotRecord.Addon.verify|verify} messages. + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. * @function encode - * @memberof BI.SnapshotRecord.Addon + * @memberof google.api.HttpRule * @static - * @param {BI.SnapshotRecord.IAddon} message Addon message or plain object to encode + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Addon.encode = function encode(message, writer) { + HttpRule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.maxAddonId != null && Object.hasOwnProperty.call(message, "maxAddonId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.maxAddonId); - if (message.units != null && Object.hasOwnProperty.call(message, "units")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.units); + if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); + if (message.get != null && Object.hasOwnProperty.call(message, "get")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); + if (message.put != null && Object.hasOwnProperty.call(message, "put")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); + if (message.post != null && Object.hasOwnProperty.call(message, "post")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); + if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); + if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); + if (message.body != null && Object.hasOwnProperty.call(message, "body")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); + if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) + $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.additionalBindings != null && message.additionalBindings.length) + for (let i = 0; i < message.additionalBindings.length; ++i) + $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); return writer; }; /** - * Encodes the specified Addon message, length delimited. Does not implicitly {@link BI.SnapshotRecord.Addon.verify|verify} messages. + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. * @function encodeDelimited - * @memberof BI.SnapshotRecord.Addon + * @memberof google.api.HttpRule * @static - * @param {BI.SnapshotRecord.IAddon} message Addon message or plain object to encode + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Addon.encodeDelimited = function encodeDelimited(message, writer) { + HttpRule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Addon message from the specified reader or buffer. + * Decodes a HttpRule message from the specified reader or buffer. * @function decode - * @memberof BI.SnapshotRecord.Addon + * @memberof google.api.HttpRule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.SnapshotRecord.Addon} Addon + * @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 */ - Addon.decode = function decode(reader, length) { + HttpRule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SnapshotRecord.Addon(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 2: { + message.get = reader.string(); + break; + } + case 3: { + message.put = reader.string(); + break; + } + case 4: { + message.post = reader.string(); + break; + } + case 5: { + message["delete"] = reader.string(); + break; + } + case 6: { + message.patch = reader.string(); + break; + } + case 8: { + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); + break; + } case 1: { - message.maxAddonId = reader.int32(); + message.selector = reader.string(); break; } - case 2: { - message.units = reader.int64(); + case 7: { + message.body = reader.string(); + break; + } + case 11: { + if (!(message.additionalBindings && message.additionalBindings.length)) + message.additionalBindings = []; + message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); break; } default: @@ -232885,6144 +262334,9596 @@ export const BI = $root.BI = (() => { }; /** - * Decodes an Addon message from the specified reader or buffer, length delimited. + * Decodes a HttpRule message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.SnapshotRecord.Addon + * @memberof google.api.HttpRule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SnapshotRecord.Addon} Addon + * @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 */ - Addon.decodeDelimited = function decodeDelimited(reader) { + HttpRule.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Addon message. + * Verifies a HttpRule message. * @function verify - * @memberof BI.SnapshotRecord.Addon + * @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 */ - Addon.verify = function verify(message) { + HttpRule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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); + 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]); + if (error) + return "additionalBindings." + error; + } + } return null; }; /** - * Creates an Addon message from a plain object. Also converts values to their respective internal types. + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.SnapshotRecord.Addon + * @memberof google.api.HttpRule * @static * @param {Object.} object Plain object - * @returns {BI.SnapshotRecord.Addon} Addon + * @returns {google.api.HttpRule} HttpRule */ - Addon.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SnapshotRecord.Addon) + HttpRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.HttpRule) return object; - let message = new $root.BI.SnapshotRecord.Addon(); - if (object.maxAddonId != null) - message.maxAddonId = object.maxAddonId | 0; - if (object.units != null) - if ($util.Long) - (message.units = $util.Long.fromValue(object.units)).unsigned = false; - else if (typeof object.units === "string") - message.units = parseInt(object.units, 10); - else if (typeof object.units === "number") - message.units = object.units; - else if (typeof object.units === "object") - message.units = new $util.LongBits(object.units.low >>> 0, object.units.high >>> 0).toNumber(); + let message = new $root.google.api.HttpRule(); + if (object.get != null) + message.get = String(object.get); + if (object.put != null) + message.put = String(object.put); + if (object.post != null) + message.post = String(object.post); + if (object["delete"] != null) + message["delete"] = String(object["delete"]); + if (object.patch != null) + message.patch = String(object.patch); + if (object.custom != null) { + if (typeof object.custom !== "object") + throw TypeError(".google.api.HttpRule.custom: object expected"); + message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); + } + if (object.selector != null) + message.selector = String(object.selector); + if (object.body != null) + message.body = String(object.body); + if (object.additionalBindings) { + if (!Array.isArray(object.additionalBindings)) + 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") + throw TypeError(".google.api.HttpRule.additionalBindings: object expected"); + message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]); + } + } return message; }; /** - * Creates a plain object from an Addon message. Also converts values to other types if specified. + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. * @function toObject - * @memberof BI.SnapshotRecord.Addon + * @memberof google.api.HttpRule * @static - * @param {BI.SnapshotRecord.Addon} message Addon + * @param {google.api.HttpRule} message HttpRule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Addon.toObject = function toObject(message, options) { + HttpRule.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.additionalBindings = []; if (options.defaults) { - object.maxAddonId = 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.units = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.units = options.longs === String ? "0" : 0; + object.selector = ""; + object.body = ""; + } + if (message.selector != null && message.hasOwnProperty("selector")) + object.selector = message.selector; + if (message.get != null && message.hasOwnProperty("get")) { + object.get = message.get; + if (options.oneofs) + object.pattern = "get"; + } + if (message.put != null && message.hasOwnProperty("put")) { + object.put = message.put; + if (options.oneofs) + object.pattern = "put"; + } + if (message.post != null && message.hasOwnProperty("post")) { + object.post = message.post; + if (options.oneofs) + object.pattern = "post"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + object["delete"] = message["delete"]; + if (options.oneofs) + object.pattern = "delete"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + object.patch = message.patch; + if (options.oneofs) + object.pattern = "patch"; + } + if (message.body != null && message.hasOwnProperty("body")) + object.body = message.body; + if (message.custom != null && message.hasOwnProperty("custom")) { + object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); + if (options.oneofs) + object.pattern = "custom"; + } + if (message.additionalBindings && message.additionalBindings.length) { + object.additionalBindings = []; + for (let j = 0; j < message.additionalBindings.length; ++j) + object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options); } - if (message.maxAddonId != null && message.hasOwnProperty("maxAddonId")) - object.maxAddonId = message.maxAddonId; - if (message.units != null && message.hasOwnProperty("units")) - if (typeof message.units === "number") - object.units = options.longs === String ? String(message.units) : message.units; - else - object.units = options.longs === String ? $util.Long.prototype.toString.call(message.units) : options.longs === Number ? new $util.LongBits(message.units.low >>> 0, message.units.high >>> 0).toNumber() : message.units; return object; }; /** - * Converts this Addon to JSON. + * Converts this HttpRule to JSON. * @function toJSON - * @memberof BI.SnapshotRecord.Addon + * @memberof google.api.HttpRule * @instance * @returns {Object.} JSON object */ - Addon.prototype.toJSON = function toJSON() { + HttpRule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Addon + * Gets the default type url for HttpRule * @function getTypeUrl - * @memberof BI.SnapshotRecord.Addon + * @memberof google.api.HttpRule * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Addon.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + HttpRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.SnapshotRecord.Addon"; + return typeUrlPrefix + "/google.api.HttpRule"; }; - return Addon; + return HttpRule; })(); - return SnapshotRecord; - })(); - - BI.SnapshotMcEnterprise = (function() { + api.CustomHttpPattern = (function() { - /** - * Properties of a SnapshotMcEnterprise. - * @memberof BI - * @interface ISnapshotMcEnterprise - * @property {number|null} [id] SnapshotMcEnterprise id - * @property {string|null} [name] SnapshotMcEnterprise name - */ + /** + * Properties of a CustomHttpPattern. + * @memberof google.api + * @interface ICustomHttpPattern + * @property {string|null} [kind] CustomHttpPattern kind + * @property {string|null} [path] CustomHttpPattern path + */ - /** - * Constructs a new SnapshotMcEnterprise. - * @memberof BI - * @classdesc Represents a SnapshotMcEnterprise. - * @implements ISnapshotMcEnterprise - * @constructor - * @param {BI.ISnapshotMcEnterprise=} [properties] Properties to set - */ - function SnapshotMcEnterprise(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new CustomHttpPattern. + * @memberof google.api + * @classdesc Represents a CustomHttpPattern. + * @implements ICustomHttpPattern + * @constructor + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + */ + function CustomHttpPattern(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * SnapshotMcEnterprise id. - * @member {number} id - * @memberof BI.SnapshotMcEnterprise - * @instance - */ - SnapshotMcEnterprise.prototype.id = 0; + /** + * CustomHttpPattern kind. + * @member {string} kind + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.kind = ""; - /** - * SnapshotMcEnterprise name. - * @member {string} name - * @memberof BI.SnapshotMcEnterprise - * @instance - */ - SnapshotMcEnterprise.prototype.name = ""; + /** + * CustomHttpPattern path. + * @member {string} path + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.path = ""; - /** - * Creates a new SnapshotMcEnterprise instance using the specified properties. - * @function create - * @memberof BI.SnapshotMcEnterprise - * @static - * @param {BI.ISnapshotMcEnterprise=} [properties] Properties to set - * @returns {BI.SnapshotMcEnterprise} SnapshotMcEnterprise instance - */ - SnapshotMcEnterprise.create = function create(properties) { - return new SnapshotMcEnterprise(properties); - }; + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @function create + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance + */ + CustomHttpPattern.create = function create(properties) { + return new CustomHttpPattern(properties); + }; - /** - * Encodes the specified SnapshotMcEnterprise message. Does not implicitly {@link BI.SnapshotMcEnterprise.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - return writer; - }; + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + 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(); - }; + /** + * 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 SnapshotMcEnterprise message from the specified reader or buffer. - * @function decode - * @memberof BI.SnapshotMcEnterprise - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SnapshotMcEnterprise(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.id = reader.int32(); - break; - } - case 2: { - message.name = reader.string(); + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @function decode + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.kind = reader.string(); + break; + } + case 2: { + message.path = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + 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()); - }; + /** + * 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 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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; - }; + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 SnapshotMcEnterprise message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.SnapshotMcEnterprise - * @static - * @param {Object.} object Plain object - * @returns {BI.SnapshotMcEnterprise} SnapshotMcEnterprise - */ - SnapshotMcEnterprise.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SnapshotMcEnterprise) + /** + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} object Plain object + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + */ + CustomHttpPattern.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.CustomHttpPattern) + return object; + let message = new $root.google.api.CustomHttpPattern(); + if (object.kind != null) + message.kind = String(object.kind); + if (object.path != null) + message.path = String(object.path); + return message; + }; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.CustomHttpPattern} message CustomHttpPattern + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomHttpPattern.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.kind = ""; + object.path = ""; + } + if (message.kind != null && message.hasOwnProperty("kind")) + object.kind = message.kind; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; return object; - let message = new $root.BI.SnapshotMcEnterprise(); - if (object.id != null) - message.id = object.id | 0; - if (object.name != null) - message.name = String(object.name); - return message; - }; + }; - /** - * Creates a plain object from a SnapshotMcEnterprise message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.SnapshotMcEnterprise - * @static - * @param {BI.SnapshotMcEnterprise} message SnapshotMcEnterprise - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SnapshotMcEnterprise.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.id = 0; - object.name = ""; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + /** + * Converts this CustomHttpPattern to JSON. + * @function toJSON + * @memberof google.api.CustomHttpPattern + * @instance + * @returns {Object.} JSON object + */ + CustomHttpPattern.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this SnapshotMcEnterprise to JSON. - * @function toJSON - * @memberof BI.SnapshotMcEnterprise - * @instance - * @returns {Object.} JSON object - */ - SnapshotMcEnterprise.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for CustomHttpPattern + * @function getTypeUrl + * @memberof google.api.CustomHttpPattern + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomHttpPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.CustomHttpPattern"; + }; - /** - * Gets the default type url for SnapshotMcEnterprise - * @function getTypeUrl - * @memberof BI.SnapshotMcEnterprise - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SnapshotMcEnterprise.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.SnapshotMcEnterprise"; - }; + return CustomHttpPattern; + })(); - return SnapshotMcEnterprise; + return api; })(); - BI.MappingAddonsRequest = (function() { + google.protobuf = (function() { /** - * Properties of a MappingAddonsRequest. - * @memberof BI - * @interface IMappingAddonsRequest + * Namespace protobuf. + * @memberof google + * @namespace */ + const protobuf = {}; - /** - * Constructs a new MappingAddonsRequest. - * @memberof BI - * @classdesc Represents a MappingAddonsRequest. - * @implements IMappingAddonsRequest - * @constructor - * @param {BI.IMappingAddonsRequest=} [properties] Properties to set - */ - function MappingAddonsRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + protobuf.FileDescriptorSet = (function() { - /** - * Creates a new MappingAddonsRequest instance using the specified properties. - * @function create - * @memberof BI.MappingAddonsRequest - * @static - * @param {BI.IMappingAddonsRequest=} [properties] Properties to set - * @returns {BI.MappingAddonsRequest} MappingAddonsRequest instance - */ - MappingAddonsRequest.create = function create(properties) { - return new MappingAddonsRequest(properties); - }; + /** + * Properties of a FileDescriptorSet. + * @memberof google.protobuf + * @interface IFileDescriptorSet + * @property {Array.|null} [file] FileDescriptorSet file + */ - /** - * Encodes the specified MappingAddonsRequest message. Does not implicitly {@link BI.MappingAddonsRequest.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Constructs a new FileDescriptorSet. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorSet. + * @implements IFileDescriptorSet + * @constructor + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + */ + function FileDescriptorSet(properties) { + this.file = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FileDescriptorSet file. + * @member {Array.} file + * @memberof google.protobuf.FileDescriptorSet + * @instance + */ + FileDescriptorSet.prototype.file = $util.emptyArray; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance + */ + FileDescriptorSet.create = function create(properties) { + return new FileDescriptorSet(properties); + }; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.file != null && message.file.length) + for (let i = 0; i < message.file.length; ++i) + $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + 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 + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.file && message.file.length)) + message.file = []; + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + 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 + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + */ + FileDescriptorSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorSet) + return object; + let message = new $root.google.protobuf.FileDescriptorSet(); + if (object.file) { + if (!Array.isArray(object.file)) + 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") + throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); + message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorSet.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.file = []; + if (message.file && message.file.length) { + object.file = []; + for (let j = 0; j < message.file.length; ++j) + object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); + } + return object; + }; - /** - * 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(); - }; + /** + * Converts this FileDescriptorSet to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorSet + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorSet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes a MappingAddonsRequest message from the specified reader or buffer. - * @function decode - * @memberof BI.MappingAddonsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.MappingAddonsRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + /** + * Gets the default type url for FileDescriptorSet + * @function getTypeUrl + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileDescriptorSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } + return typeUrlPrefix + "/google.protobuf.FileDescriptorSet"; + }; + + return FileDescriptorSet; + })(); + + protobuf.FileDescriptorProto = (function() { + + /** + * Properties of a FileDescriptorProto. + * @memberof google.protobuf + * @interface IFileDescriptorProto + * @property {string|null} [name] FileDescriptorProto name + * @property {string|null} ["package"] FileDescriptorProto package + * @property {Array.|null} [dependency] FileDescriptorProto dependency + * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency + * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency + * @property {Array.|null} [messageType] FileDescriptorProto messageType + * @property {Array.|null} [enumType] FileDescriptorProto enumType + * @property {Array.|null} [service] FileDescriptorProto service + * @property {Array.|null} [extension] FileDescriptorProto extension + * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options + * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo + * @property {string|null} [syntax] FileDescriptorProto syntax + */ + + /** + * Constructs a new FileDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorProto. + * @implements IFileDescriptorProto + * @constructor + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + */ + function FileDescriptorProto(properties) { + this.dependency = []; + this.publicDependency = []; + this.weakDependency = []; + this.messageType = []; + this.enumType = []; + this.service = []; + this.extension = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - 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()); - }; + /** + * FileDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.name = ""; - /** - * 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * FileDescriptorProto package. + * @member {string} package + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype["package"] = ""; - /** - * Creates a MappingAddonsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.MappingAddonsRequest - * @static - * @param {Object.} object Plain object - * @returns {BI.MappingAddonsRequest} MappingAddonsRequest - */ - MappingAddonsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.MappingAddonsRequest) - return object; - return new $root.BI.MappingAddonsRequest(); - }; + /** + * FileDescriptorProto dependency. + * @member {Array.} dependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.dependency = $util.emptyArray; - /** - * Creates a plain object from a MappingAddonsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.MappingAddonsRequest - * @static - * @param {BI.MappingAddonsRequest} message MappingAddonsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MappingAddonsRequest.toObject = function toObject() { - return {}; - }; + /** + * FileDescriptorProto publicDependency. + * @member {Array.} publicDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.publicDependency = $util.emptyArray; - /** - * Converts this MappingAddonsRequest to JSON. - * @function toJSON - * @memberof BI.MappingAddonsRequest - * @instance - * @returns {Object.} JSON object - */ - MappingAddonsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * FileDescriptorProto weakDependency. + * @member {Array.} weakDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.weakDependency = $util.emptyArray; - /** - * Gets the default type url for MappingAddonsRequest - * @function getTypeUrl - * @memberof BI.MappingAddonsRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MappingAddonsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.MappingAddonsRequest"; - }; + /** + * FileDescriptorProto messageType. + * @member {Array.} messageType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.messageType = $util.emptyArray; - return MappingAddonsRequest; - })(); + /** + * FileDescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.enumType = $util.emptyArray; - BI.MappingAddonsResponse = (function() { + /** + * FileDescriptorProto service. + * @member {Array.} service + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.service = $util.emptyArray; - /** - * Properties of a MappingAddonsResponse. - * @memberof BI - * @interface IMappingAddonsResponse - * @property {Array.|null} [addons] MappingAddonsResponse addons - * @property {Array.|null} [filePlans] MappingAddonsResponse filePlans - */ + /** + * FileDescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.extension = $util.emptyArray; - /** - * Constructs a new MappingAddonsResponse. - * @memberof BI - * @classdesc Represents a MappingAddonsResponse. - * @implements IMappingAddonsResponse - * @constructor - * @param {BI.IMappingAddonsResponse=} [properties] Properties to set - */ - function MappingAddonsResponse(properties) { - this.addons = []; - this.filePlans = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * FileDescriptorProto options. + * @member {google.protobuf.IFileOptions|null|undefined} options + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.options = null; - /** - * MappingAddonsResponse addons. - * @member {Array.} addons - * @memberof BI.MappingAddonsResponse - * @instance - */ - MappingAddonsResponse.prototype.addons = $util.emptyArray; + /** + * FileDescriptorProto sourceCodeInfo. + * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.sourceCodeInfo = null; - /** - * MappingAddonsResponse filePlans. - * @member {Array.} filePlans - * @memberof BI.MappingAddonsResponse - * @instance - */ - MappingAddonsResponse.prototype.filePlans = $util.emptyArray; + /** + * FileDescriptorProto syntax. + * @member {string} syntax + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.syntax = ""; - /** - * Creates a new MappingAddonsResponse instance using the specified properties. - * @function create - * @memberof BI.MappingAddonsResponse - * @static - * @param {BI.IMappingAddonsResponse=} [properties] Properties to set - * @returns {BI.MappingAddonsResponse} MappingAddonsResponse instance - */ - MappingAddonsResponse.create = function create(properties) { - return new MappingAddonsResponse(properties); - }; + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance + */ + FileDescriptorProto.create = function create(properties) { + return new FileDescriptorProto(properties); + }; - /** - * Encodes the specified MappingAddonsResponse message. Does not implicitly {@link BI.MappingAddonsResponse.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.addons != null && message.addons.length) - for (let i = 0; i < message.addons.length; ++i) - $root.BI.MappingItem.encode(message.addons[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.filePlans != null && message.filePlans.length) - for (let i = 0; i < message.filePlans.length; ++i) - $root.BI.MappingItem.encode(message.filePlans[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); + if (message.dependency != null && message.dependency.length) + for (let i = 0; i < message.dependency.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); + if (message.messageType != null && message.messageType.length) + for (let i = 0; i < message.messageType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (let i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.service != null && message.service.length) + for (let i = 0; i < message.service.length; ++i) + $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (let i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) + $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.publicDependency != null && message.publicDependency.length) + for (let i = 0; i < message.publicDependency.length; ++i) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); + if (message.weakDependency != null && message.weakDependency.length) + for (let i = 0; i < message.weakDependency.length; ++i) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); + if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); + 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(); - }; + /** + * 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 MappingAddonsResponse message from the specified reader or buffer. - * @function decode - * @memberof BI.MappingAddonsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.MappingAddonsResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.addons && message.addons.length)) - message.addons = []; - message.addons.push($root.BI.MappingItem.decode(reader, reader.uint32())); - break; - } - case 2: { - if (!(message.filePlans && message.filePlans.length)) - message.filePlans = []; - message.filePlans.push($root.BI.MappingItem.decode(reader, reader.uint32())); + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message["package"] = reader.string(); + break; + } + case 3: { + if (!(message.dependency && message.dependency.length)) + message.dependency = []; + message.dependency.push(reader.string()); + break; + } + case 10: { + if (!(message.publicDependency && message.publicDependency.length)) + message.publicDependency = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.publicDependency.push(reader.int32()); + } else + message.publicDependency.push(reader.int32()); + break; + } + case 11: { + if (!(message.weakDependency && message.weakDependency.length)) + message.weakDependency = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.weakDependency.push(reader.int32()); + } else + message.weakDependency.push(reader.int32()); + break; + } + case 4: { + if (!(message.messageType && message.messageType.length)) + message.messageType = []; + message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.service && message.service.length)) + message.service = []; + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 7: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 8: { + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); + break; + } + case 12: { + message.syntax = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + 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()); - }; + /** + * 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 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) { - if (typeof message !== "object" || message === null) - return "object 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.MappingItem.verify(message.addons[i]); + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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.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]); + 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]); + 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]); + 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]); + if (error) + return "extension." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.google.protobuf.FileOptions.verify(message.options); if (error) - return "addons." + error; + return "options." + 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]); + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { + let error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); if (error) - return "filePlans." + error; + return "sourceCodeInfo." + error; } - } - return null; - }; + if (message.syntax != null && message.hasOwnProperty("syntax")) + if (!$util.isString(message.syntax)) + return "syntax: string expected"; + return null; + }; - /** - * Creates a MappingAddonsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.MappingAddonsResponse - * @static - * @param {Object.} object Plain object - * @returns {BI.MappingAddonsResponse} MappingAddonsResponse - */ - MappingAddonsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.MappingAddonsResponse) - return object; - let message = new $root.BI.MappingAddonsResponse(); - if (object.addons) { - if (!Array.isArray(object.addons)) - throw TypeError(".BI.MappingAddonsResponse.addons: array expected"); - message.addons = []; - for (let i = 0; i < object.addons.length; ++i) { - if (typeof object.addons[i] !== "object") - throw TypeError(".BI.MappingAddonsResponse.addons: object expected"); - message.addons[i] = $root.BI.MappingItem.fromObject(object.addons[i]); + /** + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + */ + FileDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorProto) + return object; + let message = new $root.google.protobuf.FileDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object["package"] != null) + message["package"] = String(object["package"]); + if (object.dependency) { + if (!Array.isArray(object.dependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); + message.dependency = []; + for (let i = 0; i < object.dependency.length; ++i) + message.dependency[i] = String(object.dependency[i]); + } + if (object.publicDependency) { + if (!Array.isArray(object.publicDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected"); + message.publicDependency = []; + for (let i = 0; i < object.publicDependency.length; ++i) + message.publicDependency[i] = object.publicDependency[i] | 0; + } + if (object.weakDependency) { + if (!Array.isArray(object.weakDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected"); + message.weakDependency = []; + for (let i = 0; i < object.weakDependency.length; ++i) + message.weakDependency[i] = object.weakDependency[i] | 0; + } + if (object.messageType) { + if (!Array.isArray(object.messageType)) + 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") + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected"); + message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + 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") + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.service) { + if (!Array.isArray(object.service)) + 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") + throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); + message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + 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") + throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FileOptions.fromObject(object.options); + } + if (object.sourceCodeInfo != null) { + if (typeof object.sourceCodeInfo !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected"); + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo); + } + if (object.syntax != null) + message.syntax = String(object.syntax); + return message; + }; + + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.dependency = []; + object.messageType = []; + object.enumType = []; + object.service = []; + object.extension = []; + object.publicDependency = []; + object.weakDependency = []; } - } - if (object.filePlans) { - if (!Array.isArray(object.filePlans)) - throw TypeError(".BI.MappingAddonsResponse.filePlans: array expected"); - message.filePlans = []; - for (let i = 0; i < object.filePlans.length; ++i) { - if (typeof object.filePlans[i] !== "object") - throw TypeError(".BI.MappingAddonsResponse.filePlans: object expected"); - message.filePlans[i] = $root.BI.MappingItem.fromObject(object.filePlans[i]); + if (options.defaults) { + object.name = ""; + object["package"] = ""; + object.options = null; + object.sourceCodeInfo = null; + object.syntax = ""; } - } - return message; - }; - - /** - * Creates a plain object from a MappingAddonsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.MappingAddonsResponse - * @static - * @param {BI.MappingAddonsResponse} message MappingAddonsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MappingAddonsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) { - object.addons = []; - object.filePlans = []; - } - if (message.addons && message.addons.length) { - object.addons = []; - for (let j = 0; j < message.addons.length; ++j) - object.addons[j] = $root.BI.MappingItem.toObject(message.addons[j], options); - } - if (message.filePlans && message.filePlans.length) { - object.filePlans = []; - for (let j = 0; j < message.filePlans.length; ++j) - object.filePlans[j] = $root.BI.MappingItem.toObject(message.filePlans[j], options); - } - return object; - }; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message["package"] != null && message.hasOwnProperty("package")) + object["package"] = message["package"]; + if (message.dependency && message.dependency.length) { + object.dependency = []; + for (let j = 0; j < message.dependency.length; ++j) + object.dependency[j] = message.dependency[j]; + } + if (message.messageType && message.messageType.length) { + object.messageType = []; + for (let j = 0; j < message.messageType.length; ++j) + object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (let j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.service && message.service.length) { + object.service = []; + for (let j = 0; j < message.service.length; ++j) + object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (let j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) + object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options); + if (message.publicDependency && message.publicDependency.length) { + object.publicDependency = []; + for (let j = 0; j < message.publicDependency.length; ++j) + object.publicDependency[j] = message.publicDependency[j]; + } + if (message.weakDependency && message.weakDependency.length) { + object.weakDependency = []; + for (let j = 0; j < message.weakDependency.length; ++j) + object.weakDependency[j] = message.weakDependency[j]; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + object.syntax = message.syntax; + return object; + }; - /** - * Converts this MappingAddonsResponse to JSON. - * @function toJSON - * @memberof BI.MappingAddonsResponse - * @instance - * @returns {Object.} JSON object - */ - MappingAddonsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this FileDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for MappingAddonsResponse - * @function getTypeUrl - * @memberof BI.MappingAddonsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MappingAddonsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.MappingAddonsResponse"; - }; + /** + * Gets the default type url for FileDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileDescriptorProto"; + }; - return MappingAddonsResponse; - })(); + return FileDescriptorProto; + })(); - BI.MappingItem = (function() { + protobuf.DescriptorProto = (function() { - /** - * Properties of a MappingItem. - * @memberof BI - * @interface IMappingItem - * @property {number|null} [id] MappingItem id - * @property {string|null} [name] MappingItem name - */ + /** + * Properties of a DescriptorProto. + * @memberof google.protobuf + * @interface IDescriptorProto + * @property {string|null} [name] DescriptorProto name + * @property {Array.|null} [field] DescriptorProto field + * @property {Array.|null} [extension] DescriptorProto extension + * @property {Array.|null} [nestedType] DescriptorProto nestedType + * @property {Array.|null} [enumType] DescriptorProto enumType + * @property {Array.|null} [extensionRange] DescriptorProto extensionRange + * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl + * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options + * @property {Array.|null} [reservedRange] DescriptorProto reservedRange + * @property {Array.|null} [reservedName] DescriptorProto reservedName + */ - /** - * Constructs a new MappingItem. - * @memberof BI - * @classdesc Represents a MappingItem. - * @implements IMappingItem - * @constructor - * @param {BI.IMappingItem=} [properties] Properties to set - */ - function MappingItem(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new DescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a DescriptorProto. + * @implements IDescriptorProto + * @constructor + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + */ + function DescriptorProto(properties) { + this.field = []; + this.extension = []; + this.nestedType = []; + this.enumType = []; + this.extensionRange = []; + this.oneofDecl = []; + this.reservedRange = []; + this.reservedName = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * MappingItem id. - * @member {number} id - * @memberof BI.MappingItem - * @instance - */ - MappingItem.prototype.id = 0; + /** + * DescriptorProto name. + * @member {string} name + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.name = ""; - /** - * MappingItem name. - * @member {string} name - * @memberof BI.MappingItem - * @instance - */ - MappingItem.prototype.name = ""; + /** + * DescriptorProto field. + * @member {Array.} field + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.field = $util.emptyArray; - /** - * Creates a new MappingItem instance using the specified properties. - * @function create - * @memberof BI.MappingItem - * @static - * @param {BI.IMappingItem=} [properties] Properties to set - * @returns {BI.MappingItem} MappingItem instance - */ - MappingItem.create = function create(properties) { - return new MappingItem(properties); - }; + /** + * DescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extension = $util.emptyArray; - /** - * Encodes the specified MappingItem message. Does not implicitly {@link BI.MappingItem.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - return writer; - }; + /** + * DescriptorProto nestedType. + * @member {Array.} nestedType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.nestedType = $util.emptyArray; - /** - * 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(); - }; + /** + * DescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.enumType = $util.emptyArray; - /** - * Decodes a MappingItem message from the specified reader or buffer. - * @function decode - * @memberof BI.MappingItem - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.MappingItem(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.id = reader.int32(); - break; - } - case 2: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * DescriptorProto extensionRange. + * @member {Array.} extensionRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extensionRange = $util.emptyArray; - /** - * 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()); - }; + /** + * DescriptorProto oneofDecl. + * @member {Array.} oneofDecl + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.oneofDecl = $util.emptyArray; - /** - * 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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; - }; + /** + * DescriptorProto options. + * @member {google.protobuf.IMessageOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.options = null; - /** - * Creates a MappingItem message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.MappingItem - * @static - * @param {Object.} object Plain object - * @returns {BI.MappingItem} MappingItem - */ - MappingItem.fromObject = function fromObject(object) { - if (object instanceof $root.BI.MappingItem) - return object; - let message = new $root.BI.MappingItem(); - if (object.id != null) - message.id = object.id | 0; - if (object.name != null) - message.name = String(object.name); - return message; - }; + /** + * DescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedRange = $util.emptyArray; - /** - * Creates a plain object from a MappingItem message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.MappingItem - * @static - * @param {BI.MappingItem} message MappingItem - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MappingItem.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.id = 0; - object.name = ""; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + /** + * DescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedName = $util.emptyArray; - /** - * Converts this MappingItem to JSON. - * @function toJSON - * @memberof BI.MappingItem - * @instance - * @returns {Object.} JSON object - */ - MappingItem.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a new DescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto} DescriptorProto instance + */ + DescriptorProto.create = function create(properties) { + return new DescriptorProto(properties); + }; - /** - * Gets the default type url for MappingItem - * @function getTypeUrl - * @memberof BI.MappingItem - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MappingItem.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.MappingItem"; - }; + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.field != null && message.field.length) + for (let i = 0; i < message.field.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nestedType != null && message.nestedType.length) + for (let i = 0; i < message.nestedType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (let i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.extensionRange != null && message.extensionRange.length) + for (let i = 0; i < message.extensionRange.length; ++i) + $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (let i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.oneofDecl != null && message.oneofDecl.length) + for (let i = 0; i < message.oneofDecl.length; ++i) + $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (let i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (let i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); + return writer; + }; - return MappingItem; - })(); + /** + * 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(); + }; - BI.GradientValidateKeyRequest = (function() { + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.nestedType && message.nestedType.length)) + message.nestedType = []; + message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + } + case 4: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.extensionRange && message.extensionRange.length)) + message.extensionRange = []; + message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); + break; + } + case 8: { + if (!(message.oneofDecl && message.oneofDecl.length)) + message.oneofDecl = []; + message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 7: { + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + break; + } + case 10: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Properties of a GradientValidateKeyRequest. - * @memberof BI - * @interface IGradientValidateKeyRequest - * @property {string|null} [gradientKey] GradientValidateKeyRequest gradientKey - */ + /** + * 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()); + }; - /** - * Constructs a new GradientValidateKeyRequest. - * @memberof BI - * @classdesc Represents a GradientValidateKeyRequest. - * @implements IGradientValidateKeyRequest - * @constructor - * @param {BI.IGradientValidateKeyRequest=} [properties] Properties to set - */ - function GradientValidateKeyRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + 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]); + 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]); + 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]); + 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]); + 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]); + if (error) + return "oneofDecl." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.google.protobuf.MessageOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (let i = 0; i < message.reservedRange.length; ++i) { + let error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); + 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"; + } + return null; + }; - /** - * GradientValidateKeyRequest gradientKey. - * @member {string} gradientKey - * @memberof BI.GradientValidateKeyRequest - * @instance - */ - GradientValidateKeyRequest.prototype.gradientKey = ""; + /** + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto} DescriptorProto + */ + DescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto) + return object; + let message = new $root.google.protobuf.DescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.field) { + if (!Array.isArray(object.field)) + 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") + throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); + message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + 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") + throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.nestedType) { + if (!Array.isArray(object.nestedType)) + 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") + throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected"); + message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + 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") + throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.extensionRange) { + if (!Array.isArray(object.extensionRange)) + 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") + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected"); + message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i]); + } + } + if (object.oneofDecl) { + if (!Array.isArray(object.oneofDecl)) + 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") + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected"); + message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + 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") + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (let i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; - /** - * Creates a new GradientValidateKeyRequest instance using the specified properties. - * @function create - * @memberof BI.GradientValidateKeyRequest - * @static - * @param {BI.IGradientValidateKeyRequest=} [properties] Properties to set - * @returns {BI.GradientValidateKeyRequest} GradientValidateKeyRequest instance - */ - GradientValidateKeyRequest.create = function create(properties) { - return new GradientValidateKeyRequest(properties); - }; + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.DescriptorProto} message DescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.field = []; + object.nestedType = []; + object.enumType = []; + object.extensionRange = []; + object.extension = []; + object.oneofDecl = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.field && message.field.length) { + object.field = []; + for (let j = 0; j < message.field.length; ++j) + object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); + } + if (message.nestedType && message.nestedType.length) { + object.nestedType = []; + for (let j = 0; j < message.nestedType.length; ++j) + object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (let j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.extensionRange && message.extensionRange.length) { + object.extensionRange = []; + for (let j = 0; j < message.extensionRange.length; ++j) + object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (let j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); + if (message.oneofDecl && message.oneofDecl.length) { + object.oneofDecl = []; + for (let j = 0; j < message.oneofDecl.length; ++j) + object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options); + } + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (let j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (let j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; + }; - /** - * Encodes the specified GradientValidateKeyRequest message. Does not implicitly {@link BI.GradientValidateKeyRequest.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.gradientKey != null && Object.hasOwnProperty.call(message, "gradientKey")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.gradientKey); - return writer; - }; + /** + * Converts this DescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto + * @instance + * @returns {Object.} JSON object + */ + DescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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(); - }; + /** + * Gets the default type url for DescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto"; + }; - /** - * Decodes a GradientValidateKeyRequest message from the specified reader or buffer. - * @function decode - * @memberof BI.GradientValidateKeyRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientValidateKeyRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.gradientKey = reader.string(); - break; + DescriptorProto.ExtensionRange = (function() { + + /** + * Properties of an ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @interface IExtensionRange + * @property {number|null} [start] ExtensionRange start + * @property {number|null} [end] ExtensionRange end + */ + + /** + * Constructs a new ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents an ExtensionRange. + * @implements IExtensionRange + * @constructor + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + */ + function ExtensionRange(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExtensionRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.start = 0; + + /** + * ExtensionRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.end = 0; + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance + */ + ExtensionRange.create = function create(properties) { + return new ExtensionRange(properties); + }; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified 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 + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - default: - reader.skipType(tag & 7); - break; - } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + */ + ExtensionRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) + return object; + let message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this ExtensionRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + * @returns {Object.} JSON object + */ + ExtensionRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExtensionRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExtensionRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ExtensionRange"; + }; + + return ExtensionRange; + })(); + + DescriptorProto.ReservedRange = (function() { + + /** + * Properties of a ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @interface IReservedRange + * @property {number|null} [start] ReservedRange start + * @property {number|null} [end] ReservedRange end + */ + + /** + * Constructs a new ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents a ReservedRange. + * @implements IReservedRange + * @constructor + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + */ + function ReservedRange(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservedRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.start = 0; + + /** + * ReservedRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.end = 0; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance + */ + ReservedRange.create = function create(properties) { + return new ReservedRange(properties); + }; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified 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 + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + */ + ReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) + return object; + let message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this ReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + * @returns {Object.} JSON object + */ + ReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservedRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ReservedRange"; + }; + + return ReservedRange; + })(); + + return DescriptorProto; + })(); + + protobuf.FieldDescriptorProto = (function() { + + /** + * Properties of a FieldDescriptorProto. + * @memberof google.protobuf + * @interface IFieldDescriptorProto + * @property {string|null} [name] FieldDescriptorProto name + * @property {number|null} [number] FieldDescriptorProto number + * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label + * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type + * @property {string|null} [typeName] FieldDescriptorProto typeName + * @property {string|null} [extendee] FieldDescriptorProto extendee + * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue + * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex + * @property {string|null} [jsonName] FieldDescriptorProto jsonName + * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options + */ + + /** + * Constructs a new FieldDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FieldDescriptorProto. + * @implements IFieldDescriptorProto + * @constructor + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + */ + function FieldDescriptorProto(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - 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()); - }; + /** + * FieldDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.name = ""; - /** - * 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.gradientKey != null && message.hasOwnProperty("gradientKey")) - if (!$util.isString(message.gradientKey)) - return "gradientKey: string expected"; - return null; - }; + /** + * FieldDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.number = 0; - /** - * Creates a GradientValidateKeyRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.GradientValidateKeyRequest - * @static - * @param {Object.} object Plain object - * @returns {BI.GradientValidateKeyRequest} GradientValidateKeyRequest - */ - GradientValidateKeyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.GradientValidateKeyRequest) - return object; - let message = new $root.BI.GradientValidateKeyRequest(); - if (object.gradientKey != null) - message.gradientKey = String(object.gradientKey); - return message; - }; + /** + * FieldDescriptorProto label. + * @member {google.protobuf.FieldDescriptorProto.Label} label + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.label = 1; - /** - * Creates a plain object from a GradientValidateKeyRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.GradientValidateKeyRequest - * @static - * @param {BI.GradientValidateKeyRequest} message GradientValidateKeyRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GradientValidateKeyRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.gradientKey = ""; - if (message.gradientKey != null && message.hasOwnProperty("gradientKey")) - object.gradientKey = message.gradientKey; - return object; - }; + /** + * FieldDescriptorProto type. + * @member {google.protobuf.FieldDescriptorProto.Type} type + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.type = 1; - /** - * Converts this GradientValidateKeyRequest to JSON. - * @function toJSON - * @memberof BI.GradientValidateKeyRequest - * @instance - * @returns {Object.} JSON object - */ - GradientValidateKeyRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * FieldDescriptorProto typeName. + * @member {string} typeName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.typeName = ""; - /** - * Gets the default type url for GradientValidateKeyRequest - * @function getTypeUrl - * @memberof BI.GradientValidateKeyRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GradientValidateKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.GradientValidateKeyRequest"; - }; + /** + * FieldDescriptorProto extendee. + * @member {string} extendee + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.extendee = ""; - return GradientValidateKeyRequest; - })(); + /** + * FieldDescriptorProto defaultValue. + * @member {string} defaultValue + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.defaultValue = ""; - BI.GradientValidateKeyResponse = (function() { + /** + * FieldDescriptorProto oneofIndex. + * @member {number} oneofIndex + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.oneofIndex = 0; - /** - * Properties of a GradientValidateKeyResponse. - * @memberof BI - * @interface IGradientValidateKeyResponse - * @property {boolean|null} [success] GradientValidateKeyResponse success - * @property {string|null} [message] GradientValidateKeyResponse message - */ + /** + * FieldDescriptorProto jsonName. + * @member {string} jsonName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.jsonName = ""; - /** - * Constructs a new GradientValidateKeyResponse. - * @memberof BI - * @classdesc Represents a GradientValidateKeyResponse. - * @implements IGradientValidateKeyResponse - * @constructor - * @param {BI.IGradientValidateKeyResponse=} [properties] Properties to set - */ - function GradientValidateKeyResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * FieldDescriptorProto options. + * @member {google.protobuf.IFieldOptions|null|undefined} options + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.options = null; - /** - * GradientValidateKeyResponse success. - * @member {boolean} success - * @memberof BI.GradientValidateKeyResponse - * @instance - */ - GradientValidateKeyResponse.prototype.success = false; + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance + */ + FieldDescriptorProto.create = function create(properties) { + return new FieldDescriptorProto(properties); + }; - /** - * GradientValidateKeyResponse message. - * @member {string} message - * @memberof BI.GradientValidateKeyResponse - * @instance - */ - GradientValidateKeyResponse.prototype.message = ""; + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); + if (message.label != null && Object.hasOwnProperty.call(message, "label")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); + if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); + if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); + return writer; + }; - /** - * Creates a new GradientValidateKeyResponse instance using the specified properties. - * @function create - * @memberof BI.GradientValidateKeyResponse - * @static - * @param {BI.IGradientValidateKeyResponse=} [properties] Properties to set - * @returns {BI.GradientValidateKeyResponse} GradientValidateKeyResponse instance - */ - GradientValidateKeyResponse.create = function create(properties) { - return new GradientValidateKeyResponse(properties); - }; + /** + * 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(); + }; - /** - * Encodes the specified GradientValidateKeyResponse message. Does not implicitly {@link BI.GradientValidateKeyResponse.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - return writer; - }; + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 3: { + message.number = reader.int32(); + break; + } + case 4: { + message.label = reader.int32(); + break; + } + case 5: { + message.type = reader.int32(); + break; + } + case 6: { + message.typeName = reader.string(); + break; + } + case 2: { + message.extendee = reader.string(); + break; + } + case 7: { + message.defaultValue = reader.string(); + break; + } + case 9: { + message.oneofIndex = reader.int32(); + break; + } + case 10: { + message.jsonName = reader.string(); + break; + } + case 8: { + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * 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 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()); + }; - /** - * Decodes a GradientValidateKeyResponse message from the specified reader or buffer. - * @function decode - * @memberof BI.GradientValidateKeyResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientValidateKeyResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.success = reader.bool(); + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 2: + case 3: break; } - case 2: { - message.message = reader.string(); + 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); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + */ + FieldDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldDescriptorProto) + return object; + let message = new $root.google.protobuf.FieldDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + switch (object.label) { + default: + if (typeof object.label === "number") { + message.label = object.label; break; } + break; + case "LABEL_OPTIONAL": + case 1: + message.label = 1; + break; + case "LABEL_REQUIRED": + case 2: + message.label = 2; + break; + case "LABEL_REPEATED": + case 3: + message.label = 3; + break; + } + switch (object.type) { default: - reader.skipType(tag & 7); + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "TYPE_DOUBLE": + case 1: + message.type = 1; + break; + case "TYPE_FLOAT": + case 2: + message.type = 2; + break; + case "TYPE_INT64": + case 3: + message.type = 3; + break; + case "TYPE_UINT64": + case 4: + message.type = 4; + break; + case "TYPE_INT32": + case 5: + message.type = 5; + break; + case "TYPE_FIXED64": + case 6: + message.type = 6; + break; + case "TYPE_FIXED32": + case 7: + message.type = 7; + break; + case "TYPE_BOOL": + case 8: + message.type = 8; + break; + case "TYPE_STRING": + case 9: + message.type = 9; + break; + case "TYPE_GROUP": + case 10: + message.type = 10; + break; + case "TYPE_MESSAGE": + case 11: + message.type = 11; + break; + case "TYPE_BYTES": + case 12: + message.type = 12; + break; + case "TYPE_UINT32": + case 13: + message.type = 13; + break; + case "TYPE_ENUM": + case 14: + message.type = 14; + break; + case "TYPE_SFIXED32": + case 15: + message.type = 15; + break; + case "TYPE_SFIXED64": + case 16: + message.type = 16; + break; + case "TYPE_SINT32": + case 17: + message.type = 17; break; + case "TYPE_SINT64": + case 18: + message.type = 18; + break; + } + if (object.typeName != null) + message.typeName = String(object.typeName); + if (object.extendee != null) + message.extendee = String(object.extendee); + if (object.defaultValue != null) + message.defaultValue = String(object.defaultValue); + if (object.oneofIndex != null) + message.oneofIndex = object.oneofIndex | 0; + if (object.jsonName != null) + message.jsonName = String(object.jsonName); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); } - } - 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) { - if (typeof message !== "object" || message === null) - return "object 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"; - return null; - }; + return message; + }; - /** - * Creates a GradientValidateKeyResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.GradientValidateKeyResponse - * @static - * @param {Object.} object Plain object - * @returns {BI.GradientValidateKeyResponse} GradientValidateKeyResponse - */ - GradientValidateKeyResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.GradientValidateKeyResponse) + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.name = ""; + object.extendee = ""; + object.number = 0; + object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; + object.type = options.enums === String ? "TYPE_DOUBLE" : 1; + object.typeName = ""; + object.defaultValue = ""; + object.options = null; + object.oneofIndex = 0; + object.jsonName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.extendee != null && message.hasOwnProperty("extendee")) + object.extendee = message.extendee; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.label != null && message.hasOwnProperty("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")) + 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")) + object.typeName = message.typeName; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + object.defaultValue = message.defaultValue; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + object.oneofIndex = message.oneofIndex; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + object.jsonName = message.jsonName; return object; - let message = new $root.BI.GradientValidateKeyResponse(); - if (object.success != null) - message.success = Boolean(object.success); - if (object.message != null) - message.message = String(object.message); - return message; - }; + }; - /** - * Creates a plain object from a GradientValidateKeyResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.GradientValidateKeyResponse - * @static - * @param {BI.GradientValidateKeyResponse} message GradientValidateKeyResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GradientValidateKeyResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.success = false; - object.message = ""; - } - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - return object; - }; + /** + * Converts this FieldDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FieldDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FieldDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this GradientValidateKeyResponse to JSON. - * @function toJSON - * @memberof BI.GradientValidateKeyResponse - * @instance - * @returns {Object.} JSON object - */ - GradientValidateKeyResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for FieldDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldDescriptorProto"; + }; - /** - * Gets the default type url for GradientValidateKeyResponse - * @function getTypeUrl - * @memberof BI.GradientValidateKeyResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GradientValidateKeyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.GradientValidateKeyResponse"; - }; + /** + * Type enum. + * @name google.protobuf.FieldDescriptorProto.Type + * @enum {number} + * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value + * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value + * @property {number} TYPE_INT64=3 TYPE_INT64 value + * @property {number} TYPE_UINT64=4 TYPE_UINT64 value + * @property {number} TYPE_INT32=5 TYPE_INT32 value + * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value + * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value + * @property {number} TYPE_BOOL=8 TYPE_BOOL value + * @property {number} TYPE_STRING=9 TYPE_STRING value + * @property {number} TYPE_GROUP=10 TYPE_GROUP value + * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value + * @property {number} TYPE_BYTES=12 TYPE_BYTES value + * @property {number} TYPE_UINT32=13 TYPE_UINT32 value + * @property {number} TYPE_ENUM=14 TYPE_ENUM value + * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value + * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value + * @property {number} TYPE_SINT32=17 TYPE_SINT32 value + * @property {number} TYPE_SINT64=18 TYPE_SINT64 value + */ + FieldDescriptorProto.Type = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "TYPE_DOUBLE"] = 1; + values[valuesById[2] = "TYPE_FLOAT"] = 2; + values[valuesById[3] = "TYPE_INT64"] = 3; + values[valuesById[4] = "TYPE_UINT64"] = 4; + values[valuesById[5] = "TYPE_INT32"] = 5; + values[valuesById[6] = "TYPE_FIXED64"] = 6; + values[valuesById[7] = "TYPE_FIXED32"] = 7; + values[valuesById[8] = "TYPE_BOOL"] = 8; + values[valuesById[9] = "TYPE_STRING"] = 9; + values[valuesById[10] = "TYPE_GROUP"] = 10; + values[valuesById[11] = "TYPE_MESSAGE"] = 11; + values[valuesById[12] = "TYPE_BYTES"] = 12; + values[valuesById[13] = "TYPE_UINT32"] = 13; + values[valuesById[14] = "TYPE_ENUM"] = 14; + values[valuesById[15] = "TYPE_SFIXED32"] = 15; + values[valuesById[16] = "TYPE_SFIXED64"] = 16; + values[valuesById[17] = "TYPE_SINT32"] = 17; + values[valuesById[18] = "TYPE_SINT64"] = 18; + return values; + })(); - return GradientValidateKeyResponse; - })(); + /** + * Label enum. + * @name google.protobuf.FieldDescriptorProto.Label + * @enum {number} + * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value + * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value + * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value + */ + FieldDescriptorProto.Label = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "LABEL_OPTIONAL"] = 1; + values[valuesById[2] = "LABEL_REQUIRED"] = 2; + values[valuesById[3] = "LABEL_REPEATED"] = 3; + return values; + })(); + + return FieldDescriptorProto; + })(); - BI.GradientSaveRequest = (function() { + protobuf.OneofDescriptorProto = (function() { - /** - * Properties of a GradientSaveRequest. - * @memberof BI - * @interface IGradientSaveRequest - * @property {string|null} [gradientKey] GradientSaveRequest gradientKey - * @property {number|Long|null} [enterpriseUserId] GradientSaveRequest enterpriseUserId - */ + /** + * Properties of an OneofDescriptorProto. + * @memberof google.protobuf + * @interface IOneofDescriptorProto + * @property {string|null} [name] OneofDescriptorProto name + * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options + */ - /** - * Constructs a new GradientSaveRequest. - * @memberof BI - * @classdesc Represents a GradientSaveRequest. - * @implements IGradientSaveRequest - * @constructor - * @param {BI.IGradientSaveRequest=} [properties] Properties to set - */ - function GradientSaveRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new OneofDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an OneofDescriptorProto. + * @implements IOneofDescriptorProto + * @constructor + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + */ + function OneofDescriptorProto(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * GradientSaveRequest gradientKey. - * @member {string} gradientKey - * @memberof BI.GradientSaveRequest - * @instance - */ - GradientSaveRequest.prototype.gradientKey = ""; + /** + * OneofDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.name = ""; - /** - * GradientSaveRequest enterpriseUserId. - * @member {number|Long} enterpriseUserId - * @memberof BI.GradientSaveRequest - * @instance - */ - GradientSaveRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * OneofDescriptorProto options. + * @member {google.protobuf.IOneofOptions|null|undefined} options + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.options = null; - /** - * Creates a new GradientSaveRequest instance using the specified properties. - * @function create - * @memberof BI.GradientSaveRequest - * @static - * @param {BI.IGradientSaveRequest=} [properties] Properties to set - * @returns {BI.GradientSaveRequest} GradientSaveRequest instance - */ - GradientSaveRequest.create = function create(properties) { - return new GradientSaveRequest(properties); - }; + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance + */ + OneofDescriptorProto.create = function create(properties) { + return new OneofDescriptorProto(properties); + }; - /** - * Encodes the specified GradientSaveRequest message. Does not implicitly {@link BI.GradientSaveRequest.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.gradientKey != null && Object.hasOwnProperty.call(message, "gradientKey")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.gradientKey); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.enterpriseUserId); - return writer; - }; + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + 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(); - }; + /** + * 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 a GradientSaveRequest message from the specified reader or buffer. - * @function decode - * @memberof BI.GradientSaveRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientSaveRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.gradientKey = reader.string(); - break; - } - case 2: { - message.enterpriseUserId = reader.int64(); + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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 - * @memberof BI.GradientSaveRequest - * @static - * @param {Object.} object Plain object - * @returns {BI.GradientSaveRequest} GradientSaveRequest - */ - GradientSaveRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.GradientSaveRequest) - return object; - let message = new $root.BI.GradientSaveRequest(); - if (object.gradientKey != null) - message.gradientKey = String(object.gradientKey); - if (object.enterpriseUserId != null) - if ($util.Long) - (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") - message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") - message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - return message; - }; - - /** - * Creates a plain object from a GradientSaveRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.GradientSaveRequest - * @static - * @param {BI.GradientSaveRequest} message GradientSaveRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GradientSaveRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.gradientKey = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - } - if (message.gradientKey != null && message.hasOwnProperty("gradientKey")) - object.gradientKey = message.gradientKey; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof 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; - return object; - }; + return message; + }; - /** - * Converts this GradientSaveRequest to JSON. - * @function toJSON - * @memberof BI.GradientSaveRequest - * @instance - * @returns {Object.} JSON object - */ - GradientSaveRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * 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()); + }; - /** - * Gets the default type url for GradientSaveRequest - * @function getTypeUrl - * @memberof BI.GradientSaveRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GradientSaveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.GradientSaveRequest"; - }; + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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); + if (error) + return "options." + error; + } + return null; + }; - return GradientSaveRequest; - })(); + /** + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + */ + OneofDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofDescriptorProto) + return object; + let message = new $root.google.protobuf.OneofDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); + } + return message; + }; - BI.GradientSaveResponse = (function() { + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OneofDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); + return object; + }; - /** - * Properties of a GradientSaveResponse. - * @memberof BI - * @interface IGradientSaveResponse - * @property {boolean|null} [success] GradientSaveResponse success - * @property {BI.GradientIntegrationStatus|null} [status] GradientSaveResponse status - * @property {string|null} [message] GradientSaveResponse message - */ + /** + * Converts this OneofDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.OneofDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + OneofDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new GradientSaveResponse. - * @memberof BI - * @classdesc Represents a GradientSaveResponse. - * @implements IGradientSaveResponse - * @constructor - * @param {BI.IGradientSaveResponse=} [properties] Properties to set - */ - function GradientSaveResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Gets the default type url for OneofDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OneofDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.OneofDescriptorProto"; + }; - /** - * GradientSaveResponse success. - * @member {boolean} success - * @memberof BI.GradientSaveResponse - * @instance - */ - GradientSaveResponse.prototype.success = false; + return OneofDescriptorProto; + })(); - /** - * GradientSaveResponse status. - * @member {BI.GradientIntegrationStatus} status - * @memberof BI.GradientSaveResponse - * @instance - */ - GradientSaveResponse.prototype.status = 0; + protobuf.EnumDescriptorProto = (function() { - /** - * GradientSaveResponse message. - * @member {string} message - * @memberof BI.GradientSaveResponse - * @instance - */ - GradientSaveResponse.prototype.message = ""; + /** + * Properties of an EnumDescriptorProto. + * @memberof google.protobuf + * @interface IEnumDescriptorProto + * @property {string|null} [name] EnumDescriptorProto name + * @property {Array.|null} [value] EnumDescriptorProto value + * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options + */ - /** - * Creates a new GradientSaveResponse instance using the specified properties. - * @function create - * @memberof BI.GradientSaveResponse - * @static - * @param {BI.IGradientSaveResponse=} [properties] Properties to set - * @returns {BI.GradientSaveResponse} GradientSaveResponse instance - */ - GradientSaveResponse.create = function create(properties) { - return new GradientSaveResponse(properties); - }; + /** + * Constructs a new EnumDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumDescriptorProto. + * @implements IEnumDescriptorProto + * @constructor + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + */ + function EnumDescriptorProto(properties) { + this.value = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified GradientSaveResponse message. Does not implicitly {@link BI.GradientSaveResponse.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); - return writer; - }; + /** + * EnumDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.name = ""; - /** - * 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(); - }; + /** + * EnumDescriptorProto value. + * @member {Array.} value + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.value = $util.emptyArray; - /** - * Decodes a GradientSaveResponse message from the specified reader or buffer. - * @function decode - * @memberof BI.GradientSaveResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientSaveResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.success = reader.bool(); - break; - } - case 2: { - message.status = reader.int32(); - break; - } - case 3: { - message.message = reader.string(); + /** + * EnumDescriptorProto options. + * @member {google.protobuf.IEnumOptions|null|undefined} options + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.options = null; + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance + */ + EnumDescriptorProto.create = function create(properties) { + return new EnumDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.value != null && message.value.length) + for (let i = 0; i < message.value.length; ++i) + $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + 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 + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.value && message.value.length)) + message.value = []; + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + 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()); - }; + /** + * 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 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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; + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + if (error) + return "value." + error; + } } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.google.protobuf.EnumOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; - /** - * Creates a GradientSaveResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.GradientSaveResponse - * @static - * @param {Object.} object Plain object - * @returns {BI.GradientSaveResponse} GradientSaveResponse - */ - GradientSaveResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.GradientSaveResponse) - return object; - let message = new $root.BI.GradientSaveResponse(); - if (object.success != null) - message.success = Boolean(object.success); - switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; + /** + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + */ + EnumDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto) + return object; + let message = new $root.google.protobuf.EnumDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.value) { + if (!Array.isArray(object.value)) + 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") + throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); + message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); + } } - break; - case "NOTCONNECTED": - case 0: - message.status = 0; - break; - case "PENDING": - case 1: - message.status = 1; - break; - case "CONNECTED": - case 2: - message.status = 2; - break; - case "NONE": - case 3: - message.status = 3; - break; - } - if (object.message != null) - message.message = String(object.message); - return message; - }; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); + } + return message; + }; - /** - * Creates a plain object from a GradientSaveResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.GradientSaveResponse - * @static - * @param {BI.GradientSaveResponse} message GradientSaveResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GradientSaveResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.success = false; - object.status = options.enums === String ? "NOTCONNECTED" : 0; - object.message = ""; - } - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.status != null && message.hasOwnProperty("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")) - object.message = message.message; - return object; - }; + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.value = []; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.value && message.value.length) { + object.value = []; + for (let j = 0; j < message.value.length; ++j) + object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); + return object; + }; - /** - * Converts this GradientSaveResponse to JSON. - * @function toJSON - * @memberof BI.GradientSaveResponse - * @instance - * @returns {Object.} JSON object - */ - GradientSaveResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this EnumDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + EnumDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for GradientSaveResponse - * @function getTypeUrl - * @memberof BI.GradientSaveResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GradientSaveResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.GradientSaveResponse"; - }; + /** + * Gets the default type url for EnumDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto"; + }; - return GradientSaveResponse; - })(); + return EnumDescriptorProto; + })(); - BI.GradientRemoveRequest = (function() { + protobuf.EnumValueDescriptorProto = (function() { - /** - * Properties of a GradientRemoveRequest. - * @memberof BI - * @interface IGradientRemoveRequest - * @property {number|Long|null} [enterpriseUserId] GradientRemoveRequest enterpriseUserId - */ + /** + * Properties of an EnumValueDescriptorProto. + * @memberof google.protobuf + * @interface IEnumValueDescriptorProto + * @property {string|null} [name] EnumValueDescriptorProto name + * @property {number|null} [number] EnumValueDescriptorProto number + * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options + */ - /** - * Constructs a new GradientRemoveRequest. - * @memberof BI - * @classdesc Represents a GradientRemoveRequest. - * @implements IGradientRemoveRequest - * @constructor - * @param {BI.IGradientRemoveRequest=} [properties] Properties to set - */ - function GradientRemoveRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new EnumValueDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumValueDescriptorProto. + * @implements IEnumValueDescriptorProto + * @constructor + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + */ + function EnumValueDescriptorProto(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * GradientRemoveRequest enterpriseUserId. - * @member {number|Long} enterpriseUserId - * @memberof BI.GradientRemoveRequest - * @instance - */ - GradientRemoveRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * EnumValueDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.name = ""; - /** - * Creates a new GradientRemoveRequest instance using the specified properties. - * @function create - * @memberof BI.GradientRemoveRequest - * @static - * @param {BI.IGradientRemoveRequest=} [properties] Properties to set - * @returns {BI.GradientRemoveRequest} GradientRemoveRequest instance - */ - GradientRemoveRequest.create = function create(properties) { - return new GradientRemoveRequest(properties); - }; + /** + * EnumValueDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.number = 0; - /** - * Encodes the specified GradientRemoveRequest message. Does not implicitly {@link BI.GradientRemoveRequest.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - return writer; - }; + /** + * EnumValueDescriptorProto options. + * @member {google.protobuf.IEnumValueOptions|null|undefined} options + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.options = null; - /** - * 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(); - }; + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance + */ + EnumValueDescriptorProto.create = function create(properties) { + return new EnumValueDescriptorProto(properties); + }; - /** - * Decodes a GradientRemoveRequest message from the specified reader or buffer. - * @function decode - * @memberof BI.GradientRemoveRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientRemoveRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.enterpriseUserId = reader.int64(); + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + 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 + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.number = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + 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()); - }; + /** + * 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 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) { - if (typeof message !== "object" || message === null) - return "object 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; - }; + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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); + if (error) + return "options." + error; + } + return null; + }; - /** - * Creates a GradientRemoveRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.GradientRemoveRequest - * @static - * @param {Object.} object Plain object - * @returns {BI.GradientRemoveRequest} GradientRemoveRequest - */ - GradientRemoveRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.GradientRemoveRequest) + /** + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + */ + EnumValueDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) + return object; + let message = new $root.google.protobuf.EnumValueDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumValueDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.name = ""; + object.number = 0; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); return object; - let message = new $root.BI.GradientRemoveRequest(); - if (object.enterpriseUserId != null) - if ($util.Long) - (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") - message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") - message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - return message; - }; + }; - /** - * Creates a plain object from a GradientRemoveRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.GradientRemoveRequest - * @static - * @param {BI.GradientRemoveRequest} message GradientRemoveRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GradientRemoveRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - 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; - return object; - }; + /** + * Converts this EnumValueDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + EnumValueDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this GradientRemoveRequest to JSON. - * @function toJSON - * @memberof BI.GradientRemoveRequest - * @instance - * @returns {Object.} JSON object - */ - GradientRemoveRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for EnumValueDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumValueDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumValueDescriptorProto"; + }; - /** - * Gets the default type url for GradientRemoveRequest - * @function getTypeUrl - * @memberof BI.GradientRemoveRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GradientRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.GradientRemoveRequest"; - }; + return EnumValueDescriptorProto; + })(); - return GradientRemoveRequest; - })(); + protobuf.ServiceDescriptorProto = (function() { - BI.GradientRemoveResponse = (function() { + /** + * Properties of a ServiceDescriptorProto. + * @memberof google.protobuf + * @interface IServiceDescriptorProto + * @property {string|null} [name] ServiceDescriptorProto name + * @property {Array.|null} [method] ServiceDescriptorProto method + * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options + */ - /** - * Properties of a GradientRemoveResponse. - * @memberof BI - * @interface IGradientRemoveResponse - * @property {boolean|null} [success] GradientRemoveResponse success - * @property {string|null} [message] GradientRemoveResponse message - */ + /** + * Constructs a new ServiceDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a ServiceDescriptorProto. + * @implements IServiceDescriptorProto + * @constructor + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + */ + function ServiceDescriptorProto(properties) { + this.method = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new GradientRemoveResponse. - * @memberof BI - * @classdesc Represents a GradientRemoveResponse. - * @implements IGradientRemoveResponse - * @constructor - * @param {BI.IGradientRemoveResponse=} [properties] Properties to set - */ - function GradientRemoveResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ServiceDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.name = ""; - /** - * GradientRemoveResponse success. - * @member {boolean} success - * @memberof BI.GradientRemoveResponse - * @instance - */ - GradientRemoveResponse.prototype.success = false; + /** + * ServiceDescriptorProto method. + * @member {Array.} method + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.method = $util.emptyArray; - /** - * GradientRemoveResponse message. - * @member {string} message - * @memberof BI.GradientRemoveResponse - * @instance - */ - GradientRemoveResponse.prototype.message = ""; + /** + * ServiceDescriptorProto options. + * @member {google.protobuf.IServiceOptions|null|undefined} options + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.options = null; - /** - * Creates a new GradientRemoveResponse instance using the specified properties. - * @function create - * @memberof BI.GradientRemoveResponse - * @static - * @param {BI.IGradientRemoveResponse=} [properties] Properties to set - * @returns {BI.GradientRemoveResponse} GradientRemoveResponse instance - */ - GradientRemoveResponse.create = function create(properties) { - return new GradientRemoveResponse(properties); - }; + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance + */ + ServiceDescriptorProto.create = function create(properties) { + return new ServiceDescriptorProto(properties); + }; - /** - * Encodes the specified GradientRemoveResponse message. Does not implicitly {@link BI.GradientRemoveResponse.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - return writer; - }; + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.method != null && message.method.length) + for (let i = 0; i < message.method.length; ++i) + $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + 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(); - }; + /** + * 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 GradientRemoveResponse message from the specified reader or buffer. - * @function decode - * @memberof BI.GradientRemoveResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientRemoveResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.success = reader.bool(); + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.method && message.method.length)) + message.method = []; + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - case 2: { - message.message = reader.string(); - break; + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + if (error) + return "method." + error; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.google.protobuf.ServiceOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; - /** - * 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()); - }; + /** + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + */ + ServiceDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceDescriptorProto) + return object; + let message = new $root.google.protobuf.ServiceDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.method) { + if (!Array.isArray(object.method)) + 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") + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); + message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); + } + return message; + }; - /** - * 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) { - if (typeof message !== "object" || message === null) - return "object 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"; - return null; - }; + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.method = []; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("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); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this ServiceDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + ServiceDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ServiceDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ServiceDescriptorProto"; + }; - /** - * Creates a GradientRemoveResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.GradientRemoveResponse - * @static - * @param {Object.} object Plain object - * @returns {BI.GradientRemoveResponse} GradientRemoveResponse - */ - GradientRemoveResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.GradientRemoveResponse) - return object; - let message = new $root.BI.GradientRemoveResponse(); - if (object.success != null) - message.success = Boolean(object.success); - if (object.message != null) - message.message = String(object.message); - return message; - }; + return ServiceDescriptorProto; + })(); - /** - * Creates a plain object from a GradientRemoveResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.GradientRemoveResponse - * @static - * @param {BI.GradientRemoveResponse} message GradientRemoveResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GradientRemoveResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.success = false; - object.message = ""; - } - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - return object; - }; + protobuf.MethodDescriptorProto = (function() { - /** - * Converts this GradientRemoveResponse to JSON. - * @function toJSON - * @memberof BI.GradientRemoveResponse - * @instance - * @returns {Object.} JSON object - */ - GradientRemoveResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Properties of a MethodDescriptorProto. + * @memberof google.protobuf + * @interface IMethodDescriptorProto + * @property {string|null} [name] MethodDescriptorProto name + * @property {string|null} [inputType] MethodDescriptorProto inputType + * @property {string|null} [outputType] MethodDescriptorProto outputType + * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options + * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming + * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming + */ - /** - * Gets the default type url for GradientRemoveResponse - * @function getTypeUrl - * @memberof BI.GradientRemoveResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GradientRemoveResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Constructs a new MethodDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a MethodDescriptorProto. + * @implements IMethodDescriptorProto + * @constructor + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + */ + function MethodDescriptorProto(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return typeUrlPrefix + "/BI.GradientRemoveResponse"; - }; - return GradientRemoveResponse; - })(); + /** + * MethodDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.name = ""; - BI.GradientSyncRequest = (function() { + /** + * MethodDescriptorProto inputType. + * @member {string} inputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.inputType = ""; - /** - * Properties of a GradientSyncRequest. - * @memberof BI - * @interface IGradientSyncRequest - * @property {number|Long|null} [enterpriseUserId] GradientSyncRequest enterpriseUserId - */ + /** + * MethodDescriptorProto outputType. + * @member {string} outputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.outputType = ""; - /** - * Constructs a new GradientSyncRequest. - * @memberof BI - * @classdesc Represents a GradientSyncRequest. - * @implements IGradientSyncRequest - * @constructor - * @param {BI.IGradientSyncRequest=} [properties] Properties to set - */ - function GradientSyncRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * MethodDescriptorProto options. + * @member {google.protobuf.IMethodOptions|null|undefined} options + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.options = null; - /** - * GradientSyncRequest enterpriseUserId. - * @member {number|Long} enterpriseUserId - * @memberof BI.GradientSyncRequest - * @instance - */ - GradientSyncRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * MethodDescriptorProto clientStreaming. + * @member {boolean} clientStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.clientStreaming = false; - /** - * Creates a new GradientSyncRequest instance using the specified properties. - * @function create - * @memberof BI.GradientSyncRequest - * @static - * @param {BI.IGradientSyncRequest=} [properties] Properties to set - * @returns {BI.GradientSyncRequest} GradientSyncRequest instance - */ - GradientSyncRequest.create = function create(properties) { - return new GradientSyncRequest(properties); - }; + /** + * MethodDescriptorProto serverStreaming. + * @member {boolean} serverStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.serverStreaming = false; - /** - * Encodes the specified GradientSyncRequest message. Does not implicitly {@link BI.GradientSyncRequest.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - return writer; - }; + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance + */ + MethodDescriptorProto.create = function create(properties) { + return new MethodDescriptorProto(properties); + }; - /** - * 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(); - }; + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); + if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); + if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); + return writer; + }; - /** - * Decodes a GradientSyncRequest message from the specified reader or buffer. - * @function decode - * @memberof BI.GradientSyncRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientSyncRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.enterpriseUserId = reader.int64(); + /** + * 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 + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.inputType = reader.string(); + break; + } + case 3: { + message.outputType = reader.string(); + break; + } + case 4: { + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + break; + } + case 5: { + message.clientStreaming = reader.bool(); + break; + } + case 6: { + message.serverStreaming = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - 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) { - if (typeof message !== "object" || message === null) - return "object 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 GradientSyncRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.GradientSyncRequest - * @static - * @param {Object.} object Plain object - * @returns {BI.GradientSyncRequest} GradientSyncRequest - */ - GradientSyncRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.GradientSyncRequest) - return object; - let message = new $root.BI.GradientSyncRequest(); - if (object.enterpriseUserId != null) - if ($util.Long) - (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") - message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") - message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - return message; - }; + return message; + }; - /** - * Creates a plain object from a GradientSyncRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.GradientSyncRequest - * @static - * @param {BI.GradientSyncRequest} message GradientSyncRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GradientSyncRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - 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; - return object; - }; + /** + * 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()); + }; - /** - * Converts this GradientSyncRequest to JSON. - * @function toJSON - * @memberof BI.GradientSyncRequest - * @instance - * @returns {Object.} JSON object - */ - GradientSyncRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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); + 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; + }; - /** - * Gets the default type url for GradientSyncRequest - * @function getTypeUrl - * @memberof BI.GradientSyncRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GradientSyncRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.GradientSyncRequest"; - }; + /** + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + */ + MethodDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodDescriptorProto) + return object; + let message = new $root.google.protobuf.MethodDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.inputType != null) + message.inputType = String(object.inputType); + if (object.outputType != null) + message.outputType = String(object.outputType); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); + } + if (object.clientStreaming != null) + message.clientStreaming = Boolean(object.clientStreaming); + if (object.serverStreaming != null) + message.serverStreaming = Boolean(object.serverStreaming); + return message; + }; - return GradientSyncRequest; - })(); + /** + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.name = ""; + object.inputType = ""; + object.outputType = ""; + object.options = null; + object.clientStreaming = false; + object.serverStreaming = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.inputType != null && message.hasOwnProperty("inputType")) + object.inputType = message.inputType; + if (message.outputType != null && message.hasOwnProperty("outputType")) + object.outputType = message.outputType; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + object.clientStreaming = message.clientStreaming; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + object.serverStreaming = message.serverStreaming; + return object; + }; - BI.GradientSyncResponse = (function() { + /** + * Converts this MethodDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.MethodDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + MethodDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a GradientSyncResponse. - * @memberof BI - * @interface IGradientSyncResponse - * @property {boolean|null} [success] GradientSyncResponse success - * @property {BI.GradientIntegrationStatus|null} [status] GradientSyncResponse status - * @property {string|null} [message] GradientSyncResponse message - */ + /** + * Gets the default type url for MethodDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MethodDescriptorProto"; + }; - /** - * Constructs a new GradientSyncResponse. - * @memberof BI - * @classdesc Represents a GradientSyncResponse. - * @implements IGradientSyncResponse - * @constructor - * @param {BI.IGradientSyncResponse=} [properties] Properties to set - */ - function GradientSyncResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return MethodDescriptorProto; + })(); - /** - * GradientSyncResponse success. - * @member {boolean} success - * @memberof BI.GradientSyncResponse - * @instance - */ - GradientSyncResponse.prototype.success = false; + protobuf.FileOptions = (function() { - /** - * GradientSyncResponse status. - * @member {BI.GradientIntegrationStatus} status - * @memberof BI.GradientSyncResponse - * @instance - */ - GradientSyncResponse.prototype.status = 0; + /** + * Properties of a FileOptions. + * @memberof google.protobuf + * @interface IFileOptions + * @property {string|null} [javaPackage] FileOptions javaPackage + * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname + * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles + * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash + * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 + * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor + * @property {string|null} [goPackage] FileOptions goPackage + * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices + * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices + * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices + * @property {boolean|null} [deprecated] FileOptions deprecated + * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas + * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix + * @property {string|null} [csharpNamespace] FileOptions csharpNamespace + * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption + */ - /** - * GradientSyncResponse message. - * @member {string} message - * @memberof BI.GradientSyncResponse - * @instance - */ - GradientSyncResponse.prototype.message = ""; + /** + * Constructs a new FileOptions. + * @memberof google.protobuf + * @classdesc Represents a FileOptions. + * @implements IFileOptions + * @constructor + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + */ + function FileOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new GradientSyncResponse instance using the specified properties. - * @function create - * @memberof BI.GradientSyncResponse - * @static - * @param {BI.IGradientSyncResponse=} [properties] Properties to set - * @returns {BI.GradientSyncResponse} GradientSyncResponse instance - */ - GradientSyncResponse.create = function create(properties) { - return new GradientSyncResponse(properties); - }; + /** + * FileOptions javaPackage. + * @member {string} javaPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaPackage = ""; - /** - * Encodes the specified GradientSyncResponse message. Does not implicitly {@link BI.GradientSyncResponse.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); - return writer; - }; + /** + * FileOptions javaOuterClassname. + * @member {string} javaOuterClassname + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaOuterClassname = ""; - /** - * 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(); - }; + /** + * FileOptions javaMultipleFiles. + * @member {boolean} javaMultipleFiles + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaMultipleFiles = false; - /** - * Decodes a GradientSyncResponse message from the specified reader or buffer. - * @function decode - * @memberof BI.GradientSyncResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientSyncResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.success = reader.bool(); - break; - } - case 2: { - message.status = reader.int32(); - break; - } - case 3: { - message.message = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * FileOptions javaGenerateEqualsAndHash. + * @member {boolean} javaGenerateEqualsAndHash + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenerateEqualsAndHash = false; - /** - * 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()); - }; + /** + * FileOptions javaStringCheckUtf8. + * @member {boolean} javaStringCheckUtf8 + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaStringCheckUtf8 = false; - /** - * 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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; - }; + /** + * FileOptions optimizeFor. + * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.optimizeFor = 1; - /** - * Creates a GradientSyncResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.GradientSyncResponse - * @static - * @param {Object.} object Plain object - * @returns {BI.GradientSyncResponse} GradientSyncResponse - */ - GradientSyncResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.GradientSyncResponse) - return object; - let message = new $root.BI.GradientSyncResponse(); - if (object.success != null) - message.success = Boolean(object.success); - switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; - } - break; - case "NOTCONNECTED": - case 0: - message.status = 0; - break; - case "PENDING": - case 1: - message.status = 1; - break; - case "CONNECTED": - case 2: - message.status = 2; - break; - case "NONE": - case 3: - message.status = 3; - break; - } - if (object.message != null) - message.message = String(object.message); - return message; - }; + /** + * FileOptions goPackage. + * @member {string} goPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.goPackage = ""; - /** - * Creates a plain object from a GradientSyncResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.GradientSyncResponse - * @static - * @param {BI.GradientSyncResponse} message GradientSyncResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GradientSyncResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.success = false; - object.status = options.enums === String ? "NOTCONNECTED" : 0; - object.message = ""; - } - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.status != null && message.hasOwnProperty("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")) - object.message = message.message; - return object; - }; + /** + * FileOptions ccGenericServices. + * @member {boolean} ccGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccGenericServices = false; - /** - * Converts this GradientSyncResponse to JSON. - * @function toJSON - * @memberof BI.GradientSyncResponse - * @instance - * @returns {Object.} JSON object - */ - GradientSyncResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * FileOptions javaGenericServices. + * @member {boolean} javaGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenericServices = false; - /** - * Gets the default type url for GradientSyncResponse - * @function getTypeUrl - * @memberof BI.GradientSyncResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GradientSyncResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.GradientSyncResponse"; - }; + /** + * FileOptions pyGenericServices. + * @member {boolean} pyGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.pyGenericServices = false; - return GradientSyncResponse; - })(); + /** + * FileOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.deprecated = false; - /** - * GradientIntegrationStatus enum. - * @name BI.GradientIntegrationStatus - * @enum {number} - * @property {number} NOTCONNECTED=0 NOTCONNECTED value - * @property {number} PENDING=1 PENDING value - * @property {number} CONNECTED=2 CONNECTED value - * @property {number} NONE=3 NONE value - */ - BI.GradientIntegrationStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NOTCONNECTED"] = 0; - values[valuesById[1] = "PENDING"] = 1; - values[valuesById[2] = "CONNECTED"] = 2; - values[valuesById[3] = "NONE"] = 3; - return values; - })(); + /** + * FileOptions ccEnableArenas. + * @member {boolean} ccEnableArenas + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccEnableArenas = false; - BI.NetPromoterScoreSurveySubmissionRequest = (function() { + /** + * FileOptions objcClassPrefix. + * @member {string} objcClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.objcClassPrefix = ""; - /** - * Properties of a NetPromoterScoreSurveySubmissionRequest. - * @memberof BI - * @interface INetPromoterScoreSurveySubmissionRequest - * @property {number|null} [surveyScore] NetPromoterScoreSurveySubmissionRequest surveyScore - * @property {string|null} [notes] NetPromoterScoreSurveySubmissionRequest notes - */ + /** + * FileOptions csharpNamespace. + * @member {string} csharpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.csharpNamespace = ""; - /** - * Constructs a new NetPromoterScoreSurveySubmissionRequest. - * @memberof BI - * @classdesc Represents a NetPromoterScoreSurveySubmissionRequest. - * @implements INetPromoterScoreSurveySubmissionRequest - * @constructor - * @param {BI.INetPromoterScoreSurveySubmissionRequest=} [properties] Properties to set - */ - function NetPromoterScoreSurveySubmissionRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * FileOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.uninterpretedOption = $util.emptyArray; - /** - * NetPromoterScoreSurveySubmissionRequest surveyScore. - * @member {number} surveyScore - * @memberof BI.NetPromoterScoreSurveySubmissionRequest - * @instance - */ - NetPromoterScoreSurveySubmissionRequest.prototype.surveyScore = 0; + /** + * Creates a new FileOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + * @returns {google.protobuf.FileOptions} FileOptions instance + */ + FileOptions.create = function create(properties) { + return new FileOptions(properties); + }; - /** - * NetPromoterScoreSurveySubmissionRequest notes. - * @member {string} notes - * @memberof BI.NetPromoterScoreSurveySubmissionRequest - * @instance - */ - NetPromoterScoreSurveySubmissionRequest.prototype.notes = ""; + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); + if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); + if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); + if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); + if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); + if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); + if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); + if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); + if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); + if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) + writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); + if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) + writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); + if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) + writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); + if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) + writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (let i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; - /** - * Creates a new NetPromoterScoreSurveySubmissionRequest instance using the specified properties. - * @function create - * @memberof BI.NetPromoterScoreSurveySubmissionRequest - * @static - * @param {BI.INetPromoterScoreSurveySubmissionRequest=} [properties] Properties to set - * @returns {BI.NetPromoterScoreSurveySubmissionRequest} NetPromoterScoreSurveySubmissionRequest instance - */ - NetPromoterScoreSurveySubmissionRequest.create = function create(properties) { - return new NetPromoterScoreSurveySubmissionRequest(properties); - }; + /** + * 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(); + }; - /** - * Encodes the specified NetPromoterScoreSurveySubmissionRequest message. Does not implicitly {@link BI.NetPromoterScoreSurveySubmissionRequest.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.surveyScore != null && Object.hasOwnProperty.call(message, "surveyScore")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.surveyScore); - if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.notes); - return writer; - }; + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.javaPackage = reader.string(); + break; + } + case 8: { + message.javaOuterClassname = reader.string(); + break; + } + case 10: { + message.javaMultipleFiles = reader.bool(); + break; + } + case 20: { + message.javaGenerateEqualsAndHash = reader.bool(); + break; + } + case 27: { + message.javaStringCheckUtf8 = reader.bool(); + break; + } + case 9: { + message.optimizeFor = reader.int32(); + break; + } + case 11: { + message.goPackage = reader.string(); + break; + } + case 16: { + message.ccGenericServices = reader.bool(); + break; + } + case 17: { + message.javaGenericServices = reader.bool(); + break; + } + case 18: { + message.pyGenericServices = reader.bool(); + break; + } + case 23: { + message.deprecated = reader.bool(); + break; + } + case 31: { + message.ccEnableArenas = reader.bool(); + break; + } + case 36: { + message.objcClassPrefix = reader.string(); + break; + } + case 37: { + message.csharpNamespace = reader.string(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * 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 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()); + }; - /** - * Decodes a NetPromoterScoreSurveySubmissionRequest message from the specified reader or buffer. - * @function decode - * @memberof BI.NetPromoterScoreSurveySubmissionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScoreSurveySubmissionRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.surveyScore = reader.int32(); + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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; } - case 2: { - message.notes = reader.string(); - 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.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]); + 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 + * @memberof google.protobuf.FileOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileOptions} FileOptions + */ + FileOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileOptions) + return object; + let message = new $root.google.protobuf.FileOptions(); + if (object.javaPackage != null) + message.javaPackage = String(object.javaPackage); + if (object.javaOuterClassname != null) + message.javaOuterClassname = String(object.javaOuterClassname); + if (object.javaMultipleFiles != null) + message.javaMultipleFiles = Boolean(object.javaMultipleFiles); + if (object.javaGenerateEqualsAndHash != null) + message.javaGenerateEqualsAndHash = Boolean(object.javaGenerateEqualsAndHash); + if (object.javaStringCheckUtf8 != null) + message.javaStringCheckUtf8 = Boolean(object.javaStringCheckUtf8); + switch (object.optimizeFor) { default: - reader.skipType(tag & 7); + if (typeof object.optimizeFor === "number") { + message.optimizeFor = object.optimizeFor; + break; + } + break; + case "SPEED": + case 1: + message.optimizeFor = 1; break; + case "CODE_SIZE": + case 2: + message.optimizeFor = 2; + break; + case "LITE_RUNTIME": + case 3: + message.optimizeFor = 3; + break; + } + if (object.goPackage != null) + message.goPackage = String(object.goPackage); + if (object.ccGenericServices != null) + message.ccGenericServices = Boolean(object.ccGenericServices); + if (object.javaGenericServices != null) + message.javaGenericServices = Boolean(object.javaGenericServices); + if (object.pyGenericServices != null) + message.pyGenericServices = Boolean(object.pyGenericServices); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.ccEnableArenas != null) + message.ccEnableArenas = Boolean(object.ccEnableArenas); + if (object.objcClassPrefix != null) + message.objcClassPrefix = String(object.objcClassPrefix); + if (object.csharpNamespace != null) + message.csharpNamespace = String(object.csharpNamespace); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + 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") + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.FileOptions} message FileOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.javaPackage = ""; + object.javaOuterClassname = ""; + object.optimizeFor = options.enums === String ? "SPEED" : 1; + object.javaMultipleFiles = false; + object.goPackage = ""; + object.ccGenericServices = false; + object.javaGenericServices = false; + object.pyGenericServices = false; + object.javaGenerateEqualsAndHash = false; + object.deprecated = false; + object.javaStringCheckUtf8 = false; + object.ccEnableArenas = false; + object.objcClassPrefix = ""; + object.csharpNamespace = ""; + } + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + object.javaPackage = message.javaPackage; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + object.javaOuterClassname = message.javaOuterClassname; + if (message.optimizeFor != null && message.hasOwnProperty("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")) + object.javaMultipleFiles = message.javaMultipleFiles; + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + object.goPackage = message.goPackage; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + object.ccGenericServices = message.ccGenericServices; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + object.javaGenericServices = message.javaGenericServices; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + object.pyGenericServices = message.pyGenericServices; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + object.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + object.javaStringCheckUtf8 = message.javaStringCheckUtf8; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + object.ccEnableArenas = message.ccEnableArenas; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + object.objcClassPrefix = message.objcClassPrefix; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + object.csharpNamespace = message.csharpNamespace; + 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); + } + return object; + }; + + /** + * Converts this FileOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FileOptions + * @instance + * @returns {Object.} JSON object + */ + FileOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FileOptions + * @function getTypeUrl + * @memberof google.protobuf.FileOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - } - return message; - }; + return typeUrlPrefix + "/google.protobuf.FileOptions"; + }; - /** - * 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()); - }; + /** + * OptimizeMode enum. + * @name google.protobuf.FileOptions.OptimizeMode + * @enum {number} + * @property {number} SPEED=1 SPEED value + * @property {number} CODE_SIZE=2 CODE_SIZE value + * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value + */ + FileOptions.OptimizeMode = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "SPEED"] = 1; + values[valuesById[2] = "CODE_SIZE"] = 2; + values[valuesById[3] = "LITE_RUNTIME"] = 3; + return values; + })(); + + return FileOptions; + })(); - /** - * 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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; - }; + protobuf.MessageOptions = (function() { - /** - * Creates a NetPromoterScoreSurveySubmissionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.NetPromoterScoreSurveySubmissionRequest - * @static - * @param {Object.} object Plain object - * @returns {BI.NetPromoterScoreSurveySubmissionRequest} NetPromoterScoreSurveySubmissionRequest - */ - NetPromoterScoreSurveySubmissionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.NetPromoterScoreSurveySubmissionRequest) - return object; - let message = new $root.BI.NetPromoterScoreSurveySubmissionRequest(); - if (object.surveyScore != null) - message.surveyScore = object.surveyScore | 0; - if (object.notes != null) - message.notes = String(object.notes); - return message; - }; + /** + * Properties of a MessageOptions. + * @memberof google.protobuf + * @interface IMessageOptions + * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat + * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor + * @property {boolean|null} [deprecated] MessageOptions deprecated + * @property {boolean|null} [mapEntry] MessageOptions mapEntry + * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption + */ - /** - * Creates a plain object from a NetPromoterScoreSurveySubmissionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.NetPromoterScoreSurveySubmissionRequest - * @static - * @param {BI.NetPromoterScoreSurveySubmissionRequest} message NetPromoterScoreSurveySubmissionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NetPromoterScoreSurveySubmissionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.surveyScore = 0; - object.notes = ""; + /** + * Constructs a new MessageOptions. + * @memberof google.protobuf + * @classdesc Represents a MessageOptions. + * @implements IMessageOptions + * @constructor + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + */ + function MessageOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (message.surveyScore != null && message.hasOwnProperty("surveyScore")) - object.surveyScore = message.surveyScore; - if (message.notes != null && message.hasOwnProperty("notes")) - object.notes = message.notes; - return object; - }; - - /** - * Converts this NetPromoterScoreSurveySubmissionRequest to JSON. - * @function toJSON - * @memberof BI.NetPromoterScoreSurveySubmissionRequest - * @instance - * @returns {Object.} JSON object - */ - NetPromoterScoreSurveySubmissionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - /** - * Gets the default type url for NetPromoterScoreSurveySubmissionRequest - * @function getTypeUrl - * @memberof BI.NetPromoterScoreSurveySubmissionRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NetPromoterScoreSurveySubmissionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.NetPromoterScoreSurveySubmissionRequest"; - }; + /** + * MessageOptions messageSetWireFormat. + * @member {boolean} messageSetWireFormat + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.messageSetWireFormat = false; - return NetPromoterScoreSurveySubmissionRequest; - })(); + /** + * MessageOptions noStandardDescriptorAccessor. + * @member {boolean} noStandardDescriptorAccessor + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.noStandardDescriptorAccessor = false; - BI.NetPromoterScoreSurveySubmissionResponse = (function() { + /** + * MessageOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.deprecated = false; - /** - * Properties of a NetPromoterScoreSurveySubmissionResponse. - * @memberof BI - * @interface INetPromoterScoreSurveySubmissionResponse - */ + /** + * MessageOptions mapEntry. + * @member {boolean} mapEntry + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.mapEntry = false; - /** - * Constructs a new NetPromoterScoreSurveySubmissionResponse. - * @memberof BI - * @classdesc Represents a NetPromoterScoreSurveySubmissionResponse. - * @implements INetPromoterScoreSurveySubmissionResponse - * @constructor - * @param {BI.INetPromoterScoreSurveySubmissionResponse=} [properties] Properties to set - */ - function NetPromoterScoreSurveySubmissionResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * MessageOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.uninterpretedOption = $util.emptyArray; - /** - * Creates a new NetPromoterScoreSurveySubmissionResponse instance using the specified properties. - * @function create - * @memberof BI.NetPromoterScoreSurveySubmissionResponse - * @static - * @param {BI.INetPromoterScoreSurveySubmissionResponse=} [properties] Properties to set - * @returns {BI.NetPromoterScoreSurveySubmissionResponse} NetPromoterScoreSurveySubmissionResponse instance - */ - NetPromoterScoreSurveySubmissionResponse.create = function create(properties) { - return new NetPromoterScoreSurveySubmissionResponse(properties); - }; + /** + * Creates a new MessageOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + * @returns {google.protobuf.MessageOptions} MessageOptions instance + */ + MessageOptions.create = function create(properties) { + return new MessageOptions(properties); + }; - /** - * Encodes the specified NetPromoterScoreSurveySubmissionResponse message. Does not implicitly {@link BI.NetPromoterScoreSurveySubmissionResponse.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); + if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (let i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + 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(); - }; + /** + * 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 NetPromoterScoreSurveySubmissionResponse message from the specified reader or buffer. - * @function decode - * @memberof BI.NetPromoterScoreSurveySubmissionResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScoreSurveySubmissionResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.messageSetWireFormat = reader.bool(); + break; + } + case 2: { + message.noStandardDescriptorAccessor = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 7: { + message.mapEntry = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + 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()); - }; + /** + * 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 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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.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]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; - /** - * Creates a NetPromoterScoreSurveySubmissionResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.NetPromoterScoreSurveySubmissionResponse - * @static - * @param {Object.} object Plain object - * @returns {BI.NetPromoterScoreSurveySubmissionResponse} NetPromoterScoreSurveySubmissionResponse - */ - NetPromoterScoreSurveySubmissionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.NetPromoterScoreSurveySubmissionResponse) + /** + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MessageOptions} MessageOptions + */ + MessageOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MessageOptions) + return object; + let message = new $root.google.protobuf.MessageOptions(); + if (object.messageSetWireFormat != null) + message.messageSetWireFormat = Boolean(object.messageSetWireFormat); + if (object.noStandardDescriptorAccessor != null) + message.noStandardDescriptorAccessor = Boolean(object.noStandardDescriptorAccessor); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.mapEntry != null) + message.mapEntry = Boolean(object.mapEntry); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + 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") + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.MessageOptions} message MessageOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MessageOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.messageSetWireFormat = false; + object.noStandardDescriptorAccessor = false; + object.deprecated = false; + object.mapEntry = false; + } + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + object.messageSetWireFormat = message.messageSetWireFormat; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + object.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + object.mapEntry = message.mapEntry; + 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); + } return object; - return new $root.BI.NetPromoterScoreSurveySubmissionResponse(); - }; + }; - /** - * Creates a plain object from a NetPromoterScoreSurveySubmissionResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.NetPromoterScoreSurveySubmissionResponse - * @static - * @param {BI.NetPromoterScoreSurveySubmissionResponse} message NetPromoterScoreSurveySubmissionResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NetPromoterScoreSurveySubmissionResponse.toObject = function toObject() { - return {}; - }; + /** + * Converts this MessageOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MessageOptions + * @instance + * @returns {Object.} JSON object + */ + MessageOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this NetPromoterScoreSurveySubmissionResponse to JSON. - * @function toJSON - * @memberof BI.NetPromoterScoreSurveySubmissionResponse - * @instance - * @returns {Object.} JSON object - */ - NetPromoterScoreSurveySubmissionResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for MessageOptions + * @function getTypeUrl + * @memberof google.protobuf.MessageOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MessageOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MessageOptions"; + }; - /** - * Gets the default type url for NetPromoterScoreSurveySubmissionResponse - * @function getTypeUrl - * @memberof BI.NetPromoterScoreSurveySubmissionResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NetPromoterScoreSurveySubmissionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + return MessageOptions; + })(); + + protobuf.FieldOptions = (function() { + + /** + * Properties of a FieldOptions. + * @memberof google.protobuf + * @interface IFieldOptions + * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype + * @property {boolean|null} [packed] FieldOptions packed + * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype + * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [deprecated] FieldOptions deprecated + * @property {boolean|null} [weak] FieldOptions weak + * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption + */ + + /** + * Constructs a new FieldOptions. + * @memberof google.protobuf + * @classdesc Represents a FieldOptions. + * @implements IFieldOptions + * @constructor + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + */ + function FieldOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return typeUrlPrefix + "/BI.NetPromoterScoreSurveySubmissionResponse"; - }; - return NetPromoterScoreSurveySubmissionResponse; - })(); + /** + * FieldOptions ctype. + * @member {google.protobuf.FieldOptions.CType} ctype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.ctype = 0; - BI.NetPromoterScorePopupScheduleRequest = (function() { + /** + * FieldOptions packed. + * @member {boolean} packed + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.packed = false; - /** - * Properties of a NetPromoterScorePopupScheduleRequest. - * @memberof BI - * @interface INetPromoterScorePopupScheduleRequest - */ + /** + * FieldOptions jstype. + * @member {google.protobuf.FieldOptions.JSType} jstype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.jstype = 0; - /** - * Constructs a new NetPromoterScorePopupScheduleRequest. - * @memberof BI - * @classdesc Represents a NetPromoterScorePopupScheduleRequest. - * @implements INetPromoterScorePopupScheduleRequest - * @constructor - * @param {BI.INetPromoterScorePopupScheduleRequest=} [properties] Properties to set - */ - function NetPromoterScorePopupScheduleRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * FieldOptions lazy. + * @member {boolean} lazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.lazy = false; - /** - * Creates a new NetPromoterScorePopupScheduleRequest instance using the specified properties. - * @function create - * @memberof BI.NetPromoterScorePopupScheduleRequest - * @static - * @param {BI.INetPromoterScorePopupScheduleRequest=} [properties] Properties to set - * @returns {BI.NetPromoterScorePopupScheduleRequest} NetPromoterScorePopupScheduleRequest instance - */ - NetPromoterScorePopupScheduleRequest.create = function create(properties) { - return new NetPromoterScorePopupScheduleRequest(properties); - }; + /** + * FieldOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.deprecated = false; - /** - * Encodes the specified NetPromoterScorePopupScheduleRequest message. Does not implicitly {@link BI.NetPromoterScorePopupScheduleRequest.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * FieldOptions weak. + * @member {boolean} weak + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.weak = false; - /** - * 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(); - }; + /** + * FieldOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.uninterpretedOption = $util.emptyArray; - /** - * Decodes a NetPromoterScorePopupScheduleRequest message from the specified reader or buffer. - * @function decode - * @memberof BI.NetPromoterScorePopupScheduleRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScorePopupScheduleRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + /** + * Creates a new FieldOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @returns {google.protobuf.FieldOptions} FieldOptions instance + */ + FieldOptions.create = function create(properties) { + return new FieldOptions(properties); + }; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); + if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); + if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); + if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (let i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + 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 + * @memberof google.protobuf.FieldOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.ctype = reader.int32(); + break; + } + case 2: { + message.packed = reader.bool(); + break; + } + case 6: { + message.jstype = reader.int32(); + break; + } + case 5: { + message.lazy = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 10: { + message.weak = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + 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()); - }; + /** + * 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 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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.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.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]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; - /** - * Creates a NetPromoterScorePopupScheduleRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.NetPromoterScorePopupScheduleRequest - * @static - * @param {Object.} object Plain object - * @returns {BI.NetPromoterScorePopupScheduleRequest} NetPromoterScorePopupScheduleRequest - */ - NetPromoterScorePopupScheduleRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.NetPromoterScorePopupScheduleRequest) + /** + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldOptions} FieldOptions + */ + FieldOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldOptions) + return object; + let message = new $root.google.protobuf.FieldOptions(); + switch (object.ctype) { + default: + if (typeof object.ctype === "number") { + message.ctype = object.ctype; + break; + } + break; + case "STRING": + case 0: + message.ctype = 0; + break; + case "CORD": + case 1: + message.ctype = 1; + break; + case "STRING_PIECE": + case 2: + message.ctype = 2; + break; + } + if (object.packed != null) + message.packed = Boolean(object.packed); + switch (object.jstype) { + default: + if (typeof object.jstype === "number") { + message.jstype = object.jstype; + break; + } + break; + case "JS_NORMAL": + case 0: + message.jstype = 0; + break; + case "JS_STRING": + case 1: + message.jstype = 1; + break; + case "JS_NUMBER": + case 2: + message.jstype = 2; + break; + } + if (object.lazy != null) + message.lazy = Boolean(object.lazy); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.weak != null) + message.weak = Boolean(object.weak); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + 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") + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.FieldOptions} message FieldOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.ctype = options.enums === String ? "STRING" : 0; + object.packed = false; + object.deprecated = false; + object.lazy = false; + object.jstype = options.enums === String ? "JS_NORMAL" : 0; + object.weak = false; + } + if (message.ctype != null && message.hasOwnProperty("ctype")) + object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; + if (message.packed != null && message.hasOwnProperty("packed")) + object.packed = message.packed; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.lazy != null && message.hasOwnProperty("lazy")) + object.lazy = message.lazy; + if (message.jstype != null && message.hasOwnProperty("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")) + object.weak = message.weak; + 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); + } return object; - return new $root.BI.NetPromoterScorePopupScheduleRequest(); - }; + }; - /** - * Creates a plain object from a NetPromoterScorePopupScheduleRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.NetPromoterScorePopupScheduleRequest - * @static - * @param {BI.NetPromoterScorePopupScheduleRequest} message NetPromoterScorePopupScheduleRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NetPromoterScorePopupScheduleRequest.toObject = function toObject() { - return {}; - }; + /** + * Converts this FieldOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FieldOptions + * @instance + * @returns {Object.} JSON object + */ + FieldOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this NetPromoterScorePopupScheduleRequest to JSON. - * @function toJSON - * @memberof BI.NetPromoterScorePopupScheduleRequest - * @instance - * @returns {Object.} JSON object - */ - NetPromoterScorePopupScheduleRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for FieldOptions + * @function getTypeUrl + * @memberof google.protobuf.FieldOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldOptions"; + }; - /** - * Gets the default type url for NetPromoterScorePopupScheduleRequest - * @function getTypeUrl - * @memberof BI.NetPromoterScorePopupScheduleRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NetPromoterScorePopupScheduleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.NetPromoterScorePopupScheduleRequest"; - }; + /** + * CType enum. + * @name google.protobuf.FieldOptions.CType + * @enum {number} + * @property {number} STRING=0 STRING value + * @property {number} CORD=1 CORD value + * @property {number} STRING_PIECE=2 STRING_PIECE value + */ + FieldOptions.CType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STRING"] = 0; + values[valuesById[1] = "CORD"] = 1; + values[valuesById[2] = "STRING_PIECE"] = 2; + return values; + })(); - return NetPromoterScorePopupScheduleRequest; - })(); + /** + * JSType enum. + * @name google.protobuf.FieldOptions.JSType + * @enum {number} + * @property {number} JS_NORMAL=0 JS_NORMAL value + * @property {number} JS_STRING=1 JS_STRING value + * @property {number} JS_NUMBER=2 JS_NUMBER value + */ + FieldOptions.JSType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JS_NORMAL"] = 0; + values[valuesById[1] = "JS_STRING"] = 1; + values[valuesById[2] = "JS_NUMBER"] = 2; + return values; + })(); + + return FieldOptions; + })(); - BI.NetPromoterScorePopupScheduleResponse = (function() { + protobuf.OneofOptions = (function() { - /** - * Properties of a NetPromoterScorePopupScheduleResponse. - * @memberof BI - * @interface INetPromoterScorePopupScheduleResponse - * @property {boolean|null} [showPopup] NetPromoterScorePopupScheduleResponse showPopup - */ + /** + * Properties of an OneofOptions. + * @memberof google.protobuf + * @interface IOneofOptions + * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption + */ - /** - * Constructs a new NetPromoterScorePopupScheduleResponse. - * @memberof BI - * @classdesc Represents a NetPromoterScorePopupScheduleResponse. - * @implements INetPromoterScorePopupScheduleResponse - * @constructor - * @param {BI.INetPromoterScorePopupScheduleResponse=} [properties] Properties to set - */ - function NetPromoterScorePopupScheduleResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new OneofOptions. + * @memberof google.protobuf + * @classdesc Represents an OneofOptions. + * @implements IOneofOptions + * @constructor + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + */ + function OneofOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * NetPromoterScorePopupScheduleResponse showPopup. - * @member {boolean} showPopup - * @memberof BI.NetPromoterScorePopupScheduleResponse - * @instance - */ - NetPromoterScorePopupScheduleResponse.prototype.showPopup = false; + /** + * OneofOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.OneofOptions + * @instance + */ + OneofOptions.prototype.uninterpretedOption = $util.emptyArray; - /** - * Creates a new NetPromoterScorePopupScheduleResponse instance using the specified properties. - * @function create - * @memberof BI.NetPromoterScorePopupScheduleResponse - * @static - * @param {BI.INetPromoterScorePopupScheduleResponse=} [properties] Properties to set - * @returns {BI.NetPromoterScorePopupScheduleResponse} NetPromoterScorePopupScheduleResponse instance - */ - NetPromoterScorePopupScheduleResponse.create = function create(properties) { - return new NetPromoterScorePopupScheduleResponse(properties); - }; + /** + * Creates a new OneofOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * @returns {google.protobuf.OneofOptions} OneofOptions instance + */ + OneofOptions.create = function create(properties) { + return new OneofOptions(properties); + }; - /** - * Encodes the specified NetPromoterScorePopupScheduleResponse message. Does not implicitly {@link BI.NetPromoterScorePopupScheduleResponse.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.showPopup != null && Object.hasOwnProperty.call(message, "showPopup")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.showPopup); - return writer; - }; + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (let i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + 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(); - }; + /** + * 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 a NetPromoterScorePopupScheduleResponse message from the specified reader or buffer. - * @function decode - * @memberof BI.NetPromoterScorePopupScheduleResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScorePopupScheduleResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.showPopup = reader.bool(); + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + 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()); - }; + /** + * 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 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.showPopup != null && message.hasOwnProperty("showPopup")) - if (typeof message.showPopup !== "boolean") - return "showPopup: boolean expected"; - return null; - }; + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object 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]); + 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 + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofOptions} OneofOptions + */ + OneofOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofOptions) + return object; + let message = new $root.google.protobuf.OneofOptions(); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + 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") + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.OneofOptions} message OneofOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OneofOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + 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); + } + return object; + }; + + /** + * Converts this OneofOptions to JSON. + * @function toJSON + * @memberof google.protobuf.OneofOptions + * @instance + * @returns {Object.} JSON object + */ + OneofOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OneofOptions + * @function getTypeUrl + * @memberof google.protobuf.OneofOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OneofOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.OneofOptions"; + }; - /** - * Creates a NetPromoterScorePopupScheduleResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.NetPromoterScorePopupScheduleResponse - * @static - * @param {Object.} object Plain object - * @returns {BI.NetPromoterScorePopupScheduleResponse} NetPromoterScorePopupScheduleResponse - */ - NetPromoterScorePopupScheduleResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.NetPromoterScorePopupScheduleResponse) - return object; - let message = new $root.BI.NetPromoterScorePopupScheduleResponse(); - if (object.showPopup != null) - message.showPopup = Boolean(object.showPopup); - return message; - }; + return OneofOptions; + })(); - /** - * Creates a plain object from a NetPromoterScorePopupScheduleResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.NetPromoterScorePopupScheduleResponse - * @static - * @param {BI.NetPromoterScorePopupScheduleResponse} message NetPromoterScorePopupScheduleResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NetPromoterScorePopupScheduleResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.showPopup = false; - if (message.showPopup != null && message.hasOwnProperty("showPopup")) - object.showPopup = message.showPopup; - return object; - }; + protobuf.EnumOptions = (function() { - /** - * Converts this NetPromoterScorePopupScheduleResponse to JSON. - * @function toJSON - * @memberof BI.NetPromoterScorePopupScheduleResponse - * @instance - * @returns {Object.} JSON object - */ - NetPromoterScorePopupScheduleResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Properties of an EnumOptions. + * @memberof google.protobuf + * @interface IEnumOptions + * @property {boolean|null} [allowAlias] EnumOptions allowAlias + * @property {boolean|null} [deprecated] EnumOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption + */ - /** - * Gets the default type url for NetPromoterScorePopupScheduleResponse - * @function getTypeUrl - * @memberof BI.NetPromoterScorePopupScheduleResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NetPromoterScorePopupScheduleResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Constructs a new EnumOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumOptions. + * @implements IEnumOptions + * @constructor + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + */ + function EnumOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return typeUrlPrefix + "/BI.NetPromoterScorePopupScheduleResponse"; - }; - - return NetPromoterScorePopupScheduleResponse; - })(); - BI.NetPromoterScorePopupDismissalRequest = (function() { + /** + * EnumOptions allowAlias. + * @member {boolean} allowAlias + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.allowAlias = false; - /** - * Properties of a NetPromoterScorePopupDismissalRequest. - * @memberof BI - * @interface INetPromoterScorePopupDismissalRequest - */ + /** + * EnumOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.deprecated = false; - /** - * Constructs a new NetPromoterScorePopupDismissalRequest. - * @memberof BI - * @classdesc Represents a NetPromoterScorePopupDismissalRequest. - * @implements INetPromoterScorePopupDismissalRequest - * @constructor - * @param {BI.INetPromoterScorePopupDismissalRequest=} [properties] Properties to set - */ - function NetPromoterScorePopupDismissalRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * EnumOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.uninterpretedOption = $util.emptyArray; - /** - * Creates a new NetPromoterScorePopupDismissalRequest instance using the specified properties. - * @function create - * @memberof BI.NetPromoterScorePopupDismissalRequest - * @static - * @param {BI.INetPromoterScorePopupDismissalRequest=} [properties] Properties to set - * @returns {BI.NetPromoterScorePopupDismissalRequest} NetPromoterScorePopupDismissalRequest instance - */ - NetPromoterScorePopupDismissalRequest.create = function create(properties) { - return new NetPromoterScorePopupDismissalRequest(properties); - }; + /** + * Creates a new EnumOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumOptions} EnumOptions instance + */ + EnumOptions.create = function create(properties) { + return new EnumOptions(properties); + }; - /** - * Encodes the specified NetPromoterScorePopupDismissalRequest message. Does not implicitly {@link BI.NetPromoterScorePopupDismissalRequest.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (let i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + 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(); - }; + /** + * 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 a NetPromoterScorePopupDismissalRequest message from the specified reader or buffer. - * @function decode - * @memberof BI.NetPromoterScorePopupDismissalRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScorePopupDismissalRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.allowAlias = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + 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()); - }; + /** + * 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 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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.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]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; - /** - * Creates a NetPromoterScorePopupDismissalRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.NetPromoterScorePopupDismissalRequest - * @static - * @param {Object.} object Plain object - * @returns {BI.NetPromoterScorePopupDismissalRequest} NetPromoterScorePopupDismissalRequest - */ - NetPromoterScorePopupDismissalRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.NetPromoterScorePopupDismissalRequest) + /** + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumOptions} EnumOptions + */ + EnumOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumOptions) + return object; + let message = new $root.google.protobuf.EnumOptions(); + if (object.allowAlias != null) + message.allowAlias = Boolean(object.allowAlias); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + 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") + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.EnumOptions} message EnumOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.allowAlias = false; + object.deprecated = false; + } + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + object.allowAlias = message.allowAlias; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + 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); + } return object; - return new $root.BI.NetPromoterScorePopupDismissalRequest(); - }; + }; - /** - * Creates a plain object from a NetPromoterScorePopupDismissalRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.NetPromoterScorePopupDismissalRequest - * @static - * @param {BI.NetPromoterScorePopupDismissalRequest} message NetPromoterScorePopupDismissalRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NetPromoterScorePopupDismissalRequest.toObject = function toObject() { - return {}; - }; + /** + * Converts this EnumOptions to JSON. + * @function toJSON + * @memberof google.protobuf.EnumOptions + * @instance + * @returns {Object.} JSON object + */ + EnumOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this NetPromoterScorePopupDismissalRequest to JSON. - * @function toJSON - * @memberof BI.NetPromoterScorePopupDismissalRequest - * @instance - * @returns {Object.} JSON object - */ - NetPromoterScorePopupDismissalRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for EnumOptions + * @function getTypeUrl + * @memberof google.protobuf.EnumOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumOptions"; + }; - /** - * Gets the default type url for NetPromoterScorePopupDismissalRequest - * @function getTypeUrl - * @memberof BI.NetPromoterScorePopupDismissalRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NetPromoterScorePopupDismissalRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.NetPromoterScorePopupDismissalRequest"; - }; + return EnumOptions; + })(); - return NetPromoterScorePopupDismissalRequest; - })(); + protobuf.EnumValueOptions = (function() { - BI.NetPromoterScorePopupDismissalResponse = (function() { + /** + * Properties of an EnumValueOptions. + * @memberof google.protobuf + * @interface IEnumValueOptions + * @property {boolean|null} [deprecated] EnumValueOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption + */ - /** - * Properties of a NetPromoterScorePopupDismissalResponse. - * @memberof BI - * @interface INetPromoterScorePopupDismissalResponse - */ + /** + * Constructs a new EnumValueOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumValueOptions. + * @implements IEnumValueOptions + * @constructor + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + */ + function EnumValueOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new NetPromoterScorePopupDismissalResponse. - * @memberof BI - * @classdesc Represents a NetPromoterScorePopupDismissalResponse. - * @implements INetPromoterScorePopupDismissalResponse - * @constructor - * @param {BI.INetPromoterScorePopupDismissalResponse=} [properties] Properties to set - */ - function NetPromoterScorePopupDismissalResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * EnumValueOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.deprecated = false; - /** - * Creates a new NetPromoterScorePopupDismissalResponse instance using the specified properties. - * @function create - * @memberof BI.NetPromoterScorePopupDismissalResponse - * @static - * @param {BI.INetPromoterScorePopupDismissalResponse=} [properties] Properties to set - * @returns {BI.NetPromoterScorePopupDismissalResponse} NetPromoterScorePopupDismissalResponse instance - */ - NetPromoterScorePopupDismissalResponse.create = function create(properties) { - return new NetPromoterScorePopupDismissalResponse(properties); - }; + /** + * EnumValueOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; - /** - * Encodes the specified NetPromoterScorePopupDismissalResponse message. Does not implicitly {@link BI.NetPromoterScorePopupDismissalResponse.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance + */ + EnumValueOptions.create = function create(properties) { + return new EnumValueOptions(properties); + }; - /** - * 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(); - }; + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (let i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; - /** - * Decodes a NetPromoterScorePopupDismissalResponse message from the specified reader or buffer. - * @function decode - * @memberof BI.NetPromoterScorePopupDismissalResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScorePopupDismissalResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + /** + * 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 + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + 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()); - }; + /** + * 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 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; - /** - * Creates a NetPromoterScorePopupDismissalResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.NetPromoterScorePopupDismissalResponse - * @static - * @param {Object.} object Plain object - * @returns {BI.NetPromoterScorePopupDismissalResponse} NetPromoterScorePopupDismissalResponse - */ - NetPromoterScorePopupDismissalResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.NetPromoterScorePopupDismissalResponse) + /** + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + */ + EnumValueOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueOptions) + return object; + let message = new $root.google.protobuf.EnumValueOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + 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") + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.EnumValueOptions} message EnumValueOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumValueOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) + object.deprecated = false; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + 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); + } return object; - return new $root.BI.NetPromoterScorePopupDismissalResponse(); - }; + }; - /** - * Creates a plain object from a NetPromoterScorePopupDismissalResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.NetPromoterScorePopupDismissalResponse - * @static - * @param {BI.NetPromoterScorePopupDismissalResponse} message NetPromoterScorePopupDismissalResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NetPromoterScorePopupDismissalResponse.toObject = function toObject() { - return {}; - }; + /** + * Converts this EnumValueOptions to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueOptions + * @instance + * @returns {Object.} JSON object + */ + EnumValueOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this NetPromoterScorePopupDismissalResponse to JSON. - * @function toJSON - * @memberof BI.NetPromoterScorePopupDismissalResponse - * @instance - * @returns {Object.} JSON object - */ - NetPromoterScorePopupDismissalResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for EnumValueOptions + * @function getTypeUrl + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumValueOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumValueOptions"; + }; - /** - * Gets the default type url for NetPromoterScorePopupDismissalResponse - * @function getTypeUrl - * @memberof BI.NetPromoterScorePopupDismissalResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NetPromoterScorePopupDismissalResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.NetPromoterScorePopupDismissalResponse"; - }; + return EnumValueOptions; + })(); - return NetPromoterScorePopupDismissalResponse; - })(); + protobuf.ServiceOptions = (function() { - BI.KCMLicenseRequest = (function() { + /** + * Properties of a ServiceOptions. + * @memberof google.protobuf + * @interface IServiceOptions + * @property {boolean|null} [deprecated] ServiceOptions deprecated + * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption + */ - /** - * Properties of a KCMLicenseRequest. - * @memberof BI - * @interface IKCMLicenseRequest - * @property {number|Long|null} [enterpriseUserId] KCMLicenseRequest enterpriseUserId - */ + /** + * Constructs a new ServiceOptions. + * @memberof google.protobuf + * @classdesc Represents a ServiceOptions. + * @implements IServiceOptions + * @constructor + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + */ + function ServiceOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new KCMLicenseRequest. - * @memberof BI - * @classdesc Represents a KCMLicenseRequest. - * @implements IKCMLicenseRequest - * @constructor - * @param {BI.IKCMLicenseRequest=} [properties] Properties to set - */ - function KCMLicenseRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ServiceOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.deprecated = false; - /** - * KCMLicenseRequest enterpriseUserId. - * @member {number|Long} enterpriseUserId - * @memberof BI.KCMLicenseRequest - * @instance - */ - KCMLicenseRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * ServiceOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; - /** - * Creates a new KCMLicenseRequest instance using the specified properties. - * @function create - * @memberof BI.KCMLicenseRequest - * @static - * @param {BI.IKCMLicenseRequest=} [properties] Properties to set - * @returns {BI.KCMLicenseRequest} KCMLicenseRequest instance - */ - KCMLicenseRequest.create = function create(properties) { - return new KCMLicenseRequest(properties); - }; + /** + * Creates a new ServiceOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @returns {google.protobuf.ServiceOptions} ServiceOptions instance + */ + ServiceOptions.create = function create(properties) { + return new ServiceOptions(properties); + }; - /** - * Encodes the specified KCMLicenseRequest message. Does not implicitly {@link BI.KCMLicenseRequest.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - return writer; - }; + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (let i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + 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(); - }; + /** + * 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 KCMLicenseRequest message from the specified reader or buffer. - * @function decode - * @memberof BI.KCMLicenseRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.KCMLicenseRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.enterpriseUserId = reader.int64(); + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 33: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + 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()); - }; + /** + * 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 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) { - if (typeof message !== "object" || message === null) - return "object 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; - }; + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; - /** - * Creates a KCMLicenseRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.KCMLicenseRequest - * @static - * @param {Object.} object Plain object - * @returns {BI.KCMLicenseRequest} KCMLicenseRequest - */ - KCMLicenseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.KCMLicenseRequest) + /** + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ServiceOptions} ServiceOptions + */ + ServiceOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceOptions) + return object; + let message = new $root.google.protobuf.ServiceOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + 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") + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.ServiceOptions} message ServiceOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) + object.deprecated = false; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + 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); + } return object; - let message = new $root.BI.KCMLicenseRequest(); - if (object.enterpriseUserId != null) - if ($util.Long) - (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") - message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") - message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - return message; - }; + }; - /** - * Creates a plain object from a KCMLicenseRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.KCMLicenseRequest - * @static - * @param {BI.KCMLicenseRequest} message KCMLicenseRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - KCMLicenseRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - 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; - return object; - }; + /** + * Converts this ServiceOptions to JSON. + * @function toJSON + * @memberof google.protobuf.ServiceOptions + * @instance + * @returns {Object.} JSON object + */ + ServiceOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this KCMLicenseRequest to JSON. - * @function toJSON - * @memberof BI.KCMLicenseRequest - * @instance - * @returns {Object.} JSON object - */ - KCMLicenseRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for ServiceOptions + * @function getTypeUrl + * @memberof google.protobuf.ServiceOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ServiceOptions"; + }; - /** - * Gets the default type url for KCMLicenseRequest - * @function getTypeUrl - * @memberof BI.KCMLicenseRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - KCMLicenseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.KCMLicenseRequest"; - }; + return ServiceOptions; + })(); - return KCMLicenseRequest; - })(); + protobuf.MethodOptions = (function() { - BI.KCMLicenseResponse = (function() { + /** + * Properties of a MethodOptions. + * @memberof google.protobuf + * @interface IMethodOptions + * @property {boolean|null} [deprecated] MethodOptions deprecated + * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption + * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http + */ - /** - * Properties of a KCMLicenseResponse. - * @memberof BI - * @interface IKCMLicenseResponse - * @property {string|null} [message] KCMLicenseResponse message - */ + /** + * Constructs a new MethodOptions. + * @memberof google.protobuf + * @classdesc Represents a MethodOptions. + * @implements IMethodOptions + * @constructor + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + */ + function MethodOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new KCMLicenseResponse. - * @memberof BI - * @classdesc Represents a KCMLicenseResponse. - * @implements IKCMLicenseResponse - * @constructor - * @param {BI.IKCMLicenseResponse=} [properties] Properties to set - */ - function KCMLicenseResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * MethodOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.deprecated = false; - /** - * KCMLicenseResponse message. - * @member {string} message - * @memberof BI.KCMLicenseResponse - * @instance - */ - KCMLicenseResponse.prototype.message = ""; + /** + * MethodOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * MethodOptions .google.api.http. + * @member {google.api.IHttpRule|null|undefined} .google.api.http + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.http"] = null; - /** - * Creates a new KCMLicenseResponse instance using the specified properties. - * @function create - * @memberof BI.KCMLicenseResponse - * @static - * @param {BI.IKCMLicenseResponse=} [properties] Properties to set - * @returns {BI.KCMLicenseResponse} KCMLicenseResponse instance - */ - KCMLicenseResponse.create = function create(properties) { - return new KCMLicenseResponse(properties); - }; + /** + * Creates a new MethodOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * @returns {google.protobuf.MethodOptions} MethodOptions instance + */ + MethodOptions.create = function create(properties) { + return new MethodOptions(properties); + }; - /** - * Encodes the specified KCMLicenseResponse message. Does not implicitly {@link BI.KCMLicenseResponse.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.message); - return writer; - }; + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (let i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) + $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); + 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(); - }; + /** + * 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 KCMLicenseResponse message from the specified reader or buffer. - * @function decode - * @memberof BI.KCMLicenseResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.KCMLicenseResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.message = reader.string(); + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 33: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 72295728: { + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + 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()); - }; + /** + * 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 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + 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"]); + if (error) + return ".google.api.http." + error; + } + return null; + }; - /** - * Creates a KCMLicenseResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.KCMLicenseResponse - * @static - * @param {Object.} object Plain object - * @returns {BI.KCMLicenseResponse} KCMLicenseResponse - */ - KCMLicenseResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.KCMLicenseResponse) + /** + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MethodOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MethodOptions} MethodOptions + */ + MethodOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodOptions) + return object; + let message = new $root.google.protobuf.MethodOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + 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") + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.http"] != null) { + if (typeof object[".google.api.http"] !== "object") + throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); + message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); + } + return message; + }; + + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.MethodOptions} message MethodOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.deprecated = false; + object[".google.api.http"] = null; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + 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); + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); return object; - let message = new $root.BI.KCMLicenseResponse(); - if (object.message != null) - message.message = String(object.message); - return message; - }; + }; - /** - * Creates a plain object from a KCMLicenseResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.KCMLicenseResponse - * @static - * @param {BI.KCMLicenseResponse} message KCMLicenseResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - KCMLicenseResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.message = ""; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - return object; - }; + /** + * Converts this MethodOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MethodOptions + * @instance + * @returns {Object.} JSON object + */ + MethodOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this KCMLicenseResponse to JSON. - * @function toJSON - * @memberof BI.KCMLicenseResponse - * @instance - * @returns {Object.} JSON object - */ - KCMLicenseResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for MethodOptions + * @function getTypeUrl + * @memberof google.protobuf.MethodOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MethodOptions"; + }; - /** - * Gets the default type url for KCMLicenseResponse - * @function getTypeUrl - * @memberof BI.KCMLicenseResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - KCMLicenseResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.KCMLicenseResponse"; - }; + return MethodOptions; + })(); - return KCMLicenseResponse; - })(); + protobuf.UninterpretedOption = (function() { - /** - * EventType enum. - * @name BI.EventType - * @enum {number} - * @property {number} UNKNOWN_TRACKING_EVENT_TYPE=0 UNKNOWN_TRACKING_EVENT_TYPE value - * @property {number} TRACKING_POPUP_DISPLAYED=1 TRACKING_POPUP_DISPLAYED value - * @property {number} TRACKING_POPUP_ACCEPTED=2 TRACKING_POPUP_ACCEPTED value - * @property {number} TRACKING_POPUP_DISMISSED=3 TRACKING_POPUP_DISMISSED value - * @property {number} TRACKING_POPUP_PAID=4 TRACKING_POPUP_PAID value - * @property {number} TRACKING_PUSH_CLICKED=5 TRACKING_PUSH_CLICKED value - * @property {number} CONSOLE_ACTION=6 CONSOLE_ACTION value - * @property {number} VAULT_ACTION=7 VAULT_ACTION value - */ - BI.EventType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN_TRACKING_EVENT_TYPE"] = 0; - values[valuesById[1] = "TRACKING_POPUP_DISPLAYED"] = 1; - values[valuesById[2] = "TRACKING_POPUP_ACCEPTED"] = 2; - values[valuesById[3] = "TRACKING_POPUP_DISMISSED"] = 3; - values[valuesById[4] = "TRACKING_POPUP_PAID"] = 4; - values[valuesById[5] = "TRACKING_PUSH_CLICKED"] = 5; - values[valuesById[6] = "CONSOLE_ACTION"] = 6; - values[valuesById[7] = "VAULT_ACTION"] = 7; - return values; - })(); + /** + * Properties of an UninterpretedOption. + * @memberof google.protobuf + * @interface IUninterpretedOption + * @property {Array.|null} [name] UninterpretedOption name + * @property {string|null} [identifierValue] UninterpretedOption identifierValue + * @property {number|Long|null} [positiveIntValue] UninterpretedOption positiveIntValue + * @property {number|Long|null} [negativeIntValue] UninterpretedOption negativeIntValue + * @property {number|null} [doubleValue] UninterpretedOption doubleValue + * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue + * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue + */ - BI.EventRequest = (function() { + /** + * Constructs a new UninterpretedOption. + * @memberof google.protobuf + * @classdesc Represents an UninterpretedOption. + * @implements IUninterpretedOption + * @constructor + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + */ + function UninterpretedOption(properties) { + this.name = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of an EventRequest. - * @memberof BI - * @interface IEventRequest - * @property {BI.EventType|null} [eventType] EventRequest eventType - * @property {string|null} [eventValue] EventRequest eventValue - * @property {number|Long|null} [eventTime] EventRequest eventTime - * @property {google.protobuf.IStruct|null} [attributes] EventRequest attributes - */ + /** + * UninterpretedOption name. + * @member {Array.} name + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.name = $util.emptyArray; - /** - * Constructs a new EventRequest. - * @memberof BI - * @classdesc Represents an EventRequest. - * @implements IEventRequest - * @constructor - * @param {BI.IEventRequest=} [properties] Properties to set - */ - function EventRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * UninterpretedOption identifierValue. + * @member {string} identifierValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.identifierValue = ""; - /** - * EventRequest eventType. - * @member {BI.EventType} eventType - * @memberof BI.EventRequest - * @instance - */ - EventRequest.prototype.eventType = 0; + /** + * UninterpretedOption positiveIntValue. + * @member {number|Long} positiveIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * EventRequest eventValue. - * @member {string} eventValue - * @memberof BI.EventRequest - * @instance - */ - EventRequest.prototype.eventValue = ""; + /** + * UninterpretedOption negativeIntValue. + * @member {number|Long} negativeIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * EventRequest eventTime. - * @member {number|Long} eventTime - * @memberof BI.EventRequest - * @instance - */ - EventRequest.prototype.eventTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * UninterpretedOption doubleValue. + * @member {number} doubleValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.doubleValue = 0; - /** - * EventRequest attributes. - * @member {google.protobuf.IStruct|null|undefined} attributes - * @memberof BI.EventRequest - * @instance - */ - EventRequest.prototype.attributes = null; + /** + * UninterpretedOption stringValue. + * @member {Uint8Array} stringValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.stringValue = $util.newBuffer([]); - /** - * Creates a new EventRequest instance using the specified properties. - * @function create - * @memberof BI.EventRequest - * @static - * @param {BI.IEventRequest=} [properties] Properties to set - * @returns {BI.EventRequest} EventRequest instance - */ - EventRequest.create = function create(properties) { - return new EventRequest(properties); - }; + /** + * UninterpretedOption aggregateValue. + * @member {string} aggregateValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.aggregateValue = ""; - /** - * Encodes the specified EventRequest message. Does not implicitly {@link BI.EventRequest.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.eventType != null && Object.hasOwnProperty.call(message, "eventType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.eventType); - if (message.eventValue != null && Object.hasOwnProperty.call(message, "eventValue")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.eventValue); - if (message.eventTime != null && Object.hasOwnProperty.call(message, "eventTime")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.eventTime); - if (message.attributes != null && Object.hasOwnProperty.call(message, "attributes")) - $root.google.protobuf.Struct.encode(message.attributes, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance + */ + UninterpretedOption.create = function create(properties) { + return new UninterpretedOption(properties); + }; - /** - * 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(); - }; + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.name.length) + for (let i = 0; i < message.name.length; ++i) + $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); + if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); + if (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "negativeIntValue")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); + if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); + return writer; + }; - /** - * Decodes an EventRequest message from the specified reader or buffer. - * @function decode - * @memberof BI.EventRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EventRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.eventType = reader.int32(); - break; - } - case 2: { - message.eventValue = reader.string(); - break; - } - case 3: { - message.eventTime = reader.int64(); - break; - } - case 4: { - message.attributes = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + /** + * 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 + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + if (!(message.name && message.name.length)) + message.name = []; + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + break; + } + case 3: { + message.identifierValue = reader.string(); + break; + } + case 4: { + message.positiveIntValue = reader.uint64(); + break; + } + case 5: { + message.negativeIntValue = reader.int64(); + break; + } + case 6: { + message.doubleValue = reader.double(); + break; + } + case 7: { + message.stringValue = reader.bytes(); + break; + } + case 8: { + message.aggregateValue = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + 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()); - }; + /** + * 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 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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); - if (error) - return "attributes." + error; - } - return null; - }; + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + 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 EventRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.EventRequest - * @static - * @param {Object.} object Plain object - * @returns {BI.EventRequest} EventRequest - */ - EventRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.EventRequest) - return object; - let message = new $root.BI.EventRequest(); - switch (object.eventType) { - default: - if (typeof object.eventType === "number") { - message.eventType = object.eventType; - break; - } - break; - case "UNKNOWN_TRACKING_EVENT_TYPE": - case 0: - message.eventType = 0; - break; - case "TRACKING_POPUP_DISPLAYED": - case 1: - message.eventType = 1; - break; - case "TRACKING_POPUP_ACCEPTED": - case 2: - message.eventType = 2; - break; - case "TRACKING_POPUP_DISMISSED": - case 3: - message.eventType = 3; - break; - case "TRACKING_POPUP_PAID": - case 4: - message.eventType = 4; - break; - case "TRACKING_PUSH_CLICKED": - case 5: - message.eventType = 5; - break; - case "CONSOLE_ACTION": - case 6: - message.eventType = 6; - break; - case "VAULT_ACTION": - case 7: - message.eventType = 7; - break; - } - if (object.eventValue != null) - message.eventValue = String(object.eventValue); - if (object.eventTime != null) - if ($util.Long) - (message.eventTime = $util.Long.fromValue(object.eventTime)).unsigned = false; - else if (typeof object.eventTime === "string") - message.eventTime = parseInt(object.eventTime, 10); - else if (typeof object.eventTime === "number") - message.eventTime = object.eventTime; - 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") - throw TypeError(".BI.EventRequest.attributes: object expected"); - message.attributes = $root.google.protobuf.Struct.fromObject(object.attributes); - } - return message; - }; + /** + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + */ + UninterpretedOption.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption) + return object; + let message = new $root.google.protobuf.UninterpretedOption(); + if (object.name) { + if (!Array.isArray(object.name)) + 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") + throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); + message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); + } + } + if (object.identifierValue != null) + message.identifierValue = String(object.identifierValue); + if (object.positiveIntValue != null) + if ($util.Long) + (message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue)).unsigned = true; + else if (typeof object.positiveIntValue === "string") + message.positiveIntValue = parseInt(object.positiveIntValue, 10); + else if (typeof object.positiveIntValue === "number") + message.positiveIntValue = object.positiveIntValue; + else if (typeof object.positiveIntValue === "object") + message.positiveIntValue = new $util.LongBits(object.positiveIntValue.low >>> 0, object.positiveIntValue.high >>> 0).toNumber(true); + if (object.negativeIntValue != null) + if ($util.Long) + (message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue)).unsigned = false; + else if (typeof object.negativeIntValue === "string") + message.negativeIntValue = parseInt(object.negativeIntValue, 10); + else if (typeof object.negativeIntValue === "number") + message.negativeIntValue = object.negativeIntValue; + else if (typeof object.negativeIntValue === "object") + message.negativeIntValue = new $util.LongBits(object.negativeIntValue.low >>> 0, object.negativeIntValue.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.stringValue != null) + if (typeof object.stringValue === "string") + $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); + else if (object.stringValue.length >= 0) + message.stringValue = object.stringValue; + if (object.aggregateValue != null) + message.aggregateValue = String(object.aggregateValue); + return message; + }; - /** - * Creates a plain object from an EventRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.EventRequest - * @static - * @param {BI.EventRequest} message EventRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EventRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.eventType = options.enums === String ? "UNKNOWN_TRACKING_EVENT_TYPE" : 0; - object.eventValue = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.eventTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.eventTime = options.longs === String ? "0" : 0; - object.attributes = null; - } - if (message.eventType != null && message.hasOwnProperty("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")) - object.eventValue = message.eventValue; - if (message.eventTime != null && message.hasOwnProperty("eventTime")) - if (typeof message.eventTime === "number") - object.eventTime = options.longs === String ? String(message.eventTime) : message.eventTime; - else - object.eventTime = options.longs === String ? $util.Long.prototype.toString.call(message.eventTime) : options.longs === Number ? new $util.LongBits(message.eventTime.low >>> 0, message.eventTime.high >>> 0).toNumber() : message.eventTime; - if (message.attributes != null && message.hasOwnProperty("attributes")) - object.attributes = $root.google.protobuf.Struct.toObject(message.attributes, options); - return object; - }; + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.UninterpretedOption} message UninterpretedOption + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UninterpretedOption.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.name = []; + if (options.defaults) { + object.identifierValue = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.positiveIntValue = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.negativeIntValue = options.longs === String ? "0" : 0; + object.doubleValue = 0; + if (options.bytes === String) + object.stringValue = ""; + else { + object.stringValue = []; + if (options.bytes !== Array) + object.stringValue = $util.newBuffer(object.stringValue); + } + object.aggregateValue = ""; + } + if (message.name && message.name.length) { + object.name = []; + for (let j = 0; j < message.name.length; ++j) + object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + object.identifierValue = message.identifierValue; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (typeof message.positiveIntValue === "number") + object.positiveIntValue = options.longs === String ? String(message.positiveIntValue) : message.positiveIntValue; + else + object.positiveIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.positiveIntValue) : options.longs === Number ? new $util.LongBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0).toNumber(true) : message.positiveIntValue; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (typeof 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")) + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (message.stringValue != null && message.hasOwnProperty("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")) + object.aggregateValue = message.aggregateValue; + return object; + }; - /** - * Converts this EventRequest to JSON. - * @function toJSON - * @memberof BI.EventRequest - * @instance - * @returns {Object.} JSON object - */ - EventRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this UninterpretedOption to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption + * @instance + * @returns {Object.} JSON object + */ + UninterpretedOption.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for EventRequest - * @function getTypeUrl - * @memberof BI.EventRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EventRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.EventRequest"; - }; + /** + * Gets the default type url for UninterpretedOption + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UninterpretedOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption"; + }; - return EventRequest; - })(); + UninterpretedOption.NamePart = (function() { + + /** + * Properties of a NamePart. + * @memberof google.protobuf.UninterpretedOption + * @interface INamePart + * @property {string} namePart NamePart namePart + * @property {boolean} isExtension NamePart isExtension + */ + + /** + * Constructs a new NamePart. + * @memberof google.protobuf.UninterpretedOption + * @classdesc Represents a NamePart. + * @implements INamePart + * @constructor + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + */ + function NamePart(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamePart namePart. + * @member {string} namePart + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.namePart = ""; + + /** + * NamePart isExtension. + * @member {boolean} isExtension + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.isExtension = false; + + /** + * Creates a new NamePart instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance + */ + NamePart.create = function create(properties) { + return new NamePart(properties); + }; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); + 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 + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.namePart = reader.string(); + break; + } + case 2: { + message.isExtension = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("namePart")) + throw $util.ProtocolError("missing required 'namePart'", { instance: message }); + if (!message.hasOwnProperty("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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + */ + NamePart.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) + return object; + let message = new $root.google.protobuf.UninterpretedOption.NamePart(); + if (object.namePart != null) + message.namePart = String(object.namePart); + if (object.isExtension != null) + message.isExtension = Boolean(object.isExtension); + return message; + }; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NamePart.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.namePart = ""; + object.isExtension = false; + } + if (message.namePart != null && message.hasOwnProperty("namePart")) + object.namePart = message.namePart; + if (message.isExtension != null && message.hasOwnProperty("isExtension")) + object.isExtension = message.isExtension; + return object; + }; + + /** + * Converts this NamePart to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + * @returns {Object.} JSON object + */ + NamePart.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NamePart + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NamePart.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption.NamePart"; + }; + + return NamePart; + })(); + + return UninterpretedOption; + })(); - BI.EventsRequest = (function() { + protobuf.SourceCodeInfo = (function() { - /** - * Properties of an EventsRequest. - * @memberof BI - * @interface IEventsRequest - * @property {Array.|null} [event] EventsRequest event - */ + /** + * Properties of a SourceCodeInfo. + * @memberof google.protobuf + * @interface ISourceCodeInfo + * @property {Array.|null} [location] SourceCodeInfo location + */ - /** - * Constructs a new EventsRequest. - * @memberof BI - * @classdesc Represents an EventsRequest. - * @implements IEventsRequest - * @constructor - * @param {BI.IEventsRequest=} [properties] Properties to set - */ - function EventsRequest(properties) { - this.event = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new SourceCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a SourceCodeInfo. + * @implements ISourceCodeInfo + * @constructor + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + */ + function SourceCodeInfo(properties) { + this.location = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * EventsRequest event. - * @member {Array.} event - * @memberof BI.EventsRequest - * @instance - */ - EventsRequest.prototype.event = $util.emptyArray; + /** + * SourceCodeInfo location. + * @member {Array.} location + * @memberof google.protobuf.SourceCodeInfo + * @instance + */ + SourceCodeInfo.prototype.location = $util.emptyArray; - /** - * Creates a new EventsRequest instance using the specified properties. - * @function create - * @memberof BI.EventsRequest - * @static - * @param {BI.IEventsRequest=} [properties] Properties to set - * @returns {BI.EventsRequest} EventsRequest instance - */ - EventsRequest.create = function create(properties) { - return new EventsRequest(properties); - }; + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance + */ + SourceCodeInfo.create = function create(properties) { + return new SourceCodeInfo(properties); + }; - /** - * Encodes the specified EventsRequest message. Does not implicitly {@link BI.EventsRequest.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.event != null && message.event.length) - for (let i = 0; i < message.event.length; ++i) - $root.BI.EventRequest.encode(message.event[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.location != null && message.location.length) + for (let i = 0; i < message.location.length; ++i) + $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + 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(); - }; + /** + * 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 an EventsRequest message from the specified reader or buffer. - * @function decode - * @memberof BI.EventsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EventsRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.event && message.event.length)) - message.event = []; - message.event.push($root.BI.EventRequest.decode(reader, reader.uint32())); + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - 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()); - }; + return message; + }; - /** - * 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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]); - if (error) - return "event." + error; - } - } - return null; - }; + /** + * 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()); + }; - /** - * Creates an EventsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.EventsRequest - * @static - * @param {Object.} object Plain object - * @returns {BI.EventsRequest} EventsRequest - */ - EventsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.EventsRequest) - return object; - let message = new $root.BI.EventsRequest(); - if (object.event) { - if (!Array.isArray(object.event)) - throw TypeError(".BI.EventsRequest.event: array expected"); - message.event = []; - for (let i = 0; i < object.event.length; ++i) { - if (typeof object.event[i] !== "object") - throw TypeError(".BI.EventsRequest.event: object expected"); - message.event[i] = $root.BI.EventRequest.fromObject(object.event[i]); + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + if (error) + return "location." + error; + } } - } - return message; - }; + return null; + }; - /** - * Creates a plain object from an EventsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.EventsRequest - * @static - * @param {BI.EventsRequest} message EventsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EventsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.event = []; - if (message.event && message.event.length) { - object.event = []; - for (let j = 0; j < message.event.length; ++j) - object.event[j] = $root.BI.EventRequest.toObject(message.event[j], options); - } - return object; - }; + /** + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + */ + SourceCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo) + return object; + let message = new $root.google.protobuf.SourceCodeInfo(); + if (object.location) { + if (!Array.isArray(object.location)) + 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") + throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); + message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); + } + } + return message; + }; - /** - * Converts this EventsRequest to JSON. - * @function toJSON - * @memberof BI.EventsRequest - * @instance - * @returns {Object.} JSON object - */ - EventsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SourceCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.location = []; + if (message.location && message.location.length) { + object.location = []; + for (let j = 0; j < message.location.length; ++j) + object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); + } + return object; + }; - /** - * Gets the default type url for EventsRequest - * @function getTypeUrl - * @memberof BI.EventsRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EventsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.EventsRequest"; - }; + /** + * Converts this SourceCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo + * @instance + * @returns {Object.} JSON object + */ + SourceCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return EventsRequest; - })(); + /** + * Gets the default type url for SourceCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SourceCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo"; + }; - BI.EventResponse = (function() { + SourceCodeInfo.Location = (function() { + + /** + * Properties of a Location. + * @memberof google.protobuf.SourceCodeInfo + * @interface ILocation + * @property {Array.|null} [path] Location path + * @property {Array.|null} [span] Location span + * @property {string|null} [leadingComments] Location leadingComments + * @property {string|null} [trailingComments] Location trailingComments + * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments + */ + + /** + * Constructs a new Location. + * @memberof google.protobuf.SourceCodeInfo + * @classdesc Represents a Location. + * @implements ILocation + * @constructor + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + */ + function Location(properties) { + this.path = []; + this.span = []; + this.leadingDetachedComments = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Location path. + * @member {Array.} path + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.path = $util.emptyArray; + + /** + * Location span. + * @member {Array.} span + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.span = $util.emptyArray; + + /** + * Location leadingComments. + * @member {string} leadingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingComments = ""; + + /** + * Location trailingComments. + * @member {string} trailingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.trailingComments = ""; + + /** + * Location leadingDetachedComments. + * @member {Array.} leadingDetachedComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingDetachedComments = $util.emptyArray; + + /** + * Creates a new Location instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo.Location} Location instance + */ + Location.create = function create(properties) { + return new Location(properties); + }; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (let i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.span != null && message.span.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (let i = 0; i < message.span.length; ++i) + writer.int32(message.span[i]); + writer.ldelim(); + } + if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); + if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); + if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) + for (let i = 0; i < message.leadingDetachedComments.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); + 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 + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + } + case 2: { + if (!(message.span && message.span.length)) + message.span = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.span.push(reader.int32()); + } else + message.span.push(reader.int32()); + break; + } + case 3: { + message.leadingComments = reader.string(); + break; + } + case 4: { + message.trailingComments = reader.string(); + break; + } + case 6: { + if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) + message.leadingDetachedComments = []; + message.leadingDetachedComments.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo.Location} Location + */ + Location.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) + return object; + let message = new $root.google.protobuf.SourceCodeInfo.Location(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); + message.path = []; + for (let i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.span) { + if (!Array.isArray(object.span)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); + message.span = []; + for (let i = 0; i < object.span.length; ++i) + message.span[i] = object.span[i] | 0; + } + if (object.leadingComments != null) + message.leadingComments = String(object.leadingComments); + if (object.trailingComments != null) + message.trailingComments = String(object.trailingComments); + if (object.leadingDetachedComments) { + if (!Array.isArray(object.leadingDetachedComments)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected"); + message.leadingDetachedComments = []; + for (let i = 0; i < object.leadingDetachedComments.length; ++i) + message.leadingDetachedComments[i] = String(object.leadingDetachedComments[i]); + } + return message; + }; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.Location} message Location + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Location.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.path = []; + object.span = []; + object.leadingDetachedComments = []; + } + if (options.defaults) { + object.leadingComments = ""; + object.trailingComments = ""; + } + if (message.path && message.path.length) { + object.path = []; + for (let j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.span && message.span.length) { + object.span = []; + for (let j = 0; j < message.span.length; ++j) + object.span[j] = message.span[j]; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + object.leadingComments = message.leadingComments; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + object.trailingComments = message.trailingComments; + if (message.leadingDetachedComments && message.leadingDetachedComments.length) { + object.leadingDetachedComments = []; + for (let j = 0; j < message.leadingDetachedComments.length; ++j) + object.leadingDetachedComments[j] = message.leadingDetachedComments[j]; + } + return object; + }; + + /** + * Converts this Location to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + * @returns {Object.} JSON object + */ + Location.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Location + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Location.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo.Location"; + }; + + return Location; + })(); + + return SourceCodeInfo; + })(); - /** - * Properties of an EventResponse. - * @memberof BI - * @interface IEventResponse - * @property {number|null} [index] EventResponse index - * @property {boolean|null} [status] EventResponse status - */ + protobuf.GeneratedCodeInfo = (function() { - /** - * Constructs a new EventResponse. - * @memberof BI - * @classdesc Represents an EventResponse. - * @implements IEventResponse - * @constructor - * @param {BI.IEventResponse=} [properties] Properties to set - */ - function EventResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a GeneratedCodeInfo. + * @memberof google.protobuf + * @interface IGeneratedCodeInfo + * @property {Array.|null} [annotation] GeneratedCodeInfo annotation + */ - /** - * EventResponse index. - * @member {number} index - * @memberof BI.EventResponse - * @instance - */ - EventResponse.prototype.index = 0; + /** + * Constructs a new GeneratedCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a GeneratedCodeInfo. + * @implements IGeneratedCodeInfo + * @constructor + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + */ + function GeneratedCodeInfo(properties) { + this.annotation = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * EventResponse status. - * @member {boolean} status - * @memberof BI.EventResponse - * @instance - */ - EventResponse.prototype.status = false; + /** + * GeneratedCodeInfo annotation. + * @member {Array.} annotation + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + */ + GeneratedCodeInfo.prototype.annotation = $util.emptyArray; - /** - * Creates a new EventResponse instance using the specified properties. - * @function create - * @memberof BI.EventResponse - * @static - * @param {BI.IEventResponse=} [properties] Properties to set - * @returns {BI.EventResponse} EventResponse instance - */ - EventResponse.create = function create(properties) { - return new EventResponse(properties); - }; + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance + */ + GeneratedCodeInfo.create = function create(properties) { + return new GeneratedCodeInfo(properties); + }; - /** - * Encodes the specified EventResponse message. Does not implicitly {@link BI.EventResponse.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.index); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.status); - return writer; - }; + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotation != null && message.annotation.length) + for (let i = 0; i < message.annotation.length; ++i) + $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + 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(); - }; + /** + * 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 an EventResponse message from the specified reader or buffer. - * @function decode - * @memberof BI.EventResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EventResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.index = reader.int32(); - break; - } - case 2: { - message.status = reader.bool(); + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.annotation && message.annotation.length)) + message.annotation = []; + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + 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()); - }; + /** + * 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 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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; - }; + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + if (error) + return "annotation." + error; + } + } + return null; + }; - /** - * Creates an EventResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.EventResponse - * @static - * @param {Object.} object Plain object - * @returns {BI.EventResponse} EventResponse - */ - EventResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.EventResponse) - return object; - let message = new $root.BI.EventResponse(); - if (object.index != null) - message.index = object.index | 0; - if (object.status != null) - message.status = Boolean(object.status); - return message; - }; + /** + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + */ + GeneratedCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo) + return object; + let message = new $root.google.protobuf.GeneratedCodeInfo(); + if (object.annotation) { + if (!Array.isArray(object.annotation)) + 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") + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); + message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); + } + } + return message; + }; - /** - * Creates a plain object from an EventResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.EventResponse - * @static - * @param {BI.EventResponse} message EventResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EventResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.index = 0; - object.status = false; - } - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; - return object; - }; + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GeneratedCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.annotation = []; + if (message.annotation && message.annotation.length) { + object.annotation = []; + for (let j = 0; j < message.annotation.length; ++j) + object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); + } + return object; + }; - /** - * Converts this EventResponse to JSON. - * @function toJSON - * @memberof BI.EventResponse - * @instance - * @returns {Object.} JSON object - */ - EventResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this GeneratedCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + * @returns {Object.} JSON object + */ + GeneratedCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for EventResponse - * @function getTypeUrl - * @memberof BI.EventResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EventResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.EventResponse"; - }; + /** + * Gets the default type url for GeneratedCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GeneratedCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo"; + }; - return EventResponse; - })(); + GeneratedCodeInfo.Annotation = (function() { + + /** + * Properties of an Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @interface IAnnotation + * @property {Array.|null} [path] Annotation path + * @property {string|null} [sourceFile] Annotation sourceFile + * @property {number|null} [begin] Annotation begin + * @property {number|null} [end] Annotation end + */ + + /** + * Constructs a new Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @classdesc Represents an Annotation. + * @implements IAnnotation + * @constructor + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + */ + function Annotation(properties) { + this.path = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Annotation path. + * @member {Array.} path + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.path = $util.emptyArray; + + /** + * Annotation sourceFile. + * @member {string} sourceFile + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.sourceFile = ""; + + /** + * Annotation begin. + * @member {number} begin + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.begin = 0; + + /** + * Annotation end. + * @member {number} end + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.end = 0; + + /** + * Creates a new Annotation instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance + */ + Annotation.create = function create(properties) { + return new Annotation(properties); + }; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (let i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); + if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); + 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 + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + } + case 2: { + message.sourceFile = reader.string(); + break; + } + case 3: { + message.begin = reader.int32(); + break; + } + case 4: { + message.end = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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"; + return null; + }; + + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + */ + Annotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) + return object; + let message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); + message.path = []; + for (let i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.sourceFile != null) + message.sourceFile = String(object.sourceFile); + if (object.begin != null) + message.begin = object.begin | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Annotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.path = []; + if (options.defaults) { + object.sourceFile = ""; + object.begin = 0; + object.end = 0; + } + if (message.path && message.path.length) { + object.path = []; + for (let j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + object.sourceFile = message.sourceFile; + if (message.begin != null && message.hasOwnProperty("begin")) + object.begin = message.begin; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this Annotation to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + * @returns {Object.} JSON object + */ + Annotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Annotation + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Annotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo.Annotation"; + }; + + return Annotation; + })(); + + return GeneratedCodeInfo; + })(); - BI.EventsResponse = (function() { + protobuf.Struct = (function() { - /** - * Properties of an EventsResponse. - * @memberof BI - * @interface IEventsResponse - * @property {Array.|null} [response] EventsResponse response - */ + /** + * Properties of a Struct. + * @memberof google.protobuf + * @interface IStruct + * @property {Object.|null} [fields] Struct fields + */ - /** - * Constructs a new EventsResponse. - * @memberof BI - * @classdesc Represents an EventsResponse. - * @implements IEventsResponse - * @constructor - * @param {BI.IEventsResponse=} [properties] Properties to set - */ - function EventsResponse(properties) { - this.response = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Struct. + * @memberof google.protobuf + * @classdesc Represents a Struct. + * @implements IStruct + * @constructor + * @param {google.protobuf.IStruct=} [properties] Properties to set + */ + function Struct(properties) { + this.fields = {}; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * EventsResponse response. - * @member {Array.} response - * @memberof BI.EventsResponse - * @instance - */ - EventsResponse.prototype.response = $util.emptyArray; + /** + * Struct fields. + * @member {Object.} fields + * @memberof google.protobuf.Struct + * @instance + */ + Struct.prototype.fields = $util.emptyObject; - /** - * Creates a new EventsResponse instance using the specified properties. - * @function create - * @memberof BI.EventsResponse - * @static - * @param {BI.IEventsResponse=} [properties] Properties to set - * @returns {BI.EventsResponse} EventsResponse instance - */ - EventsResponse.create = function create(properties) { - return new EventsResponse(properties); - }; + /** + * Creates a new Struct instance using the specified properties. + * @function create + * @memberof google.protobuf.Struct + * @static + * @param {google.protobuf.IStruct=} [properties] Properties to set + * @returns {google.protobuf.Struct} Struct instance + */ + Struct.create = function create(properties) { + return new Struct(properties); + }; - /** - * Encodes the specified EventsResponse message. Does not implicitly {@link BI.EventsResponse.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.response != null && message.response.length) - for (let i = 0; i < message.response.length; ++i) - $root.BI.EventResponse.encode(message.response[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fields != null && Object.hasOwnProperty.call(message, "fields")) + for (let keys = Object.keys(message.fields), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.fields[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + 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(); - }; + /** + * 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 an EventsResponse message from the specified reader or buffer. - * @function decode - * @memberof BI.EventsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EventsResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.response && message.response.length)) - message.response = []; - message.response.push($root.BI.EventResponse.decode(reader, reader.uint32())); + /** + * Decodes a Struct message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Struct + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Struct(), key, value; + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.fields === $util.emptyObject) + message.fields = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.fields[key] = value; + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + 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()); - }; + /** + * 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 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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]); - if (error) - return "response." + error; + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]]); + if (error) + return "fields." + error; + } } - } - return null; - }; + return null; + }; - /** - * Creates an EventsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.EventsResponse - * @static - * @param {Object.} object Plain object - * @returns {BI.EventsResponse} EventsResponse - */ - EventsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.EventsResponse) - return object; - let message = new $root.BI.EventsResponse(); - if (object.response) { - if (!Array.isArray(object.response)) - throw TypeError(".BI.EventsResponse.response: array expected"); - message.response = []; - for (let i = 0; i < object.response.length; ++i) { - if (typeof object.response[i] !== "object") - throw TypeError(".BI.EventsResponse.response: object expected"); - message.response[i] = $root.BI.EventResponse.fromObject(object.response[i]); + /** + * Creates a Struct message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Struct + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Struct} Struct + */ + Struct.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Struct) + return object; + let message = new $root.google.protobuf.Struct(); + if (object.fields) { + if (typeof object.fields !== "object") + throw TypeError(".google.protobuf.Struct.fields: object expected"); + message.fields = {}; + for (let keys = Object.keys(object.fields), i = 0; i < keys.length; ++i) { + if (typeof object.fields[keys[i]] !== "object") + throw TypeError(".google.protobuf.Struct.fields: object expected"); + message.fields[keys[i]] = $root.google.protobuf.Value.fromObject(object.fields[keys[i]]); + } } - } - return message; - }; - - /** - * Creates a plain object from an EventsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.EventsResponse - * @static - * @param {BI.EventsResponse} message EventsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EventsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.response = []; - if (message.response && message.response.length) { - object.response = []; - for (let j = 0; j < message.response.length; ++j) - object.response[j] = $root.BI.EventResponse.toObject(message.response[j], options); - } - return object; - }; - - /** - * Converts this EventsResponse to JSON. - * @function toJSON - * @memberof BI.EventsResponse - * @instance - * @returns {Object.} JSON object - */ - EventsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return message; + }; - /** - * Gets the default type url for EventsResponse - * @function getTypeUrl - * @memberof BI.EventsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EventsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.EventsResponse"; - }; + /** + * Creates a plain object from a Struct message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Struct + * @static + * @param {google.protobuf.Struct} message Struct + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Struct.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.objects || options.defaults) + object.fields = {}; + let keys2; + if (message.fields && (keys2 = Object.keys(message.fields)).length) { + object.fields = {}; + for (let j = 0; j < keys2.length; ++j) + object.fields[keys2[j]] = $root.google.protobuf.Value.toObject(message.fields[keys2[j]], options); + } + return object; + }; - return EventsResponse; - })(); + /** + * Converts this Struct to JSON. + * @function toJSON + * @memberof google.protobuf.Struct + * @instance + * @returns {Object.} JSON object + */ + Struct.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - BI.CustomerCaptureRequest = (function() { + /** + * Gets the default type url for Struct + * @function getTypeUrl + * @memberof google.protobuf.Struct + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Struct.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Struct"; + }; - /** - * Properties of a CustomerCaptureRequest. - * @memberof BI - * @interface ICustomerCaptureRequest - * @property {string|null} [pageUrl] CustomerCaptureRequest pageUrl - * @property {string|null} [tree] CustomerCaptureRequest tree - * @property {string|null} [hash] CustomerCaptureRequest hash - * @property {string|null} [image] CustomerCaptureRequest image - * @property {string|null} [pageLoadTime] CustomerCaptureRequest pageLoadTime - * @property {string|null} [keyId] CustomerCaptureRequest keyId - * @property {boolean|null} [test] CustomerCaptureRequest test - * @property {string|null} [issueType] CustomerCaptureRequest issueType - * @property {string|null} [notes] CustomerCaptureRequest notes - */ + return Struct; + })(); - /** - * Constructs a new CustomerCaptureRequest. - * @memberof BI - * @classdesc Represents a CustomerCaptureRequest. - * @implements ICustomerCaptureRequest - * @constructor - * @param {BI.ICustomerCaptureRequest=} [properties] Properties to set - */ - function CustomerCaptureRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + protobuf.Value = (function() { - /** - * CustomerCaptureRequest pageUrl. - * @member {string} pageUrl - * @memberof BI.CustomerCaptureRequest - * @instance - */ - CustomerCaptureRequest.prototype.pageUrl = ""; + /** + * Properties of a Value. + * @memberof google.protobuf + * @interface IValue + * @property {google.protobuf.NullValue|null} [nullValue] Value nullValue + * @property {number|null} [numberValue] Value numberValue + * @property {string|null} [stringValue] Value stringValue + * @property {boolean|null} [boolValue] Value boolValue + * @property {google.protobuf.IStruct|null} [structValue] Value structValue + * @property {google.protobuf.IListValue|null} [listValue] Value listValue + */ - /** - * CustomerCaptureRequest tree. - * @member {string} tree - * @memberof BI.CustomerCaptureRequest - * @instance - */ - CustomerCaptureRequest.prototype.tree = ""; + /** + * Constructs a new Value. + * @memberof google.protobuf + * @classdesc Represents a Value. + * @implements IValue + * @constructor + * @param {google.protobuf.IValue=} [properties] Properties to set + */ + function Value(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * CustomerCaptureRequest hash. - * @member {string} hash - * @memberof BI.CustomerCaptureRequest - * @instance - */ - CustomerCaptureRequest.prototype.hash = ""; + /** + * Value nullValue. + * @member {google.protobuf.NullValue|null|undefined} nullValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.nullValue = null; - /** - * CustomerCaptureRequest image. - * @member {string} image - * @memberof BI.CustomerCaptureRequest - * @instance - */ - CustomerCaptureRequest.prototype.image = ""; + /** + * Value numberValue. + * @member {number|null|undefined} numberValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.numberValue = null; - /** - * CustomerCaptureRequest pageLoadTime. - * @member {string} pageLoadTime - * @memberof BI.CustomerCaptureRequest - * @instance - */ - CustomerCaptureRequest.prototype.pageLoadTime = ""; + /** + * Value stringValue. + * @member {string|null|undefined} stringValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.stringValue = null; - /** - * CustomerCaptureRequest keyId. - * @member {string} keyId - * @memberof BI.CustomerCaptureRequest - * @instance - */ - CustomerCaptureRequest.prototype.keyId = ""; + /** + * Value boolValue. + * @member {boolean|null|undefined} boolValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.boolValue = null; - /** - * CustomerCaptureRequest test. - * @member {boolean} test - * @memberof BI.CustomerCaptureRequest - * @instance - */ - CustomerCaptureRequest.prototype.test = false; + /** + * Value structValue. + * @member {google.protobuf.IStruct|null|undefined} structValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.structValue = null; - /** - * CustomerCaptureRequest issueType. - * @member {string} issueType - * @memberof BI.CustomerCaptureRequest - * @instance - */ - CustomerCaptureRequest.prototype.issueType = ""; + /** + * Value listValue. + * @member {google.protobuf.IListValue|null|undefined} listValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.listValue = null; - /** - * CustomerCaptureRequest notes. - * @member {string} notes - * @memberof BI.CustomerCaptureRequest - * @instance - */ - CustomerCaptureRequest.prototype.notes = ""; + // OneOf field names bound to virtual getters and setters + let $oneOfFields; - /** - * Creates a new CustomerCaptureRequest instance using the specified properties. - * @function create - * @memberof BI.CustomerCaptureRequest - * @static - * @param {BI.ICustomerCaptureRequest=} [properties] Properties to set - * @returns {BI.CustomerCaptureRequest} CustomerCaptureRequest instance - */ - CustomerCaptureRequest.create = function create(properties) { - return new CustomerCaptureRequest(properties); - }; + /** + * Value kind. + * @member {"nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"|undefined} kind + * @memberof google.protobuf.Value + * @instance + */ + Object.defineProperty(Value.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["nullValue", "numberValue", "stringValue", "boolValue", "structValue", "listValue"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Encodes the specified CustomerCaptureRequest message. Does not implicitly {@link BI.CustomerCaptureRequest.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.pageUrl != null && Object.hasOwnProperty.call(message, "pageUrl")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.pageUrl); - if (message.tree != null && Object.hasOwnProperty.call(message, "tree")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.tree); - if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.hash); - if (message.image != null && Object.hasOwnProperty.call(message, "image")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.image); - if (message.pageLoadTime != null && Object.hasOwnProperty.call(message, "pageLoadTime")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.pageLoadTime); - if (message.keyId != null && Object.hasOwnProperty.call(message, "keyId")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.keyId); - if (message.test != null && Object.hasOwnProperty.call(message, "test")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.test); - if (message.issueType != null && Object.hasOwnProperty.call(message, "issueType")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.issueType); - if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.notes); - return writer; - }; + /** + * Creates a new Value instance using the specified properties. + * @function create + * @memberof google.protobuf.Value + * @static + * @param {google.protobuf.IValue=} [properties] Properties to set + * @returns {google.protobuf.Value} Value instance + */ + Value.create = function create(properties) { + return new Value(properties); + }; - /** - * 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(); - }; + /** + * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nullValue != null && Object.hasOwnProperty.call(message, "nullValue")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.nullValue); + if (message.numberValue != null && Object.hasOwnProperty.call(message, "numberValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.numberValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); + if (message.boolValue != null && Object.hasOwnProperty.call(message, "boolValue")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolValue); + if (message.structValue != null && Object.hasOwnProperty.call(message, "structValue")) + $root.google.protobuf.Struct.encode(message.structValue, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.listValue != null && Object.hasOwnProperty.call(message, "listValue")) + $root.google.protobuf.ListValue.encode(message.listValue, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; - /** - * Decodes a CustomerCaptureRequest message from the specified reader or buffer. - * @function decode - * @memberof BI.CustomerCaptureRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.CustomerCaptureRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.pageUrl = reader.string(); - break; - } - case 2: { - message.tree = reader.string(); - break; - } - case 3: { - message.hash = reader.string(); - break; - } - case 4: { - message.image = reader.string(); - break; - } - case 5: { - message.pageLoadTime = reader.string(); + /** + * 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 + * @memberof google.protobuf.Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Value(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.nullValue = reader.int32(); + break; + } + case 2: { + message.numberValue = reader.double(); + break; + } + case 3: { + message.stringValue = reader.string(); + break; + } + case 4: { + message.boolValue = reader.bool(); + break; + } + case 5: { + message.structValue = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + case 6: { + message.listValue = $root.google.protobuf.ListValue.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - case 6: { - message.keyId = reader.string(); + } + 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.nullValue != null && message.hasOwnProperty("nullValue")) { + properties.kind = 1; + switch (message.nullValue) { + default: + return "nullValue: enum value expected"; + case 0: break; } - case 7: { - message.test = reader.bool(); - 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); + if (error) + return "structValue." + error; } - case 8: { - message.issueType = reader.string(); - break; + } + 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); + if (error) + return "listValue." + error; } - case 9: { - message.notes = reader.string(); + } + return null; + }; + + /** + * Creates a Value message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Value + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Value} Value + */ + Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Value) + return object; + let message = new $root.google.protobuf.Value(); + switch (object.nullValue) { + default: + if (typeof object.nullValue === "number") { + message.nullValue = object.nullValue; break; } - default: - reader.skipType(tag & 7); + break; + case "NULL_VALUE": + case 0: + message.nullValue = 0; break; } - } - 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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; - }; + if (object.numberValue != null) + message.numberValue = Number(object.numberValue); + if (object.stringValue != null) + message.stringValue = String(object.stringValue); + if (object.boolValue != null) + message.boolValue = Boolean(object.boolValue); + if (object.structValue != null) { + if (typeof object.structValue !== "object") + throw TypeError(".google.protobuf.Value.structValue: object expected"); + message.structValue = $root.google.protobuf.Struct.fromObject(object.structValue); + } + if (object.listValue != null) { + if (typeof object.listValue !== "object") + throw TypeError(".google.protobuf.Value.listValue: object expected"); + message.listValue = $root.google.protobuf.ListValue.fromObject(object.listValue); + } + return message; + }; - /** - * Creates a CustomerCaptureRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.CustomerCaptureRequest - * @static - * @param {Object.} object Plain object - * @returns {BI.CustomerCaptureRequest} CustomerCaptureRequest - */ - CustomerCaptureRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.CustomerCaptureRequest) + /** + * Creates a plain object from a Value message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Value + * @static + * @param {google.protobuf.Value} message Value + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Value.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (message.nullValue != null && message.hasOwnProperty("nullValue")) { + object.nullValue = options.enums === String ? $root.google.protobuf.NullValue[message.nullValue] === undefined ? message.nullValue : $root.google.protobuf.NullValue[message.nullValue] : message.nullValue; + if (options.oneofs) + object.kind = "nullValue"; + } + if (message.numberValue != null && message.hasOwnProperty("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")) { + object.stringValue = message.stringValue; + if (options.oneofs) + object.kind = "stringValue"; + } + if (message.boolValue != null && message.hasOwnProperty("boolValue")) { + object.boolValue = message.boolValue; + if (options.oneofs) + object.kind = "boolValue"; + } + if (message.structValue != null && message.hasOwnProperty("structValue")) { + object.structValue = $root.google.protobuf.Struct.toObject(message.structValue, options); + if (options.oneofs) + object.kind = "structValue"; + } + if (message.listValue != null && message.hasOwnProperty("listValue")) { + object.listValue = $root.google.protobuf.ListValue.toObject(message.listValue, options); + if (options.oneofs) + object.kind = "listValue"; + } return object; - let message = new $root.BI.CustomerCaptureRequest(); - if (object.pageUrl != null) - message.pageUrl = String(object.pageUrl); - if (object.tree != null) - message.tree = String(object.tree); - if (object.hash != null) - message.hash = String(object.hash); - if (object.image != null) - message.image = String(object.image); - if (object.pageLoadTime != null) - message.pageLoadTime = String(object.pageLoadTime); - if (object.keyId != null) - message.keyId = String(object.keyId); - if (object.test != null) - message.test = Boolean(object.test); - if (object.issueType != null) - message.issueType = String(object.issueType); - if (object.notes != null) - message.notes = String(object.notes); - return message; - }; + }; - /** - * Creates a plain object from a CustomerCaptureRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.CustomerCaptureRequest - * @static - * @param {BI.CustomerCaptureRequest} message CustomerCaptureRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CustomerCaptureRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.pageUrl = ""; - object.tree = ""; - object.hash = ""; - object.image = ""; - object.pageLoadTime = ""; - object.keyId = ""; - object.test = false; - object.issueType = ""; - object.notes = ""; - } - if (message.pageUrl != null && message.hasOwnProperty("pageUrl")) - object.pageUrl = message.pageUrl; - if (message.tree != null && message.hasOwnProperty("tree")) - object.tree = message.tree; - if (message.hash != null && message.hasOwnProperty("hash")) - object.hash = message.hash; - if (message.image != null && message.hasOwnProperty("image")) - object.image = message.image; - if (message.pageLoadTime != null && message.hasOwnProperty("pageLoadTime")) - object.pageLoadTime = message.pageLoadTime; - if (message.keyId != null && message.hasOwnProperty("keyId")) - object.keyId = message.keyId; - if (message.test != null && message.hasOwnProperty("test")) - object.test = message.test; - if (message.issueType != null && message.hasOwnProperty("issueType")) - object.issueType = message.issueType; - if (message.notes != null && message.hasOwnProperty("notes")) - object.notes = message.notes; - return object; - }; + /** + * Converts this Value to JSON. + * @function toJSON + * @memberof google.protobuf.Value + * @instance + * @returns {Object.} JSON object + */ + Value.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this CustomerCaptureRequest to JSON. - * @function toJSON - * @memberof BI.CustomerCaptureRequest - * @instance - * @returns {Object.} JSON object - */ - CustomerCaptureRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for Value + * @function getTypeUrl + * @memberof google.protobuf.Value + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Value"; + }; + + return Value; + })(); /** - * Gets the default type url for CustomerCaptureRequest - * @function getTypeUrl - * @memberof BI.CustomerCaptureRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * NullValue enum. + * @name google.protobuf.NullValue + * @enum {number} + * @property {number} NULL_VALUE=0 NULL_VALUE value */ - CustomerCaptureRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.CustomerCaptureRequest"; - }; + protobuf.NullValue = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NULL_VALUE"] = 0; + return values; + })(); - return CustomerCaptureRequest; - })(); + protobuf.ListValue = (function() { - BI.CustomerCaptureResponse = (function() { + /** + * Properties of a ListValue. + * @memberof google.protobuf + * @interface IListValue + * @property {Array.|null} [values] ListValue values + */ - /** - * Properties of a CustomerCaptureResponse. - * @memberof BI - * @interface ICustomerCaptureResponse - */ + /** + * Constructs a new ListValue. + * @memberof google.protobuf + * @classdesc Represents a ListValue. + * @implements IListValue + * @constructor + * @param {google.protobuf.IListValue=} [properties] Properties to set + */ + function ListValue(properties) { + this.values = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new CustomerCaptureResponse. - * @memberof BI - * @classdesc Represents a CustomerCaptureResponse. - * @implements ICustomerCaptureResponse - * @constructor - * @param {BI.ICustomerCaptureResponse=} [properties] Properties to set - */ - function CustomerCaptureResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ListValue values. + * @member {Array.} values + * @memberof google.protobuf.ListValue + * @instance + */ + ListValue.prototype.values = $util.emptyArray; - /** - * Creates a new CustomerCaptureResponse instance using the specified properties. - * @function create - * @memberof BI.CustomerCaptureResponse - * @static - * @param {BI.ICustomerCaptureResponse=} [properties] Properties to set - * @returns {BI.CustomerCaptureResponse} CustomerCaptureResponse instance - */ - CustomerCaptureResponse.create = function create(properties) { - return new CustomerCaptureResponse(properties); - }; + /** + * Creates a new ListValue instance using the specified properties. + * @function create + * @memberof google.protobuf.ListValue + * @static + * @param {google.protobuf.IListValue=} [properties] Properties to set + * @returns {google.protobuf.ListValue} ListValue instance + */ + ListValue.create = function create(properties) { + return new ListValue(properties); + }; - /** - * Encodes the specified CustomerCaptureResponse message. Does not implicitly {@link BI.CustomerCaptureResponse.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (let i = 0; i < message.values.length; ++i) + $root.google.protobuf.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + 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(); - }; + /** + * 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 CustomerCaptureResponse message from the specified reader or buffer. - * @function decode - * @memberof BI.CustomerCaptureResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.CustomerCaptureResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a ListValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ListValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ListValue(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + 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()); - }; + /** + * 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 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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]); + if (error) + return "values." + error; + } + } + return null; + }; - /** - * Creates a CustomerCaptureResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.CustomerCaptureResponse - * @static - * @param {Object.} object Plain object - * @returns {BI.CustomerCaptureResponse} CustomerCaptureResponse - */ - CustomerCaptureResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.CustomerCaptureResponse) + /** + * Creates a ListValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ListValue + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ListValue} ListValue + */ + ListValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ListValue) + return object; + let message = new $root.google.protobuf.ListValue(); + if (object.values) { + if (!Array.isArray(object.values)) + 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") + throw TypeError(".google.protobuf.ListValue.values: object expected"); + message.values[i] = $root.google.protobuf.Value.fromObject(object.values[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ListValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ListValue + * @static + * @param {google.protobuf.ListValue} message ListValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (let j = 0; j < message.values.length; ++j) + object.values[j] = $root.google.protobuf.Value.toObject(message.values[j], options); + } return object; - return new $root.BI.CustomerCaptureResponse(); - }; + }; - /** - * Creates a plain object from a CustomerCaptureResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.CustomerCaptureResponse - * @static - * @param {BI.CustomerCaptureResponse} message CustomerCaptureResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CustomerCaptureResponse.toObject = function toObject() { - return {}; - }; + /** + * Converts this ListValue to JSON. + * @function toJSON + * @memberof google.protobuf.ListValue + * @instance + * @returns {Object.} JSON object + */ + ListValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this CustomerCaptureResponse to JSON. - * @function toJSON - * @memberof BI.CustomerCaptureResponse - * @instance - * @returns {Object.} JSON object - */ - CustomerCaptureResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for ListValue + * @function getTypeUrl + * @memberof google.protobuf.ListValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ListValue"; + }; - /** - * Gets the default type url for CustomerCaptureResponse - * @function getTypeUrl - * @memberof BI.CustomerCaptureResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CustomerCaptureResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.CustomerCaptureResponse"; - }; + return ListValue; + })(); - return CustomerCaptureResponse; + return protobuf; })(); + return google; +})(); + +export const Router = $root.Router = (() => { + /** - * PurchaseProductType enum. - * @name BI.PurchaseProductType + * Namespace Router. + * @exports Router + * @namespace + */ + const Router = {}; + + /** + * RouterResponseCode enum. + * @name Router.RouterResponseCode * @enum {number} - * @property {number} upgradeToEnterprise=0 upgradeToEnterprise value - * @property {number} addUsers=1 addUsers value - * @property {number} addStorage=2 addStorage value - * @property {number} addAudit=3 addAudit value - * @property {number} addBreachWatch=4 addBreachWatch value - * @property {number} addCompliance=5 addCompliance value - * @property {number} addChat=6 addChat value - * @property {number} addPAM=7 addPAM value - * @property {number} addSilverSupport=8 addSilverSupport value - * @property {number} addPlatinumSupport=9 addPlatinumSupport value - * @property {number} addKEPM=10 addKEPM value + * @property {number} RRC_OK=0 RRC_OK value + * @property {number} RRC_GENERAL_ERROR=1 RRC_GENERAL_ERROR value + * @property {number} RRC_NOT_ALLOWED=2 RRC_NOT_ALLOWED value + * @property {number} RRC_BAD_REQUEST=3 RRC_BAD_REQUEST value + * @property {number} RRC_TIMEOUT=4 RRC_TIMEOUT value + * @property {number} RRC_BAD_STATE=5 RRC_BAD_STATE value + * @property {number} RRC_CONTROLLER_DOWN=6 RRC_CONTROLLER_DOWN value + * @property {number} RRC_WRONG_INSTANCE=7 RRC_WRONG_INSTANCE value + * @property {number} RRC_NOT_ALLOWED_ENFORCEMENT_NOT_ENABLED=8 RRC_NOT_ALLOWED_ENFORCEMENT_NOT_ENABLED value + * @property {number} RRC_NOT_ALLOWED_PAM_CONFIG_FEATURES_NOT_ENABLED=9 RRC_NOT_ALLOWED_PAM_CONFIG_FEATURES_NOT_ENABLED value */ - BI.PurchaseProductType = (function() { + Router.RouterResponseCode = (function() { const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "upgradeToEnterprise"] = 0; - values[valuesById[1] = "addUsers"] = 1; - values[valuesById[2] = "addStorage"] = 2; - values[valuesById[3] = "addAudit"] = 3; - values[valuesById[4] = "addBreachWatch"] = 4; - values[valuesById[5] = "addCompliance"] = 5; - values[valuesById[6] = "addChat"] = 6; - values[valuesById[7] = "addPAM"] = 7; - values[valuesById[8] = "addSilverSupport"] = 8; - values[valuesById[9] = "addPlatinumSupport"] = 9; - values[valuesById[10] = "addKEPM"] = 10; + values[valuesById[0] = "RRC_OK"] = 0; + values[valuesById[1] = "RRC_GENERAL_ERROR"] = 1; + values[valuesById[2] = "RRC_NOT_ALLOWED"] = 2; + values[valuesById[3] = "RRC_BAD_REQUEST"] = 3; + values[valuesById[4] = "RRC_TIMEOUT"] = 4; + values[valuesById[5] = "RRC_BAD_STATE"] = 5; + values[valuesById[6] = "RRC_CONTROLLER_DOWN"] = 6; + values[valuesById[7] = "RRC_WRONG_INSTANCE"] = 7; + values[valuesById[8] = "RRC_NOT_ALLOWED_ENFORCEMENT_NOT_ENABLED"] = 8; + values[valuesById[9] = "RRC_NOT_ALLOWED_PAM_CONFIG_FEATURES_NOT_ENABLED"] = 9; return values; })(); - BI.Error = (function() { + Router.RouterResponse = (function() { /** - * Properties of an Error. - * @memberof BI - * @interface IError - * @property {string|null} [code] Error code - * @property {string|null} [message] Error message - * @property {Object.|null} [extras] Error extras + * Properties of a RouterResponse. + * @memberof Router + * @interface IRouterResponse + * @property {Router.RouterResponseCode|null} [responseCode] RouterResponse responseCode + * @property {string|null} [errorMessage] RouterResponse errorMessage + * @property {Uint8Array|null} [encryptedPayload] RouterResponse encryptedPayload */ /** - * Constructs a new Error. - * @memberof BI - * @classdesc Represents an Error. - * @implements IError + * Constructs a new RouterResponse. + * @memberof Router + * @classdesc Represents a RouterResponse. + * @implements IRouterResponse * @constructor - * @param {BI.IError=} [properties] Properties to set + * @param {Router.IRouterResponse=} [properties] Properties to set */ - function Error(properties) { - this.extras = {}; + function RouterResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -239030,123 +271931,103 @@ export const BI = $root.BI = (() => { } /** - * Error code. - * @member {string} code - * @memberof BI.Error + * RouterResponse responseCode. + * @member {Router.RouterResponseCode} responseCode + * @memberof Router.RouterResponse * @instance */ - Error.prototype.code = ""; + RouterResponse.prototype.responseCode = 0; /** - * Error message. - * @member {string} message - * @memberof BI.Error + * RouterResponse errorMessage. + * @member {string} errorMessage + * @memberof Router.RouterResponse * @instance */ - Error.prototype.message = ""; + RouterResponse.prototype.errorMessage = ""; /** - * Error extras. - * @member {Object.} extras - * @memberof BI.Error + * RouterResponse encryptedPayload. + * @member {Uint8Array} encryptedPayload + * @memberof Router.RouterResponse * @instance */ - Error.prototype.extras = $util.emptyObject; + RouterResponse.prototype.encryptedPayload = $util.newBuffer([]); /** - * Creates a new Error instance using the specified properties. + * Creates a new RouterResponse instance using the specified properties. * @function create - * @memberof BI.Error + * @memberof Router.RouterResponse * @static - * @param {BI.IError=} [properties] Properties to set - * @returns {BI.Error} Error instance + * @param {Router.IRouterResponse=} [properties] Properties to set + * @returns {Router.RouterResponse} RouterResponse instance */ - Error.create = function create(properties) { - return new Error(properties); + RouterResponse.create = function create(properties) { + return new RouterResponse(properties); }; /** - * Encodes the specified Error message. Does not implicitly {@link BI.Error.verify|verify} messages. + * Encodes the specified RouterResponse message. Does not implicitly {@link Router.RouterResponse.verify|verify} messages. * @function encode - * @memberof BI.Error + * @memberof Router.RouterResponse * @static - * @param {BI.IError} message Error message or plain object to encode + * @param {Router.IRouterResponse} message RouterResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Error.encode = function encode(message, writer) { + RouterResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.code != null && Object.hasOwnProperty.call(message, "code")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.code); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - if (message.extras != null && Object.hasOwnProperty.call(message, "extras")) - for (let keys = Object.keys(message.extras), i = 0; i < keys.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.extras[keys[i]]).ldelim(); + if (message.responseCode != null && Object.hasOwnProperty.call(message, "responseCode")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.responseCode); + if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.errorMessage); + if (message.encryptedPayload != null && Object.hasOwnProperty.call(message, "encryptedPayload")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.encryptedPayload); return writer; }; /** - * Encodes the specified Error message, length delimited. Does not implicitly {@link BI.Error.verify|verify} messages. + * Encodes the specified RouterResponse message, length delimited. Does not implicitly {@link Router.RouterResponse.verify|verify} messages. * @function encodeDelimited - * @memberof BI.Error + * @memberof Router.RouterResponse * @static - * @param {BI.IError} message Error message or plain object to encode + * @param {Router.IRouterResponse} message RouterResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Error.encodeDelimited = function encodeDelimited(message, writer) { + RouterResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Error message from the specified reader or buffer. + * Decodes a RouterResponse message from the specified reader or buffer. * @function decode - * @memberof BI.Error + * @memberof Router.RouterResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.Error} Error + * @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 */ - Error.decode = function decode(reader, length) { + RouterResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.Error(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.code = reader.string(); + message.responseCode = reader.int32(); break; } case 2: { - message.message = reader.string(); + message.errorMessage = reader.string(); break; } case 3: { - if (message.extras === $util.emptyObject) - message.extras = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.extras[key] = value; + message.encryptedPayload = reader.bytes(); break; } default: @@ -239158,159 +272039,212 @@ export const BI = $root.BI = (() => { }; /** - * Decodes an Error message from the specified reader or buffer, length delimited. + * Decodes a RouterResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.Error + * @memberof Router.RouterResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.Error} Error + * @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 */ - Error.decodeDelimited = function decodeDelimited(reader) { + RouterResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Error message. + * Verifies a RouterResponse message. * @function verify - * @memberof BI.Error + * @memberof Router.RouterResponse * @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) { + RouterResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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"; - } + 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 an Error message from a plain object. Also converts values to their respective internal types. + * Creates a RouterResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.Error + * @memberof Router.RouterResponse * @static * @param {Object.} object Plain object - * @returns {BI.Error} Error + * @returns {Router.RouterResponse} RouterResponse */ - Error.fromObject = function fromObject(object) { - if (object instanceof $root.BI.Error) + RouterResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Router.RouterResponse) return object; - let message = new $root.BI.Error(); - if (object.code != null) - message.code = String(object.code); - if (object.message != null) - message.message = String(object.message); - if (object.extras) { - if (typeof object.extras !== "object") - throw TypeError(".BI.Error.extras: object expected"); - message.extras = {}; - for (let keys = Object.keys(object.extras), i = 0; i < keys.length; ++i) - message.extras[keys[i]] = String(object.extras[keys[i]]); + let message = new $root.Router.RouterResponse(); + switch (object.responseCode) { + default: + if (typeof object.responseCode === "number") { + message.responseCode = object.responseCode; + break; + } + break; + case "RRC_OK": + case 0: + message.responseCode = 0; + break; + case "RRC_GENERAL_ERROR": + case 1: + message.responseCode = 1; + break; + case "RRC_NOT_ALLOWED": + case 2: + message.responseCode = 2; + break; + case "RRC_BAD_REQUEST": + case 3: + message.responseCode = 3; + break; + case "RRC_TIMEOUT": + case 4: + message.responseCode = 4; + break; + case "RRC_BAD_STATE": + case 5: + message.responseCode = 5; + break; + case "RRC_CONTROLLER_DOWN": + case 6: + message.responseCode = 6; + break; + case "RRC_WRONG_INSTANCE": + case 7: + message.responseCode = 7; + break; + case "RRC_NOT_ALLOWED_ENFORCEMENT_NOT_ENABLED": + case 8: + message.responseCode = 8; + break; + case "RRC_NOT_ALLOWED_PAM_CONFIG_FEATURES_NOT_ENABLED": + case 9: + message.responseCode = 9; + break; } + if (object.errorMessage != null) + message.errorMessage = String(object.errorMessage); + if (object.encryptedPayload != null) + if (typeof object.encryptedPayload === "string") + $util.base64.decode(object.encryptedPayload, message.encryptedPayload = $util.newBuffer($util.base64.length(object.encryptedPayload)), 0); + else if (object.encryptedPayload.length >= 0) + message.encryptedPayload = object.encryptedPayload; return message; }; /** - * Creates a plain object from an Error message. Also converts values to other types if specified. + * Creates a plain object from a RouterResponse message. Also converts values to other types if specified. * @function toObject - * @memberof BI.Error + * @memberof Router.RouterResponse * @static - * @param {BI.Error} message Error + * @param {Router.RouterResponse} message RouterResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Error.toObject = function toObject(message, options) { + RouterResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.extras = {}; if (options.defaults) { - object.code = ""; - object.message = ""; - } - if (message.code != null && message.hasOwnProperty("code")) - object.code = message.code; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - let keys2; - if (message.extras && (keys2 = Object.keys(message.extras)).length) { - object.extras = {}; - for (let j = 0; j < keys2.length; ++j) - object.extras[keys2[j]] = message.extras[keys2[j]]; + object.responseCode = options.enums === String ? "RRC_OK" : 0; + object.errorMessage = ""; + if (options.bytes === String) + object.encryptedPayload = ""; + else { + object.encryptedPayload = []; + if (options.bytes !== Array) + object.encryptedPayload = $util.newBuffer(object.encryptedPayload); + } } + if (message.responseCode != null && message.hasOwnProperty("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")) + object.errorMessage = message.errorMessage; + if (message.encryptedPayload != null && message.hasOwnProperty("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; }; /** - * Converts this Error to JSON. + * Converts this RouterResponse to JSON. * @function toJSON - * @memberof BI.Error + * @memberof Router.RouterResponse * @instance * @returns {Object.} JSON object */ - Error.prototype.toJSON = function toJSON() { + RouterResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Error + * Gets the default type url for RouterResponse * @function getTypeUrl - * @memberof BI.Error + * @memberof Router.RouterResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Error.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RouterResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.Error"; + return typeUrlPrefix + "/Router.RouterResponse"; }; - return Error; + return RouterResponse; })(); - BI.QuotePurchase = (function() { + Router.RouterControllerMessage = (function() { /** - * Properties of a QuotePurchase. - * @memberof BI - * @interface IQuotePurchase - * @property {number|null} [quoteTotal] QuotePurchase quoteTotal - * @property {boolean|null} [includedTax] QuotePurchase includedTax - * @property {boolean|null} [includedOtherAddons] QuotePurchase includedOtherAddons - * @property {number|null} [taxAmount] QuotePurchase taxAmount - * @property {string|null} [taxLabel] QuotePurchase taxLabel - * @property {string|null} [purchaseIdentifier] QuotePurchase purchaseIdentifier + * Properties of a RouterControllerMessage. + * @memberof Router + * @interface IRouterControllerMessage + * @property {PAM.ControllerMessageType|null} [messageType] RouterControllerMessage messageType + * @property {Uint8Array|null} [messageUid] RouterControllerMessage messageUid + * @property {Uint8Array|null} [controllerUid] RouterControllerMessage controllerUid + * @property {boolean|null} [streamResponse] RouterControllerMessage streamResponse + * @property {Uint8Array|null} [payload] RouterControllerMessage payload + * @property {number|null} [timeout] RouterControllerMessage timeout */ /** - * Constructs a new QuotePurchase. - * @memberof BI - * @classdesc Represents a QuotePurchase. - * @implements IQuotePurchase + * Constructs a new RouterControllerMessage. + * @memberof Router + * @classdesc Represents a RouterControllerMessage. + * @implements IRouterControllerMessage * @constructor - * @param {BI.IQuotePurchase=} [properties] Properties to set + * @param {Router.IRouterControllerMessage=} [properties] Properties to set */ - function QuotePurchase(properties) { + function RouterControllerMessage(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -239318,145 +272252,145 @@ export const BI = $root.BI = (() => { } /** - * QuotePurchase quoteTotal. - * @member {number} quoteTotal - * @memberof BI.QuotePurchase + * RouterControllerMessage messageType. + * @member {PAM.ControllerMessageType} messageType + * @memberof Router.RouterControllerMessage * @instance */ - QuotePurchase.prototype.quoteTotal = 0; + RouterControllerMessage.prototype.messageType = 0; /** - * QuotePurchase includedTax. - * @member {boolean} includedTax - * @memberof BI.QuotePurchase + * RouterControllerMessage messageUid. + * @member {Uint8Array} messageUid + * @memberof Router.RouterControllerMessage * @instance */ - QuotePurchase.prototype.includedTax = false; + RouterControllerMessage.prototype.messageUid = $util.newBuffer([]); /** - * QuotePurchase includedOtherAddons. - * @member {boolean} includedOtherAddons - * @memberof BI.QuotePurchase + * RouterControllerMessage controllerUid. + * @member {Uint8Array} controllerUid + * @memberof Router.RouterControllerMessage * @instance */ - QuotePurchase.prototype.includedOtherAddons = false; + RouterControllerMessage.prototype.controllerUid = $util.newBuffer([]); /** - * QuotePurchase taxAmount. - * @member {number} taxAmount - * @memberof BI.QuotePurchase + * RouterControllerMessage streamResponse. + * @member {boolean} streamResponse + * @memberof Router.RouterControllerMessage * @instance */ - QuotePurchase.prototype.taxAmount = 0; + RouterControllerMessage.prototype.streamResponse = false; /** - * QuotePurchase taxLabel. - * @member {string} taxLabel - * @memberof BI.QuotePurchase + * RouterControllerMessage payload. + * @member {Uint8Array} payload + * @memberof Router.RouterControllerMessage * @instance */ - QuotePurchase.prototype.taxLabel = ""; + RouterControllerMessage.prototype.payload = $util.newBuffer([]); /** - * QuotePurchase purchaseIdentifier. - * @member {string} purchaseIdentifier - * @memberof BI.QuotePurchase + * RouterControllerMessage timeout. + * @member {number} timeout + * @memberof Router.RouterControllerMessage * @instance */ - QuotePurchase.prototype.purchaseIdentifier = ""; + RouterControllerMessage.prototype.timeout = 0; /** - * Creates a new QuotePurchase instance using the specified properties. + * Creates a new RouterControllerMessage instance using the specified properties. * @function create - * @memberof BI.QuotePurchase + * @memberof Router.RouterControllerMessage * @static - * @param {BI.IQuotePurchase=} [properties] Properties to set - * @returns {BI.QuotePurchase} QuotePurchase instance + * @param {Router.IRouterControllerMessage=} [properties] Properties to set + * @returns {Router.RouterControllerMessage} RouterControllerMessage instance */ - QuotePurchase.create = function create(properties) { - return new QuotePurchase(properties); + RouterControllerMessage.create = function create(properties) { + return new RouterControllerMessage(properties); }; /** - * Encodes the specified QuotePurchase message. Does not implicitly {@link BI.QuotePurchase.verify|verify} messages. + * Encodes the specified RouterControllerMessage message. Does not implicitly {@link Router.RouterControllerMessage.verify|verify} messages. * @function encode - * @memberof BI.QuotePurchase + * @memberof Router.RouterControllerMessage * @static - * @param {BI.IQuotePurchase} message QuotePurchase message or plain object to encode + * @param {Router.IRouterControllerMessage} message RouterControllerMessage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuotePurchase.encode = function encode(message, writer) { + RouterControllerMessage.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.quoteTotal != null && Object.hasOwnProperty.call(message, "quoteTotal")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.quoteTotal); - if (message.includedTax != null && Object.hasOwnProperty.call(message, "includedTax")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.includedTax); - if (message.includedOtherAddons != null && Object.hasOwnProperty.call(message, "includedOtherAddons")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.includedOtherAddons); - if (message.taxAmount != null && Object.hasOwnProperty.call(message, "taxAmount")) - writer.uint32(/* id 4, wireType 1 =*/33).double(message.taxAmount); - if (message.taxLabel != null && Object.hasOwnProperty.call(message, "taxLabel")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.taxLabel); - if (message.purchaseIdentifier != null && Object.hasOwnProperty.call(message, "purchaseIdentifier")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.purchaseIdentifier); + if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); + if (message.messageUid != null && Object.hasOwnProperty.call(message, "messageUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.messageUid); + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.controllerUid); + if (message.streamResponse != null && Object.hasOwnProperty.call(message, "streamResponse")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.streamResponse); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.payload); + if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.timeout); return writer; }; /** - * Encodes the specified QuotePurchase message, length delimited. Does not implicitly {@link BI.QuotePurchase.verify|verify} messages. + * Encodes the specified RouterControllerMessage message, length delimited. Does not implicitly {@link Router.RouterControllerMessage.verify|verify} messages. * @function encodeDelimited - * @memberof BI.QuotePurchase + * @memberof Router.RouterControllerMessage * @static - * @param {BI.IQuotePurchase} message QuotePurchase message or plain object to encode + * @param {Router.IRouterControllerMessage} message RouterControllerMessage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuotePurchase.encodeDelimited = function encodeDelimited(message, writer) { + RouterControllerMessage.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QuotePurchase message from the specified reader or buffer. + * Decodes a RouterControllerMessage message from the specified reader or buffer. * @function decode - * @memberof BI.QuotePurchase + * @memberof Router.RouterControllerMessage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.QuotePurchase} QuotePurchase + * @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 */ - QuotePurchase.decode = function decode(reader, length) { + RouterControllerMessage.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.QuotePurchase(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterControllerMessage(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.quoteTotal = reader.double(); + message.messageType = reader.int32(); break; } case 2: { - message.includedTax = reader.bool(); + message.messageUid = reader.bytes(); break; } case 3: { - message.includedOtherAddons = reader.bool(); + message.controllerUid = reader.bytes(); break; } case 4: { - message.taxAmount = reader.double(); + message.streamResponse = reader.bool(); break; } case 5: { - message.taxLabel = reader.string(); + message.payload = reader.bytes(); break; } case 6: { - message.purchaseIdentifier = reader.string(); + message.timeout = reader.int32(); break; } default: @@ -239468,798 +272402,460 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a QuotePurchase message from the specified reader or buffer, length delimited. + * Decodes a RouterControllerMessage message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.QuotePurchase + * @memberof Router.RouterControllerMessage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.QuotePurchase} QuotePurchase + * @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 */ - QuotePurchase.decodeDelimited = function decodeDelimited(reader) { + RouterControllerMessage.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QuotePurchase message. + * Verifies a RouterControllerMessage message. * @function verify - * @memberof BI.QuotePurchase + * @memberof Router.RouterControllerMessage * @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) { + RouterControllerMessage.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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 - * @memberof BI.QuotePurchase - * @static - * @param {Object.} object Plain object - * @returns {BI.QuotePurchase} QuotePurchase - */ - QuotePurchase.fromObject = function fromObject(object) { - if (object instanceof $root.BI.QuotePurchase) - return object; - let message = new $root.BI.QuotePurchase(); - if (object.quoteTotal != null) - message.quoteTotal = Number(object.quoteTotal); - if (object.includedTax != null) - message.includedTax = Boolean(object.includedTax); - if (object.includedOtherAddons != null) - message.includedOtherAddons = Boolean(object.includedOtherAddons); - if (object.taxAmount != null) - message.taxAmount = Number(object.taxAmount); - if (object.taxLabel != null) - message.taxLabel = String(object.taxLabel); - if (object.purchaseIdentifier != null) - message.purchaseIdentifier = String(object.purchaseIdentifier); - return message; - }; - - /** - * Creates a plain object from a QuotePurchase message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.QuotePurchase - * @static - * @param {BI.QuotePurchase} message QuotePurchase - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QuotePurchase.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.quoteTotal = 0; - object.includedTax = false; - object.includedOtherAddons = false; - object.taxAmount = 0; - object.taxLabel = ""; - object.purchaseIdentifier = ""; - } - if (message.quoteTotal != null && message.hasOwnProperty("quoteTotal")) - object.quoteTotal = options.json && !isFinite(message.quoteTotal) ? String(message.quoteTotal) : message.quoteTotal; - if (message.includedTax != null && message.hasOwnProperty("includedTax")) - object.includedTax = message.includedTax; - if (message.includedOtherAddons != null && message.hasOwnProperty("includedOtherAddons")) - object.includedOtherAddons = message.includedOtherAddons; - if (message.taxAmount != null && message.hasOwnProperty("taxAmount")) - object.taxAmount = options.json && !isFinite(message.taxAmount) ? String(message.taxAmount) : message.taxAmount; - if (message.taxLabel != null && message.hasOwnProperty("taxLabel")) - object.taxLabel = message.taxLabel; - if (message.purchaseIdentifier != null && message.hasOwnProperty("purchaseIdentifier")) - object.purchaseIdentifier = message.purchaseIdentifier; - return object; - }; - - /** - * Converts this QuotePurchase to JSON. - * @function toJSON - * @memberof BI.QuotePurchase - * @instance - * @returns {Object.} JSON object - */ - QuotePurchase.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for QuotePurchase - * @function getTypeUrl - * @memberof BI.QuotePurchase - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - QuotePurchase.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.QuotePurchase"; - }; - - return QuotePurchase; - })(); - - BI.PurchaseOptions = (function() { - - /** - * Properties of a PurchaseOptions. - * @memberof BI - * @interface IPurchaseOptions - * @property {boolean|null} [inConsole] PurchaseOptions inConsole - * @property {boolean|null} [externalCheckout] PurchaseOptions externalCheckout - */ - - /** - * Constructs a new PurchaseOptions. - * @memberof BI - * @classdesc Represents a PurchaseOptions. - * @implements IPurchaseOptions - * @constructor - * @param {BI.IPurchaseOptions=} [properties] Properties to set - */ - function PurchaseOptions(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PurchaseOptions inConsole. - * @member {boolean|null|undefined} inConsole - * @memberof BI.PurchaseOptions - * @instance - */ - PurchaseOptions.prototype.inConsole = null; - - /** - * PurchaseOptions externalCheckout. - * @member {boolean|null|undefined} externalCheckout - * @memberof BI.PurchaseOptions - * @instance - */ - PurchaseOptions.prototype.externalCheckout = null; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; - - /** - * PurchaseOptions _inConsole. - * @member {"inConsole"|undefined} _inConsole - * @memberof BI.PurchaseOptions - * @instance - */ - Object.defineProperty(PurchaseOptions.prototype, "_inConsole", { - get: $util.oneOfGetter($oneOfFields = ["inConsole"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * PurchaseOptions _externalCheckout. - * @member {"externalCheckout"|undefined} _externalCheckout - * @memberof BI.PurchaseOptions - * @instance - */ - Object.defineProperty(PurchaseOptions.prototype, "_externalCheckout", { - get: $util.oneOfGetter($oneOfFields = ["externalCheckout"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new PurchaseOptions instance using the specified properties. - * @function create - * @memberof BI.PurchaseOptions - * @static - * @param {BI.IPurchaseOptions=} [properties] Properties to set - * @returns {BI.PurchaseOptions} PurchaseOptions instance - */ - PurchaseOptions.create = function create(properties) { - return new PurchaseOptions(properties); - }; - - /** - * Encodes the specified PurchaseOptions message. Does not implicitly {@link BI.PurchaseOptions.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.inConsole != null && Object.hasOwnProperty.call(message, "inConsole")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.inConsole); - if (message.externalCheckout != null && Object.hasOwnProperty.call(message, "externalCheckout")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.externalCheckout); - 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 - * @memberof BI.PurchaseOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PurchaseOptions(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.inConsole = reader.bool(); - break; - } - case 2: { - message.externalCheckout = reader.bool(); - break; - } + if (message.messageType != null && message.hasOwnProperty("messageType")) + switch (message.messageType) { default: - reader.skipType(tag & 7); + return "messageType: enum value expected"; + case 0: + case 1: + case 2: + case 3: break; } - } - 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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"; - } + 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 PurchaseOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RouterControllerMessage message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.PurchaseOptions + * @memberof Router.RouterControllerMessage * @static * @param {Object.} object Plain object - * @returns {BI.PurchaseOptions} PurchaseOptions + * @returns {Router.RouterControllerMessage} RouterControllerMessage */ - PurchaseOptions.fromObject = function fromObject(object) { - if (object instanceof $root.BI.PurchaseOptions) + RouterControllerMessage.fromObject = function fromObject(object) { + if (object instanceof $root.Router.RouterControllerMessage) return object; - let message = new $root.BI.PurchaseOptions(); - if (object.inConsole != null) - message.inConsole = Boolean(object.inConsole); - if (object.externalCheckout != null) - message.externalCheckout = Boolean(object.externalCheckout); + let message = new $root.Router.RouterControllerMessage(); + switch (object.messageType) { + default: + if (typeof object.messageType === "number") { + message.messageType = object.messageType; + break; + } + break; + case "CMT_GENERAL": + case 0: + message.messageType = 0; + break; + case "CMT_ROTATE": + case 1: + message.messageType = 1; + break; + case "CMT_DISCOVERY": + case 2: + message.messageType = 2; + break; + case "CMT_CONNECT": + case 3: + message.messageType = 3; + break; + } + if (object.messageUid != null) + if (typeof object.messageUid === "string") + $util.base64.decode(object.messageUid, message.messageUid = $util.newBuffer($util.base64.length(object.messageUid)), 0); + else if (object.messageUid.length >= 0) + message.messageUid = object.messageUid; + if (object.controllerUid != null) + if (typeof object.controllerUid === "string") + $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); + else if (object.controllerUid.length >= 0) + message.controllerUid = object.controllerUid; + if (object.streamResponse != null) + message.streamResponse = Boolean(object.streamResponse); + if (object.payload != null) + if (typeof object.payload === "string") + $util.base64.decode(object.payload, message.payload = $util.newBuffer($util.base64.length(object.payload)), 0); + else if (object.payload.length >= 0) + message.payload = object.payload; + if (object.timeout != null) + message.timeout = object.timeout | 0; return message; }; /** - * Creates a plain object from a PurchaseOptions message. Also converts values to other types if specified. + * Creates a plain object from a RouterControllerMessage message. Also converts values to other types if specified. * @function toObject - * @memberof BI.PurchaseOptions + * @memberof Router.RouterControllerMessage * @static - * @param {BI.PurchaseOptions} message PurchaseOptions + * @param {Router.RouterControllerMessage} message RouterControllerMessage * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurchaseOptions.toObject = function toObject(message, options) { + RouterControllerMessage.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (message.inConsole != null && message.hasOwnProperty("inConsole")) { - object.inConsole = message.inConsole; - if (options.oneofs) - object._inConsole = "inConsole"; - } - if (message.externalCheckout != null && message.hasOwnProperty("externalCheckout")) { - object.externalCheckout = message.externalCheckout; - if (options.oneofs) - object._externalCheckout = "externalCheckout"; + if (options.defaults) { + object.messageType = options.enums === String ? "CMT_GENERAL" : 0; + if (options.bytes === String) + object.messageUid = ""; + else { + object.messageUid = []; + if (options.bytes !== Array) + object.messageUid = $util.newBuffer(object.messageUid); + } + if (options.bytes === String) + object.controllerUid = ""; + else { + object.controllerUid = []; + if (options.bytes !== Array) + object.controllerUid = $util.newBuffer(object.controllerUid); + } + object.streamResponse = false; + if (options.bytes === String) + object.payload = ""; + else { + object.payload = []; + if (options.bytes !== Array) + object.payload = $util.newBuffer(object.payload); + } + object.timeout = 0; } + if (message.messageType != null && message.hasOwnProperty("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")) + 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")) + 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")) + object.streamResponse = message.streamResponse; + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = options.bytes === String ? $util.base64.encode(message.payload, 0, message.payload.length) : options.bytes === Array ? Array.prototype.slice.call(message.payload) : message.payload; + if (message.timeout != null && message.hasOwnProperty("timeout")) + object.timeout = message.timeout; return object; }; /** - * Converts this PurchaseOptions to JSON. + * Converts this RouterControllerMessage to JSON. * @function toJSON - * @memberof BI.PurchaseOptions + * @memberof Router.RouterControllerMessage * @instance * @returns {Object.} JSON object */ - PurchaseOptions.prototype.toJSON = function toJSON() { + RouterControllerMessage.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurchaseOptions + * Gets the default type url for RouterControllerMessage * @function getTypeUrl - * @memberof BI.PurchaseOptions + * @memberof Router.RouterControllerMessage * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurchaseOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RouterControllerMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.PurchaseOptions"; + return typeUrlPrefix + "/Router.RouterControllerMessage"; }; - return PurchaseOptions; + return RouterControllerMessage; })(); - BI.AddonPurchaseOptions = (function() { - - /** - * Properties of an AddonPurchaseOptions. - * @memberof BI - * @interface IAddonPurchaseOptions - * @property {BI.IPurchaseOptions|null} [storage] AddonPurchaseOptions storage - * @property {BI.IPurchaseOptions|null} [audit] AddonPurchaseOptions audit - * @property {BI.IPurchaseOptions|null} [breachwatch] AddonPurchaseOptions breachwatch - * @property {BI.IPurchaseOptions|null} [chat] AddonPurchaseOptions chat - * @property {BI.IPurchaseOptions|null} [compliance] AddonPurchaseOptions compliance - * @property {BI.IPurchaseOptions|null} [professionalServicesSilver] AddonPurchaseOptions professionalServicesSilver - * @property {BI.IPurchaseOptions|null} [professionalServicesPlatinum] AddonPurchaseOptions professionalServicesPlatinum - * @property {BI.IPurchaseOptions|null} [pam] AddonPurchaseOptions pam - * @property {BI.IPurchaseOptions|null} [epm] AddonPurchaseOptions epm - * @property {BI.IPurchaseOptions|null} [secretsManager] AddonPurchaseOptions secretsManager - * @property {BI.IPurchaseOptions|null} [connectionManager] AddonPurchaseOptions connectionManager - * @property {BI.IPurchaseOptions|null} [remoteBrowserIsolation] AddonPurchaseOptions remoteBrowserIsolation - */ - - /** - * Constructs a new AddonPurchaseOptions. - * @memberof BI - * @classdesc Represents an AddonPurchaseOptions. - * @implements IAddonPurchaseOptions - * @constructor - * @param {BI.IAddonPurchaseOptions=} [properties] Properties to set - */ - function AddonPurchaseOptions(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AddonPurchaseOptions storage. - * @member {BI.IPurchaseOptions|null|undefined} storage - * @memberof BI.AddonPurchaseOptions - * @instance - */ - AddonPurchaseOptions.prototype.storage = null; - - /** - * AddonPurchaseOptions audit. - * @member {BI.IPurchaseOptions|null|undefined} audit - * @memberof BI.AddonPurchaseOptions - * @instance - */ - AddonPurchaseOptions.prototype.audit = null; - - /** - * AddonPurchaseOptions breachwatch. - * @member {BI.IPurchaseOptions|null|undefined} breachwatch - * @memberof BI.AddonPurchaseOptions - * @instance - */ - AddonPurchaseOptions.prototype.breachwatch = null; - - /** - * AddonPurchaseOptions chat. - * @member {BI.IPurchaseOptions|null|undefined} chat - * @memberof BI.AddonPurchaseOptions - * @instance - */ - AddonPurchaseOptions.prototype.chat = null; - - /** - * AddonPurchaseOptions compliance. - * @member {BI.IPurchaseOptions|null|undefined} compliance - * @memberof BI.AddonPurchaseOptions - * @instance - */ - AddonPurchaseOptions.prototype.compliance = null; - - /** - * AddonPurchaseOptions professionalServicesSilver. - * @member {BI.IPurchaseOptions|null|undefined} professionalServicesSilver - * @memberof BI.AddonPurchaseOptions - * @instance - */ - AddonPurchaseOptions.prototype.professionalServicesSilver = null; - - /** - * AddonPurchaseOptions professionalServicesPlatinum. - * @member {BI.IPurchaseOptions|null|undefined} professionalServicesPlatinum - * @memberof BI.AddonPurchaseOptions - * @instance - */ - AddonPurchaseOptions.prototype.professionalServicesPlatinum = null; - - /** - * AddonPurchaseOptions pam. - * @member {BI.IPurchaseOptions|null|undefined} pam - * @memberof BI.AddonPurchaseOptions - * @instance - */ - AddonPurchaseOptions.prototype.pam = null; - - /** - * AddonPurchaseOptions epm. - * @member {BI.IPurchaseOptions|null|undefined} epm - * @memberof BI.AddonPurchaseOptions - * @instance - */ - AddonPurchaseOptions.prototype.epm = null; - - /** - * AddonPurchaseOptions secretsManager. - * @member {BI.IPurchaseOptions|null|undefined} secretsManager - * @memberof BI.AddonPurchaseOptions - * @instance - */ - AddonPurchaseOptions.prototype.secretsManager = null; + Router.RouterUserAuth = (function() { /** - * AddonPurchaseOptions connectionManager. - * @member {BI.IPurchaseOptions|null|undefined} connectionManager - * @memberof BI.AddonPurchaseOptions - * @instance + * Properties of a RouterUserAuth. + * @memberof Router + * @interface IRouterUserAuth + * @property {Uint8Array|null} [transmissionKey] RouterUserAuth transmissionKey + * @property {Uint8Array|null} [sessionToken] RouterUserAuth sessionToken + * @property {number|null} [userId] RouterUserAuth userId + * @property {number|Long|null} [enterpriseUserId] RouterUserAuth enterpriseUserId + * @property {string|null} [deviceName] RouterUserAuth deviceName + * @property {Uint8Array|null} [deviceToken] RouterUserAuth deviceToken + * @property {number|null} [clientVersionId] RouterUserAuth clientVersionId + * @property {boolean|null} [needUsername] RouterUserAuth needUsername + * @property {string|null} [username] RouterUserAuth username + * @property {number|null} [mspEnterpriseId] RouterUserAuth mspEnterpriseId + * @property {boolean|null} [isPedmAdmin] RouterUserAuth isPedmAdmin + * @property {number|null} [mcEnterpriseId] RouterUserAuth mcEnterpriseId */ - AddonPurchaseOptions.prototype.connectionManager = null; /** - * AddonPurchaseOptions remoteBrowserIsolation. - * @member {BI.IPurchaseOptions|null|undefined} remoteBrowserIsolation - * @memberof BI.AddonPurchaseOptions - * @instance + * Constructs a new RouterUserAuth. + * @memberof Router + * @classdesc Represents a RouterUserAuth. + * @implements IRouterUserAuth + * @constructor + * @param {Router.IRouterUserAuth=} [properties] Properties to set */ - AddonPurchaseOptions.prototype.remoteBrowserIsolation = null; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; + function RouterUserAuth(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * AddonPurchaseOptions _storage. - * @member {"storage"|undefined} _storage - * @memberof BI.AddonPurchaseOptions + * RouterUserAuth transmissionKey. + * @member {Uint8Array} transmissionKey + * @memberof Router.RouterUserAuth * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_storage", { - get: $util.oneOfGetter($oneOfFields = ["storage"]), - set: $util.oneOfSetter($oneOfFields) - }); + RouterUserAuth.prototype.transmissionKey = $util.newBuffer([]); /** - * AddonPurchaseOptions _audit. - * @member {"audit"|undefined} _audit - * @memberof BI.AddonPurchaseOptions + * RouterUserAuth sessionToken. + * @member {Uint8Array} sessionToken + * @memberof Router.RouterUserAuth * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_audit", { - get: $util.oneOfGetter($oneOfFields = ["audit"]), - set: $util.oneOfSetter($oneOfFields) - }); + RouterUserAuth.prototype.sessionToken = $util.newBuffer([]); /** - * AddonPurchaseOptions _breachwatch. - * @member {"breachwatch"|undefined} _breachwatch - * @memberof BI.AddonPurchaseOptions + * RouterUserAuth userId. + * @member {number} userId + * @memberof Router.RouterUserAuth * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_breachwatch", { - get: $util.oneOfGetter($oneOfFields = ["breachwatch"]), - set: $util.oneOfSetter($oneOfFields) - }); + RouterUserAuth.prototype.userId = 0; /** - * AddonPurchaseOptions _chat. - * @member {"chat"|undefined} _chat - * @memberof BI.AddonPurchaseOptions + * RouterUserAuth enterpriseUserId. + * @member {number|Long} enterpriseUserId + * @memberof Router.RouterUserAuth * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_chat", { - get: $util.oneOfGetter($oneOfFields = ["chat"]), - set: $util.oneOfSetter($oneOfFields) - }); + RouterUserAuth.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * AddonPurchaseOptions _compliance. - * @member {"compliance"|undefined} _compliance - * @memberof BI.AddonPurchaseOptions + * RouterUserAuth deviceName. + * @member {string} deviceName + * @memberof Router.RouterUserAuth * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_compliance", { - get: $util.oneOfGetter($oneOfFields = ["compliance"]), - set: $util.oneOfSetter($oneOfFields) - }); + RouterUserAuth.prototype.deviceName = ""; /** - * AddonPurchaseOptions _professionalServicesSilver. - * @member {"professionalServicesSilver"|undefined} _professionalServicesSilver - * @memberof BI.AddonPurchaseOptions + * RouterUserAuth deviceToken. + * @member {Uint8Array} deviceToken + * @memberof Router.RouterUserAuth * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_professionalServicesSilver", { - get: $util.oneOfGetter($oneOfFields = ["professionalServicesSilver"]), - set: $util.oneOfSetter($oneOfFields) - }); + RouterUserAuth.prototype.deviceToken = $util.newBuffer([]); /** - * AddonPurchaseOptions _professionalServicesPlatinum. - * @member {"professionalServicesPlatinum"|undefined} _professionalServicesPlatinum - * @memberof BI.AddonPurchaseOptions + * RouterUserAuth clientVersionId. + * @member {number} clientVersionId + * @memberof Router.RouterUserAuth * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_professionalServicesPlatinum", { - get: $util.oneOfGetter($oneOfFields = ["professionalServicesPlatinum"]), - set: $util.oneOfSetter($oneOfFields) - }); + RouterUserAuth.prototype.clientVersionId = 0; /** - * AddonPurchaseOptions _pam. - * @member {"pam"|undefined} _pam - * @memberof BI.AddonPurchaseOptions + * RouterUserAuth needUsername. + * @member {boolean} needUsername + * @memberof Router.RouterUserAuth * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_pam", { - get: $util.oneOfGetter($oneOfFields = ["pam"]), - set: $util.oneOfSetter($oneOfFields) - }); + RouterUserAuth.prototype.needUsername = false; /** - * AddonPurchaseOptions _epm. - * @member {"epm"|undefined} _epm - * @memberof BI.AddonPurchaseOptions + * RouterUserAuth username. + * @member {string} username + * @memberof Router.RouterUserAuth * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_epm", { - get: $util.oneOfGetter($oneOfFields = ["epm"]), - set: $util.oneOfSetter($oneOfFields) - }); + RouterUserAuth.prototype.username = ""; /** - * AddonPurchaseOptions _secretsManager. - * @member {"secretsManager"|undefined} _secretsManager - * @memberof BI.AddonPurchaseOptions + * RouterUserAuth mspEnterpriseId. + * @member {number} mspEnterpriseId + * @memberof Router.RouterUserAuth * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_secretsManager", { - get: $util.oneOfGetter($oneOfFields = ["secretsManager"]), - set: $util.oneOfSetter($oneOfFields) - }); + RouterUserAuth.prototype.mspEnterpriseId = 0; /** - * AddonPurchaseOptions _connectionManager. - * @member {"connectionManager"|undefined} _connectionManager - * @memberof BI.AddonPurchaseOptions + * RouterUserAuth isPedmAdmin. + * @member {boolean} isPedmAdmin + * @memberof Router.RouterUserAuth * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_connectionManager", { - get: $util.oneOfGetter($oneOfFields = ["connectionManager"]), - set: $util.oneOfSetter($oneOfFields) - }); + RouterUserAuth.prototype.isPedmAdmin = false; /** - * AddonPurchaseOptions _remoteBrowserIsolation. - * @member {"remoteBrowserIsolation"|undefined} _remoteBrowserIsolation - * @memberof BI.AddonPurchaseOptions + * RouterUserAuth mcEnterpriseId. + * @member {number} mcEnterpriseId + * @memberof Router.RouterUserAuth * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_remoteBrowserIsolation", { - get: $util.oneOfGetter($oneOfFields = ["remoteBrowserIsolation"]), - set: $util.oneOfSetter($oneOfFields) - }); + RouterUserAuth.prototype.mcEnterpriseId = 0; /** - * Creates a new AddonPurchaseOptions instance using the specified properties. + * Creates a new RouterUserAuth instance using the specified properties. * @function create - * @memberof BI.AddonPurchaseOptions + * @memberof Router.RouterUserAuth * @static - * @param {BI.IAddonPurchaseOptions=} [properties] Properties to set - * @returns {BI.AddonPurchaseOptions} AddonPurchaseOptions instance + * @param {Router.IRouterUserAuth=} [properties] Properties to set + * @returns {Router.RouterUserAuth} RouterUserAuth instance */ - AddonPurchaseOptions.create = function create(properties) { - return new AddonPurchaseOptions(properties); + RouterUserAuth.create = function create(properties) { + return new RouterUserAuth(properties); }; /** - * Encodes the specified AddonPurchaseOptions message. Does not implicitly {@link BI.AddonPurchaseOptions.verify|verify} messages. + * Encodes the specified RouterUserAuth message. Does not implicitly {@link Router.RouterUserAuth.verify|verify} messages. * @function encode - * @memberof BI.AddonPurchaseOptions + * @memberof Router.RouterUserAuth * @static - * @param {BI.IAddonPurchaseOptions} message AddonPurchaseOptions message or plain object to encode + * @param {Router.IRouterUserAuth} message RouterUserAuth message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddonPurchaseOptions.encode = function encode(message, writer) { + RouterUserAuth.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.storage != null && Object.hasOwnProperty.call(message, "storage")) - $root.BI.PurchaseOptions.encode(message.storage, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) - $root.BI.PurchaseOptions.encode(message.audit, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.breachwatch != null && Object.hasOwnProperty.call(message, "breachwatch")) - $root.BI.PurchaseOptions.encode(message.breachwatch, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.chat != null && Object.hasOwnProperty.call(message, "chat")) - $root.BI.PurchaseOptions.encode(message.chat, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.compliance != null && Object.hasOwnProperty.call(message, "compliance")) - $root.BI.PurchaseOptions.encode(message.compliance, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.professionalServicesSilver != null && Object.hasOwnProperty.call(message, "professionalServicesSilver")) - $root.BI.PurchaseOptions.encode(message.professionalServicesSilver, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.professionalServicesPlatinum != null && Object.hasOwnProperty.call(message, "professionalServicesPlatinum")) - $root.BI.PurchaseOptions.encode(message.professionalServicesPlatinum, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.pam != null && Object.hasOwnProperty.call(message, "pam")) - $root.BI.PurchaseOptions.encode(message.pam, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.epm != null && Object.hasOwnProperty.call(message, "epm")) - $root.BI.PurchaseOptions.encode(message.epm, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.secretsManager != null && Object.hasOwnProperty.call(message, "secretsManager")) - $root.BI.PurchaseOptions.encode(message.secretsManager, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.connectionManager != null && Object.hasOwnProperty.call(message, "connectionManager")) - $root.BI.PurchaseOptions.encode(message.connectionManager, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.remoteBrowserIsolation != null && Object.hasOwnProperty.call(message, "remoteBrowserIsolation")) - $root.BI.PurchaseOptions.encode(message.remoteBrowserIsolation, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.transmissionKey != null && Object.hasOwnProperty.call(message, "transmissionKey")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.transmissionKey); + if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sessionToken); + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.userId); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.enterpriseUserId); + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.deviceName); + if (message.deviceToken != null && Object.hasOwnProperty.call(message, "deviceToken")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.deviceToken); + if (message.clientVersionId != null && Object.hasOwnProperty.call(message, "clientVersionId")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.clientVersionId); + if (message.needUsername != null && Object.hasOwnProperty.call(message, "needUsername")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.needUsername); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.username); + if (message.mspEnterpriseId != null && Object.hasOwnProperty.call(message, "mspEnterpriseId")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.mspEnterpriseId); + if (message.isPedmAdmin != null && Object.hasOwnProperty.call(message, "isPedmAdmin")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.isPedmAdmin); + if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) + writer.uint32(/* id 12, wireType 0 =*/96).int32(message.mcEnterpriseId); return writer; }; /** - * Encodes the specified AddonPurchaseOptions message, length delimited. Does not implicitly {@link BI.AddonPurchaseOptions.verify|verify} messages. + * Encodes the specified RouterUserAuth message, length delimited. Does not implicitly {@link Router.RouterUserAuth.verify|verify} messages. * @function encodeDelimited - * @memberof BI.AddonPurchaseOptions + * @memberof Router.RouterUserAuth * @static - * @param {BI.IAddonPurchaseOptions} message AddonPurchaseOptions message or plain object to encode + * @param {Router.IRouterUserAuth} message RouterUserAuth message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddonPurchaseOptions.encodeDelimited = function encodeDelimited(message, writer) { + RouterUserAuth.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddonPurchaseOptions message from the specified reader or buffer. + * Decodes a RouterUserAuth message from the specified reader or buffer. * @function decode - * @memberof BI.AddonPurchaseOptions + * @memberof Router.RouterUserAuth * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.AddonPurchaseOptions} AddonPurchaseOptions + * @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 */ - AddonPurchaseOptions.decode = function decode(reader, length) { + RouterUserAuth.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.AddonPurchaseOptions(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterUserAuth(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.storage = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + message.transmissionKey = reader.bytes(); break; } case 2: { - message.audit = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + message.sessionToken = reader.bytes(); break; } case 3: { - message.breachwatch = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + message.userId = reader.int32(); break; } case 4: { - message.chat = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + message.enterpriseUserId = reader.int64(); break; } case 5: { - message.compliance = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + message.deviceName = reader.string(); break; } case 6: { - message.professionalServicesSilver = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + message.deviceToken = reader.bytes(); break; } case 7: { - message.professionalServicesPlatinum = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + message.clientVersionId = reader.int32(); break; } case 8: { - message.pam = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + message.needUsername = reader.bool(); break; } case 9: { - message.epm = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + message.username = reader.string(); break; } case 10: { - message.secretsManager = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + message.mspEnterpriseId = reader.int32(); break; } case 11: { - message.connectionManager = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + message.isPedmAdmin = reader.bool(); break; } case 12: { - message.remoteBrowserIsolation = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); + message.mcEnterpriseId = reader.int32(); break; } default: @@ -240271,332 +272867,264 @@ export const BI = $root.BI = (() => { }; /** - * Decodes an AddonPurchaseOptions message from the specified reader or buffer, length delimited. + * Decodes a RouterUserAuth message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.AddonPurchaseOptions + * @memberof Router.RouterUserAuth * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.AddonPurchaseOptions} AddonPurchaseOptions + * @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 */ - AddonPurchaseOptions.decodeDelimited = function decodeDelimited(reader) { + RouterUserAuth.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddonPurchaseOptions message. + * Verifies a RouterUserAuth message. * @function verify - * @memberof BI.AddonPurchaseOptions + * @memberof Router.RouterUserAuth * @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) { + RouterUserAuth.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - let properties = {}; - if (message.storage != null && message.hasOwnProperty("storage")) { - properties._storage = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.storage); - if (error) - return "storage." + error; - } - } - if (message.audit != null && message.hasOwnProperty("audit")) { - properties._audit = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.audit); - if (error) - return "audit." + error; - } - } - if (message.breachwatch != null && message.hasOwnProperty("breachwatch")) { - properties._breachwatch = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.breachwatch); - if (error) - return "breachwatch." + error; - } - } - if (message.chat != null && message.hasOwnProperty("chat")) { - properties._chat = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.chat); - if (error) - return "chat." + error; - } - } - if (message.compliance != null && message.hasOwnProperty("compliance")) { - properties._compliance = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.compliance); - if (error) - return "compliance." + error; - } - } - if (message.professionalServicesSilver != null && message.hasOwnProperty("professionalServicesSilver")) { - properties._professionalServicesSilver = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.professionalServicesSilver); - if (error) - return "professionalServicesSilver." + error; - } - } - if (message.professionalServicesPlatinum != null && message.hasOwnProperty("professionalServicesPlatinum")) { - properties._professionalServicesPlatinum = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.professionalServicesPlatinum); - if (error) - return "professionalServicesPlatinum." + error; - } - } - if (message.pam != null && message.hasOwnProperty("pam")) { - properties._pam = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.pam); - if (error) - return "pam." + error; - } - } - if (message.epm != null && message.hasOwnProperty("epm")) { - properties._epm = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.epm); - if (error) - return "epm." + error; - } - } - if (message.secretsManager != null && message.hasOwnProperty("secretsManager")) { - properties._secretsManager = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.secretsManager); - if (error) - return "secretsManager." + error; - } - } - if (message.connectionManager != null && message.hasOwnProperty("connectionManager")) { - properties._connectionManager = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.connectionManager); - if (error) - return "connectionManager." + error; - } - } - if (message.remoteBrowserIsolation != null && message.hasOwnProperty("remoteBrowserIsolation")) { - properties._remoteBrowserIsolation = 1; - { - let error = $root.BI.PurchaseOptions.verify(message.remoteBrowserIsolation); - if (error) - return "remoteBrowserIsolation." + error; - } - } + 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 an AddonPurchaseOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RouterUserAuth message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.AddonPurchaseOptions + * @memberof Router.RouterUserAuth * @static * @param {Object.} object Plain object - * @returns {BI.AddonPurchaseOptions} AddonPurchaseOptions + * @returns {Router.RouterUserAuth} RouterUserAuth */ - AddonPurchaseOptions.fromObject = function fromObject(object) { - if (object instanceof $root.BI.AddonPurchaseOptions) + RouterUserAuth.fromObject = function fromObject(object) { + if (object instanceof $root.Router.RouterUserAuth) return object; - let message = new $root.BI.AddonPurchaseOptions(); - if (object.storage != null) { - if (typeof object.storage !== "object") - throw TypeError(".BI.AddonPurchaseOptions.storage: object expected"); - message.storage = $root.BI.PurchaseOptions.fromObject(object.storage); - } - if (object.audit != null) { - if (typeof object.audit !== "object") - throw TypeError(".BI.AddonPurchaseOptions.audit: object expected"); - message.audit = $root.BI.PurchaseOptions.fromObject(object.audit); - } - if (object.breachwatch != null) { - if (typeof object.breachwatch !== "object") - throw TypeError(".BI.AddonPurchaseOptions.breachwatch: object expected"); - message.breachwatch = $root.BI.PurchaseOptions.fromObject(object.breachwatch); - } - if (object.chat != null) { - if (typeof object.chat !== "object") - throw TypeError(".BI.AddonPurchaseOptions.chat: object expected"); - message.chat = $root.BI.PurchaseOptions.fromObject(object.chat); - } - if (object.compliance != null) { - if (typeof object.compliance !== "object") - throw TypeError(".BI.AddonPurchaseOptions.compliance: object expected"); - message.compliance = $root.BI.PurchaseOptions.fromObject(object.compliance); - } - if (object.professionalServicesSilver != null) { - if (typeof object.professionalServicesSilver !== "object") - throw TypeError(".BI.AddonPurchaseOptions.professionalServicesSilver: object expected"); - message.professionalServicesSilver = $root.BI.PurchaseOptions.fromObject(object.professionalServicesSilver); - } - if (object.professionalServicesPlatinum != null) { - if (typeof object.professionalServicesPlatinum !== "object") - throw TypeError(".BI.AddonPurchaseOptions.professionalServicesPlatinum: object expected"); - message.professionalServicesPlatinum = $root.BI.PurchaseOptions.fromObject(object.professionalServicesPlatinum); - } - if (object.pam != null) { - if (typeof object.pam !== "object") - throw TypeError(".BI.AddonPurchaseOptions.pam: object expected"); - message.pam = $root.BI.PurchaseOptions.fromObject(object.pam); - } - if (object.epm != null) { - if (typeof object.epm !== "object") - throw TypeError(".BI.AddonPurchaseOptions.epm: object expected"); - message.epm = $root.BI.PurchaseOptions.fromObject(object.epm); - } - if (object.secretsManager != null) { - if (typeof object.secretsManager !== "object") - throw TypeError(".BI.AddonPurchaseOptions.secretsManager: object expected"); - message.secretsManager = $root.BI.PurchaseOptions.fromObject(object.secretsManager); - } - if (object.connectionManager != null) { - if (typeof object.connectionManager !== "object") - throw TypeError(".BI.AddonPurchaseOptions.connectionManager: object expected"); - message.connectionManager = $root.BI.PurchaseOptions.fromObject(object.connectionManager); - } - if (object.remoteBrowserIsolation != null) { - if (typeof object.remoteBrowserIsolation !== "object") - throw TypeError(".BI.AddonPurchaseOptions.remoteBrowserIsolation: object expected"); - message.remoteBrowserIsolation = $root.BI.PurchaseOptions.fromObject(object.remoteBrowserIsolation); - } + let message = new $root.Router.RouterUserAuth(); + if (object.transmissionKey != null) + if (typeof object.transmissionKey === "string") + $util.base64.decode(object.transmissionKey, message.transmissionKey = $util.newBuffer($util.base64.length(object.transmissionKey)), 0); + else if (object.transmissionKey.length >= 0) + message.transmissionKey = object.transmissionKey; + if (object.sessionToken != null) + if (typeof object.sessionToken === "string") + $util.base64.decode(object.sessionToken, message.sessionToken = $util.newBuffer($util.base64.length(object.sessionToken)), 0); + else if (object.sessionToken.length >= 0) + message.sessionToken = object.sessionToken; + if (object.userId != null) + message.userId = object.userId | 0; + if (object.enterpriseUserId != null) + if ($util.Long) + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; + else if (typeof object.enterpriseUserId === "string") + message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); + else if (typeof object.enterpriseUserId === "number") + message.enterpriseUserId = object.enterpriseUserId; + else if (typeof object.enterpriseUserId === "object") + message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + if (object.deviceName != null) + message.deviceName = String(object.deviceName); + if (object.deviceToken != null) + if (typeof object.deviceToken === "string") + $util.base64.decode(object.deviceToken, message.deviceToken = $util.newBuffer($util.base64.length(object.deviceToken)), 0); + else if (object.deviceToken.length >= 0) + message.deviceToken = object.deviceToken; + if (object.clientVersionId != null) + message.clientVersionId = object.clientVersionId | 0; + if (object.needUsername != null) + message.needUsername = Boolean(object.needUsername); + if (object.username != null) + message.username = String(object.username); + if (object.mspEnterpriseId != null) + message.mspEnterpriseId = object.mspEnterpriseId | 0; + if (object.isPedmAdmin != null) + message.isPedmAdmin = Boolean(object.isPedmAdmin); + if (object.mcEnterpriseId != null) + message.mcEnterpriseId = object.mcEnterpriseId | 0; return message; }; /** - * Creates a plain object from an AddonPurchaseOptions message. Also converts values to other types if specified. + * Creates a plain object from a RouterUserAuth message. Also converts values to other types if specified. * @function toObject - * @memberof BI.AddonPurchaseOptions + * @memberof Router.RouterUserAuth * @static - * @param {BI.AddonPurchaseOptions} message AddonPurchaseOptions + * @param {Router.RouterUserAuth} message RouterUserAuth * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddonPurchaseOptions.toObject = function toObject(message, options) { + RouterUserAuth.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (message.storage != null && message.hasOwnProperty("storage")) { - object.storage = $root.BI.PurchaseOptions.toObject(message.storage, options); - if (options.oneofs) - object._storage = "storage"; - } - if (message.audit != null && message.hasOwnProperty("audit")) { - object.audit = $root.BI.PurchaseOptions.toObject(message.audit, options); - if (options.oneofs) - object._audit = "audit"; - } - if (message.breachwatch != null && message.hasOwnProperty("breachwatch")) { - object.breachwatch = $root.BI.PurchaseOptions.toObject(message.breachwatch, options); - if (options.oneofs) - object._breachwatch = "breachwatch"; - } - if (message.chat != null && message.hasOwnProperty("chat")) { - object.chat = $root.BI.PurchaseOptions.toObject(message.chat, options); - if (options.oneofs) - object._chat = "chat"; - } - if (message.compliance != null && message.hasOwnProperty("compliance")) { - object.compliance = $root.BI.PurchaseOptions.toObject(message.compliance, options); - if (options.oneofs) - object._compliance = "compliance"; - } - if (message.professionalServicesSilver != null && message.hasOwnProperty("professionalServicesSilver")) { - object.professionalServicesSilver = $root.BI.PurchaseOptions.toObject(message.professionalServicesSilver, options); - if (options.oneofs) - object._professionalServicesSilver = "professionalServicesSilver"; - } - if (message.professionalServicesPlatinum != null && message.hasOwnProperty("professionalServicesPlatinum")) { - object.professionalServicesPlatinum = $root.BI.PurchaseOptions.toObject(message.professionalServicesPlatinum, options); - if (options.oneofs) - object._professionalServicesPlatinum = "professionalServicesPlatinum"; - } - if (message.pam != null && message.hasOwnProperty("pam")) { - object.pam = $root.BI.PurchaseOptions.toObject(message.pam, options); - if (options.oneofs) - object._pam = "pam"; - } - if (message.epm != null && message.hasOwnProperty("epm")) { - object.epm = $root.BI.PurchaseOptions.toObject(message.epm, options); - if (options.oneofs) - object._epm = "epm"; - } - if (message.secretsManager != null && message.hasOwnProperty("secretsManager")) { - object.secretsManager = $root.BI.PurchaseOptions.toObject(message.secretsManager, options); - if (options.oneofs) - object._secretsManager = "secretsManager"; - } - if (message.connectionManager != null && message.hasOwnProperty("connectionManager")) { - object.connectionManager = $root.BI.PurchaseOptions.toObject(message.connectionManager, options); - if (options.oneofs) - object._connectionManager = "connectionManager"; - } - if (message.remoteBrowserIsolation != null && message.hasOwnProperty("remoteBrowserIsolation")) { - object.remoteBrowserIsolation = $root.BI.PurchaseOptions.toObject(message.remoteBrowserIsolation, options); - if (options.oneofs) - object._remoteBrowserIsolation = "remoteBrowserIsolation"; + if (options.defaults) { + if (options.bytes === String) + object.transmissionKey = ""; + else { + object.transmissionKey = []; + if (options.bytes !== Array) + object.transmissionKey = $util.newBuffer(object.transmissionKey); + } + if (options.bytes === String) + object.sessionToken = ""; + else { + object.sessionToken = []; + if (options.bytes !== Array) + object.sessionToken = $util.newBuffer(object.sessionToken); + } + object.userId = 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.enterpriseUserId = options.longs === String ? "0" : 0; + object.deviceName = ""; + if (options.bytes === String) + object.deviceToken = ""; + else { + object.deviceToken = []; + if (options.bytes !== Array) + object.deviceToken = $util.newBuffer(object.deviceToken); + } + object.clientVersionId = 0; + object.needUsername = false; + object.username = ""; + object.mspEnterpriseId = 0; + object.isPedmAdmin = false; + object.mcEnterpriseId = 0; } + if (message.transmissionKey != null && message.hasOwnProperty("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")) + 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")) + object.userId = message.userId; + if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + 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")) + object.deviceName = message.deviceName; + if (message.deviceToken != null && message.hasOwnProperty("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")) + object.clientVersionId = message.clientVersionId; + if (message.needUsername != null && message.hasOwnProperty("needUsername")) + object.needUsername = message.needUsername; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.mspEnterpriseId != null && message.hasOwnProperty("mspEnterpriseId")) + object.mspEnterpriseId = message.mspEnterpriseId; + if (message.isPedmAdmin != null && message.hasOwnProperty("isPedmAdmin")) + object.isPedmAdmin = message.isPedmAdmin; + if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) + object.mcEnterpriseId = message.mcEnterpriseId; return object; }; /** - * Converts this AddonPurchaseOptions to JSON. + * Converts this RouterUserAuth to JSON. * @function toJSON - * @memberof BI.AddonPurchaseOptions + * @memberof Router.RouterUserAuth * @instance * @returns {Object.} JSON object */ - AddonPurchaseOptions.prototype.toJSON = function toJSON() { + RouterUserAuth.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddonPurchaseOptions + * Gets the default type url for RouterUserAuth * @function getTypeUrl - * @memberof BI.AddonPurchaseOptions + * @memberof Router.RouterUserAuth * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddonPurchaseOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RouterUserAuth.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.AddonPurchaseOptions"; + return typeUrlPrefix + "/Router.RouterUserAuth"; }; - return AddonPurchaseOptions; + return RouterUserAuth; })(); - BI.AvailablePurchaseOptions = (function() { + Router.RouterDeviceAuth = (function() { /** - * Properties of an AvailablePurchaseOptions. - * @memberof BI - * @interface IAvailablePurchaseOptions - * @property {BI.IPurchaseOptions|null} [basePlan] AvailablePurchaseOptions basePlan - * @property {BI.IPurchaseOptions|null} [users] AvailablePurchaseOptions users - * @property {BI.IAddonPurchaseOptions|null} [addons] AvailablePurchaseOptions addons + * Properties of a RouterDeviceAuth. + * @memberof Router + * @interface IRouterDeviceAuth + * @property {string|null} [clientId] RouterDeviceAuth clientId + * @property {string|null} [clientVersion] RouterDeviceAuth clientVersion + * @property {Uint8Array|null} [signature] RouterDeviceAuth signature + * @property {number|null} [enterpriseId] RouterDeviceAuth enterpriseId + * @property {number|Long|null} [nodeId] RouterDeviceAuth nodeId + * @property {string|null} [deviceName] RouterDeviceAuth deviceName + * @property {Uint8Array|null} [deviceToken] RouterDeviceAuth deviceToken + * @property {string|null} [controllerName] RouterDeviceAuth controllerName + * @property {Uint8Array|null} [controllerUid] RouterDeviceAuth controllerUid + * @property {string|null} [ownerUser] RouterDeviceAuth ownerUser + * @property {string|null} [challenge] RouterDeviceAuth challenge + * @property {number|null} [ownerId] RouterDeviceAuth ownerId + * @property {number|null} [maxInstanceCount] RouterDeviceAuth maxInstanceCount */ /** - * Constructs a new AvailablePurchaseOptions. - * @memberof BI - * @classdesc Represents an AvailablePurchaseOptions. - * @implements IAvailablePurchaseOptions + * Constructs a new RouterDeviceAuth. + * @memberof Router + * @classdesc Represents a RouterDeviceAuth. + * @implements IRouterDeviceAuth * @constructor - * @param {BI.IAvailablePurchaseOptions=} [properties] Properties to set + * @param {Router.IRouterDeviceAuth=} [properties] Properties to set */ - function AvailablePurchaseOptions(properties) { + function RouterDeviceAuth(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -240604,325 +273132,245 @@ export const BI = $root.BI = (() => { } /** - * AvailablePurchaseOptions basePlan. - * @member {BI.IPurchaseOptions|null|undefined} basePlan - * @memberof BI.AvailablePurchaseOptions + * RouterDeviceAuth clientId. + * @member {string} clientId + * @memberof Router.RouterDeviceAuth * @instance */ - AvailablePurchaseOptions.prototype.basePlan = null; + RouterDeviceAuth.prototype.clientId = ""; /** - * AvailablePurchaseOptions users. - * @member {BI.IPurchaseOptions|null|undefined} users - * @memberof BI.AvailablePurchaseOptions + * RouterDeviceAuth clientVersion. + * @member {string} clientVersion + * @memberof Router.RouterDeviceAuth * @instance */ - AvailablePurchaseOptions.prototype.users = null; + RouterDeviceAuth.prototype.clientVersion = ""; /** - * AvailablePurchaseOptions addons. - * @member {BI.IAddonPurchaseOptions|null|undefined} addons - * @memberof BI.AvailablePurchaseOptions + * RouterDeviceAuth signature. + * @member {Uint8Array} signature + * @memberof Router.RouterDeviceAuth * @instance */ - AvailablePurchaseOptions.prototype.addons = null; - - /** - * Creates a new AvailablePurchaseOptions instance using the specified properties. - * @function create - * @memberof BI.AvailablePurchaseOptions - * @static - * @param {BI.IAvailablePurchaseOptions=} [properties] Properties to set - * @returns {BI.AvailablePurchaseOptions} AvailablePurchaseOptions instance - */ - AvailablePurchaseOptions.create = function create(properties) { - return new AvailablePurchaseOptions(properties); - }; - - /** - * Encodes the specified AvailablePurchaseOptions message. Does not implicitly {@link BI.AvailablePurchaseOptions.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.basePlan != null && Object.hasOwnProperty.call(message, "basePlan")) - $root.BI.PurchaseOptions.encode(message.basePlan, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.users != null && Object.hasOwnProperty.call(message, "users")) - $root.BI.PurchaseOptions.encode(message.users, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.addons != null && Object.hasOwnProperty.call(message, "addons")) - $root.BI.AddonPurchaseOptions.encode(message.addons, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + RouterDeviceAuth.prototype.signature = $util.newBuffer([]); /** - * 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 + * RouterDeviceAuth enterpriseId. + * @member {number} enterpriseId + * @memberof Router.RouterDeviceAuth + * @instance */ - AvailablePurchaseOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + RouterDeviceAuth.prototype.enterpriseId = 0; /** - * Decodes an AvailablePurchaseOptions message from the specified reader or buffer. - * @function decode - * @memberof BI.AvailablePurchaseOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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 + * RouterDeviceAuth nodeId. + * @member {number|Long} nodeId + * @memberof Router.RouterDeviceAuth + * @instance */ - AvailablePurchaseOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.AvailablePurchaseOptions(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.basePlan = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); - break; - } - case 2: { - message.users = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); - break; - } - case 3: { - message.addons = $root.BI.AddonPurchaseOptions.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + RouterDeviceAuth.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * 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 + * RouterDeviceAuth deviceName. + * @member {string} deviceName + * @memberof Router.RouterDeviceAuth + * @instance */ - AvailablePurchaseOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + RouterDeviceAuth.prototype.deviceName = ""; /** - * 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 + * RouterDeviceAuth deviceToken. + * @member {Uint8Array} deviceToken + * @memberof Router.RouterDeviceAuth + * @instance */ - AvailablePurchaseOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.basePlan != null && message.hasOwnProperty("basePlan")) { - let error = $root.BI.PurchaseOptions.verify(message.basePlan); - if (error) - return "basePlan." + error; - } - if (message.users != null && message.hasOwnProperty("users")) { - let error = $root.BI.PurchaseOptions.verify(message.users); - if (error) - return "users." + error; - } - if (message.addons != null && message.hasOwnProperty("addons")) { - let error = $root.BI.AddonPurchaseOptions.verify(message.addons); - if (error) - return "addons." + error; - } - return null; - }; + RouterDeviceAuth.prototype.deviceToken = $util.newBuffer([]); /** - * Creates an AvailablePurchaseOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.AvailablePurchaseOptions - * @static - * @param {Object.} object Plain object - * @returns {BI.AvailablePurchaseOptions} AvailablePurchaseOptions + * RouterDeviceAuth controllerName. + * @member {string} controllerName + * @memberof Router.RouterDeviceAuth + * @instance */ - AvailablePurchaseOptions.fromObject = function fromObject(object) { - if (object instanceof $root.BI.AvailablePurchaseOptions) - return object; - let message = new $root.BI.AvailablePurchaseOptions(); - if (object.basePlan != null) { - if (typeof object.basePlan !== "object") - throw TypeError(".BI.AvailablePurchaseOptions.basePlan: object expected"); - message.basePlan = $root.BI.PurchaseOptions.fromObject(object.basePlan); - } - if (object.users != null) { - if (typeof object.users !== "object") - throw TypeError(".BI.AvailablePurchaseOptions.users: object expected"); - message.users = $root.BI.PurchaseOptions.fromObject(object.users); - } - if (object.addons != null) { - if (typeof object.addons !== "object") - throw TypeError(".BI.AvailablePurchaseOptions.addons: object expected"); - message.addons = $root.BI.AddonPurchaseOptions.fromObject(object.addons); - } - return message; - }; + RouterDeviceAuth.prototype.controllerName = ""; /** - * Creates a plain object from an AvailablePurchaseOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.AvailablePurchaseOptions - * @static - * @param {BI.AvailablePurchaseOptions} message AvailablePurchaseOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * RouterDeviceAuth controllerUid. + * @member {Uint8Array} controllerUid + * @memberof Router.RouterDeviceAuth + * @instance */ - AvailablePurchaseOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.basePlan = null; - object.users = null; - object.addons = null; - } - if (message.basePlan != null && message.hasOwnProperty("basePlan")) - object.basePlan = $root.BI.PurchaseOptions.toObject(message.basePlan, options); - if (message.users != null && message.hasOwnProperty("users")) - object.users = $root.BI.PurchaseOptions.toObject(message.users, options); - if (message.addons != null && message.hasOwnProperty("addons")) - object.addons = $root.BI.AddonPurchaseOptions.toObject(message.addons, options); - return object; - }; + RouterDeviceAuth.prototype.controllerUid = $util.newBuffer([]); /** - * Converts this AvailablePurchaseOptions to JSON. - * @function toJSON - * @memberof BI.AvailablePurchaseOptions + * RouterDeviceAuth ownerUser. + * @member {string} ownerUser + * @memberof Router.RouterDeviceAuth * @instance - * @returns {Object.} JSON object */ - AvailablePurchaseOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + RouterDeviceAuth.prototype.ownerUser = ""; /** - * Gets the default type url for AvailablePurchaseOptions - * @function getTypeUrl - * @memberof BI.AvailablePurchaseOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * RouterDeviceAuth challenge. + * @member {string} challenge + * @memberof Router.RouterDeviceAuth + * @instance */ - AvailablePurchaseOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.AvailablePurchaseOptions"; - }; - - return AvailablePurchaseOptions; - })(); - - BI.UpgradeLicenseStatusRequest = (function() { + RouterDeviceAuth.prototype.challenge = ""; /** - * Properties of an UpgradeLicenseStatusRequest. - * @memberof BI - * @interface IUpgradeLicenseStatusRequest + * RouterDeviceAuth ownerId. + * @member {number} ownerId + * @memberof Router.RouterDeviceAuth + * @instance */ + RouterDeviceAuth.prototype.ownerId = 0; /** - * Constructs a new UpgradeLicenseStatusRequest. - * @memberof BI - * @classdesc Represents an UpgradeLicenseStatusRequest. - * @implements IUpgradeLicenseStatusRequest - * @constructor - * @param {BI.IUpgradeLicenseStatusRequest=} [properties] Properties to set + * RouterDeviceAuth maxInstanceCount. + * @member {number} maxInstanceCount + * @memberof Router.RouterDeviceAuth + * @instance */ - function UpgradeLicenseStatusRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + RouterDeviceAuth.prototype.maxInstanceCount = 0; /** - * Creates a new UpgradeLicenseStatusRequest instance using the specified properties. + * Creates a new RouterDeviceAuth instance using the specified properties. * @function create - * @memberof BI.UpgradeLicenseStatusRequest + * @memberof Router.RouterDeviceAuth * @static - * @param {BI.IUpgradeLicenseStatusRequest=} [properties] Properties to set - * @returns {BI.UpgradeLicenseStatusRequest} UpgradeLicenseStatusRequest instance + * @param {Router.IRouterDeviceAuth=} [properties] Properties to set + * @returns {Router.RouterDeviceAuth} RouterDeviceAuth instance */ - UpgradeLicenseStatusRequest.create = function create(properties) { - return new UpgradeLicenseStatusRequest(properties); + RouterDeviceAuth.create = function create(properties) { + return new RouterDeviceAuth(properties); }; /** - * Encodes the specified UpgradeLicenseStatusRequest message. Does not implicitly {@link BI.UpgradeLicenseStatusRequest.verify|verify} messages. + * Encodes the specified RouterDeviceAuth message. Does not implicitly {@link Router.RouterDeviceAuth.verify|verify} messages. * @function encode - * @memberof BI.UpgradeLicenseStatusRequest + * @memberof Router.RouterDeviceAuth * @static - * @param {BI.IUpgradeLicenseStatusRequest} message UpgradeLicenseStatusRequest message or plain object to encode + * @param {Router.IRouterDeviceAuth} message RouterDeviceAuth message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeLicenseStatusRequest.encode = function encode(message, writer) { + RouterDeviceAuth.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.clientId); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.clientVersion); + if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.signature); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.enterpriseId); + if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.nodeId); + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.deviceName); + if (message.deviceToken != null && Object.hasOwnProperty.call(message, "deviceToken")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.deviceToken); + if (message.controllerName != null && Object.hasOwnProperty.call(message, "controllerName")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.controllerName); + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) + writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.controllerUid); + if (message.ownerUser != null && Object.hasOwnProperty.call(message, "ownerUser")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerUser); + if (message.challenge != null && Object.hasOwnProperty.call(message, "challenge")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.challenge); + if (message.ownerId != null && Object.hasOwnProperty.call(message, "ownerId")) + writer.uint32(/* id 12, wireType 0 =*/96).int32(message.ownerId); + if (message.maxInstanceCount != null && Object.hasOwnProperty.call(message, "maxInstanceCount")) + writer.uint32(/* id 13, wireType 0 =*/104).int32(message.maxInstanceCount); return writer; }; /** - * Encodes the specified UpgradeLicenseStatusRequest message, length delimited. Does not implicitly {@link BI.UpgradeLicenseStatusRequest.verify|verify} messages. + * Encodes the specified RouterDeviceAuth message, length delimited. Does not implicitly {@link Router.RouterDeviceAuth.verify|verify} messages. * @function encodeDelimited - * @memberof BI.UpgradeLicenseStatusRequest + * @memberof Router.RouterDeviceAuth * @static - * @param {BI.IUpgradeLicenseStatusRequest} message UpgradeLicenseStatusRequest message or plain object to encode + * @param {Router.IRouterDeviceAuth} message RouterDeviceAuth message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeLicenseStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { + RouterDeviceAuth.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpgradeLicenseStatusRequest message from the specified reader or buffer. + * Decodes a RouterDeviceAuth message from the specified reader or buffer. * @function decode - * @memberof BI.UpgradeLicenseStatusRequest + * @memberof Router.RouterDeviceAuth * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.UpgradeLicenseStatusRequest} UpgradeLicenseStatusRequest + * @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 */ - UpgradeLicenseStatusRequest.decode = function decode(reader, length) { + RouterDeviceAuth.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseStatusRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterDeviceAuth(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.clientId = reader.string(); + break; + } + case 2: { + message.clientVersion = reader.string(); + break; + } + case 3: { + message.signature = reader.bytes(); + break; + } + case 4: { + message.enterpriseId = reader.int32(); + break; + } + case 5: { + message.nodeId = reader.int64(); + break; + } + case 6: { + message.deviceName = reader.string(); + break; + } + case 7: { + message.deviceToken = reader.bytes(); + break; + } + case 8: { + message.controllerName = reader.string(); + break; + } + case 9: { + message.controllerUid = reader.bytes(); + break; + } + case 10: { + message.ownerUser = reader.string(); + break; + } + case 11: { + message.challenge = reader.string(); + break; + } + case 12: { + message.ownerId = reader.int32(); + break; + } + case 13: { + message.maxInstanceCount = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -240932,111 +273380,264 @@ export const BI = $root.BI = (() => { }; /** - * Decodes an UpgradeLicenseStatusRequest message from the specified reader or buffer, length delimited. + * Decodes a RouterDeviceAuth message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.UpgradeLicenseStatusRequest + * @memberof Router.RouterDeviceAuth * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.UpgradeLicenseStatusRequest} UpgradeLicenseStatusRequest + * @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 */ - UpgradeLicenseStatusRequest.decodeDelimited = function decodeDelimited(reader) { + RouterDeviceAuth.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpgradeLicenseStatusRequest message. + * Verifies a RouterDeviceAuth message. * @function verify - * @memberof BI.UpgradeLicenseStatusRequest + * @memberof Router.RouterDeviceAuth * @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) { + RouterDeviceAuth.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + 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 an UpgradeLicenseStatusRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RouterDeviceAuth message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.UpgradeLicenseStatusRequest + * @memberof Router.RouterDeviceAuth * @static * @param {Object.} object Plain object - * @returns {BI.UpgradeLicenseStatusRequest} UpgradeLicenseStatusRequest + * @returns {Router.RouterDeviceAuth} RouterDeviceAuth */ - UpgradeLicenseStatusRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.UpgradeLicenseStatusRequest) + RouterDeviceAuth.fromObject = function fromObject(object) { + if (object instanceof $root.Router.RouterDeviceAuth) return object; - return new $root.BI.UpgradeLicenseStatusRequest(); + let message = new $root.Router.RouterDeviceAuth(); + if (object.clientId != null) + message.clientId = String(object.clientId); + if (object.clientVersion != null) + message.clientVersion = String(object.clientVersion); + if (object.signature != null) + if (typeof object.signature === "string") + $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); + else if (object.signature.length >= 0) + message.signature = object.signature; + if (object.enterpriseId != null) + message.enterpriseId = object.enterpriseId | 0; + if (object.nodeId != null) + if ($util.Long) + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === "string") + message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === "number") + message.nodeId = object.nodeId; + else if (typeof object.nodeId === "object") + message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); + if (object.deviceName != null) + message.deviceName = String(object.deviceName); + if (object.deviceToken != null) + if (typeof object.deviceToken === "string") + $util.base64.decode(object.deviceToken, message.deviceToken = $util.newBuffer($util.base64.length(object.deviceToken)), 0); + else if (object.deviceToken.length >= 0) + message.deviceToken = object.deviceToken; + if (object.controllerName != null) + message.controllerName = String(object.controllerName); + if (object.controllerUid != null) + if (typeof object.controllerUid === "string") + $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); + else if (object.controllerUid.length >= 0) + message.controllerUid = object.controllerUid; + if (object.ownerUser != null) + message.ownerUser = String(object.ownerUser); + if (object.challenge != null) + message.challenge = String(object.challenge); + if (object.ownerId != null) + message.ownerId = object.ownerId | 0; + if (object.maxInstanceCount != null) + message.maxInstanceCount = object.maxInstanceCount | 0; + return message; }; /** - * Creates a plain object from an UpgradeLicenseStatusRequest message. Also converts values to other types if specified. + * Creates a plain object from a RouterDeviceAuth message. Also converts values to other types if specified. * @function toObject - * @memberof BI.UpgradeLicenseStatusRequest + * @memberof Router.RouterDeviceAuth * @static - * @param {BI.UpgradeLicenseStatusRequest} message UpgradeLicenseStatusRequest + * @param {Router.RouterDeviceAuth} message RouterDeviceAuth * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpgradeLicenseStatusRequest.toObject = function toObject() { - return {}; + RouterDeviceAuth.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.clientId = ""; + object.clientVersion = ""; + if (options.bytes === String) + object.signature = ""; + else { + object.signature = []; + if (options.bytes !== Array) + object.signature = $util.newBuffer(object.signature); + } + object.enterpriseId = 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.nodeId = options.longs === String ? "0" : 0; + object.deviceName = ""; + if (options.bytes === String) + object.deviceToken = ""; + else { + object.deviceToken = []; + if (options.bytes !== Array) + object.deviceToken = $util.newBuffer(object.deviceToken); + } + object.controllerName = ""; + if (options.bytes === String) + object.controllerUid = ""; + else { + object.controllerUid = []; + if (options.bytes !== Array) + object.controllerUid = $util.newBuffer(object.controllerUid); + } + object.ownerUser = ""; + object.challenge = ""; + object.ownerId = 0; + object.maxInstanceCount = 0; + } + if (message.clientId != null && message.hasOwnProperty("clientId")) + object.clientId = message.clientId; + if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + object.clientVersion = message.clientVersion; + if (message.signature != null && message.hasOwnProperty("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")) + object.enterpriseId = message.enterpriseId; + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + 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")) + object.deviceName = message.deviceName; + if (message.deviceToken != null && message.hasOwnProperty("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")) + object.controllerName = message.controllerName; + if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) + object.controllerUid = options.bytes === String ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUid) : message.controllerUid; + if (message.ownerUser != null && message.hasOwnProperty("ownerUser")) + object.ownerUser = message.ownerUser; + if (message.challenge != null && message.hasOwnProperty("challenge")) + object.challenge = message.challenge; + if (message.ownerId != null && message.hasOwnProperty("ownerId")) + object.ownerId = message.ownerId; + if (message.maxInstanceCount != null && message.hasOwnProperty("maxInstanceCount")) + object.maxInstanceCount = message.maxInstanceCount; + return object; }; /** - * Converts this UpgradeLicenseStatusRequest to JSON. + * Converts this RouterDeviceAuth to JSON. * @function toJSON - * @memberof BI.UpgradeLicenseStatusRequest + * @memberof Router.RouterDeviceAuth * @instance * @returns {Object.} JSON object */ - UpgradeLicenseStatusRequest.prototype.toJSON = function toJSON() { + RouterDeviceAuth.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpgradeLicenseStatusRequest + * Gets the default type url for RouterDeviceAuth * @function getTypeUrl - * @memberof BI.UpgradeLicenseStatusRequest + * @memberof Router.RouterDeviceAuth * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpgradeLicenseStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RouterDeviceAuth.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.UpgradeLicenseStatusRequest"; + return typeUrlPrefix + "/Router.RouterDeviceAuth"; }; - return UpgradeLicenseStatusRequest; + return RouterDeviceAuth; })(); - BI.UpgradeLicenseStatusResponse = (function() { + Router.RouterRecordRotation = (function() { /** - * Properties of an UpgradeLicenseStatusResponse. - * @memberof BI - * @interface IUpgradeLicenseStatusResponse - * @property {boolean|null} [allowPurchaseFromConsole] UpgradeLicenseStatusResponse allowPurchaseFromConsole - * @property {BI.IAvailablePurchaseOptions|null} [purchaseOptions] UpgradeLicenseStatusResponse purchaseOptions - * @property {BI.IError|null} [error] UpgradeLicenseStatusResponse error + * Properties of a RouterRecordRotation. + * @memberof Router + * @interface IRouterRecordRotation + * @property {Uint8Array|null} [recordUid] RouterRecordRotation recordUid + * @property {Uint8Array|null} [configurationUid] RouterRecordRotation configurationUid + * @property {Uint8Array|null} [controllerUid] RouterRecordRotation controllerUid + * @property {Uint8Array|null} [resourceUid] RouterRecordRotation resourceUid + * @property {boolean|null} [noSchedule] RouterRecordRotation noSchedule */ /** - * Constructs a new UpgradeLicenseStatusResponse. - * @memberof BI - * @classdesc Represents an UpgradeLicenseStatusResponse. - * @implements IUpgradeLicenseStatusResponse + * Constructs a new RouterRecordRotation. + * @memberof Router + * @classdesc Represents a RouterRecordRotation. + * @implements IRouterRecordRotation * @constructor - * @param {BI.IUpgradeLicenseStatusResponse=} [properties] Properties to set + * @param {Router.IRouterRecordRotation=} [properties] Properties to set */ - function UpgradeLicenseStatusResponse(properties) { + function RouterRecordRotation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -241044,103 +273645,131 @@ export const BI = $root.BI = (() => { } /** - * UpgradeLicenseStatusResponse allowPurchaseFromConsole. - * @member {boolean} allowPurchaseFromConsole - * @memberof BI.UpgradeLicenseStatusResponse + * RouterRecordRotation recordUid. + * @member {Uint8Array} recordUid + * @memberof Router.RouterRecordRotation * @instance */ - UpgradeLicenseStatusResponse.prototype.allowPurchaseFromConsole = false; + RouterRecordRotation.prototype.recordUid = $util.newBuffer([]); /** - * UpgradeLicenseStatusResponse purchaseOptions. - * @member {BI.IAvailablePurchaseOptions|null|undefined} purchaseOptions - * @memberof BI.UpgradeLicenseStatusResponse + * RouterRecordRotation configurationUid. + * @member {Uint8Array} configurationUid + * @memberof Router.RouterRecordRotation * @instance */ - UpgradeLicenseStatusResponse.prototype.purchaseOptions = null; + RouterRecordRotation.prototype.configurationUid = $util.newBuffer([]); /** - * UpgradeLicenseStatusResponse error. - * @member {BI.IError|null|undefined} error - * @memberof BI.UpgradeLicenseStatusResponse + * RouterRecordRotation controllerUid. + * @member {Uint8Array} controllerUid + * @memberof Router.RouterRecordRotation * @instance */ - UpgradeLicenseStatusResponse.prototype.error = null; + RouterRecordRotation.prototype.controllerUid = $util.newBuffer([]); /** - * Creates a new UpgradeLicenseStatusResponse instance using the specified properties. + * RouterRecordRotation resourceUid. + * @member {Uint8Array} resourceUid + * @memberof Router.RouterRecordRotation + * @instance + */ + RouterRecordRotation.prototype.resourceUid = $util.newBuffer([]); + + /** + * RouterRecordRotation noSchedule. + * @member {boolean} noSchedule + * @memberof Router.RouterRecordRotation + * @instance + */ + RouterRecordRotation.prototype.noSchedule = false; + + /** + * Creates a new RouterRecordRotation instance using the specified properties. * @function create - * @memberof BI.UpgradeLicenseStatusResponse + * @memberof Router.RouterRecordRotation * @static - * @param {BI.IUpgradeLicenseStatusResponse=} [properties] Properties to set - * @returns {BI.UpgradeLicenseStatusResponse} UpgradeLicenseStatusResponse instance + * @param {Router.IRouterRecordRotation=} [properties] Properties to set + * @returns {Router.RouterRecordRotation} RouterRecordRotation instance */ - UpgradeLicenseStatusResponse.create = function create(properties) { - return new UpgradeLicenseStatusResponse(properties); + RouterRecordRotation.create = function create(properties) { + return new RouterRecordRotation(properties); }; /** - * Encodes the specified UpgradeLicenseStatusResponse message. Does not implicitly {@link BI.UpgradeLicenseStatusResponse.verify|verify} messages. + * Encodes the specified RouterRecordRotation message. Does not implicitly {@link Router.RouterRecordRotation.verify|verify} messages. * @function encode - * @memberof BI.UpgradeLicenseStatusResponse + * @memberof Router.RouterRecordRotation * @static - * @param {BI.IUpgradeLicenseStatusResponse} message UpgradeLicenseStatusResponse message or plain object to encode + * @param {Router.IRouterRecordRotation} message RouterRecordRotation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeLicenseStatusResponse.encode = function encode(message, writer) { + RouterRecordRotation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.allowPurchaseFromConsole != null && Object.hasOwnProperty.call(message, "allowPurchaseFromConsole")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.allowPurchaseFromConsole); - if (message.purchaseOptions != null && Object.hasOwnProperty.call(message, "purchaseOptions")) - $root.BI.AvailablePurchaseOptions.encode(message.purchaseOptions, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.BI.Error.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.configurationUid); + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.controllerUid); + if (message.resourceUid != null && Object.hasOwnProperty.call(message, "resourceUid")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.resourceUid); + if (message.noSchedule != null && Object.hasOwnProperty.call(message, "noSchedule")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.noSchedule); return writer; }; /** - * Encodes the specified UpgradeLicenseStatusResponse message, length delimited. Does not implicitly {@link BI.UpgradeLicenseStatusResponse.verify|verify} messages. + * Encodes the specified RouterRecordRotation message, length delimited. Does not implicitly {@link Router.RouterRecordRotation.verify|verify} messages. * @function encodeDelimited - * @memberof BI.UpgradeLicenseStatusResponse + * @memberof Router.RouterRecordRotation * @static - * @param {BI.IUpgradeLicenseStatusResponse} message UpgradeLicenseStatusResponse message or plain object to encode + * @param {Router.IRouterRecordRotation} message RouterRecordRotation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeLicenseStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { + RouterRecordRotation.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpgradeLicenseStatusResponse message from the specified reader or buffer. + * Decodes a RouterRecordRotation message from the specified reader or buffer. * @function decode - * @memberof BI.UpgradeLicenseStatusResponse + * @memberof Router.RouterRecordRotation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.UpgradeLicenseStatusResponse} UpgradeLicenseStatusResponse + * @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 */ - UpgradeLicenseStatusResponse.decode = function decode(reader, length) { + RouterRecordRotation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseStatusResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterRecordRotation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.allowPurchaseFromConsole = reader.bool(); + message.recordUid = reader.bytes(); break; } case 2: { - message.purchaseOptions = $root.BI.AvailablePurchaseOptions.decode(reader, reader.uint32()); + message.configurationUid = reader.bytes(); break; } case 3: { - message.error = $root.BI.Error.decode(reader, reader.uint32()); + message.controllerUid = reader.bytes(); + break; + } + case 4: { + message.resourceUid = reader.bytes(); + break; + } + case 5: { + message.noSchedule = reader.bool(); break; } default: @@ -241152,151 +273781,193 @@ export const BI = $root.BI = (() => { }; /** - * Decodes an UpgradeLicenseStatusResponse message from the specified reader or buffer, length delimited. + * Decodes a RouterRecordRotation message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.UpgradeLicenseStatusResponse + * @memberof Router.RouterRecordRotation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.UpgradeLicenseStatusResponse} UpgradeLicenseStatusResponse + * @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 */ - UpgradeLicenseStatusResponse.decodeDelimited = function decodeDelimited(reader) { + RouterRecordRotation.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpgradeLicenseStatusResponse message. + * Verifies a RouterRecordRotation message. * @function verify - * @memberof BI.UpgradeLicenseStatusResponse + * @memberof Router.RouterRecordRotation * @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) { + RouterRecordRotation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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); - if (error) - return "purchaseOptions." + error; - } - if (message.error != null && message.hasOwnProperty("error")) { - let error = $root.BI.Error.verify(message.error); - if (error) - return "error." + error; - } + 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 an UpgradeLicenseStatusResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RouterRecordRotation message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.UpgradeLicenseStatusResponse + * @memberof Router.RouterRecordRotation * @static * @param {Object.} object Plain object - * @returns {BI.UpgradeLicenseStatusResponse} UpgradeLicenseStatusResponse + * @returns {Router.RouterRecordRotation} RouterRecordRotation */ - UpgradeLicenseStatusResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.UpgradeLicenseStatusResponse) + RouterRecordRotation.fromObject = function fromObject(object) { + if (object instanceof $root.Router.RouterRecordRotation) return object; - let message = new $root.BI.UpgradeLicenseStatusResponse(); - if (object.allowPurchaseFromConsole != null) - message.allowPurchaseFromConsole = Boolean(object.allowPurchaseFromConsole); - if (object.purchaseOptions != null) { - if (typeof object.purchaseOptions !== "object") - throw TypeError(".BI.UpgradeLicenseStatusResponse.purchaseOptions: object expected"); - message.purchaseOptions = $root.BI.AvailablePurchaseOptions.fromObject(object.purchaseOptions); - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".BI.UpgradeLicenseStatusResponse.error: object expected"); - message.error = $root.BI.Error.fromObject(object.error); - } + let message = new $root.Router.RouterRecordRotation(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.configurationUid != null) + if (typeof object.configurationUid === "string") + $util.base64.decode(object.configurationUid, message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid)), 0); + else if (object.configurationUid.length >= 0) + message.configurationUid = object.configurationUid; + if (object.controllerUid != null) + if (typeof object.controllerUid === "string") + $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); + else if (object.controllerUid.length >= 0) + message.controllerUid = object.controllerUid; + if (object.resourceUid != null) + if (typeof object.resourceUid === "string") + $util.base64.decode(object.resourceUid, message.resourceUid = $util.newBuffer($util.base64.length(object.resourceUid)), 0); + else if (object.resourceUid.length >= 0) + message.resourceUid = object.resourceUid; + if (object.noSchedule != null) + message.noSchedule = Boolean(object.noSchedule); return message; }; /** - * Creates a plain object from an UpgradeLicenseStatusResponse message. Also converts values to other types if specified. + * Creates a plain object from a RouterRecordRotation message. Also converts values to other types if specified. * @function toObject - * @memberof BI.UpgradeLicenseStatusResponse + * @memberof Router.RouterRecordRotation * @static - * @param {BI.UpgradeLicenseStatusResponse} message UpgradeLicenseStatusResponse + * @param {Router.RouterRecordRotation} message RouterRecordRotation * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpgradeLicenseStatusResponse.toObject = function toObject(message, options) { + RouterRecordRotation.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.allowPurchaseFromConsole = false; - object.purchaseOptions = null; - object.error = null; + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if (options.bytes === String) + object.configurationUid = ""; + else { + object.configurationUid = []; + if (options.bytes !== Array) + object.configurationUid = $util.newBuffer(object.configurationUid); + } + if (options.bytes === String) + object.controllerUid = ""; + else { + object.controllerUid = []; + if (options.bytes !== Array) + object.controllerUid = $util.newBuffer(object.controllerUid); + } + if (options.bytes === String) + object.resourceUid = ""; + else { + object.resourceUid = []; + if (options.bytes !== Array) + object.resourceUid = $util.newBuffer(object.resourceUid); + } + object.noSchedule = false; } - if (message.allowPurchaseFromConsole != null && message.hasOwnProperty("allowPurchaseFromConsole")) - object.allowPurchaseFromConsole = message.allowPurchaseFromConsole; - if (message.purchaseOptions != null && message.hasOwnProperty("purchaseOptions")) - object.purchaseOptions = $root.BI.AvailablePurchaseOptions.toObject(message.purchaseOptions, options); - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.BI.Error.toObject(message.error, options); + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) + object.configurationUid = options.bytes === String ? $util.base64.encode(message.configurationUid, 0, message.configurationUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.configurationUid) : message.configurationUid; + if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) + object.controllerUid = options.bytes === String ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUid) : message.controllerUid; + if (message.resourceUid != null && message.hasOwnProperty("resourceUid")) + object.resourceUid = options.bytes === String ? $util.base64.encode(message.resourceUid, 0, message.resourceUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.resourceUid) : message.resourceUid; + if (message.noSchedule != null && message.hasOwnProperty("noSchedule")) + object.noSchedule = message.noSchedule; return object; }; /** - * Converts this UpgradeLicenseStatusResponse to JSON. + * Converts this RouterRecordRotation to JSON. * @function toJSON - * @memberof BI.UpgradeLicenseStatusResponse + * @memberof Router.RouterRecordRotation * @instance * @returns {Object.} JSON object */ - UpgradeLicenseStatusResponse.prototype.toJSON = function toJSON() { + RouterRecordRotation.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpgradeLicenseStatusResponse + * Gets the default type url for RouterRecordRotation * @function getTypeUrl - * @memberof BI.UpgradeLicenseStatusResponse + * @memberof Router.RouterRecordRotation * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpgradeLicenseStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RouterRecordRotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.UpgradeLicenseStatusResponse"; + return typeUrlPrefix + "/Router.RouterRecordRotation"; }; - return UpgradeLicenseStatusResponse; + return RouterRecordRotation; })(); - BI.UpgradeLicenseQuotePurchaseRequest = (function() { + Router.RouterRecordRotationsRequest = (function() { /** - * Properties of an UpgradeLicenseQuotePurchaseRequest. - * @memberof BI - * @interface IUpgradeLicenseQuotePurchaseRequest - * @property {BI.PurchaseProductType|null} [productType] UpgradeLicenseQuotePurchaseRequest productType - * @property {number|null} [quantity] UpgradeLicenseQuotePurchaseRequest quantity - * @property {number|null} [tier] UpgradeLicenseQuotePurchaseRequest tier + * Properties of a RouterRecordRotationsRequest. + * @memberof Router + * @interface IRouterRecordRotationsRequest + * @property {number|null} [enterpriseId] RouterRecordRotationsRequest enterpriseId + * @property {Array.|null} [records] RouterRecordRotationsRequest records */ /** - * Constructs a new UpgradeLicenseQuotePurchaseRequest. - * @memberof BI - * @classdesc Represents an UpgradeLicenseQuotePurchaseRequest. - * @implements IUpgradeLicenseQuotePurchaseRequest + * Constructs a new RouterRecordRotationsRequest. + * @memberof Router + * @classdesc Represents a RouterRecordRotationsRequest. + * @implements IRouterRecordRotationsRequest * @constructor - * @param {BI.IUpgradeLicenseQuotePurchaseRequest=} [properties] Properties to set + * @param {Router.IRouterRecordRotationsRequest=} [properties] Properties to set */ - function UpgradeLicenseQuotePurchaseRequest(properties) { + function RouterRecordRotationsRequest(properties) { + this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -241304,103 +273975,92 @@ export const BI = $root.BI = (() => { } /** - * UpgradeLicenseQuotePurchaseRequest productType. - * @member {BI.PurchaseProductType} productType - * @memberof BI.UpgradeLicenseQuotePurchaseRequest - * @instance - */ - UpgradeLicenseQuotePurchaseRequest.prototype.productType = 0; - - /** - * UpgradeLicenseQuotePurchaseRequest quantity. - * @member {number} quantity - * @memberof BI.UpgradeLicenseQuotePurchaseRequest + * RouterRecordRotationsRequest enterpriseId. + * @member {number} enterpriseId + * @memberof Router.RouterRecordRotationsRequest * @instance */ - UpgradeLicenseQuotePurchaseRequest.prototype.quantity = 0; + RouterRecordRotationsRequest.prototype.enterpriseId = 0; /** - * UpgradeLicenseQuotePurchaseRequest tier. - * @member {number} tier - * @memberof BI.UpgradeLicenseQuotePurchaseRequest + * RouterRecordRotationsRequest records. + * @member {Array.} records + * @memberof Router.RouterRecordRotationsRequest * @instance */ - UpgradeLicenseQuotePurchaseRequest.prototype.tier = 0; + RouterRecordRotationsRequest.prototype.records = $util.emptyArray; /** - * Creates a new UpgradeLicenseQuotePurchaseRequest instance using the specified properties. + * Creates a new RouterRecordRotationsRequest instance using the specified properties. * @function create - * @memberof BI.UpgradeLicenseQuotePurchaseRequest + * @memberof Router.RouterRecordRotationsRequest * @static - * @param {BI.IUpgradeLicenseQuotePurchaseRequest=} [properties] Properties to set - * @returns {BI.UpgradeLicenseQuotePurchaseRequest} UpgradeLicenseQuotePurchaseRequest instance + * @param {Router.IRouterRecordRotationsRequest=} [properties] Properties to set + * @returns {Router.RouterRecordRotationsRequest} RouterRecordRotationsRequest instance */ - UpgradeLicenseQuotePurchaseRequest.create = function create(properties) { - return new UpgradeLicenseQuotePurchaseRequest(properties); + RouterRecordRotationsRequest.create = function create(properties) { + return new RouterRecordRotationsRequest(properties); }; /** - * Encodes the specified UpgradeLicenseQuotePurchaseRequest message. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseRequest.verify|verify} messages. + * Encodes the specified RouterRecordRotationsRequest message. Does not implicitly {@link Router.RouterRecordRotationsRequest.verify|verify} messages. * @function encode - * @memberof BI.UpgradeLicenseQuotePurchaseRequest + * @memberof Router.RouterRecordRotationsRequest * @static - * @param {BI.IUpgradeLicenseQuotePurchaseRequest} message UpgradeLicenseQuotePurchaseRequest message or plain object to encode + * @param {Router.IRouterRecordRotationsRequest} message RouterRecordRotationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeLicenseQuotePurchaseRequest.encode = function encode(message, writer) { + RouterRecordRotationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.productType != null && Object.hasOwnProperty.call(message, "productType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.productType); - if (message.quantity != null && Object.hasOwnProperty.call(message, "quantity")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.quantity); - if (message.tier != null && Object.hasOwnProperty.call(message, "tier")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.tier); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.enterpriseId); + if (message.records != null && message.records.length) + for (let i = 0; i < message.records.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.records[i]); return writer; }; /** - * Encodes the specified UpgradeLicenseQuotePurchaseRequest message, length delimited. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseRequest.verify|verify} messages. + * Encodes the specified RouterRecordRotationsRequest message, length delimited. Does not implicitly {@link Router.RouterRecordRotationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof BI.UpgradeLicenseQuotePurchaseRequest + * @memberof Router.RouterRecordRotationsRequest * @static - * @param {BI.IUpgradeLicenseQuotePurchaseRequest} message UpgradeLicenseQuotePurchaseRequest message or plain object to encode + * @param {Router.IRouterRecordRotationsRequest} message RouterRecordRotationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeLicenseQuotePurchaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + RouterRecordRotationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpgradeLicenseQuotePurchaseRequest message from the specified reader or buffer. + * Decodes a RouterRecordRotationsRequest message from the specified reader or buffer. * @function decode - * @memberof BI.UpgradeLicenseQuotePurchaseRequest + * @memberof Router.RouterRecordRotationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.UpgradeLicenseQuotePurchaseRequest} UpgradeLicenseQuotePurchaseRequest + * @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 */ - UpgradeLicenseQuotePurchaseRequest.decode = function decode(reader, length) { + RouterRecordRotationsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseQuotePurchaseRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterRecordRotationsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.productType = reader.int32(); + message.enterpriseId = reader.int32(); break; } case 2: { - message.quantity = reader.int32(); - break; - } - case 3: { - message.tier = reader.int32(); + if (!(message.records && message.records.length)) + message.records = []; + message.records.push(reader.bytes()); break; } default: @@ -241412,206 +274072,148 @@ export const BI = $root.BI = (() => { }; /** - * Decodes an UpgradeLicenseQuotePurchaseRequest message from the specified reader or buffer, length delimited. + * Decodes a RouterRecordRotationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.UpgradeLicenseQuotePurchaseRequest + * @memberof Router.RouterRecordRotationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.UpgradeLicenseQuotePurchaseRequest} UpgradeLicenseQuotePurchaseRequest + * @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 */ - UpgradeLicenseQuotePurchaseRequest.decodeDelimited = function decodeDelimited(reader) { + RouterRecordRotationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpgradeLicenseQuotePurchaseRequest message. + * Verifies a RouterRecordRotationsRequest message. * @function verify - * @memberof BI.UpgradeLicenseQuotePurchaseRequest + * @memberof Router.RouterRecordRotationsRequest * @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) { + RouterRecordRotationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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: - 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"; + 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 an UpgradeLicenseQuotePurchaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RouterRecordRotationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.UpgradeLicenseQuotePurchaseRequest + * @memberof Router.RouterRecordRotationsRequest * @static * @param {Object.} object Plain object - * @returns {BI.UpgradeLicenseQuotePurchaseRequest} UpgradeLicenseQuotePurchaseRequest + * @returns {Router.RouterRecordRotationsRequest} RouterRecordRotationsRequest */ - UpgradeLicenseQuotePurchaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.UpgradeLicenseQuotePurchaseRequest) + RouterRecordRotationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Router.RouterRecordRotationsRequest) return object; - let message = new $root.BI.UpgradeLicenseQuotePurchaseRequest(); - switch (object.productType) { - default: - if (typeof object.productType === "number") { - message.productType = object.productType; - break; - } - break; - case "upgradeToEnterprise": - case 0: - message.productType = 0; - break; - case "addUsers": - case 1: - message.productType = 1; - break; - case "addStorage": - case 2: - message.productType = 2; - break; - case "addAudit": - case 3: - message.productType = 3; - break; - case "addBreachWatch": - case 4: - message.productType = 4; - break; - case "addCompliance": - case 5: - message.productType = 5; - break; - case "addChat": - case 6: - message.productType = 6; - break; - case "addPAM": - case 7: - message.productType = 7; - break; - case "addSilverSupport": - case 8: - message.productType = 8; - break; - case "addPlatinumSupport": - case 9: - message.productType = 9; - break; - case "addKEPM": - case 10: - message.productType = 10; - break; + let message = new $root.Router.RouterRecordRotationsRequest(); + if (object.enterpriseId != null) + message.enterpriseId = object.enterpriseId | 0; + if (object.records) { + if (!Array.isArray(object.records)) + throw TypeError(".Router.RouterRecordRotationsRequest.records: array expected"); + message.records = []; + for (let i = 0; i < object.records.length; ++i) + if (typeof object.records[i] === "string") + $util.base64.decode(object.records[i], message.records[i] = $util.newBuffer($util.base64.length(object.records[i])), 0); + else if (object.records[i].length >= 0) + message.records[i] = object.records[i]; } - if (object.quantity != null) - message.quantity = object.quantity | 0; - if (object.tier != null) - message.tier = object.tier | 0; return message; }; /** - * Creates a plain object from an UpgradeLicenseQuotePurchaseRequest message. Also converts values to other types if specified. + * Creates a plain object from a RouterRecordRotationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof BI.UpgradeLicenseQuotePurchaseRequest + * @memberof Router.RouterRecordRotationsRequest * @static - * @param {BI.UpgradeLicenseQuotePurchaseRequest} message UpgradeLicenseQuotePurchaseRequest + * @param {Router.RouterRecordRotationsRequest} message RouterRecordRotationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpgradeLicenseQuotePurchaseRequest.toObject = function toObject(message, options) { + RouterRecordRotationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.productType = options.enums === String ? "upgradeToEnterprise" : 0; - object.quantity = 0; - object.tier = 0; + if (options.arrays || options.defaults) + object.records = []; + if (options.defaults) + object.enterpriseId = 0; + if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + object.enterpriseId = message.enterpriseId; + if (message.records && message.records.length) { + object.records = []; + for (let j = 0; j < message.records.length; ++j) + object.records[j] = options.bytes === String ? $util.base64.encode(message.records[j], 0, message.records[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.records[j]) : message.records[j]; } - if (message.productType != null && message.hasOwnProperty("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")) - object.quantity = message.quantity; - if (message.tier != null && message.hasOwnProperty("tier")) - object.tier = message.tier; return object; }; /** - * Converts this UpgradeLicenseQuotePurchaseRequest to JSON. + * Converts this RouterRecordRotationsRequest to JSON. * @function toJSON - * @memberof BI.UpgradeLicenseQuotePurchaseRequest + * @memberof Router.RouterRecordRotationsRequest * @instance * @returns {Object.} JSON object */ - UpgradeLicenseQuotePurchaseRequest.prototype.toJSON = function toJSON() { + RouterRecordRotationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpgradeLicenseQuotePurchaseRequest + * Gets the default type url for RouterRecordRotationsRequest * @function getTypeUrl - * @memberof BI.UpgradeLicenseQuotePurchaseRequest + * @memberof Router.RouterRecordRotationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpgradeLicenseQuotePurchaseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RouterRecordRotationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.UpgradeLicenseQuotePurchaseRequest"; + return typeUrlPrefix + "/Router.RouterRecordRotationsRequest"; }; - return UpgradeLicenseQuotePurchaseRequest; + return RouterRecordRotationsRequest; })(); - BI.UpgradeLicenseQuotePurchaseResponse = (function() { + Router.RouterRecordRotationsResponse = (function() { /** - * Properties of an UpgradeLicenseQuotePurchaseResponse. - * @memberof BI - * @interface IUpgradeLicenseQuotePurchaseResponse - * @property {boolean|null} [success] UpgradeLicenseQuotePurchaseResponse success - * @property {BI.IQuotePurchase|null} [quotePurchase] UpgradeLicenseQuotePurchaseResponse quotePurchase - * @property {string|null} [viewSummaryLink] UpgradeLicenseQuotePurchaseResponse viewSummaryLink - * @property {BI.IError|null} [error] UpgradeLicenseQuotePurchaseResponse error + * Properties of a RouterRecordRotationsResponse. + * @memberof Router + * @interface IRouterRecordRotationsResponse + * @property {Array.|null} [rotations] RouterRecordRotationsResponse rotations + * @property {boolean|null} [hasMore] RouterRecordRotationsResponse hasMore */ /** - * Constructs a new UpgradeLicenseQuotePurchaseResponse. - * @memberof BI - * @classdesc Represents an UpgradeLicenseQuotePurchaseResponse. - * @implements IUpgradeLicenseQuotePurchaseResponse + * Constructs a new RouterRecordRotationsResponse. + * @memberof Router + * @classdesc Represents a RouterRecordRotationsResponse. + * @implements IRouterRecordRotationsResponse * @constructor - * @param {BI.IUpgradeLicenseQuotePurchaseResponse=} [properties] Properties to set + * @param {Router.IRouterRecordRotationsResponse=} [properties] Properties to set */ - function UpgradeLicenseQuotePurchaseResponse(properties) { + function RouterRecordRotationsResponse(properties) { + this.rotations = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -241619,117 +274221,92 @@ export const BI = $root.BI = (() => { } /** - * UpgradeLicenseQuotePurchaseResponse success. - * @member {boolean} success - * @memberof BI.UpgradeLicenseQuotePurchaseResponse - * @instance - */ - UpgradeLicenseQuotePurchaseResponse.prototype.success = false; - - /** - * UpgradeLicenseQuotePurchaseResponse quotePurchase. - * @member {BI.IQuotePurchase|null|undefined} quotePurchase - * @memberof BI.UpgradeLicenseQuotePurchaseResponse - * @instance - */ - UpgradeLicenseQuotePurchaseResponse.prototype.quotePurchase = null; - - /** - * UpgradeLicenseQuotePurchaseResponse viewSummaryLink. - * @member {string} viewSummaryLink - * @memberof BI.UpgradeLicenseQuotePurchaseResponse + * RouterRecordRotationsResponse rotations. + * @member {Array.} rotations + * @memberof Router.RouterRecordRotationsResponse * @instance */ - UpgradeLicenseQuotePurchaseResponse.prototype.viewSummaryLink = ""; + RouterRecordRotationsResponse.prototype.rotations = $util.emptyArray; /** - * UpgradeLicenseQuotePurchaseResponse error. - * @member {BI.IError|null|undefined} error - * @memberof BI.UpgradeLicenseQuotePurchaseResponse + * RouterRecordRotationsResponse hasMore. + * @member {boolean} hasMore + * @memberof Router.RouterRecordRotationsResponse * @instance */ - UpgradeLicenseQuotePurchaseResponse.prototype.error = null; + RouterRecordRotationsResponse.prototype.hasMore = false; /** - * Creates a new UpgradeLicenseQuotePurchaseResponse instance using the specified properties. + * Creates a new RouterRecordRotationsResponse instance using the specified properties. * @function create - * @memberof BI.UpgradeLicenseQuotePurchaseResponse + * @memberof Router.RouterRecordRotationsResponse * @static - * @param {BI.IUpgradeLicenseQuotePurchaseResponse=} [properties] Properties to set - * @returns {BI.UpgradeLicenseQuotePurchaseResponse} UpgradeLicenseQuotePurchaseResponse instance + * @param {Router.IRouterRecordRotationsResponse=} [properties] Properties to set + * @returns {Router.RouterRecordRotationsResponse} RouterRecordRotationsResponse instance */ - UpgradeLicenseQuotePurchaseResponse.create = function create(properties) { - return new UpgradeLicenseQuotePurchaseResponse(properties); + RouterRecordRotationsResponse.create = function create(properties) { + return new RouterRecordRotationsResponse(properties); }; /** - * Encodes the specified UpgradeLicenseQuotePurchaseResponse message. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseResponse.verify|verify} messages. + * Encodes the specified RouterRecordRotationsResponse message. Does not implicitly {@link Router.RouterRecordRotationsResponse.verify|verify} messages. * @function encode - * @memberof BI.UpgradeLicenseQuotePurchaseResponse + * @memberof Router.RouterRecordRotationsResponse * @static - * @param {BI.IUpgradeLicenseQuotePurchaseResponse} message UpgradeLicenseQuotePurchaseResponse message or plain object to encode + * @param {Router.IRouterRecordRotationsResponse} message RouterRecordRotationsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeLicenseQuotePurchaseResponse.encode = function encode(message, writer) { + RouterRecordRotationsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); - if (message.quotePurchase != null && Object.hasOwnProperty.call(message, "quotePurchase")) - $root.BI.QuotePurchase.encode(message.quotePurchase, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.viewSummaryLink != null && Object.hasOwnProperty.call(message, "viewSummaryLink")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.viewSummaryLink); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.BI.Error.encode(message.error, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.rotations != null && message.rotations.length) + for (let i = 0; i < message.rotations.length; ++i) + $root.Router.RouterRecordRotation.encode(message.rotations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.hasMore); return writer; }; /** - * Encodes the specified UpgradeLicenseQuotePurchaseResponse message, length delimited. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseResponse.verify|verify} messages. + * Encodes the specified RouterRecordRotationsResponse message, length delimited. Does not implicitly {@link Router.RouterRecordRotationsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof BI.UpgradeLicenseQuotePurchaseResponse + * @memberof Router.RouterRecordRotationsResponse * @static - * @param {BI.IUpgradeLicenseQuotePurchaseResponse} message UpgradeLicenseQuotePurchaseResponse message or plain object to encode + * @param {Router.IRouterRecordRotationsResponse} message RouterRecordRotationsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeLicenseQuotePurchaseResponse.encodeDelimited = function encodeDelimited(message, writer) { + RouterRecordRotationsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpgradeLicenseQuotePurchaseResponse message from the specified reader or buffer. + * Decodes a RouterRecordRotationsResponse message from the specified reader or buffer. * @function decode - * @memberof BI.UpgradeLicenseQuotePurchaseResponse + * @memberof Router.RouterRecordRotationsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.UpgradeLicenseQuotePurchaseResponse} UpgradeLicenseQuotePurchaseResponse + * @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 */ - UpgradeLicenseQuotePurchaseResponse.decode = function decode(reader, length) { + RouterRecordRotationsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseQuotePurchaseResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterRecordRotationsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.success = reader.bool(); + if (!(message.rotations && message.rotations.length)) + message.rotations = []; + message.rotations.push($root.Router.RouterRecordRotation.decode(reader, reader.uint32())); break; } case 2: { - message.quotePurchase = $root.BI.QuotePurchase.decode(reader, reader.uint32()); - break; - } - case 3: { - message.viewSummaryLink = reader.string(); - break; - } - case 4: { - message.error = $root.BI.Error.decode(reader, reader.uint32()); + message.hasMore = reader.bool(); break; } default: @@ -241741,160 +274318,174 @@ export const BI = $root.BI = (() => { }; /** - * Decodes an UpgradeLicenseQuotePurchaseResponse message from the specified reader or buffer, length delimited. + * Decodes a RouterRecordRotationsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.UpgradeLicenseQuotePurchaseResponse + * @memberof Router.RouterRecordRotationsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.UpgradeLicenseQuotePurchaseResponse} UpgradeLicenseQuotePurchaseResponse + * @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 */ - UpgradeLicenseQuotePurchaseResponse.decodeDelimited = function decodeDelimited(reader) { + RouterRecordRotationsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpgradeLicenseQuotePurchaseResponse message. + * Verifies a RouterRecordRotationsResponse message. * @function verify - * @memberof BI.UpgradeLicenseQuotePurchaseResponse + * @memberof Router.RouterRecordRotationsResponse * @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) { + RouterRecordRotationsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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); - 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); - if (error) - return "error." + 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.RouterRecordRotation.verify(message.rotations[i]); + if (error) + return "rotations." + error; + } } + if (message.hasMore != null && message.hasOwnProperty("hasMore")) + if (typeof message.hasMore !== "boolean") + return "hasMore: boolean expected"; return null; }; /** - * Creates an UpgradeLicenseQuotePurchaseResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RouterRecordRotationsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.UpgradeLicenseQuotePurchaseResponse + * @memberof Router.RouterRecordRotationsResponse * @static * @param {Object.} object Plain object - * @returns {BI.UpgradeLicenseQuotePurchaseResponse} UpgradeLicenseQuotePurchaseResponse + * @returns {Router.RouterRecordRotationsResponse} RouterRecordRotationsResponse */ - UpgradeLicenseQuotePurchaseResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.UpgradeLicenseQuotePurchaseResponse) + RouterRecordRotationsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Router.RouterRecordRotationsResponse) return object; - let message = new $root.BI.UpgradeLicenseQuotePurchaseResponse(); - if (object.success != null) - message.success = Boolean(object.success); - if (object.quotePurchase != null) { - if (typeof object.quotePurchase !== "object") - throw TypeError(".BI.UpgradeLicenseQuotePurchaseResponse.quotePurchase: object expected"); - message.quotePurchase = $root.BI.QuotePurchase.fromObject(object.quotePurchase); - } - if (object.viewSummaryLink != null) - message.viewSummaryLink = String(object.viewSummaryLink); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".BI.UpgradeLicenseQuotePurchaseResponse.error: object expected"); - message.error = $root.BI.Error.fromObject(object.error); + let message = new $root.Router.RouterRecordRotationsResponse(); + if (object.rotations) { + if (!Array.isArray(object.rotations)) + throw TypeError(".Router.RouterRecordRotationsResponse.rotations: array expected"); + message.rotations = []; + for (let i = 0; i < object.rotations.length; ++i) { + if (typeof object.rotations[i] !== "object") + throw TypeError(".Router.RouterRecordRotationsResponse.rotations: object expected"); + message.rotations[i] = $root.Router.RouterRecordRotation.fromObject(object.rotations[i]); + } } + if (object.hasMore != null) + message.hasMore = Boolean(object.hasMore); return message; }; /** - * Creates a plain object from an UpgradeLicenseQuotePurchaseResponse message. Also converts values to other types if specified. + * Creates a plain object from a RouterRecordRotationsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof BI.UpgradeLicenseQuotePurchaseResponse + * @memberof Router.RouterRecordRotationsResponse * @static - * @param {BI.UpgradeLicenseQuotePurchaseResponse} message UpgradeLicenseQuotePurchaseResponse + * @param {Router.RouterRecordRotationsResponse} message RouterRecordRotationsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpgradeLicenseQuotePurchaseResponse.toObject = function toObject(message, options) { + RouterRecordRotationsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.success = false; - object.quotePurchase = null; - object.viewSummaryLink = ""; - object.error = null; + if (options.arrays || options.defaults) + object.rotations = []; + if (options.defaults) + object.hasMore = false; + if (message.rotations && message.rotations.length) { + object.rotations = []; + for (let j = 0; j < message.rotations.length; ++j) + object.rotations[j] = $root.Router.RouterRecordRotation.toObject(message.rotations[j], options); } - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) - object.quotePurchase = $root.BI.QuotePurchase.toObject(message.quotePurchase, options); - if (message.viewSummaryLink != null && message.hasOwnProperty("viewSummaryLink")) - object.viewSummaryLink = message.viewSummaryLink; - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.BI.Error.toObject(message.error, options); + if (message.hasMore != null && message.hasOwnProperty("hasMore")) + object.hasMore = message.hasMore; return object; }; /** - * Converts this UpgradeLicenseQuotePurchaseResponse to JSON. + * Converts this RouterRecordRotationsResponse to JSON. * @function toJSON - * @memberof BI.UpgradeLicenseQuotePurchaseResponse + * @memberof Router.RouterRecordRotationsResponse * @instance * @returns {Object.} JSON object */ - UpgradeLicenseQuotePurchaseResponse.prototype.toJSON = function toJSON() { + RouterRecordRotationsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpgradeLicenseQuotePurchaseResponse + * Gets the default type url for RouterRecordRotationsResponse * @function getTypeUrl - * @memberof BI.UpgradeLicenseQuotePurchaseResponse + * @memberof Router.RouterRecordRotationsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpgradeLicenseQuotePurchaseResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RouterRecordRotationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.UpgradeLicenseQuotePurchaseResponse"; + return typeUrlPrefix + "/Router.RouterRecordRotationsResponse"; }; - return UpgradeLicenseQuotePurchaseResponse; + return RouterRecordRotationsResponse; })(); - BI.UpgradeLicenseCompletePurchaseRequest = (function() { + /** + * RouterRotationStatus enum. + * @name Router.RouterRotationStatus + * @enum {number} + * @property {number} RRS_ONLINE=0 RRS_ONLINE value + * @property {number} RRS_NO_ROTATION=1 RRS_NO_ROTATION value + * @property {number} RRS_NO_CONTROLLER=2 RRS_NO_CONTROLLER value + * @property {number} RRS_CONTROLLER_DOWN=3 RRS_CONTROLLER_DOWN value + */ + Router.RouterRotationStatus = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RRS_ONLINE"] = 0; + values[valuesById[1] = "RRS_NO_ROTATION"] = 1; + values[valuesById[2] = "RRS_NO_CONTROLLER"] = 2; + values[valuesById[3] = "RRS_CONTROLLER_DOWN"] = 3; + return values; + })(); + + Router.RouterRotationInfo = (function() { /** - * Properties of an UpgradeLicenseCompletePurchaseRequest. - * @memberof BI - * @interface IUpgradeLicenseCompletePurchaseRequest - * @property {BI.PurchaseProductType|null} [productType] UpgradeLicenseCompletePurchaseRequest productType - * @property {number|null} [quantity] UpgradeLicenseCompletePurchaseRequest quantity - * @property {BI.IQuotePurchase|null} [quotePurchase] UpgradeLicenseCompletePurchaseRequest quotePurchase - * @property {number|null} [tier] UpgradeLicenseCompletePurchaseRequest tier + * Properties of a RouterRotationInfo. + * @memberof Router + * @interface IRouterRotationInfo + * @property {Router.RouterRotationStatus|null} [status] RouterRotationInfo status + * @property {Uint8Array|null} [configurationUid] RouterRotationInfo configurationUid + * @property {Uint8Array|null} [resourceUid] RouterRotationInfo resourceUid + * @property {number|Long|null} [nodeId] RouterRotationInfo nodeId + * @property {Uint8Array|null} [controllerUid] RouterRotationInfo controllerUid + * @property {string|null} [controllerName] RouterRotationInfo controllerName + * @property {string|null} [scriptName] RouterRotationInfo scriptName + * @property {string|null} [pwdComplexity] RouterRotationInfo pwdComplexity + * @property {boolean|null} [disabled] RouterRotationInfo disabled */ /** - * Constructs a new UpgradeLicenseCompletePurchaseRequest. - * @memberof BI - * @classdesc Represents an UpgradeLicenseCompletePurchaseRequest. - * @implements IUpgradeLicenseCompletePurchaseRequest + * Constructs a new RouterRotationInfo. + * @memberof Router + * @classdesc Represents a RouterRotationInfo. + * @implements IRouterRotationInfo * @constructor - * @param {BI.IUpgradeLicenseCompletePurchaseRequest=} [properties] Properties to set + * @param {Router.IRouterRotationInfo=} [properties] Properties to set */ - function UpgradeLicenseCompletePurchaseRequest(properties) { + function RouterRotationInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -241902,117 +274493,187 @@ export const BI = $root.BI = (() => { } /** - * UpgradeLicenseCompletePurchaseRequest productType. - * @member {BI.PurchaseProductType} productType - * @memberof BI.UpgradeLicenseCompletePurchaseRequest + * RouterRotationInfo status. + * @member {Router.RouterRotationStatus} status + * @memberof Router.RouterRotationInfo * @instance */ - UpgradeLicenseCompletePurchaseRequest.prototype.productType = 0; + RouterRotationInfo.prototype.status = 0; /** - * UpgradeLicenseCompletePurchaseRequest quantity. - * @member {number} quantity - * @memberof BI.UpgradeLicenseCompletePurchaseRequest + * RouterRotationInfo configurationUid. + * @member {Uint8Array} configurationUid + * @memberof Router.RouterRotationInfo * @instance */ - UpgradeLicenseCompletePurchaseRequest.prototype.quantity = 0; + RouterRotationInfo.prototype.configurationUid = $util.newBuffer([]); /** - * UpgradeLicenseCompletePurchaseRequest quotePurchase. - * @member {BI.IQuotePurchase|null|undefined} quotePurchase - * @memberof BI.UpgradeLicenseCompletePurchaseRequest + * RouterRotationInfo resourceUid. + * @member {Uint8Array} resourceUid + * @memberof Router.RouterRotationInfo * @instance */ - UpgradeLicenseCompletePurchaseRequest.prototype.quotePurchase = null; + RouterRotationInfo.prototype.resourceUid = $util.newBuffer([]); /** - * UpgradeLicenseCompletePurchaseRequest tier. - * @member {number} tier - * @memberof BI.UpgradeLicenseCompletePurchaseRequest + * RouterRotationInfo nodeId. + * @member {number|Long} nodeId + * @memberof Router.RouterRotationInfo * @instance */ - UpgradeLicenseCompletePurchaseRequest.prototype.tier = 0; + RouterRotationInfo.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new UpgradeLicenseCompletePurchaseRequest instance using the specified properties. + * RouterRotationInfo controllerUid. + * @member {Uint8Array} controllerUid + * @memberof Router.RouterRotationInfo + * @instance + */ + RouterRotationInfo.prototype.controllerUid = $util.newBuffer([]); + + /** + * RouterRotationInfo controllerName. + * @member {string} controllerName + * @memberof Router.RouterRotationInfo + * @instance + */ + RouterRotationInfo.prototype.controllerName = ""; + + /** + * RouterRotationInfo scriptName. + * @member {string} scriptName + * @memberof Router.RouterRotationInfo + * @instance + */ + RouterRotationInfo.prototype.scriptName = ""; + + /** + * RouterRotationInfo pwdComplexity. + * @member {string} pwdComplexity + * @memberof Router.RouterRotationInfo + * @instance + */ + RouterRotationInfo.prototype.pwdComplexity = ""; + + /** + * RouterRotationInfo disabled. + * @member {boolean} disabled + * @memberof Router.RouterRotationInfo + * @instance + */ + RouterRotationInfo.prototype.disabled = false; + + /** + * Creates a new RouterRotationInfo instance using the specified properties. * @function create - * @memberof BI.UpgradeLicenseCompletePurchaseRequest + * @memberof Router.RouterRotationInfo * @static - * @param {BI.IUpgradeLicenseCompletePurchaseRequest=} [properties] Properties to set - * @returns {BI.UpgradeLicenseCompletePurchaseRequest} UpgradeLicenseCompletePurchaseRequest instance + * @param {Router.IRouterRotationInfo=} [properties] Properties to set + * @returns {Router.RouterRotationInfo} RouterRotationInfo instance */ - UpgradeLicenseCompletePurchaseRequest.create = function create(properties) { - return new UpgradeLicenseCompletePurchaseRequest(properties); + RouterRotationInfo.create = function create(properties) { + return new RouterRotationInfo(properties); }; /** - * Encodes the specified UpgradeLicenseCompletePurchaseRequest message. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseRequest.verify|verify} messages. + * Encodes the specified RouterRotationInfo message. Does not implicitly {@link Router.RouterRotationInfo.verify|verify} messages. * @function encode - * @memberof BI.UpgradeLicenseCompletePurchaseRequest + * @memberof Router.RouterRotationInfo * @static - * @param {BI.IUpgradeLicenseCompletePurchaseRequest} message UpgradeLicenseCompletePurchaseRequest message or plain object to encode + * @param {Router.IRouterRotationInfo} message RouterRotationInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeLicenseCompletePurchaseRequest.encode = function encode(message, writer) { + RouterRotationInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.productType != null && Object.hasOwnProperty.call(message, "productType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.productType); - if (message.quantity != null && Object.hasOwnProperty.call(message, "quantity")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.quantity); - if (message.quotePurchase != null && Object.hasOwnProperty.call(message, "quotePurchase")) - $root.BI.QuotePurchase.encode(message.quotePurchase, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.tier != null && Object.hasOwnProperty.call(message, "tier")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.tier); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status); + if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.configurationUid); + if (message.resourceUid != null && Object.hasOwnProperty.call(message, "resourceUid")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.resourceUid); + if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.nodeId); + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.controllerUid); + if (message.controllerName != null && Object.hasOwnProperty.call(message, "controllerName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.controllerName); + if (message.scriptName != null && Object.hasOwnProperty.call(message, "scriptName")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.scriptName); + if (message.pwdComplexity != null && Object.hasOwnProperty.call(message, "pwdComplexity")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.pwdComplexity); + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.disabled); return writer; }; /** - * Encodes the specified UpgradeLicenseCompletePurchaseRequest message, length delimited. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseRequest.verify|verify} messages. + * Encodes the specified RouterRotationInfo message, length delimited. Does not implicitly {@link Router.RouterRotationInfo.verify|verify} messages. * @function encodeDelimited - * @memberof BI.UpgradeLicenseCompletePurchaseRequest + * @memberof Router.RouterRotationInfo * @static - * @param {BI.IUpgradeLicenseCompletePurchaseRequest} message UpgradeLicenseCompletePurchaseRequest message or plain object to encode + * @param {Router.IRouterRotationInfo} message RouterRotationInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeLicenseCompletePurchaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + RouterRotationInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpgradeLicenseCompletePurchaseRequest message from the specified reader or buffer. + * Decodes a RouterRotationInfo message from the specified reader or buffer. * @function decode - * @memberof BI.UpgradeLicenseCompletePurchaseRequest + * @memberof Router.RouterRotationInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.UpgradeLicenseCompletePurchaseRequest} UpgradeLicenseCompletePurchaseRequest + * @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 */ - UpgradeLicenseCompletePurchaseRequest.decode = function decode(reader, length) { + RouterRotationInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseCompletePurchaseRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterRotationInfo(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.productType = reader.int32(); + message.status = reader.int32(); break; } case 2: { - message.quantity = reader.int32(); + message.configurationUid = reader.bytes(); break; } case 3: { - message.quotePurchase = $root.BI.QuotePurchase.decode(reader, reader.uint32()); + message.resourceUid = reader.bytes(); break; } case 4: { - message.tier = reader.int32(); + message.nodeId = reader.int64(); + break; + } + case 5: { + message.controllerUid = reader.bytes(); + break; + } + case 6: { + message.controllerName = reader.string(); + break; + } + case 7: { + message.scriptName = reader.string(); + break; + } + case 8: { + message.pwdComplexity = reader.string(); + break; + } + case 9: { + message.disabled = reader.bool(); break; } default: @@ -242024,219 +274685,268 @@ export const BI = $root.BI = (() => { }; /** - * Decodes an UpgradeLicenseCompletePurchaseRequest message from the specified reader or buffer, length delimited. + * Decodes a RouterRotationInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.UpgradeLicenseCompletePurchaseRequest + * @memberof Router.RouterRotationInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.UpgradeLicenseCompletePurchaseRequest} UpgradeLicenseCompletePurchaseRequest + * @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 */ - UpgradeLicenseCompletePurchaseRequest.decodeDelimited = function decodeDelimited(reader) { + RouterRotationInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpgradeLicenseCompletePurchaseRequest message. + * Verifies a RouterRotationInfo message. * @function verify - * @memberof BI.UpgradeLicenseCompletePurchaseRequest + * @memberof Router.RouterRotationInfo * @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) { + RouterRotationInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.productType != null && message.hasOwnProperty("productType")) - switch (message.productType) { + if (message.status != null && message.hasOwnProperty("status")) + switch (message.status) { default: - return "productType: enum value expected"; + 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: 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); - if (error) - return "quotePurchase." + error; - } - if (message.tier != null && message.hasOwnProperty("tier")) - if (!$util.isInteger(message.tier)) - return "tier: integer 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.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 an UpgradeLicenseCompletePurchaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RouterRotationInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.UpgradeLicenseCompletePurchaseRequest + * @memberof Router.RouterRotationInfo * @static * @param {Object.} object Plain object - * @returns {BI.UpgradeLicenseCompletePurchaseRequest} UpgradeLicenseCompletePurchaseRequest + * @returns {Router.RouterRotationInfo} RouterRotationInfo */ - UpgradeLicenseCompletePurchaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.UpgradeLicenseCompletePurchaseRequest) + RouterRotationInfo.fromObject = function fromObject(object) { + if (object instanceof $root.Router.RouterRotationInfo) return object; - let message = new $root.BI.UpgradeLicenseCompletePurchaseRequest(); - switch (object.productType) { + let message = new $root.Router.RouterRotationInfo(); + switch (object.status) { default: - if (typeof object.productType === "number") { - message.productType = object.productType; + if (typeof object.status === "number") { + message.status = object.status; break; } break; - case "upgradeToEnterprise": + case "RRS_ONLINE": case 0: - message.productType = 0; + message.status = 0; break; - case "addUsers": + case "RRS_NO_ROTATION": case 1: - message.productType = 1; + message.status = 1; break; - case "addStorage": + case "RRS_NO_CONTROLLER": case 2: - message.productType = 2; + message.status = 2; break; - case "addAudit": + case "RRS_CONTROLLER_DOWN": case 3: - message.productType = 3; - break; - case "addBreachWatch": - case 4: - message.productType = 4; - break; - case "addCompliance": - case 5: - message.productType = 5; - break; - case "addChat": - case 6: - message.productType = 6; - break; - case "addPAM": - case 7: - message.productType = 7; - break; - case "addSilverSupport": - case 8: - message.productType = 8; - break; - case "addPlatinumSupport": - case 9: - message.productType = 9; - break; - case "addKEPM": - case 10: - message.productType = 10; + message.status = 3; break; } - if (object.quantity != null) - message.quantity = object.quantity | 0; - if (object.quotePurchase != null) { - if (typeof object.quotePurchase !== "object") - throw TypeError(".BI.UpgradeLicenseCompletePurchaseRequest.quotePurchase: object expected"); - message.quotePurchase = $root.BI.QuotePurchase.fromObject(object.quotePurchase); - } - if (object.tier != null) - message.tier = object.tier | 0; + if (object.configurationUid != null) + if (typeof object.configurationUid === "string") + $util.base64.decode(object.configurationUid, message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid)), 0); + else if (object.configurationUid.length >= 0) + message.configurationUid = object.configurationUid; + if (object.resourceUid != null) + if (typeof object.resourceUid === "string") + $util.base64.decode(object.resourceUid, message.resourceUid = $util.newBuffer($util.base64.length(object.resourceUid)), 0); + else if (object.resourceUid.length >= 0) + message.resourceUid = object.resourceUid; + if (object.nodeId != null) + if ($util.Long) + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === "string") + message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === "number") + message.nodeId = object.nodeId; + else if (typeof object.nodeId === "object") + message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); + if (object.controllerUid != null) + if (typeof object.controllerUid === "string") + $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); + else if (object.controllerUid.length >= 0) + message.controllerUid = object.controllerUid; + if (object.controllerName != null) + message.controllerName = String(object.controllerName); + if (object.scriptName != null) + message.scriptName = String(object.scriptName); + if (object.pwdComplexity != null) + message.pwdComplexity = String(object.pwdComplexity); + if (object.disabled != null) + message.disabled = Boolean(object.disabled); return message; }; /** - * Creates a plain object from an UpgradeLicenseCompletePurchaseRequest message. Also converts values to other types if specified. + * Creates a plain object from a RouterRotationInfo message. Also converts values to other types if specified. * @function toObject - * @memberof BI.UpgradeLicenseCompletePurchaseRequest + * @memberof Router.RouterRotationInfo * @static - * @param {BI.UpgradeLicenseCompletePurchaseRequest} message UpgradeLicenseCompletePurchaseRequest + * @param {Router.RouterRotationInfo} message RouterRotationInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpgradeLicenseCompletePurchaseRequest.toObject = function toObject(message, options) { + RouterRotationInfo.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.productType = options.enums === String ? "upgradeToEnterprise" : 0; - object.quantity = 0; - object.quotePurchase = null; - object.tier = 0; + object.status = options.enums === String ? "RRS_ONLINE" : 0; + if (options.bytes === String) + object.configurationUid = ""; + else { + object.configurationUid = []; + if (options.bytes !== Array) + object.configurationUid = $util.newBuffer(object.configurationUid); + } + if (options.bytes === String) + object.resourceUid = ""; + else { + object.resourceUid = []; + if (options.bytes !== Array) + object.resourceUid = $util.newBuffer(object.resourceUid); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.nodeId = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.controllerUid = ""; + else { + object.controllerUid = []; + if (options.bytes !== Array) + object.controllerUid = $util.newBuffer(object.controllerUid); + } + object.controllerName = ""; + object.scriptName = ""; + object.pwdComplexity = ""; + object.disabled = false; } - if (message.productType != null && message.hasOwnProperty("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")) - object.quantity = message.quantity; - if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) - object.quotePurchase = $root.BI.QuotePurchase.toObject(message.quotePurchase, options); - if (message.tier != null && message.hasOwnProperty("tier")) - object.tier = message.tier; + if (message.status != null && message.hasOwnProperty("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")) + 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")) + object.resourceUid = options.bytes === String ? $util.base64.encode(message.resourceUid, 0, message.resourceUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.resourceUid) : message.resourceUid; + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (typeof 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")) + 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")) + object.controllerName = message.controllerName; + if (message.scriptName != null && message.hasOwnProperty("scriptName")) + object.scriptName = message.scriptName; + if (message.pwdComplexity != null && message.hasOwnProperty("pwdComplexity")) + object.pwdComplexity = message.pwdComplexity; + if (message.disabled != null && message.hasOwnProperty("disabled")) + object.disabled = message.disabled; return object; }; /** - * Converts this UpgradeLicenseCompletePurchaseRequest to JSON. + * Converts this RouterRotationInfo to JSON. * @function toJSON - * @memberof BI.UpgradeLicenseCompletePurchaseRequest + * @memberof Router.RouterRotationInfo * @instance * @returns {Object.} JSON object */ - UpgradeLicenseCompletePurchaseRequest.prototype.toJSON = function toJSON() { + RouterRotationInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpgradeLicenseCompletePurchaseRequest + * Gets the default type url for RouterRotationInfo * @function getTypeUrl - * @memberof BI.UpgradeLicenseCompletePurchaseRequest + * @memberof Router.RouterRotationInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpgradeLicenseCompletePurchaseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RouterRotationInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.UpgradeLicenseCompletePurchaseRequest"; + return typeUrlPrefix + "/Router.RouterRotationInfo"; }; - return UpgradeLicenseCompletePurchaseRequest; + return RouterRotationInfo; })(); - BI.UpgradeLicenseCompletePurchaseResponse = (function() { + Router.RouterRecordRotationRequest = (function() { /** - * Properties of an UpgradeLicenseCompletePurchaseResponse. - * @memberof BI - * @interface IUpgradeLicenseCompletePurchaseResponse - * @property {boolean|null} [success] UpgradeLicenseCompletePurchaseResponse success - * @property {string|null} [invoiceNumber] UpgradeLicenseCompletePurchaseResponse invoiceNumber - * @property {BI.IError|null} [error] UpgradeLicenseCompletePurchaseResponse error - * @property {BI.IQuotePurchase|null} [quotePurchase] UpgradeLicenseCompletePurchaseResponse quotePurchase + * Properties of a RouterRecordRotationRequest. + * @memberof Router + * @interface IRouterRecordRotationRequest + * @property {Uint8Array|null} [recordUid] RouterRecordRotationRequest recordUid + * @property {number|Long|null} [revision] RouterRecordRotationRequest revision + * @property {Uint8Array|null} [configurationUid] RouterRecordRotationRequest configurationUid + * @property {Uint8Array|null} [resourceUid] RouterRecordRotationRequest resourceUid + * @property {string|null} [schedule] RouterRecordRotationRequest schedule + * @property {number|Long|null} [enterpriseUserId] RouterRecordRotationRequest enterpriseUserId + * @property {Uint8Array|null} [pwdComplexity] RouterRecordRotationRequest pwdComplexity + * @property {boolean|null} [disabled] RouterRecordRotationRequest disabled + * @property {string|null} [remoteAddress] RouterRecordRotationRequest remoteAddress + * @property {number|null} [clientVersionId] RouterRecordRotationRequest clientVersionId + * @property {boolean|null} [noop] RouterRecordRotationRequest noop + * @property {Uint8Array|null} [saasConfiguration] RouterRecordRotationRequest saasConfiguration */ /** - * Constructs a new UpgradeLicenseCompletePurchaseResponse. - * @memberof BI - * @classdesc Represents an UpgradeLicenseCompletePurchaseResponse. - * @implements IUpgradeLicenseCompletePurchaseResponse + * Constructs a new RouterRecordRotationRequest. + * @memberof Router + * @classdesc Represents a RouterRecordRotationRequest. + * @implements IRouterRecordRotationRequest * @constructor - * @param {BI.IUpgradeLicenseCompletePurchaseResponse=} [properties] Properties to set + * @param {Router.IRouterRecordRotationRequest=} [properties] Properties to set */ - function UpgradeLicenseCompletePurchaseResponse(properties) { + function RouterRecordRotationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -242244,117 +274954,243 @@ export const BI = $root.BI = (() => { } /** - * UpgradeLicenseCompletePurchaseResponse success. - * @member {boolean} success - * @memberof BI.UpgradeLicenseCompletePurchaseResponse + * RouterRecordRotationRequest recordUid. + * @member {Uint8Array} recordUid + * @memberof Router.RouterRecordRotationRequest * @instance */ - UpgradeLicenseCompletePurchaseResponse.prototype.success = false; + RouterRecordRotationRequest.prototype.recordUid = $util.newBuffer([]); /** - * UpgradeLicenseCompletePurchaseResponse invoiceNumber. - * @member {string} invoiceNumber - * @memberof BI.UpgradeLicenseCompletePurchaseResponse + * RouterRecordRotationRequest revision. + * @member {number|Long} revision + * @memberof Router.RouterRecordRotationRequest * @instance */ - UpgradeLicenseCompletePurchaseResponse.prototype.invoiceNumber = ""; + RouterRecordRotationRequest.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * UpgradeLicenseCompletePurchaseResponse error. - * @member {BI.IError|null|undefined} error - * @memberof BI.UpgradeLicenseCompletePurchaseResponse + * RouterRecordRotationRequest configurationUid. + * @member {Uint8Array} configurationUid + * @memberof Router.RouterRecordRotationRequest * @instance */ - UpgradeLicenseCompletePurchaseResponse.prototype.error = null; + RouterRecordRotationRequest.prototype.configurationUid = $util.newBuffer([]); /** - * UpgradeLicenseCompletePurchaseResponse quotePurchase. - * @member {BI.IQuotePurchase|null|undefined} quotePurchase - * @memberof BI.UpgradeLicenseCompletePurchaseResponse + * RouterRecordRotationRequest resourceUid. + * @member {Uint8Array} resourceUid + * @memberof Router.RouterRecordRotationRequest * @instance */ - UpgradeLicenseCompletePurchaseResponse.prototype.quotePurchase = null; + RouterRecordRotationRequest.prototype.resourceUid = $util.newBuffer([]); /** - * Creates a new UpgradeLicenseCompletePurchaseResponse instance using the specified properties. + * RouterRecordRotationRequest schedule. + * @member {string} schedule + * @memberof Router.RouterRecordRotationRequest + * @instance + */ + RouterRecordRotationRequest.prototype.schedule = ""; + + /** + * RouterRecordRotationRequest enterpriseUserId. + * @member {number|Long} enterpriseUserId + * @memberof Router.RouterRecordRotationRequest + * @instance + */ + RouterRecordRotationRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * RouterRecordRotationRequest pwdComplexity. + * @member {Uint8Array} pwdComplexity + * @memberof Router.RouterRecordRotationRequest + * @instance + */ + RouterRecordRotationRequest.prototype.pwdComplexity = $util.newBuffer([]); + + /** + * RouterRecordRotationRequest disabled. + * @member {boolean} disabled + * @memberof Router.RouterRecordRotationRequest + * @instance + */ + RouterRecordRotationRequest.prototype.disabled = false; + + /** + * RouterRecordRotationRequest remoteAddress. + * @member {string} remoteAddress + * @memberof Router.RouterRecordRotationRequest + * @instance + */ + RouterRecordRotationRequest.prototype.remoteAddress = ""; + + /** + * RouterRecordRotationRequest clientVersionId. + * @member {number} clientVersionId + * @memberof Router.RouterRecordRotationRequest + * @instance + */ + RouterRecordRotationRequest.prototype.clientVersionId = 0; + + /** + * RouterRecordRotationRequest noop. + * @member {boolean} noop + * @memberof Router.RouterRecordRotationRequest + * @instance + */ + RouterRecordRotationRequest.prototype.noop = false; + + /** + * RouterRecordRotationRequest saasConfiguration. + * @member {Uint8Array|null|undefined} saasConfiguration + * @memberof Router.RouterRecordRotationRequest + * @instance + */ + RouterRecordRotationRequest.prototype.saasConfiguration = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * RouterRecordRotationRequest _saasConfiguration. + * @member {"saasConfiguration"|undefined} _saasConfiguration + * @memberof Router.RouterRecordRotationRequest + * @instance + */ + Object.defineProperty(RouterRecordRotationRequest.prototype, "_saasConfiguration", { + get: $util.oneOfGetter($oneOfFields = ["saasConfiguration"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new RouterRecordRotationRequest instance using the specified properties. * @function create - * @memberof BI.UpgradeLicenseCompletePurchaseResponse + * @memberof Router.RouterRecordRotationRequest * @static - * @param {BI.IUpgradeLicenseCompletePurchaseResponse=} [properties] Properties to set - * @returns {BI.UpgradeLicenseCompletePurchaseResponse} UpgradeLicenseCompletePurchaseResponse instance + * @param {Router.IRouterRecordRotationRequest=} [properties] Properties to set + * @returns {Router.RouterRecordRotationRequest} RouterRecordRotationRequest instance */ - UpgradeLicenseCompletePurchaseResponse.create = function create(properties) { - return new UpgradeLicenseCompletePurchaseResponse(properties); + RouterRecordRotationRequest.create = function create(properties) { + return new RouterRecordRotationRequest(properties); }; /** - * Encodes the specified UpgradeLicenseCompletePurchaseResponse message. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseResponse.verify|verify} messages. + * Encodes the specified RouterRecordRotationRequest message. Does not implicitly {@link Router.RouterRecordRotationRequest.verify|verify} messages. * @function encode - * @memberof BI.UpgradeLicenseCompletePurchaseResponse + * @memberof Router.RouterRecordRotationRequest * @static - * @param {BI.IUpgradeLicenseCompletePurchaseResponse} message UpgradeLicenseCompletePurchaseResponse message or plain object to encode + * @param {Router.IRouterRecordRotationRequest} message RouterRecordRotationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeLicenseCompletePurchaseResponse.encode = function encode(message, writer) { + RouterRecordRotationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); - if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.invoiceNumber); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.BI.Error.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.quotePurchase != null && Object.hasOwnProperty.call(message, "quotePurchase")) - $root.BI.QuotePurchase.encode(message.quotePurchase, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); + if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.configurationUid); + if (message.resourceUid != null && Object.hasOwnProperty.call(message, "resourceUid")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.resourceUid); + if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.schedule); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.enterpriseUserId); + if (message.pwdComplexity != null && Object.hasOwnProperty.call(message, "pwdComplexity")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.pwdComplexity); + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.disabled); + if (message.remoteAddress != null && Object.hasOwnProperty.call(message, "remoteAddress")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.remoteAddress); + if (message.clientVersionId != null && Object.hasOwnProperty.call(message, "clientVersionId")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.clientVersionId); + if (message.noop != null && Object.hasOwnProperty.call(message, "noop")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.noop); + if (message.saasConfiguration != null && Object.hasOwnProperty.call(message, "saasConfiguration")) + writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.saasConfiguration); return writer; }; /** - * Encodes the specified UpgradeLicenseCompletePurchaseResponse message, length delimited. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseResponse.verify|verify} messages. + * Encodes the specified RouterRecordRotationRequest message, length delimited. Does not implicitly {@link Router.RouterRecordRotationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof BI.UpgradeLicenseCompletePurchaseResponse + * @memberof Router.RouterRecordRotationRequest * @static - * @param {BI.IUpgradeLicenseCompletePurchaseResponse} message UpgradeLicenseCompletePurchaseResponse message or plain object to encode + * @param {Router.IRouterRecordRotationRequest} message RouterRecordRotationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeLicenseCompletePurchaseResponse.encodeDelimited = function encodeDelimited(message, writer) { + RouterRecordRotationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpgradeLicenseCompletePurchaseResponse message from the specified reader or buffer. + * Decodes a RouterRecordRotationRequest message from the specified reader or buffer. * @function decode - * @memberof BI.UpgradeLicenseCompletePurchaseResponse + * @memberof Router.RouterRecordRotationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.UpgradeLicenseCompletePurchaseResponse} UpgradeLicenseCompletePurchaseResponse + * @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 */ - UpgradeLicenseCompletePurchaseResponse.decode = function decode(reader, length) { + RouterRecordRotationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseCompletePurchaseResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterRecordRotationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.success = reader.bool(); + message.recordUid = reader.bytes(); break; } case 2: { - message.invoiceNumber = reader.string(); + message.revision = reader.int64(); break; } case 3: { - message.error = $root.BI.Error.decode(reader, reader.uint32()); + message.configurationUid = reader.bytes(); break; } case 4: { - message.quotePurchase = $root.BI.QuotePurchase.decode(reader, reader.uint32()); + message.resourceUid = reader.bytes(); + break; + } + case 5: { + message.schedule = reader.string(); + break; + } + case 6: { + message.enterpriseUserId = reader.int64(); + break; + } + case 7: { + message.pwdComplexity = reader.bytes(); + break; + } + case 8: { + message.disabled = reader.bool(); + break; + } + case 9: { + message.remoteAddress = reader.string(); + break; + } + case 10: { + message.clientVersionId = reader.int32(); + break; + } + case 11: { + message.noop = reader.bool(); + break; + } + case 12: { + message.saasConfiguration = reader.bytes(); break; } default: @@ -242366,158 +275202,284 @@ export const BI = $root.BI = (() => { }; /** - * Decodes an UpgradeLicenseCompletePurchaseResponse message from the specified reader or buffer, length delimited. + * Decodes a RouterRecordRotationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.UpgradeLicenseCompletePurchaseResponse + * @memberof Router.RouterRecordRotationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.UpgradeLicenseCompletePurchaseResponse} UpgradeLicenseCompletePurchaseResponse + * @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 */ - UpgradeLicenseCompletePurchaseResponse.decodeDelimited = function decodeDelimited(reader) { + RouterRecordRotationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpgradeLicenseCompletePurchaseResponse message. + * Verifies a RouterRecordRotationRequest message. * @function verify - * @memberof BI.UpgradeLicenseCompletePurchaseResponse + * @memberof Router.RouterRecordRotationRequest * @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) { + RouterRecordRotationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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); - if (error) - return "error." + error; - } - if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) { - let error = $root.BI.QuotePurchase.verify(message.quotePurchase); - if (error) - return "quotePurchase." + error; + 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"; } return null; }; /** - * Creates an UpgradeLicenseCompletePurchaseResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RouterRecordRotationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.UpgradeLicenseCompletePurchaseResponse + * @memberof Router.RouterRecordRotationRequest * @static * @param {Object.} object Plain object - * @returns {BI.UpgradeLicenseCompletePurchaseResponse} UpgradeLicenseCompletePurchaseResponse + * @returns {Router.RouterRecordRotationRequest} RouterRecordRotationRequest */ - UpgradeLicenseCompletePurchaseResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.UpgradeLicenseCompletePurchaseResponse) + RouterRecordRotationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Router.RouterRecordRotationRequest) return object; - let message = new $root.BI.UpgradeLicenseCompletePurchaseResponse(); - if (object.success != null) - message.success = Boolean(object.success); - if (object.invoiceNumber != null) - message.invoiceNumber = String(object.invoiceNumber); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".BI.UpgradeLicenseCompletePurchaseResponse.error: object expected"); - message.error = $root.BI.Error.fromObject(object.error); - } - if (object.quotePurchase != null) { - if (typeof object.quotePurchase !== "object") - throw TypeError(".BI.UpgradeLicenseCompletePurchaseResponse.quotePurchase: object expected"); - message.quotePurchase = $root.BI.QuotePurchase.fromObject(object.quotePurchase); - } + let message = new $root.Router.RouterRecordRotationRequest(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if (object.configurationUid != null) + if (typeof object.configurationUid === "string") + $util.base64.decode(object.configurationUid, message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid)), 0); + else if (object.configurationUid.length >= 0) + message.configurationUid = object.configurationUid; + if (object.resourceUid != null) + if (typeof object.resourceUid === "string") + $util.base64.decode(object.resourceUid, message.resourceUid = $util.newBuffer($util.base64.length(object.resourceUid)), 0); + else if (object.resourceUid.length >= 0) + message.resourceUid = object.resourceUid; + if (object.schedule != null) + message.schedule = String(object.schedule); + if (object.enterpriseUserId != null) + if ($util.Long) + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; + else if (typeof object.enterpriseUserId === "string") + message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); + else if (typeof object.enterpriseUserId === "number") + message.enterpriseUserId = object.enterpriseUserId; + else if (typeof object.enterpriseUserId === "object") + message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + if (object.pwdComplexity != null) + if (typeof object.pwdComplexity === "string") + $util.base64.decode(object.pwdComplexity, message.pwdComplexity = $util.newBuffer($util.base64.length(object.pwdComplexity)), 0); + else if (object.pwdComplexity.length >= 0) + message.pwdComplexity = object.pwdComplexity; + if (object.disabled != null) + message.disabled = Boolean(object.disabled); + if (object.remoteAddress != null) + message.remoteAddress = String(object.remoteAddress); + if (object.clientVersionId != null) + message.clientVersionId = object.clientVersionId | 0; + if (object.noop != null) + message.noop = Boolean(object.noop); + if (object.saasConfiguration != null) + if (typeof object.saasConfiguration === "string") + $util.base64.decode(object.saasConfiguration, message.saasConfiguration = $util.newBuffer($util.base64.length(object.saasConfiguration)), 0); + else if (object.saasConfiguration.length >= 0) + message.saasConfiguration = object.saasConfiguration; return message; }; /** - * Creates a plain object from an UpgradeLicenseCompletePurchaseResponse message. Also converts values to other types if specified. + * Creates a plain object from a RouterRecordRotationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof BI.UpgradeLicenseCompletePurchaseResponse + * @memberof Router.RouterRecordRotationRequest * @static - * @param {BI.UpgradeLicenseCompletePurchaseResponse} message UpgradeLicenseCompletePurchaseResponse + * @param {Router.RouterRecordRotationRequest} message RouterRecordRotationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpgradeLicenseCompletePurchaseResponse.toObject = function toObject(message, options) { + RouterRecordRotationRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.success = false; - object.invoiceNumber = ""; - object.error = null; - object.quotePurchase = null; + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.configurationUid = ""; + else { + object.configurationUid = []; + if (options.bytes !== Array) + object.configurationUid = $util.newBuffer(object.configurationUid); + } + if (options.bytes === String) + object.resourceUid = ""; + else { + object.resourceUid = []; + if (options.bytes !== Array) + object.resourceUid = $util.newBuffer(object.resourceUid); + } + object.schedule = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.enterpriseUserId = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.pwdComplexity = ""; + else { + object.pwdComplexity = []; + if (options.bytes !== Array) + object.pwdComplexity = $util.newBuffer(object.pwdComplexity); + } + object.disabled = false; + object.remoteAddress = ""; + object.clientVersionId = 0; + object.noop = false; + } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof 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")) + 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")) + 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")) + object.schedule = message.schedule; + if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + 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")) + 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")) + object.disabled = message.disabled; + if (message.remoteAddress != null && message.hasOwnProperty("remoteAddress")) + object.remoteAddress = message.remoteAddress; + if (message.clientVersionId != null && message.hasOwnProperty("clientVersionId")) + object.clientVersionId = message.clientVersionId; + if (message.noop != null && message.hasOwnProperty("noop")) + object.noop = message.noop; + if (message.saasConfiguration != null && message.hasOwnProperty("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.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) - object.invoiceNumber = message.invoiceNumber; - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.BI.Error.toObject(message.error, options); - if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) - object.quotePurchase = $root.BI.QuotePurchase.toObject(message.quotePurchase, options); return object; }; /** - * Converts this UpgradeLicenseCompletePurchaseResponse to JSON. + * Converts this RouterRecordRotationRequest to JSON. * @function toJSON - * @memberof BI.UpgradeLicenseCompletePurchaseResponse + * @memberof Router.RouterRecordRotationRequest * @instance * @returns {Object.} JSON object */ - UpgradeLicenseCompletePurchaseResponse.prototype.toJSON = function toJSON() { + RouterRecordRotationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpgradeLicenseCompletePurchaseResponse + * Gets the default type url for RouterRecordRotationRequest * @function getTypeUrl - * @memberof BI.UpgradeLicenseCompletePurchaseResponse + * @memberof Router.RouterRecordRotationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpgradeLicenseCompletePurchaseResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RouterRecordRotationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.UpgradeLicenseCompletePurchaseResponse"; + return typeUrlPrefix + "/Router.RouterRecordRotationRequest"; }; - return UpgradeLicenseCompletePurchaseResponse; + return RouterRecordRotationRequest; })(); - BI.EnterpriseBasePlan = (function() { + Router.UserRecordAccessRequest = (function() { /** - * Properties of an EnterpriseBasePlan. - * @memberof BI - * @interface IEnterpriseBasePlan - * @property {BI.EnterpriseBasePlan.EnterpriseBasePlanVersion|null} [baseplanVersion] EnterpriseBasePlan baseplanVersion - * @property {BI.ICost|null} [cost] EnterpriseBasePlan cost + * Properties of a UserRecordAccessRequest. + * @memberof Router + * @interface IUserRecordAccessRequest + * @property {number|null} [userId] UserRecordAccessRequest userId + * @property {Uint8Array|null} [recordUid] UserRecordAccessRequest recordUid */ /** - * Constructs a new EnterpriseBasePlan. - * @memberof BI - * @classdesc Represents an EnterpriseBasePlan. - * @implements IEnterpriseBasePlan + * Constructs a new UserRecordAccessRequest. + * @memberof Router + * @classdesc Represents a UserRecordAccessRequest. + * @implements IUserRecordAccessRequest * @constructor - * @param {BI.IEnterpriseBasePlan=} [properties] Properties to set + * @param {Router.IUserRecordAccessRequest=} [properties] Properties to set */ - function EnterpriseBasePlan(properties) { + function UserRecordAccessRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -242525,89 +275487,89 @@ export const BI = $root.BI = (() => { } /** - * EnterpriseBasePlan baseplanVersion. - * @member {BI.EnterpriseBasePlan.EnterpriseBasePlanVersion} baseplanVersion - * @memberof BI.EnterpriseBasePlan + * UserRecordAccessRequest userId. + * @member {number} userId + * @memberof Router.UserRecordAccessRequest * @instance */ - EnterpriseBasePlan.prototype.baseplanVersion = 0; + UserRecordAccessRequest.prototype.userId = 0; /** - * EnterpriseBasePlan cost. - * @member {BI.ICost|null|undefined} cost - * @memberof BI.EnterpriseBasePlan + * UserRecordAccessRequest recordUid. + * @member {Uint8Array} recordUid + * @memberof Router.UserRecordAccessRequest * @instance */ - EnterpriseBasePlan.prototype.cost = null; + UserRecordAccessRequest.prototype.recordUid = $util.newBuffer([]); /** - * Creates a new EnterpriseBasePlan instance using the specified properties. + * Creates a new UserRecordAccessRequest instance using the specified properties. * @function create - * @memberof BI.EnterpriseBasePlan + * @memberof Router.UserRecordAccessRequest * @static - * @param {BI.IEnterpriseBasePlan=} [properties] Properties to set - * @returns {BI.EnterpriseBasePlan} EnterpriseBasePlan instance + * @param {Router.IUserRecordAccessRequest=} [properties] Properties to set + * @returns {Router.UserRecordAccessRequest} UserRecordAccessRequest instance */ - EnterpriseBasePlan.create = function create(properties) { - return new EnterpriseBasePlan(properties); + UserRecordAccessRequest.create = function create(properties) { + return new UserRecordAccessRequest(properties); }; /** - * Encodes the specified EnterpriseBasePlan message. Does not implicitly {@link BI.EnterpriseBasePlan.verify|verify} messages. + * Encodes the specified UserRecordAccessRequest message. Does not implicitly {@link Router.UserRecordAccessRequest.verify|verify} messages. * @function encode - * @memberof BI.EnterpriseBasePlan + * @memberof Router.UserRecordAccessRequest * @static - * @param {BI.IEnterpriseBasePlan} message EnterpriseBasePlan message or plain object to encode + * @param {Router.IUserRecordAccessRequest} message UserRecordAccessRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseBasePlan.encode = function encode(message, writer) { + UserRecordAccessRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.baseplanVersion != null && Object.hasOwnProperty.call(message, "baseplanVersion")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.baseplanVersion); - if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) - $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); return writer; }; /** - * Encodes the specified EnterpriseBasePlan message, length delimited. Does not implicitly {@link BI.EnterpriseBasePlan.verify|verify} messages. + * Encodes the specified UserRecordAccessRequest message, length delimited. Does not implicitly {@link Router.UserRecordAccessRequest.verify|verify} messages. * @function encodeDelimited - * @memberof BI.EnterpriseBasePlan + * @memberof Router.UserRecordAccessRequest * @static - * @param {BI.IEnterpriseBasePlan} message EnterpriseBasePlan message or plain object to encode + * @param {Router.IUserRecordAccessRequest} message UserRecordAccessRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseBasePlan.encodeDelimited = function encodeDelimited(message, writer) { + UserRecordAccessRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnterpriseBasePlan message from the specified reader or buffer. + * Decodes a UserRecordAccessRequest message from the specified reader or buffer. * @function decode - * @memberof BI.EnterpriseBasePlan + * @memberof Router.UserRecordAccessRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.EnterpriseBasePlan} EnterpriseBasePlan + * @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 */ - EnterpriseBasePlan.decode = function decode(reader, length) { + UserRecordAccessRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EnterpriseBasePlan(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.UserRecordAccessRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.baseplanVersion = reader.int32(); + message.userId = reader.int32(); break; } case 2: { - message.cost = $root.BI.Cost.decode(reader, reader.uint32()); + message.recordUid = reader.bytes(); break; } default: @@ -242619,182 +275581,163 @@ export const BI = $root.BI = (() => { }; /** - * Decodes an EnterpriseBasePlan message from the specified reader or buffer, length delimited. + * Decodes a UserRecordAccessRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.EnterpriseBasePlan + * @memberof Router.UserRecordAccessRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.EnterpriseBasePlan} EnterpriseBasePlan + * @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 */ - EnterpriseBasePlan.decodeDelimited = function decodeDelimited(reader) { + UserRecordAccessRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnterpriseBasePlan message. + * Verifies a UserRecordAccessRequest message. * @function verify - * @memberof BI.EnterpriseBasePlan + * @memberof Router.UserRecordAccessRequest * @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) { + UserRecordAccessRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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); - if (error) - return "cost." + error; - } + 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 an EnterpriseBasePlan message from a plain object. Also converts values to their respective internal types. + * Creates a UserRecordAccessRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.EnterpriseBasePlan + * @memberof Router.UserRecordAccessRequest * @static * @param {Object.} object Plain object - * @returns {BI.EnterpriseBasePlan} EnterpriseBasePlan + * @returns {Router.UserRecordAccessRequest} UserRecordAccessRequest */ - EnterpriseBasePlan.fromObject = function fromObject(object) { - if (object instanceof $root.BI.EnterpriseBasePlan) + UserRecordAccessRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Router.UserRecordAccessRequest) return object; - let message = new $root.BI.EnterpriseBasePlan(); - switch (object.baseplanVersion) { - default: - if (typeof object.baseplanVersion === "number") { - message.baseplanVersion = object.baseplanVersion; - break; - } - break; - case "UNKNOWN": - case 0: - message.baseplanVersion = 0; - break; - case "BUSINESS_STARTER": - case 1: - message.baseplanVersion = 1; - break; - case "BUSINESS": - case 2: - message.baseplanVersion = 2; - break; - case "ENTERPRISE": - case 3: - message.baseplanVersion = 3; - break; - } - if (object.cost != null) { - if (typeof object.cost !== "object") - throw TypeError(".BI.EnterpriseBasePlan.cost: object expected"); - message.cost = $root.BI.Cost.fromObject(object.cost); - } + let message = new $root.Router.UserRecordAccessRequest(); + if (object.userId != null) + message.userId = object.userId | 0; + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; return message; }; /** - * Creates a plain object from an EnterpriseBasePlan message. Also converts values to other types if specified. + * Creates a plain object from a UserRecordAccessRequest message. Also converts values to other types if specified. * @function toObject - * @memberof BI.EnterpriseBasePlan + * @memberof Router.UserRecordAccessRequest * @static - * @param {BI.EnterpriseBasePlan} message EnterpriseBasePlan + * @param {Router.UserRecordAccessRequest} message UserRecordAccessRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseBasePlan.toObject = function toObject(message, options) { + UserRecordAccessRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.baseplanVersion = options.enums === String ? "UNKNOWN" : 0; - object.cost = null; + object.userId = 0; + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } } - if (message.baseplanVersion != null && message.hasOwnProperty("baseplanVersion")) - object.baseplanVersion = options.enums === String ? $root.BI.EnterpriseBasePlan.EnterpriseBasePlanVersion[message.baseplanVersion] === undefined ? message.baseplanVersion : $root.BI.EnterpriseBasePlan.EnterpriseBasePlanVersion[message.baseplanVersion] : message.baseplanVersion; - if (message.cost != null && message.hasOwnProperty("cost")) - object.cost = $root.BI.Cost.toObject(message.cost, options); + if (message.userId != null && message.hasOwnProperty("userId")) + object.userId = message.userId; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; return object; }; /** - * Converts this EnterpriseBasePlan to JSON. + * Converts this UserRecordAccessRequest to JSON. * @function toJSON - * @memberof BI.EnterpriseBasePlan + * @memberof Router.UserRecordAccessRequest * @instance * @returns {Object.} JSON object */ - EnterpriseBasePlan.prototype.toJSON = function toJSON() { + UserRecordAccessRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EnterpriseBasePlan + * Gets the default type url for UserRecordAccessRequest * @function getTypeUrl - * @memberof BI.EnterpriseBasePlan + * @memberof Router.UserRecordAccessRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EnterpriseBasePlan.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UserRecordAccessRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.EnterpriseBasePlan"; + return typeUrlPrefix + "/Router.UserRecordAccessRequest"; }; - /** - * EnterpriseBasePlanVersion enum. - * @name BI.EnterpriseBasePlan.EnterpriseBasePlanVersion - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} BUSINESS_STARTER=1 BUSINESS_STARTER value - * @property {number} BUSINESS=2 BUSINESS value - * @property {number} ENTERPRISE=3 ENTERPRISE value - */ - EnterpriseBasePlan.EnterpriseBasePlanVersion = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "BUSINESS_STARTER"] = 1; - values[valuesById[2] = "BUSINESS"] = 2; - values[valuesById[3] = "ENTERPRISE"] = 3; - return values; - })(); + return UserRecordAccessRequest; + })(); - return EnterpriseBasePlan; + /** + * UserRecordAccessLevel enum. + * @name Router.UserRecordAccessLevel + * @enum {number} + * @property {number} RRAL_NONE=0 RRAL_NONE value + * @property {number} RRAL_READ=1 RRAL_READ value + * @property {number} RRAL_SHARE=2 RRAL_SHARE value + * @property {number} RRAL_EDIT=3 RRAL_EDIT value + * @property {number} RRAL_EDIT_AND_SHARE=4 RRAL_EDIT_AND_SHARE value + * @property {number} RRAL_OWNER=5 RRAL_OWNER value + */ + Router.UserRecordAccessLevel = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RRAL_NONE"] = 0; + values[valuesById[1] = "RRAL_READ"] = 1; + values[valuesById[2] = "RRAL_SHARE"] = 2; + values[valuesById[3] = "RRAL_EDIT"] = 3; + values[valuesById[4] = "RRAL_EDIT_AND_SHARE"] = 4; + values[valuesById[5] = "RRAL_OWNER"] = 5; + return values; })(); - BI.SubscriptionEnterprisePricingRequest = (function() { + Router.UserRecordAccessResponse = (function() { /** - * Properties of a SubscriptionEnterprisePricingRequest. - * @memberof BI - * @interface ISubscriptionEnterprisePricingRequest + * Properties of a UserRecordAccessResponse. + * @memberof Router + * @interface IUserRecordAccessResponse + * @property {Uint8Array|null} [recordUid] UserRecordAccessResponse recordUid + * @property {Router.UserRecordAccessLevel|null} [accessLevel] UserRecordAccessResponse accessLevel */ /** - * Constructs a new SubscriptionEnterprisePricingRequest. - * @memberof BI - * @classdesc Represents a SubscriptionEnterprisePricingRequest. - * @implements ISubscriptionEnterprisePricingRequest + * Constructs a new UserRecordAccessResponse. + * @memberof Router + * @classdesc Represents a UserRecordAccessResponse. + * @implements IUserRecordAccessResponse * @constructor - * @param {BI.ISubscriptionEnterprisePricingRequest=} [properties] Properties to set + * @param {Router.IUserRecordAccessResponse=} [properties] Properties to set */ - function SubscriptionEnterprisePricingRequest(properties) { + function UserRecordAccessResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -242802,63 +275745,91 @@ export const BI = $root.BI = (() => { } /** - * Creates a new SubscriptionEnterprisePricingRequest instance using the specified properties. + * UserRecordAccessResponse recordUid. + * @member {Uint8Array} recordUid + * @memberof Router.UserRecordAccessResponse + * @instance + */ + UserRecordAccessResponse.prototype.recordUid = $util.newBuffer([]); + + /** + * UserRecordAccessResponse accessLevel. + * @member {Router.UserRecordAccessLevel} accessLevel + * @memberof Router.UserRecordAccessResponse + * @instance + */ + UserRecordAccessResponse.prototype.accessLevel = 0; + + /** + * Creates a new UserRecordAccessResponse instance using the specified properties. * @function create - * @memberof BI.SubscriptionEnterprisePricingRequest + * @memberof Router.UserRecordAccessResponse * @static - * @param {BI.ISubscriptionEnterprisePricingRequest=} [properties] Properties to set - * @returns {BI.SubscriptionEnterprisePricingRequest} SubscriptionEnterprisePricingRequest instance + * @param {Router.IUserRecordAccessResponse=} [properties] Properties to set + * @returns {Router.UserRecordAccessResponse} UserRecordAccessResponse instance */ - SubscriptionEnterprisePricingRequest.create = function create(properties) { - return new SubscriptionEnterprisePricingRequest(properties); + UserRecordAccessResponse.create = function create(properties) { + return new UserRecordAccessResponse(properties); }; /** - * Encodes the specified SubscriptionEnterprisePricingRequest message. Does not implicitly {@link BI.SubscriptionEnterprisePricingRequest.verify|verify} messages. + * Encodes the specified UserRecordAccessResponse message. Does not implicitly {@link Router.UserRecordAccessResponse.verify|verify} messages. * @function encode - * @memberof BI.SubscriptionEnterprisePricingRequest + * @memberof Router.UserRecordAccessResponse * @static - * @param {BI.ISubscriptionEnterprisePricingRequest} message SubscriptionEnterprisePricingRequest message or plain object to encode + * @param {Router.IUserRecordAccessResponse} message UserRecordAccessResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionEnterprisePricingRequest.encode = function encode(message, writer) { + UserRecordAccessResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.accessLevel != null && Object.hasOwnProperty.call(message, "accessLevel")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.accessLevel); return writer; }; /** - * Encodes the specified SubscriptionEnterprisePricingRequest message, length delimited. Does not implicitly {@link BI.SubscriptionEnterprisePricingRequest.verify|verify} messages. + * Encodes the specified UserRecordAccessResponse message, length delimited. Does not implicitly {@link Router.UserRecordAccessResponse.verify|verify} messages. * @function encodeDelimited - * @memberof BI.SubscriptionEnterprisePricingRequest + * @memberof Router.UserRecordAccessResponse * @static - * @param {BI.ISubscriptionEnterprisePricingRequest} message SubscriptionEnterprisePricingRequest message or plain object to encode + * @param {Router.IUserRecordAccessResponse} message UserRecordAccessResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionEnterprisePricingRequest.encodeDelimited = function encodeDelimited(message, writer) { + UserRecordAccessResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SubscriptionEnterprisePricingRequest message from the specified reader or buffer. + * Decodes a UserRecordAccessResponse message from the specified reader or buffer. * @function decode - * @memberof BI.SubscriptionEnterprisePricingRequest + * @memberof Router.UserRecordAccessResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.SubscriptionEnterprisePricingRequest} SubscriptionEnterprisePricingRequest + * @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 */ - SubscriptionEnterprisePricingRequest.decode = function decode(reader, length) { + UserRecordAccessResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionEnterprisePricingRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.UserRecordAccessResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.accessLevel = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -242868,114 +275839,180 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a SubscriptionEnterprisePricingRequest message from the specified reader or buffer, length delimited. + * Decodes a UserRecordAccessResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.SubscriptionEnterprisePricingRequest + * @memberof Router.UserRecordAccessResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SubscriptionEnterprisePricingRequest} SubscriptionEnterprisePricingRequest + * @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 */ - SubscriptionEnterprisePricingRequest.decodeDelimited = function decodeDelimited(reader) { + UserRecordAccessResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SubscriptionEnterprisePricingRequest message. + * Verifies a UserRecordAccessResponse message. * @function verify - * @memberof BI.SubscriptionEnterprisePricingRequest + * @memberof Router.UserRecordAccessResponse * @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) { + UserRecordAccessResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) + return "recordUid: buffer expected"; + if (message.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; + } return null; }; /** - * Creates a SubscriptionEnterprisePricingRequest message from a plain object. Also converts values to their respective internal types. + * Creates a UserRecordAccessResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.SubscriptionEnterprisePricingRequest + * @memberof Router.UserRecordAccessResponse * @static * @param {Object.} object Plain object - * @returns {BI.SubscriptionEnterprisePricingRequest} SubscriptionEnterprisePricingRequest + * @returns {Router.UserRecordAccessResponse} UserRecordAccessResponse */ - SubscriptionEnterprisePricingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SubscriptionEnterprisePricingRequest) + UserRecordAccessResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Router.UserRecordAccessResponse) return object; - return new $root.BI.SubscriptionEnterprisePricingRequest(); + let message = new $root.Router.UserRecordAccessResponse(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + switch (object.accessLevel) { + default: + if (typeof object.accessLevel === "number") { + message.accessLevel = object.accessLevel; + break; + } + break; + case "RRAL_NONE": + case 0: + message.accessLevel = 0; + break; + case "RRAL_READ": + case 1: + message.accessLevel = 1; + break; + case "RRAL_SHARE": + case 2: + message.accessLevel = 2; + break; + case "RRAL_EDIT": + case 3: + message.accessLevel = 3; + break; + case "RRAL_EDIT_AND_SHARE": + case 4: + message.accessLevel = 4; + break; + case "RRAL_OWNER": + case 5: + message.accessLevel = 5; + break; + } + return message; }; /** - * Creates a plain object from a SubscriptionEnterprisePricingRequest message. Also converts values to other types if specified. + * Creates a plain object from a UserRecordAccessResponse message. Also converts values to other types if specified. * @function toObject - * @memberof BI.SubscriptionEnterprisePricingRequest + * @memberof Router.UserRecordAccessResponse * @static - * @param {BI.SubscriptionEnterprisePricingRequest} message SubscriptionEnterprisePricingRequest + * @param {Router.UserRecordAccessResponse} message UserRecordAccessResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SubscriptionEnterprisePricingRequest.toObject = function toObject() { - return {}; + UserRecordAccessResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + object.accessLevel = options.enums === String ? "RRAL_NONE" : 0; + } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.accessLevel != null && message.hasOwnProperty("accessLevel")) + object.accessLevel = options.enums === String ? $root.Router.UserRecordAccessLevel[message.accessLevel] === undefined ? message.accessLevel : $root.Router.UserRecordAccessLevel[message.accessLevel] : message.accessLevel; + return object; }; /** - * Converts this SubscriptionEnterprisePricingRequest to JSON. + * Converts this UserRecordAccessResponse to JSON. * @function toJSON - * @memberof BI.SubscriptionEnterprisePricingRequest + * @memberof Router.UserRecordAccessResponse * @instance * @returns {Object.} JSON object */ - SubscriptionEnterprisePricingRequest.prototype.toJSON = function toJSON() { + UserRecordAccessResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SubscriptionEnterprisePricingRequest + * Gets the default type url for UserRecordAccessResponse * @function getTypeUrl - * @memberof BI.SubscriptionEnterprisePricingRequest + * @memberof Router.UserRecordAccessResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SubscriptionEnterprisePricingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UserRecordAccessResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.SubscriptionEnterprisePricingRequest"; + return typeUrlPrefix + "/Router.UserRecordAccessResponse"; }; - return SubscriptionEnterprisePricingRequest; + return UserRecordAccessResponse; })(); - BI.SubscriptionEnterprisePricingResponse = (function() { + Router.UserRecordAccessRequests = (function() { /** - * Properties of a SubscriptionEnterprisePricingResponse. - * @memberof BI - * @interface ISubscriptionEnterprisePricingResponse - * @property {Array.|null} [basePlans] SubscriptionEnterprisePricingResponse basePlans - * @property {Array.|null} [addons] SubscriptionEnterprisePricingResponse addons - * @property {Array.|null} [filePlans] SubscriptionEnterprisePricingResponse filePlans + * Properties of a UserRecordAccessRequests. + * @memberof Router + * @interface IUserRecordAccessRequests + * @property {Array.|null} [requests] UserRecordAccessRequests requests */ /** - * Constructs a new SubscriptionEnterprisePricingResponse. - * @memberof BI - * @classdesc Represents a SubscriptionEnterprisePricingResponse. - * @implements ISubscriptionEnterprisePricingResponse + * Constructs a new UserRecordAccessRequests. + * @memberof Router + * @classdesc Represents a UserRecordAccessRequests. + * @implements IUserRecordAccessRequests * @constructor - * @param {BI.ISubscriptionEnterprisePricingResponse=} [properties] Properties to set + * @param {Router.IUserRecordAccessRequests=} [properties] Properties to set */ - function SubscriptionEnterprisePricingResponse(properties) { - this.basePlans = []; - this.addons = []; - this.filePlans = []; + function UserRecordAccessRequests(properties) { + this.requests = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -242983,112 +276020,78 @@ export const BI = $root.BI = (() => { } /** - * SubscriptionEnterprisePricingResponse basePlans. - * @member {Array.} basePlans - * @memberof BI.SubscriptionEnterprisePricingResponse - * @instance - */ - SubscriptionEnterprisePricingResponse.prototype.basePlans = $util.emptyArray; - - /** - * SubscriptionEnterprisePricingResponse addons. - * @member {Array.} addons - * @memberof BI.SubscriptionEnterprisePricingResponse - * @instance - */ - SubscriptionEnterprisePricingResponse.prototype.addons = $util.emptyArray; - - /** - * SubscriptionEnterprisePricingResponse filePlans. - * @member {Array.} filePlans - * @memberof BI.SubscriptionEnterprisePricingResponse + * UserRecordAccessRequests requests. + * @member {Array.} requests + * @memberof Router.UserRecordAccessRequests * @instance */ - SubscriptionEnterprisePricingResponse.prototype.filePlans = $util.emptyArray; + UserRecordAccessRequests.prototype.requests = $util.emptyArray; /** - * Creates a new SubscriptionEnterprisePricingResponse instance using the specified properties. + * Creates a new UserRecordAccessRequests instance using the specified properties. * @function create - * @memberof BI.SubscriptionEnterprisePricingResponse + * @memberof Router.UserRecordAccessRequests * @static - * @param {BI.ISubscriptionEnterprisePricingResponse=} [properties] Properties to set - * @returns {BI.SubscriptionEnterprisePricingResponse} SubscriptionEnterprisePricingResponse instance + * @param {Router.IUserRecordAccessRequests=} [properties] Properties to set + * @returns {Router.UserRecordAccessRequests} UserRecordAccessRequests instance */ - SubscriptionEnterprisePricingResponse.create = function create(properties) { - return new SubscriptionEnterprisePricingResponse(properties); + UserRecordAccessRequests.create = function create(properties) { + return new UserRecordAccessRequests(properties); }; /** - * Encodes the specified SubscriptionEnterprisePricingResponse message. Does not implicitly {@link BI.SubscriptionEnterprisePricingResponse.verify|verify} messages. + * Encodes the specified UserRecordAccessRequests message. Does not implicitly {@link Router.UserRecordAccessRequests.verify|verify} messages. * @function encode - * @memberof BI.SubscriptionEnterprisePricingResponse + * @memberof Router.UserRecordAccessRequests * @static - * @param {BI.ISubscriptionEnterprisePricingResponse} message SubscriptionEnterprisePricingResponse message or plain object to encode + * @param {Router.IUserRecordAccessRequests} message UserRecordAccessRequests message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionEnterprisePricingResponse.encode = function encode(message, writer) { + UserRecordAccessRequests.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.basePlans != null && message.basePlans.length) - for (let i = 0; i < message.basePlans.length; ++i) - $root.BI.EnterpriseBasePlan.encode(message.basePlans[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.addons != null && message.addons.length) - for (let i = 0; i < message.addons.length; ++i) - $root.BI.Addon.encode(message.addons[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.filePlans != null && message.filePlans.length) - for (let i = 0; i < message.filePlans.length; ++i) - $root.BI.FilePlan.encode(message.filePlans[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.requests != null && message.requests.length) + for (let i = 0; i < message.requests.length; ++i) + $root.Router.UserRecordAccessRequest.encode(message.requests[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified SubscriptionEnterprisePricingResponse message, length delimited. Does not implicitly {@link BI.SubscriptionEnterprisePricingResponse.verify|verify} messages. + * Encodes the specified UserRecordAccessRequests message, length delimited. Does not implicitly {@link Router.UserRecordAccessRequests.verify|verify} messages. * @function encodeDelimited - * @memberof BI.SubscriptionEnterprisePricingResponse + * @memberof Router.UserRecordAccessRequests * @static - * @param {BI.ISubscriptionEnterprisePricingResponse} message SubscriptionEnterprisePricingResponse message or plain object to encode + * @param {Router.IUserRecordAccessRequests} message UserRecordAccessRequests message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionEnterprisePricingResponse.encodeDelimited = function encodeDelimited(message, writer) { + UserRecordAccessRequests.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SubscriptionEnterprisePricingResponse message from the specified reader or buffer. + * Decodes a UserRecordAccessRequests message from the specified reader or buffer. * @function decode - * @memberof BI.SubscriptionEnterprisePricingResponse + * @memberof Router.UserRecordAccessRequests * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.SubscriptionEnterprisePricingResponse} SubscriptionEnterprisePricingResponse + * @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 */ - SubscriptionEnterprisePricingResponse.decode = function decode(reader, length) { + UserRecordAccessRequests.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionEnterprisePricingResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.UserRecordAccessRequests(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.basePlans && message.basePlans.length)) - message.basePlans = []; - message.basePlans.push($root.BI.EnterpriseBasePlan.decode(reader, reader.uint32())); - break; - } - case 2: { - if (!(message.addons && message.addons.length)) - message.addons = []; - message.addons.push($root.BI.Addon.decode(reader, reader.uint32())); - break; - } - case 3: { - if (!(message.filePlans && message.filePlans.length)) - message.filePlans = []; - message.filePlans.push($root.BI.FilePlan.decode(reader, reader.uint32())); + if (!(message.requests && message.requests.length)) + message.requests = []; + message.requests.push($root.Router.UserRecordAccessRequest.decode(reader, reader.uint32())); break; } default: @@ -243100,219 +276103,140 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a SubscriptionEnterprisePricingResponse message from the specified reader or buffer, length delimited. + * Decodes a UserRecordAccessRequests message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.SubscriptionEnterprisePricingResponse + * @memberof Router.UserRecordAccessRequests * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SubscriptionEnterprisePricingResponse} SubscriptionEnterprisePricingResponse + * @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 */ - SubscriptionEnterprisePricingResponse.decodeDelimited = function decodeDelimited(reader) { + UserRecordAccessRequests.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SubscriptionEnterprisePricingResponse message. + * Verifies a UserRecordAccessRequests message. * @function verify - * @memberof BI.SubscriptionEnterprisePricingResponse + * @memberof Router.UserRecordAccessRequests * @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) { + UserRecordAccessRequests.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - 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]); - 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]); + 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]); if (error) - return "filePlans." + error; + return "requests." + error; } } return null; }; /** - * Creates a SubscriptionEnterprisePricingResponse message from a plain object. Also converts values to their respective internal types. + * Creates a UserRecordAccessRequests message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.SubscriptionEnterprisePricingResponse + * @memberof Router.UserRecordAccessRequests * @static * @param {Object.} object Plain object - * @returns {BI.SubscriptionEnterprisePricingResponse} SubscriptionEnterprisePricingResponse + * @returns {Router.UserRecordAccessRequests} UserRecordAccessRequests */ - SubscriptionEnterprisePricingResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SubscriptionEnterprisePricingResponse) + UserRecordAccessRequests.fromObject = function fromObject(object) { + if (object instanceof $root.Router.UserRecordAccessRequests) return object; - let message = new $root.BI.SubscriptionEnterprisePricingResponse(); - if (object.basePlans) { - if (!Array.isArray(object.basePlans)) - throw TypeError(".BI.SubscriptionEnterprisePricingResponse.basePlans: array expected"); - message.basePlans = []; - for (let i = 0; i < object.basePlans.length; ++i) { - if (typeof object.basePlans[i] !== "object") - throw TypeError(".BI.SubscriptionEnterprisePricingResponse.basePlans: object expected"); - message.basePlans[i] = $root.BI.EnterpriseBasePlan.fromObject(object.basePlans[i]); - } - } - if (object.addons) { - if (!Array.isArray(object.addons)) - throw TypeError(".BI.SubscriptionEnterprisePricingResponse.addons: array expected"); - message.addons = []; - for (let i = 0; i < object.addons.length; ++i) { - if (typeof object.addons[i] !== "object") - throw TypeError(".BI.SubscriptionEnterprisePricingResponse.addons: object expected"); - message.addons[i] = $root.BI.Addon.fromObject(object.addons[i]); - } - } - if (object.filePlans) { - if (!Array.isArray(object.filePlans)) - throw TypeError(".BI.SubscriptionEnterprisePricingResponse.filePlans: array expected"); - message.filePlans = []; - for (let i = 0; i < object.filePlans.length; ++i) { - if (typeof object.filePlans[i] !== "object") - throw TypeError(".BI.SubscriptionEnterprisePricingResponse.filePlans: object expected"); - message.filePlans[i] = $root.BI.FilePlan.fromObject(object.filePlans[i]); + let message = new $root.Router.UserRecordAccessRequests(); + if (object.requests) { + if (!Array.isArray(object.requests)) + throw TypeError(".Router.UserRecordAccessRequests.requests: array expected"); + message.requests = []; + for (let i = 0; i < object.requests.length; ++i) { + if (typeof object.requests[i] !== "object") + throw TypeError(".Router.UserRecordAccessRequests.requests: object expected"); + message.requests[i] = $root.Router.UserRecordAccessRequest.fromObject(object.requests[i]); } } return message; }; /** - * Creates a plain object from a SubscriptionEnterprisePricingResponse message. Also converts values to other types if specified. + * Creates a plain object from a UserRecordAccessRequests message. Also converts values to other types if specified. * @function toObject - * @memberof BI.SubscriptionEnterprisePricingResponse + * @memberof Router.UserRecordAccessRequests * @static - * @param {BI.SubscriptionEnterprisePricingResponse} message SubscriptionEnterprisePricingResponse + * @param {Router.UserRecordAccessRequests} message UserRecordAccessRequests * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SubscriptionEnterprisePricingResponse.toObject = function toObject(message, options) { + UserRecordAccessRequests.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.basePlans = []; - object.addons = []; - object.filePlans = []; - } - if (message.basePlans && message.basePlans.length) { - object.basePlans = []; - for (let j = 0; j < message.basePlans.length; ++j) - object.basePlans[j] = $root.BI.EnterpriseBasePlan.toObject(message.basePlans[j], options); - } - if (message.addons && message.addons.length) { - object.addons = []; - for (let j = 0; j < message.addons.length; ++j) - object.addons[j] = $root.BI.Addon.toObject(message.addons[j], options); - } - if (message.filePlans && message.filePlans.length) { - object.filePlans = []; - for (let j = 0; j < message.filePlans.length; ++j) - object.filePlans[j] = $root.BI.FilePlan.toObject(message.filePlans[j], options); + if (options.arrays || options.defaults) + object.requests = []; + if (message.requests && message.requests.length) { + object.requests = []; + for (let j = 0; j < message.requests.length; ++j) + object.requests[j] = $root.Router.UserRecordAccessRequest.toObject(message.requests[j], options); } return object; }; /** - * Converts this SubscriptionEnterprisePricingResponse to JSON. + * Converts this UserRecordAccessRequests to JSON. * @function toJSON - * @memberof BI.SubscriptionEnterprisePricingResponse + * @memberof Router.UserRecordAccessRequests * @instance * @returns {Object.} JSON object */ - SubscriptionEnterprisePricingResponse.prototype.toJSON = function toJSON() { + UserRecordAccessRequests.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SubscriptionEnterprisePricingResponse + * Gets the default type url for UserRecordAccessRequests * @function getTypeUrl - * @memberof BI.SubscriptionEnterprisePricingResponse + * @memberof Router.UserRecordAccessRequests * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SubscriptionEnterprisePricingResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UserRecordAccessRequests.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.SubscriptionEnterprisePricingResponse"; + return typeUrlPrefix + "/Router.UserRecordAccessRequests"; }; - return SubscriptionEnterprisePricingResponse; - })(); - - /** - * IdentifierType enum. - * @name BI.IdentifierType - * @enum {number} - * @property {number} UNKNOWN_IDENTIFIER_TYPE=0 UNKNOWN_IDENTIFIER_TYPE value - * @property {number} IOS_ID=1 IOS_ID value - * @property {number} ANDROID_GOOGLE_PLAY_ID=2 ANDROID_GOOGLE_PLAY_ID value - * @property {number} ANDROID_APP_SET_ID=3 ANDROID_APP_SET_ID value - * @property {number} ANDROID_ID=4 ANDROID_ID value - * @property {number} AMAZON_ADVERTISING_ID=5 AMAZON_ADVERTISING_ID value - * @property {number} OPEN_ADVERTISING_ID=6 OPEN_ADVERTISING_ID value - * @property {number} SINGULAR_DEVICE_ID=7 SINGULAR_DEVICE_ID value - * @property {number} CLIENT_DEFINED_ID=8 CLIENT_DEFINED_ID value - */ - BI.IdentifierType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN_IDENTIFIER_TYPE"] = 0; - values[valuesById[1] = "IOS_ID"] = 1; - values[valuesById[2] = "ANDROID_GOOGLE_PLAY_ID"] = 2; - values[valuesById[3] = "ANDROID_APP_SET_ID"] = 3; - values[valuesById[4] = "ANDROID_ID"] = 4; - values[valuesById[5] = "AMAZON_ADVERTISING_ID"] = 5; - values[valuesById[6] = "OPEN_ADVERTISING_ID"] = 6; - values[valuesById[7] = "SINGULAR_DEVICE_ID"] = 7; - values[valuesById[8] = "CLIENT_DEFINED_ID"] = 8; - return values; + return UserRecordAccessRequests; })(); - BI.SingularDeviceIdentifier = (function() { + Router.UserRecordAccessResponses = (function() { /** - * Properties of a SingularDeviceIdentifier. - * @memberof BI - * @interface ISingularDeviceIdentifier - * @property {string|null} [id] SingularDeviceIdentifier id - * @property {BI.IdentifierType|null} [idType] SingularDeviceIdentifier idType + * Properties of a UserRecordAccessResponses. + * @memberof Router + * @interface IUserRecordAccessResponses + * @property {Array.|null} [responses] UserRecordAccessResponses responses */ /** - * Constructs a new SingularDeviceIdentifier. - * @memberof BI - * @classdesc Represents a SingularDeviceIdentifier. - * @implements ISingularDeviceIdentifier + * Constructs a new UserRecordAccessResponses. + * @memberof Router + * @classdesc Represents a UserRecordAccessResponses. + * @implements IUserRecordAccessResponses * @constructor - * @param {BI.ISingularDeviceIdentifier=} [properties] Properties to set + * @param {Router.IUserRecordAccessResponses=} [properties] Properties to set */ - function SingularDeviceIdentifier(properties) { + function UserRecordAccessResponses(properties) { + this.responses = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -243320,89 +276244,78 @@ export const BI = $root.BI = (() => { } /** - * SingularDeviceIdentifier id. - * @member {string} id - * @memberof BI.SingularDeviceIdentifier - * @instance - */ - SingularDeviceIdentifier.prototype.id = ""; - - /** - * SingularDeviceIdentifier idType. - * @member {BI.IdentifierType} idType - * @memberof BI.SingularDeviceIdentifier + * UserRecordAccessResponses responses. + * @member {Array.} responses + * @memberof Router.UserRecordAccessResponses * @instance */ - SingularDeviceIdentifier.prototype.idType = 0; + UserRecordAccessResponses.prototype.responses = $util.emptyArray; /** - * Creates a new SingularDeviceIdentifier instance using the specified properties. + * Creates a new UserRecordAccessResponses instance using the specified properties. * @function create - * @memberof BI.SingularDeviceIdentifier + * @memberof Router.UserRecordAccessResponses * @static - * @param {BI.ISingularDeviceIdentifier=} [properties] Properties to set - * @returns {BI.SingularDeviceIdentifier} SingularDeviceIdentifier instance + * @param {Router.IUserRecordAccessResponses=} [properties] Properties to set + * @returns {Router.UserRecordAccessResponses} UserRecordAccessResponses instance */ - SingularDeviceIdentifier.create = function create(properties) { - return new SingularDeviceIdentifier(properties); + UserRecordAccessResponses.create = function create(properties) { + return new UserRecordAccessResponses(properties); }; /** - * Encodes the specified SingularDeviceIdentifier message. Does not implicitly {@link BI.SingularDeviceIdentifier.verify|verify} messages. + * Encodes the specified UserRecordAccessResponses message. Does not implicitly {@link Router.UserRecordAccessResponses.verify|verify} messages. * @function encode - * @memberof BI.SingularDeviceIdentifier + * @memberof Router.UserRecordAccessResponses * @static - * @param {BI.ISingularDeviceIdentifier} message SingularDeviceIdentifier message or plain object to encode + * @param {Router.IUserRecordAccessResponses} message UserRecordAccessResponses message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SingularDeviceIdentifier.encode = function encode(message, writer) { + UserRecordAccessResponses.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.idType != null && Object.hasOwnProperty.call(message, "idType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.idType); + if (message.responses != null && message.responses.length) + for (let i = 0; i < message.responses.length; ++i) + $root.Router.UserRecordAccessResponse.encode(message.responses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified SingularDeviceIdentifier message, length delimited. Does not implicitly {@link BI.SingularDeviceIdentifier.verify|verify} messages. + * Encodes the specified UserRecordAccessResponses message, length delimited. Does not implicitly {@link Router.UserRecordAccessResponses.verify|verify} messages. * @function encodeDelimited - * @memberof BI.SingularDeviceIdentifier + * @memberof Router.UserRecordAccessResponses * @static - * @param {BI.ISingularDeviceIdentifier} message SingularDeviceIdentifier message or plain object to encode + * @param {Router.IUserRecordAccessResponses} message UserRecordAccessResponses message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SingularDeviceIdentifier.encodeDelimited = function encodeDelimited(message, writer) { + UserRecordAccessResponses.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SingularDeviceIdentifier message from the specified reader or buffer. + * Decodes a UserRecordAccessResponses message from the specified reader or buffer. * @function decode - * @memberof BI.SingularDeviceIdentifier + * @memberof Router.UserRecordAccessResponses * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.SingularDeviceIdentifier} SingularDeviceIdentifier + * @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 */ - SingularDeviceIdentifier.decode = function decode(reader, length) { + UserRecordAccessResponses.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SingularDeviceIdentifier(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.UserRecordAccessResponses(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.id = reader.string(); - break; - } - case 2: { - message.idType = reader.int32(); + if (!(message.responses && message.responses.length)) + message.responses = []; + message.responses.push($root.Router.UserRecordAccessResponse.decode(reader, reader.uint32())); break; } default: @@ -243414,192 +276327,140 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a SingularDeviceIdentifier message from the specified reader or buffer, length delimited. + * Decodes a UserRecordAccessResponses message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.SingularDeviceIdentifier + * @memberof Router.UserRecordAccessResponses * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SingularDeviceIdentifier} SingularDeviceIdentifier + * @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 */ - SingularDeviceIdentifier.decodeDelimited = function decodeDelimited(reader) { + UserRecordAccessResponses.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SingularDeviceIdentifier message. + * Verifies a UserRecordAccessResponses message. * @function verify - * @memberof BI.SingularDeviceIdentifier + * @memberof Router.UserRecordAccessResponses * @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) { + UserRecordAccessResponses.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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; + 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]); + if (error) + return "responses." + error; } + } return null; }; /** - * Creates a SingularDeviceIdentifier message from a plain object. Also converts values to their respective internal types. + * Creates a UserRecordAccessResponses message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.SingularDeviceIdentifier + * @memberof Router.UserRecordAccessResponses * @static * @param {Object.} object Plain object - * @returns {BI.SingularDeviceIdentifier} SingularDeviceIdentifier + * @returns {Router.UserRecordAccessResponses} UserRecordAccessResponses */ - SingularDeviceIdentifier.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SingularDeviceIdentifier) + UserRecordAccessResponses.fromObject = function fromObject(object) { + if (object instanceof $root.Router.UserRecordAccessResponses) return object; - let message = new $root.BI.SingularDeviceIdentifier(); - if (object.id != null) - message.id = String(object.id); - switch (object.idType) { - default: - if (typeof object.idType === "number") { - message.idType = object.idType; - break; + let message = new $root.Router.UserRecordAccessResponses(); + if (object.responses) { + if (!Array.isArray(object.responses)) + throw TypeError(".Router.UserRecordAccessResponses.responses: array expected"); + message.responses = []; + for (let i = 0; i < object.responses.length; ++i) { + if (typeof object.responses[i] !== "object") + throw TypeError(".Router.UserRecordAccessResponses.responses: object expected"); + message.responses[i] = $root.Router.UserRecordAccessResponse.fromObject(object.responses[i]); } - break; - case "UNKNOWN_IDENTIFIER_TYPE": - case 0: - message.idType = 0; - break; - case "IOS_ID": - case 1: - message.idType = 1; - break; - case "ANDROID_GOOGLE_PLAY_ID": - case 2: - message.idType = 2; - break; - case "ANDROID_APP_SET_ID": - case 3: - message.idType = 3; - break; - case "ANDROID_ID": - case 4: - message.idType = 4; - break; - case "AMAZON_ADVERTISING_ID": - case 5: - message.idType = 5; - break; - case "OPEN_ADVERTISING_ID": - case 6: - message.idType = 6; - break; - case "SINGULAR_DEVICE_ID": - case 7: - message.idType = 7; - break; - case "CLIENT_DEFINED_ID": - case 8: - message.idType = 8; - break; } return message; }; /** - * Creates a plain object from a SingularDeviceIdentifier message. Also converts values to other types if specified. + * Creates a plain object from a UserRecordAccessResponses message. Also converts values to other types if specified. * @function toObject - * @memberof BI.SingularDeviceIdentifier + * @memberof Router.UserRecordAccessResponses * @static - * @param {BI.SingularDeviceIdentifier} message SingularDeviceIdentifier + * @param {Router.UserRecordAccessResponses} message UserRecordAccessResponses * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SingularDeviceIdentifier.toObject = function toObject(message, options) { + UserRecordAccessResponses.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.id = ""; - object.idType = options.enums === String ? "UNKNOWN_IDENTIFIER_TYPE" : 0; + if (options.arrays || options.defaults) + object.responses = []; + if (message.responses && message.responses.length) { + object.responses = []; + for (let j = 0; j < message.responses.length; ++j) + object.responses[j] = $root.Router.UserRecordAccessResponse.toObject(message.responses[j], options); } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.idType != null && message.hasOwnProperty("idType")) - object.idType = options.enums === String ? $root.BI.IdentifierType[message.idType] === undefined ? message.idType : $root.BI.IdentifierType[message.idType] : message.idType; return object; }; /** - * Converts this SingularDeviceIdentifier to JSON. + * Converts this UserRecordAccessResponses to JSON. * @function toJSON - * @memberof BI.SingularDeviceIdentifier + * @memberof Router.UserRecordAccessResponses * @instance * @returns {Object.} JSON object */ - SingularDeviceIdentifier.prototype.toJSON = function toJSON() { + UserRecordAccessResponses.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SingularDeviceIdentifier + * Gets the default type url for UserRecordAccessResponses * @function getTypeUrl - * @memberof BI.SingularDeviceIdentifier + * @memberof Router.UserRecordAccessResponses * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SingularDeviceIdentifier.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UserRecordAccessResponses.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.SingularDeviceIdentifier"; + return typeUrlPrefix + "/Router.UserRecordAccessResponses"; }; - return SingularDeviceIdentifier; + return UserRecordAccessResponses; })(); - BI.SingularSharedData = (function() { + Router.RotationSchedule = (function() { /** - * Properties of a SingularSharedData. - * @memberof BI - * @interface ISingularSharedData - * @property {string|null} [platform] SingularSharedData platform - * @property {string|null} [osVersion] SingularSharedData osVersion - * @property {string|null} [make] SingularSharedData make - * @property {string|null} [model] SingularSharedData model - * @property {string|null} [locale] SingularSharedData locale - * @property {string|null} [build] SingularSharedData build - * @property {string|null} [appIdentifier] SingularSharedData appIdentifier - * @property {number|null} [attAuthorizationStatus] SingularSharedData attAuthorizationStatus + * Properties of a RotationSchedule. + * @memberof Router + * @interface IRotationSchedule + * @property {Uint8Array|null} [recordUid] RotationSchedule recordUid + * @property {string|null} [schedule] RotationSchedule schedule */ /** - * Constructs a new SingularSharedData. - * @memberof BI - * @classdesc Represents a SingularSharedData. - * @implements ISingularSharedData + * Constructs a new RotationSchedule. + * @memberof Router + * @classdesc Represents a RotationSchedule. + * @implements IRotationSchedule * @constructor - * @param {BI.ISingularSharedData=} [properties] Properties to set + * @param {Router.IRotationSchedule=} [properties] Properties to set */ - function SingularSharedData(properties) { + function RotationSchedule(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -243607,173 +276468,89 @@ export const BI = $root.BI = (() => { } /** - * SingularSharedData platform. - * @member {string} platform - * @memberof BI.SingularSharedData - * @instance - */ - SingularSharedData.prototype.platform = ""; - - /** - * SingularSharedData osVersion. - * @member {string} osVersion - * @memberof BI.SingularSharedData - * @instance - */ - SingularSharedData.prototype.osVersion = ""; - - /** - * SingularSharedData make. - * @member {string} make - * @memberof BI.SingularSharedData - * @instance - */ - SingularSharedData.prototype.make = ""; - - /** - * SingularSharedData model. - * @member {string} model - * @memberof BI.SingularSharedData - * @instance - */ - SingularSharedData.prototype.model = ""; - - /** - * SingularSharedData locale. - * @member {string} locale - * @memberof BI.SingularSharedData - * @instance - */ - SingularSharedData.prototype.locale = ""; - - /** - * SingularSharedData build. - * @member {string} build - * @memberof BI.SingularSharedData - * @instance - */ - SingularSharedData.prototype.build = ""; - - /** - * SingularSharedData appIdentifier. - * @member {string} appIdentifier - * @memberof BI.SingularSharedData + * RotationSchedule recordUid. + * @member {Uint8Array} recordUid + * @memberof Router.RotationSchedule * @instance */ - SingularSharedData.prototype.appIdentifier = ""; + RotationSchedule.prototype.recordUid = $util.newBuffer([]); /** - * SingularSharedData attAuthorizationStatus. - * @member {number} attAuthorizationStatus - * @memberof BI.SingularSharedData + * RotationSchedule schedule. + * @member {string} schedule + * @memberof Router.RotationSchedule * @instance */ - SingularSharedData.prototype.attAuthorizationStatus = 0; + RotationSchedule.prototype.schedule = ""; /** - * Creates a new SingularSharedData instance using the specified properties. + * Creates a new RotationSchedule instance using the specified properties. * @function create - * @memberof BI.SingularSharedData + * @memberof Router.RotationSchedule * @static - * @param {BI.ISingularSharedData=} [properties] Properties to set - * @returns {BI.SingularSharedData} SingularSharedData instance + * @param {Router.IRotationSchedule=} [properties] Properties to set + * @returns {Router.RotationSchedule} RotationSchedule instance */ - SingularSharedData.create = function create(properties) { - return new SingularSharedData(properties); + RotationSchedule.create = function create(properties) { + return new RotationSchedule(properties); }; /** - * Encodes the specified SingularSharedData message. Does not implicitly {@link BI.SingularSharedData.verify|verify} messages. + * Encodes the specified RotationSchedule message. Does not implicitly {@link Router.RotationSchedule.verify|verify} messages. * @function encode - * @memberof BI.SingularSharedData + * @memberof Router.RotationSchedule * @static - * @param {BI.ISingularSharedData} message SingularSharedData message or plain object to encode + * @param {Router.IRotationSchedule} message RotationSchedule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SingularSharedData.encode = function encode(message, writer) { + RotationSchedule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.platform != null && Object.hasOwnProperty.call(message, "platform")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.platform); - if (message.osVersion != null && Object.hasOwnProperty.call(message, "osVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.osVersion); - if (message.make != null && Object.hasOwnProperty.call(message, "make")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.make); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.model); - if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.locale); - if (message.build != null && Object.hasOwnProperty.call(message, "build")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.build); - if (message.appIdentifier != null && Object.hasOwnProperty.call(message, "appIdentifier")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.appIdentifier); - if (message.attAuthorizationStatus != null && Object.hasOwnProperty.call(message, "attAuthorizationStatus")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.attAuthorizationStatus); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.schedule); return writer; }; /** - * Encodes the specified SingularSharedData message, length delimited. Does not implicitly {@link BI.SingularSharedData.verify|verify} messages. + * Encodes the specified RotationSchedule message, length delimited. Does not implicitly {@link Router.RotationSchedule.verify|verify} messages. * @function encodeDelimited - * @memberof BI.SingularSharedData + * @memberof Router.RotationSchedule * @static - * @param {BI.ISingularSharedData} message SingularSharedData message or plain object to encode + * @param {Router.IRotationSchedule} message RotationSchedule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SingularSharedData.encodeDelimited = function encodeDelimited(message, writer) { + RotationSchedule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SingularSharedData message from the specified reader or buffer. + * Decodes a RotationSchedule message from the specified reader or buffer. * @function decode - * @memberof BI.SingularSharedData + * @memberof Router.RotationSchedule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.SingularSharedData} SingularSharedData + * @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 */ - SingularSharedData.decode = function decode(reader, length) { + RotationSchedule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SingularSharedData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RotationSchedule(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.platform = reader.string(); + message.recordUid = reader.bytes(); break; } case 2: { - message.osVersion = reader.string(); - break; - } - case 3: { - message.make = reader.string(); - break; - } - case 4: { - message.model = reader.string(); - break; - } - case 5: { - message.locale = reader.string(); - break; - } - case 6: { - message.build = reader.string(); - break; - } - case 7: { - message.appIdentifier = reader.string(); - break; - } - case 8: { - message.attAuthorizationStatus = reader.int32(); + message.schedule = reader.string(); break; } default: @@ -243785,193 +276562,160 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a SingularSharedData message from the specified reader or buffer, length delimited. + * Decodes a RotationSchedule message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.SingularSharedData + * @memberof Router.RotationSchedule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SingularSharedData} SingularSharedData + * @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 */ - SingularSharedData.decodeDelimited = function decodeDelimited(reader) { + RotationSchedule.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SingularSharedData message. + * Verifies a RotationSchedule message. * @function verify - * @memberof BI.SingularSharedData + * @memberof Router.RotationSchedule * @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) { + RotationSchedule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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 SingularSharedData message from a plain object. Also converts values to their respective internal types. + * Creates a RotationSchedule message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.SingularSharedData + * @memberof Router.RotationSchedule * @static * @param {Object.} object Plain object - * @returns {BI.SingularSharedData} SingularSharedData + * @returns {Router.RotationSchedule} RotationSchedule */ - SingularSharedData.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SingularSharedData) + RotationSchedule.fromObject = function fromObject(object) { + if (object instanceof $root.Router.RotationSchedule) return object; - let message = new $root.BI.SingularSharedData(); - if (object.platform != null) - message.platform = String(object.platform); - if (object.osVersion != null) - message.osVersion = String(object.osVersion); - if (object.make != null) - message.make = String(object.make); - if (object.model != null) - message.model = String(object.model); - if (object.locale != null) - message.locale = String(object.locale); - if (object.build != null) - message.build = String(object.build); - if (object.appIdentifier != null) - message.appIdentifier = String(object.appIdentifier); - if (object.attAuthorizationStatus != null) - message.attAuthorizationStatus = object.attAuthorizationStatus | 0; + let message = new $root.Router.RotationSchedule(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.schedule != null) + message.schedule = String(object.schedule); return message; }; /** - * Creates a plain object from a SingularSharedData message. Also converts values to other types if specified. + * Creates a plain object from a RotationSchedule message. Also converts values to other types if specified. * @function toObject - * @memberof BI.SingularSharedData + * @memberof Router.RotationSchedule * @static - * @param {BI.SingularSharedData} message SingularSharedData + * @param {Router.RotationSchedule} message RotationSchedule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SingularSharedData.toObject = function toObject(message, options) { + RotationSchedule.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.platform = ""; - object.osVersion = ""; - object.make = ""; - object.model = ""; - object.locale = ""; - object.build = ""; - object.appIdentifier = ""; - object.attAuthorizationStatus = 0; + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + object.schedule = ""; } - if (message.platform != null && message.hasOwnProperty("platform")) - object.platform = message.platform; - if (message.osVersion != null && message.hasOwnProperty("osVersion")) - object.osVersion = message.osVersion; - if (message.make != null && message.hasOwnProperty("make")) - object.make = message.make; - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.locale != null && message.hasOwnProperty("locale")) - object.locale = message.locale; - if (message.build != null && message.hasOwnProperty("build")) - object.build = message.build; - if (message.appIdentifier != null && message.hasOwnProperty("appIdentifier")) - object.appIdentifier = message.appIdentifier; - if (message.attAuthorizationStatus != null && message.hasOwnProperty("attAuthorizationStatus")) - object.attAuthorizationStatus = message.attAuthorizationStatus; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.schedule != null && message.hasOwnProperty("schedule")) + object.schedule = message.schedule; return object; }; /** - * Converts this SingularSharedData to JSON. + * Converts this RotationSchedule to JSON. * @function toJSON - * @memberof BI.SingularSharedData + * @memberof Router.RotationSchedule * @instance * @returns {Object.} JSON object */ - SingularSharedData.prototype.toJSON = function toJSON() { + RotationSchedule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SingularSharedData + * Gets the default type url for RotationSchedule * @function getTypeUrl - * @memberof BI.SingularSharedData + * @memberof Router.RotationSchedule * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SingularSharedData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RotationSchedule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.SingularSharedData"; + return typeUrlPrefix + "/Router.RotationSchedule"; }; - return SingularSharedData; + return RotationSchedule; })(); - BI.SingularSessionRequest = (function() { + /** + * ServiceType enum. + * @name Router.ServiceType + * @enum {number} + * @property {number} UNSPECIFIED=0 UNSPECIFIED value + * @property {number} KA=1 KA value + * @property {number} BI=2 BI value + */ + Router.ServiceType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNSPECIFIED"] = 0; + values[valuesById[1] = "KA"] = 1; + values[valuesById[2] = "BI"] = 2; + return values; + })(); + + Router.ApiCallbackRequest = (function() { /** - * Properties of a SingularSessionRequest. - * @memberof BI - * @interface ISingularSessionRequest - * @property {Array.|null} [deviceIdentifiers] SingularSessionRequest deviceIdentifiers - * @property {BI.ISingularSharedData|null} [sharedData] SingularSessionRequest sharedData - * @property {string|null} [applicationVersion] SingularSessionRequest applicationVersion - * @property {boolean|null} [install] SingularSessionRequest install - * @property {number|Long|null} [installTime] SingularSessionRequest installTime - * @property {number|Long|null} [updateTime] SingularSessionRequest updateTime - * @property {string|null} [installSource] SingularSessionRequest installSource - * @property {string|null} [installReceipt] SingularSessionRequest installReceipt - * @property {string|null} [openuri] SingularSessionRequest openuri - * @property {boolean|null} [ddlEnabled] SingularSessionRequest ddlEnabled - * @property {boolean|null} [singularLinkResolveRequired] SingularSessionRequest singularLinkResolveRequired - * @property {string|null} [installRef] SingularSessionRequest installRef - * @property {string|null} [metaRef] SingularSessionRequest metaRef - * @property {string|null} [attributionToken] SingularSessionRequest attributionToken + * Properties of an ApiCallbackRequest. + * @memberof Router + * @interface IApiCallbackRequest + * @property {Uint8Array|null} [resourceUid] ApiCallbackRequest resourceUid + * @property {Array.|null} [schedules] ApiCallbackRequest schedules + * @property {string|null} [url] ApiCallbackRequest url + * @property {Router.ServiceType|null} [serviceType] ApiCallbackRequest serviceType */ /** - * Constructs a new SingularSessionRequest. - * @memberof BI - * @classdesc Represents a SingularSessionRequest. - * @implements ISingularSessionRequest + * Constructs a new ApiCallbackRequest. + * @memberof Router + * @classdesc Represents an ApiCallbackRequest. + * @implements IApiCallbackRequest * @constructor - * @param {BI.ISingularSessionRequest=} [properties] Properties to set + * @param {Router.IApiCallbackRequest=} [properties] Properties to set */ - function SingularSessionRequest(properties) { - this.deviceIdentifiers = []; + function ApiCallbackRequest(properties) { + this.schedules = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -243979,260 +276723,120 @@ export const BI = $root.BI = (() => { } /** - * SingularSessionRequest deviceIdentifiers. - * @member {Array.} deviceIdentifiers - * @memberof BI.SingularSessionRequest - * @instance - */ - SingularSessionRequest.prototype.deviceIdentifiers = $util.emptyArray; - - /** - * SingularSessionRequest sharedData. - * @member {BI.ISingularSharedData|null|undefined} sharedData - * @memberof BI.SingularSessionRequest - * @instance - */ - SingularSessionRequest.prototype.sharedData = null; - - /** - * SingularSessionRequest applicationVersion. - * @member {string} applicationVersion - * @memberof BI.SingularSessionRequest - * @instance - */ - SingularSessionRequest.prototype.applicationVersion = ""; - - /** - * SingularSessionRequest install. - * @member {boolean} install - * @memberof BI.SingularSessionRequest - * @instance - */ - SingularSessionRequest.prototype.install = false; - - /** - * SingularSessionRequest installTime. - * @member {number|Long} installTime - * @memberof BI.SingularSessionRequest - * @instance - */ - SingularSessionRequest.prototype.installTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * SingularSessionRequest updateTime. - * @member {number|Long} updateTime - * @memberof BI.SingularSessionRequest - * @instance - */ - SingularSessionRequest.prototype.updateTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * SingularSessionRequest installSource. - * @member {string} installSource - * @memberof BI.SingularSessionRequest - * @instance - */ - SingularSessionRequest.prototype.installSource = ""; - - /** - * SingularSessionRequest installReceipt. - * @member {string} installReceipt - * @memberof BI.SingularSessionRequest - * @instance - */ - SingularSessionRequest.prototype.installReceipt = ""; - - /** - * SingularSessionRequest openuri. - * @member {string} openuri - * @memberof BI.SingularSessionRequest - * @instance - */ - SingularSessionRequest.prototype.openuri = ""; - - /** - * SingularSessionRequest ddlEnabled. - * @member {boolean} ddlEnabled - * @memberof BI.SingularSessionRequest - * @instance - */ - SingularSessionRequest.prototype.ddlEnabled = false; - - /** - * SingularSessionRequest singularLinkResolveRequired. - * @member {boolean} singularLinkResolveRequired - * @memberof BI.SingularSessionRequest + * ApiCallbackRequest resourceUid. + * @member {Uint8Array} resourceUid + * @memberof Router.ApiCallbackRequest * @instance */ - SingularSessionRequest.prototype.singularLinkResolveRequired = false; + ApiCallbackRequest.prototype.resourceUid = $util.newBuffer([]); /** - * SingularSessionRequest installRef. - * @member {string} installRef - * @memberof BI.SingularSessionRequest + * ApiCallbackRequest schedules. + * @member {Array.} schedules + * @memberof Router.ApiCallbackRequest * @instance */ - SingularSessionRequest.prototype.installRef = ""; + ApiCallbackRequest.prototype.schedules = $util.emptyArray; /** - * SingularSessionRequest metaRef. - * @member {string} metaRef - * @memberof BI.SingularSessionRequest + * ApiCallbackRequest url. + * @member {string} url + * @memberof Router.ApiCallbackRequest * @instance */ - SingularSessionRequest.prototype.metaRef = ""; + ApiCallbackRequest.prototype.url = ""; /** - * SingularSessionRequest attributionToken. - * @member {string} attributionToken - * @memberof BI.SingularSessionRequest + * ApiCallbackRequest serviceType. + * @member {Router.ServiceType} serviceType + * @memberof Router.ApiCallbackRequest * @instance */ - SingularSessionRequest.prototype.attributionToken = ""; + ApiCallbackRequest.prototype.serviceType = 0; /** - * Creates a new SingularSessionRequest instance using the specified properties. + * Creates a new ApiCallbackRequest instance using the specified properties. * @function create - * @memberof BI.SingularSessionRequest + * @memberof Router.ApiCallbackRequest * @static - * @param {BI.ISingularSessionRequest=} [properties] Properties to set - * @returns {BI.SingularSessionRequest} SingularSessionRequest instance + * @param {Router.IApiCallbackRequest=} [properties] Properties to set + * @returns {Router.ApiCallbackRequest} ApiCallbackRequest instance */ - SingularSessionRequest.create = function create(properties) { - return new SingularSessionRequest(properties); + ApiCallbackRequest.create = function create(properties) { + return new ApiCallbackRequest(properties); }; /** - * Encodes the specified SingularSessionRequest message. Does not implicitly {@link BI.SingularSessionRequest.verify|verify} messages. + * Encodes the specified ApiCallbackRequest message. Does not implicitly {@link Router.ApiCallbackRequest.verify|verify} messages. * @function encode - * @memberof BI.SingularSessionRequest + * @memberof Router.ApiCallbackRequest * @static - * @param {BI.ISingularSessionRequest} message SingularSessionRequest message or plain object to encode + * @param {Router.IApiCallbackRequest} message ApiCallbackRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SingularSessionRequest.encode = function encode(message, writer) { + ApiCallbackRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deviceIdentifiers != null && message.deviceIdentifiers.length) - for (let i = 0; i < message.deviceIdentifiers.length; ++i) - $root.BI.SingularDeviceIdentifier.encode(message.deviceIdentifiers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.sharedData != null && Object.hasOwnProperty.call(message, "sharedData")) - $root.BI.SingularSharedData.encode(message.sharedData, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.applicationVersion != null && Object.hasOwnProperty.call(message, "applicationVersion")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.applicationVersion); - if (message.install != null && Object.hasOwnProperty.call(message, "install")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.install); - if (message.installTime != null && Object.hasOwnProperty.call(message, "installTime")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.installTime); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.updateTime); - if (message.installSource != null && Object.hasOwnProperty.call(message, "installSource")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.installSource); - if (message.installReceipt != null && Object.hasOwnProperty.call(message, "installReceipt")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.installReceipt); - if (message.openuri != null && Object.hasOwnProperty.call(message, "openuri")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.openuri); - if (message.ddlEnabled != null && Object.hasOwnProperty.call(message, "ddlEnabled")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.ddlEnabled); - if (message.singularLinkResolveRequired != null && Object.hasOwnProperty.call(message, "singularLinkResolveRequired")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.singularLinkResolveRequired); - if (message.installRef != null && Object.hasOwnProperty.call(message, "installRef")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.installRef); - if (message.metaRef != null && Object.hasOwnProperty.call(message, "metaRef")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.metaRef); - if (message.attributionToken != null && Object.hasOwnProperty.call(message, "attributionToken")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.attributionToken); + if (message.resourceUid != null && Object.hasOwnProperty.call(message, "resourceUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.resourceUid); + if (message.schedules != null && message.schedules.length) + for (let i = 0; i < message.schedules.length; ++i) + $root.Router.ApiCallbackSchedule.encode(message.schedules[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.url != null && Object.hasOwnProperty.call(message, "url")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.url); + if (message.serviceType != null && Object.hasOwnProperty.call(message, "serviceType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.serviceType); return writer; }; /** - * Encodes the specified SingularSessionRequest message, length delimited. Does not implicitly {@link BI.SingularSessionRequest.verify|verify} messages. + * Encodes the specified ApiCallbackRequest message, length delimited. Does not implicitly {@link Router.ApiCallbackRequest.verify|verify} messages. * @function encodeDelimited - * @memberof BI.SingularSessionRequest + * @memberof Router.ApiCallbackRequest * @static - * @param {BI.ISingularSessionRequest} message SingularSessionRequest message or plain object to encode + * @param {Router.IApiCallbackRequest} message ApiCallbackRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SingularSessionRequest.encodeDelimited = function encodeDelimited(message, writer) { + ApiCallbackRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SingularSessionRequest message from the specified reader or buffer. + * Decodes an ApiCallbackRequest message from the specified reader or buffer. * @function decode - * @memberof BI.SingularSessionRequest + * @memberof Router.ApiCallbackRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.SingularSessionRequest} SingularSessionRequest + * @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 */ - SingularSessionRequest.decode = function decode(reader, length) { + ApiCallbackRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SingularSessionRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.ApiCallbackRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.deviceIdentifiers && message.deviceIdentifiers.length)) - message.deviceIdentifiers = []; - message.deviceIdentifiers.push($root.BI.SingularDeviceIdentifier.decode(reader, reader.uint32())); + message.resourceUid = reader.bytes(); break; } case 2: { - message.sharedData = $root.BI.SingularSharedData.decode(reader, reader.uint32()); + if (!(message.schedules && message.schedules.length)) + message.schedules = []; + message.schedules.push($root.Router.ApiCallbackSchedule.decode(reader, reader.uint32())); break; } case 3: { - message.applicationVersion = reader.string(); + message.url = reader.string(); break; } case 4: { - message.install = reader.bool(); - break; - } - case 5: { - message.installTime = reader.int64(); - break; - } - case 6: { - message.updateTime = reader.int64(); - break; - } - case 7: { - message.installSource = reader.string(); - break; - } - case 8: { - message.installReceipt = reader.string(); - break; - } - case 9: { - message.openuri = reader.string(); - break; - } - case 10: { - message.ddlEnabled = reader.bool(); - break; - } - case 11: { - message.singularLinkResolveRequired = reader.bool(); - break; - } - case 12: { - message.installRef = reader.string(); - break; - } - case 13: { - message.metaRef = reader.string(); - break; - } - case 14: { - message.attributionToken = reader.string(); + message.serviceType = reader.int32(); break; } default: @@ -244244,281 +276848,199 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a SingularSessionRequest message from the specified reader or buffer, length delimited. + * Decodes an ApiCallbackRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.SingularSessionRequest + * @memberof Router.ApiCallbackRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SingularSessionRequest} SingularSessionRequest + * @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 */ - SingularSessionRequest.decodeDelimited = function decodeDelimited(reader) { + ApiCallbackRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SingularSessionRequest message. + * Verifies an ApiCallbackRequest message. * @function verify - * @memberof BI.SingularSessionRequest + * @memberof Router.ApiCallbackRequest * @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) { + ApiCallbackRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); + 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]); if (error) - return "deviceIdentifiers." + error; + return "schedules." + error; } } - if (message.sharedData != null && message.hasOwnProperty("sharedData")) { - let error = $root.BI.SingularSharedData.verify(message.sharedData); - 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"; + 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 a SingularSessionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApiCallbackRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.SingularSessionRequest + * @memberof Router.ApiCallbackRequest * @static * @param {Object.} object Plain object - * @returns {BI.SingularSessionRequest} SingularSessionRequest + * @returns {Router.ApiCallbackRequest} ApiCallbackRequest */ - SingularSessionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SingularSessionRequest) + ApiCallbackRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Router.ApiCallbackRequest) return object; - let message = new $root.BI.SingularSessionRequest(); - if (object.deviceIdentifiers) { - if (!Array.isArray(object.deviceIdentifiers)) - throw TypeError(".BI.SingularSessionRequest.deviceIdentifiers: array expected"); - message.deviceIdentifiers = []; - for (let i = 0; i < object.deviceIdentifiers.length; ++i) { - if (typeof object.deviceIdentifiers[i] !== "object") - throw TypeError(".BI.SingularSessionRequest.deviceIdentifiers: object expected"); - message.deviceIdentifiers[i] = $root.BI.SingularDeviceIdentifier.fromObject(object.deviceIdentifiers[i]); + let message = new $root.Router.ApiCallbackRequest(); + if (object.resourceUid != null) + if (typeof object.resourceUid === "string") + $util.base64.decode(object.resourceUid, message.resourceUid = $util.newBuffer($util.base64.length(object.resourceUid)), 0); + else if (object.resourceUid.length >= 0) + message.resourceUid = object.resourceUid; + if (object.schedules) { + if (!Array.isArray(object.schedules)) + throw TypeError(".Router.ApiCallbackRequest.schedules: array expected"); + message.schedules = []; + for (let i = 0; i < object.schedules.length; ++i) { + if (typeof object.schedules[i] !== "object") + throw TypeError(".Router.ApiCallbackRequest.schedules: object expected"); + message.schedules[i] = $root.Router.ApiCallbackSchedule.fromObject(object.schedules[i]); } } - if (object.sharedData != null) { - if (typeof object.sharedData !== "object") - throw TypeError(".BI.SingularSessionRequest.sharedData: object expected"); - message.sharedData = $root.BI.SingularSharedData.fromObject(object.sharedData); + if (object.url != null) + message.url = String(object.url); + switch (object.serviceType) { + default: + if (typeof object.serviceType === "number") { + message.serviceType = object.serviceType; + break; + } + break; + case "UNSPECIFIED": + case 0: + message.serviceType = 0; + break; + case "KA": + case 1: + message.serviceType = 1; + break; + case "BI": + case 2: + message.serviceType = 2; + break; } - if (object.applicationVersion != null) - message.applicationVersion = String(object.applicationVersion); - if (object.install != null) - message.install = Boolean(object.install); - if (object.installTime != null) - if ($util.Long) - (message.installTime = $util.Long.fromValue(object.installTime)).unsigned = false; - else if (typeof object.installTime === "string") - message.installTime = parseInt(object.installTime, 10); - else if (typeof object.installTime === "number") - message.installTime = object.installTime; - else if (typeof object.installTime === "object") - message.installTime = new $util.LongBits(object.installTime.low >>> 0, object.installTime.high >>> 0).toNumber(); - if (object.updateTime != null) - if ($util.Long) - (message.updateTime = $util.Long.fromValue(object.updateTime)).unsigned = false; - else if (typeof object.updateTime === "string") - message.updateTime = parseInt(object.updateTime, 10); - else if (typeof object.updateTime === "number") - message.updateTime = object.updateTime; - else if (typeof object.updateTime === "object") - message.updateTime = new $util.LongBits(object.updateTime.low >>> 0, object.updateTime.high >>> 0).toNumber(); - if (object.installSource != null) - message.installSource = String(object.installSource); - if (object.installReceipt != null) - message.installReceipt = String(object.installReceipt); - if (object.openuri != null) - message.openuri = String(object.openuri); - if (object.ddlEnabled != null) - message.ddlEnabled = Boolean(object.ddlEnabled); - if (object.singularLinkResolveRequired != null) - message.singularLinkResolveRequired = Boolean(object.singularLinkResolveRequired); - if (object.installRef != null) - message.installRef = String(object.installRef); - if (object.metaRef != null) - message.metaRef = String(object.metaRef); - if (object.attributionToken != null) - message.attributionToken = String(object.attributionToken); return message; }; /** - * Creates a plain object from a SingularSessionRequest message. Also converts values to other types if specified. + * Creates a plain object from an ApiCallbackRequest message. Also converts values to other types if specified. * @function toObject - * @memberof BI.SingularSessionRequest + * @memberof Router.ApiCallbackRequest * @static - * @param {BI.SingularSessionRequest} message SingularSessionRequest + * @param {Router.ApiCallbackRequest} message ApiCallbackRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SingularSessionRequest.toObject = function toObject(message, options) { + ApiCallbackRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.deviceIdentifiers = []; + object.schedules = []; if (options.defaults) { - object.sharedData = null; - object.applicationVersion = ""; - object.install = false; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.installTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.installTime = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.updateTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.updateTime = options.longs === String ? "0" : 0; - object.installSource = ""; - object.installReceipt = ""; - object.openuri = ""; - object.ddlEnabled = false; - object.singularLinkResolveRequired = false; - object.installRef = ""; - object.metaRef = ""; - object.attributionToken = ""; + if (options.bytes === String) + object.resourceUid = ""; + else { + object.resourceUid = []; + if (options.bytes !== Array) + object.resourceUid = $util.newBuffer(object.resourceUid); + } + object.url = ""; + object.serviceType = options.enums === String ? "UNSPECIFIED" : 0; } - if (message.deviceIdentifiers && message.deviceIdentifiers.length) { - object.deviceIdentifiers = []; - for (let j = 0; j < message.deviceIdentifiers.length; ++j) - object.deviceIdentifiers[j] = $root.BI.SingularDeviceIdentifier.toObject(message.deviceIdentifiers[j], options); + if (message.resourceUid != null && message.hasOwnProperty("resourceUid")) + object.resourceUid = options.bytes === String ? $util.base64.encode(message.resourceUid, 0, message.resourceUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.resourceUid) : message.resourceUid; + if (message.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); } - if (message.sharedData != null && message.hasOwnProperty("sharedData")) - object.sharedData = $root.BI.SingularSharedData.toObject(message.sharedData, options); - if (message.applicationVersion != null && message.hasOwnProperty("applicationVersion")) - object.applicationVersion = message.applicationVersion; - if (message.install != null && message.hasOwnProperty("install")) - object.install = message.install; - if (message.installTime != null && message.hasOwnProperty("installTime")) - if (typeof message.installTime === "number") - object.installTime = options.longs === String ? String(message.installTime) : message.installTime; - else - object.installTime = options.longs === String ? $util.Long.prototype.toString.call(message.installTime) : options.longs === Number ? new $util.LongBits(message.installTime.low >>> 0, message.installTime.high >>> 0).toNumber() : message.installTime; - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - if (typeof 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")) - object.installSource = message.installSource; - if (message.installReceipt != null && message.hasOwnProperty("installReceipt")) - object.installReceipt = message.installReceipt; - if (message.openuri != null && message.hasOwnProperty("openuri")) - object.openuri = message.openuri; - if (message.ddlEnabled != null && message.hasOwnProperty("ddlEnabled")) - object.ddlEnabled = message.ddlEnabled; - if (message.singularLinkResolveRequired != null && message.hasOwnProperty("singularLinkResolveRequired")) - object.singularLinkResolveRequired = message.singularLinkResolveRequired; - if (message.installRef != null && message.hasOwnProperty("installRef")) - object.installRef = message.installRef; - if (message.metaRef != null && message.hasOwnProperty("metaRef")) - object.metaRef = message.metaRef; - if (message.attributionToken != null && message.hasOwnProperty("attributionToken")) - object.attributionToken = message.attributionToken; + if (message.url != null && message.hasOwnProperty("url")) + object.url = message.url; + if (message.serviceType != null && message.hasOwnProperty("serviceType")) + object.serviceType = options.enums === String ? $root.Router.ServiceType[message.serviceType] === undefined ? message.serviceType : $root.Router.ServiceType[message.serviceType] : message.serviceType; return object; }; /** - * Converts this SingularSessionRequest to JSON. + * Converts this ApiCallbackRequest to JSON. * @function toJSON - * @memberof BI.SingularSessionRequest + * @memberof Router.ApiCallbackRequest * @instance * @returns {Object.} JSON object */ - SingularSessionRequest.prototype.toJSON = function toJSON() { + ApiCallbackRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SingularSessionRequest + * Gets the default type url for ApiCallbackRequest * @function getTypeUrl - * @memberof BI.SingularSessionRequest + * @memberof Router.ApiCallbackRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SingularSessionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ApiCallbackRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.SingularSessionRequest"; + return typeUrlPrefix + "/Router.ApiCallbackRequest"; }; - return SingularSessionRequest; + return ApiCallbackRequest; })(); - BI.SingularEventRequest = (function() { + Router.ApiCallbackSchedule = (function() { /** - * Properties of a SingularEventRequest. - * @memberof BI - * @interface ISingularEventRequest - * @property {Array.|null} [deviceIdentifiers] SingularEventRequest deviceIdentifiers - * @property {BI.ISingularSharedData|null} [sharedData] SingularEventRequest sharedData - * @property {string|null} [eventName] SingularEventRequest eventName + * Properties of an ApiCallbackSchedule. + * @memberof Router + * @interface IApiCallbackSchedule + * @property {string|null} [schedule] ApiCallbackSchedule schedule + * @property {Uint8Array|null} [data] ApiCallbackSchedule data */ /** - * Constructs a new SingularEventRequest. - * @memberof BI - * @classdesc Represents a SingularEventRequest. - * @implements ISingularEventRequest + * Constructs a new ApiCallbackSchedule. + * @memberof Router + * @classdesc Represents an ApiCallbackSchedule. + * @implements IApiCallbackSchedule * @constructor - * @param {BI.ISingularEventRequest=} [properties] Properties to set + * @param {Router.IApiCallbackSchedule=} [properties] Properties to set */ - function SingularEventRequest(properties) { - this.deviceIdentifiers = []; + function ApiCallbackSchedule(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -244526,106 +277048,89 @@ export const BI = $root.BI = (() => { } /** - * SingularEventRequest deviceIdentifiers. - * @member {Array.} deviceIdentifiers - * @memberof BI.SingularEventRequest - * @instance - */ - SingularEventRequest.prototype.deviceIdentifiers = $util.emptyArray; - - /** - * SingularEventRequest sharedData. - * @member {BI.ISingularSharedData|null|undefined} sharedData - * @memberof BI.SingularEventRequest + * ApiCallbackSchedule schedule. + * @member {string} schedule + * @memberof Router.ApiCallbackSchedule * @instance */ - SingularEventRequest.prototype.sharedData = null; + ApiCallbackSchedule.prototype.schedule = ""; /** - * SingularEventRequest eventName. - * @member {string} eventName - * @memberof BI.SingularEventRequest + * ApiCallbackSchedule data. + * @member {Uint8Array} data + * @memberof Router.ApiCallbackSchedule * @instance */ - SingularEventRequest.prototype.eventName = ""; + ApiCallbackSchedule.prototype.data = $util.newBuffer([]); /** - * Creates a new SingularEventRequest instance using the specified properties. + * Creates a new ApiCallbackSchedule instance using the specified properties. * @function create - * @memberof BI.SingularEventRequest + * @memberof Router.ApiCallbackSchedule * @static - * @param {BI.ISingularEventRequest=} [properties] Properties to set - * @returns {BI.SingularEventRequest} SingularEventRequest instance + * @param {Router.IApiCallbackSchedule=} [properties] Properties to set + * @returns {Router.ApiCallbackSchedule} ApiCallbackSchedule instance */ - SingularEventRequest.create = function create(properties) { - return new SingularEventRequest(properties); + ApiCallbackSchedule.create = function create(properties) { + return new ApiCallbackSchedule(properties); }; /** - * Encodes the specified SingularEventRequest message. Does not implicitly {@link BI.SingularEventRequest.verify|verify} messages. + * Encodes the specified ApiCallbackSchedule message. Does not implicitly {@link Router.ApiCallbackSchedule.verify|verify} messages. * @function encode - * @memberof BI.SingularEventRequest + * @memberof Router.ApiCallbackSchedule * @static - * @param {BI.ISingularEventRequest} message SingularEventRequest message or plain object to encode + * @param {Router.IApiCallbackSchedule} message ApiCallbackSchedule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SingularEventRequest.encode = function encode(message, writer) { + ApiCallbackSchedule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deviceIdentifiers != null && message.deviceIdentifiers.length) - for (let i = 0; i < message.deviceIdentifiers.length; ++i) - $root.BI.SingularDeviceIdentifier.encode(message.deviceIdentifiers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.sharedData != null && Object.hasOwnProperty.call(message, "sharedData")) - $root.BI.SingularSharedData.encode(message.sharedData, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.eventName != null && Object.hasOwnProperty.call(message, "eventName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.eventName); + if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.schedule); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); return writer; }; /** - * Encodes the specified SingularEventRequest message, length delimited. Does not implicitly {@link BI.SingularEventRequest.verify|verify} messages. + * Encodes the specified ApiCallbackSchedule message, length delimited. Does not implicitly {@link Router.ApiCallbackSchedule.verify|verify} messages. * @function encodeDelimited - * @memberof BI.SingularEventRequest + * @memberof Router.ApiCallbackSchedule * @static - * @param {BI.ISingularEventRequest} message SingularEventRequest message or plain object to encode + * @param {Router.IApiCallbackSchedule} message ApiCallbackSchedule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SingularEventRequest.encodeDelimited = function encodeDelimited(message, writer) { + ApiCallbackSchedule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SingularEventRequest message from the specified reader or buffer. + * Decodes an ApiCallbackSchedule message from the specified reader or buffer. * @function decode - * @memberof BI.SingularEventRequest + * @memberof Router.ApiCallbackSchedule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.SingularEventRequest} SingularEventRequest + * @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 */ - SingularEventRequest.decode = function decode(reader, length) { + ApiCallbackSchedule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SingularEventRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.ApiCallbackSchedule(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.deviceIdentifiers && message.deviceIdentifiers.length)) - message.deviceIdentifiers = []; - message.deviceIdentifiers.push($root.BI.SingularDeviceIdentifier.decode(reader, reader.uint32())); + message.schedule = reader.string(); break; } case 2: { - message.sharedData = $root.BI.SingularSharedData.decode(reader, reader.uint32()); - break; - } - case 3: { - message.eventName = reader.string(); + message.data = reader.bytes(); break; } default: @@ -244637,162 +277142,142 @@ export const BI = $root.BI = (() => { }; /** - * Decodes a SingularEventRequest message from the specified reader or buffer, length delimited. + * Decodes an ApiCallbackSchedule message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.SingularEventRequest + * @memberof Router.ApiCallbackSchedule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.SingularEventRequest} SingularEventRequest + * @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 */ - SingularEventRequest.decodeDelimited = function decodeDelimited(reader) { + ApiCallbackSchedule.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SingularEventRequest message. + * Verifies an ApiCallbackSchedule message. * @function verify - * @memberof BI.SingularEventRequest + * @memberof Router.ApiCallbackSchedule * @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) { + ApiCallbackSchedule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "deviceIdentifiers." + error; - } - } - if (message.sharedData != null && message.hasOwnProperty("sharedData")) { - let error = $root.BI.SingularSharedData.verify(message.sharedData); - if (error) - return "sharedData." + error; - } - if (message.eventName != null && message.hasOwnProperty("eventName")) - if (!$util.isString(message.eventName)) - return "eventName: string expected"; + 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 a SingularEventRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApiCallbackSchedule message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.SingularEventRequest + * @memberof Router.ApiCallbackSchedule * @static * @param {Object.} object Plain object - * @returns {BI.SingularEventRequest} SingularEventRequest + * @returns {Router.ApiCallbackSchedule} ApiCallbackSchedule */ - SingularEventRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SingularEventRequest) + ApiCallbackSchedule.fromObject = function fromObject(object) { + if (object instanceof $root.Router.ApiCallbackSchedule) return object; - let message = new $root.BI.SingularEventRequest(); - if (object.deviceIdentifiers) { - if (!Array.isArray(object.deviceIdentifiers)) - throw TypeError(".BI.SingularEventRequest.deviceIdentifiers: array expected"); - message.deviceIdentifiers = []; - for (let i = 0; i < object.deviceIdentifiers.length; ++i) { - if (typeof object.deviceIdentifiers[i] !== "object") - throw TypeError(".BI.SingularEventRequest.deviceIdentifiers: object expected"); - message.deviceIdentifiers[i] = $root.BI.SingularDeviceIdentifier.fromObject(object.deviceIdentifiers[i]); - } - } - if (object.sharedData != null) { - if (typeof object.sharedData !== "object") - throw TypeError(".BI.SingularEventRequest.sharedData: object expected"); - message.sharedData = $root.BI.SingularSharedData.fromObject(object.sharedData); - } - if (object.eventName != null) - message.eventName = String(object.eventName); + let message = new $root.Router.ApiCallbackSchedule(); + if (object.schedule != null) + message.schedule = String(object.schedule); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; return message; }; /** - * Creates a plain object from a SingularEventRequest message. Also converts values to other types if specified. + * Creates a plain object from an ApiCallbackSchedule message. Also converts values to other types if specified. * @function toObject - * @memberof BI.SingularEventRequest + * @memberof Router.ApiCallbackSchedule * @static - * @param {BI.SingularEventRequest} message SingularEventRequest + * @param {Router.ApiCallbackSchedule} message ApiCallbackSchedule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SingularEventRequest.toObject = function toObject(message, options) { + ApiCallbackSchedule.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.deviceIdentifiers = []; if (options.defaults) { - object.sharedData = null; - object.eventName = ""; - } - if (message.deviceIdentifiers && message.deviceIdentifiers.length) { - object.deviceIdentifiers = []; - for (let j = 0; j < message.deviceIdentifiers.length; ++j) - object.deviceIdentifiers[j] = $root.BI.SingularDeviceIdentifier.toObject(message.deviceIdentifiers[j], options); + object.schedule = ""; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } } - if (message.sharedData != null && message.hasOwnProperty("sharedData")) - object.sharedData = $root.BI.SingularSharedData.toObject(message.sharedData, options); - if (message.eventName != null && message.hasOwnProperty("eventName")) - object.eventName = message.eventName; + if (message.schedule != null && message.hasOwnProperty("schedule")) + object.schedule = message.schedule; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; return object; }; /** - * Converts this SingularEventRequest to JSON. + * Converts this ApiCallbackSchedule to JSON. * @function toJSON - * @memberof BI.SingularEventRequest + * @memberof Router.ApiCallbackSchedule * @instance * @returns {Object.} JSON object */ - SingularEventRequest.prototype.toJSON = function toJSON() { + ApiCallbackSchedule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SingularEventRequest + * Gets the default type url for ApiCallbackSchedule * @function getTypeUrl - * @memberof BI.SingularEventRequest + * @memberof Router.ApiCallbackSchedule * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SingularEventRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ApiCallbackSchedule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.SingularEventRequest"; + return typeUrlPrefix + "/Router.ApiCallbackSchedule"; }; - return SingularEventRequest; + return ApiCallbackSchedule; })(); - BI.ActivePamCountRequest = (function() { + Router.RouterScheduledActions = (function() { /** - * Properties of an ActivePamCountRequest. - * @memberof BI - * @interface IActivePamCountRequest - * @property {number|null} [enterpriseId] ActivePamCountRequest enterpriseId + * Properties of a RouterScheduledActions. + * @memberof Router + * @interface IRouterScheduledActions + * @property {string|null} [schedule] RouterScheduledActions schedule + * @property {Array.|null} [resourceUids] RouterScheduledActions resourceUids */ /** - * Constructs a new ActivePamCountRequest. - * @memberof BI - * @classdesc Represents an ActivePamCountRequest. - * @implements IActivePamCountRequest + * Constructs a new RouterScheduledActions. + * @memberof Router + * @classdesc Represents a RouterScheduledActions. + * @implements IRouterScheduledActions * @constructor - * @param {BI.IActivePamCountRequest=} [properties] Properties to set + * @param {Router.IRouterScheduledActions=} [properties] Properties to set */ - function ActivePamCountRequest(properties) { + function RouterScheduledActions(properties) { + this.resourceUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -244800,75 +277285,92 @@ export const BI = $root.BI = (() => { } /** - * ActivePamCountRequest enterpriseId. - * @member {number} enterpriseId - * @memberof BI.ActivePamCountRequest + * RouterScheduledActions schedule. + * @member {string} schedule + * @memberof Router.RouterScheduledActions * @instance */ - ActivePamCountRequest.prototype.enterpriseId = 0; + RouterScheduledActions.prototype.schedule = ""; /** - * Creates a new ActivePamCountRequest instance using the specified properties. + * RouterScheduledActions resourceUids. + * @member {Array.} resourceUids + * @memberof Router.RouterScheduledActions + * @instance + */ + RouterScheduledActions.prototype.resourceUids = $util.emptyArray; + + /** + * Creates a new RouterScheduledActions instance using the specified properties. * @function create - * @memberof BI.ActivePamCountRequest + * @memberof Router.RouterScheduledActions * @static - * @param {BI.IActivePamCountRequest=} [properties] Properties to set - * @returns {BI.ActivePamCountRequest} ActivePamCountRequest instance + * @param {Router.IRouterScheduledActions=} [properties] Properties to set + * @returns {Router.RouterScheduledActions} RouterScheduledActions instance */ - ActivePamCountRequest.create = function create(properties) { - return new ActivePamCountRequest(properties); + RouterScheduledActions.create = function create(properties) { + return new RouterScheduledActions(properties); }; /** - * Encodes the specified ActivePamCountRequest message. Does not implicitly {@link BI.ActivePamCountRequest.verify|verify} messages. + * Encodes the specified RouterScheduledActions message. Does not implicitly {@link Router.RouterScheduledActions.verify|verify} messages. * @function encode - * @memberof BI.ActivePamCountRequest + * @memberof Router.RouterScheduledActions * @static - * @param {BI.IActivePamCountRequest} message ActivePamCountRequest message or plain object to encode + * @param {Router.IRouterScheduledActions} message RouterScheduledActions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ActivePamCountRequest.encode = function encode(message, writer) { + RouterScheduledActions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.enterpriseId); + if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.schedule); + if (message.resourceUids != null && message.resourceUids.length) + for (let i = 0; i < message.resourceUids.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceUids[i]); return writer; }; /** - * Encodes the specified ActivePamCountRequest message, length delimited. Does not implicitly {@link BI.ActivePamCountRequest.verify|verify} messages. + * Encodes the specified RouterScheduledActions message, length delimited. Does not implicitly {@link Router.RouterScheduledActions.verify|verify} messages. * @function encodeDelimited - * @memberof BI.ActivePamCountRequest + * @memberof Router.RouterScheduledActions * @static - * @param {BI.IActivePamCountRequest} message ActivePamCountRequest message or plain object to encode + * @param {Router.IRouterScheduledActions} message RouterScheduledActions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ActivePamCountRequest.encodeDelimited = function encodeDelimited(message, writer) { + RouterScheduledActions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ActivePamCountRequest message from the specified reader or buffer. + * Decodes a RouterScheduledActions message from the specified reader or buffer. * @function decode - * @memberof BI.ActivePamCountRequest + * @memberof Router.RouterScheduledActions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.ActivePamCountRequest} ActivePamCountRequest + * @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 */ - ActivePamCountRequest.decode = function decode(reader, length) { + RouterScheduledActions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ActivePamCountRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterScheduledActions(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.enterpriseId = reader.int32(); + message.schedule = reader.string(); + break; + } + case 2: { + if (!(message.resourceUids && message.resourceUids.length)) + message.resourceUids = []; + message.resourceUids.push(reader.bytes()); break; } default: @@ -244880,122 +277382,147 @@ export const BI = $root.BI = (() => { }; /** - * Decodes an ActivePamCountRequest message from the specified reader or buffer, length delimited. + * Decodes a RouterScheduledActions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.ActivePamCountRequest + * @memberof Router.RouterScheduledActions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.ActivePamCountRequest} ActivePamCountRequest + * @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 */ - ActivePamCountRequest.decodeDelimited = function decodeDelimited(reader) { + RouterScheduledActions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ActivePamCountRequest message. + * Verifies a RouterScheduledActions message. * @function verify - * @memberof BI.ActivePamCountRequest + * @memberof Router.RouterScheduledActions * @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) { + RouterScheduledActions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; + 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 an ActivePamCountRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RouterScheduledActions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.ActivePamCountRequest + * @memberof Router.RouterScheduledActions * @static * @param {Object.} object Plain object - * @returns {BI.ActivePamCountRequest} ActivePamCountRequest + * @returns {Router.RouterScheduledActions} RouterScheduledActions */ - ActivePamCountRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.ActivePamCountRequest) + RouterScheduledActions.fromObject = function fromObject(object) { + if (object instanceof $root.Router.RouterScheduledActions) return object; - let message = new $root.BI.ActivePamCountRequest(); - if (object.enterpriseId != null) - message.enterpriseId = object.enterpriseId | 0; + let message = new $root.Router.RouterScheduledActions(); + if (object.schedule != null) + message.schedule = String(object.schedule); + if (object.resourceUids) { + if (!Array.isArray(object.resourceUids)) + throw TypeError(".Router.RouterScheduledActions.resourceUids: array expected"); + message.resourceUids = []; + for (let i = 0; i < object.resourceUids.length; ++i) + if (typeof object.resourceUids[i] === "string") + $util.base64.decode(object.resourceUids[i], message.resourceUids[i] = $util.newBuffer($util.base64.length(object.resourceUids[i])), 0); + else if (object.resourceUids[i].length >= 0) + message.resourceUids[i] = object.resourceUids[i]; + } return message; }; /** - * Creates a plain object from an ActivePamCountRequest message. Also converts values to other types if specified. + * Creates a plain object from a RouterScheduledActions message. Also converts values to other types if specified. * @function toObject - * @memberof BI.ActivePamCountRequest + * @memberof Router.RouterScheduledActions * @static - * @param {BI.ActivePamCountRequest} message ActivePamCountRequest + * @param {Router.RouterScheduledActions} message RouterScheduledActions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ActivePamCountRequest.toObject = function toObject(message, options) { + RouterScheduledActions.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.resourceUids = []; if (options.defaults) - object.enterpriseId = 0; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - object.enterpriseId = message.enterpriseId; + object.schedule = ""; + if (message.schedule != null && message.hasOwnProperty("schedule")) + object.schedule = message.schedule; + if (message.resourceUids && message.resourceUids.length) { + object.resourceUids = []; + for (let j = 0; j < message.resourceUids.length; ++j) + object.resourceUids[j] = options.bytes === String ? $util.base64.encode(message.resourceUids[j], 0, message.resourceUids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.resourceUids[j]) : message.resourceUids[j]; + } return object; }; /** - * Converts this ActivePamCountRequest to JSON. + * Converts this RouterScheduledActions to JSON. * @function toJSON - * @memberof BI.ActivePamCountRequest + * @memberof Router.RouterScheduledActions * @instance * @returns {Object.} JSON object */ - ActivePamCountRequest.prototype.toJSON = function toJSON() { + RouterScheduledActions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ActivePamCountRequest + * Gets the default type url for RouterScheduledActions * @function getTypeUrl - * @memberof BI.ActivePamCountRequest + * @memberof Router.RouterScheduledActions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ActivePamCountRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RouterScheduledActions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.ActivePamCountRequest"; + return typeUrlPrefix + "/Router.RouterScheduledActions"; }; - return ActivePamCountRequest; + return RouterScheduledActions; })(); - BI.ActivePamCountResponse = (function() { + Router.RouterRecordsRotationRequest = (function() { /** - * Properties of an ActivePamCountResponse. - * @memberof BI - * @interface IActivePamCountResponse - * @property {number|null} [pamCount] ActivePamCountResponse pamCount + * Properties of a RouterRecordsRotationRequest. + * @memberof Router + * @interface IRouterRecordsRotationRequest + * @property {Array.|null} [rotationSchedules] RouterRecordsRotationRequest rotationSchedules */ /** - * Constructs a new ActivePamCountResponse. - * @memberof BI - * @classdesc Represents an ActivePamCountResponse. - * @implements IActivePamCountResponse + * Constructs a new RouterRecordsRotationRequest. + * @memberof Router + * @classdesc Represents a RouterRecordsRotationRequest. + * @implements IRouterRecordsRotationRequest * @constructor - * @param {BI.IActivePamCountResponse=} [properties] Properties to set + * @param {Router.IRouterRecordsRotationRequest=} [properties] Properties to set */ - function ActivePamCountResponse(properties) { + function RouterRecordsRotationRequest(properties) { + this.rotationSchedules = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -245003,75 +277530,78 @@ export const BI = $root.BI = (() => { } /** - * ActivePamCountResponse pamCount. - * @member {number} pamCount - * @memberof BI.ActivePamCountResponse + * RouterRecordsRotationRequest rotationSchedules. + * @member {Array.} rotationSchedules + * @memberof Router.RouterRecordsRotationRequest * @instance */ - ActivePamCountResponse.prototype.pamCount = 0; + RouterRecordsRotationRequest.prototype.rotationSchedules = $util.emptyArray; /** - * Creates a new ActivePamCountResponse instance using the specified properties. + * Creates a new RouterRecordsRotationRequest instance using the specified properties. * @function create - * @memberof BI.ActivePamCountResponse + * @memberof Router.RouterRecordsRotationRequest * @static - * @param {BI.IActivePamCountResponse=} [properties] Properties to set - * @returns {BI.ActivePamCountResponse} ActivePamCountResponse instance + * @param {Router.IRouterRecordsRotationRequest=} [properties] Properties to set + * @returns {Router.RouterRecordsRotationRequest} RouterRecordsRotationRequest instance */ - ActivePamCountResponse.create = function create(properties) { - return new ActivePamCountResponse(properties); + RouterRecordsRotationRequest.create = function create(properties) { + return new RouterRecordsRotationRequest(properties); }; /** - * Encodes the specified ActivePamCountResponse message. Does not implicitly {@link BI.ActivePamCountResponse.verify|verify} messages. + * Encodes the specified RouterRecordsRotationRequest message. Does not implicitly {@link Router.RouterRecordsRotationRequest.verify|verify} messages. * @function encode - * @memberof BI.ActivePamCountResponse + * @memberof Router.RouterRecordsRotationRequest * @static - * @param {BI.IActivePamCountResponse} message ActivePamCountResponse message or plain object to encode + * @param {Router.IRouterRecordsRotationRequest} message RouterRecordsRotationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ActivePamCountResponse.encode = function encode(message, writer) { + RouterRecordsRotationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pamCount != null && Object.hasOwnProperty.call(message, "pamCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.pamCount); + if (message.rotationSchedules != null && message.rotationSchedules.length) + for (let i = 0; i < message.rotationSchedules.length; ++i) + $root.Router.RouterScheduledActions.encode(message.rotationSchedules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ActivePamCountResponse message, length delimited. Does not implicitly {@link BI.ActivePamCountResponse.verify|verify} messages. + * Encodes the specified RouterRecordsRotationRequest message, length delimited. Does not implicitly {@link Router.RouterRecordsRotationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof BI.ActivePamCountResponse + * @memberof Router.RouterRecordsRotationRequest * @static - * @param {BI.IActivePamCountResponse} message ActivePamCountResponse message or plain object to encode + * @param {Router.IRouterRecordsRotationRequest} message RouterRecordsRotationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ActivePamCountResponse.encodeDelimited = function encodeDelimited(message, writer) { + RouterRecordsRotationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ActivePamCountResponse message from the specified reader or buffer. + * Decodes a RouterRecordsRotationRequest message from the specified reader or buffer. * @function decode - * @memberof BI.ActivePamCountResponse + * @memberof Router.RouterRecordsRotationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {BI.ActivePamCountResponse} ActivePamCountResponse + * @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 */ - ActivePamCountResponse.decode = function decode(reader, length) { + RouterRecordsRotationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ActivePamCountResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterRecordsRotationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.pamCount = reader.int32(); + if (!(message.rotationSchedules && message.rotationSchedules.length)) + message.rotationSchedules = []; + message.rotationSchedules.push($root.Router.RouterScheduledActions.decode(reader, reader.uint32())); break; } default: @@ -245083,1063 +277613,696 @@ export const BI = $root.BI = (() => { }; /** - * Decodes an ActivePamCountResponse message from the specified reader or buffer, length delimited. + * Decodes a RouterRecordsRotationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof BI.ActivePamCountResponse + * @memberof Router.RouterRecordsRotationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.ActivePamCountResponse} ActivePamCountResponse + * @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 */ - ActivePamCountResponse.decodeDelimited = function decodeDelimited(reader) { + RouterRecordsRotationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ActivePamCountResponse message. + * Verifies a RouterRecordsRotationRequest message. * @function verify - * @memberof BI.ActivePamCountResponse + * @memberof Router.RouterRecordsRotationRequest * @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) { + RouterRecordsRotationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pamCount != null && message.hasOwnProperty("pamCount")) - if (!$util.isInteger(message.pamCount)) - return "pamCount: integer expected"; + 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]); + if (error) + return "rotationSchedules." + error; + } + } return null; }; /** - * Creates an ActivePamCountResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RouterRecordsRotationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof BI.ActivePamCountResponse + * @memberof Router.RouterRecordsRotationRequest * @static * @param {Object.} object Plain object - * @returns {BI.ActivePamCountResponse} ActivePamCountResponse + * @returns {Router.RouterRecordsRotationRequest} RouterRecordsRotationRequest */ - ActivePamCountResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.ActivePamCountResponse) + RouterRecordsRotationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Router.RouterRecordsRotationRequest) return object; - let message = new $root.BI.ActivePamCountResponse(); - if (object.pamCount != null) - message.pamCount = object.pamCount | 0; + let message = new $root.Router.RouterRecordsRotationRequest(); + if (object.rotationSchedules) { + if (!Array.isArray(object.rotationSchedules)) + throw TypeError(".Router.RouterRecordsRotationRequest.rotationSchedules: array expected"); + message.rotationSchedules = []; + for (let i = 0; i < object.rotationSchedules.length; ++i) { + if (typeof object.rotationSchedules[i] !== "object") + throw TypeError(".Router.RouterRecordsRotationRequest.rotationSchedules: object expected"); + message.rotationSchedules[i] = $root.Router.RouterScheduledActions.fromObject(object.rotationSchedules[i]); + } + } return message; }; /** - * Creates a plain object from an ActivePamCountResponse message. Also converts values to other types if specified. + * Creates a plain object from a RouterRecordsRotationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof BI.ActivePamCountResponse + * @memberof Router.RouterRecordsRotationRequest * @static - * @param {BI.ActivePamCountResponse} message ActivePamCountResponse + * @param {Router.RouterRecordsRotationRequest} message RouterRecordsRotationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ActivePamCountResponse.toObject = function toObject(message, options) { + RouterRecordsRotationRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.pamCount = 0; - if (message.pamCount != null && message.hasOwnProperty("pamCount")) - object.pamCount = message.pamCount; + if (options.arrays || options.defaults) + object.rotationSchedules = []; + if (message.rotationSchedules && message.rotationSchedules.length) { + object.rotationSchedules = []; + for (let j = 0; j < message.rotationSchedules.length; ++j) + object.rotationSchedules[j] = $root.Router.RouterScheduledActions.toObject(message.rotationSchedules[j], options); + } return object; }; /** - * Converts this ActivePamCountResponse to JSON. + * Converts this RouterRecordsRotationRequest to JSON. * @function toJSON - * @memberof BI.ActivePamCountResponse + * @memberof Router.RouterRecordsRotationRequest * @instance * @returns {Object.} JSON object */ - ActivePamCountResponse.prototype.toJSON = function toJSON() { + RouterRecordsRotationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ActivePamCountResponse + * Gets the default type url for RouterRecordsRotationRequest * @function getTypeUrl - * @memberof BI.ActivePamCountResponse + * @memberof Router.RouterRecordsRotationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ActivePamCountResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RouterRecordsRotationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/BI.ActivePamCountResponse"; + return typeUrlPrefix + "/Router.RouterRecordsRotationRequest"; }; - return ActivePamCountResponse; + return RouterRecordsRotationRequest; })(); - return BI; -})(); - -export const google = $root.google = (() => { - - /** - * Namespace google. - * @exports google - * @namespace - */ - const google = {}; - - google.protobuf = (function() { + Router.ConnectionParameters = (function() { /** - * Namespace protobuf. - * @memberof google - * @namespace + * Properties of a ConnectionParameters. + * @memberof Router + * @interface IConnectionParameters + * @property {Uint8Array|null} [connectionUid] ConnectionParameters connectionUid + * @property {Uint8Array|null} [recordUid] ConnectionParameters recordUid + * @property {number|null} [userId] ConnectionParameters userId + * @property {Uint8Array|null} [controllerUid] ConnectionParameters controllerUid + * @property {Uint8Array|null} [credentialsRecordUid] ConnectionParameters credentialsRecordUid */ - const protobuf = {}; - - protobuf.Struct = (function() { - - /** - * Properties of a Struct. - * @memberof google.protobuf - * @interface IStruct - * @property {Object.|null} [fields] Struct fields - */ - - /** - * Constructs a new Struct. - * @memberof google.protobuf - * @classdesc Represents a Struct. - * @implements IStruct - * @constructor - * @param {google.protobuf.IStruct=} [properties] Properties to set - */ - function Struct(properties) { - this.fields = {}; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - /** - * Struct fields. - * @member {Object.} fields - * @memberof google.protobuf.Struct - * @instance - */ - Struct.prototype.fields = $util.emptyObject; - - /** - * Creates a new Struct instance using the specified properties. - * @function create - * @memberof google.protobuf.Struct - * @static - * @param {google.protobuf.IStruct=} [properties] Properties to set - * @returns {google.protobuf.Struct} Struct instance - */ - Struct.create = function create(properties) { - return new Struct(properties); - }; - - /** - * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.fields != null && Object.hasOwnProperty.call(message, "fields")) - for (let keys = Object.keys(message.fields), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.protobuf.Value.encode(message.fields[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - 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 - * @memberof google.protobuf.Struct - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Struct(), key, value; - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (message.fields === $util.emptyObject) - message.fields = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.fields[key] = value; - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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]]); - 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 - * @memberof google.protobuf.Struct - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.Struct} Struct - */ - Struct.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Struct) - return object; - let message = new $root.google.protobuf.Struct(); - if (object.fields) { - if (typeof object.fields !== "object") - throw TypeError(".google.protobuf.Struct.fields: object expected"); - message.fields = {}; - for (let keys = Object.keys(object.fields), i = 0; i < keys.length; ++i) { - if (typeof object.fields[keys[i]] !== "object") - throw TypeError(".google.protobuf.Struct.fields: object expected"); - message.fields[keys[i]] = $root.google.protobuf.Value.fromObject(object.fields[keys[i]]); - } - } - return message; - }; - - /** - * Creates a plain object from a Struct message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.Struct - * @static - * @param {google.protobuf.Struct} message Struct - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Struct.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.objects || options.defaults) - object.fields = {}; - let keys2; - if (message.fields && (keys2 = Object.keys(message.fields)).length) { - object.fields = {}; - for (let j = 0; j < keys2.length; ++j) - object.fields[keys2[j]] = $root.google.protobuf.Value.toObject(message.fields[keys2[j]], options); - } - return object; - }; - - /** - * Converts this Struct to JSON. - * @function toJSON - * @memberof google.protobuf.Struct - * @instance - * @returns {Object.} JSON object - */ - Struct.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Struct - * @function getTypeUrl - * @memberof google.protobuf.Struct - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Struct.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.Struct"; - }; - - return Struct; - })(); - - protobuf.Value = (function() { - - /** - * Properties of a Value. - * @memberof google.protobuf - * @interface IValue - * @property {google.protobuf.NullValue|null} [nullValue] Value nullValue - * @property {number|null} [numberValue] Value numberValue - * @property {string|null} [stringValue] Value stringValue - * @property {boolean|null} [boolValue] Value boolValue - * @property {google.protobuf.IStruct|null} [structValue] Value structValue - * @property {google.protobuf.IListValue|null} [listValue] Value listValue - */ - - /** - * Constructs a new Value. - * @memberof google.protobuf - * @classdesc Represents a Value. - * @implements IValue - * @constructor - * @param {google.protobuf.IValue=} [properties] Properties to set - */ - function Value(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Value nullValue. - * @member {google.protobuf.NullValue|null|undefined} nullValue - * @memberof google.protobuf.Value - * @instance - */ - Value.prototype.nullValue = null; - - /** - * Value numberValue. - * @member {number|null|undefined} numberValue - * @memberof google.protobuf.Value - * @instance - */ - Value.prototype.numberValue = null; - - /** - * Value stringValue. - * @member {string|null|undefined} stringValue - * @memberof google.protobuf.Value - * @instance - */ - Value.prototype.stringValue = null; + /** + * Constructs a new ConnectionParameters. + * @memberof Router + * @classdesc Represents a ConnectionParameters. + * @implements IConnectionParameters + * @constructor + * @param {Router.IConnectionParameters=} [properties] Properties to set + */ + function ConnectionParameters(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Value boolValue. - * @member {boolean|null|undefined} boolValue - * @memberof google.protobuf.Value - * @instance - */ - Value.prototype.boolValue = null; + /** + * ConnectionParameters connectionUid. + * @member {Uint8Array} connectionUid + * @memberof Router.ConnectionParameters + * @instance + */ + ConnectionParameters.prototype.connectionUid = $util.newBuffer([]); - /** - * Value structValue. - * @member {google.protobuf.IStruct|null|undefined} structValue - * @memberof google.protobuf.Value - * @instance - */ - Value.prototype.structValue = null; + /** + * ConnectionParameters recordUid. + * @member {Uint8Array} recordUid + * @memberof Router.ConnectionParameters + * @instance + */ + ConnectionParameters.prototype.recordUid = $util.newBuffer([]); - /** - * Value listValue. - * @member {google.protobuf.IListValue|null|undefined} listValue - * @memberof google.protobuf.Value - * @instance - */ - Value.prototype.listValue = null; + /** + * ConnectionParameters userId. + * @member {number} userId + * @memberof Router.ConnectionParameters + * @instance + */ + ConnectionParameters.prototype.userId = 0; - // OneOf field names bound to virtual getters and setters - let $oneOfFields; + /** + * ConnectionParameters controllerUid. + * @member {Uint8Array} controllerUid + * @memberof Router.ConnectionParameters + * @instance + */ + ConnectionParameters.prototype.controllerUid = $util.newBuffer([]); - /** - * Value kind. - * @member {"nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"|undefined} kind - * @memberof google.protobuf.Value - * @instance - */ - Object.defineProperty(Value.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["nullValue", "numberValue", "stringValue", "boolValue", "structValue", "listValue"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * ConnectionParameters credentialsRecordUid. + * @member {Uint8Array} credentialsRecordUid + * @memberof Router.ConnectionParameters + * @instance + */ + ConnectionParameters.prototype.credentialsRecordUid = $util.newBuffer([]); - /** - * Creates a new Value instance using the specified properties. - * @function create - * @memberof google.protobuf.Value - * @static - * @param {google.protobuf.IValue=} [properties] Properties to set - * @returns {google.protobuf.Value} Value instance - */ - Value.create = function create(properties) { - return new Value(properties); - }; + /** + * Creates a new ConnectionParameters instance using the specified properties. + * @function create + * @memberof Router.ConnectionParameters + * @static + * @param {Router.IConnectionParameters=} [properties] Properties to set + * @returns {Router.ConnectionParameters} ConnectionParameters instance + */ + ConnectionParameters.create = function create(properties) { + return new ConnectionParameters(properties); + }; - /** - * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nullValue != null && Object.hasOwnProperty.call(message, "nullValue")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.nullValue); - if (message.numberValue != null && Object.hasOwnProperty.call(message, "numberValue")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.numberValue); - if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); - if (message.boolValue != null && Object.hasOwnProperty.call(message, "boolValue")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolValue); - if (message.structValue != null && Object.hasOwnProperty.call(message, "structValue")) - $root.google.protobuf.Struct.encode(message.structValue, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.listValue != null && Object.hasOwnProperty.call(message, "listValue")) - $root.google.protobuf.ListValue.encode(message.listValue, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified ConnectionParameters message. Does not implicitly {@link Router.ConnectionParameters.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.connectionUid != null && Object.hasOwnProperty.call(message, "connectionUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.connectionUid); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); + if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.userId); + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.controllerUid); + if (message.credentialsRecordUid != null && Object.hasOwnProperty.call(message, "credentialsRecordUid")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.credentialsRecordUid); + 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(); - }; + /** + * 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 Value message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Value(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.nullValue = reader.int32(); - break; - } - case 2: { - message.numberValue = reader.double(); - break; - } - case 3: { - message.stringValue = reader.string(); - break; - } - case 4: { - message.boolValue = reader.bool(); - break; - } - case 5: { - message.structValue = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - } - case 6: { - message.listValue = $root.google.protobuf.ListValue.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a ConnectionParameters message from the specified reader or buffer. + * @function decode + * @memberof Router.ConnectionParameters + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.ConnectionParameters(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.connectionUid = reader.bytes(); break; } - } - 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.nullValue != null && message.hasOwnProperty("nullValue")) { - properties.kind = 1; - switch (message.nullValue) { - default: - return "nullValue: enum value expected"; - case 0: + case 2: { + message.recordUid = reader.bytes(); 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); - if (error) - return "structValue." + error; + case 3: { + message.userId = reader.int32(); + break; } - } - 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); - if (error) - return "listValue." + error; + case 4: { + message.controllerUid = reader.bytes(); + break; } - } - return null; - }; - - /** - * Creates a Value message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.Value - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.Value} Value - */ - Value.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Value) - return object; - let message = new $root.google.protobuf.Value(); - switch (object.nullValue) { - default: - if (typeof object.nullValue === "number") { - message.nullValue = object.nullValue; + case 5: { + message.credentialsRecordUid = reader.bytes(); break; } + default: + reader.skipType(tag & 7); break; - case "NULL_VALUE": - case 0: - message.nullValue = 0; - break; - } - if (object.numberValue != null) - message.numberValue = Number(object.numberValue); - if (object.stringValue != null) - message.stringValue = String(object.stringValue); - if (object.boolValue != null) - message.boolValue = Boolean(object.boolValue); - if (object.structValue != null) { - if (typeof object.structValue !== "object") - throw TypeError(".google.protobuf.Value.structValue: object expected"); - message.structValue = $root.google.protobuf.Struct.fromObject(object.structValue); - } - if (object.listValue != null) { - if (typeof object.listValue !== "object") - throw TypeError(".google.protobuf.Value.listValue: object expected"); - message.listValue = $root.google.protobuf.ListValue.fromObject(object.listValue); } - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a Value message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.Value - * @static - * @param {google.protobuf.Value} message Value - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Value.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (message.nullValue != null && message.hasOwnProperty("nullValue")) { - object.nullValue = options.enums === String ? $root.google.protobuf.NullValue[message.nullValue] === undefined ? message.nullValue : $root.google.protobuf.NullValue[message.nullValue] : message.nullValue; - if (options.oneofs) - object.kind = "nullValue"; - } - if (message.numberValue != null && message.hasOwnProperty("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")) { - object.stringValue = message.stringValue; - if (options.oneofs) - object.kind = "stringValue"; - } - if (message.boolValue != null && message.hasOwnProperty("boolValue")) { - object.boolValue = message.boolValue; - if (options.oneofs) - object.kind = "boolValue"; + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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 + * @memberof Router.ConnectionParameters + * @static + * @param {Object.} object Plain object + * @returns {Router.ConnectionParameters} ConnectionParameters + */ + ConnectionParameters.fromObject = function fromObject(object) { + if (object instanceof $root.Router.ConnectionParameters) + return object; + let message = new $root.Router.ConnectionParameters(); + if (object.connectionUid != null) + if (typeof object.connectionUid === "string") + $util.base64.decode(object.connectionUid, message.connectionUid = $util.newBuffer($util.base64.length(object.connectionUid)), 0); + else if (object.connectionUid.length >= 0) + message.connectionUid = object.connectionUid; + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.userId != null) + message.userId = object.userId | 0; + if (object.controllerUid != null) + if (typeof object.controllerUid === "string") + $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); + else if (object.controllerUid.length >= 0) + message.controllerUid = object.controllerUid; + if (object.credentialsRecordUid != null) + if (typeof object.credentialsRecordUid === "string") + $util.base64.decode(object.credentialsRecordUid, message.credentialsRecordUid = $util.newBuffer($util.base64.length(object.credentialsRecordUid)), 0); + else if (object.credentialsRecordUid.length >= 0) + message.credentialsRecordUid = object.credentialsRecordUid; + return message; + }; + + /** + * Creates a plain object from a ConnectionParameters message. Also converts values to other types if specified. + * @function toObject + * @memberof Router.ConnectionParameters + * @static + * @param {Router.ConnectionParameters} message ConnectionParameters + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConnectionParameters.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.connectionUid = ""; + else { + object.connectionUid = []; + if (options.bytes !== Array) + object.connectionUid = $util.newBuffer(object.connectionUid); } - if (message.structValue != null && message.hasOwnProperty("structValue")) { - object.structValue = $root.google.protobuf.Struct.toObject(message.structValue, options); - if (options.oneofs) - object.kind = "structValue"; + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); } - if (message.listValue != null && message.hasOwnProperty("listValue")) { - object.listValue = $root.google.protobuf.ListValue.toObject(message.listValue, options); - if (options.oneofs) - object.kind = "listValue"; + object.userId = 0; + if (options.bytes === String) + object.controllerUid = ""; + else { + object.controllerUid = []; + if (options.bytes !== Array) + object.controllerUid = $util.newBuffer(object.controllerUid); } - return object; - }; - - /** - * Converts this Value to JSON. - * @function toJSON - * @memberof google.protobuf.Value - * @instance - * @returns {Object.} JSON object - */ - Value.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Value - * @function getTypeUrl - * @memberof google.protobuf.Value - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + if (options.bytes === String) + object.credentialsRecordUid = ""; + else { + object.credentialsRecordUid = []; + if (options.bytes !== Array) + object.credentialsRecordUid = $util.newBuffer(object.credentialsRecordUid); } - return typeUrlPrefix + "/google.protobuf.Value"; - }; + } + if (message.connectionUid != null && message.hasOwnProperty("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")) + 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")) + object.userId = message.userId; + if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) + object.controllerUid = options.bytes === String ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUid) : message.controllerUid; + if (message.credentialsRecordUid != null && message.hasOwnProperty("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; + }; - return Value; - })(); + /** + * Converts this ConnectionParameters to JSON. + * @function toJSON + * @memberof Router.ConnectionParameters + * @instance + * @returns {Object.} JSON object + */ + ConnectionParameters.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * NullValue enum. - * @name google.protobuf.NullValue - * @enum {number} - * @property {number} NULL_VALUE=0 NULL_VALUE value + * Gets the default type url for ConnectionParameters + * @function getTypeUrl + * @memberof Router.ConnectionParameters + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - protobuf.NullValue = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NULL_VALUE"] = 0; - return values; - })(); + ConnectionParameters.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Router.ConnectionParameters"; + }; - protobuf.ListValue = (function() { + return ConnectionParameters; + })(); - /** - * Properties of a ListValue. - * @memberof google.protobuf - * @interface IListValue - * @property {Array.|null} [values] ListValue values - */ + Router.ValidateConnectionsRequest = (function() { - /** - * Constructs a new ListValue. - * @memberof google.protobuf - * @classdesc Represents a ListValue. - * @implements IListValue - * @constructor - * @param {google.protobuf.IListValue=} [properties] Properties to set - */ - function ListValue(properties) { - this.values = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a ValidateConnectionsRequest. + * @memberof Router + * @interface IValidateConnectionsRequest + * @property {Array.|null} [connections] ValidateConnectionsRequest connections + */ - /** - * ListValue values. - * @member {Array.} values - * @memberof google.protobuf.ListValue - * @instance - */ - ListValue.prototype.values = $util.emptyArray; + /** + * Constructs a new ValidateConnectionsRequest. + * @memberof Router + * @classdesc Represents a ValidateConnectionsRequest. + * @implements IValidateConnectionsRequest + * @constructor + * @param {Router.IValidateConnectionsRequest=} [properties] Properties to set + */ + function ValidateConnectionsRequest(properties) { + this.connections = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new ListValue instance using the specified properties. - * @function create - * @memberof google.protobuf.ListValue - * @static - * @param {google.protobuf.IListValue=} [properties] Properties to set - * @returns {google.protobuf.ListValue} ListValue instance - */ - ListValue.create = function create(properties) { - return new ListValue(properties); - }; + /** + * ValidateConnectionsRequest connections. + * @member {Array.} connections + * @memberof Router.ValidateConnectionsRequest + * @instance + */ + ValidateConnectionsRequest.prototype.connections = $util.emptyArray; - /** - * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) - for (let i = 0; i < message.values.length; ++i) - $root.google.protobuf.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Creates a new ValidateConnectionsRequest instance using the specified properties. + * @function create + * @memberof Router.ValidateConnectionsRequest + * @static + * @param {Router.IValidateConnectionsRequest=} [properties] Properties to set + * @returns {Router.ValidateConnectionsRequest} ValidateConnectionsRequest instance + */ + ValidateConnectionsRequest.create = function create(properties) { + return new ValidateConnectionsRequest(properties); + }; - /** - * 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(); - }; + /** + * Encodes the specified ValidateConnectionsRequest message. Does not implicitly {@link Router.ValidateConnectionsRequest.verify|verify} messages. + * @function encode + * @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.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.connections != null && message.connections.length) + for (let i = 0; i < message.connections.length; ++i) + $root.Router.ConnectionParameters.encode(message.connections[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Decodes a ListValue message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.ListValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ListValue(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.values && message.values.length)) - message.values = []; - message.values.push($root.google.protobuf.Value.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); + /** + * 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 + * @memberof Router.ValidateConnectionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.ValidateConnectionsRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.connections && message.connections.length)) + message.connections = []; + message.connections.push($root.Router.ConnectionParameters.decode(reader, reader.uint32())); break; } + default: + reader.skipType(tag & 7); + break; } - 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()); - }; + } + return message; + }; - /** - * 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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]); - if (error) - return "values." + error; - } - } - return null; - }; + /** + * 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()); + }; - /** - * Creates a ListValue message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.ListValue - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.ListValue} ListValue - */ - ListValue.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ListValue) - return object; - let message = new $root.google.protobuf.ListValue(); - if (object.values) { - if (!Array.isArray(object.values)) - 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") - throw TypeError(".google.protobuf.ListValue.values: object expected"); - message.values[i] = $root.google.protobuf.Value.fromObject(object.values[i]); - } + /** + * 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) { + if (typeof message !== "object" || message === null) + return "object 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.Router.ConnectionParameters.verify(message.connections[i]); + if (error) + return "connections." + error; } - return message; - }; + } + return null; + }; - /** - * Creates a plain object from a ListValue message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.ListValue - * @static - * @param {google.protobuf.ListValue} message ListValue - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListValue.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (let j = 0; j < message.values.length; ++j) - object.values[j] = $root.google.protobuf.Value.toObject(message.values[j], options); - } + /** + * Creates a ValidateConnectionsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Router.ValidateConnectionsRequest + * @static + * @param {Object.} object Plain object + * @returns {Router.ValidateConnectionsRequest} ValidateConnectionsRequest + */ + ValidateConnectionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Router.ValidateConnectionsRequest) return object; - }; - - /** - * Converts this ListValue to JSON. - * @function toJSON - * @memberof google.protobuf.ListValue - * @instance - * @returns {Object.} JSON object - */ - ListValue.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ListValue - * @function getTypeUrl - * @memberof google.protobuf.ListValue - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ListValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + let message = new $root.Router.ValidateConnectionsRequest(); + if (object.connections) { + if (!Array.isArray(object.connections)) + throw TypeError(".Router.ValidateConnectionsRequest.connections: array expected"); + message.connections = []; + for (let i = 0; i < object.connections.length; ++i) { + if (typeof object.connections[i] !== "object") + throw TypeError(".Router.ValidateConnectionsRequest.connections: object expected"); + message.connections[i] = $root.Router.ConnectionParameters.fromObject(object.connections[i]); } - return typeUrlPrefix + "/google.protobuf.ListValue"; - }; - - return ListValue; - })(); - - return protobuf; - })(); + } + return message; + }; - return google; -})(); + /** + * Creates a plain object from a ValidateConnectionsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof Router.ValidateConnectionsRequest + * @static + * @param {Router.ValidateConnectionsRequest} message ValidateConnectionsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ValidateConnectionsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.connections = []; + if (message.connections && message.connections.length) { + object.connections = []; + for (let j = 0; j < message.connections.length; ++j) + object.connections[j] = $root.Router.ConnectionParameters.toObject(message.connections[j], options); + } + return object; + }; -export const Router = $root.Router = (() => { + /** + * Converts this ValidateConnectionsRequest to JSON. + * @function toJSON + * @memberof Router.ValidateConnectionsRequest + * @instance + * @returns {Object.} JSON object + */ + ValidateConnectionsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Namespace Router. - * @exports Router - * @namespace - */ - const Router = {}; + /** + * Gets the default type url for ValidateConnectionsRequest + * @function getTypeUrl + * @memberof Router.ValidateConnectionsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ValidateConnectionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Router.ValidateConnectionsRequest"; + }; - /** - * RouterResponseCode enum. - * @name Router.RouterResponseCode - * @enum {number} - * @property {number} RRC_OK=0 RRC_OK value - * @property {number} RRC_GENERAL_ERROR=1 RRC_GENERAL_ERROR value - * @property {number} RRC_NOT_ALLOWED=2 RRC_NOT_ALLOWED value - * @property {number} RRC_BAD_REQUEST=3 RRC_BAD_REQUEST value - * @property {number} RRC_TIMEOUT=4 RRC_TIMEOUT value - * @property {number} RRC_BAD_STATE=5 RRC_BAD_STATE value - * @property {number} RRC_CONTROLLER_DOWN=6 RRC_CONTROLLER_DOWN value - * @property {number} RRC_WRONG_INSTANCE=7 RRC_WRONG_INSTANCE value - * @property {number} RRC_NOT_ALLOWED_ENFORCEMENT_NOT_ENABLED=8 RRC_NOT_ALLOWED_ENFORCEMENT_NOT_ENABLED value - * @property {number} RRC_NOT_ALLOWED_PAM_CONFIG_FEATURES_NOT_ENABLED=9 RRC_NOT_ALLOWED_PAM_CONFIG_FEATURES_NOT_ENABLED value - */ - Router.RouterResponseCode = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RRC_OK"] = 0; - values[valuesById[1] = "RRC_GENERAL_ERROR"] = 1; - values[valuesById[2] = "RRC_NOT_ALLOWED"] = 2; - values[valuesById[3] = "RRC_BAD_REQUEST"] = 3; - values[valuesById[4] = "RRC_TIMEOUT"] = 4; - values[valuesById[5] = "RRC_BAD_STATE"] = 5; - values[valuesById[6] = "RRC_CONTROLLER_DOWN"] = 6; - values[valuesById[7] = "RRC_WRONG_INSTANCE"] = 7; - values[valuesById[8] = "RRC_NOT_ALLOWED_ENFORCEMENT_NOT_ENABLED"] = 8; - values[valuesById[9] = "RRC_NOT_ALLOWED_PAM_CONFIG_FEATURES_NOT_ENABLED"] = 9; - return values; + return ValidateConnectionsRequest; })(); - Router.RouterResponse = (function() { + Router.ConnectionValidationFailure = (function() { /** - * Properties of a RouterResponse. + * Properties of a ConnectionValidationFailure. * @memberof Router - * @interface IRouterResponse - * @property {Router.RouterResponseCode|null} [responseCode] RouterResponse responseCode - * @property {string|null} [errorMessage] RouterResponse errorMessage - * @property {Uint8Array|null} [encryptedPayload] RouterResponse encryptedPayload + * @interface IConnectionValidationFailure + * @property {Uint8Array|null} [connectionUid] ConnectionValidationFailure connectionUid + * @property {string|null} [errorMessage] ConnectionValidationFailure errorMessage */ /** - * Constructs a new RouterResponse. + * Constructs a new ConnectionValidationFailure. * @memberof Router - * @classdesc Represents a RouterResponse. - * @implements IRouterResponse + * @classdesc Represents a ConnectionValidationFailure. + * @implements IConnectionValidationFailure * @constructor - * @param {Router.IRouterResponse=} [properties] Properties to set + * @param {Router.IConnectionValidationFailure=} [properties] Properties to set */ - function RouterResponse(properties) { + function ConnectionValidationFailure(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -246147,105 +278310,91 @@ export const Router = $root.Router = (() => { } /** - * RouterResponse responseCode. - * @member {Router.RouterResponseCode} responseCode - * @memberof Router.RouterResponse + * ConnectionValidationFailure connectionUid. + * @member {Uint8Array} connectionUid + * @memberof Router.ConnectionValidationFailure * @instance */ - RouterResponse.prototype.responseCode = 0; + ConnectionValidationFailure.prototype.connectionUid = $util.newBuffer([]); /** - * RouterResponse errorMessage. + * ConnectionValidationFailure errorMessage. * @member {string} errorMessage - * @memberof Router.RouterResponse - * @instance - */ - RouterResponse.prototype.errorMessage = ""; - - /** - * RouterResponse encryptedPayload. - * @member {Uint8Array} encryptedPayload - * @memberof Router.RouterResponse + * @memberof Router.ConnectionValidationFailure * @instance */ - RouterResponse.prototype.encryptedPayload = $util.newBuffer([]); + ConnectionValidationFailure.prototype.errorMessage = ""; /** - * Creates a new RouterResponse instance using the specified properties. + * Creates a new ConnectionValidationFailure instance using the specified properties. * @function create - * @memberof Router.RouterResponse + * @memberof Router.ConnectionValidationFailure * @static - * @param {Router.IRouterResponse=} [properties] Properties to set - * @returns {Router.RouterResponse} RouterResponse instance + * @param {Router.IConnectionValidationFailure=} [properties] Properties to set + * @returns {Router.ConnectionValidationFailure} ConnectionValidationFailure instance */ - RouterResponse.create = function create(properties) { - return new RouterResponse(properties); + ConnectionValidationFailure.create = function create(properties) { + return new ConnectionValidationFailure(properties); }; /** - * Encodes the specified RouterResponse message. Does not implicitly {@link Router.RouterResponse.verify|verify} messages. + * Encodes the specified ConnectionValidationFailure message. Does not implicitly {@link Router.ConnectionValidationFailure.verify|verify} messages. * @function encode - * @memberof Router.RouterResponse + * @memberof Router.ConnectionValidationFailure * @static - * @param {Router.IRouterResponse} message RouterResponse message or plain object to encode + * @param {Router.IConnectionValidationFailure} message ConnectionValidationFailure message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterResponse.encode = function encode(message, writer) { + ConnectionValidationFailure.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.responseCode != null && Object.hasOwnProperty.call(message, "responseCode")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.responseCode); + if (message.connectionUid != null && Object.hasOwnProperty.call(message, "connectionUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.connectionUid); if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.errorMessage); - if (message.encryptedPayload != null && Object.hasOwnProperty.call(message, "encryptedPayload")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.encryptedPayload); return writer; }; /** - * Encodes the specified RouterResponse message, length delimited. Does not implicitly {@link Router.RouterResponse.verify|verify} messages. + * Encodes the specified ConnectionValidationFailure message, length delimited. Does not implicitly {@link Router.ConnectionValidationFailure.verify|verify} messages. * @function encodeDelimited - * @memberof Router.RouterResponse + * @memberof Router.ConnectionValidationFailure * @static - * @param {Router.IRouterResponse} message RouterResponse message or plain object to encode + * @param {Router.IConnectionValidationFailure} message ConnectionValidationFailure message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterResponse.encodeDelimited = function encodeDelimited(message, writer) { + ConnectionValidationFailure.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RouterResponse message from the specified reader or buffer. + * Decodes a ConnectionValidationFailure message from the specified reader or buffer. * @function decode - * @memberof Router.RouterResponse + * @memberof Router.ConnectionValidationFailure * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.RouterResponse} RouterResponse + * @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 */ - RouterResponse.decode = function decode(reader, length) { + ConnectionValidationFailure.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.ConnectionValidationFailure(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.responseCode = reader.int32(); + message.connectionUid = reader.bytes(); break; } case 2: { message.errorMessage = reader.string(); break; } - case 3: { - message.encryptedPayload = reader.bytes(); - break; - } default: reader.skipType(tag & 7); break; @@ -246255,212 +278404,141 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a RouterResponse message from the specified reader or buffer, length delimited. + * Decodes a ConnectionValidationFailure message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.RouterResponse + * @memberof Router.ConnectionValidationFailure * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterResponse} RouterResponse + * @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 */ - RouterResponse.decodeDelimited = function decodeDelimited(reader) { + ConnectionValidationFailure.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RouterResponse message. + * Verifies a ConnectionValidationFailure message. * @function verify - * @memberof Router.RouterResponse + * @memberof Router.ConnectionValidationFailure * @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) { + ConnectionValidationFailure.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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.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"; - 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. + * Creates a ConnectionValidationFailure message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.RouterResponse + * @memberof Router.ConnectionValidationFailure * @static * @param {Object.} object Plain object - * @returns {Router.RouterResponse} RouterResponse + * @returns {Router.ConnectionValidationFailure} ConnectionValidationFailure */ - RouterResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Router.RouterResponse) + ConnectionValidationFailure.fromObject = function fromObject(object) { + if (object instanceof $root.Router.ConnectionValidationFailure) return object; - let message = new $root.Router.RouterResponse(); - switch (object.responseCode) { - default: - if (typeof object.responseCode === "number") { - message.responseCode = object.responseCode; - break; - } - break; - case "RRC_OK": - case 0: - message.responseCode = 0; - break; - case "RRC_GENERAL_ERROR": - case 1: - message.responseCode = 1; - break; - case "RRC_NOT_ALLOWED": - case 2: - message.responseCode = 2; - break; - case "RRC_BAD_REQUEST": - case 3: - message.responseCode = 3; - break; - case "RRC_TIMEOUT": - case 4: - message.responseCode = 4; - break; - case "RRC_BAD_STATE": - case 5: - message.responseCode = 5; - break; - case "RRC_CONTROLLER_DOWN": - case 6: - message.responseCode = 6; - break; - case "RRC_WRONG_INSTANCE": - case 7: - message.responseCode = 7; - break; - case "RRC_NOT_ALLOWED_ENFORCEMENT_NOT_ENABLED": - case 8: - message.responseCode = 8; - break; - case "RRC_NOT_ALLOWED_PAM_CONFIG_FEATURES_NOT_ENABLED": - case 9: - message.responseCode = 9; - break; - } + let message = new $root.Router.ConnectionValidationFailure(); + if (object.connectionUid != null) + if (typeof object.connectionUid === "string") + $util.base64.decode(object.connectionUid, message.connectionUid = $util.newBuffer($util.base64.length(object.connectionUid)), 0); + else if (object.connectionUid.length >= 0) + message.connectionUid = object.connectionUid; if (object.errorMessage != null) message.errorMessage = String(object.errorMessage); - if (object.encryptedPayload != null) - if (typeof object.encryptedPayload === "string") - $util.base64.decode(object.encryptedPayload, message.encryptedPayload = $util.newBuffer($util.base64.length(object.encryptedPayload)), 0); - else if (object.encryptedPayload.length >= 0) - message.encryptedPayload = object.encryptedPayload; return message; }; /** - * Creates a plain object from a RouterResponse message. Also converts values to other types if specified. + * Creates a plain object from a ConnectionValidationFailure message. Also converts values to other types if specified. * @function toObject - * @memberof Router.RouterResponse + * @memberof Router.ConnectionValidationFailure * @static - * @param {Router.RouterResponse} message RouterResponse + * @param {Router.ConnectionValidationFailure} message ConnectionValidationFailure * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterResponse.toObject = function toObject(message, options) { + ConnectionValidationFailure.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.responseCode = options.enums === String ? "RRC_OK" : 0; - object.errorMessage = ""; if (options.bytes === String) - object.encryptedPayload = ""; + object.connectionUid = ""; else { - object.encryptedPayload = []; + object.connectionUid = []; if (options.bytes !== Array) - object.encryptedPayload = $util.newBuffer(object.encryptedPayload); + object.connectionUid = $util.newBuffer(object.connectionUid); } + object.errorMessage = ""; } - if (message.responseCode != null && message.hasOwnProperty("responseCode")) - object.responseCode = options.enums === String ? $root.Router.RouterResponseCode[message.responseCode] === undefined ? message.responseCode : $root.Router.RouterResponseCode[message.responseCode] : message.responseCode; + if (message.connectionUid != null && message.hasOwnProperty("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")) object.errorMessage = message.errorMessage; - if (message.encryptedPayload != null && message.hasOwnProperty("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; }; /** - * Converts this RouterResponse to JSON. + * Converts this ConnectionValidationFailure to JSON. * @function toJSON - * @memberof Router.RouterResponse + * @memberof Router.ConnectionValidationFailure * @instance * @returns {Object.} JSON object */ - RouterResponse.prototype.toJSON = function toJSON() { + ConnectionValidationFailure.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RouterResponse + * Gets the default type url for ConnectionValidationFailure * @function getTypeUrl - * @memberof Router.RouterResponse + * @memberof Router.ConnectionValidationFailure * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RouterResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ConnectionValidationFailure.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.RouterResponse"; + return typeUrlPrefix + "/Router.ConnectionValidationFailure"; }; - return RouterResponse; + return ConnectionValidationFailure; })(); - Router.RouterControllerMessage = (function() { + Router.ValidateConnectionsResponse = (function() { /** - * Properties of a RouterControllerMessage. + * Properties of a ValidateConnectionsResponse. * @memberof Router - * @interface IRouterControllerMessage - * @property {PAM.ControllerMessageType|null} [messageType] RouterControllerMessage messageType - * @property {Uint8Array|null} [messageUid] RouterControllerMessage messageUid - * @property {Uint8Array|null} [controllerUid] RouterControllerMessage controllerUid - * @property {boolean|null} [streamResponse] RouterControllerMessage streamResponse - * @property {Uint8Array|null} [payload] RouterControllerMessage payload - * @property {number|null} [timeout] RouterControllerMessage timeout + * @interface IValidateConnectionsResponse + * @property {Array.|null} [failedConnections] ValidateConnectionsResponse failedConnections */ /** - * Constructs a new RouterControllerMessage. + * Constructs a new ValidateConnectionsResponse. * @memberof Router - * @classdesc Represents a RouterControllerMessage. - * @implements IRouterControllerMessage + * @classdesc Represents a ValidateConnectionsResponse. + * @implements IValidateConnectionsResponse * @constructor - * @param {Router.IRouterControllerMessage=} [properties] Properties to set + * @param {Router.IValidateConnectionsResponse=} [properties] Properties to set */ - function RouterControllerMessage(properties) { + function ValidateConnectionsResponse(properties) { + this.failedConnections = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -246468,145 +278546,78 @@ export const Router = $root.Router = (() => { } /** - * RouterControllerMessage messageType. - * @member {PAM.ControllerMessageType} messageType - * @memberof Router.RouterControllerMessage - * @instance - */ - RouterControllerMessage.prototype.messageType = 0; - - /** - * RouterControllerMessage messageUid. - * @member {Uint8Array} messageUid - * @memberof Router.RouterControllerMessage - * @instance - */ - RouterControllerMessage.prototype.messageUid = $util.newBuffer([]); - - /** - * RouterControllerMessage controllerUid. - * @member {Uint8Array} controllerUid - * @memberof Router.RouterControllerMessage - * @instance - */ - RouterControllerMessage.prototype.controllerUid = $util.newBuffer([]); - - /** - * RouterControllerMessage streamResponse. - * @member {boolean} streamResponse - * @memberof Router.RouterControllerMessage - * @instance - */ - RouterControllerMessage.prototype.streamResponse = false; - - /** - * RouterControllerMessage payload. - * @member {Uint8Array} payload - * @memberof Router.RouterControllerMessage - * @instance - */ - RouterControllerMessage.prototype.payload = $util.newBuffer([]); - - /** - * RouterControllerMessage timeout. - * @member {number} timeout - * @memberof Router.RouterControllerMessage + * ValidateConnectionsResponse failedConnections. + * @member {Array.} failedConnections + * @memberof Router.ValidateConnectionsResponse * @instance */ - RouterControllerMessage.prototype.timeout = 0; + ValidateConnectionsResponse.prototype.failedConnections = $util.emptyArray; /** - * Creates a new RouterControllerMessage instance using the specified properties. + * Creates a new ValidateConnectionsResponse instance using the specified properties. * @function create - * @memberof Router.RouterControllerMessage + * @memberof Router.ValidateConnectionsResponse * @static - * @param {Router.IRouterControllerMessage=} [properties] Properties to set - * @returns {Router.RouterControllerMessage} RouterControllerMessage instance + * @param {Router.IValidateConnectionsResponse=} [properties] Properties to set + * @returns {Router.ValidateConnectionsResponse} ValidateConnectionsResponse instance */ - RouterControllerMessage.create = function create(properties) { - return new RouterControllerMessage(properties); + ValidateConnectionsResponse.create = function create(properties) { + return new ValidateConnectionsResponse(properties); }; /** - * Encodes the specified RouterControllerMessage message. Does not implicitly {@link Router.RouterControllerMessage.verify|verify} messages. + * Encodes the specified ValidateConnectionsResponse message. Does not implicitly {@link Router.ValidateConnectionsResponse.verify|verify} messages. * @function encode - * @memberof Router.RouterControllerMessage + * @memberof Router.ValidateConnectionsResponse * @static - * @param {Router.IRouterControllerMessage} message RouterControllerMessage message or plain object to encode + * @param {Router.IValidateConnectionsResponse} message ValidateConnectionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterControllerMessage.encode = function encode(message, writer) { + ValidateConnectionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); - if (message.messageUid != null && Object.hasOwnProperty.call(message, "messageUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.messageUid); - if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.controllerUid); - if (message.streamResponse != null && Object.hasOwnProperty.call(message, "streamResponse")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.streamResponse); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.payload); - if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.timeout); + if (message.failedConnections != null && message.failedConnections.length) + for (let i = 0; i < message.failedConnections.length; ++i) + $root.Router.ConnectionValidationFailure.encode(message.failedConnections[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RouterControllerMessage message, length delimited. Does not implicitly {@link Router.RouterControllerMessage.verify|verify} messages. + * Encodes the specified ValidateConnectionsResponse message, length delimited. Does not implicitly {@link Router.ValidateConnectionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Router.RouterControllerMessage + * @memberof Router.ValidateConnectionsResponse * @static - * @param {Router.IRouterControllerMessage} message RouterControllerMessage message or plain object to encode + * @param {Router.IValidateConnectionsResponse} message ValidateConnectionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterControllerMessage.encodeDelimited = function encodeDelimited(message, writer) { + ValidateConnectionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RouterControllerMessage message from the specified reader or buffer. + * Decodes a ValidateConnectionsResponse message from the specified reader or buffer. * @function decode - * @memberof Router.RouterControllerMessage + * @memberof Router.ValidateConnectionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.RouterControllerMessage} RouterControllerMessage + * @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 */ - RouterControllerMessage.decode = function decode(reader, length) { + ValidateConnectionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterControllerMessage(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.ValidateConnectionsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.messageType = reader.int32(); - break; - } - case 2: { - message.messageUid = reader.bytes(); - break; - } - case 3: { - message.controllerUid = reader.bytes(); - break; - } - case 4: { - message.streamResponse = reader.bool(); - break; - } - case 5: { - message.payload = reader.bytes(); - break; - } - case 6: { - message.timeout = reader.int32(); + if (!(message.failedConnections && message.failedConnections.length)) + message.failedConnections = []; + message.failedConnections.push($root.Router.ConnectionValidationFailure.decode(reader, reader.uint32())); break; } default: @@ -246618,230 +278629,139 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a RouterControllerMessage message from the specified reader or buffer, length delimited. + * Decodes a ValidateConnectionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.RouterControllerMessage + * @memberof Router.ValidateConnectionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterControllerMessage} RouterControllerMessage + * @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 */ - RouterControllerMessage.decodeDelimited = function decodeDelimited(reader) { + ValidateConnectionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RouterControllerMessage message. + * Verifies a ValidateConnectionsResponse message. * @function verify - * @memberof Router.RouterControllerMessage + * @memberof Router.ValidateConnectionsResponse * @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) { + ValidateConnectionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.messageType != null && message.hasOwnProperty("messageType")) - switch (message.messageType) { - default: - return "messageType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + 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]); + if (error) + return "failedConnections." + error; } - 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. + * Creates a ValidateConnectionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.RouterControllerMessage + * @memberof Router.ValidateConnectionsResponse * @static * @param {Object.} object Plain object - * @returns {Router.RouterControllerMessage} RouterControllerMessage + * @returns {Router.ValidateConnectionsResponse} ValidateConnectionsResponse */ - RouterControllerMessage.fromObject = function fromObject(object) { - if (object instanceof $root.Router.RouterControllerMessage) + ValidateConnectionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Router.ValidateConnectionsResponse) return object; - let message = new $root.Router.RouterControllerMessage(); - switch (object.messageType) { - default: - if (typeof object.messageType === "number") { - message.messageType = object.messageType; - break; + let message = new $root.Router.ValidateConnectionsResponse(); + if (object.failedConnections) { + if (!Array.isArray(object.failedConnections)) + throw TypeError(".Router.ValidateConnectionsResponse.failedConnections: array expected"); + message.failedConnections = []; + for (let i = 0; i < object.failedConnections.length; ++i) { + if (typeof object.failedConnections[i] !== "object") + throw TypeError(".Router.ValidateConnectionsResponse.failedConnections: object expected"); + message.failedConnections[i] = $root.Router.ConnectionValidationFailure.fromObject(object.failedConnections[i]); } - break; - case "CMT_GENERAL": - case 0: - message.messageType = 0; - break; - case "CMT_ROTATE": - case 1: - message.messageType = 1; - break; - case "CMT_DISCOVERY": - case 2: - message.messageType = 2; - break; - case "CMT_CONNECT": - case 3: - message.messageType = 3; - break; } - if (object.messageUid != null) - if (typeof object.messageUid === "string") - $util.base64.decode(object.messageUid, message.messageUid = $util.newBuffer($util.base64.length(object.messageUid)), 0); - else if (object.messageUid.length >= 0) - message.messageUid = object.messageUid; - if (object.controllerUid != null) - if (typeof object.controllerUid === "string") - $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); - else if (object.controllerUid.length >= 0) - message.controllerUid = object.controllerUid; - if (object.streamResponse != null) - message.streamResponse = Boolean(object.streamResponse); - if (object.payload != null) - if (typeof object.payload === "string") - $util.base64.decode(object.payload, message.payload = $util.newBuffer($util.base64.length(object.payload)), 0); - else if (object.payload.length >= 0) - message.payload = object.payload; - if (object.timeout != null) - message.timeout = object.timeout | 0; return message; }; /** - * Creates a plain object from a RouterControllerMessage message. Also converts values to other types if specified. + * Creates a plain object from a ValidateConnectionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Router.RouterControllerMessage + * @memberof Router.ValidateConnectionsResponse * @static - * @param {Router.RouterControllerMessage} message RouterControllerMessage + * @param {Router.ValidateConnectionsResponse} message ValidateConnectionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterControllerMessage.toObject = function toObject(message, options) { + ValidateConnectionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.messageType = options.enums === String ? "CMT_GENERAL" : 0; - if (options.bytes === String) - object.messageUid = ""; - else { - object.messageUid = []; - if (options.bytes !== Array) - object.messageUid = $util.newBuffer(object.messageUid); - } - if (options.bytes === String) - object.controllerUid = ""; - else { - object.controllerUid = []; - if (options.bytes !== Array) - object.controllerUid = $util.newBuffer(object.controllerUid); - } - object.streamResponse = false; - if (options.bytes === String) - object.payload = ""; - else { - object.payload = []; - if (options.bytes !== Array) - object.payload = $util.newBuffer(object.payload); - } - object.timeout = 0; + if (options.arrays || options.defaults) + object.failedConnections = []; + if (message.failedConnections && message.failedConnections.length) { + object.failedConnections = []; + for (let j = 0; j < message.failedConnections.length; ++j) + object.failedConnections[j] = $root.Router.ConnectionValidationFailure.toObject(message.failedConnections[j], options); } - if (message.messageType != null && message.hasOwnProperty("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")) - 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")) - 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")) - object.streamResponse = message.streamResponse; - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = options.bytes === String ? $util.base64.encode(message.payload, 0, message.payload.length) : options.bytes === Array ? Array.prototype.slice.call(message.payload) : message.payload; - if (message.timeout != null && message.hasOwnProperty("timeout")) - object.timeout = message.timeout; return object; }; /** - * Converts this RouterControllerMessage to JSON. + * Converts this ValidateConnectionsResponse to JSON. * @function toJSON - * @memberof Router.RouterControllerMessage + * @memberof Router.ValidateConnectionsResponse * @instance * @returns {Object.} JSON object */ - RouterControllerMessage.prototype.toJSON = function toJSON() { + ValidateConnectionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RouterControllerMessage + * Gets the default type url for ValidateConnectionsResponse * @function getTypeUrl - * @memberof Router.RouterControllerMessage + * @memberof Router.ValidateConnectionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RouterControllerMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateConnectionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.RouterControllerMessage"; + return typeUrlPrefix + "/Router.ValidateConnectionsResponse"; }; - return RouterControllerMessage; + return ValidateConnectionsResponse; })(); - Router.RouterUserAuth = (function() { + Router.GetEnforcementRequest = (function() { /** - * Properties of a RouterUserAuth. + * Properties of a GetEnforcementRequest. * @memberof Router - * @interface IRouterUserAuth - * @property {Uint8Array|null} [transmissionKey] RouterUserAuth transmissionKey - * @property {Uint8Array|null} [sessionToken] RouterUserAuth sessionToken - * @property {number|null} [userId] RouterUserAuth userId - * @property {number|Long|null} [enterpriseUserId] RouterUserAuth enterpriseUserId - * @property {string|null} [deviceName] RouterUserAuth deviceName - * @property {Uint8Array|null} [deviceToken] RouterUserAuth deviceToken - * @property {number|null} [clientVersionId] RouterUserAuth clientVersionId - * @property {boolean|null} [needUsername] RouterUserAuth needUsername - * @property {string|null} [username] RouterUserAuth username - * @property {number|null} [mspEnterpriseId] RouterUserAuth mspEnterpriseId - * @property {boolean|null} [isPedmAdmin] RouterUserAuth isPedmAdmin - * @property {number|null} [mcEnterpriseId] RouterUserAuth mcEnterpriseId + * @interface IGetEnforcementRequest + * @property {number|Long|null} [enterpriseUserId] GetEnforcementRequest enterpriseUserId */ /** - * Constructs a new RouterUserAuth. + * Constructs a new GetEnforcementRequest. * @memberof Router - * @classdesc Represents a RouterUserAuth. - * @implements IRouterUserAuth + * @classdesc Represents a GetEnforcementRequest. + * @implements IGetEnforcementRequest * @constructor - * @param {Router.IRouterUserAuth=} [properties] Properties to set + * @param {Router.IGetEnforcementRequest=} [properties] Properties to set */ - function RouterUserAuth(properties) { + function GetEnforcementRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -246849,231 +278769,77 @@ export const Router = $root.Router = (() => { } /** - * RouterUserAuth transmissionKey. - * @member {Uint8Array} transmissionKey - * @memberof Router.RouterUserAuth - * @instance - */ - RouterUserAuth.prototype.transmissionKey = $util.newBuffer([]); - - /** - * RouterUserAuth sessionToken. - * @member {Uint8Array} sessionToken - * @memberof Router.RouterUserAuth - * @instance - */ - RouterUserAuth.prototype.sessionToken = $util.newBuffer([]); - - /** - * RouterUserAuth userId. - * @member {number} userId - * @memberof Router.RouterUserAuth - * @instance - */ - RouterUserAuth.prototype.userId = 0; - - /** - * RouterUserAuth enterpriseUserId. + * GetEnforcementRequest enterpriseUserId. * @member {number|Long} enterpriseUserId - * @memberof Router.RouterUserAuth - * @instance - */ - RouterUserAuth.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * RouterUserAuth deviceName. - * @member {string} deviceName - * @memberof Router.RouterUserAuth - * @instance - */ - RouterUserAuth.prototype.deviceName = ""; - - /** - * RouterUserAuth deviceToken. - * @member {Uint8Array} deviceToken - * @memberof Router.RouterUserAuth - * @instance - */ - RouterUserAuth.prototype.deviceToken = $util.newBuffer([]); - - /** - * RouterUserAuth clientVersionId. - * @member {number} clientVersionId - * @memberof Router.RouterUserAuth - * @instance - */ - RouterUserAuth.prototype.clientVersionId = 0; - - /** - * RouterUserAuth needUsername. - * @member {boolean} needUsername - * @memberof Router.RouterUserAuth - * @instance - */ - RouterUserAuth.prototype.needUsername = false; - - /** - * RouterUserAuth username. - * @member {string} username - * @memberof Router.RouterUserAuth - * @instance - */ - RouterUserAuth.prototype.username = ""; - - /** - * RouterUserAuth mspEnterpriseId. - * @member {number} mspEnterpriseId - * @memberof Router.RouterUserAuth - * @instance - */ - RouterUserAuth.prototype.mspEnterpriseId = 0; - - /** - * RouterUserAuth isPedmAdmin. - * @member {boolean} isPedmAdmin - * @memberof Router.RouterUserAuth - * @instance - */ - RouterUserAuth.prototype.isPedmAdmin = false; - - /** - * RouterUserAuth mcEnterpriseId. - * @member {number} mcEnterpriseId - * @memberof Router.RouterUserAuth + * @memberof Router.GetEnforcementRequest * @instance */ - RouterUserAuth.prototype.mcEnterpriseId = 0; + GetEnforcementRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new RouterUserAuth instance using the specified properties. + * Creates a new GetEnforcementRequest instance using the specified properties. * @function create - * @memberof Router.RouterUserAuth + * @memberof Router.GetEnforcementRequest * @static - * @param {Router.IRouterUserAuth=} [properties] Properties to set - * @returns {Router.RouterUserAuth} RouterUserAuth instance + * @param {Router.IGetEnforcementRequest=} [properties] Properties to set + * @returns {Router.GetEnforcementRequest} GetEnforcementRequest instance */ - RouterUserAuth.create = function create(properties) { - return new RouterUserAuth(properties); + GetEnforcementRequest.create = function create(properties) { + return new GetEnforcementRequest(properties); }; /** - * Encodes the specified RouterUserAuth message. Does not implicitly {@link Router.RouterUserAuth.verify|verify} messages. + * Encodes the specified GetEnforcementRequest message. Does not implicitly {@link Router.GetEnforcementRequest.verify|verify} messages. * @function encode - * @memberof Router.RouterUserAuth + * @memberof Router.GetEnforcementRequest * @static - * @param {Router.IRouterUserAuth} message RouterUserAuth message or plain object to encode + * @param {Router.IGetEnforcementRequest} message GetEnforcementRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterUserAuth.encode = function encode(message, writer) { + GetEnforcementRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transmissionKey != null && Object.hasOwnProperty.call(message, "transmissionKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.transmissionKey); - if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sessionToken); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.userId); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.enterpriseUserId); - if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.deviceName); - if (message.deviceToken != null && Object.hasOwnProperty.call(message, "deviceToken")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.deviceToken); - if (message.clientVersionId != null && Object.hasOwnProperty.call(message, "clientVersionId")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.clientVersionId); - if (message.needUsername != null && Object.hasOwnProperty.call(message, "needUsername")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.needUsername); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.username); - if (message.mspEnterpriseId != null && Object.hasOwnProperty.call(message, "mspEnterpriseId")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.mspEnterpriseId); - if (message.isPedmAdmin != null && Object.hasOwnProperty.call(message, "isPedmAdmin")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.isPedmAdmin); - if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) - writer.uint32(/* id 12, wireType 0 =*/96).int32(message.mcEnterpriseId); + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); return writer; }; /** - * Encodes the specified RouterUserAuth message, length delimited. Does not implicitly {@link Router.RouterUserAuth.verify|verify} messages. + * Encodes the specified GetEnforcementRequest message, length delimited. Does not implicitly {@link Router.GetEnforcementRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Router.RouterUserAuth + * @memberof Router.GetEnforcementRequest * @static - * @param {Router.IRouterUserAuth} message RouterUserAuth message or plain object to encode + * @param {Router.IGetEnforcementRequest} message GetEnforcementRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterUserAuth.encodeDelimited = function encodeDelimited(message, writer) { + GetEnforcementRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RouterUserAuth message from the specified reader or buffer. + * Decodes a GetEnforcementRequest message from the specified reader or buffer. * @function decode - * @memberof Router.RouterUserAuth + * @memberof Router.GetEnforcementRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.RouterUserAuth} RouterUserAuth + * @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 */ - RouterUserAuth.decode = function decode(reader, length) { + GetEnforcementRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterUserAuth(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.GetEnforcementRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.transmissionKey = reader.bytes(); - break; - } - case 2: { - message.sessionToken = reader.bytes(); - break; - } - case 3: { - message.userId = reader.int32(); - break; - } - case 4: { message.enterpriseUserId = reader.int64(); break; } - case 5: { - message.deviceName = reader.string(); - break; - } - case 6: { - message.deviceToken = reader.bytes(); - break; - } - case 7: { - message.clientVersionId = reader.int32(); - break; - } - case 8: { - message.needUsername = reader.bool(); - break; - } - case 9: { - message.username = reader.string(); - break; - } - case 10: { - message.mspEnterpriseId = reader.int32(); - break; - } - case 11: { - message.isPedmAdmin = reader.bool(); - break; - } - case 12: { - message.mcEnterpriseId = reader.int32(); - break; - } default: reader.skipType(tag & 7); break; @@ -247083,95 +278849,50 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a RouterUserAuth message from the specified reader or buffer, length delimited. + * Decodes a GetEnforcementRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.RouterUserAuth + * @memberof Router.GetEnforcementRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterUserAuth} RouterUserAuth + * @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 */ - RouterUserAuth.decodeDelimited = function decodeDelimited(reader) { + GetEnforcementRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RouterUserAuth message. + * Verifies a GetEnforcementRequest message. * @function verify - * @memberof Router.RouterUserAuth + * @memberof Router.GetEnforcementRequest * @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) { + GetEnforcementRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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. + * Creates a GetEnforcementRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.RouterUserAuth + * @memberof Router.GetEnforcementRequest * @static * @param {Object.} object Plain object - * @returns {Router.RouterUserAuth} RouterUserAuth + * @returns {Router.GetEnforcementRequest} GetEnforcementRequest */ - RouterUserAuth.fromObject = function fromObject(object) { - if (object instanceof $root.Router.RouterUserAuth) + GetEnforcementRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Router.GetEnforcementRequest) return object; - let message = new $root.Router.RouterUserAuth(); - if (object.transmissionKey != null) - if (typeof object.transmissionKey === "string") - $util.base64.decode(object.transmissionKey, message.transmissionKey = $util.newBuffer($util.base64.length(object.transmissionKey)), 0); - else if (object.transmissionKey.length >= 0) - message.transmissionKey = object.transmissionKey; - if (object.sessionToken != null) - if (typeof object.sessionToken === "string") - $util.base64.decode(object.sessionToken, message.sessionToken = $util.newBuffer($util.base64.length(object.sessionToken)), 0); - else if (object.sessionToken.length >= 0) - message.sessionToken = object.sessionToken; - if (object.userId != null) - message.userId = object.userId | 0; + let message = new $root.Router.GetEnforcementRequest(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; @@ -247181,166 +278902,84 @@ export const Router = $root.Router = (() => { message.enterpriseUserId = object.enterpriseUserId; else if (typeof object.enterpriseUserId === "object") message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - if (object.deviceName != null) - message.deviceName = String(object.deviceName); - if (object.deviceToken != null) - if (typeof object.deviceToken === "string") - $util.base64.decode(object.deviceToken, message.deviceToken = $util.newBuffer($util.base64.length(object.deviceToken)), 0); - else if (object.deviceToken.length >= 0) - message.deviceToken = object.deviceToken; - if (object.clientVersionId != null) - message.clientVersionId = object.clientVersionId | 0; - if (object.needUsername != null) - message.needUsername = Boolean(object.needUsername); - if (object.username != null) - message.username = String(object.username); - if (object.mspEnterpriseId != null) - message.mspEnterpriseId = object.mspEnterpriseId | 0; - if (object.isPedmAdmin != null) - message.isPedmAdmin = Boolean(object.isPedmAdmin); - if (object.mcEnterpriseId != null) - message.mcEnterpriseId = object.mcEnterpriseId | 0; return message; }; /** - * Creates a plain object from a RouterUserAuth message. Also converts values to other types if specified. + * Creates a plain object from a GetEnforcementRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Router.RouterUserAuth + * @memberof Router.GetEnforcementRequest * @static - * @param {Router.RouterUserAuth} message RouterUserAuth + * @param {Router.GetEnforcementRequest} message GetEnforcementRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterUserAuth.toObject = function toObject(message, options) { + GetEnforcementRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.transmissionKey = ""; - else { - object.transmissionKey = []; - if (options.bytes !== Array) - object.transmissionKey = $util.newBuffer(object.transmissionKey); - } - if (options.bytes === String) - object.sessionToken = ""; - else { - object.sessionToken = []; - if (options.bytes !== Array) - object.sessionToken = $util.newBuffer(object.sessionToken); - } - object.userId = 0; + if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.enterpriseUserId = options.longs === String ? "0" : 0; - object.deviceName = ""; - if (options.bytes === String) - object.deviceToken = ""; - else { - object.deviceToken = []; - if (options.bytes !== Array) - object.deviceToken = $util.newBuffer(object.deviceToken); - } - object.clientVersionId = 0; - object.needUsername = false; - object.username = ""; - object.mspEnterpriseId = 0; - object.isPedmAdmin = false; - object.mcEnterpriseId = 0; - } - if (message.transmissionKey != null && message.hasOwnProperty("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")) - 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")) - object.userId = message.userId; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) 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")) - object.deviceName = message.deviceName; - if (message.deviceToken != null && message.hasOwnProperty("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")) - object.clientVersionId = message.clientVersionId; - if (message.needUsername != null && message.hasOwnProperty("needUsername")) - object.needUsername = message.needUsername; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.mspEnterpriseId != null && message.hasOwnProperty("mspEnterpriseId")) - object.mspEnterpriseId = message.mspEnterpriseId; - if (message.isPedmAdmin != null && message.hasOwnProperty("isPedmAdmin")) - object.isPedmAdmin = message.isPedmAdmin; - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) - object.mcEnterpriseId = message.mcEnterpriseId; return object; }; /** - * Converts this RouterUserAuth to JSON. + * Converts this GetEnforcementRequest to JSON. * @function toJSON - * @memberof Router.RouterUserAuth + * @memberof Router.GetEnforcementRequest * @instance * @returns {Object.} JSON object */ - RouterUserAuth.prototype.toJSON = function toJSON() { + GetEnforcementRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RouterUserAuth + * Gets the default type url for GetEnforcementRequest * @function getTypeUrl - * @memberof Router.RouterUserAuth + * @memberof Router.GetEnforcementRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RouterUserAuth.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetEnforcementRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.RouterUserAuth"; + return typeUrlPrefix + "/Router.GetEnforcementRequest"; }; - return RouterUserAuth; + return GetEnforcementRequest; })(); - Router.RouterDeviceAuth = (function() { + Router.EnforcementType = (function() { /** - * Properties of a RouterDeviceAuth. + * Properties of an EnforcementType. * @memberof Router - * @interface IRouterDeviceAuth - * @property {string|null} [clientId] RouterDeviceAuth clientId - * @property {string|null} [clientVersion] RouterDeviceAuth clientVersion - * @property {Uint8Array|null} [signature] RouterDeviceAuth signature - * @property {number|null} [enterpriseId] RouterDeviceAuth enterpriseId - * @property {number|Long|null} [nodeId] RouterDeviceAuth nodeId - * @property {string|null} [deviceName] RouterDeviceAuth deviceName - * @property {Uint8Array|null} [deviceToken] RouterDeviceAuth deviceToken - * @property {string|null} [controllerName] RouterDeviceAuth controllerName - * @property {Uint8Array|null} [controllerUid] RouterDeviceAuth controllerUid - * @property {string|null} [ownerUser] RouterDeviceAuth ownerUser - * @property {string|null} [challenge] RouterDeviceAuth challenge - * @property {number|null} [ownerId] RouterDeviceAuth ownerId - * @property {number|null} [maxInstanceCount] RouterDeviceAuth maxInstanceCount + * @interface IEnforcementType + * @property {number|null} [enforcementTypeId] EnforcementType enforcementTypeId + * @property {string|null} [value] EnforcementType value */ /** - * Constructs a new RouterDeviceAuth. + * Constructs a new EnforcementType. * @memberof Router - * @classdesc Represents a RouterDeviceAuth. - * @implements IRouterDeviceAuth + * @classdesc Represents an EnforcementType. + * @implements IEnforcementType * @constructor - * @param {Router.IRouterDeviceAuth=} [properties] Properties to set + * @param {Router.IEnforcementType=} [properties] Properties to set */ - function RouterDeviceAuth(properties) { + function EnforcementType(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -247348,243 +278987,347 @@ export const Router = $root.Router = (() => { } /** - * RouterDeviceAuth clientId. - * @member {string} clientId - * @memberof Router.RouterDeviceAuth + * EnforcementType enforcementTypeId. + * @member {number} enforcementTypeId + * @memberof Router.EnforcementType * @instance */ - RouterDeviceAuth.prototype.clientId = ""; + EnforcementType.prototype.enforcementTypeId = 0; /** - * RouterDeviceAuth clientVersion. - * @member {string} clientVersion - * @memberof Router.RouterDeviceAuth + * EnforcementType value. + * @member {string} value + * @memberof Router.EnforcementType * @instance */ - RouterDeviceAuth.prototype.clientVersion = ""; + EnforcementType.prototype.value = ""; /** - * RouterDeviceAuth signature. - * @member {Uint8Array} signature - * @memberof Router.RouterDeviceAuth - * @instance + * Creates a new EnforcementType instance using the specified properties. + * @function create + * @memberof Router.EnforcementType + * @static + * @param {Router.IEnforcementType=} [properties] Properties to set + * @returns {Router.EnforcementType} EnforcementType instance */ - RouterDeviceAuth.prototype.signature = $util.newBuffer([]); + EnforcementType.create = function create(properties) { + return new EnforcementType(properties); + }; /** - * RouterDeviceAuth enterpriseId. - * @member {number} enterpriseId - * @memberof Router.RouterDeviceAuth - * @instance + * Encodes the specified EnforcementType message. Does not implicitly {@link Router.EnforcementType.verify|verify} messages. + * @function encode + * @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 */ - RouterDeviceAuth.prototype.enterpriseId = 0; + EnforcementType.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enforcementTypeId != null && Object.hasOwnProperty.call(message, "enforcementTypeId")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.enforcementTypeId); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + return writer; + }; /** - * RouterDeviceAuth nodeId. - * @member {number|Long} nodeId - * @memberof Router.RouterDeviceAuth - * @instance + * 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 */ - RouterDeviceAuth.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnforcementType.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * RouterDeviceAuth deviceName. - * @member {string} deviceName - * @memberof Router.RouterDeviceAuth - * @instance + * Decodes an EnforcementType message from the specified reader or buffer. + * @function decode + * @memberof Router.EnforcementType + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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 */ - RouterDeviceAuth.prototype.deviceName = ""; + EnforcementType.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.EnforcementType(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enforcementTypeId = reader.int32(); + break; + } + case 2: { + message.value = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * RouterDeviceAuth deviceToken. - * @member {Uint8Array} deviceToken - * @memberof Router.RouterDeviceAuth - * @instance + * 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 */ - RouterDeviceAuth.prototype.deviceToken = $util.newBuffer([]); + EnforcementType.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * RouterDeviceAuth controllerName. - * @member {string} controllerName - * @memberof Router.RouterDeviceAuth - * @instance + * 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 */ - RouterDeviceAuth.prototype.controllerName = ""; + EnforcementType.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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; + }; /** - * RouterDeviceAuth controllerUid. - * @member {Uint8Array} controllerUid - * @memberof Router.RouterDeviceAuth - * @instance + * Creates an EnforcementType message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Router.EnforcementType + * @static + * @param {Object.} object Plain object + * @returns {Router.EnforcementType} EnforcementType */ - RouterDeviceAuth.prototype.controllerUid = $util.newBuffer([]); + EnforcementType.fromObject = function fromObject(object) { + if (object instanceof $root.Router.EnforcementType) + return object; + let message = new $root.Router.EnforcementType(); + if (object.enforcementTypeId != null) + message.enforcementTypeId = object.enforcementTypeId | 0; + if (object.value != null) + message.value = String(object.value); + return message; + }; /** - * RouterDeviceAuth ownerUser. - * @member {string} ownerUser - * @memberof Router.RouterDeviceAuth + * Creates a plain object from an EnforcementType message. Also converts values to other types if specified. + * @function toObject + * @memberof Router.EnforcementType + * @static + * @param {Router.EnforcementType} message EnforcementType + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnforcementType.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.enforcementTypeId = 0; + object.value = ""; + } + if (message.enforcementTypeId != null && message.hasOwnProperty("enforcementTypeId")) + object.enforcementTypeId = message.enforcementTypeId; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + return object; + }; + + /** + * Converts this EnforcementType to JSON. + * @function toJSON + * @memberof Router.EnforcementType * @instance + * @returns {Object.} JSON object */ - RouterDeviceAuth.prototype.ownerUser = ""; + EnforcementType.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnforcementType + * @function getTypeUrl + * @memberof Router.EnforcementType + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnforcementType.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Router.EnforcementType"; + }; + + return EnforcementType; + })(); + + Router.GetEnforcementResponse = (function() { + + /** + * Properties of a GetEnforcementResponse. + * @memberof Router + * @interface IGetEnforcementResponse + * @property {Array.|null} [enforcementTypes] GetEnforcementResponse enforcementTypes + * @property {Array.|null} [addOnIds] GetEnforcementResponse addOnIds + * @property {boolean|null} [isInTrial] GetEnforcementResponse isInTrial + */ + + /** + * Constructs a new GetEnforcementResponse. + * @memberof Router + * @classdesc Represents a GetEnforcementResponse. + * @implements IGetEnforcementResponse + * @constructor + * @param {Router.IGetEnforcementResponse=} [properties] Properties to set + */ + function GetEnforcementResponse(properties) { + this.enforcementTypes = []; + this.addOnIds = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * RouterDeviceAuth challenge. - * @member {string} challenge - * @memberof Router.RouterDeviceAuth + * GetEnforcementResponse enforcementTypes. + * @member {Array.} enforcementTypes + * @memberof Router.GetEnforcementResponse * @instance */ - RouterDeviceAuth.prototype.challenge = ""; + GetEnforcementResponse.prototype.enforcementTypes = $util.emptyArray; /** - * RouterDeviceAuth ownerId. - * @member {number} ownerId - * @memberof Router.RouterDeviceAuth + * GetEnforcementResponse addOnIds. + * @member {Array.} addOnIds + * @memberof Router.GetEnforcementResponse * @instance */ - RouterDeviceAuth.prototype.ownerId = 0; + GetEnforcementResponse.prototype.addOnIds = $util.emptyArray; /** - * RouterDeviceAuth maxInstanceCount. - * @member {number} maxInstanceCount - * @memberof Router.RouterDeviceAuth + * GetEnforcementResponse isInTrial. + * @member {boolean} isInTrial + * @memberof Router.GetEnforcementResponse * @instance */ - RouterDeviceAuth.prototype.maxInstanceCount = 0; + GetEnforcementResponse.prototype.isInTrial = false; /** - * Creates a new RouterDeviceAuth instance using the specified properties. + * Creates a new GetEnforcementResponse instance using the specified properties. * @function create - * @memberof Router.RouterDeviceAuth + * @memberof Router.GetEnforcementResponse * @static - * @param {Router.IRouterDeviceAuth=} [properties] Properties to set - * @returns {Router.RouterDeviceAuth} RouterDeviceAuth instance + * @param {Router.IGetEnforcementResponse=} [properties] Properties to set + * @returns {Router.GetEnforcementResponse} GetEnforcementResponse instance */ - RouterDeviceAuth.create = function create(properties) { - return new RouterDeviceAuth(properties); + GetEnforcementResponse.create = function create(properties) { + return new GetEnforcementResponse(properties); }; /** - * Encodes the specified RouterDeviceAuth message. Does not implicitly {@link Router.RouterDeviceAuth.verify|verify} messages. + * Encodes the specified GetEnforcementResponse message. Does not implicitly {@link Router.GetEnforcementResponse.verify|verify} messages. * @function encode - * @memberof Router.RouterDeviceAuth + * @memberof Router.GetEnforcementResponse * @static - * @param {Router.IRouterDeviceAuth} message RouterDeviceAuth message or plain object to encode + * @param {Router.IGetEnforcementResponse} message GetEnforcementResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterDeviceAuth.encode = function encode(message, writer) { + GetEnforcementResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.clientId); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.clientVersion); - if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.signature); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.enterpriseId); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.nodeId); - if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.deviceName); - if (message.deviceToken != null && Object.hasOwnProperty.call(message, "deviceToken")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.deviceToken); - if (message.controllerName != null && Object.hasOwnProperty.call(message, "controllerName")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.controllerName); - if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.controllerUid); - if (message.ownerUser != null && Object.hasOwnProperty.call(message, "ownerUser")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerUser); - if (message.challenge != null && Object.hasOwnProperty.call(message, "challenge")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.challenge); - if (message.ownerId != null && Object.hasOwnProperty.call(message, "ownerId")) - writer.uint32(/* id 12, wireType 0 =*/96).int32(message.ownerId); - if (message.maxInstanceCount != null && Object.hasOwnProperty.call(message, "maxInstanceCount")) - writer.uint32(/* id 13, wireType 0 =*/104).int32(message.maxInstanceCount); + if (message.enforcementTypes != null && message.enforcementTypes.length) + for (let i = 0; i < message.enforcementTypes.length; ++i) + $root.Router.EnforcementType.encode(message.enforcementTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.addOnIds != null && message.addOnIds.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (let i = 0; i < message.addOnIds.length; ++i) + writer.int32(message.addOnIds[i]); + writer.ldelim(); + } + if (message.isInTrial != null && Object.hasOwnProperty.call(message, "isInTrial")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isInTrial); return writer; }; /** - * Encodes the specified RouterDeviceAuth message, length delimited. Does not implicitly {@link Router.RouterDeviceAuth.verify|verify} messages. + * Encodes the specified GetEnforcementResponse message, length delimited. Does not implicitly {@link Router.GetEnforcementResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Router.RouterDeviceAuth + * @memberof Router.GetEnforcementResponse * @static - * @param {Router.IRouterDeviceAuth} message RouterDeviceAuth message or plain object to encode + * @param {Router.IGetEnforcementResponse} message GetEnforcementResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterDeviceAuth.encodeDelimited = function encodeDelimited(message, writer) { + GetEnforcementResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RouterDeviceAuth message from the specified reader or buffer. + * Decodes a GetEnforcementResponse message from the specified reader or buffer. * @function decode - * @memberof Router.RouterDeviceAuth + * @memberof Router.GetEnforcementResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.RouterDeviceAuth} RouterDeviceAuth + * @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 */ - RouterDeviceAuth.decode = function decode(reader, length) { + GetEnforcementResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterDeviceAuth(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.GetEnforcementResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.clientId = reader.string(); + if (!(message.enforcementTypes && message.enforcementTypes.length)) + message.enforcementTypes = []; + message.enforcementTypes.push($root.Router.EnforcementType.decode(reader, reader.uint32())); break; } case 2: { - message.clientVersion = reader.string(); + if (!(message.addOnIds && message.addOnIds.length)) + message.addOnIds = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.addOnIds.push(reader.int32()); + } else + message.addOnIds.push(reader.int32()); break; } case 3: { - message.signature = reader.bytes(); - break; - } - case 4: { - message.enterpriseId = reader.int32(); - break; - } - case 5: { - message.nodeId = reader.int64(); - break; - } - case 6: { - message.deviceName = reader.string(); - break; - } - case 7: { - message.deviceToken = reader.bytes(); - break; - } - case 8: { - message.controllerName = reader.string(); - break; - } - case 9: { - message.controllerUid = reader.bytes(); - break; - } - case 10: { - message.ownerUser = reader.string(); - break; - } - case 11: { - message.challenge = reader.string(); - break; - } - case 12: { - message.ownerId = reader.int32(); - break; - } - case 13: { - message.maxInstanceCount = reader.int32(); + message.isInTrial = reader.bool(); break; } default: @@ -247596,264 +279339,171 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a RouterDeviceAuth message from the specified reader or buffer, length delimited. + * Decodes a GetEnforcementResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.RouterDeviceAuth + * @memberof Router.GetEnforcementResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterDeviceAuth} RouterDeviceAuth + * @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 */ - RouterDeviceAuth.decodeDelimited = function decodeDelimited(reader) { + GetEnforcementResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RouterDeviceAuth message. + * Verifies a GetEnforcementResponse message. * @function verify - * @memberof Router.RouterDeviceAuth + * @memberof Router.GetEnforcementResponse * @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) { + GetEnforcementResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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]); + 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 RouterDeviceAuth message from a plain object. Also converts values to their respective internal types. + * Creates a GetEnforcementResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.RouterDeviceAuth + * @memberof Router.GetEnforcementResponse * @static * @param {Object.} object Plain object - * @returns {Router.RouterDeviceAuth} RouterDeviceAuth + * @returns {Router.GetEnforcementResponse} GetEnforcementResponse */ - RouterDeviceAuth.fromObject = function fromObject(object) { - if (object instanceof $root.Router.RouterDeviceAuth) + GetEnforcementResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Router.GetEnforcementResponse) return object; - let message = new $root.Router.RouterDeviceAuth(); - if (object.clientId != null) - message.clientId = String(object.clientId); - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); - if (object.signature != null) - if (typeof object.signature === "string") - $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); - else if (object.signature.length >= 0) - message.signature = object.signature; - if (object.enterpriseId != null) - message.enterpriseId = object.enterpriseId | 0; - if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") - message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); - if (object.deviceName != null) - message.deviceName = String(object.deviceName); - if (object.deviceToken != null) - if (typeof object.deviceToken === "string") - $util.base64.decode(object.deviceToken, message.deviceToken = $util.newBuffer($util.base64.length(object.deviceToken)), 0); - else if (object.deviceToken.length >= 0) - message.deviceToken = object.deviceToken; - if (object.controllerName != null) - message.controllerName = String(object.controllerName); - if (object.controllerUid != null) - if (typeof object.controllerUid === "string") - $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); - else if (object.controllerUid.length >= 0) - message.controllerUid = object.controllerUid; - if (object.ownerUser != null) - message.ownerUser = String(object.ownerUser); - if (object.challenge != null) - message.challenge = String(object.challenge); - if (object.ownerId != null) - message.ownerId = object.ownerId | 0; - if (object.maxInstanceCount != null) - message.maxInstanceCount = object.maxInstanceCount | 0; + let message = new $root.Router.GetEnforcementResponse(); + if (object.enforcementTypes) { + if (!Array.isArray(object.enforcementTypes)) + throw TypeError(".Router.GetEnforcementResponse.enforcementTypes: array expected"); + message.enforcementTypes = []; + for (let i = 0; i < object.enforcementTypes.length; ++i) { + if (typeof object.enforcementTypes[i] !== "object") + throw TypeError(".Router.GetEnforcementResponse.enforcementTypes: object expected"); + message.enforcementTypes[i] = $root.Router.EnforcementType.fromObject(object.enforcementTypes[i]); + } + } + if (object.addOnIds) { + if (!Array.isArray(object.addOnIds)) + throw TypeError(".Router.GetEnforcementResponse.addOnIds: array expected"); + message.addOnIds = []; + for (let i = 0; i < object.addOnIds.length; ++i) + message.addOnIds[i] = object.addOnIds[i] | 0; + } + if (object.isInTrial != null) + message.isInTrial = Boolean(object.isInTrial); return message; }; /** - * Creates a plain object from a RouterDeviceAuth message. Also converts values to other types if specified. + * Creates a plain object from a GetEnforcementResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Router.RouterDeviceAuth + * @memberof Router.GetEnforcementResponse * @static - * @param {Router.RouterDeviceAuth} message RouterDeviceAuth + * @param {Router.GetEnforcementResponse} message GetEnforcementResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterDeviceAuth.toObject = function toObject(message, options) { + GetEnforcementResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.clientId = ""; - object.clientVersion = ""; - if (options.bytes === String) - object.signature = ""; - else { - object.signature = []; - if (options.bytes !== Array) - object.signature = $util.newBuffer(object.signature); - } - object.enterpriseId = 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - object.deviceName = ""; - if (options.bytes === String) - object.deviceToken = ""; - else { - object.deviceToken = []; - if (options.bytes !== Array) - object.deviceToken = $util.newBuffer(object.deviceToken); - } - object.controllerName = ""; - if (options.bytes === String) - object.controllerUid = ""; - else { - object.controllerUid = []; - if (options.bytes !== Array) - object.controllerUid = $util.newBuffer(object.controllerUid); - } - object.ownerUser = ""; - object.challenge = ""; - object.ownerId = 0; - object.maxInstanceCount = 0; + if (options.arrays || options.defaults) { + object.enforcementTypes = []; + object.addOnIds = []; } - if (message.clientId != null && message.hasOwnProperty("clientId")) - object.clientId = message.clientId; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - object.clientVersion = message.clientVersion; - if (message.signature != null && message.hasOwnProperty("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")) - object.enterpriseId = message.enterpriseId; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - 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")) - object.deviceName = message.deviceName; - if (message.deviceToken != null && message.hasOwnProperty("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")) - object.controllerName = message.controllerName; - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) - object.controllerUid = options.bytes === String ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUid) : message.controllerUid; - if (message.ownerUser != null && message.hasOwnProperty("ownerUser")) - object.ownerUser = message.ownerUser; - if (message.challenge != null && message.hasOwnProperty("challenge")) - object.challenge = message.challenge; - if (message.ownerId != null && message.hasOwnProperty("ownerId")) - object.ownerId = message.ownerId; - if (message.maxInstanceCount != null && message.hasOwnProperty("maxInstanceCount")) - object.maxInstanceCount = message.maxInstanceCount; + if (options.defaults) + object.isInTrial = false; + if (message.enforcementTypes && message.enforcementTypes.length) { + object.enforcementTypes = []; + for (let j = 0; j < message.enforcementTypes.length; ++j) + object.enforcementTypes[j] = $root.Router.EnforcementType.toObject(message.enforcementTypes[j], options); + } + if (message.addOnIds && message.addOnIds.length) { + object.addOnIds = []; + for (let j = 0; j < message.addOnIds.length; ++j) + object.addOnIds[j] = message.addOnIds[j]; + } + if (message.isInTrial != null && message.hasOwnProperty("isInTrial")) + object.isInTrial = message.isInTrial; return object; }; /** - * Converts this RouterDeviceAuth to JSON. + * Converts this GetEnforcementResponse to JSON. * @function toJSON - * @memberof Router.RouterDeviceAuth + * @memberof Router.GetEnforcementResponse * @instance * @returns {Object.} JSON object */ - RouterDeviceAuth.prototype.toJSON = function toJSON() { + GetEnforcementResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RouterDeviceAuth + * Gets the default type url for GetEnforcementResponse * @function getTypeUrl - * @memberof Router.RouterDeviceAuth + * @memberof Router.GetEnforcementResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RouterDeviceAuth.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetEnforcementResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.RouterDeviceAuth"; + return typeUrlPrefix + "/Router.GetEnforcementResponse"; }; - return RouterDeviceAuth; + return GetEnforcementResponse; })(); - Router.RouterRecordRotation = (function() { + Router.PEDMTOTPValidateRequest = (function() { /** - * Properties of a RouterRecordRotation. + * Properties of a PEDMTOTPValidateRequest. * @memberof Router - * @interface IRouterRecordRotation - * @property {Uint8Array|null} [recordUid] RouterRecordRotation recordUid - * @property {Uint8Array|null} [configurationUid] RouterRecordRotation configurationUid - * @property {Uint8Array|null} [controllerUid] RouterRecordRotation controllerUid - * @property {Uint8Array|null} [resourceUid] RouterRecordRotation resourceUid - * @property {boolean|null} [noSchedule] RouterRecordRotation noSchedule + * @interface IPEDMTOTPValidateRequest + * @property {string|null} [username] PEDMTOTPValidateRequest username + * @property {number|null} [enterpriseId] PEDMTOTPValidateRequest enterpriseId + * @property {number|null} [code] PEDMTOTPValidateRequest code */ /** - * Constructs a new RouterRecordRotation. + * Constructs a new PEDMTOTPValidateRequest. * @memberof Router - * @classdesc Represents a RouterRecordRotation. - * @implements IRouterRecordRotation + * @classdesc Represents a PEDMTOTPValidateRequest. + * @implements IPEDMTOTPValidateRequest * @constructor - * @param {Router.IRouterRecordRotation=} [properties] Properties to set + * @param {Router.IPEDMTOTPValidateRequest=} [properties] Properties to set */ - function RouterRecordRotation(properties) { + function PEDMTOTPValidateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -247861,131 +279511,103 @@ export const Router = $root.Router = (() => { } /** - * RouterRecordRotation recordUid. - * @member {Uint8Array} recordUid - * @memberof Router.RouterRecordRotation - * @instance - */ - RouterRecordRotation.prototype.recordUid = $util.newBuffer([]); - - /** - * RouterRecordRotation configurationUid. - * @member {Uint8Array} configurationUid - * @memberof Router.RouterRecordRotation - * @instance - */ - RouterRecordRotation.prototype.configurationUid = $util.newBuffer([]); - - /** - * RouterRecordRotation controllerUid. - * @member {Uint8Array} controllerUid - * @memberof Router.RouterRecordRotation + * PEDMTOTPValidateRequest username. + * @member {string} username + * @memberof Router.PEDMTOTPValidateRequest * @instance */ - RouterRecordRotation.prototype.controllerUid = $util.newBuffer([]); + PEDMTOTPValidateRequest.prototype.username = ""; /** - * RouterRecordRotation resourceUid. - * @member {Uint8Array} resourceUid - * @memberof Router.RouterRecordRotation + * PEDMTOTPValidateRequest enterpriseId. + * @member {number} enterpriseId + * @memberof Router.PEDMTOTPValidateRequest * @instance */ - RouterRecordRotation.prototype.resourceUid = $util.newBuffer([]); + PEDMTOTPValidateRequest.prototype.enterpriseId = 0; /** - * RouterRecordRotation noSchedule. - * @member {boolean} noSchedule - * @memberof Router.RouterRecordRotation + * PEDMTOTPValidateRequest code. + * @member {number} code + * @memberof Router.PEDMTOTPValidateRequest * @instance */ - RouterRecordRotation.prototype.noSchedule = false; + PEDMTOTPValidateRequest.prototype.code = 0; /** - * Creates a new RouterRecordRotation instance using the specified properties. + * Creates a new PEDMTOTPValidateRequest instance using the specified properties. * @function create - * @memberof Router.RouterRecordRotation + * @memberof Router.PEDMTOTPValidateRequest * @static - * @param {Router.IRouterRecordRotation=} [properties] Properties to set - * @returns {Router.RouterRecordRotation} RouterRecordRotation instance + * @param {Router.IPEDMTOTPValidateRequest=} [properties] Properties to set + * @returns {Router.PEDMTOTPValidateRequest} PEDMTOTPValidateRequest instance */ - RouterRecordRotation.create = function create(properties) { - return new RouterRecordRotation(properties); + PEDMTOTPValidateRequest.create = function create(properties) { + return new PEDMTOTPValidateRequest(properties); }; /** - * Encodes the specified RouterRecordRotation message. Does not implicitly {@link Router.RouterRecordRotation.verify|verify} messages. + * Encodes the specified PEDMTOTPValidateRequest message. Does not implicitly {@link Router.PEDMTOTPValidateRequest.verify|verify} messages. * @function encode - * @memberof Router.RouterRecordRotation + * @memberof Router.PEDMTOTPValidateRequest * @static - * @param {Router.IRouterRecordRotation} message RouterRecordRotation message or plain object to encode + * @param {Router.IPEDMTOTPValidateRequest} message PEDMTOTPValidateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterRecordRotation.encode = function encode(message, writer) { + PEDMTOTPValidateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.configurationUid); - if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.controllerUid); - if (message.resourceUid != null && Object.hasOwnProperty.call(message, "resourceUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.resourceUid); - if (message.noSchedule != null && Object.hasOwnProperty.call(message, "noSchedule")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.noSchedule); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enterpriseId); + if (message.code != null && Object.hasOwnProperty.call(message, "code")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.code); return writer; }; /** - * Encodes the specified RouterRecordRotation message, length delimited. Does not implicitly {@link Router.RouterRecordRotation.verify|verify} messages. + * Encodes the specified PEDMTOTPValidateRequest message, length delimited. Does not implicitly {@link Router.PEDMTOTPValidateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Router.RouterRecordRotation + * @memberof Router.PEDMTOTPValidateRequest * @static - * @param {Router.IRouterRecordRotation} message RouterRecordRotation message or plain object to encode + * @param {Router.IPEDMTOTPValidateRequest} message PEDMTOTPValidateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterRecordRotation.encodeDelimited = function encodeDelimited(message, writer) { + PEDMTOTPValidateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RouterRecordRotation message from the specified reader or buffer. + * Decodes a PEDMTOTPValidateRequest message from the specified reader or buffer. * @function decode - * @memberof Router.RouterRecordRotation + * @memberof Router.PEDMTOTPValidateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.RouterRecordRotation} RouterRecordRotation + * @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 */ - RouterRecordRotation.decode = function decode(reader, length) { + PEDMTOTPValidateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterRecordRotation(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.PEDMTOTPValidateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + message.username = reader.string(); break; } case 2: { - message.configurationUid = reader.bytes(); + message.enterpriseId = reader.int32(); break; } case 3: { - message.controllerUid = reader.bytes(); - break; - } - case 4: { - message.resourceUid = reader.bytes(); - break; - } - case 5: { - message.noSchedule = reader.bool(); + message.code = reader.int32(); break; } default: @@ -247997,193 +279619,140 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a RouterRecordRotation message from the specified reader or buffer, length delimited. + * Decodes a PEDMTOTPValidateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.RouterRecordRotation + * @memberof Router.PEDMTOTPValidateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterRecordRotation} RouterRecordRotation + * @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 */ - RouterRecordRotation.decodeDelimited = function decodeDelimited(reader) { + PEDMTOTPValidateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RouterRecordRotation message. + * Verifies a PEDMTOTPValidateRequest message. * @function verify - * @memberof Router.RouterRecordRotation + * @memberof Router.PEDMTOTPValidateRequest * @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) { + PEDMTOTPValidateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.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"; + 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 RouterRecordRotation message from a plain object. Also converts values to their respective internal types. + * Creates a PEDMTOTPValidateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.RouterRecordRotation + * @memberof Router.PEDMTOTPValidateRequest * @static * @param {Object.} object Plain object - * @returns {Router.RouterRecordRotation} RouterRecordRotation + * @returns {Router.PEDMTOTPValidateRequest} PEDMTOTPValidateRequest */ - RouterRecordRotation.fromObject = function fromObject(object) { - if (object instanceof $root.Router.RouterRecordRotation) + PEDMTOTPValidateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Router.PEDMTOTPValidateRequest) return object; - let message = new $root.Router.RouterRecordRotation(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.configurationUid != null) - if (typeof object.configurationUid === "string") - $util.base64.decode(object.configurationUid, message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid)), 0); - else if (object.configurationUid.length >= 0) - message.configurationUid = object.configurationUid; - if (object.controllerUid != null) - if (typeof object.controllerUid === "string") - $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); - else if (object.controllerUid.length >= 0) - message.controllerUid = object.controllerUid; - if (object.resourceUid != null) - if (typeof object.resourceUid === "string") - $util.base64.decode(object.resourceUid, message.resourceUid = $util.newBuffer($util.base64.length(object.resourceUid)), 0); - else if (object.resourceUid.length >= 0) - message.resourceUid = object.resourceUid; - if (object.noSchedule != null) - message.noSchedule = Boolean(object.noSchedule); + let message = new $root.Router.PEDMTOTPValidateRequest(); + if (object.username != null) + message.username = String(object.username); + if (object.enterpriseId != null) + message.enterpriseId = object.enterpriseId | 0; + if (object.code != null) + message.code = object.code | 0; return message; }; /** - * Creates a plain object from a RouterRecordRotation message. Also converts values to other types if specified. + * Creates a plain object from a PEDMTOTPValidateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Router.RouterRecordRotation + * @memberof Router.PEDMTOTPValidateRequest * @static - * @param {Router.RouterRecordRotation} message RouterRecordRotation + * @param {Router.PEDMTOTPValidateRequest} message PEDMTOTPValidateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterRecordRotation.toObject = function toObject(message, options) { + PEDMTOTPValidateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if (options.bytes === String) - object.configurationUid = ""; - else { - object.configurationUid = []; - if (options.bytes !== Array) - object.configurationUid = $util.newBuffer(object.configurationUid); - } - if (options.bytes === String) - object.controllerUid = ""; - else { - object.controllerUid = []; - if (options.bytes !== Array) - object.controllerUid = $util.newBuffer(object.controllerUid); - } - if (options.bytes === String) - object.resourceUid = ""; - else { - object.resourceUid = []; - if (options.bytes !== Array) - object.resourceUid = $util.newBuffer(object.resourceUid); - } - object.noSchedule = false; + object.username = ""; + object.enterpriseId = 0; + object.code = 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) - object.configurationUid = options.bytes === String ? $util.base64.encode(message.configurationUid, 0, message.configurationUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.configurationUid) : message.configurationUid; - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) - object.controllerUid = options.bytes === String ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUid) : message.controllerUid; - if (message.resourceUid != null && message.hasOwnProperty("resourceUid")) - object.resourceUid = options.bytes === String ? $util.base64.encode(message.resourceUid, 0, message.resourceUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.resourceUid) : message.resourceUid; - if (message.noSchedule != null && message.hasOwnProperty("noSchedule")) - object.noSchedule = message.noSchedule; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + object.enterpriseId = message.enterpriseId; + if (message.code != null && message.hasOwnProperty("code")) + object.code = message.code; return object; }; /** - * Converts this RouterRecordRotation to JSON. + * Converts this PEDMTOTPValidateRequest to JSON. * @function toJSON - * @memberof Router.RouterRecordRotation + * @memberof Router.PEDMTOTPValidateRequest * @instance * @returns {Object.} JSON object */ - RouterRecordRotation.prototype.toJSON = function toJSON() { + PEDMTOTPValidateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RouterRecordRotation + * Gets the default type url for PEDMTOTPValidateRequest * @function getTypeUrl - * @memberof Router.RouterRecordRotation + * @memberof Router.PEDMTOTPValidateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RouterRecordRotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PEDMTOTPValidateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.RouterRecordRotation"; + return typeUrlPrefix + "/Router.PEDMTOTPValidateRequest"; }; - return RouterRecordRotation; + return PEDMTOTPValidateRequest; })(); - Router.RouterRecordRotationsRequest = (function() { + Router.GetPEDMAdminInfoResponse = (function() { /** - * Properties of a RouterRecordRotationsRequest. + * Properties of a GetPEDMAdminInfoResponse. * @memberof Router - * @interface IRouterRecordRotationsRequest - * @property {number|null} [enterpriseId] RouterRecordRotationsRequest enterpriseId - * @property {Array.|null} [records] RouterRecordRotationsRequest records + * @interface IGetPEDMAdminInfoResponse + * @property {boolean|null} [isPedmAdmin] GetPEDMAdminInfoResponse isPedmAdmin + * @property {boolean|null} [pedmAddonActive] GetPEDMAdminInfoResponse pedmAddonActive */ /** - * Constructs a new RouterRecordRotationsRequest. + * Constructs a new GetPEDMAdminInfoResponse. * @memberof Router - * @classdesc Represents a RouterRecordRotationsRequest. - * @implements IRouterRecordRotationsRequest + * @classdesc Represents a GetPEDMAdminInfoResponse. + * @implements IGetPEDMAdminInfoResponse * @constructor - * @param {Router.IRouterRecordRotationsRequest=} [properties] Properties to set + * @param {Router.IGetPEDMAdminInfoResponse=} [properties] Properties to set */ - function RouterRecordRotationsRequest(properties) { - this.records = []; + function GetPEDMAdminInfoResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -248191,92 +279760,89 @@ export const Router = $root.Router = (() => { } /** - * RouterRecordRotationsRequest enterpriseId. - * @member {number} enterpriseId - * @memberof Router.RouterRecordRotationsRequest + * GetPEDMAdminInfoResponse isPedmAdmin. + * @member {boolean} isPedmAdmin + * @memberof Router.GetPEDMAdminInfoResponse * @instance */ - RouterRecordRotationsRequest.prototype.enterpriseId = 0; + GetPEDMAdminInfoResponse.prototype.isPedmAdmin = false; /** - * RouterRecordRotationsRequest records. - * @member {Array.} records - * @memberof Router.RouterRecordRotationsRequest + * GetPEDMAdminInfoResponse pedmAddonActive. + * @member {boolean} pedmAddonActive + * @memberof Router.GetPEDMAdminInfoResponse * @instance */ - RouterRecordRotationsRequest.prototype.records = $util.emptyArray; + GetPEDMAdminInfoResponse.prototype.pedmAddonActive = false; /** - * Creates a new RouterRecordRotationsRequest instance using the specified properties. + * Creates a new GetPEDMAdminInfoResponse instance using the specified properties. * @function create - * @memberof Router.RouterRecordRotationsRequest + * @memberof Router.GetPEDMAdminInfoResponse * @static - * @param {Router.IRouterRecordRotationsRequest=} [properties] Properties to set - * @returns {Router.RouterRecordRotationsRequest} RouterRecordRotationsRequest instance + * @param {Router.IGetPEDMAdminInfoResponse=} [properties] Properties to set + * @returns {Router.GetPEDMAdminInfoResponse} GetPEDMAdminInfoResponse instance */ - RouterRecordRotationsRequest.create = function create(properties) { - return new RouterRecordRotationsRequest(properties); + GetPEDMAdminInfoResponse.create = function create(properties) { + return new GetPEDMAdminInfoResponse(properties); }; /** - * Encodes the specified RouterRecordRotationsRequest message. Does not implicitly {@link Router.RouterRecordRotationsRequest.verify|verify} messages. + * Encodes the specified GetPEDMAdminInfoResponse message. Does not implicitly {@link Router.GetPEDMAdminInfoResponse.verify|verify} messages. * @function encode - * @memberof Router.RouterRecordRotationsRequest + * @memberof Router.GetPEDMAdminInfoResponse * @static - * @param {Router.IRouterRecordRotationsRequest} message RouterRecordRotationsRequest message or plain object to encode + * @param {Router.IGetPEDMAdminInfoResponse} message GetPEDMAdminInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterRecordRotationsRequest.encode = function encode(message, writer) { + GetPEDMAdminInfoResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.enterpriseId); - if (message.records != null && message.records.length) - for (let i = 0; i < message.records.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.records[i]); + if (message.isPedmAdmin != null && Object.hasOwnProperty.call(message, "isPedmAdmin")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isPedmAdmin); + if (message.pedmAddonActive != null && Object.hasOwnProperty.call(message, "pedmAddonActive")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.pedmAddonActive); return writer; }; /** - * Encodes the specified RouterRecordRotationsRequest message, length delimited. Does not implicitly {@link Router.RouterRecordRotationsRequest.verify|verify} messages. + * Encodes the specified GetPEDMAdminInfoResponse message, length delimited. Does not implicitly {@link Router.GetPEDMAdminInfoResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Router.RouterRecordRotationsRequest + * @memberof Router.GetPEDMAdminInfoResponse * @static - * @param {Router.IRouterRecordRotationsRequest} message RouterRecordRotationsRequest message or plain object to encode + * @param {Router.IGetPEDMAdminInfoResponse} message GetPEDMAdminInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterRecordRotationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetPEDMAdminInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RouterRecordRotationsRequest message from the specified reader or buffer. + * Decodes a GetPEDMAdminInfoResponse message from the specified reader or buffer. * @function decode - * @memberof Router.RouterRecordRotationsRequest + * @memberof Router.GetPEDMAdminInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.RouterRecordRotationsRequest} RouterRecordRotationsRequest + * @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 */ - RouterRecordRotationsRequest.decode = function decode(reader, length) { + GetPEDMAdminInfoResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterRecordRotationsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.GetPEDMAdminInfoResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.enterpriseId = reader.int32(); + message.isPedmAdmin = reader.bool(); break; } case 2: { - if (!(message.records && message.records.length)) - message.records = []; - message.records.push(reader.bytes()); + message.pedmAddonActive = reader.bool(); break; } default: @@ -248288,148 +279854,131 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a RouterRecordRotationsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetPEDMAdminInfoResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.RouterRecordRotationsRequest + * @memberof Router.GetPEDMAdminInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterRecordRotationsRequest} RouterRecordRotationsRequest + * @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 */ - RouterRecordRotationsRequest.decodeDelimited = function decodeDelimited(reader) { + GetPEDMAdminInfoResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RouterRecordRotationsRequest message. + * Verifies a GetPEDMAdminInfoResponse message. * @function verify - * @memberof Router.RouterRecordRotationsRequest + * @memberof Router.GetPEDMAdminInfoResponse * @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) { + GetPEDMAdminInfoResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; - } + 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 RouterRecordRotationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetPEDMAdminInfoResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.RouterRecordRotationsRequest + * @memberof Router.GetPEDMAdminInfoResponse * @static * @param {Object.} object Plain object - * @returns {Router.RouterRecordRotationsRequest} RouterRecordRotationsRequest + * @returns {Router.GetPEDMAdminInfoResponse} GetPEDMAdminInfoResponse */ - RouterRecordRotationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Router.RouterRecordRotationsRequest) + GetPEDMAdminInfoResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Router.GetPEDMAdminInfoResponse) return object; - let message = new $root.Router.RouterRecordRotationsRequest(); - if (object.enterpriseId != null) - message.enterpriseId = object.enterpriseId | 0; - if (object.records) { - if (!Array.isArray(object.records)) - throw TypeError(".Router.RouterRecordRotationsRequest.records: array expected"); - message.records = []; - for (let i = 0; i < object.records.length; ++i) - if (typeof object.records[i] === "string") - $util.base64.decode(object.records[i], message.records[i] = $util.newBuffer($util.base64.length(object.records[i])), 0); - else if (object.records[i].length >= 0) - message.records[i] = object.records[i]; - } + let message = new $root.Router.GetPEDMAdminInfoResponse(); + if (object.isPedmAdmin != null) + message.isPedmAdmin = Boolean(object.isPedmAdmin); + if (object.pedmAddonActive != null) + message.pedmAddonActive = Boolean(object.pedmAddonActive); return message; }; /** - * Creates a plain object from a RouterRecordRotationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetPEDMAdminInfoResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Router.RouterRecordRotationsRequest + * @memberof Router.GetPEDMAdminInfoResponse * @static - * @param {Router.RouterRecordRotationsRequest} message RouterRecordRotationsRequest + * @param {Router.GetPEDMAdminInfoResponse} message GetPEDMAdminInfoResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterRecordRotationsRequest.toObject = function toObject(message, options) { + GetPEDMAdminInfoResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.records = []; - if (options.defaults) - object.enterpriseId = 0; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - object.enterpriseId = message.enterpriseId; - if (message.records && message.records.length) { - object.records = []; - for (let j = 0; j < message.records.length; ++j) - object.records[j] = options.bytes === String ? $util.base64.encode(message.records[j], 0, message.records[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.records[j]) : message.records[j]; + if (options.defaults) { + object.isPedmAdmin = false; + object.pedmAddonActive = false; } + if (message.isPedmAdmin != null && message.hasOwnProperty("isPedmAdmin")) + object.isPedmAdmin = message.isPedmAdmin; + if (message.pedmAddonActive != null && message.hasOwnProperty("pedmAddonActive")) + object.pedmAddonActive = message.pedmAddonActive; return object; }; /** - * Converts this RouterRecordRotationsRequest to JSON. + * Converts this GetPEDMAdminInfoResponse to JSON. * @function toJSON - * @memberof Router.RouterRecordRotationsRequest + * @memberof Router.GetPEDMAdminInfoResponse * @instance * @returns {Object.} JSON object */ - RouterRecordRotationsRequest.prototype.toJSON = function toJSON() { + GetPEDMAdminInfoResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RouterRecordRotationsRequest + * Gets the default type url for GetPEDMAdminInfoResponse * @function getTypeUrl - * @memberof Router.RouterRecordRotationsRequest + * @memberof Router.GetPEDMAdminInfoResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RouterRecordRotationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetPEDMAdminInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.RouterRecordRotationsRequest"; + return typeUrlPrefix + "/Router.GetPEDMAdminInfoResponse"; }; - return RouterRecordRotationsRequest; + return GetPEDMAdminInfoResponse; })(); - Router.RouterRecordRotationsResponse = (function() { + Router.PAMNetworkSettings = (function() { /** - * Properties of a RouterRecordRotationsResponse. + * Properties of a PAMNetworkSettings. * @memberof Router - * @interface IRouterRecordRotationsResponse - * @property {Array.|null} [rotations] RouterRecordRotationsResponse rotations - * @property {boolean|null} [hasMore] RouterRecordRotationsResponse hasMore + * @interface IPAMNetworkSettings + * @property {Uint8Array|null} [allowedSettings] PAMNetworkSettings allowedSettings */ /** - * Constructs a new RouterRecordRotationsResponse. + * Constructs a new PAMNetworkSettings. * @memberof Router - * @classdesc Represents a RouterRecordRotationsResponse. - * @implements IRouterRecordRotationsResponse + * @classdesc Represents a PAMNetworkSettings. + * @implements IPAMNetworkSettings * @constructor - * @param {Router.IRouterRecordRotationsResponse=} [properties] Properties to set + * @param {Router.IPAMNetworkSettings=} [properties] Properties to set */ - function RouterRecordRotationsResponse(properties) { - this.rotations = []; + function PAMNetworkSettings(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -248437,92 +279986,75 @@ export const Router = $root.Router = (() => { } /** - * RouterRecordRotationsResponse rotations. - * @member {Array.} rotations - * @memberof Router.RouterRecordRotationsResponse - * @instance - */ - RouterRecordRotationsResponse.prototype.rotations = $util.emptyArray; - - /** - * RouterRecordRotationsResponse hasMore. - * @member {boolean} hasMore - * @memberof Router.RouterRecordRotationsResponse + * PAMNetworkSettings allowedSettings. + * @member {Uint8Array} allowedSettings + * @memberof Router.PAMNetworkSettings * @instance */ - RouterRecordRotationsResponse.prototype.hasMore = false; + PAMNetworkSettings.prototype.allowedSettings = $util.newBuffer([]); /** - * Creates a new RouterRecordRotationsResponse instance using the specified properties. + * Creates a new PAMNetworkSettings instance using the specified properties. * @function create - * @memberof Router.RouterRecordRotationsResponse + * @memberof Router.PAMNetworkSettings * @static - * @param {Router.IRouterRecordRotationsResponse=} [properties] Properties to set - * @returns {Router.RouterRecordRotationsResponse} RouterRecordRotationsResponse instance + * @param {Router.IPAMNetworkSettings=} [properties] Properties to set + * @returns {Router.PAMNetworkSettings} PAMNetworkSettings instance */ - RouterRecordRotationsResponse.create = function create(properties) { - return new RouterRecordRotationsResponse(properties); + PAMNetworkSettings.create = function create(properties) { + return new PAMNetworkSettings(properties); }; /** - * Encodes the specified RouterRecordRotationsResponse message. Does not implicitly {@link Router.RouterRecordRotationsResponse.verify|verify} messages. + * Encodes the specified PAMNetworkSettings message. Does not implicitly {@link Router.PAMNetworkSettings.verify|verify} messages. * @function encode - * @memberof Router.RouterRecordRotationsResponse + * @memberof Router.PAMNetworkSettings * @static - * @param {Router.IRouterRecordRotationsResponse} message RouterRecordRotationsResponse message or plain object to encode + * @param {Router.IPAMNetworkSettings} message PAMNetworkSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterRecordRotationsResponse.encode = function encode(message, writer) { + PAMNetworkSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rotations != null && message.rotations.length) - for (let i = 0; i < message.rotations.length; ++i) - $root.Router.RouterRecordRotation.encode(message.rotations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.hasMore); + if (message.allowedSettings != null && Object.hasOwnProperty.call(message, "allowedSettings")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.allowedSettings); return writer; }; /** - * Encodes the specified RouterRecordRotationsResponse message, length delimited. Does not implicitly {@link Router.RouterRecordRotationsResponse.verify|verify} messages. + * Encodes the specified PAMNetworkSettings message, length delimited. Does not implicitly {@link Router.PAMNetworkSettings.verify|verify} messages. * @function encodeDelimited - * @memberof Router.RouterRecordRotationsResponse + * @memberof Router.PAMNetworkSettings * @static - * @param {Router.IRouterRecordRotationsResponse} message RouterRecordRotationsResponse message or plain object to encode + * @param {Router.IPAMNetworkSettings} message PAMNetworkSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterRecordRotationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + PAMNetworkSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RouterRecordRotationsResponse message from the specified reader or buffer. + * Decodes a PAMNetworkSettings message from the specified reader or buffer. * @function decode - * @memberof Router.RouterRecordRotationsResponse + * @memberof Router.PAMNetworkSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.RouterRecordRotationsResponse} RouterRecordRotationsResponse + * @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 */ - RouterRecordRotationsResponse.decode = function decode(reader, length) { + PAMNetworkSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterRecordRotationsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.PAMNetworkSettings(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.rotations && message.rotations.length)) - message.rotations = []; - message.rotations.push($root.Router.RouterRecordRotation.decode(reader, reader.uint32())); - break; - } - case 2: { - message.hasMore = reader.bool(); + message.allowedSettings = reader.bytes(); break; } default: @@ -248534,174 +280066,136 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a RouterRecordRotationsResponse message from the specified reader or buffer, length delimited. + * Decodes a PAMNetworkSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.RouterRecordRotationsResponse + * @memberof Router.PAMNetworkSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterRecordRotationsResponse} RouterRecordRotationsResponse + * @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 */ - RouterRecordRotationsResponse.decodeDelimited = function decodeDelimited(reader) { + PAMNetworkSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RouterRecordRotationsResponse message. + * Verifies a PAMNetworkSettings message. * @function verify - * @memberof Router.RouterRecordRotationsResponse + * @memberof Router.PAMNetworkSettings * @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) { + PAMNetworkSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "rotations." + error; - } - } - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - if (typeof message.hasMore !== "boolean") - return "hasMore: boolean expected"; + if (message.allowedSettings != null && message.hasOwnProperty("allowedSettings")) + if (!(message.allowedSettings && typeof message.allowedSettings.length === "number" || $util.isString(message.allowedSettings))) + return "allowedSettings: buffer expected"; return null; }; /** - * Creates a RouterRecordRotationsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PAMNetworkSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.RouterRecordRotationsResponse + * @memberof Router.PAMNetworkSettings * @static * @param {Object.} object Plain object - * @returns {Router.RouterRecordRotationsResponse} RouterRecordRotationsResponse - */ - RouterRecordRotationsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Router.RouterRecordRotationsResponse) - return object; - let message = new $root.Router.RouterRecordRotationsResponse(); - if (object.rotations) { - if (!Array.isArray(object.rotations)) - throw TypeError(".Router.RouterRecordRotationsResponse.rotations: array expected"); - message.rotations = []; - for (let i = 0; i < object.rotations.length; ++i) { - if (typeof object.rotations[i] !== "object") - throw TypeError(".Router.RouterRecordRotationsResponse.rotations: object expected"); - message.rotations[i] = $root.Router.RouterRecordRotation.fromObject(object.rotations[i]); - } - } - if (object.hasMore != null) - message.hasMore = Boolean(object.hasMore); + * @returns {Router.PAMNetworkSettings} PAMNetworkSettings + */ + PAMNetworkSettings.fromObject = function fromObject(object) { + if (object instanceof $root.Router.PAMNetworkSettings) + return object; + let message = new $root.Router.PAMNetworkSettings(); + if (object.allowedSettings != null) + if (typeof object.allowedSettings === "string") + $util.base64.decode(object.allowedSettings, message.allowedSettings = $util.newBuffer($util.base64.length(object.allowedSettings)), 0); + else if (object.allowedSettings.length >= 0) + message.allowedSettings = object.allowedSettings; return message; }; /** - * Creates a plain object from a RouterRecordRotationsResponse message. Also converts values to other types if specified. + * Creates a plain object from a PAMNetworkSettings message. Also converts values to other types if specified. * @function toObject - * @memberof Router.RouterRecordRotationsResponse + * @memberof Router.PAMNetworkSettings * @static - * @param {Router.RouterRecordRotationsResponse} message RouterRecordRotationsResponse + * @param {Router.PAMNetworkSettings} message PAMNetworkSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterRecordRotationsResponse.toObject = function toObject(message, options) { + PAMNetworkSettings.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.rotations = []; if (options.defaults) - object.hasMore = false; - if (message.rotations && message.rotations.length) { - object.rotations = []; - for (let j = 0; j < message.rotations.length; ++j) - object.rotations[j] = $root.Router.RouterRecordRotation.toObject(message.rotations[j], options); - } - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - object.hasMore = message.hasMore; + if (options.bytes === String) + object.allowedSettings = ""; + else { + object.allowedSettings = []; + if (options.bytes !== Array) + object.allowedSettings = $util.newBuffer(object.allowedSettings); + } + if (message.allowedSettings != null && message.hasOwnProperty("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; return object; }; /** - * Converts this RouterRecordRotationsResponse to JSON. + * Converts this PAMNetworkSettings to JSON. * @function toJSON - * @memberof Router.RouterRecordRotationsResponse + * @memberof Router.PAMNetworkSettings * @instance * @returns {Object.} JSON object */ - RouterRecordRotationsResponse.prototype.toJSON = function toJSON() { + PAMNetworkSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RouterRecordRotationsResponse + * Gets the default type url for PAMNetworkSettings * @function getTypeUrl - * @memberof Router.RouterRecordRotationsResponse + * @memberof Router.PAMNetworkSettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RouterRecordRotationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMNetworkSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.RouterRecordRotationsResponse"; + return typeUrlPrefix + "/Router.PAMNetworkSettings"; }; - return RouterRecordRotationsResponse; - })(); - - /** - * RouterRotationStatus enum. - * @name Router.RouterRotationStatus - * @enum {number} - * @property {number} RRS_ONLINE=0 RRS_ONLINE value - * @property {number} RRS_NO_ROTATION=1 RRS_NO_ROTATION value - * @property {number} RRS_NO_CONTROLLER=2 RRS_NO_CONTROLLER value - * @property {number} RRS_CONTROLLER_DOWN=3 RRS_CONTROLLER_DOWN value - */ - Router.RouterRotationStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RRS_ONLINE"] = 0; - values[valuesById[1] = "RRS_NO_ROTATION"] = 1; - values[valuesById[2] = "RRS_NO_CONTROLLER"] = 2; - values[valuesById[3] = "RRS_CONTROLLER_DOWN"] = 3; - return values; + return PAMNetworkSettings; })(); - Router.RouterRotationInfo = (function() { + Router.PAMNetworkConfigurationRequest = (function() { /** - * Properties of a RouterRotationInfo. + * Properties of a PAMNetworkConfigurationRequest. * @memberof Router - * @interface IRouterRotationInfo - * @property {Router.RouterRotationStatus|null} [status] RouterRotationInfo status - * @property {Uint8Array|null} [configurationUid] RouterRotationInfo configurationUid - * @property {Uint8Array|null} [resourceUid] RouterRotationInfo resourceUid - * @property {number|Long|null} [nodeId] RouterRotationInfo nodeId - * @property {Uint8Array|null} [controllerUid] RouterRotationInfo controllerUid - * @property {string|null} [controllerName] RouterRotationInfo controllerName - * @property {string|null} [scriptName] RouterRotationInfo scriptName - * @property {string|null} [pwdComplexity] RouterRotationInfo pwdComplexity - * @property {boolean|null} [disabled] RouterRotationInfo disabled + * @interface IPAMNetworkConfigurationRequest + * @property {Uint8Array|null} [recordUid] PAMNetworkConfigurationRequest recordUid + * @property {Router.IPAMNetworkSettings|null} [networkSettings] PAMNetworkConfigurationRequest networkSettings + * @property {Array.|null} [resources] PAMNetworkConfigurationRequest resources + * @property {Array.|null} [rotations] PAMNetworkConfigurationRequest rotations */ /** - * Constructs a new RouterRotationInfo. + * Constructs a new PAMNetworkConfigurationRequest. * @memberof Router - * @classdesc Represents a RouterRotationInfo. - * @implements IRouterRotationInfo + * @classdesc Represents a PAMNetworkConfigurationRequest. + * @implements IPAMNetworkConfigurationRequest * @constructor - * @param {Router.IRouterRotationInfo=} [properties] Properties to set + * @param {Router.IPAMNetworkConfigurationRequest=} [properties] Properties to set */ - function RouterRotationInfo(properties) { + function PAMNetworkConfigurationRequest(properties) { + this.resources = []; + this.rotations = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -248709,187 +280203,137 @@ export const Router = $root.Router = (() => { } /** - * RouterRotationInfo status. - * @member {Router.RouterRotationStatus} status - * @memberof Router.RouterRotationInfo - * @instance - */ - RouterRotationInfo.prototype.status = 0; - - /** - * RouterRotationInfo configurationUid. - * @member {Uint8Array} configurationUid - * @memberof Router.RouterRotationInfo - * @instance - */ - RouterRotationInfo.prototype.configurationUid = $util.newBuffer([]); - - /** - * RouterRotationInfo resourceUid. - * @member {Uint8Array} resourceUid - * @memberof Router.RouterRotationInfo - * @instance - */ - RouterRotationInfo.prototype.resourceUid = $util.newBuffer([]); - - /** - * RouterRotationInfo nodeId. - * @member {number|Long} nodeId - * @memberof Router.RouterRotationInfo + * PAMNetworkConfigurationRequest recordUid. + * @member {Uint8Array} recordUid + * @memberof Router.PAMNetworkConfigurationRequest * @instance */ - RouterRotationInfo.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + PAMNetworkConfigurationRequest.prototype.recordUid = $util.newBuffer([]); /** - * RouterRotationInfo controllerUid. - * @member {Uint8Array} controllerUid - * @memberof Router.RouterRotationInfo + * PAMNetworkConfigurationRequest networkSettings. + * @member {Router.IPAMNetworkSettings|null|undefined} networkSettings + * @memberof Router.PAMNetworkConfigurationRequest * @instance */ - RouterRotationInfo.prototype.controllerUid = $util.newBuffer([]); + PAMNetworkConfigurationRequest.prototype.networkSettings = null; /** - * RouterRotationInfo controllerName. - * @member {string} controllerName - * @memberof Router.RouterRotationInfo + * PAMNetworkConfigurationRequest resources. + * @member {Array.} resources + * @memberof Router.PAMNetworkConfigurationRequest * @instance */ - RouterRotationInfo.prototype.controllerName = ""; + PAMNetworkConfigurationRequest.prototype.resources = $util.emptyArray; /** - * RouterRotationInfo scriptName. - * @member {string} scriptName - * @memberof Router.RouterRotationInfo + * PAMNetworkConfigurationRequest rotations. + * @member {Array.} rotations + * @memberof Router.PAMNetworkConfigurationRequest * @instance */ - RouterRotationInfo.prototype.scriptName = ""; + PAMNetworkConfigurationRequest.prototype.rotations = $util.emptyArray; - /** - * RouterRotationInfo pwdComplexity. - * @member {string} pwdComplexity - * @memberof Router.RouterRotationInfo - * @instance - */ - RouterRotationInfo.prototype.pwdComplexity = ""; + // OneOf field names bound to virtual getters and setters + let $oneOfFields; /** - * RouterRotationInfo disabled. - * @member {boolean} disabled - * @memberof Router.RouterRotationInfo + * PAMNetworkConfigurationRequest _networkSettings. + * @member {"networkSettings"|undefined} _networkSettings + * @memberof Router.PAMNetworkConfigurationRequest * @instance */ - RouterRotationInfo.prototype.disabled = false; + Object.defineProperty(PAMNetworkConfigurationRequest.prototype, "_networkSettings", { + get: $util.oneOfGetter($oneOfFields = ["networkSettings"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new RouterRotationInfo instance using the specified properties. + * Creates a new PAMNetworkConfigurationRequest instance using the specified properties. * @function create - * @memberof Router.RouterRotationInfo + * @memberof Router.PAMNetworkConfigurationRequest * @static - * @param {Router.IRouterRotationInfo=} [properties] Properties to set - * @returns {Router.RouterRotationInfo} RouterRotationInfo instance + * @param {Router.IPAMNetworkConfigurationRequest=} [properties] Properties to set + * @returns {Router.PAMNetworkConfigurationRequest} PAMNetworkConfigurationRequest instance */ - RouterRotationInfo.create = function create(properties) { - return new RouterRotationInfo(properties); + PAMNetworkConfigurationRequest.create = function create(properties) { + return new PAMNetworkConfigurationRequest(properties); }; /** - * Encodes the specified RouterRotationInfo message. Does not implicitly {@link Router.RouterRotationInfo.verify|verify} messages. + * Encodes the specified PAMNetworkConfigurationRequest message. Does not implicitly {@link Router.PAMNetworkConfigurationRequest.verify|verify} messages. * @function encode - * @memberof Router.RouterRotationInfo + * @memberof Router.PAMNetworkConfigurationRequest * @static - * @param {Router.IRouterRotationInfo} message RouterRotationInfo message or plain object to encode + * @param {Router.IPAMNetworkConfigurationRequest} message PAMNetworkConfigurationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterRotationInfo.encode = function encode(message, writer) { + PAMNetworkConfigurationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status); - if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.configurationUid); - if (message.resourceUid != null && Object.hasOwnProperty.call(message, "resourceUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.resourceUid); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.nodeId); - if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.controllerUid); - if (message.controllerName != null && Object.hasOwnProperty.call(message, "controllerName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.controllerName); - if (message.scriptName != null && Object.hasOwnProperty.call(message, "scriptName")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.scriptName); - if (message.pwdComplexity != null && Object.hasOwnProperty.call(message, "pwdComplexity")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.pwdComplexity); - if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.disabled); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.networkSettings != null && Object.hasOwnProperty.call(message, "networkSettings")) + $root.Router.PAMNetworkSettings.encode(message.networkSettings, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.resources != null && message.resources.length) + for (let i = 0; i < message.resources.length; ++i) + $root.PAM.PAMResourceConfig.encode(message.resources[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.rotations != null && message.rotations.length) + for (let i = 0; i < message.rotations.length; ++i) + $root.Router.RouterRecordRotationRequest.encode(message.rotations[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified RouterRotationInfo message, length delimited. Does not implicitly {@link Router.RouterRotationInfo.verify|verify} messages. + * Encodes the specified PAMNetworkConfigurationRequest message, length delimited. Does not implicitly {@link Router.PAMNetworkConfigurationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Router.RouterRotationInfo + * @memberof Router.PAMNetworkConfigurationRequest * @static - * @param {Router.IRouterRotationInfo} message RouterRotationInfo message or plain object to encode + * @param {Router.IPAMNetworkConfigurationRequest} message PAMNetworkConfigurationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterRotationInfo.encodeDelimited = function encodeDelimited(message, writer) { + PAMNetworkConfigurationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RouterRotationInfo message from the specified reader or buffer. + * Decodes a PAMNetworkConfigurationRequest message from the specified reader or buffer. * @function decode - * @memberof Router.RouterRotationInfo + * @memberof Router.PAMNetworkConfigurationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.RouterRotationInfo} RouterRotationInfo + * @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 */ - RouterRotationInfo.decode = function decode(reader, length) { + PAMNetworkConfigurationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterRotationInfo(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.PAMNetworkConfigurationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.status = reader.int32(); + message.recordUid = reader.bytes(); break; } case 2: { - message.configurationUid = reader.bytes(); + message.networkSettings = $root.Router.PAMNetworkSettings.decode(reader, reader.uint32()); break; } case 3: { - message.resourceUid = reader.bytes(); + if (!(message.resources && message.resources.length)) + message.resources = []; + message.resources.push($root.PAM.PAMResourceConfig.decode(reader, reader.uint32())); break; } case 4: { - message.nodeId = reader.int64(); - break; - } - case 5: { - message.controllerUid = reader.bytes(); - break; - } - case 6: { - message.controllerName = reader.string(); - break; - } - case 7: { - message.scriptName = reader.string(); - break; - } - case 8: { - message.pwdComplexity = reader.string(); - break; - } - case 9: { - message.disabled = reader.bool(); + if (!(message.rotations && message.rotations.length)) + message.rotations = []; + message.rotations.push($root.Router.RouterRecordRotationRequest.decode(reader, reader.uint32())); break; } default: @@ -248901,268 +280345,204 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a RouterRotationInfo message from the specified reader or buffer, length delimited. + * Decodes a PAMNetworkConfigurationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.RouterRotationInfo + * @memberof Router.PAMNetworkConfigurationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterRotationInfo} RouterRotationInfo + * @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 */ - RouterRotationInfo.decodeDelimited = function decodeDelimited(reader) { + PAMNetworkConfigurationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RouterRotationInfo message. + * Verifies a PAMNetworkConfigurationRequest message. * @function verify - * @memberof Router.RouterRotationInfo + * @memberof Router.PAMNetworkConfigurationRequest * @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) { + PAMNetworkConfigurationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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; + 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); + if (error) + return "networkSettings." + error; } - 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"; + } + 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]); + 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]); + if (error) + return "rotations." + error; + } + } return null; }; /** - * Creates a RouterRotationInfo message from a plain object. Also converts values to their respective internal types. + * Creates a PAMNetworkConfigurationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.RouterRotationInfo + * @memberof Router.PAMNetworkConfigurationRequest * @static * @param {Object.} object Plain object - * @returns {Router.RouterRotationInfo} RouterRotationInfo + * @returns {Router.PAMNetworkConfigurationRequest} PAMNetworkConfigurationRequest */ - RouterRotationInfo.fromObject = function fromObject(object) { - if (object instanceof $root.Router.RouterRotationInfo) + PAMNetworkConfigurationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Router.PAMNetworkConfigurationRequest) return object; - let message = new $root.Router.RouterRotationInfo(); - switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; + let message = new $root.Router.PAMNetworkConfigurationRequest(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.networkSettings != null) { + if (typeof object.networkSettings !== "object") + throw TypeError(".Router.PAMNetworkConfigurationRequest.networkSettings: object expected"); + message.networkSettings = $root.Router.PAMNetworkSettings.fromObject(object.networkSettings); + } + if (object.resources) { + if (!Array.isArray(object.resources)) + throw TypeError(".Router.PAMNetworkConfigurationRequest.resources: array expected"); + message.resources = []; + for (let i = 0; i < object.resources.length; ++i) { + if (typeof object.resources[i] !== "object") + throw TypeError(".Router.PAMNetworkConfigurationRequest.resources: object expected"); + message.resources[i] = $root.PAM.PAMResourceConfig.fromObject(object.resources[i]); + } + } + if (object.rotations) { + if (!Array.isArray(object.rotations)) + throw TypeError(".Router.PAMNetworkConfigurationRequest.rotations: array expected"); + message.rotations = []; + for (let i = 0; i < object.rotations.length; ++i) { + if (typeof object.rotations[i] !== "object") + throw TypeError(".Router.PAMNetworkConfigurationRequest.rotations: object expected"); + message.rotations[i] = $root.Router.RouterRecordRotationRequest.fromObject(object.rotations[i]); } - break; - case "RRS_ONLINE": - case 0: - message.status = 0; - break; - case "RRS_NO_ROTATION": - case 1: - message.status = 1; - break; - case "RRS_NO_CONTROLLER": - case 2: - message.status = 2; - break; - case "RRS_CONTROLLER_DOWN": - case 3: - message.status = 3; - break; } - if (object.configurationUid != null) - if (typeof object.configurationUid === "string") - $util.base64.decode(object.configurationUid, message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid)), 0); - else if (object.configurationUid.length >= 0) - message.configurationUid = object.configurationUid; - if (object.resourceUid != null) - if (typeof object.resourceUid === "string") - $util.base64.decode(object.resourceUid, message.resourceUid = $util.newBuffer($util.base64.length(object.resourceUid)), 0); - else if (object.resourceUid.length >= 0) - message.resourceUid = object.resourceUid; - if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") - message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); - if (object.controllerUid != null) - if (typeof object.controllerUid === "string") - $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); - else if (object.controllerUid.length >= 0) - message.controllerUid = object.controllerUid; - if (object.controllerName != null) - message.controllerName = String(object.controllerName); - if (object.scriptName != null) - message.scriptName = String(object.scriptName); - if (object.pwdComplexity != null) - message.pwdComplexity = String(object.pwdComplexity); - if (object.disabled != null) - message.disabled = Boolean(object.disabled); return message; }; /** - * Creates a plain object from a RouterRotationInfo message. Also converts values to other types if specified. + * Creates a plain object from a PAMNetworkConfigurationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Router.RouterRotationInfo + * @memberof Router.PAMNetworkConfigurationRequest * @static - * @param {Router.RouterRotationInfo} message RouterRotationInfo + * @param {Router.PAMNetworkConfigurationRequest} message PAMNetworkConfigurationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterRotationInfo.toObject = function toObject(message, options) { + PAMNetworkConfigurationRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.status = options.enums === String ? "RRS_ONLINE" : 0; - if (options.bytes === String) - object.configurationUid = ""; - else { - object.configurationUid = []; - if (options.bytes !== Array) - object.configurationUid = $util.newBuffer(object.configurationUid); - } - if (options.bytes === String) - object.resourceUid = ""; - else { - object.resourceUid = []; - if (options.bytes !== Array) - object.resourceUid = $util.newBuffer(object.resourceUid); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; + if (options.arrays || options.defaults) { + object.resources = []; + object.rotations = []; + } + if (options.defaults) if (options.bytes === String) - object.controllerUid = ""; + object.recordUid = ""; else { - object.controllerUid = []; + object.recordUid = []; if (options.bytes !== Array) - object.controllerUid = $util.newBuffer(object.controllerUid); + object.recordUid = $util.newBuffer(object.recordUid); } - object.controllerName = ""; - object.scriptName = ""; - object.pwdComplexity = ""; - object.disabled = false; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.networkSettings != null && message.hasOwnProperty("networkSettings")) { + object.networkSettings = $root.Router.PAMNetworkSettings.toObject(message.networkSettings, options); + if (options.oneofs) + object._networkSettings = "networkSettings"; + } + if (message.resources && message.resources.length) { + object.resources = []; + for (let j = 0; j < message.resources.length; ++j) + object.resources[j] = $root.PAM.PAMResourceConfig.toObject(message.resources[j], options); + } + if (message.rotations && message.rotations.length) { + object.rotations = []; + for (let j = 0; j < message.rotations.length; ++j) + object.rotations[j] = $root.Router.RouterRecordRotationRequest.toObject(message.rotations[j], options); } - if (message.status != null && message.hasOwnProperty("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")) - 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")) - object.resourceUid = options.bytes === String ? $util.base64.encode(message.resourceUid, 0, message.resourceUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.resourceUid) : message.resourceUid; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof 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")) - 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")) - object.controllerName = message.controllerName; - if (message.scriptName != null && message.hasOwnProperty("scriptName")) - object.scriptName = message.scriptName; - if (message.pwdComplexity != null && message.hasOwnProperty("pwdComplexity")) - object.pwdComplexity = message.pwdComplexity; - if (message.disabled != null && message.hasOwnProperty("disabled")) - object.disabled = message.disabled; return object; }; /** - * Converts this RouterRotationInfo to JSON. + * Converts this PAMNetworkConfigurationRequest to JSON. * @function toJSON - * @memberof Router.RouterRotationInfo + * @memberof Router.PAMNetworkConfigurationRequest * @instance * @returns {Object.} JSON object */ - RouterRotationInfo.prototype.toJSON = function toJSON() { + PAMNetworkConfigurationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RouterRotationInfo + * Gets the default type url for PAMNetworkConfigurationRequest * @function getTypeUrl - * @memberof Router.RouterRotationInfo + * @memberof Router.PAMNetworkConfigurationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RouterRotationInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMNetworkConfigurationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.RouterRotationInfo"; + return typeUrlPrefix + "/Router.PAMNetworkConfigurationRequest"; }; - return RouterRotationInfo; + return PAMNetworkConfigurationRequest; })(); - Router.RouterRecordRotationRequest = (function() { + Router.PAMDiscoveryRulesSetRequest = (function() { /** - * Properties of a RouterRecordRotationRequest. + * Properties of a PAMDiscoveryRulesSetRequest. * @memberof Router - * @interface IRouterRecordRotationRequest - * @property {Uint8Array|null} [recordUid] RouterRecordRotationRequest recordUid - * @property {number|Long|null} [revision] RouterRecordRotationRequest revision - * @property {Uint8Array|null} [configurationUid] RouterRecordRotationRequest configurationUid - * @property {Uint8Array|null} [resourceUid] RouterRecordRotationRequest resourceUid - * @property {string|null} [schedule] RouterRecordRotationRequest schedule - * @property {number|Long|null} [enterpriseUserId] RouterRecordRotationRequest enterpriseUserId - * @property {Uint8Array|null} [pwdComplexity] RouterRecordRotationRequest pwdComplexity - * @property {boolean|null} [disabled] RouterRecordRotationRequest disabled - * @property {string|null} [remoteAddress] RouterRecordRotationRequest remoteAddress - * @property {number|null} [clientVersionId] RouterRecordRotationRequest clientVersionId - * @property {boolean|null} [noop] RouterRecordRotationRequest noop - * @property {Uint8Array|null} [saasConfiguration] RouterRecordRotationRequest saasConfiguration + * @interface IPAMDiscoveryRulesSetRequest + * @property {Uint8Array|null} [networkUid] PAMDiscoveryRulesSetRequest networkUid + * @property {Uint8Array|null} [rules] PAMDiscoveryRulesSetRequest rules + * @property {Uint8Array|null} [rulesKey] PAMDiscoveryRulesSetRequest rulesKey */ /** - * Constructs a new RouterRecordRotationRequest. + * Constructs a new PAMDiscoveryRulesSetRequest. * @memberof Router - * @classdesc Represents a RouterRecordRotationRequest. - * @implements IRouterRecordRotationRequest + * @classdesc Represents a PAMDiscoveryRulesSetRequest. + * @implements IPAMDiscoveryRulesSetRequest * @constructor - * @param {Router.IRouterRecordRotationRequest=} [properties] Properties to set + * @param {Router.IPAMDiscoveryRulesSetRequest=} [properties] Properties to set */ - function RouterRecordRotationRequest(properties) { + function PAMDiscoveryRulesSetRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -249170,243 +280550,103 @@ export const Router = $root.Router = (() => { } /** - * RouterRecordRotationRequest recordUid. - * @member {Uint8Array} recordUid - * @memberof Router.RouterRecordRotationRequest - * @instance - */ - RouterRecordRotationRequest.prototype.recordUid = $util.newBuffer([]); - - /** - * RouterRecordRotationRequest revision. - * @member {number|Long} revision - * @memberof Router.RouterRecordRotationRequest - * @instance - */ - RouterRecordRotationRequest.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * RouterRecordRotationRequest configurationUid. - * @member {Uint8Array} configurationUid - * @memberof Router.RouterRecordRotationRequest - * @instance - */ - RouterRecordRotationRequest.prototype.configurationUid = $util.newBuffer([]); - - /** - * RouterRecordRotationRequest resourceUid. - * @member {Uint8Array} resourceUid - * @memberof Router.RouterRecordRotationRequest - * @instance - */ - RouterRecordRotationRequest.prototype.resourceUid = $util.newBuffer([]); - - /** - * RouterRecordRotationRequest schedule. - * @member {string} schedule - * @memberof Router.RouterRecordRotationRequest - * @instance - */ - RouterRecordRotationRequest.prototype.schedule = ""; - - /** - * RouterRecordRotationRequest enterpriseUserId. - * @member {number|Long} enterpriseUserId - * @memberof Router.RouterRecordRotationRequest - * @instance - */ - RouterRecordRotationRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * RouterRecordRotationRequest pwdComplexity. - * @member {Uint8Array} pwdComplexity - * @memberof Router.RouterRecordRotationRequest - * @instance - */ - RouterRecordRotationRequest.prototype.pwdComplexity = $util.newBuffer([]); - - /** - * RouterRecordRotationRequest disabled. - * @member {boolean} disabled - * @memberof Router.RouterRecordRotationRequest - * @instance - */ - RouterRecordRotationRequest.prototype.disabled = false; - - /** - * RouterRecordRotationRequest remoteAddress. - * @member {string} remoteAddress - * @memberof Router.RouterRecordRotationRequest - * @instance - */ - RouterRecordRotationRequest.prototype.remoteAddress = ""; - - /** - * RouterRecordRotationRequest clientVersionId. - * @member {number} clientVersionId - * @memberof Router.RouterRecordRotationRequest - * @instance - */ - RouterRecordRotationRequest.prototype.clientVersionId = 0; - - /** - * RouterRecordRotationRequest noop. - * @member {boolean} noop - * @memberof Router.RouterRecordRotationRequest + * PAMDiscoveryRulesSetRequest networkUid. + * @member {Uint8Array} networkUid + * @memberof Router.PAMDiscoveryRulesSetRequest * @instance */ - RouterRecordRotationRequest.prototype.noop = false; + PAMDiscoveryRulesSetRequest.prototype.networkUid = $util.newBuffer([]); /** - * RouterRecordRotationRequest saasConfiguration. - * @member {Uint8Array|null|undefined} saasConfiguration - * @memberof Router.RouterRecordRotationRequest + * PAMDiscoveryRulesSetRequest rules. + * @member {Uint8Array} rules + * @memberof Router.PAMDiscoveryRulesSetRequest * @instance */ - RouterRecordRotationRequest.prototype.saasConfiguration = null; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; + PAMDiscoveryRulesSetRequest.prototype.rules = $util.newBuffer([]); /** - * RouterRecordRotationRequest _saasConfiguration. - * @member {"saasConfiguration"|undefined} _saasConfiguration - * @memberof Router.RouterRecordRotationRequest + * PAMDiscoveryRulesSetRequest rulesKey. + * @member {Uint8Array} rulesKey + * @memberof Router.PAMDiscoveryRulesSetRequest * @instance */ - Object.defineProperty(RouterRecordRotationRequest.prototype, "_saasConfiguration", { - get: $util.oneOfGetter($oneOfFields = ["saasConfiguration"]), - set: $util.oneOfSetter($oneOfFields) - }); + PAMDiscoveryRulesSetRequest.prototype.rulesKey = $util.newBuffer([]); /** - * Creates a new RouterRecordRotationRequest instance using the specified properties. + * Creates a new PAMDiscoveryRulesSetRequest instance using the specified properties. * @function create - * @memberof Router.RouterRecordRotationRequest + * @memberof Router.PAMDiscoveryRulesSetRequest * @static - * @param {Router.IRouterRecordRotationRequest=} [properties] Properties to set - * @returns {Router.RouterRecordRotationRequest} RouterRecordRotationRequest instance + * @param {Router.IPAMDiscoveryRulesSetRequest=} [properties] Properties to set + * @returns {Router.PAMDiscoveryRulesSetRequest} PAMDiscoveryRulesSetRequest instance */ - RouterRecordRotationRequest.create = function create(properties) { - return new RouterRecordRotationRequest(properties); + PAMDiscoveryRulesSetRequest.create = function create(properties) { + return new PAMDiscoveryRulesSetRequest(properties); }; /** - * Encodes the specified RouterRecordRotationRequest message. Does not implicitly {@link Router.RouterRecordRotationRequest.verify|verify} messages. + * Encodes the specified PAMDiscoveryRulesSetRequest message. Does not implicitly {@link Router.PAMDiscoveryRulesSetRequest.verify|verify} messages. * @function encode - * @memberof Router.RouterRecordRotationRequest + * @memberof Router.PAMDiscoveryRulesSetRequest * @static - * @param {Router.IRouterRecordRotationRequest} message RouterRecordRotationRequest message or plain object to encode + * @param {Router.IPAMDiscoveryRulesSetRequest} message PAMDiscoveryRulesSetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterRecordRotationRequest.encode = function encode(message, writer) { + PAMDiscoveryRulesSetRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); - if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.configurationUid); - if (message.resourceUid != null && Object.hasOwnProperty.call(message, "resourceUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.resourceUid); - if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.schedule); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.enterpriseUserId); - if (message.pwdComplexity != null && Object.hasOwnProperty.call(message, "pwdComplexity")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.pwdComplexity); - if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.disabled); - if (message.remoteAddress != null && Object.hasOwnProperty.call(message, "remoteAddress")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.remoteAddress); - if (message.clientVersionId != null && Object.hasOwnProperty.call(message, "clientVersionId")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.clientVersionId); - if (message.noop != null && Object.hasOwnProperty.call(message, "noop")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.noop); - if (message.saasConfiguration != null && Object.hasOwnProperty.call(message, "saasConfiguration")) - writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.saasConfiguration); + if (message.networkUid != null && Object.hasOwnProperty.call(message, "networkUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.networkUid); + if (message.rules != null && Object.hasOwnProperty.call(message, "rules")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.rules); + if (message.rulesKey != null && Object.hasOwnProperty.call(message, "rulesKey")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.rulesKey); return writer; }; /** - * Encodes the specified RouterRecordRotationRequest message, length delimited. Does not implicitly {@link Router.RouterRecordRotationRequest.verify|verify} messages. + * Encodes the specified PAMDiscoveryRulesSetRequest message, length delimited. Does not implicitly {@link Router.PAMDiscoveryRulesSetRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Router.RouterRecordRotationRequest + * @memberof Router.PAMDiscoveryRulesSetRequest * @static - * @param {Router.IRouterRecordRotationRequest} message RouterRecordRotationRequest message or plain object to encode + * @param {Router.IPAMDiscoveryRulesSetRequest} message PAMDiscoveryRulesSetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterRecordRotationRequest.encodeDelimited = function encodeDelimited(message, writer) { + PAMDiscoveryRulesSetRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RouterRecordRotationRequest message from the specified reader or buffer. + * Decodes a PAMDiscoveryRulesSetRequest message from the specified reader or buffer. * @function decode - * @memberof Router.RouterRecordRotationRequest + * @memberof Router.PAMDiscoveryRulesSetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.RouterRecordRotationRequest} RouterRecordRotationRequest + * @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 */ - RouterRecordRotationRequest.decode = function decode(reader, length) { + PAMDiscoveryRulesSetRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterRecordRotationRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.PAMDiscoveryRulesSetRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + message.networkUid = reader.bytes(); break; } case 2: { - message.revision = reader.int64(); + message.rules = reader.bytes(); break; } case 3: { - message.configurationUid = reader.bytes(); - break; - } - case 4: { - message.resourceUid = reader.bytes(); - break; - } - case 5: { - message.schedule = reader.string(); - break; - } - case 6: { - message.enterpriseUserId = reader.int64(); - break; - } - case 7: { - message.pwdComplexity = reader.bytes(); - break; - } - case 8: { - message.disabled = reader.bool(); - break; - } - case 9: { - message.remoteAddress = reader.string(); - break; - } - case 10: { - message.clientVersionId = reader.int32(); - break; - } - case 11: { - message.noop = reader.bool(); - break; - } - case 12: { - message.saasConfiguration = reader.bytes(); + message.rulesKey = reader.bytes(); break; } default: @@ -249418,284 +280658,168 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a RouterRecordRotationRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMDiscoveryRulesSetRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.RouterRecordRotationRequest + * @memberof Router.PAMDiscoveryRulesSetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterRecordRotationRequest} RouterRecordRotationRequest + * @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 */ - RouterRecordRotationRequest.decodeDelimited = function decodeDelimited(reader) { + PAMDiscoveryRulesSetRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RouterRecordRotationRequest message. + * Verifies a PAMDiscoveryRulesSetRequest message. * @function verify - * @memberof Router.RouterRecordRotationRequest + * @memberof Router.PAMDiscoveryRulesSetRequest * @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) { + PAMDiscoveryRulesSetRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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.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 RouterRecordRotationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMDiscoveryRulesSetRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.RouterRecordRotationRequest + * @memberof Router.PAMDiscoveryRulesSetRequest * @static * @param {Object.} object Plain object - * @returns {Router.RouterRecordRotationRequest} RouterRecordRotationRequest + * @returns {Router.PAMDiscoveryRulesSetRequest} PAMDiscoveryRulesSetRequest */ - RouterRecordRotationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Router.RouterRecordRotationRequest) + PAMDiscoveryRulesSetRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Router.PAMDiscoveryRulesSetRequest) return object; - let message = new $root.Router.RouterRecordRotationRequest(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.configurationUid != null) - if (typeof object.configurationUid === "string") - $util.base64.decode(object.configurationUid, message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid)), 0); - else if (object.configurationUid.length >= 0) - message.configurationUid = object.configurationUid; - if (object.resourceUid != null) - if (typeof object.resourceUid === "string") - $util.base64.decode(object.resourceUid, message.resourceUid = $util.newBuffer($util.base64.length(object.resourceUid)), 0); - else if (object.resourceUid.length >= 0) - message.resourceUid = object.resourceUid; - if (object.schedule != null) - message.schedule = String(object.schedule); - if (object.enterpriseUserId != null) - if ($util.Long) - (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") - message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") - message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - if (object.pwdComplexity != null) - if (typeof object.pwdComplexity === "string") - $util.base64.decode(object.pwdComplexity, message.pwdComplexity = $util.newBuffer($util.base64.length(object.pwdComplexity)), 0); - else if (object.pwdComplexity.length >= 0) - message.pwdComplexity = object.pwdComplexity; - if (object.disabled != null) - message.disabled = Boolean(object.disabled); - if (object.remoteAddress != null) - message.remoteAddress = String(object.remoteAddress); - if (object.clientVersionId != null) - message.clientVersionId = object.clientVersionId | 0; - if (object.noop != null) - message.noop = Boolean(object.noop); - if (object.saasConfiguration != null) - if (typeof object.saasConfiguration === "string") - $util.base64.decode(object.saasConfiguration, message.saasConfiguration = $util.newBuffer($util.base64.length(object.saasConfiguration)), 0); - else if (object.saasConfiguration.length >= 0) - message.saasConfiguration = object.saasConfiguration; + let message = new $root.Router.PAMDiscoveryRulesSetRequest(); + if (object.networkUid != null) + if (typeof object.networkUid === "string") + $util.base64.decode(object.networkUid, message.networkUid = $util.newBuffer($util.base64.length(object.networkUid)), 0); + else if (object.networkUid.length >= 0) + message.networkUid = object.networkUid; + if (object.rules != null) + if (typeof object.rules === "string") + $util.base64.decode(object.rules, message.rules = $util.newBuffer($util.base64.length(object.rules)), 0); + else if (object.rules.length >= 0) + message.rules = object.rules; + if (object.rulesKey != null) + if (typeof object.rulesKey === "string") + $util.base64.decode(object.rulesKey, message.rulesKey = $util.newBuffer($util.base64.length(object.rulesKey)), 0); + else if (object.rulesKey.length >= 0) + message.rulesKey = object.rulesKey; return message; }; /** - * Creates a plain object from a RouterRecordRotationRequest message. Also converts values to other types if specified. + * Creates a plain object from a PAMDiscoveryRulesSetRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Router.RouterRecordRotationRequest + * @memberof Router.PAMDiscoveryRulesSetRequest * @static - * @param {Router.RouterRecordRotationRequest} message RouterRecordRotationRequest + * @param {Router.PAMDiscoveryRulesSetRequest} message PAMDiscoveryRulesSetRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterRecordRotationRequest.toObject = function toObject(message, options) { + PAMDiscoveryRulesSetRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.configurationUid = ""; + object.networkUid = ""; else { - object.configurationUid = []; + object.networkUid = []; if (options.bytes !== Array) - object.configurationUid = $util.newBuffer(object.configurationUid); + object.networkUid = $util.newBuffer(object.networkUid); } if (options.bytes === String) - object.resourceUid = ""; + object.rules = ""; else { - object.resourceUid = []; + object.rules = []; if (options.bytes !== Array) - object.resourceUid = $util.newBuffer(object.resourceUid); + object.rules = $util.newBuffer(object.rules); } - object.schedule = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; if (options.bytes === String) - object.pwdComplexity = ""; + object.rulesKey = ""; else { - object.pwdComplexity = []; + object.rulesKey = []; if (options.bytes !== Array) - object.pwdComplexity = $util.newBuffer(object.pwdComplexity); + object.rulesKey = $util.newBuffer(object.rulesKey); } - object.disabled = false; - object.remoteAddress = ""; - object.clientVersionId = 0; - object.noop = false; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof 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")) - 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")) - 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")) - object.schedule = message.schedule; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - 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")) - 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")) - object.disabled = message.disabled; - if (message.remoteAddress != null && message.hasOwnProperty("remoteAddress")) - object.remoteAddress = message.remoteAddress; - if (message.clientVersionId != null && message.hasOwnProperty("clientVersionId")) - object.clientVersionId = message.clientVersionId; - if (message.noop != null && message.hasOwnProperty("noop")) - object.noop = message.noop; - if (message.saasConfiguration != null && message.hasOwnProperty("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.networkUid != null && message.hasOwnProperty("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")) + 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")) + 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; }; /** - * Converts this RouterRecordRotationRequest to JSON. + * Converts this PAMDiscoveryRulesSetRequest to JSON. * @function toJSON - * @memberof Router.RouterRecordRotationRequest + * @memberof Router.PAMDiscoveryRulesSetRequest * @instance * @returns {Object.} JSON object */ - RouterRecordRotationRequest.prototype.toJSON = function toJSON() { + PAMDiscoveryRulesSetRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RouterRecordRotationRequest + * Gets the default type url for PAMDiscoveryRulesSetRequest * @function getTypeUrl - * @memberof Router.RouterRecordRotationRequest + * @memberof Router.PAMDiscoveryRulesSetRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RouterRecordRotationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMDiscoveryRulesSetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.RouterRecordRotationRequest"; + return typeUrlPrefix + "/Router.PAMDiscoveryRulesSetRequest"; }; - return RouterRecordRotationRequest; + return PAMDiscoveryRulesSetRequest; })(); - Router.UserRecordAccessRequest = (function() { + Router.Router2FAValidateRequest = (function() { /** - * Properties of a UserRecordAccessRequest. + * Properties of a Router2FAValidateRequest. * @memberof Router - * @interface IUserRecordAccessRequest - * @property {number|null} [userId] UserRecordAccessRequest userId - * @property {Uint8Array|null} [recordUid] UserRecordAccessRequest recordUid + * @interface IRouter2FAValidateRequest + * @property {Uint8Array|null} [transmissionKey] Router2FAValidateRequest transmissionKey + * @property {Uint8Array|null} [sessionToken] Router2FAValidateRequest sessionToken + * @property {string|null} [value] Router2FAValidateRequest value */ /** - * Constructs a new UserRecordAccessRequest. + * Constructs a new Router2FAValidateRequest. * @memberof Router - * @classdesc Represents a UserRecordAccessRequest. - * @implements IUserRecordAccessRequest + * @classdesc Represents a Router2FAValidateRequest. + * @implements IRouter2FAValidateRequest * @constructor - * @param {Router.IUserRecordAccessRequest=} [properties] Properties to set + * @param {Router.IRouter2FAValidateRequest=} [properties] Properties to set */ - function UserRecordAccessRequest(properties) { + function Router2FAValidateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -249703,89 +280827,103 @@ export const Router = $root.Router = (() => { } /** - * UserRecordAccessRequest userId. - * @member {number} userId - * @memberof Router.UserRecordAccessRequest + * Router2FAValidateRequest transmissionKey. + * @member {Uint8Array} transmissionKey + * @memberof Router.Router2FAValidateRequest * @instance */ - UserRecordAccessRequest.prototype.userId = 0; + Router2FAValidateRequest.prototype.transmissionKey = $util.newBuffer([]); /** - * UserRecordAccessRequest recordUid. - * @member {Uint8Array} recordUid - * @memberof Router.UserRecordAccessRequest + * Router2FAValidateRequest sessionToken. + * @member {Uint8Array} sessionToken + * @memberof Router.Router2FAValidateRequest * @instance */ - UserRecordAccessRequest.prototype.recordUid = $util.newBuffer([]); + Router2FAValidateRequest.prototype.sessionToken = $util.newBuffer([]); /** - * Creates a new UserRecordAccessRequest instance using the specified properties. + * Router2FAValidateRequest value. + * @member {string} value + * @memberof Router.Router2FAValidateRequest + * @instance + */ + Router2FAValidateRequest.prototype.value = ""; + + /** + * Creates a new Router2FAValidateRequest instance using the specified properties. * @function create - * @memberof Router.UserRecordAccessRequest + * @memberof Router.Router2FAValidateRequest * @static - * @param {Router.IUserRecordAccessRequest=} [properties] Properties to set - * @returns {Router.UserRecordAccessRequest} UserRecordAccessRequest instance + * @param {Router.IRouter2FAValidateRequest=} [properties] Properties to set + * @returns {Router.Router2FAValidateRequest} Router2FAValidateRequest instance */ - UserRecordAccessRequest.create = function create(properties) { - return new UserRecordAccessRequest(properties); + Router2FAValidateRequest.create = function create(properties) { + return new Router2FAValidateRequest(properties); }; /** - * Encodes the specified UserRecordAccessRequest message. Does not implicitly {@link Router.UserRecordAccessRequest.verify|verify} messages. + * Encodes the specified Router2FAValidateRequest message. Does not implicitly {@link Router.Router2FAValidateRequest.verify|verify} messages. * @function encode - * @memberof Router.UserRecordAccessRequest + * @memberof Router.Router2FAValidateRequest * @static - * @param {Router.IUserRecordAccessRequest} message UserRecordAccessRequest message or plain object to encode + * @param {Router.IRouter2FAValidateRequest} message Router2FAValidateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserRecordAccessRequest.encode = function encode(message, writer) { + Router2FAValidateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); + if (message.transmissionKey != null && Object.hasOwnProperty.call(message, "transmissionKey")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.transmissionKey); + if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sessionToken); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.value); return writer; }; /** - * Encodes the specified UserRecordAccessRequest message, length delimited. Does not implicitly {@link Router.UserRecordAccessRequest.verify|verify} messages. + * Encodes the specified Router2FAValidateRequest message, length delimited. Does not implicitly {@link Router.Router2FAValidateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Router.UserRecordAccessRequest + * @memberof Router.Router2FAValidateRequest * @static - * @param {Router.IUserRecordAccessRequest} message UserRecordAccessRequest message or plain object to encode + * @param {Router.IRouter2FAValidateRequest} message Router2FAValidateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserRecordAccessRequest.encodeDelimited = function encodeDelimited(message, writer) { + Router2FAValidateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a UserRecordAccessRequest message from the specified reader or buffer. + * Decodes a Router2FAValidateRequest message from the specified reader or buffer. * @function decode - * @memberof Router.UserRecordAccessRequest + * @memberof Router.Router2FAValidateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.UserRecordAccessRequest} UserRecordAccessRequest + * @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 */ - UserRecordAccessRequest.decode = function decode(reader, length) { + Router2FAValidateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.UserRecordAccessRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.Router2FAValidateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.userId = reader.int32(); + message.transmissionKey = reader.bytes(); break; } case 2: { - message.recordUid = reader.bytes(); + message.sessionToken = reader.bytes(); + break; + } + case 3: { + message.value = reader.string(); break; } default: @@ -249797,163 +280935,159 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a UserRecordAccessRequest message from the specified reader or buffer, length delimited. + * Decodes a Router2FAValidateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.UserRecordAccessRequest + * @memberof Router.Router2FAValidateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.UserRecordAccessRequest} UserRecordAccessRequest + * @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 */ - UserRecordAccessRequest.decodeDelimited = function decodeDelimited(reader) { + Router2FAValidateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a UserRecordAccessRequest message. + * Verifies a Router2FAValidateRequest message. * @function verify - * @memberof Router.UserRecordAccessRequest + * @memberof Router.Router2FAValidateRequest * @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) { + Router2FAValidateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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.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 UserRecordAccessRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Router2FAValidateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.UserRecordAccessRequest + * @memberof Router.Router2FAValidateRequest * @static * @param {Object.} object Plain object - * @returns {Router.UserRecordAccessRequest} UserRecordAccessRequest + * @returns {Router.Router2FAValidateRequest} Router2FAValidateRequest */ - UserRecordAccessRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Router.UserRecordAccessRequest) + Router2FAValidateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Router.Router2FAValidateRequest) return object; - let message = new $root.Router.UserRecordAccessRequest(); - if (object.userId != null) - message.userId = object.userId | 0; - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; + let message = new $root.Router.Router2FAValidateRequest(); + if (object.transmissionKey != null) + if (typeof object.transmissionKey === "string") + $util.base64.decode(object.transmissionKey, message.transmissionKey = $util.newBuffer($util.base64.length(object.transmissionKey)), 0); + else if (object.transmissionKey.length >= 0) + message.transmissionKey = object.transmissionKey; + if (object.sessionToken != null) + if (typeof object.sessionToken === "string") + $util.base64.decode(object.sessionToken, message.sessionToken = $util.newBuffer($util.base64.length(object.sessionToken)), 0); + else if (object.sessionToken.length >= 0) + message.sessionToken = object.sessionToken; + if (object.value != null) + message.value = String(object.value); return message; }; /** - * Creates a plain object from a UserRecordAccessRequest message. Also converts values to other types if specified. + * Creates a plain object from a Router2FAValidateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Router.UserRecordAccessRequest + * @memberof Router.Router2FAValidateRequest * @static - * @param {Router.UserRecordAccessRequest} message UserRecordAccessRequest + * @param {Router.Router2FAValidateRequest} message Router2FAValidateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserRecordAccessRequest.toObject = function toObject(message, options) { + Router2FAValidateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.userId = 0; if (options.bytes === String) - object.recordUid = ""; + object.transmissionKey = ""; else { - object.recordUid = []; + object.transmissionKey = []; if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + object.transmissionKey = $util.newBuffer(object.transmissionKey); + } + if (options.bytes === String) + object.sessionToken = ""; + else { + object.sessionToken = []; + if (options.bytes !== Array) + object.sessionToken = $util.newBuffer(object.sessionToken); } + object.value = ""; } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.transmissionKey != null && message.hasOwnProperty("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")) + 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")) + object.value = message.value; return object; }; /** - * Converts this UserRecordAccessRequest to JSON. + * Converts this Router2FAValidateRequest to JSON. * @function toJSON - * @memberof Router.UserRecordAccessRequest + * @memberof Router.Router2FAValidateRequest * @instance * @returns {Object.} JSON object */ - UserRecordAccessRequest.prototype.toJSON = function toJSON() { + Router2FAValidateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UserRecordAccessRequest + * Gets the default type url for Router2FAValidateRequest * @function getTypeUrl - * @memberof Router.UserRecordAccessRequest + * @memberof Router.Router2FAValidateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UserRecordAccessRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Router2FAValidateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.UserRecordAccessRequest"; + return typeUrlPrefix + "/Router.Router2FAValidateRequest"; }; - return UserRecordAccessRequest; - })(); - - /** - * UserRecordAccessLevel enum. - * @name Router.UserRecordAccessLevel - * @enum {number} - * @property {number} RRAL_NONE=0 RRAL_NONE value - * @property {number} RRAL_READ=1 RRAL_READ value - * @property {number} RRAL_SHARE=2 RRAL_SHARE value - * @property {number} RRAL_EDIT=3 RRAL_EDIT value - * @property {number} RRAL_EDIT_AND_SHARE=4 RRAL_EDIT_AND_SHARE value - * @property {number} RRAL_OWNER=5 RRAL_OWNER value - */ - Router.UserRecordAccessLevel = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RRAL_NONE"] = 0; - values[valuesById[1] = "RRAL_READ"] = 1; - values[valuesById[2] = "RRAL_SHARE"] = 2; - values[valuesById[3] = "RRAL_EDIT"] = 3; - values[valuesById[4] = "RRAL_EDIT_AND_SHARE"] = 4; - values[valuesById[5] = "RRAL_OWNER"] = 5; - return values; + return Router2FAValidateRequest; })(); - Router.UserRecordAccessResponse = (function() { + Router.Router2FASendPushRequest = (function() { /** - * Properties of a UserRecordAccessResponse. + * Properties of a Router2FASendPushRequest. * @memberof Router - * @interface IUserRecordAccessResponse - * @property {Uint8Array|null} [recordUid] UserRecordAccessResponse recordUid - * @property {Router.UserRecordAccessLevel|null} [accessLevel] UserRecordAccessResponse accessLevel + * @interface IRouter2FASendPushRequest + * @property {Uint8Array|null} [transmissionKey] Router2FASendPushRequest transmissionKey + * @property {Uint8Array|null} [sessionToken] Router2FASendPushRequest sessionToken + * @property {Authentication.TwoFactorPushType|null} [pushType] Router2FASendPushRequest pushType */ /** - * Constructs a new UserRecordAccessResponse. + * Constructs a new Router2FASendPushRequest. * @memberof Router - * @classdesc Represents a UserRecordAccessResponse. - * @implements IUserRecordAccessResponse + * @classdesc Represents a Router2FASendPushRequest. + * @implements IRouter2FASendPushRequest * @constructor - * @param {Router.IUserRecordAccessResponse=} [properties] Properties to set + * @param {Router.IRouter2FASendPushRequest=} [properties] Properties to set */ - function UserRecordAccessResponse(properties) { + function Router2FASendPushRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -249961,89 +281095,103 @@ export const Router = $root.Router = (() => { } /** - * UserRecordAccessResponse recordUid. - * @member {Uint8Array} recordUid - * @memberof Router.UserRecordAccessResponse + * Router2FASendPushRequest transmissionKey. + * @member {Uint8Array} transmissionKey + * @memberof Router.Router2FASendPushRequest * @instance */ - UserRecordAccessResponse.prototype.recordUid = $util.newBuffer([]); + Router2FASendPushRequest.prototype.transmissionKey = $util.newBuffer([]); /** - * UserRecordAccessResponse accessLevel. - * @member {Router.UserRecordAccessLevel} accessLevel - * @memberof Router.UserRecordAccessResponse + * Router2FASendPushRequest sessionToken. + * @member {Uint8Array} sessionToken + * @memberof Router.Router2FASendPushRequest * @instance */ - UserRecordAccessResponse.prototype.accessLevel = 0; + Router2FASendPushRequest.prototype.sessionToken = $util.newBuffer([]); /** - * Creates a new UserRecordAccessResponse instance using the specified properties. + * Router2FASendPushRequest pushType. + * @member {Authentication.TwoFactorPushType} pushType + * @memberof Router.Router2FASendPushRequest + * @instance + */ + Router2FASendPushRequest.prototype.pushType = 0; + + /** + * Creates a new Router2FASendPushRequest instance using the specified properties. * @function create - * @memberof Router.UserRecordAccessResponse + * @memberof Router.Router2FASendPushRequest * @static - * @param {Router.IUserRecordAccessResponse=} [properties] Properties to set - * @returns {Router.UserRecordAccessResponse} UserRecordAccessResponse instance + * @param {Router.IRouter2FASendPushRequest=} [properties] Properties to set + * @returns {Router.Router2FASendPushRequest} Router2FASendPushRequest instance */ - UserRecordAccessResponse.create = function create(properties) { - return new UserRecordAccessResponse(properties); + Router2FASendPushRequest.create = function create(properties) { + return new Router2FASendPushRequest(properties); }; /** - * Encodes the specified UserRecordAccessResponse message. Does not implicitly {@link Router.UserRecordAccessResponse.verify|verify} messages. + * Encodes the specified Router2FASendPushRequest message. Does not implicitly {@link Router.Router2FASendPushRequest.verify|verify} messages. * @function encode - * @memberof Router.UserRecordAccessResponse + * @memberof Router.Router2FASendPushRequest * @static - * @param {Router.IUserRecordAccessResponse} message UserRecordAccessResponse message or plain object to encode + * @param {Router.IRouter2FASendPushRequest} message Router2FASendPushRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserRecordAccessResponse.encode = function encode(message, writer) { + Router2FASendPushRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.accessLevel != null && Object.hasOwnProperty.call(message, "accessLevel")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.accessLevel); + if (message.transmissionKey != null && Object.hasOwnProperty.call(message, "transmissionKey")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.transmissionKey); + if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sessionToken); + if (message.pushType != null && Object.hasOwnProperty.call(message, "pushType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pushType); return writer; }; /** - * Encodes the specified UserRecordAccessResponse message, length delimited. Does not implicitly {@link Router.UserRecordAccessResponse.verify|verify} messages. + * Encodes the specified Router2FASendPushRequest message, length delimited. Does not implicitly {@link Router.Router2FASendPushRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Router.UserRecordAccessResponse + * @memberof Router.Router2FASendPushRequest * @static - * @param {Router.IUserRecordAccessResponse} message UserRecordAccessResponse message or plain object to encode + * @param {Router.IRouter2FASendPushRequest} message Router2FASendPushRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserRecordAccessResponse.encodeDelimited = function encodeDelimited(message, writer) { + Router2FASendPushRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a UserRecordAccessResponse message from the specified reader or buffer. + * Decodes a Router2FASendPushRequest message from the specified reader or buffer. * @function decode - * @memberof Router.UserRecordAccessResponse + * @memberof Router.Router2FASendPushRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.UserRecordAccessResponse} UserRecordAccessResponse + * @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 */ - UserRecordAccessResponse.decode = function decode(reader, length) { + Router2FASendPushRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.UserRecordAccessResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.Router2FASendPushRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + message.transmissionKey = reader.bytes(); break; } case 2: { - message.accessLevel = reader.int32(); + message.sessionToken = reader.bytes(); + break; + } + case 3: { + message.pushType = reader.int32(); break; } default: @@ -250055,180 +281203,202 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a UserRecordAccessResponse message from the specified reader or buffer, length delimited. + * Decodes a Router2FASendPushRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.UserRecordAccessResponse + * @memberof Router.Router2FASendPushRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.UserRecordAccessResponse} UserRecordAccessResponse + * @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 */ - UserRecordAccessResponse.decodeDelimited = function decodeDelimited(reader) { + Router2FASendPushRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a UserRecordAccessResponse message. + * Verifies a Router2FASendPushRequest message. * @function verify - * @memberof Router.UserRecordAccessResponse + * @memberof Router.Router2FASendPushRequest * @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) { + Router2FASendPushRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.accessLevel != null && message.hasOwnProperty("accessLevel")) - switch (message.accessLevel) { + 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 "accessLevel: enum value expected"; + return "pushType: enum value expected"; case 0: case 1: case 2: case 3: case 4: case 5: + case 6: break; } return null; }; /** - * Creates a UserRecordAccessResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Router2FASendPushRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.UserRecordAccessResponse + * @memberof Router.Router2FASendPushRequest * @static * @param {Object.} object Plain object - * @returns {Router.UserRecordAccessResponse} UserRecordAccessResponse + * @returns {Router.Router2FASendPushRequest} Router2FASendPushRequest */ - UserRecordAccessResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Router.UserRecordAccessResponse) + Router2FASendPushRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Router.Router2FASendPushRequest) return object; - let message = new $root.Router.UserRecordAccessResponse(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - switch (object.accessLevel) { + let message = new $root.Router.Router2FASendPushRequest(); + if (object.transmissionKey != null) + if (typeof object.transmissionKey === "string") + $util.base64.decode(object.transmissionKey, message.transmissionKey = $util.newBuffer($util.base64.length(object.transmissionKey)), 0); + else if (object.transmissionKey.length >= 0) + message.transmissionKey = object.transmissionKey; + if (object.sessionToken != null) + if (typeof object.sessionToken === "string") + $util.base64.decode(object.sessionToken, message.sessionToken = $util.newBuffer($util.base64.length(object.sessionToken)), 0); + else if (object.sessionToken.length >= 0) + message.sessionToken = object.sessionToken; + switch (object.pushType) { default: - if (typeof object.accessLevel === "number") { - message.accessLevel = object.accessLevel; + if (typeof object.pushType === "number") { + message.pushType = object.pushType; break; } break; - case "RRAL_NONE": + case "TWO_FA_PUSH_NONE": case 0: - message.accessLevel = 0; + message.pushType = 0; break; - case "RRAL_READ": + case "TWO_FA_PUSH_SMS": case 1: - message.accessLevel = 1; + message.pushType = 1; break; - case "RRAL_SHARE": + case "TWO_FA_PUSH_KEEPER": case 2: - message.accessLevel = 2; + message.pushType = 2; break; - case "RRAL_EDIT": + case "TWO_FA_PUSH_DUO_PUSH": case 3: - message.accessLevel = 3; + message.pushType = 3; break; - case "RRAL_EDIT_AND_SHARE": + case "TWO_FA_PUSH_DUO_TEXT": case 4: - message.accessLevel = 4; + message.pushType = 4; break; - case "RRAL_OWNER": + case "TWO_FA_PUSH_DUO_CALL": case 5: - message.accessLevel = 5; + message.pushType = 5; + break; + case "TWO_FA_PUSH_DNA": + case 6: + message.pushType = 6; break; } return message; }; /** - * Creates a plain object from a UserRecordAccessResponse message. Also converts values to other types if specified. + * Creates a plain object from a Router2FASendPushRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Router.UserRecordAccessResponse + * @memberof Router.Router2FASendPushRequest * @static - * @param {Router.UserRecordAccessResponse} message UserRecordAccessResponse + * @param {Router.Router2FASendPushRequest} message Router2FASendPushRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserRecordAccessResponse.toObject = function toObject(message, options) { + Router2FASendPushRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { if (options.bytes === String) - object.recordUid = ""; + object.transmissionKey = ""; else { - object.recordUid = []; + object.transmissionKey = []; if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + object.transmissionKey = $util.newBuffer(object.transmissionKey); } - object.accessLevel = options.enums === String ? "RRAL_NONE" : 0; + if (options.bytes === String) + object.sessionToken = ""; + else { + object.sessionToken = []; + if (options.bytes !== Array) + object.sessionToken = $util.newBuffer(object.sessionToken); + } + object.pushType = options.enums === String ? "TWO_FA_PUSH_NONE" : 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.accessLevel != null && message.hasOwnProperty("accessLevel")) - object.accessLevel = options.enums === String ? $root.Router.UserRecordAccessLevel[message.accessLevel] === undefined ? message.accessLevel : $root.Router.UserRecordAccessLevel[message.accessLevel] : message.accessLevel; + if (message.transmissionKey != null && message.hasOwnProperty("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")) + 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")) + object.pushType = options.enums === String ? $root.Authentication.TwoFactorPushType[message.pushType] === undefined ? message.pushType : $root.Authentication.TwoFactorPushType[message.pushType] : message.pushType; return object; }; /** - * Converts this UserRecordAccessResponse to JSON. + * Converts this Router2FASendPushRequest to JSON. * @function toJSON - * @memberof Router.UserRecordAccessResponse + * @memberof Router.Router2FASendPushRequest * @instance * @returns {Object.} JSON object */ - UserRecordAccessResponse.prototype.toJSON = function toJSON() { + Router2FASendPushRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UserRecordAccessResponse + * Gets the default type url for Router2FASendPushRequest * @function getTypeUrl - * @memberof Router.UserRecordAccessResponse + * @memberof Router.Router2FASendPushRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UserRecordAccessResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Router2FASendPushRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.UserRecordAccessResponse"; + return typeUrlPrefix + "/Router.Router2FASendPushRequest"; }; - return UserRecordAccessResponse; + return Router2FASendPushRequest; })(); - Router.UserRecordAccessRequests = (function() { + Router.Router2FAGetWebAuthnChallengeRequest = (function() { /** - * Properties of a UserRecordAccessRequests. + * Properties of a Router2FAGetWebAuthnChallengeRequest. * @memberof Router - * @interface IUserRecordAccessRequests - * @property {Array.|null} [requests] UserRecordAccessRequests requests + * @interface IRouter2FAGetWebAuthnChallengeRequest + * @property {Uint8Array|null} [transmissionKey] Router2FAGetWebAuthnChallengeRequest transmissionKey + * @property {Uint8Array|null} [sessionToken] Router2FAGetWebAuthnChallengeRequest sessionToken */ /** - * Constructs a new UserRecordAccessRequests. + * Constructs a new Router2FAGetWebAuthnChallengeRequest. * @memberof Router - * @classdesc Represents a UserRecordAccessRequests. - * @implements IUserRecordAccessRequests + * @classdesc Represents a Router2FAGetWebAuthnChallengeRequest. + * @implements IRouter2FAGetWebAuthnChallengeRequest * @constructor - * @param {Router.IUserRecordAccessRequests=} [properties] Properties to set + * @param {Router.IRouter2FAGetWebAuthnChallengeRequest=} [properties] Properties to set */ - function UserRecordAccessRequests(properties) { - this.requests = []; + function Router2FAGetWebAuthnChallengeRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -250236,78 +281406,89 @@ export const Router = $root.Router = (() => { } /** - * UserRecordAccessRequests requests. - * @member {Array.} requests - * @memberof Router.UserRecordAccessRequests + * Router2FAGetWebAuthnChallengeRequest transmissionKey. + * @member {Uint8Array} transmissionKey + * @memberof Router.Router2FAGetWebAuthnChallengeRequest * @instance */ - UserRecordAccessRequests.prototype.requests = $util.emptyArray; + Router2FAGetWebAuthnChallengeRequest.prototype.transmissionKey = $util.newBuffer([]); /** - * Creates a new UserRecordAccessRequests instance using the specified properties. + * Router2FAGetWebAuthnChallengeRequest sessionToken. + * @member {Uint8Array} sessionToken + * @memberof Router.Router2FAGetWebAuthnChallengeRequest + * @instance + */ + Router2FAGetWebAuthnChallengeRequest.prototype.sessionToken = $util.newBuffer([]); + + /** + * Creates a new Router2FAGetWebAuthnChallengeRequest instance using the specified properties. * @function create - * @memberof Router.UserRecordAccessRequests + * @memberof Router.Router2FAGetWebAuthnChallengeRequest * @static - * @param {Router.IUserRecordAccessRequests=} [properties] Properties to set - * @returns {Router.UserRecordAccessRequests} UserRecordAccessRequests instance + * @param {Router.IRouter2FAGetWebAuthnChallengeRequest=} [properties] Properties to set + * @returns {Router.Router2FAGetWebAuthnChallengeRequest} Router2FAGetWebAuthnChallengeRequest instance */ - UserRecordAccessRequests.create = function create(properties) { - return new UserRecordAccessRequests(properties); + Router2FAGetWebAuthnChallengeRequest.create = function create(properties) { + return new Router2FAGetWebAuthnChallengeRequest(properties); }; /** - * Encodes the specified UserRecordAccessRequests message. Does not implicitly {@link Router.UserRecordAccessRequests.verify|verify} messages. + * Encodes the specified Router2FAGetWebAuthnChallengeRequest message. Does not implicitly {@link Router.Router2FAGetWebAuthnChallengeRequest.verify|verify} messages. * @function encode - * @memberof Router.UserRecordAccessRequests + * @memberof Router.Router2FAGetWebAuthnChallengeRequest * @static - * @param {Router.IUserRecordAccessRequests} message UserRecordAccessRequests message or plain object to encode + * @param {Router.IRouter2FAGetWebAuthnChallengeRequest} message Router2FAGetWebAuthnChallengeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserRecordAccessRequests.encode = function encode(message, writer) { + Router2FAGetWebAuthnChallengeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.requests != null && message.requests.length) - for (let i = 0; i < message.requests.length; ++i) - $root.Router.UserRecordAccessRequest.encode(message.requests[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.transmissionKey != null && Object.hasOwnProperty.call(message, "transmissionKey")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.transmissionKey); + if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sessionToken); return writer; }; /** - * Encodes the specified UserRecordAccessRequests message, length delimited. Does not implicitly {@link Router.UserRecordAccessRequests.verify|verify} messages. + * Encodes the specified Router2FAGetWebAuthnChallengeRequest message, length delimited. Does not implicitly {@link Router.Router2FAGetWebAuthnChallengeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Router.UserRecordAccessRequests + * @memberof Router.Router2FAGetWebAuthnChallengeRequest * @static - * @param {Router.IUserRecordAccessRequests} message UserRecordAccessRequests message or plain object to encode + * @param {Router.IRouter2FAGetWebAuthnChallengeRequest} message Router2FAGetWebAuthnChallengeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserRecordAccessRequests.encodeDelimited = function encodeDelimited(message, writer) { + Router2FAGetWebAuthnChallengeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a UserRecordAccessRequests message from the specified reader or buffer. + * Decodes a Router2FAGetWebAuthnChallengeRequest message from the specified reader or buffer. * @function decode - * @memberof Router.UserRecordAccessRequests + * @memberof Router.Router2FAGetWebAuthnChallengeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.UserRecordAccessRequests} UserRecordAccessRequests + * @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 */ - UserRecordAccessRequests.decode = function decode(reader, length) { + Router2FAGetWebAuthnChallengeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.UserRecordAccessRequests(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.Router2FAGetWebAuthnChallengeRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.requests && message.requests.length)) - message.requests = []; - message.requests.push($root.Router.UserRecordAccessRequest.decode(reader, reader.uint32())); + message.transmissionKey = reader.bytes(); + break; + } + case 2: { + message.sessionToken = reader.bytes(); break; } default: @@ -250319,140 +281500,151 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a UserRecordAccessRequests message from the specified reader or buffer, length delimited. + * Decodes a Router2FAGetWebAuthnChallengeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.UserRecordAccessRequests + * @memberof Router.Router2FAGetWebAuthnChallengeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.UserRecordAccessRequests} UserRecordAccessRequests + * @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 */ - UserRecordAccessRequests.decodeDelimited = function decodeDelimited(reader) { + Router2FAGetWebAuthnChallengeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a UserRecordAccessRequests message. + * Verifies a Router2FAGetWebAuthnChallengeRequest message. * @function verify - * @memberof Router.UserRecordAccessRequests + * @memberof Router.Router2FAGetWebAuthnChallengeRequest * @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) { + Router2FAGetWebAuthnChallengeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "requests." + error; - } - } + 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 UserRecordAccessRequests message from a plain object. Also converts values to their respective internal types. + * Creates a Router2FAGetWebAuthnChallengeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.UserRecordAccessRequests + * @memberof Router.Router2FAGetWebAuthnChallengeRequest * @static * @param {Object.} object Plain object - * @returns {Router.UserRecordAccessRequests} UserRecordAccessRequests + * @returns {Router.Router2FAGetWebAuthnChallengeRequest} Router2FAGetWebAuthnChallengeRequest */ - UserRecordAccessRequests.fromObject = function fromObject(object) { - if (object instanceof $root.Router.UserRecordAccessRequests) + Router2FAGetWebAuthnChallengeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Router.Router2FAGetWebAuthnChallengeRequest) return object; - let message = new $root.Router.UserRecordAccessRequests(); - if (object.requests) { - if (!Array.isArray(object.requests)) - throw TypeError(".Router.UserRecordAccessRequests.requests: array expected"); - message.requests = []; - for (let i = 0; i < object.requests.length; ++i) { - if (typeof object.requests[i] !== "object") - throw TypeError(".Router.UserRecordAccessRequests.requests: object expected"); - message.requests[i] = $root.Router.UserRecordAccessRequest.fromObject(object.requests[i]); - } - } + let message = new $root.Router.Router2FAGetWebAuthnChallengeRequest(); + if (object.transmissionKey != null) + if (typeof object.transmissionKey === "string") + $util.base64.decode(object.transmissionKey, message.transmissionKey = $util.newBuffer($util.base64.length(object.transmissionKey)), 0); + else if (object.transmissionKey.length >= 0) + message.transmissionKey = object.transmissionKey; + if (object.sessionToken != null) + if (typeof object.sessionToken === "string") + $util.base64.decode(object.sessionToken, message.sessionToken = $util.newBuffer($util.base64.length(object.sessionToken)), 0); + else if (object.sessionToken.length >= 0) + message.sessionToken = object.sessionToken; return message; }; /** - * Creates a plain object from a UserRecordAccessRequests message. Also converts values to other types if specified. + * Creates a plain object from a Router2FAGetWebAuthnChallengeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Router.UserRecordAccessRequests + * @memberof Router.Router2FAGetWebAuthnChallengeRequest * @static - * @param {Router.UserRecordAccessRequests} message UserRecordAccessRequests + * @param {Router.Router2FAGetWebAuthnChallengeRequest} message Router2FAGetWebAuthnChallengeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserRecordAccessRequests.toObject = function toObject(message, options) { + Router2FAGetWebAuthnChallengeRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.requests = []; - if (message.requests && message.requests.length) { - object.requests = []; - for (let j = 0; j < message.requests.length; ++j) - object.requests[j] = $root.Router.UserRecordAccessRequest.toObject(message.requests[j], options); + if (options.defaults) { + if (options.bytes === String) + object.transmissionKey = ""; + else { + object.transmissionKey = []; + if (options.bytes !== Array) + object.transmissionKey = $util.newBuffer(object.transmissionKey); + } + if (options.bytes === String) + object.sessionToken = ""; + else { + object.sessionToken = []; + if (options.bytes !== Array) + object.sessionToken = $util.newBuffer(object.sessionToken); + } } + if (message.transmissionKey != null && message.hasOwnProperty("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")) + 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; }; /** - * Converts this UserRecordAccessRequests to JSON. + * Converts this Router2FAGetWebAuthnChallengeRequest to JSON. * @function toJSON - * @memberof Router.UserRecordAccessRequests + * @memberof Router.Router2FAGetWebAuthnChallengeRequest * @instance * @returns {Object.} JSON object */ - UserRecordAccessRequests.prototype.toJSON = function toJSON() { + Router2FAGetWebAuthnChallengeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UserRecordAccessRequests + * Gets the default type url for Router2FAGetWebAuthnChallengeRequest * @function getTypeUrl - * @memberof Router.UserRecordAccessRequests + * @memberof Router.Router2FAGetWebAuthnChallengeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UserRecordAccessRequests.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Router2FAGetWebAuthnChallengeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.UserRecordAccessRequests"; + return typeUrlPrefix + "/Router.Router2FAGetWebAuthnChallengeRequest"; }; - return UserRecordAccessRequests; + return Router2FAGetWebAuthnChallengeRequest; })(); - Router.UserRecordAccessResponses = (function() { + Router.Router2FAGetWebAuthnChallengeResponse = (function() { /** - * Properties of a UserRecordAccessResponses. + * Properties of a Router2FAGetWebAuthnChallengeResponse. * @memberof Router - * @interface IUserRecordAccessResponses - * @property {Array.|null} [responses] UserRecordAccessResponses responses + * @interface IRouter2FAGetWebAuthnChallengeResponse + * @property {string|null} [challenge] Router2FAGetWebAuthnChallengeResponse challenge + * @property {Array.|null} [capabilities] Router2FAGetWebAuthnChallengeResponse capabilities */ /** - * Constructs a new UserRecordAccessResponses. + * Constructs a new Router2FAGetWebAuthnChallengeResponse. * @memberof Router - * @classdesc Represents a UserRecordAccessResponses. - * @implements IUserRecordAccessResponses + * @classdesc Represents a Router2FAGetWebAuthnChallengeResponse. + * @implements IRouter2FAGetWebAuthnChallengeResponse * @constructor - * @param {Router.IUserRecordAccessResponses=} [properties] Properties to set + * @param {Router.IRouter2FAGetWebAuthnChallengeResponse=} [properties] Properties to set */ - function UserRecordAccessResponses(properties) { - this.responses = []; + function Router2FAGetWebAuthnChallengeResponse(properties) { + this.capabilities = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -250460,78 +281652,92 @@ export const Router = $root.Router = (() => { } /** - * UserRecordAccessResponses responses. - * @member {Array.} responses - * @memberof Router.UserRecordAccessResponses + * Router2FAGetWebAuthnChallengeResponse challenge. + * @member {string} challenge + * @memberof Router.Router2FAGetWebAuthnChallengeResponse * @instance */ - UserRecordAccessResponses.prototype.responses = $util.emptyArray; + Router2FAGetWebAuthnChallengeResponse.prototype.challenge = ""; /** - * Creates a new UserRecordAccessResponses instance using the specified properties. + * Router2FAGetWebAuthnChallengeResponse capabilities. + * @member {Array.} capabilities + * @memberof Router.Router2FAGetWebAuthnChallengeResponse + * @instance + */ + Router2FAGetWebAuthnChallengeResponse.prototype.capabilities = $util.emptyArray; + + /** + * Creates a new Router2FAGetWebAuthnChallengeResponse instance using the specified properties. * @function create - * @memberof Router.UserRecordAccessResponses + * @memberof Router.Router2FAGetWebAuthnChallengeResponse * @static - * @param {Router.IUserRecordAccessResponses=} [properties] Properties to set - * @returns {Router.UserRecordAccessResponses} UserRecordAccessResponses instance + * @param {Router.IRouter2FAGetWebAuthnChallengeResponse=} [properties] Properties to set + * @returns {Router.Router2FAGetWebAuthnChallengeResponse} Router2FAGetWebAuthnChallengeResponse instance */ - UserRecordAccessResponses.create = function create(properties) { - return new UserRecordAccessResponses(properties); + Router2FAGetWebAuthnChallengeResponse.create = function create(properties) { + return new Router2FAGetWebAuthnChallengeResponse(properties); }; /** - * Encodes the specified UserRecordAccessResponses message. Does not implicitly {@link Router.UserRecordAccessResponses.verify|verify} messages. + * Encodes the specified Router2FAGetWebAuthnChallengeResponse message. Does not implicitly {@link Router.Router2FAGetWebAuthnChallengeResponse.verify|verify} messages. * @function encode - * @memberof Router.UserRecordAccessResponses + * @memberof Router.Router2FAGetWebAuthnChallengeResponse * @static - * @param {Router.IUserRecordAccessResponses} message UserRecordAccessResponses message or plain object to encode + * @param {Router.IRouter2FAGetWebAuthnChallengeResponse} message Router2FAGetWebAuthnChallengeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserRecordAccessResponses.encode = function encode(message, writer) { + Router2FAGetWebAuthnChallengeResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.responses != null && message.responses.length) - for (let i = 0; i < message.responses.length; ++i) - $root.Router.UserRecordAccessResponse.encode(message.responses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.challenge != null && Object.hasOwnProperty.call(message, "challenge")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.challenge); + if (message.capabilities != null && message.capabilities.length) + for (let i = 0; i < message.capabilities.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.capabilities[i]); return writer; }; /** - * Encodes the specified UserRecordAccessResponses message, length delimited. Does not implicitly {@link Router.UserRecordAccessResponses.verify|verify} messages. + * Encodes the specified Router2FAGetWebAuthnChallengeResponse message, length delimited. Does not implicitly {@link Router.Router2FAGetWebAuthnChallengeResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Router.UserRecordAccessResponses + * @memberof Router.Router2FAGetWebAuthnChallengeResponse * @static - * @param {Router.IUserRecordAccessResponses} message UserRecordAccessResponses message or plain object to encode + * @param {Router.IRouter2FAGetWebAuthnChallengeResponse} message Router2FAGetWebAuthnChallengeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserRecordAccessResponses.encodeDelimited = function encodeDelimited(message, writer) { + Router2FAGetWebAuthnChallengeResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a UserRecordAccessResponses message from the specified reader or buffer. + * Decodes a Router2FAGetWebAuthnChallengeResponse message from the specified reader or buffer. * @function decode - * @memberof Router.UserRecordAccessResponses + * @memberof Router.Router2FAGetWebAuthnChallengeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.UserRecordAccessResponses} UserRecordAccessResponses + * @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 */ - UserRecordAccessResponses.decode = function decode(reader, length) { + Router2FAGetWebAuthnChallengeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.UserRecordAccessResponses(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.Router2FAGetWebAuthnChallengeResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.responses && message.responses.length)) - message.responses = []; - message.responses.push($root.Router.UserRecordAccessResponse.decode(reader, reader.uint32())); + message.challenge = reader.string(); + break; + } + case 2: { + if (!(message.capabilities && message.capabilities.length)) + message.capabilities = []; + message.capabilities.push(reader.string()); break; } default: @@ -250543,140 +281749,159 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a UserRecordAccessResponses message from the specified reader or buffer, length delimited. + * Decodes a Router2FAGetWebAuthnChallengeResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.UserRecordAccessResponses + * @memberof Router.Router2FAGetWebAuthnChallengeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.UserRecordAccessResponses} UserRecordAccessResponses + * @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 */ - UserRecordAccessResponses.decodeDelimited = function decodeDelimited(reader) { + Router2FAGetWebAuthnChallengeResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a UserRecordAccessResponses message. + * Verifies a Router2FAGetWebAuthnChallengeResponse message. * @function verify - * @memberof Router.UserRecordAccessResponses + * @memberof Router.Router2FAGetWebAuthnChallengeResponse * @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) { + Router2FAGetWebAuthnChallengeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "responses." + error; - } + 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 UserRecordAccessResponses message from a plain object. Also converts values to their respective internal types. + * Creates a Router2FAGetWebAuthnChallengeResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.UserRecordAccessResponses + * @memberof Router.Router2FAGetWebAuthnChallengeResponse * @static * @param {Object.} object Plain object - * @returns {Router.UserRecordAccessResponses} UserRecordAccessResponses + * @returns {Router.Router2FAGetWebAuthnChallengeResponse} Router2FAGetWebAuthnChallengeResponse */ - UserRecordAccessResponses.fromObject = function fromObject(object) { - if (object instanceof $root.Router.UserRecordAccessResponses) + Router2FAGetWebAuthnChallengeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Router.Router2FAGetWebAuthnChallengeResponse) return object; - let message = new $root.Router.UserRecordAccessResponses(); - if (object.responses) { - if (!Array.isArray(object.responses)) - throw TypeError(".Router.UserRecordAccessResponses.responses: array expected"); - message.responses = []; - for (let i = 0; i < object.responses.length; ++i) { - if (typeof object.responses[i] !== "object") - throw TypeError(".Router.UserRecordAccessResponses.responses: object expected"); - message.responses[i] = $root.Router.UserRecordAccessResponse.fromObject(object.responses[i]); - } + let message = new $root.Router.Router2FAGetWebAuthnChallengeResponse(); + if (object.challenge != null) + message.challenge = String(object.challenge); + if (object.capabilities) { + if (!Array.isArray(object.capabilities)) + throw TypeError(".Router.Router2FAGetWebAuthnChallengeResponse.capabilities: array expected"); + message.capabilities = []; + for (let i = 0; i < object.capabilities.length; ++i) + message.capabilities[i] = String(object.capabilities[i]); } return message; }; /** - * Creates a plain object from a UserRecordAccessResponses message. Also converts values to other types if specified. + * Creates a plain object from a Router2FAGetWebAuthnChallengeResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Router.UserRecordAccessResponses + * @memberof Router.Router2FAGetWebAuthnChallengeResponse * @static - * @param {Router.UserRecordAccessResponses} message UserRecordAccessResponses + * @param {Router.Router2FAGetWebAuthnChallengeResponse} message Router2FAGetWebAuthnChallengeResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserRecordAccessResponses.toObject = function toObject(message, options) { + Router2FAGetWebAuthnChallengeResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.responses = []; - if (message.responses && message.responses.length) { - object.responses = []; - for (let j = 0; j < message.responses.length; ++j) - object.responses[j] = $root.Router.UserRecordAccessResponse.toObject(message.responses[j], options); + object.capabilities = []; + if (options.defaults) + object.challenge = ""; + if (message.challenge != null && message.hasOwnProperty("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]; } return object; }; /** - * Converts this UserRecordAccessResponses to JSON. + * Converts this Router2FAGetWebAuthnChallengeResponse to JSON. * @function toJSON - * @memberof Router.UserRecordAccessResponses + * @memberof Router.Router2FAGetWebAuthnChallengeResponse * @instance * @returns {Object.} JSON object */ - UserRecordAccessResponses.prototype.toJSON = function toJSON() { + Router2FAGetWebAuthnChallengeResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UserRecordAccessResponses + * Gets the default type url for Router2FAGetWebAuthnChallengeResponse * @function getTypeUrl - * @memberof Router.UserRecordAccessResponses + * @memberof Router.Router2FAGetWebAuthnChallengeResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UserRecordAccessResponses.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Router2FAGetWebAuthnChallengeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.UserRecordAccessResponses"; + return typeUrlPrefix + "/Router.Router2FAGetWebAuthnChallengeResponse"; }; - return UserRecordAccessResponses; + return Router2FAGetWebAuthnChallengeResponse; })(); - Router.RotationSchedule = (function() { + return Router; +})(); + +export const PAM = $root.PAM = (() => { + + /** + * Namespace PAM. + * @exports PAM + * @namespace + */ + const PAM = {}; + + PAM.PAMRotationSchedule = (function() { /** - * Properties of a RotationSchedule. - * @memberof Router - * @interface IRotationSchedule - * @property {Uint8Array|null} [recordUid] RotationSchedule recordUid - * @property {string|null} [schedule] RotationSchedule schedule + * Properties of a PAMRotationSchedule. + * @memberof PAM + * @interface IPAMRotationSchedule + * @property {Uint8Array|null} [recordUid] PAMRotationSchedule recordUid + * @property {Uint8Array|null} [configurationUid] PAMRotationSchedule configurationUid + * @property {Uint8Array|null} [controllerUid] PAMRotationSchedule controllerUid + * @property {string|null} [scheduleData] PAMRotationSchedule scheduleData + * @property {boolean|null} [noSchedule] PAMRotationSchedule noSchedule */ /** - * Constructs a new RotationSchedule. - * @memberof Router - * @classdesc Represents a RotationSchedule. - * @implements IRotationSchedule + * Constructs a new PAMRotationSchedule. + * @memberof PAM + * @classdesc Represents a PAMRotationSchedule. + * @implements IPAMRotationSchedule * @constructor - * @param {Router.IRotationSchedule=} [properties] Properties to set + * @param {PAM.IPAMRotationSchedule=} [properties] Properties to set */ - function RotationSchedule(properties) { + function PAMRotationSchedule(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -250684,80 +281909,110 @@ export const Router = $root.Router = (() => { } /** - * RotationSchedule recordUid. + * PAMRotationSchedule recordUid. * @member {Uint8Array} recordUid - * @memberof Router.RotationSchedule + * @memberof PAM.PAMRotationSchedule * @instance */ - RotationSchedule.prototype.recordUid = $util.newBuffer([]); + PAMRotationSchedule.prototype.recordUid = $util.newBuffer([]); /** - * RotationSchedule schedule. - * @member {string} schedule - * @memberof Router.RotationSchedule + * PAMRotationSchedule configurationUid. + * @member {Uint8Array} configurationUid + * @memberof PAM.PAMRotationSchedule * @instance */ - RotationSchedule.prototype.schedule = ""; + PAMRotationSchedule.prototype.configurationUid = $util.newBuffer([]); /** - * Creates a new RotationSchedule instance using the specified properties. + * PAMRotationSchedule controllerUid. + * @member {Uint8Array} controllerUid + * @memberof PAM.PAMRotationSchedule + * @instance + */ + PAMRotationSchedule.prototype.controllerUid = $util.newBuffer([]); + + /** + * PAMRotationSchedule scheduleData. + * @member {string} scheduleData + * @memberof PAM.PAMRotationSchedule + * @instance + */ + PAMRotationSchedule.prototype.scheduleData = ""; + + /** + * PAMRotationSchedule noSchedule. + * @member {boolean} noSchedule + * @memberof PAM.PAMRotationSchedule + * @instance + */ + PAMRotationSchedule.prototype.noSchedule = false; + + /** + * Creates a new PAMRotationSchedule instance using the specified properties. * @function create - * @memberof Router.RotationSchedule + * @memberof PAM.PAMRotationSchedule * @static - * @param {Router.IRotationSchedule=} [properties] Properties to set - * @returns {Router.RotationSchedule} RotationSchedule instance + * @param {PAM.IPAMRotationSchedule=} [properties] Properties to set + * @returns {PAM.PAMRotationSchedule} PAMRotationSchedule instance */ - RotationSchedule.create = function create(properties) { - return new RotationSchedule(properties); + PAMRotationSchedule.create = function create(properties) { + return new PAMRotationSchedule(properties); }; /** - * Encodes the specified RotationSchedule message. Does not implicitly {@link Router.RotationSchedule.verify|verify} messages. + * Encodes the specified PAMRotationSchedule message. Does not implicitly {@link PAM.PAMRotationSchedule.verify|verify} messages. * @function encode - * @memberof Router.RotationSchedule + * @memberof PAM.PAMRotationSchedule * @static - * @param {Router.IRotationSchedule} message RotationSchedule message or plain object to encode + * @param {PAM.IPAMRotationSchedule} message PAMRotationSchedule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RotationSchedule.encode = function encode(message, writer) { + PAMRotationSchedule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.schedule); + if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.configurationUid); + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.controllerUid); + if (message.scheduleData != null && Object.hasOwnProperty.call(message, "scheduleData")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.scheduleData); + if (message.noSchedule != null && Object.hasOwnProperty.call(message, "noSchedule")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.noSchedule); return writer; }; /** - * Encodes the specified RotationSchedule message, length delimited. Does not implicitly {@link Router.RotationSchedule.verify|verify} messages. + * Encodes the specified PAMRotationSchedule message, length delimited. Does not implicitly {@link PAM.PAMRotationSchedule.verify|verify} messages. * @function encodeDelimited - * @memberof Router.RotationSchedule + * @memberof PAM.PAMRotationSchedule * @static - * @param {Router.IRotationSchedule} message RotationSchedule message or plain object to encode + * @param {PAM.IPAMRotationSchedule} message PAMRotationSchedule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RotationSchedule.encodeDelimited = function encodeDelimited(message, writer) { + PAMRotationSchedule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RotationSchedule message from the specified reader or buffer. + * Decodes a PAMRotationSchedule message from the specified reader or buffer. * @function decode - * @memberof Router.RotationSchedule + * @memberof PAM.PAMRotationSchedule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.RotationSchedule} RotationSchedule + * @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 */ - RotationSchedule.decode = function decode(reader, length) { + PAMRotationSchedule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RotationSchedule(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRotationSchedule(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -250766,7 +282021,19 @@ export const Router = $root.Router = (() => { break; } case 2: { - message.schedule = reader.string(); + message.configurationUid = reader.bytes(); + break; + } + case 3: { + message.controllerUid = reader.bytes(); + break; + } + case 4: { + message.scheduleData = reader.string(); + break; + } + case 5: { + message.noSchedule = reader.bool(); break; } default: @@ -250778,73 +282045,94 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a RotationSchedule message from the specified reader or buffer, length delimited. + * Decodes a PAMRotationSchedule message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.RotationSchedule + * @memberof PAM.PAMRotationSchedule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RotationSchedule} RotationSchedule + * @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 */ - RotationSchedule.decodeDelimited = function decodeDelimited(reader) { + PAMRotationSchedule.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RotationSchedule message. + * Verifies a PAMRotationSchedule message. * @function verify - * @memberof Router.RotationSchedule + * @memberof PAM.PAMRotationSchedule * @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) { + PAMRotationSchedule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; - if (message.schedule != null && message.hasOwnProperty("schedule")) - if (!$util.isString(message.schedule)) - return "schedule: string 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 RotationSchedule message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRotationSchedule message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.RotationSchedule + * @memberof PAM.PAMRotationSchedule * @static * @param {Object.} object Plain object - * @returns {Router.RotationSchedule} RotationSchedule + * @returns {PAM.PAMRotationSchedule} PAMRotationSchedule */ - RotationSchedule.fromObject = function fromObject(object) { - if (object instanceof $root.Router.RotationSchedule) + PAMRotationSchedule.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMRotationSchedule) return object; - let message = new $root.Router.RotationSchedule(); + let message = new $root.PAM.PAMRotationSchedule(); if (object.recordUid != null) if (typeof object.recordUid === "string") $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); else if (object.recordUid.length >= 0) message.recordUid = object.recordUid; - if (object.schedule != null) - message.schedule = String(object.schedule); + if (object.configurationUid != null) + if (typeof object.configurationUid === "string") + $util.base64.decode(object.configurationUid, message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid)), 0); + else if (object.configurationUid.length >= 0) + message.configurationUid = object.configurationUid; + if (object.controllerUid != null) + if (typeof object.controllerUid === "string") + $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); + else if (object.controllerUid.length >= 0) + message.controllerUid = object.controllerUid; + if (object.scheduleData != null) + message.scheduleData = String(object.scheduleData); + if (object.noSchedule != null) + message.noSchedule = Boolean(object.noSchedule); return message; }; /** - * Creates a plain object from a RotationSchedule message. Also converts values to other types if specified. + * Creates a plain object from a PAMRotationSchedule message. Also converts values to other types if specified. * @function toObject - * @memberof Router.RotationSchedule + * @memberof PAM.PAMRotationSchedule * @static - * @param {Router.RotationSchedule} message RotationSchedule + * @param {PAM.PAMRotationSchedule} message PAMRotationSchedule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RotationSchedule.toObject = function toObject(message, options) { + PAMRotationSchedule.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -250856,81 +282144,83 @@ export const Router = $root.Router = (() => { if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - object.schedule = ""; + if (options.bytes === String) + object.configurationUid = ""; + else { + object.configurationUid = []; + if (options.bytes !== Array) + object.configurationUid = $util.newBuffer(object.configurationUid); + } + if (options.bytes === String) + object.controllerUid = ""; + else { + object.controllerUid = []; + if (options.bytes !== Array) + object.controllerUid = $util.newBuffer(object.controllerUid); + } + object.scheduleData = ""; + object.noSchedule = false; } if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.schedule != null && message.hasOwnProperty("schedule")) - object.schedule = message.schedule; + if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) + object.configurationUid = options.bytes === String ? $util.base64.encode(message.configurationUid, 0, message.configurationUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.configurationUid) : message.configurationUid; + if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) + object.controllerUid = options.bytes === String ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUid) : message.controllerUid; + if (message.scheduleData != null && message.hasOwnProperty("scheduleData")) + object.scheduleData = message.scheduleData; + if (message.noSchedule != null && message.hasOwnProperty("noSchedule")) + object.noSchedule = message.noSchedule; return object; }; /** - * Converts this RotationSchedule to JSON. + * Converts this PAMRotationSchedule to JSON. * @function toJSON - * @memberof Router.RotationSchedule + * @memberof PAM.PAMRotationSchedule * @instance * @returns {Object.} JSON object */ - RotationSchedule.prototype.toJSON = function toJSON() { + PAMRotationSchedule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RotationSchedule + * Gets the default type url for PAMRotationSchedule * @function getTypeUrl - * @memberof Router.RotationSchedule + * @memberof PAM.PAMRotationSchedule * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RotationSchedule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMRotationSchedule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.RotationSchedule"; + return typeUrlPrefix + "/PAM.PAMRotationSchedule"; }; - return RotationSchedule; - })(); - - /** - * ServiceType enum. - * @name Router.ServiceType - * @enum {number} - * @property {number} UNSPECIFIED=0 UNSPECIFIED value - * @property {number} KA=1 KA value - * @property {number} BI=2 BI value - */ - Router.ServiceType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNSPECIFIED"] = 0; - values[valuesById[1] = "KA"] = 1; - values[valuesById[2] = "BI"] = 2; - return values; + return PAMRotationSchedule; })(); - Router.ApiCallbackRequest = (function() { + PAM.PAMRotationSchedulesResponse = (function() { /** - * Properties of an ApiCallbackRequest. - * @memberof Router - * @interface IApiCallbackRequest - * @property {Uint8Array|null} [resourceUid] ApiCallbackRequest resourceUid - * @property {Array.|null} [schedules] ApiCallbackRequest schedules - * @property {string|null} [url] ApiCallbackRequest url - * @property {Router.ServiceType|null} [serviceType] ApiCallbackRequest serviceType + * Properties of a PAMRotationSchedulesResponse. + * @memberof PAM + * @interface IPAMRotationSchedulesResponse + * @property {Array.|null} [schedules] PAMRotationSchedulesResponse schedules */ /** - * Constructs a new ApiCallbackRequest. - * @memberof Router - * @classdesc Represents an ApiCallbackRequest. - * @implements IApiCallbackRequest + * Constructs a new PAMRotationSchedulesResponse. + * @memberof PAM + * @classdesc Represents a PAMRotationSchedulesResponse. + * @implements IPAMRotationSchedulesResponse * @constructor - * @param {Router.IApiCallbackRequest=} [properties] Properties to set + * @param {PAM.IPAMRotationSchedulesResponse=} [properties] Properties to set */ - function ApiCallbackRequest(properties) { + function PAMRotationSchedulesResponse(properties) { this.schedules = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -250939,120 +282229,78 @@ export const Router = $root.Router = (() => { } /** - * ApiCallbackRequest resourceUid. - * @member {Uint8Array} resourceUid - * @memberof Router.ApiCallbackRequest - * @instance - */ - ApiCallbackRequest.prototype.resourceUid = $util.newBuffer([]); - - /** - * ApiCallbackRequest schedules. - * @member {Array.} schedules - * @memberof Router.ApiCallbackRequest - * @instance - */ - ApiCallbackRequest.prototype.schedules = $util.emptyArray; - - /** - * ApiCallbackRequest url. - * @member {string} url - * @memberof Router.ApiCallbackRequest - * @instance - */ - ApiCallbackRequest.prototype.url = ""; - - /** - * ApiCallbackRequest serviceType. - * @member {Router.ServiceType} serviceType - * @memberof Router.ApiCallbackRequest + * PAMRotationSchedulesResponse schedules. + * @member {Array.} schedules + * @memberof PAM.PAMRotationSchedulesResponse * @instance */ - ApiCallbackRequest.prototype.serviceType = 0; + PAMRotationSchedulesResponse.prototype.schedules = $util.emptyArray; /** - * Creates a new ApiCallbackRequest instance using the specified properties. + * Creates a new PAMRotationSchedulesResponse instance using the specified properties. * @function create - * @memberof Router.ApiCallbackRequest + * @memberof PAM.PAMRotationSchedulesResponse * @static - * @param {Router.IApiCallbackRequest=} [properties] Properties to set - * @returns {Router.ApiCallbackRequest} ApiCallbackRequest instance + * @param {PAM.IPAMRotationSchedulesResponse=} [properties] Properties to set + * @returns {PAM.PAMRotationSchedulesResponse} PAMRotationSchedulesResponse instance */ - ApiCallbackRequest.create = function create(properties) { - return new ApiCallbackRequest(properties); + PAMRotationSchedulesResponse.create = function create(properties) { + return new PAMRotationSchedulesResponse(properties); }; /** - * Encodes the specified ApiCallbackRequest message. Does not implicitly {@link Router.ApiCallbackRequest.verify|verify} messages. + * Encodes the specified PAMRotationSchedulesResponse message. Does not implicitly {@link PAM.PAMRotationSchedulesResponse.verify|verify} messages. * @function encode - * @memberof Router.ApiCallbackRequest + * @memberof PAM.PAMRotationSchedulesResponse * @static - * @param {Router.IApiCallbackRequest} message ApiCallbackRequest message or plain object to encode + * @param {PAM.IPAMRotationSchedulesResponse} message PAMRotationSchedulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApiCallbackRequest.encode = function encode(message, writer) { + PAMRotationSchedulesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.resourceUid != null && Object.hasOwnProperty.call(message, "resourceUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.resourceUid); if (message.schedules != null && message.schedules.length) for (let i = 0; i < message.schedules.length; ++i) - $root.Router.ApiCallbackSchedule.encode(message.schedules[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.url != null && Object.hasOwnProperty.call(message, "url")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.url); - if (message.serviceType != null && Object.hasOwnProperty.call(message, "serviceType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.serviceType); + $root.PAM.PAMRotationSchedule.encode(message.schedules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ApiCallbackRequest message, length delimited. Does not implicitly {@link Router.ApiCallbackRequest.verify|verify} messages. + * Encodes the specified PAMRotationSchedulesResponse message, length delimited. Does not implicitly {@link PAM.PAMRotationSchedulesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Router.ApiCallbackRequest + * @memberof PAM.PAMRotationSchedulesResponse * @static - * @param {Router.IApiCallbackRequest} message ApiCallbackRequest message or plain object to encode + * @param {PAM.IPAMRotationSchedulesResponse} message PAMRotationSchedulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApiCallbackRequest.encodeDelimited = function encodeDelimited(message, writer) { + PAMRotationSchedulesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApiCallbackRequest message from the specified reader or buffer. + * Decodes a PAMRotationSchedulesResponse message from the specified reader or buffer. * @function decode - * @memberof Router.ApiCallbackRequest + * @memberof PAM.PAMRotationSchedulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.ApiCallbackRequest} ApiCallbackRequest + * @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 */ - ApiCallbackRequest.decode = function decode(reader, length) { + PAMRotationSchedulesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.ApiCallbackRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRotationSchedulesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.resourceUid = reader.bytes(); - break; - } - case 2: { if (!(message.schedules && message.schedules.length)) message.schedules = []; - message.schedules.push($root.Router.ApiCallbackSchedule.decode(reader, reader.uint32())); - break; - } - case 3: { - message.url = reader.string(); - break; - } - case 4: { - message.serviceType = reader.int32(); + message.schedules.push($root.PAM.PAMRotationSchedule.decode(reader, reader.uint32())); break; } default: @@ -251064,199 +282312,144 @@ export const Router = $root.Router = (() => { }; /** - * Decodes an ApiCallbackRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMRotationSchedulesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.ApiCallbackRequest + * @memberof PAM.PAMRotationSchedulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.ApiCallbackRequest} ApiCallbackRequest + * @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 */ - ApiCallbackRequest.decodeDelimited = function decodeDelimited(reader) { + PAMRotationSchedulesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApiCallbackRequest message. + * Verifies a PAMRotationSchedulesResponse message. * @function verify - * @memberof Router.ApiCallbackRequest + * @memberof PAM.PAMRotationSchedulesResponse * @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) { + PAMRotationSchedulesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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]); + let error = $root.PAM.PAMRotationSchedule.verify(message.schedules[i]); 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. + * Creates a PAMRotationSchedulesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.ApiCallbackRequest + * @memberof PAM.PAMRotationSchedulesResponse * @static * @param {Object.} object Plain object - * @returns {Router.ApiCallbackRequest} ApiCallbackRequest + * @returns {PAM.PAMRotationSchedulesResponse} PAMRotationSchedulesResponse */ - ApiCallbackRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Router.ApiCallbackRequest) + PAMRotationSchedulesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMRotationSchedulesResponse) return object; - let message = new $root.Router.ApiCallbackRequest(); - if (object.resourceUid != null) - if (typeof object.resourceUid === "string") - $util.base64.decode(object.resourceUid, message.resourceUid = $util.newBuffer($util.base64.length(object.resourceUid)), 0); - else if (object.resourceUid.length >= 0) - message.resourceUid = object.resourceUid; + let message = new $root.PAM.PAMRotationSchedulesResponse(); if (object.schedules) { if (!Array.isArray(object.schedules)) - throw TypeError(".Router.ApiCallbackRequest.schedules: array expected"); + throw TypeError(".PAM.PAMRotationSchedulesResponse.schedules: array expected"); message.schedules = []; for (let i = 0; i < object.schedules.length; ++i) { if (typeof object.schedules[i] !== "object") - throw TypeError(".Router.ApiCallbackRequest.schedules: object expected"); - message.schedules[i] = $root.Router.ApiCallbackSchedule.fromObject(object.schedules[i]); - } - } - if (object.url != null) - message.url = String(object.url); - switch (object.serviceType) { - default: - if (typeof object.serviceType === "number") { - message.serviceType = object.serviceType; - break; + throw TypeError(".PAM.PAMRotationSchedulesResponse.schedules: object expected"); + message.schedules[i] = $root.PAM.PAMRotationSchedule.fromObject(object.schedules[i]); } - break; - case "UNSPECIFIED": - case 0: - message.serviceType = 0; - break; - case "KA": - case 1: - message.serviceType = 1; - break; - case "BI": - case 2: - message.serviceType = 2; - break; } return message; }; /** - * Creates a plain object from an ApiCallbackRequest message. Also converts values to other types if specified. + * Creates a plain object from a PAMRotationSchedulesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Router.ApiCallbackRequest + * @memberof PAM.PAMRotationSchedulesResponse * @static - * @param {Router.ApiCallbackRequest} message ApiCallbackRequest + * @param {PAM.PAMRotationSchedulesResponse} message PAMRotationSchedulesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApiCallbackRequest.toObject = function toObject(message, options) { + PAMRotationSchedulesResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) object.schedules = []; - if (options.defaults) { - if (options.bytes === String) - object.resourceUid = ""; - else { - object.resourceUid = []; - if (options.bytes !== Array) - object.resourceUid = $util.newBuffer(object.resourceUid); - } - object.url = ""; - object.serviceType = options.enums === String ? "UNSPECIFIED" : 0; - } - if (message.resourceUid != null && message.hasOwnProperty("resourceUid")) - object.resourceUid = options.bytes === String ? $util.base64.encode(message.resourceUid, 0, message.resourceUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.resourceUid) : message.resourceUid; if (message.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); + object.schedules[j] = $root.PAM.PAMRotationSchedule.toObject(message.schedules[j], options); } - if (message.url != null && message.hasOwnProperty("url")) - object.url = message.url; - if (message.serviceType != null && message.hasOwnProperty("serviceType")) - object.serviceType = options.enums === String ? $root.Router.ServiceType[message.serviceType] === undefined ? message.serviceType : $root.Router.ServiceType[message.serviceType] : message.serviceType; return object; }; /** - * Converts this ApiCallbackRequest to JSON. + * Converts this PAMRotationSchedulesResponse to JSON. * @function toJSON - * @memberof Router.ApiCallbackRequest + * @memberof PAM.PAMRotationSchedulesResponse * @instance * @returns {Object.} JSON object */ - ApiCallbackRequest.prototype.toJSON = function toJSON() { + PAMRotationSchedulesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ApiCallbackRequest + * Gets the default type url for PAMRotationSchedulesResponse * @function getTypeUrl - * @memberof Router.ApiCallbackRequest + * @memberof PAM.PAMRotationSchedulesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ApiCallbackRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMRotationSchedulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.ApiCallbackRequest"; + return typeUrlPrefix + "/PAM.PAMRotationSchedulesResponse"; }; - return ApiCallbackRequest; + return PAMRotationSchedulesResponse; })(); - Router.ApiCallbackSchedule = (function() { + PAM.PAMOnlineController = (function() { /** - * Properties of an ApiCallbackSchedule. - * @memberof Router - * @interface IApiCallbackSchedule - * @property {string|null} [schedule] ApiCallbackSchedule schedule - * @property {Uint8Array|null} [data] ApiCallbackSchedule data + * Properties of a PAMOnlineController. + * @memberof PAM + * @interface IPAMOnlineController + * @property {Uint8Array|null} [controllerUid] PAMOnlineController controllerUid + * @property {number|Long|null} [connectedOn] PAMOnlineController connectedOn + * @property {string|null} [ipAddress] PAMOnlineController ipAddress + * @property {string|null} [version] PAMOnlineController version + * @property {Array.|null} [connections] PAMOnlineController connections */ /** - * Constructs a new ApiCallbackSchedule. - * @memberof Router - * @classdesc Represents an ApiCallbackSchedule. - * @implements IApiCallbackSchedule + * Constructs a new PAMOnlineController. + * @memberof PAM + * @classdesc Represents a PAMOnlineController. + * @implements IPAMOnlineController * @constructor - * @param {Router.IApiCallbackSchedule=} [properties] Properties to set + * @param {PAM.IPAMOnlineController=} [properties] Properties to set */ - function ApiCallbackSchedule(properties) { + function PAMOnlineController(properties) { + this.connections = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -251264,89 +282457,134 @@ export const Router = $root.Router = (() => { } /** - * ApiCallbackSchedule schedule. - * @member {string} schedule - * @memberof Router.ApiCallbackSchedule + * PAMOnlineController controllerUid. + * @member {Uint8Array} controllerUid + * @memberof PAM.PAMOnlineController * @instance */ - ApiCallbackSchedule.prototype.schedule = ""; + PAMOnlineController.prototype.controllerUid = $util.newBuffer([]); /** - * ApiCallbackSchedule data. - * @member {Uint8Array} data - * @memberof Router.ApiCallbackSchedule + * PAMOnlineController connectedOn. + * @member {number|Long} connectedOn + * @memberof PAM.PAMOnlineController * @instance */ - ApiCallbackSchedule.prototype.data = $util.newBuffer([]); + PAMOnlineController.prototype.connectedOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new ApiCallbackSchedule instance using the specified properties. + * PAMOnlineController ipAddress. + * @member {string} ipAddress + * @memberof PAM.PAMOnlineController + * @instance + */ + PAMOnlineController.prototype.ipAddress = ""; + + /** + * PAMOnlineController version. + * @member {string} version + * @memberof PAM.PAMOnlineController + * @instance + */ + PAMOnlineController.prototype.version = ""; + + /** + * PAMOnlineController connections. + * @member {Array.} connections + * @memberof PAM.PAMOnlineController + * @instance + */ + PAMOnlineController.prototype.connections = $util.emptyArray; + + /** + * Creates a new PAMOnlineController instance using the specified properties. * @function create - * @memberof Router.ApiCallbackSchedule + * @memberof PAM.PAMOnlineController * @static - * @param {Router.IApiCallbackSchedule=} [properties] Properties to set - * @returns {Router.ApiCallbackSchedule} ApiCallbackSchedule instance + * @param {PAM.IPAMOnlineController=} [properties] Properties to set + * @returns {PAM.PAMOnlineController} PAMOnlineController instance */ - ApiCallbackSchedule.create = function create(properties) { - return new ApiCallbackSchedule(properties); + PAMOnlineController.create = function create(properties) { + return new PAMOnlineController(properties); }; /** - * Encodes the specified ApiCallbackSchedule message. Does not implicitly {@link Router.ApiCallbackSchedule.verify|verify} messages. + * Encodes the specified PAMOnlineController message. Does not implicitly {@link PAM.PAMOnlineController.verify|verify} messages. * @function encode - * @memberof Router.ApiCallbackSchedule + * @memberof PAM.PAMOnlineController * @static - * @param {Router.IApiCallbackSchedule} message ApiCallbackSchedule message or plain object to encode + * @param {PAM.IPAMOnlineController} message PAMOnlineController message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApiCallbackSchedule.encode = function encode(message, writer) { + PAMOnlineController.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.schedule); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.controllerUid); + if (message.connectedOn != null && Object.hasOwnProperty.call(message, "connectedOn")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.connectedOn); + if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.ipAddress); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.version); + if (message.connections != null && message.connections.length) + for (let i = 0; i < message.connections.length; ++i) + $root.PAM.PAMWebRtcConnection.encode(message.connections[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified ApiCallbackSchedule message, length delimited. Does not implicitly {@link Router.ApiCallbackSchedule.verify|verify} messages. + * Encodes the specified PAMOnlineController message, length delimited. Does not implicitly {@link PAM.PAMOnlineController.verify|verify} messages. * @function encodeDelimited - * @memberof Router.ApiCallbackSchedule + * @memberof PAM.PAMOnlineController * @static - * @param {Router.IApiCallbackSchedule} message ApiCallbackSchedule message or plain object to encode + * @param {PAM.IPAMOnlineController} message PAMOnlineController message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApiCallbackSchedule.encodeDelimited = function encodeDelimited(message, writer) { + PAMOnlineController.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApiCallbackSchedule message from the specified reader or buffer. + * Decodes a PAMOnlineController message from the specified reader or buffer. * @function decode - * @memberof Router.ApiCallbackSchedule + * @memberof PAM.PAMOnlineController * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.ApiCallbackSchedule} ApiCallbackSchedule + * @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 */ - ApiCallbackSchedule.decode = function decode(reader, length) { + PAMOnlineController.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.ApiCallbackSchedule(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMOnlineController(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.schedule = reader.string(); + message.controllerUid = reader.bytes(); break; } case 2: { - message.data = reader.bytes(); + message.connectedOn = reader.int64(); + break; + } + case 3: { + message.ipAddress = reader.string(); + break; + } + case 4: { + message.version = reader.string(); + break; + } + case 5: { + if (!(message.connections && message.connections.length)) + message.connections = []; + message.connections.push($root.PAM.PAMWebRtcConnection.decode(reader, reader.uint32())); break; } default: @@ -251358,142 +282596,233 @@ export const Router = $root.Router = (() => { }; /** - * Decodes an ApiCallbackSchedule message from the specified reader or buffer, length delimited. + * Decodes a PAMOnlineController message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.ApiCallbackSchedule + * @memberof PAM.PAMOnlineController * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.ApiCallbackSchedule} ApiCallbackSchedule + * @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 */ - ApiCallbackSchedule.decodeDelimited = function decodeDelimited(reader) { + PAMOnlineController.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApiCallbackSchedule message. + * Verifies a PAMOnlineController message. * @function verify - * @memberof Router.ApiCallbackSchedule + * @memberof PAM.PAMOnlineController * @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) { + PAMOnlineController.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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]); + if (error) + return "connections." + error; + } + } return null; }; /** - * Creates an ApiCallbackSchedule message from a plain object. Also converts values to their respective internal types. + * Creates a PAMOnlineController message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.ApiCallbackSchedule + * @memberof PAM.PAMOnlineController * @static * @param {Object.} object Plain object - * @returns {Router.ApiCallbackSchedule} ApiCallbackSchedule + * @returns {PAM.PAMOnlineController} PAMOnlineController */ - ApiCallbackSchedule.fromObject = function fromObject(object) { - if (object instanceof $root.Router.ApiCallbackSchedule) + PAMOnlineController.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMOnlineController) return object; - let message = new $root.Router.ApiCallbackSchedule(); - if (object.schedule != null) - message.schedule = String(object.schedule); - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + let message = new $root.PAM.PAMOnlineController(); + if (object.controllerUid != null) + if (typeof object.controllerUid === "string") + $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); + else if (object.controllerUid.length >= 0) + message.controllerUid = object.controllerUid; + if (object.connectedOn != null) + if ($util.Long) + (message.connectedOn = $util.Long.fromValue(object.connectedOn)).unsigned = false; + else if (typeof object.connectedOn === "string") + message.connectedOn = parseInt(object.connectedOn, 10); + else if (typeof object.connectedOn === "number") + message.connectedOn = object.connectedOn; + else if (typeof object.connectedOn === "object") + message.connectedOn = new $util.LongBits(object.connectedOn.low >>> 0, object.connectedOn.high >>> 0).toNumber(); + if (object.ipAddress != null) + message.ipAddress = String(object.ipAddress); + if (object.version != null) + message.version = String(object.version); + if (object.connections) { + if (!Array.isArray(object.connections)) + throw TypeError(".PAM.PAMOnlineController.connections: array expected"); + message.connections = []; + for (let i = 0; i < object.connections.length; ++i) { + if (typeof object.connections[i] !== "object") + throw TypeError(".PAM.PAMOnlineController.connections: object expected"); + message.connections[i] = $root.PAM.PAMWebRtcConnection.fromObject(object.connections[i]); + } + } return message; }; /** - * Creates a plain object from an ApiCallbackSchedule message. Also converts values to other types if specified. + * Creates a plain object from a PAMOnlineController message. Also converts values to other types if specified. * @function toObject - * @memberof Router.ApiCallbackSchedule + * @memberof PAM.PAMOnlineController * @static - * @param {Router.ApiCallbackSchedule} message ApiCallbackSchedule + * @param {PAM.PAMOnlineController} message PAMOnlineController * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApiCallbackSchedule.toObject = function toObject(message, options) { + PAMOnlineController.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.connections = []; if (options.defaults) { - object.schedule = ""; if (options.bytes === String) - object.data = ""; + object.controllerUid = ""; else { - object.data = []; + object.controllerUid = []; if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + object.controllerUid = $util.newBuffer(object.controllerUid); } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.connectedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.connectedOn = options.longs === String ? "0" : 0; + object.ipAddress = ""; + object.version = ""; + } + if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) + object.controllerUid = options.bytes === String ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUid) : message.controllerUid; + if (message.connectedOn != null && message.hasOwnProperty("connectedOn")) + if (typeof 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")) + object.ipAddress = message.ipAddress; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.connections && message.connections.length) { + object.connections = []; + for (let j = 0; j < message.connections.length; ++j) + object.connections[j] = $root.PAM.PAMWebRtcConnection.toObject(message.connections[j], options); } - if (message.schedule != null && message.hasOwnProperty("schedule")) - object.schedule = message.schedule; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; return object; }; /** - * Converts this ApiCallbackSchedule to JSON. + * Converts this PAMOnlineController to JSON. * @function toJSON - * @memberof Router.ApiCallbackSchedule + * @memberof PAM.PAMOnlineController * @instance * @returns {Object.} JSON object */ - ApiCallbackSchedule.prototype.toJSON = function toJSON() { + PAMOnlineController.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ApiCallbackSchedule + * Gets the default type url for PAMOnlineController * @function getTypeUrl - * @memberof Router.ApiCallbackSchedule + * @memberof PAM.PAMOnlineController * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ApiCallbackSchedule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMOnlineController.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.ApiCallbackSchedule"; + return typeUrlPrefix + "/PAM.PAMOnlineController"; }; - return ApiCallbackSchedule; + return PAMOnlineController; })(); - Router.RouterScheduledActions = (function() { + /** + * WebRtcConnectionType enum. + * @name PAM.WebRtcConnectionType + * @enum {number} + * @property {number} CONNECTION=0 CONNECTION value + * @property {number} TUNNEL=1 TUNNEL value + * @property {number} SSH=2 SSH value + * @property {number} RDP=3 RDP value + * @property {number} HTTP=4 HTTP value + * @property {number} VNC=5 VNC value + * @property {number} TELNET=6 TELNET value + * @property {number} MYSQL=7 MYSQL value + * @property {number} SQL_SERVER=8 SQL_SERVER value + * @property {number} POSTGRESQL=9 POSTGRESQL value + * @property {number} KUBERNETES=10 KUBERNETES value + */ + PAM.WebRtcConnectionType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CONNECTION"] = 0; + values[valuesById[1] = "TUNNEL"] = 1; + values[valuesById[2] = "SSH"] = 2; + values[valuesById[3] = "RDP"] = 3; + values[valuesById[4] = "HTTP"] = 4; + values[valuesById[5] = "VNC"] = 5; + values[valuesById[6] = "TELNET"] = 6; + values[valuesById[7] = "MYSQL"] = 7; + values[valuesById[8] = "SQL_SERVER"] = 8; + values[valuesById[9] = "POSTGRESQL"] = 9; + values[valuesById[10] = "KUBERNETES"] = 10; + return values; + })(); + + PAM.PAMWebRtcConnection = (function() { /** - * Properties of a RouterScheduledActions. - * @memberof Router - * @interface IRouterScheduledActions - * @property {string|null} [schedule] RouterScheduledActions schedule - * @property {Array.|null} [resourceUids] RouterScheduledActions resourceUids + * Properties of a PAMWebRtcConnection. + * @memberof PAM + * @interface IPAMWebRtcConnection + * @property {Uint8Array|null} [connectionUid] PAMWebRtcConnection connectionUid + * @property {PAM.WebRtcConnectionType|null} [type] PAMWebRtcConnection type + * @property {Uint8Array|null} [recordUid] PAMWebRtcConnection recordUid + * @property {string|null} [userName] PAMWebRtcConnection userName + * @property {number|Long|null} [startedOn] PAMWebRtcConnection startedOn + * @property {Uint8Array|null} [configurationUid] PAMWebRtcConnection configurationUid */ /** - * Constructs a new RouterScheduledActions. - * @memberof Router - * @classdesc Represents a RouterScheduledActions. - * @implements IRouterScheduledActions + * Constructs a new PAMWebRtcConnection. + * @memberof PAM + * @classdesc Represents a PAMWebRtcConnection. + * @implements IPAMWebRtcConnection * @constructor - * @param {Router.IRouterScheduledActions=} [properties] Properties to set + * @param {PAM.IPAMWebRtcConnection=} [properties] Properties to set */ - function RouterScheduledActions(properties) { - this.resourceUids = []; + function PAMWebRtcConnection(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -251501,92 +282830,145 @@ export const Router = $root.Router = (() => { } /** - * RouterScheduledActions schedule. - * @member {string} schedule - * @memberof Router.RouterScheduledActions + * PAMWebRtcConnection connectionUid. + * @member {Uint8Array} connectionUid + * @memberof PAM.PAMWebRtcConnection * @instance */ - RouterScheduledActions.prototype.schedule = ""; + PAMWebRtcConnection.prototype.connectionUid = $util.newBuffer([]); /** - * RouterScheduledActions resourceUids. - * @member {Array.} resourceUids - * @memberof Router.RouterScheduledActions + * PAMWebRtcConnection type. + * @member {PAM.WebRtcConnectionType} type + * @memberof PAM.PAMWebRtcConnection * @instance */ - RouterScheduledActions.prototype.resourceUids = $util.emptyArray; + PAMWebRtcConnection.prototype.type = 0; /** - * Creates a new RouterScheduledActions instance using the specified properties. + * PAMWebRtcConnection recordUid. + * @member {Uint8Array} recordUid + * @memberof PAM.PAMWebRtcConnection + * @instance + */ + PAMWebRtcConnection.prototype.recordUid = $util.newBuffer([]); + + /** + * PAMWebRtcConnection userName. + * @member {string} userName + * @memberof PAM.PAMWebRtcConnection + * @instance + */ + PAMWebRtcConnection.prototype.userName = ""; + + /** + * PAMWebRtcConnection startedOn. + * @member {number|Long} startedOn + * @memberof PAM.PAMWebRtcConnection + * @instance + */ + PAMWebRtcConnection.prototype.startedOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * PAMWebRtcConnection configurationUid. + * @member {Uint8Array} configurationUid + * @memberof PAM.PAMWebRtcConnection + * @instance + */ + PAMWebRtcConnection.prototype.configurationUid = $util.newBuffer([]); + + /** + * Creates a new PAMWebRtcConnection instance using the specified properties. * @function create - * @memberof Router.RouterScheduledActions + * @memberof PAM.PAMWebRtcConnection * @static - * @param {Router.IRouterScheduledActions=} [properties] Properties to set - * @returns {Router.RouterScheduledActions} RouterScheduledActions instance + * @param {PAM.IPAMWebRtcConnection=} [properties] Properties to set + * @returns {PAM.PAMWebRtcConnection} PAMWebRtcConnection instance */ - RouterScheduledActions.create = function create(properties) { - return new RouterScheduledActions(properties); + PAMWebRtcConnection.create = function create(properties) { + return new PAMWebRtcConnection(properties); }; /** - * Encodes the specified RouterScheduledActions message. Does not implicitly {@link Router.RouterScheduledActions.verify|verify} messages. + * Encodes the specified PAMWebRtcConnection message. Does not implicitly {@link PAM.PAMWebRtcConnection.verify|verify} messages. * @function encode - * @memberof Router.RouterScheduledActions + * @memberof PAM.PAMWebRtcConnection * @static - * @param {Router.IRouterScheduledActions} message RouterScheduledActions message or plain object to encode + * @param {PAM.IPAMWebRtcConnection} message PAMWebRtcConnection message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterScheduledActions.encode = function encode(message, writer) { + PAMWebRtcConnection.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.schedule); - if (message.resourceUids != null && message.resourceUids.length) - for (let i = 0; i < message.resourceUids.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceUids[i]); + if (message.connectionUid != null && Object.hasOwnProperty.call(message, "connectionUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.connectionUid); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordUid); + if (message.userName != null && Object.hasOwnProperty.call(message, "userName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.userName); + if (message.startedOn != null && Object.hasOwnProperty.call(message, "startedOn")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.startedOn); + if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.configurationUid); return writer; }; /** - * Encodes the specified RouterScheduledActions message, length delimited. Does not implicitly {@link Router.RouterScheduledActions.verify|verify} messages. + * Encodes the specified PAMWebRtcConnection message, length delimited. Does not implicitly {@link PAM.PAMWebRtcConnection.verify|verify} messages. * @function encodeDelimited - * @memberof Router.RouterScheduledActions + * @memberof PAM.PAMWebRtcConnection * @static - * @param {Router.IRouterScheduledActions} message RouterScheduledActions message or plain object to encode + * @param {PAM.IPAMWebRtcConnection} message PAMWebRtcConnection message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterScheduledActions.encodeDelimited = function encodeDelimited(message, writer) { + PAMWebRtcConnection.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RouterScheduledActions message from the specified reader or buffer. + * Decodes a PAMWebRtcConnection message from the specified reader or buffer. * @function decode - * @memberof Router.RouterScheduledActions + * @memberof PAM.PAMWebRtcConnection * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.RouterScheduledActions} RouterScheduledActions + * @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 */ - RouterScheduledActions.decode = function decode(reader, length) { + PAMWebRtcConnection.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterScheduledActions(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMWebRtcConnection(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.schedule = reader.string(); + message.connectionUid = reader.bytes(); break; } case 2: { - if (!(message.resourceUids && message.resourceUids.length)) - message.resourceUids = []; - message.resourceUids.push(reader.bytes()); + message.type = reader.int32(); + break; + } + case 3: { + message.recordUid = reader.bytes(); + break; + } + case 4: { + message.userName = reader.string(); + break; + } + case 5: { + message.startedOn = reader.int64(); + break; + } + case 6: { + message.configurationUid = reader.bytes(); break; } default: @@ -251598,147 +282980,271 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a RouterScheduledActions message from the specified reader or buffer, length delimited. + * Decodes a PAMWebRtcConnection message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.RouterScheduledActions + * @memberof PAM.PAMWebRtcConnection * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterScheduledActions} RouterScheduledActions + * @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 */ - RouterScheduledActions.decodeDelimited = function decodeDelimited(reader) { + PAMWebRtcConnection.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RouterScheduledActions message. + * Verifies a PAMWebRtcConnection message. * @function verify - * @memberof Router.RouterScheduledActions + * @memberof PAM.PAMWebRtcConnection * @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) { + PAMWebRtcConnection.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; - } + 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 RouterScheduledActions message from a plain object. Also converts values to their respective internal types. + * Creates a PAMWebRtcConnection message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.RouterScheduledActions + * @memberof PAM.PAMWebRtcConnection * @static * @param {Object.} object Plain object - * @returns {Router.RouterScheduledActions} RouterScheduledActions + * @returns {PAM.PAMWebRtcConnection} PAMWebRtcConnection */ - RouterScheduledActions.fromObject = function fromObject(object) { - if (object instanceof $root.Router.RouterScheduledActions) + PAMWebRtcConnection.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMWebRtcConnection) return object; - let message = new $root.Router.RouterScheduledActions(); - if (object.schedule != null) - message.schedule = String(object.schedule); - if (object.resourceUids) { - if (!Array.isArray(object.resourceUids)) - throw TypeError(".Router.RouterScheduledActions.resourceUids: array expected"); - message.resourceUids = []; - for (let i = 0; i < object.resourceUids.length; ++i) - if (typeof object.resourceUids[i] === "string") - $util.base64.decode(object.resourceUids[i], message.resourceUids[i] = $util.newBuffer($util.base64.length(object.resourceUids[i])), 0); - else if (object.resourceUids[i].length >= 0) - message.resourceUids[i] = object.resourceUids[i]; + let message = new $root.PAM.PAMWebRtcConnection(); + if (object.connectionUid != null) + if (typeof object.connectionUid === "string") + $util.base64.decode(object.connectionUid, message.connectionUid = $util.newBuffer($util.base64.length(object.connectionUid)), 0); + else if (object.connectionUid.length >= 0) + message.connectionUid = object.connectionUid; + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "CONNECTION": + case 0: + message.type = 0; + break; + case "TUNNEL": + case 1: + message.type = 1; + break; + case "SSH": + case 2: + message.type = 2; + break; + case "RDP": + case 3: + message.type = 3; + break; + case "HTTP": + case 4: + message.type = 4; + break; + case "VNC": + case 5: + message.type = 5; + break; + case "TELNET": + case 6: + message.type = 6; + break; + case "MYSQL": + case 7: + message.type = 7; + break; + case "SQL_SERVER": + case 8: + message.type = 8; + break; + case "POSTGRESQL": + case 9: + message.type = 9; + break; + case "KUBERNETES": + case 10: + message.type = 10; + break; } + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.userName != null) + message.userName = String(object.userName); + if (object.startedOn != null) + if ($util.Long) + (message.startedOn = $util.Long.fromValue(object.startedOn)).unsigned = false; + else if (typeof object.startedOn === "string") + message.startedOn = parseInt(object.startedOn, 10); + else if (typeof object.startedOn === "number") + message.startedOn = object.startedOn; + else if (typeof object.startedOn === "object") + message.startedOn = new $util.LongBits(object.startedOn.low >>> 0, object.startedOn.high >>> 0).toNumber(); + if (object.configurationUid != null) + if (typeof object.configurationUid === "string") + $util.base64.decode(object.configurationUid, message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid)), 0); + else if (object.configurationUid.length >= 0) + message.configurationUid = object.configurationUid; return message; }; /** - * Creates a plain object from a RouterScheduledActions message. Also converts values to other types if specified. + * Creates a plain object from a PAMWebRtcConnection message. Also converts values to other types if specified. * @function toObject - * @memberof Router.RouterScheduledActions + * @memberof PAM.PAMWebRtcConnection * @static - * @param {Router.RouterScheduledActions} message RouterScheduledActions + * @param {PAM.PAMWebRtcConnection} message PAMWebRtcConnection * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterScheduledActions.toObject = function toObject(message, options) { + PAMWebRtcConnection.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.resourceUids = []; - if (options.defaults) - object.schedule = ""; - if (message.schedule != null && message.hasOwnProperty("schedule")) - object.schedule = message.schedule; - if (message.resourceUids && message.resourceUids.length) { - object.resourceUids = []; - for (let j = 0; j < message.resourceUids.length; ++j) - object.resourceUids[j] = options.bytes === String ? $util.base64.encode(message.resourceUids[j], 0, message.resourceUids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.resourceUids[j]) : message.resourceUids[j]; + if (options.defaults) { + if (options.bytes === String) + object.connectionUid = ""; + else { + object.connectionUid = []; + if (options.bytes !== Array) + object.connectionUid = $util.newBuffer(object.connectionUid); + } + object.type = options.enums === String ? "CONNECTION" : 0; + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + object.userName = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.startedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.startedOn = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.configurationUid = ""; + else { + object.configurationUid = []; + if (options.bytes !== Array) + object.configurationUid = $util.newBuffer(object.configurationUid); + } } + if (message.connectionUid != null && message.hasOwnProperty("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")) + 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")) + 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")) + object.userName = message.userName; + if (message.startedOn != null && message.hasOwnProperty("startedOn")) + 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")) + 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; }; /** - * Converts this RouterScheduledActions to JSON. + * Converts this PAMWebRtcConnection to JSON. * @function toJSON - * @memberof Router.RouterScheduledActions + * @memberof PAM.PAMWebRtcConnection * @instance * @returns {Object.} JSON object */ - RouterScheduledActions.prototype.toJSON = function toJSON() { + PAMWebRtcConnection.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RouterScheduledActions + * Gets the default type url for PAMWebRtcConnection * @function getTypeUrl - * @memberof Router.RouterScheduledActions + * @memberof PAM.PAMWebRtcConnection * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RouterScheduledActions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMWebRtcConnection.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.RouterScheduledActions"; + return typeUrlPrefix + "/PAM.PAMWebRtcConnection"; }; - return RouterScheduledActions; + return PAMWebRtcConnection; })(); - Router.RouterRecordsRotationRequest = (function() { + PAM.PAMOnlineControllers = (function() { /** - * Properties of a RouterRecordsRotationRequest. - * @memberof Router - * @interface IRouterRecordsRotationRequest - * @property {Array.|null} [rotationSchedules] RouterRecordsRotationRequest rotationSchedules + * Properties of a PAMOnlineControllers. + * @memberof PAM + * @interface IPAMOnlineControllers + * @property {Array.|null} [deprecated] PAMOnlineControllers deprecated + * @property {Array.|null} [controllers] PAMOnlineControllers controllers */ /** - * Constructs a new RouterRecordsRotationRequest. - * @memberof Router - * @classdesc Represents a RouterRecordsRotationRequest. - * @implements IRouterRecordsRotationRequest + * Constructs a new PAMOnlineControllers. + * @memberof PAM + * @classdesc Represents a PAMOnlineControllers. + * @implements IPAMOnlineControllers * @constructor - * @param {Router.IRouterRecordsRotationRequest=} [properties] Properties to set + * @param {PAM.IPAMOnlineControllers=} [properties] Properties to set */ - function RouterRecordsRotationRequest(properties) { - this.rotationSchedules = []; + function PAMOnlineControllers(properties) { + this.deprecated = []; + this.controllers = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -251746,78 +283252,95 @@ export const Router = $root.Router = (() => { } /** - * RouterRecordsRotationRequest rotationSchedules. - * @member {Array.} rotationSchedules - * @memberof Router.RouterRecordsRotationRequest + * PAMOnlineControllers deprecated. + * @member {Array.} deprecated + * @memberof PAM.PAMOnlineControllers * @instance */ - RouterRecordsRotationRequest.prototype.rotationSchedules = $util.emptyArray; + PAMOnlineControllers.prototype.deprecated = $util.emptyArray; /** - * Creates a new RouterRecordsRotationRequest instance using the specified properties. + * PAMOnlineControllers controllers. + * @member {Array.} controllers + * @memberof PAM.PAMOnlineControllers + * @instance + */ + PAMOnlineControllers.prototype.controllers = $util.emptyArray; + + /** + * Creates a new PAMOnlineControllers instance using the specified properties. * @function create - * @memberof Router.RouterRecordsRotationRequest + * @memberof PAM.PAMOnlineControllers * @static - * @param {Router.IRouterRecordsRotationRequest=} [properties] Properties to set - * @returns {Router.RouterRecordsRotationRequest} RouterRecordsRotationRequest instance + * @param {PAM.IPAMOnlineControllers=} [properties] Properties to set + * @returns {PAM.PAMOnlineControllers} PAMOnlineControllers instance */ - RouterRecordsRotationRequest.create = function create(properties) { - return new RouterRecordsRotationRequest(properties); + PAMOnlineControllers.create = function create(properties) { + return new PAMOnlineControllers(properties); }; /** - * Encodes the specified RouterRecordsRotationRequest message. Does not implicitly {@link Router.RouterRecordsRotationRequest.verify|verify} messages. + * Encodes the specified PAMOnlineControllers message. Does not implicitly {@link PAM.PAMOnlineControllers.verify|verify} messages. * @function encode - * @memberof Router.RouterRecordsRotationRequest + * @memberof PAM.PAMOnlineControllers * @static - * @param {Router.IRouterRecordsRotationRequest} message RouterRecordsRotationRequest message or plain object to encode + * @param {PAM.IPAMOnlineControllers} message PAMOnlineControllers message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterRecordsRotationRequest.encode = function encode(message, writer) { + PAMOnlineControllers.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rotationSchedules != null && message.rotationSchedules.length) - for (let i = 0; i < message.rotationSchedules.length; ++i) - $root.Router.RouterScheduledActions.encode(message.rotationSchedules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deprecated != null && message.deprecated.length) + for (let i = 0; i < message.deprecated.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.deprecated[i]); + if (message.controllers != null && message.controllers.length) + for (let i = 0; i < message.controllers.length; ++i) + $root.PAM.PAMOnlineController.encode(message.controllers[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified RouterRecordsRotationRequest message, length delimited. Does not implicitly {@link Router.RouterRecordsRotationRequest.verify|verify} messages. + * Encodes the specified PAMOnlineControllers message, length delimited. Does not implicitly {@link PAM.PAMOnlineControllers.verify|verify} messages. * @function encodeDelimited - * @memberof Router.RouterRecordsRotationRequest + * @memberof PAM.PAMOnlineControllers * @static - * @param {Router.IRouterRecordsRotationRequest} message RouterRecordsRotationRequest message or plain object to encode + * @param {PAM.IPAMOnlineControllers} message PAMOnlineControllers message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterRecordsRotationRequest.encodeDelimited = function encodeDelimited(message, writer) { + PAMOnlineControllers.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RouterRecordsRotationRequest message from the specified reader or buffer. + * Decodes a PAMOnlineControllers message from the specified reader or buffer. * @function decode - * @memberof Router.RouterRecordsRotationRequest + * @memberof PAM.PAMOnlineControllers * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.RouterRecordsRotationRequest} RouterRecordsRotationRequest + * @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 */ - RouterRecordsRotationRequest.decode = function decode(reader, length) { + PAMOnlineControllers.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterRecordsRotationRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMOnlineControllers(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.rotationSchedules && message.rotationSchedules.length)) - message.rotationSchedules = []; - message.rotationSchedules.push($root.Router.RouterScheduledActions.decode(reader, reader.uint32())); + if (!(message.deprecated && message.deprecated.length)) + message.deprecated = []; + message.deprecated.push(reader.bytes()); + break; + } + case 2: { + if (!(message.controllers && message.controllers.length)) + message.controllers = []; + message.controllers.push($root.PAM.PAMOnlineController.decode(reader, reader.uint32())); break; } default: @@ -251829,143 +283352,164 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a RouterRecordsRotationRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMOnlineControllers message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.RouterRecordsRotationRequest + * @memberof PAM.PAMOnlineControllers * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.RouterRecordsRotationRequest} RouterRecordsRotationRequest + * @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 */ - RouterRecordsRotationRequest.decodeDelimited = function decodeDelimited(reader) { + PAMOnlineControllers.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RouterRecordsRotationRequest message. + * Verifies a PAMOnlineControllers message. * @function verify - * @memberof Router.RouterRecordsRotationRequest + * @memberof PAM.PAMOnlineControllers * @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) { + PAMOnlineControllers.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); + 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]); if (error) - return "rotationSchedules." + error; + return "controllers." + error; } } return null; }; /** - * Creates a RouterRecordsRotationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMOnlineControllers message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.RouterRecordsRotationRequest + * @memberof PAM.PAMOnlineControllers * @static * @param {Object.} object Plain object - * @returns {Router.RouterRecordsRotationRequest} RouterRecordsRotationRequest + * @returns {PAM.PAMOnlineControllers} PAMOnlineControllers */ - RouterRecordsRotationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Router.RouterRecordsRotationRequest) + PAMOnlineControllers.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMOnlineControllers) return object; - let message = new $root.Router.RouterRecordsRotationRequest(); - if (object.rotationSchedules) { - if (!Array.isArray(object.rotationSchedules)) - throw TypeError(".Router.RouterRecordsRotationRequest.rotationSchedules: array expected"); - message.rotationSchedules = []; - for (let i = 0; i < object.rotationSchedules.length; ++i) { - if (typeof object.rotationSchedules[i] !== "object") - throw TypeError(".Router.RouterRecordsRotationRequest.rotationSchedules: object expected"); - message.rotationSchedules[i] = $root.Router.RouterScheduledActions.fromObject(object.rotationSchedules[i]); + let message = new $root.PAM.PAMOnlineControllers(); + if (object.deprecated) { + if (!Array.isArray(object.deprecated)) + throw TypeError(".PAM.PAMOnlineControllers.deprecated: array expected"); + message.deprecated = []; + for (let i = 0; i < object.deprecated.length; ++i) + if (typeof object.deprecated[i] === "string") + $util.base64.decode(object.deprecated[i], message.deprecated[i] = $util.newBuffer($util.base64.length(object.deprecated[i])), 0); + else if (object.deprecated[i].length >= 0) + message.deprecated[i] = object.deprecated[i]; + } + if (object.controllers) { + if (!Array.isArray(object.controllers)) + throw TypeError(".PAM.PAMOnlineControllers.controllers: array expected"); + message.controllers = []; + for (let i = 0; i < object.controllers.length; ++i) { + if (typeof object.controllers[i] !== "object") + throw TypeError(".PAM.PAMOnlineControllers.controllers: object expected"); + message.controllers[i] = $root.PAM.PAMOnlineController.fromObject(object.controllers[i]); } } return message; }; /** - * Creates a plain object from a RouterRecordsRotationRequest message. Also converts values to other types if specified. + * Creates a plain object from a PAMOnlineControllers message. Also converts values to other types if specified. * @function toObject - * @memberof Router.RouterRecordsRotationRequest + * @memberof PAM.PAMOnlineControllers * @static - * @param {Router.RouterRecordsRotationRequest} message RouterRecordsRotationRequest + * @param {PAM.PAMOnlineControllers} message PAMOnlineControllers * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterRecordsRotationRequest.toObject = function toObject(message, options) { + PAMOnlineControllers.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.rotationSchedules = []; - if (message.rotationSchedules && message.rotationSchedules.length) { - object.rotationSchedules = []; - for (let j = 0; j < message.rotationSchedules.length; ++j) - object.rotationSchedules[j] = $root.Router.RouterScheduledActions.toObject(message.rotationSchedules[j], options); + if (options.arrays || options.defaults) { + object.deprecated = []; + object.controllers = []; + } + if (message.deprecated && message.deprecated.length) { + object.deprecated = []; + for (let j = 0; j < message.deprecated.length; ++j) + object.deprecated[j] = options.bytes === String ? $util.base64.encode(message.deprecated[j], 0, message.deprecated[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.deprecated[j]) : message.deprecated[j]; + } + if (message.controllers && message.controllers.length) { + object.controllers = []; + for (let j = 0; j < message.controllers.length; ++j) + object.controllers[j] = $root.PAM.PAMOnlineController.toObject(message.controllers[j], options); } return object; }; /** - * Converts this RouterRecordsRotationRequest to JSON. + * Converts this PAMOnlineControllers to JSON. * @function toJSON - * @memberof Router.RouterRecordsRotationRequest + * @memberof PAM.PAMOnlineControllers * @instance * @returns {Object.} JSON object */ - RouterRecordsRotationRequest.prototype.toJSON = function toJSON() { + PAMOnlineControllers.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RouterRecordsRotationRequest + * Gets the default type url for PAMOnlineControllers * @function getTypeUrl - * @memberof Router.RouterRecordsRotationRequest + * @memberof PAM.PAMOnlineControllers * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RouterRecordsRotationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMOnlineControllers.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.RouterRecordsRotationRequest"; + return typeUrlPrefix + "/PAM.PAMOnlineControllers"; }; - return RouterRecordsRotationRequest; + return PAMOnlineControllers; })(); - Router.ConnectionParameters = (function() { + PAM.PAMRotateRequest = (function() { /** - * Properties of a ConnectionParameters. - * @memberof Router - * @interface IConnectionParameters - * @property {Uint8Array|null} [connectionUid] ConnectionParameters connectionUid - * @property {Uint8Array|null} [recordUid] ConnectionParameters recordUid - * @property {number|null} [userId] ConnectionParameters userId - * @property {Uint8Array|null} [controllerUid] ConnectionParameters controllerUid - * @property {Uint8Array|null} [credentialsRecordUid] ConnectionParameters credentialsRecordUid + * Properties of a PAMRotateRequest. + * @memberof PAM + * @interface IPAMRotateRequest + * @property {Uint8Array|null} [requestUid] PAMRotateRequest requestUid + * @property {Uint8Array|null} [recordUid] PAMRotateRequest recordUid */ /** - * Constructs a new ConnectionParameters. - * @memberof Router - * @classdesc Represents a ConnectionParameters. - * @implements IConnectionParameters + * Constructs a new PAMRotateRequest. + * @memberof PAM + * @classdesc Represents a PAMRotateRequest. + * @implements IPAMRotateRequest * @constructor - * @param {Router.IConnectionParameters=} [properties] Properties to set + * @param {PAM.IPAMRotateRequest=} [properties] Properties to set */ - function ConnectionParameters(properties) { + function PAMRotateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -251973,133 +283517,91 @@ export const Router = $root.Router = (() => { } /** - * ConnectionParameters connectionUid. - * @member {Uint8Array} connectionUid - * @memberof Router.ConnectionParameters + * PAMRotateRequest requestUid. + * @member {Uint8Array} requestUid + * @memberof PAM.PAMRotateRequest * @instance */ - ConnectionParameters.prototype.connectionUid = $util.newBuffer([]); + PAMRotateRequest.prototype.requestUid = $util.newBuffer([]); /** - * ConnectionParameters recordUid. + * PAMRotateRequest recordUid. * @member {Uint8Array} recordUid - * @memberof Router.ConnectionParameters - * @instance - */ - ConnectionParameters.prototype.recordUid = $util.newBuffer([]); - - /** - * ConnectionParameters userId. - * @member {number} userId - * @memberof Router.ConnectionParameters - * @instance - */ - ConnectionParameters.prototype.userId = 0; - - /** - * ConnectionParameters controllerUid. - * @member {Uint8Array} controllerUid - * @memberof Router.ConnectionParameters - * @instance - */ - ConnectionParameters.prototype.controllerUid = $util.newBuffer([]); - - /** - * ConnectionParameters credentialsRecordUid. - * @member {Uint8Array} credentialsRecordUid - * @memberof Router.ConnectionParameters + * @memberof PAM.PAMRotateRequest * @instance */ - ConnectionParameters.prototype.credentialsRecordUid = $util.newBuffer([]); + PAMRotateRequest.prototype.recordUid = $util.newBuffer([]); /** - * Creates a new ConnectionParameters instance using the specified properties. + * Creates a new PAMRotateRequest instance using the specified properties. * @function create - * @memberof Router.ConnectionParameters + * @memberof PAM.PAMRotateRequest * @static - * @param {Router.IConnectionParameters=} [properties] Properties to set - * @returns {Router.ConnectionParameters} ConnectionParameters instance + * @param {PAM.IPAMRotateRequest=} [properties] Properties to set + * @returns {PAM.PAMRotateRequest} PAMRotateRequest instance */ - ConnectionParameters.create = function create(properties) { - return new ConnectionParameters(properties); + PAMRotateRequest.create = function create(properties) { + return new PAMRotateRequest(properties); }; /** - * Encodes the specified ConnectionParameters message. Does not implicitly {@link Router.ConnectionParameters.verify|verify} messages. + * Encodes the specified PAMRotateRequest message. Does not implicitly {@link PAM.PAMRotateRequest.verify|verify} messages. * @function encode - * @memberof Router.ConnectionParameters + * @memberof PAM.PAMRotateRequest * @static - * @param {Router.IConnectionParameters} message ConnectionParameters message or plain object to encode + * @param {PAM.IPAMRotateRequest} message PAMRotateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionParameters.encode = function encode(message, writer) { + PAMRotateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connectionUid != null && Object.hasOwnProperty.call(message, "connectionUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.connectionUid); + if (message.requestUid != null && Object.hasOwnProperty.call(message, "requestUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.requestUid); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.userId); - if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.controllerUid); - if (message.credentialsRecordUid != null && Object.hasOwnProperty.call(message, "credentialsRecordUid")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.credentialsRecordUid); return writer; }; /** - * Encodes the specified ConnectionParameters message, length delimited. Does not implicitly {@link Router.ConnectionParameters.verify|verify} messages. + * Encodes the specified PAMRotateRequest message, length delimited. Does not implicitly {@link PAM.PAMRotateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Router.ConnectionParameters + * @memberof PAM.PAMRotateRequest * @static - * @param {Router.IConnectionParameters} message ConnectionParameters message or plain object to encode + * @param {PAM.IPAMRotateRequest} message PAMRotateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionParameters.encodeDelimited = function encodeDelimited(message, writer) { + PAMRotateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConnectionParameters message from the specified reader or buffer. + * Decodes a PAMRotateRequest message from the specified reader or buffer. * @function decode - * @memberof Router.ConnectionParameters + * @memberof PAM.PAMRotateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.ConnectionParameters} ConnectionParameters + * @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 */ - ConnectionParameters.decode = function decode(reader, length) { + PAMRotateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.ConnectionParameters(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRotateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.connectionUid = reader.bytes(); + message.requestUid = reader.bytes(); break; } case 2: { message.recordUid = reader.bytes(); break; } - case 3: { - message.userId = reader.int32(); - break; - } - case 4: { - message.controllerUid = reader.bytes(); - break; - } - case 5: { - message.credentialsRecordUid = reader.bytes(); - break; - } default: reader.skipType(tag & 7); break; @@ -252109,107 +283611,86 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a ConnectionParameters message from the specified reader or buffer, length delimited. + * Decodes a PAMRotateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.ConnectionParameters + * @memberof PAM.PAMRotateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.ConnectionParameters} ConnectionParameters + * @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 */ - ConnectionParameters.decodeDelimited = function decodeDelimited(reader) { + PAMRotateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConnectionParameters message. + * Verifies a PAMRotateRequest message. * @function verify - * @memberof Router.ConnectionParameters + * @memberof PAM.PAMRotateRequest * @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) { + PAMRotateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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.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"; - 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. + * Creates a PAMRotateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.ConnectionParameters + * @memberof PAM.PAMRotateRequest * @static * @param {Object.} object Plain object - * @returns {Router.ConnectionParameters} ConnectionParameters + * @returns {PAM.PAMRotateRequest} PAMRotateRequest */ - ConnectionParameters.fromObject = function fromObject(object) { - if (object instanceof $root.Router.ConnectionParameters) + PAMRotateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMRotateRequest) return object; - let message = new $root.Router.ConnectionParameters(); - if (object.connectionUid != null) - if (typeof object.connectionUid === "string") - $util.base64.decode(object.connectionUid, message.connectionUid = $util.newBuffer($util.base64.length(object.connectionUid)), 0); - else if (object.connectionUid.length >= 0) - message.connectionUid = object.connectionUid; + let message = new $root.PAM.PAMRotateRequest(); + if (object.requestUid != null) + if (typeof object.requestUid === "string") + $util.base64.decode(object.requestUid, message.requestUid = $util.newBuffer($util.base64.length(object.requestUid)), 0); + else if (object.requestUid.length >= 0) + message.requestUid = object.requestUid; if (object.recordUid != null) if (typeof object.recordUid === "string") $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); else if (object.recordUid.length >= 0) message.recordUid = object.recordUid; - if (object.userId != null) - message.userId = object.userId | 0; - if (object.controllerUid != null) - if (typeof object.controllerUid === "string") - $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); - else if (object.controllerUid.length >= 0) - message.controllerUid = object.controllerUid; - if (object.credentialsRecordUid != null) - if (typeof object.credentialsRecordUid === "string") - $util.base64.decode(object.credentialsRecordUid, message.credentialsRecordUid = $util.newBuffer($util.base64.length(object.credentialsRecordUid)), 0); - else if (object.credentialsRecordUid.length >= 0) - message.credentialsRecordUid = object.credentialsRecordUid; return message; }; /** - * Creates a plain object from a ConnectionParameters message. Also converts values to other types if specified. + * Creates a plain object from a PAMRotateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Router.ConnectionParameters + * @memberof PAM.PAMRotateRequest * @static - * @param {Router.ConnectionParameters} message ConnectionParameters + * @param {PAM.PAMRotateRequest} message PAMRotateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConnectionParameters.toObject = function toObject(message, options) { + PAMRotateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { if (options.bytes === String) - object.connectionUid = ""; + object.requestUid = ""; else { - object.connectionUid = []; + object.requestUid = []; if (options.bytes !== Array) - object.connectionUid = $util.newBuffer(object.connectionUid); + object.requestUid = $util.newBuffer(object.requestUid); } if (options.bytes === String) object.recordUid = ""; @@ -252218,83 +283699,62 @@ export const Router = $root.Router = (() => { if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - object.userId = 0; - if (options.bytes === String) - object.controllerUid = ""; - else { - object.controllerUid = []; - if (options.bytes !== Array) - object.controllerUid = $util.newBuffer(object.controllerUid); - } - if (options.bytes === String) - object.credentialsRecordUid = ""; - else { - object.credentialsRecordUid = []; - if (options.bytes !== Array) - object.credentialsRecordUid = $util.newBuffer(object.credentialsRecordUid); - } } - if (message.connectionUid != null && message.hasOwnProperty("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.requestUid != null && message.hasOwnProperty("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")) 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")) - object.userId = message.userId; - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) - object.controllerUid = options.bytes === String ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUid) : message.controllerUid; - if (message.credentialsRecordUid != null && message.hasOwnProperty("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; }; /** - * Converts this ConnectionParameters to JSON. + * Converts this PAMRotateRequest to JSON. * @function toJSON - * @memberof Router.ConnectionParameters + * @memberof PAM.PAMRotateRequest * @instance * @returns {Object.} JSON object */ - ConnectionParameters.prototype.toJSON = function toJSON() { + PAMRotateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ConnectionParameters + * Gets the default type url for PAMRotateRequest * @function getTypeUrl - * @memberof Router.ConnectionParameters + * @memberof PAM.PAMRotateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ConnectionParameters.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMRotateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.ConnectionParameters"; + return typeUrlPrefix + "/PAM.PAMRotateRequest"; }; - return ConnectionParameters; + return PAMRotateRequest; })(); - Router.ValidateConnectionsRequest = (function() { + PAM.PAMControllersResponse = (function() { /** - * Properties of a ValidateConnectionsRequest. - * @memberof Router - * @interface IValidateConnectionsRequest - * @property {Array.|null} [connections] ValidateConnectionsRequest connections + * Properties of a PAMControllersResponse. + * @memberof PAM + * @interface IPAMControllersResponse + * @property {Array.|null} [controllers] PAMControllersResponse controllers */ /** - * Constructs a new ValidateConnectionsRequest. - * @memberof Router - * @classdesc Represents a ValidateConnectionsRequest. - * @implements IValidateConnectionsRequest + * Constructs a new PAMControllersResponse. + * @memberof PAM + * @classdesc Represents a PAMControllersResponse. + * @implements IPAMControllersResponse * @constructor - * @param {Router.IValidateConnectionsRequest=} [properties] Properties to set + * @param {PAM.IPAMControllersResponse=} [properties] Properties to set */ - function ValidateConnectionsRequest(properties) { - this.connections = []; + function PAMControllersResponse(properties) { + this.controllers = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -252302,78 +283762,78 @@ export const Router = $root.Router = (() => { } /** - * ValidateConnectionsRequest connections. - * @member {Array.} connections - * @memberof Router.ValidateConnectionsRequest + * PAMControllersResponse controllers. + * @member {Array.} controllers + * @memberof PAM.PAMControllersResponse * @instance */ - ValidateConnectionsRequest.prototype.connections = $util.emptyArray; + PAMControllersResponse.prototype.controllers = $util.emptyArray; /** - * Creates a new ValidateConnectionsRequest instance using the specified properties. + * Creates a new PAMControllersResponse instance using the specified properties. * @function create - * @memberof Router.ValidateConnectionsRequest + * @memberof PAM.PAMControllersResponse * @static - * @param {Router.IValidateConnectionsRequest=} [properties] Properties to set - * @returns {Router.ValidateConnectionsRequest} ValidateConnectionsRequest instance + * @param {PAM.IPAMControllersResponse=} [properties] Properties to set + * @returns {PAM.PAMControllersResponse} PAMControllersResponse instance */ - ValidateConnectionsRequest.create = function create(properties) { - return new ValidateConnectionsRequest(properties); + PAMControllersResponse.create = function create(properties) { + return new PAMControllersResponse(properties); }; /** - * Encodes the specified ValidateConnectionsRequest message. Does not implicitly {@link Router.ValidateConnectionsRequest.verify|verify} messages. + * Encodes the specified PAMControllersResponse message. Does not implicitly {@link PAM.PAMControllersResponse.verify|verify} messages. * @function encode - * @memberof Router.ValidateConnectionsRequest + * @memberof PAM.PAMControllersResponse * @static - * @param {Router.IValidateConnectionsRequest} message ValidateConnectionsRequest message or plain object to encode + * @param {PAM.IPAMControllersResponse} message PAMControllersResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateConnectionsRequest.encode = function encode(message, writer) { + PAMControllersResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connections != null && message.connections.length) - for (let i = 0; i < message.connections.length; ++i) - $root.Router.ConnectionParameters.encode(message.connections[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.controllers != null && message.controllers.length) + for (let i = 0; i < message.controllers.length; ++i) + $root.PAM.PAMController.encode(message.controllers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ValidateConnectionsRequest message, length delimited. Does not implicitly {@link Router.ValidateConnectionsRequest.verify|verify} messages. + * Encodes the specified PAMControllersResponse message, length delimited. Does not implicitly {@link PAM.PAMControllersResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Router.ValidateConnectionsRequest + * @memberof PAM.PAMControllersResponse * @static - * @param {Router.IValidateConnectionsRequest} message ValidateConnectionsRequest message or plain object to encode + * @param {PAM.IPAMControllersResponse} message PAMControllersResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateConnectionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + PAMControllersResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateConnectionsRequest message from the specified reader or buffer. + * Decodes a PAMControllersResponse message from the specified reader or buffer. * @function decode - * @memberof Router.ValidateConnectionsRequest + * @memberof PAM.PAMControllersResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.ValidateConnectionsRequest} ValidateConnectionsRequest + * @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 */ - ValidateConnectionsRequest.decode = function decode(reader, length) { + PAMControllersResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.ValidateConnectionsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMControllersResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.connections && message.connections.length)) - message.connections = []; - message.connections.push($root.Router.ConnectionParameters.decode(reader, reader.uint32())); + if (!(message.controllers && message.controllers.length)) + message.controllers = []; + message.controllers.push($root.PAM.PAMController.decode(reader, reader.uint32())); break; } default: @@ -252385,140 +283845,140 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a ValidateConnectionsRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMControllersResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.ValidateConnectionsRequest + * @memberof PAM.PAMControllersResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.ValidateConnectionsRequest} ValidateConnectionsRequest + * @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 */ - ValidateConnectionsRequest.decodeDelimited = function decodeDelimited(reader) { + PAMControllersResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateConnectionsRequest message. + * Verifies a PAMControllersResponse message. * @function verify - * @memberof Router.ValidateConnectionsRequest + * @memberof PAM.PAMControllersResponse * @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) { + PAMControllersResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.Router.ConnectionParameters.verify(message.connections[i]); + 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]); if (error) - return "connections." + error; + return "controllers." + error; } } return null; }; /** - * Creates a ValidateConnectionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMControllersResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.ValidateConnectionsRequest + * @memberof PAM.PAMControllersResponse * @static * @param {Object.} object Plain object - * @returns {Router.ValidateConnectionsRequest} ValidateConnectionsRequest + * @returns {PAM.PAMControllersResponse} PAMControllersResponse */ - ValidateConnectionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Router.ValidateConnectionsRequest) + PAMControllersResponse.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMControllersResponse) return object; - let message = new $root.Router.ValidateConnectionsRequest(); - if (object.connections) { - if (!Array.isArray(object.connections)) - throw TypeError(".Router.ValidateConnectionsRequest.connections: array expected"); - message.connections = []; - for (let i = 0; i < object.connections.length; ++i) { - if (typeof object.connections[i] !== "object") - throw TypeError(".Router.ValidateConnectionsRequest.connections: object expected"); - message.connections[i] = $root.Router.ConnectionParameters.fromObject(object.connections[i]); + let message = new $root.PAM.PAMControllersResponse(); + if (object.controllers) { + if (!Array.isArray(object.controllers)) + throw TypeError(".PAM.PAMControllersResponse.controllers: array expected"); + message.controllers = []; + for (let i = 0; i < object.controllers.length; ++i) { + if (typeof object.controllers[i] !== "object") + throw TypeError(".PAM.PAMControllersResponse.controllers: object expected"); + message.controllers[i] = $root.PAM.PAMController.fromObject(object.controllers[i]); } } return message; }; /** - * Creates a plain object from a ValidateConnectionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a PAMControllersResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Router.ValidateConnectionsRequest + * @memberof PAM.PAMControllersResponse * @static - * @param {Router.ValidateConnectionsRequest} message ValidateConnectionsRequest + * @param {PAM.PAMControllersResponse} message PAMControllersResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateConnectionsRequest.toObject = function toObject(message, options) { + PAMControllersResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.connections = []; - if (message.connections && message.connections.length) { - object.connections = []; - for (let j = 0; j < message.connections.length; ++j) - object.connections[j] = $root.Router.ConnectionParameters.toObject(message.connections[j], options); + object.controllers = []; + if (message.controllers && message.controllers.length) { + object.controllers = []; + for (let j = 0; j < message.controllers.length; ++j) + object.controllers[j] = $root.PAM.PAMController.toObject(message.controllers[j], options); } return object; }; /** - * Converts this ValidateConnectionsRequest to JSON. + * Converts this PAMControllersResponse to JSON. * @function toJSON - * @memberof Router.ValidateConnectionsRequest + * @memberof PAM.PAMControllersResponse * @instance * @returns {Object.} JSON object */ - ValidateConnectionsRequest.prototype.toJSON = function toJSON() { + PAMControllersResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateConnectionsRequest + * Gets the default type url for PAMControllersResponse * @function getTypeUrl - * @memberof Router.ValidateConnectionsRequest + * @memberof PAM.PAMControllersResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateConnectionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMControllersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.ValidateConnectionsRequest"; + return typeUrlPrefix + "/PAM.PAMControllersResponse"; }; - return ValidateConnectionsRequest; + return PAMControllersResponse; })(); - Router.ConnectionValidationFailure = (function() { + PAM.PAMRemoveController = (function() { /** - * Properties of a ConnectionValidationFailure. - * @memberof Router - * @interface IConnectionValidationFailure - * @property {Uint8Array|null} [connectionUid] ConnectionValidationFailure connectionUid - * @property {string|null} [errorMessage] ConnectionValidationFailure errorMessage + * Properties of a PAMRemoveController. + * @memberof PAM + * @interface IPAMRemoveController + * @property {Uint8Array|null} [controllerUid] PAMRemoveController controllerUid + * @property {string|null} [message] PAMRemoveController message */ /** - * Constructs a new ConnectionValidationFailure. - * @memberof Router - * @classdesc Represents a ConnectionValidationFailure. - * @implements IConnectionValidationFailure + * Constructs a new PAMRemoveController. + * @memberof PAM + * @classdesc Represents a PAMRemoveController. + * @implements IPAMRemoveController * @constructor - * @param {Router.IConnectionValidationFailure=} [properties] Properties to set + * @param {PAM.IPAMRemoveController=} [properties] Properties to set */ - function ConnectionValidationFailure(properties) { + function PAMRemoveController(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -252526,89 +283986,89 @@ export const Router = $root.Router = (() => { } /** - * ConnectionValidationFailure connectionUid. - * @member {Uint8Array} connectionUid - * @memberof Router.ConnectionValidationFailure + * PAMRemoveController controllerUid. + * @member {Uint8Array} controllerUid + * @memberof PAM.PAMRemoveController * @instance */ - ConnectionValidationFailure.prototype.connectionUid = $util.newBuffer([]); + PAMRemoveController.prototype.controllerUid = $util.newBuffer([]); /** - * ConnectionValidationFailure errorMessage. - * @member {string} errorMessage - * @memberof Router.ConnectionValidationFailure + * PAMRemoveController message. + * @member {string} message + * @memberof PAM.PAMRemoveController * @instance */ - ConnectionValidationFailure.prototype.errorMessage = ""; + PAMRemoveController.prototype.message = ""; /** - * Creates a new ConnectionValidationFailure instance using the specified properties. + * Creates a new PAMRemoveController instance using the specified properties. * @function create - * @memberof Router.ConnectionValidationFailure + * @memberof PAM.PAMRemoveController * @static - * @param {Router.IConnectionValidationFailure=} [properties] Properties to set - * @returns {Router.ConnectionValidationFailure} ConnectionValidationFailure instance + * @param {PAM.IPAMRemoveController=} [properties] Properties to set + * @returns {PAM.PAMRemoveController} PAMRemoveController instance */ - ConnectionValidationFailure.create = function create(properties) { - return new ConnectionValidationFailure(properties); + PAMRemoveController.create = function create(properties) { + return new PAMRemoveController(properties); }; /** - * Encodes the specified ConnectionValidationFailure message. Does not implicitly {@link Router.ConnectionValidationFailure.verify|verify} messages. + * Encodes the specified PAMRemoveController message. Does not implicitly {@link PAM.PAMRemoveController.verify|verify} messages. * @function encode - * @memberof Router.ConnectionValidationFailure + * @memberof PAM.PAMRemoveController * @static - * @param {Router.IConnectionValidationFailure} message ConnectionValidationFailure message or plain object to encode + * @param {PAM.IPAMRemoveController} message PAMRemoveController message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionValidationFailure.encode = function encode(message, writer) { + PAMRemoveController.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connectionUid != null && Object.hasOwnProperty.call(message, "connectionUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.connectionUid); - if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.errorMessage); + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.controllerUid); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); return writer; }; /** - * Encodes the specified ConnectionValidationFailure message, length delimited. Does not implicitly {@link Router.ConnectionValidationFailure.verify|verify} messages. + * Encodes the specified PAMRemoveController message, length delimited. Does not implicitly {@link PAM.PAMRemoveController.verify|verify} messages. * @function encodeDelimited - * @memberof Router.ConnectionValidationFailure + * @memberof PAM.PAMRemoveController * @static - * @param {Router.IConnectionValidationFailure} message ConnectionValidationFailure message or plain object to encode + * @param {PAM.IPAMRemoveController} message PAMRemoveController message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionValidationFailure.encodeDelimited = function encodeDelimited(message, writer) { + PAMRemoveController.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConnectionValidationFailure message from the specified reader or buffer. + * Decodes a PAMRemoveController message from the specified reader or buffer. * @function decode - * @memberof Router.ConnectionValidationFailure + * @memberof PAM.PAMRemoveController * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.ConnectionValidationFailure} ConnectionValidationFailure + * @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 */ - ConnectionValidationFailure.decode = function decode(reader, length) { + PAMRemoveController.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.ConnectionValidationFailure(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRemoveController(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.connectionUid = reader.bytes(); + message.controllerUid = reader.bytes(); break; } case 2: { - message.errorMessage = reader.string(); + message.message = reader.string(); break; } default: @@ -252620,141 +284080,141 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a ConnectionValidationFailure message from the specified reader or buffer, length delimited. + * Decodes a PAMRemoveController message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.ConnectionValidationFailure + * @memberof PAM.PAMRemoveController * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.ConnectionValidationFailure} ConnectionValidationFailure + * @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 */ - ConnectionValidationFailure.decodeDelimited = function decodeDelimited(reader) { + PAMRemoveController.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConnectionValidationFailure message. + * Verifies a PAMRemoveController message. * @function verify - * @memberof Router.ConnectionValidationFailure + * @memberof PAM.PAMRemoveController * @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) { + PAMRemoveController.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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 ConnectionValidationFailure message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRemoveController message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.ConnectionValidationFailure + * @memberof PAM.PAMRemoveController * @static * @param {Object.} object Plain object - * @returns {Router.ConnectionValidationFailure} ConnectionValidationFailure + * @returns {PAM.PAMRemoveController} PAMRemoveController */ - ConnectionValidationFailure.fromObject = function fromObject(object) { - if (object instanceof $root.Router.ConnectionValidationFailure) + PAMRemoveController.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMRemoveController) return object; - let message = new $root.Router.ConnectionValidationFailure(); - if (object.connectionUid != null) - if (typeof object.connectionUid === "string") - $util.base64.decode(object.connectionUid, message.connectionUid = $util.newBuffer($util.base64.length(object.connectionUid)), 0); - else if (object.connectionUid.length >= 0) - message.connectionUid = object.connectionUid; - if (object.errorMessage != null) - message.errorMessage = String(object.errorMessage); + let message = new $root.PAM.PAMRemoveController(); + if (object.controllerUid != null) + if (typeof object.controllerUid === "string") + $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); + else if (object.controllerUid.length >= 0) + message.controllerUid = object.controllerUid; + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a ConnectionValidationFailure message. Also converts values to other types if specified. + * Creates a plain object from a PAMRemoveController message. Also converts values to other types if specified. * @function toObject - * @memberof Router.ConnectionValidationFailure + * @memberof PAM.PAMRemoveController * @static - * @param {Router.ConnectionValidationFailure} message ConnectionValidationFailure + * @param {PAM.PAMRemoveController} message PAMRemoveController * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConnectionValidationFailure.toObject = function toObject(message, options) { + PAMRemoveController.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { if (options.bytes === String) - object.connectionUid = ""; + object.controllerUid = ""; else { - object.connectionUid = []; + object.controllerUid = []; if (options.bytes !== Array) - object.connectionUid = $util.newBuffer(object.connectionUid); + object.controllerUid = $util.newBuffer(object.controllerUid); } - object.errorMessage = ""; + object.message = ""; } - if (message.connectionUid != null && message.hasOwnProperty("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")) - object.errorMessage = message.errorMessage; + if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) + object.controllerUid = options.bytes === String ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUid) : message.controllerUid; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; return object; }; /** - * Converts this ConnectionValidationFailure to JSON. + * Converts this PAMRemoveController to JSON. * @function toJSON - * @memberof Router.ConnectionValidationFailure + * @memberof PAM.PAMRemoveController * @instance * @returns {Object.} JSON object */ - ConnectionValidationFailure.prototype.toJSON = function toJSON() { + PAMRemoveController.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ConnectionValidationFailure + * Gets the default type url for PAMRemoveController * @function getTypeUrl - * @memberof Router.ConnectionValidationFailure + * @memberof PAM.PAMRemoveController * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ConnectionValidationFailure.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMRemoveController.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.ConnectionValidationFailure"; + return typeUrlPrefix + "/PAM.PAMRemoveController"; }; - return ConnectionValidationFailure; + return PAMRemoveController; })(); - Router.ValidateConnectionsResponse = (function() { + PAM.PAMRemoveControllerResponse = (function() { /** - * Properties of a ValidateConnectionsResponse. - * @memberof Router - * @interface IValidateConnectionsResponse - * @property {Array.|null} [failedConnections] ValidateConnectionsResponse failedConnections + * Properties of a PAMRemoveControllerResponse. + * @memberof PAM + * @interface IPAMRemoveControllerResponse + * @property {Array.|null} [controllers] PAMRemoveControllerResponse controllers */ /** - * Constructs a new ValidateConnectionsResponse. - * @memberof Router - * @classdesc Represents a ValidateConnectionsResponse. - * @implements IValidateConnectionsResponse + * Constructs a new PAMRemoveControllerResponse. + * @memberof PAM + * @classdesc Represents a PAMRemoveControllerResponse. + * @implements IPAMRemoveControllerResponse * @constructor - * @param {Router.IValidateConnectionsResponse=} [properties] Properties to set + * @param {PAM.IPAMRemoveControllerResponse=} [properties] Properties to set */ - function ValidateConnectionsResponse(properties) { - this.failedConnections = []; + function PAMRemoveControllerResponse(properties) { + this.controllers = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -252762,78 +284222,78 @@ export const Router = $root.Router = (() => { } /** - * ValidateConnectionsResponse failedConnections. - * @member {Array.} failedConnections - * @memberof Router.ValidateConnectionsResponse + * PAMRemoveControllerResponse controllers. + * @member {Array.} controllers + * @memberof PAM.PAMRemoveControllerResponse * @instance */ - ValidateConnectionsResponse.prototype.failedConnections = $util.emptyArray; + PAMRemoveControllerResponse.prototype.controllers = $util.emptyArray; /** - * Creates a new ValidateConnectionsResponse instance using the specified properties. + * Creates a new PAMRemoveControllerResponse instance using the specified properties. * @function create - * @memberof Router.ValidateConnectionsResponse + * @memberof PAM.PAMRemoveControllerResponse * @static - * @param {Router.IValidateConnectionsResponse=} [properties] Properties to set - * @returns {Router.ValidateConnectionsResponse} ValidateConnectionsResponse instance + * @param {PAM.IPAMRemoveControllerResponse=} [properties] Properties to set + * @returns {PAM.PAMRemoveControllerResponse} PAMRemoveControllerResponse instance */ - ValidateConnectionsResponse.create = function create(properties) { - return new ValidateConnectionsResponse(properties); + PAMRemoveControllerResponse.create = function create(properties) { + return new PAMRemoveControllerResponse(properties); }; /** - * Encodes the specified ValidateConnectionsResponse message. Does not implicitly {@link Router.ValidateConnectionsResponse.verify|verify} messages. + * Encodes the specified PAMRemoveControllerResponse message. Does not implicitly {@link PAM.PAMRemoveControllerResponse.verify|verify} messages. * @function encode - * @memberof Router.ValidateConnectionsResponse + * @memberof PAM.PAMRemoveControllerResponse * @static - * @param {Router.IValidateConnectionsResponse} message ValidateConnectionsResponse message or plain object to encode + * @param {PAM.IPAMRemoveControllerResponse} message PAMRemoveControllerResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateConnectionsResponse.encode = function encode(message, writer) { + PAMRemoveControllerResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.failedConnections != null && message.failedConnections.length) - for (let i = 0; i < message.failedConnections.length; ++i) - $root.Router.ConnectionValidationFailure.encode(message.failedConnections[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.controllers != null && message.controllers.length) + for (let i = 0; i < message.controllers.length; ++i) + $root.PAM.PAMRemoveController.encode(message.controllers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ValidateConnectionsResponse message, length delimited. Does not implicitly {@link Router.ValidateConnectionsResponse.verify|verify} messages. + * Encodes the specified PAMRemoveControllerResponse message, length delimited. Does not implicitly {@link PAM.PAMRemoveControllerResponse.verify|verify} messages. * @function encodeDelimited - * @memberof Router.ValidateConnectionsResponse + * @memberof PAM.PAMRemoveControllerResponse * @static - * @param {Router.IValidateConnectionsResponse} message ValidateConnectionsResponse message or plain object to encode + * @param {PAM.IPAMRemoveControllerResponse} message PAMRemoveControllerResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateConnectionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + PAMRemoveControllerResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateConnectionsResponse message from the specified reader or buffer. + * Decodes a PAMRemoveControllerResponse message from the specified reader or buffer. * @function decode - * @memberof Router.ValidateConnectionsResponse + * @memberof PAM.PAMRemoveControllerResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.ValidateConnectionsResponse} ValidateConnectionsResponse + * @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 */ - ValidateConnectionsResponse.decode = function decode(reader, length) { + PAMRemoveControllerResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.ValidateConnectionsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRemoveControllerResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.failedConnections && message.failedConnections.length)) - message.failedConnections = []; - message.failedConnections.push($root.Router.ConnectionValidationFailure.decode(reader, reader.uint32())); + if (!(message.controllers && message.controllers.length)) + message.controllers = []; + message.controllers.push($root.PAM.PAMRemoveController.decode(reader, reader.uint32())); break; } default: @@ -252845,139 +284305,140 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a ValidateConnectionsResponse message from the specified reader or buffer, length delimited. + * Decodes a PAMRemoveControllerResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.ValidateConnectionsResponse + * @memberof PAM.PAMRemoveControllerResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.ValidateConnectionsResponse} ValidateConnectionsResponse + * @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 */ - ValidateConnectionsResponse.decodeDelimited = function decodeDelimited(reader) { + PAMRemoveControllerResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateConnectionsResponse message. + * Verifies a PAMRemoveControllerResponse message. * @function verify - * @memberof Router.ValidateConnectionsResponse + * @memberof PAM.PAMRemoveControllerResponse * @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) { + PAMRemoveControllerResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); + 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]); if (error) - return "failedConnections." + error; + return "controllers." + error; } } return null; }; /** - * Creates a ValidateConnectionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRemoveControllerResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.ValidateConnectionsResponse + * @memberof PAM.PAMRemoveControllerResponse * @static * @param {Object.} object Plain object - * @returns {Router.ValidateConnectionsResponse} ValidateConnectionsResponse + * @returns {PAM.PAMRemoveControllerResponse} PAMRemoveControllerResponse */ - ValidateConnectionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Router.ValidateConnectionsResponse) + PAMRemoveControllerResponse.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMRemoveControllerResponse) return object; - let message = new $root.Router.ValidateConnectionsResponse(); - if (object.failedConnections) { - if (!Array.isArray(object.failedConnections)) - throw TypeError(".Router.ValidateConnectionsResponse.failedConnections: array expected"); - message.failedConnections = []; - for (let i = 0; i < object.failedConnections.length; ++i) { - if (typeof object.failedConnections[i] !== "object") - throw TypeError(".Router.ValidateConnectionsResponse.failedConnections: object expected"); - message.failedConnections[i] = $root.Router.ConnectionValidationFailure.fromObject(object.failedConnections[i]); + let message = new $root.PAM.PAMRemoveControllerResponse(); + if (object.controllers) { + if (!Array.isArray(object.controllers)) + throw TypeError(".PAM.PAMRemoveControllerResponse.controllers: array expected"); + message.controllers = []; + for (let i = 0; i < object.controllers.length; ++i) { + if (typeof object.controllers[i] !== "object") + throw TypeError(".PAM.PAMRemoveControllerResponse.controllers: object expected"); + message.controllers[i] = $root.PAM.PAMRemoveController.fromObject(object.controllers[i]); } } return message; }; /** - * Creates a plain object from a ValidateConnectionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a PAMRemoveControllerResponse message. Also converts values to other types if specified. * @function toObject - * @memberof Router.ValidateConnectionsResponse + * @memberof PAM.PAMRemoveControllerResponse * @static - * @param {Router.ValidateConnectionsResponse} message ValidateConnectionsResponse + * @param {PAM.PAMRemoveControllerResponse} message PAMRemoveControllerResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateConnectionsResponse.toObject = function toObject(message, options) { + PAMRemoveControllerResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.failedConnections = []; - if (message.failedConnections && message.failedConnections.length) { - object.failedConnections = []; - for (let j = 0; j < message.failedConnections.length; ++j) - object.failedConnections[j] = $root.Router.ConnectionValidationFailure.toObject(message.failedConnections[j], options); + object.controllers = []; + if (message.controllers && message.controllers.length) { + object.controllers = []; + for (let j = 0; j < message.controllers.length; ++j) + object.controllers[j] = $root.PAM.PAMRemoveController.toObject(message.controllers[j], options); } return object; }; /** - * Converts this ValidateConnectionsResponse to JSON. + * Converts this PAMRemoveControllerResponse to JSON. * @function toJSON - * @memberof Router.ValidateConnectionsResponse + * @memberof PAM.PAMRemoveControllerResponse * @instance * @returns {Object.} JSON object */ - ValidateConnectionsResponse.prototype.toJSON = function toJSON() { + PAMRemoveControllerResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateConnectionsResponse + * Gets the default type url for PAMRemoveControllerResponse * @function getTypeUrl - * @memberof Router.ValidateConnectionsResponse + * @memberof PAM.PAMRemoveControllerResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateConnectionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMRemoveControllerResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.ValidateConnectionsResponse"; + return typeUrlPrefix + "/PAM.PAMRemoveControllerResponse"; }; - return ValidateConnectionsResponse; + return PAMRemoveControllerResponse; })(); - Router.GetEnforcementRequest = (function() { + PAM.PAMModifyRequest = (function() { /** - * Properties of a GetEnforcementRequest. - * @memberof Router - * @interface IGetEnforcementRequest - * @property {number|Long|null} [enterpriseUserId] GetEnforcementRequest enterpriseUserId + * Properties of a PAMModifyRequest. + * @memberof PAM + * @interface IPAMModifyRequest + * @property {Array.|null} [operations] PAMModifyRequest operations */ /** - * Constructs a new GetEnforcementRequest. - * @memberof Router - * @classdesc Represents a GetEnforcementRequest. - * @implements IGetEnforcementRequest + * Constructs a new PAMModifyRequest. + * @memberof PAM + * @classdesc Represents a PAMModifyRequest. + * @implements IPAMModifyRequest * @constructor - * @param {Router.IGetEnforcementRequest=} [properties] Properties to set + * @param {PAM.IPAMModifyRequest=} [properties] Properties to set */ - function GetEnforcementRequest(properties) { + function PAMModifyRequest(properties) { + this.operations = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -252985,75 +284446,78 @@ export const Router = $root.Router = (() => { } /** - * GetEnforcementRequest enterpriseUserId. - * @member {number|Long} enterpriseUserId - * @memberof Router.GetEnforcementRequest + * PAMModifyRequest operations. + * @member {Array.} operations + * @memberof PAM.PAMModifyRequest * @instance */ - GetEnforcementRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + PAMModifyRequest.prototype.operations = $util.emptyArray; /** - * Creates a new GetEnforcementRequest instance using the specified properties. + * Creates a new PAMModifyRequest instance using the specified properties. * @function create - * @memberof Router.GetEnforcementRequest + * @memberof PAM.PAMModifyRequest * @static - * @param {Router.IGetEnforcementRequest=} [properties] Properties to set - * @returns {Router.GetEnforcementRequest} GetEnforcementRequest instance + * @param {PAM.IPAMModifyRequest=} [properties] Properties to set + * @returns {PAM.PAMModifyRequest} PAMModifyRequest instance */ - GetEnforcementRequest.create = function create(properties) { - return new GetEnforcementRequest(properties); + PAMModifyRequest.create = function create(properties) { + return new PAMModifyRequest(properties); }; /** - * Encodes the specified GetEnforcementRequest message. Does not implicitly {@link Router.GetEnforcementRequest.verify|verify} messages. + * Encodes the specified PAMModifyRequest message. Does not implicitly {@link PAM.PAMModifyRequest.verify|verify} messages. * @function encode - * @memberof Router.GetEnforcementRequest + * @memberof PAM.PAMModifyRequest * @static - * @param {Router.IGetEnforcementRequest} message GetEnforcementRequest message or plain object to encode + * @param {PAM.IPAMModifyRequest} message PAMModifyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnforcementRequest.encode = function encode(message, writer) { + PAMModifyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); + if (message.operations != null && message.operations.length) + for (let i = 0; i < message.operations.length; ++i) + $root.PAM.PAMDataOperation.encode(message.operations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetEnforcementRequest message, length delimited. Does not implicitly {@link Router.GetEnforcementRequest.verify|verify} messages. + * Encodes the specified PAMModifyRequest message, length delimited. Does not implicitly {@link PAM.PAMModifyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Router.GetEnforcementRequest + * @memberof PAM.PAMModifyRequest * @static - * @param {Router.IGetEnforcementRequest} message GetEnforcementRequest message or plain object to encode + * @param {PAM.IPAMModifyRequest} message PAMModifyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnforcementRequest.encodeDelimited = function encodeDelimited(message, writer) { + PAMModifyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetEnforcementRequest message from the specified reader or buffer. + * Decodes a PAMModifyRequest message from the specified reader or buffer. * @function decode - * @memberof Router.GetEnforcementRequest + * @memberof PAM.PAMModifyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.GetEnforcementRequest} GetEnforcementRequest + * @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 */ - GetEnforcementRequest.decode = function decode(reader, length) { + PAMModifyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.GetEnforcementRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMModifyRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.enterpriseUserId = reader.int64(); + if (!(message.operations && message.operations.length)) + message.operations = []; + message.operations.push($root.PAM.PAMDataOperation.decode(reader, reader.uint32())); break; } default: @@ -253065,137 +284529,141 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a GetEnforcementRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMModifyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.GetEnforcementRequest + * @memberof PAM.PAMModifyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.GetEnforcementRequest} GetEnforcementRequest + * @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 */ - GetEnforcementRequest.decodeDelimited = function decodeDelimited(reader) { + PAMModifyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetEnforcementRequest message. + * Verifies a PAMModifyRequest message. * @function verify - * @memberof Router.GetEnforcementRequest + * @memberof PAM.PAMModifyRequest * @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) { + PAMModifyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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]); + if (error) + return "operations." + error; + } + } return null; }; /** - * Creates a GetEnforcementRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMModifyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.GetEnforcementRequest + * @memberof PAM.PAMModifyRequest * @static * @param {Object.} object Plain object - * @returns {Router.GetEnforcementRequest} GetEnforcementRequest + * @returns {PAM.PAMModifyRequest} PAMModifyRequest */ - GetEnforcementRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Router.GetEnforcementRequest) + PAMModifyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMModifyRequest) return object; - let message = new $root.Router.GetEnforcementRequest(); - if (object.enterpriseUserId != null) - if ($util.Long) - (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") - message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") - message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + let message = new $root.PAM.PAMModifyRequest(); + if (object.operations) { + if (!Array.isArray(object.operations)) + throw TypeError(".PAM.PAMModifyRequest.operations: array expected"); + message.operations = []; + for (let i = 0; i < object.operations.length; ++i) { + if (typeof object.operations[i] !== "object") + throw TypeError(".PAM.PAMModifyRequest.operations: object expected"); + message.operations[i] = $root.PAM.PAMDataOperation.fromObject(object.operations[i]); + } + } return message; }; /** - * Creates a plain object from a GetEnforcementRequest message. Also converts values to other types if specified. + * Creates a plain object from a PAMModifyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Router.GetEnforcementRequest + * @memberof PAM.PAMModifyRequest * @static - * @param {Router.GetEnforcementRequest} message GetEnforcementRequest + * @param {PAM.PAMModifyRequest} message PAMModifyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetEnforcementRequest.toObject = function toObject(message, options) { + PAMModifyRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - 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 (options.arrays || options.defaults) + object.operations = []; + if (message.operations && message.operations.length) { + object.operations = []; + for (let j = 0; j < message.operations.length; ++j) + object.operations[j] = $root.PAM.PAMDataOperation.toObject(message.operations[j], options); + } return object; }; /** - * Converts this GetEnforcementRequest to JSON. + * Converts this PAMModifyRequest to JSON. * @function toJSON - * @memberof Router.GetEnforcementRequest + * @memberof PAM.PAMModifyRequest * @instance * @returns {Object.} JSON object */ - GetEnforcementRequest.prototype.toJSON = function toJSON() { + PAMModifyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetEnforcementRequest + * Gets the default type url for PAMModifyRequest * @function getTypeUrl - * @memberof Router.GetEnforcementRequest + * @memberof PAM.PAMModifyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetEnforcementRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMModifyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.GetEnforcementRequest"; + return typeUrlPrefix + "/PAM.PAMModifyRequest"; }; - return GetEnforcementRequest; + return PAMModifyRequest; })(); - Router.EnforcementType = (function() { + PAM.PAMDataOperation = (function() { /** - * Properties of an EnforcementType. - * @memberof Router - * @interface IEnforcementType - * @property {number|null} [enforcementTypeId] EnforcementType enforcementTypeId - * @property {string|null} [value] EnforcementType value + * Properties of a PAMDataOperation. + * @memberof PAM + * @interface IPAMDataOperation + * @property {PAM.PAMOperationType|null} [operationType] PAMDataOperation operationType + * @property {PAM.IPAMConfigurationData|null} [configuration] PAMDataOperation configuration + * @property {PAM.IPAMElementData|null} [element] PAMDataOperation element */ /** - * Constructs a new EnforcementType. - * @memberof Router - * @classdesc Represents an EnforcementType. - * @implements IEnforcementType + * Constructs a new PAMDataOperation. + * @memberof PAM + * @classdesc Represents a PAMDataOperation. + * @implements IPAMDataOperation * @constructor - * @param {Router.IEnforcementType=} [properties] Properties to set + * @param {PAM.IPAMDataOperation=} [properties] Properties to set */ - function EnforcementType(properties) { + function PAMDataOperation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -253203,89 +284671,103 @@ export const Router = $root.Router = (() => { } /** - * EnforcementType enforcementTypeId. - * @member {number} enforcementTypeId - * @memberof Router.EnforcementType + * PAMDataOperation operationType. + * @member {PAM.PAMOperationType} operationType + * @memberof PAM.PAMDataOperation * @instance */ - EnforcementType.prototype.enforcementTypeId = 0; + PAMDataOperation.prototype.operationType = 0; /** - * EnforcementType value. - * @member {string} value - * @memberof Router.EnforcementType + * PAMDataOperation configuration. + * @member {PAM.IPAMConfigurationData|null|undefined} configuration + * @memberof PAM.PAMDataOperation * @instance */ - EnforcementType.prototype.value = ""; + PAMDataOperation.prototype.configuration = null; /** - * Creates a new EnforcementType instance using the specified properties. + * PAMDataOperation element. + * @member {PAM.IPAMElementData|null|undefined} element + * @memberof PAM.PAMDataOperation + * @instance + */ + PAMDataOperation.prototype.element = null; + + /** + * Creates a new PAMDataOperation instance using the specified properties. * @function create - * @memberof Router.EnforcementType + * @memberof PAM.PAMDataOperation * @static - * @param {Router.IEnforcementType=} [properties] Properties to set - * @returns {Router.EnforcementType} EnforcementType instance + * @param {PAM.IPAMDataOperation=} [properties] Properties to set + * @returns {PAM.PAMDataOperation} PAMDataOperation instance */ - EnforcementType.create = function create(properties) { - return new EnforcementType(properties); + PAMDataOperation.create = function create(properties) { + return new PAMDataOperation(properties); }; /** - * Encodes the specified EnforcementType message. Does not implicitly {@link Router.EnforcementType.verify|verify} messages. + * Encodes the specified PAMDataOperation message. Does not implicitly {@link PAM.PAMDataOperation.verify|verify} messages. * @function encode - * @memberof Router.EnforcementType + * @memberof PAM.PAMDataOperation * @static - * @param {Router.IEnforcementType} message EnforcementType message or plain object to encode + * @param {PAM.IPAMDataOperation} message PAMDataOperation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnforcementType.encode = function encode(message, writer) { + PAMDataOperation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enforcementTypeId != null && Object.hasOwnProperty.call(message, "enforcementTypeId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.enforcementTypeId); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (message.operationType != null && Object.hasOwnProperty.call(message, "operationType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operationType); + if (message.configuration != null && Object.hasOwnProperty.call(message, "configuration")) + $root.PAM.PAMConfigurationData.encode(message.configuration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.element != null && Object.hasOwnProperty.call(message, "element")) + $root.PAM.PAMElementData.encode(message.element, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified EnforcementType message, length delimited. Does not implicitly {@link Router.EnforcementType.verify|verify} messages. + * Encodes the specified PAMDataOperation message, length delimited. Does not implicitly {@link PAM.PAMDataOperation.verify|verify} messages. * @function encodeDelimited - * @memberof Router.EnforcementType + * @memberof PAM.PAMDataOperation * @static - * @param {Router.IEnforcementType} message EnforcementType message or plain object to encode + * @param {PAM.IPAMDataOperation} message PAMDataOperation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnforcementType.encodeDelimited = function encodeDelimited(message, writer) { + PAMDataOperation.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnforcementType message from the specified reader or buffer. + * Decodes a PAMDataOperation message from the specified reader or buffer. * @function decode - * @memberof Router.EnforcementType + * @memberof PAM.PAMDataOperation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.EnforcementType} EnforcementType + * @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 */ - EnforcementType.decode = function decode(reader, length) { + PAMDataOperation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.EnforcementType(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMDataOperation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.enforcementTypeId = reader.int32(); + message.operationType = reader.int32(); break; } case 2: { - message.value = reader.string(); + message.configuration = $root.PAM.PAMConfigurationData.decode(reader, reader.uint32()); + break; + } + case 3: { + message.element = $root.PAM.PAMElementData.decode(reader, reader.uint32()); break; } default: @@ -253297,135 +284779,199 @@ export const Router = $root.Router = (() => { }; /** - * Decodes an EnforcementType message from the specified reader or buffer, length delimited. + * Decodes a PAMDataOperation message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.EnforcementType + * @memberof PAM.PAMDataOperation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.EnforcementType} EnforcementType + * @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 */ - EnforcementType.decodeDelimited = function decodeDelimited(reader) { + PAMDataOperation.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnforcementType message. + * Verifies a PAMDataOperation message. * @function verify - * @memberof Router.EnforcementType + * @memberof PAM.PAMDataOperation * @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) { + PAMDataOperation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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); + if (error) + return "configuration." + error; + } + if (message.element != null && message.hasOwnProperty("element")) { + let error = $root.PAM.PAMElementData.verify(message.element); + if (error) + return "element." + error; + } return null; }; /** - * Creates an EnforcementType message from a plain object. Also converts values to their respective internal types. + * Creates a PAMDataOperation message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.EnforcementType + * @memberof PAM.PAMDataOperation * @static * @param {Object.} object Plain object - * @returns {Router.EnforcementType} EnforcementType + * @returns {PAM.PAMDataOperation} PAMDataOperation */ - EnforcementType.fromObject = function fromObject(object) { - if (object instanceof $root.Router.EnforcementType) + PAMDataOperation.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMDataOperation) return object; - let message = new $root.Router.EnforcementType(); - if (object.enforcementTypeId != null) - message.enforcementTypeId = object.enforcementTypeId | 0; - if (object.value != null) - message.value = String(object.value); + let message = new $root.PAM.PAMDataOperation(); + switch (object.operationType) { + default: + if (typeof object.operationType === "number") { + message.operationType = object.operationType; + break; + } + break; + case "ADD": + case 0: + message.operationType = 0; + break; + case "UPDATE": + case 1: + message.operationType = 1; + break; + case "REPLACE": + case 2: + message.operationType = 2; + break; + case "DELETE": + case 3: + message.operationType = 3; + break; + } + if (object.configuration != null) { + if (typeof object.configuration !== "object") + throw TypeError(".PAM.PAMDataOperation.configuration: object expected"); + message.configuration = $root.PAM.PAMConfigurationData.fromObject(object.configuration); + } + if (object.element != null) { + if (typeof object.element !== "object") + throw TypeError(".PAM.PAMDataOperation.element: object expected"); + message.element = $root.PAM.PAMElementData.fromObject(object.element); + } return message; }; /** - * Creates a plain object from an EnforcementType message. Also converts values to other types if specified. + * Creates a plain object from a PAMDataOperation message. Also converts values to other types if specified. * @function toObject - * @memberof Router.EnforcementType + * @memberof PAM.PAMDataOperation * @static - * @param {Router.EnforcementType} message EnforcementType + * @param {PAM.PAMDataOperation} message PAMDataOperation * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnforcementType.toObject = function toObject(message, options) { + PAMDataOperation.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.enforcementTypeId = 0; - object.value = ""; + object.operationType = options.enums === String ? "ADD" : 0; + object.configuration = null; + object.element = null; } - if (message.enforcementTypeId != null && message.hasOwnProperty("enforcementTypeId")) - object.enforcementTypeId = message.enforcementTypeId; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + if (message.operationType != null && message.hasOwnProperty("operationType")) + object.operationType = options.enums === String ? $root.PAM.PAMOperationType[message.operationType] === undefined ? message.operationType : $root.PAM.PAMOperationType[message.operationType] : message.operationType; + if (message.configuration != null && message.hasOwnProperty("configuration")) + object.configuration = $root.PAM.PAMConfigurationData.toObject(message.configuration, options); + if (message.element != null && message.hasOwnProperty("element")) + object.element = $root.PAM.PAMElementData.toObject(message.element, options); return object; }; /** - * Converts this EnforcementType to JSON. + * Converts this PAMDataOperation to JSON. * @function toJSON - * @memberof Router.EnforcementType + * @memberof PAM.PAMDataOperation * @instance * @returns {Object.} JSON object */ - EnforcementType.prototype.toJSON = function toJSON() { + PAMDataOperation.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EnforcementType + * Gets the default type url for PAMDataOperation * @function getTypeUrl - * @memberof Router.EnforcementType + * @memberof PAM.PAMDataOperation * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EnforcementType.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMDataOperation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.EnforcementType"; + return typeUrlPrefix + "/PAM.PAMDataOperation"; }; - return EnforcementType; + return PAMDataOperation; })(); - Router.GetEnforcementResponse = (function() { + /** + * PAMOperationType enum. + * @name PAM.PAMOperationType + * @enum {number} + * @property {number} ADD=0 ADD value + * @property {number} UPDATE=1 UPDATE value + * @property {number} REPLACE=2 REPLACE value + * @property {number} DELETE=3 DELETE value + */ + PAM.PAMOperationType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ADD"] = 0; + values[valuesById[1] = "UPDATE"] = 1; + values[valuesById[2] = "REPLACE"] = 2; + values[valuesById[3] = "DELETE"] = 3; + return values; + })(); + + PAM.PAMConfigurationData = (function() { /** - * Properties of a GetEnforcementResponse. - * @memberof Router - * @interface IGetEnforcementResponse - * @property {Array.|null} [enforcementTypes] GetEnforcementResponse enforcementTypes - * @property {Array.|null} [addOnIds] GetEnforcementResponse addOnIds - * @property {boolean|null} [isInTrial] GetEnforcementResponse isInTrial + * Properties of a PAMConfigurationData. + * @memberof PAM + * @interface IPAMConfigurationData + * @property {Uint8Array|null} [configurationUid] PAMConfigurationData configurationUid + * @property {number|Long|null} [nodeId] PAMConfigurationData nodeId + * @property {Uint8Array|null} [controllerUid] PAMConfigurationData controllerUid + * @property {Uint8Array|null} [data] PAMConfigurationData data */ /** - * Constructs a new GetEnforcementResponse. - * @memberof Router - * @classdesc Represents a GetEnforcementResponse. - * @implements IGetEnforcementResponse + * Constructs a new PAMConfigurationData. + * @memberof PAM + * @classdesc Represents a PAMConfigurationData. + * @implements IPAMConfigurationData * @constructor - * @param {Router.IGetEnforcementResponse=} [properties] Properties to set + * @param {PAM.IPAMConfigurationData=} [properties] Properties to set */ - function GetEnforcementResponse(properties) { - this.enforcementTypes = []; - this.addOnIds = []; + function PAMConfigurationData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -253433,117 +284979,117 @@ export const Router = $root.Router = (() => { } /** - * GetEnforcementResponse enforcementTypes. - * @member {Array.} enforcementTypes - * @memberof Router.GetEnforcementResponse + * PAMConfigurationData configurationUid. + * @member {Uint8Array} configurationUid + * @memberof PAM.PAMConfigurationData * @instance */ - GetEnforcementResponse.prototype.enforcementTypes = $util.emptyArray; + PAMConfigurationData.prototype.configurationUid = $util.newBuffer([]); /** - * GetEnforcementResponse addOnIds. - * @member {Array.} addOnIds - * @memberof Router.GetEnforcementResponse + * PAMConfigurationData nodeId. + * @member {number|Long} nodeId + * @memberof PAM.PAMConfigurationData * @instance */ - GetEnforcementResponse.prototype.addOnIds = $util.emptyArray; + PAMConfigurationData.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * GetEnforcementResponse isInTrial. - * @member {boolean} isInTrial - * @memberof Router.GetEnforcementResponse + * PAMConfigurationData controllerUid. + * @member {Uint8Array} controllerUid + * @memberof PAM.PAMConfigurationData * @instance */ - GetEnforcementResponse.prototype.isInTrial = false; + PAMConfigurationData.prototype.controllerUid = $util.newBuffer([]); /** - * Creates a new GetEnforcementResponse instance using the specified properties. + * PAMConfigurationData data. + * @member {Uint8Array} data + * @memberof PAM.PAMConfigurationData + * @instance + */ + PAMConfigurationData.prototype.data = $util.newBuffer([]); + + /** + * Creates a new PAMConfigurationData instance using the specified properties. * @function create - * @memberof Router.GetEnforcementResponse + * @memberof PAM.PAMConfigurationData * @static - * @param {Router.IGetEnforcementResponse=} [properties] Properties to set - * @returns {Router.GetEnforcementResponse} GetEnforcementResponse instance + * @param {PAM.IPAMConfigurationData=} [properties] Properties to set + * @returns {PAM.PAMConfigurationData} PAMConfigurationData instance */ - GetEnforcementResponse.create = function create(properties) { - return new GetEnforcementResponse(properties); + PAMConfigurationData.create = function create(properties) { + return new PAMConfigurationData(properties); }; /** - * Encodes the specified GetEnforcementResponse message. Does not implicitly {@link Router.GetEnforcementResponse.verify|verify} messages. + * Encodes the specified PAMConfigurationData message. Does not implicitly {@link PAM.PAMConfigurationData.verify|verify} messages. * @function encode - * @memberof Router.GetEnforcementResponse + * @memberof PAM.PAMConfigurationData * @static - * @param {Router.IGetEnforcementResponse} message GetEnforcementResponse message or plain object to encode + * @param {PAM.IPAMConfigurationData} message PAMConfigurationData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnforcementResponse.encode = function encode(message, writer) { + PAMConfigurationData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enforcementTypes != null && message.enforcementTypes.length) - for (let i = 0; i < message.enforcementTypes.length; ++i) - $root.Router.EnforcementType.encode(message.enforcementTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.addOnIds != null && message.addOnIds.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (let i = 0; i < message.addOnIds.length; ++i) - writer.int32(message.addOnIds[i]); - writer.ldelim(); - } - if (message.isInTrial != null && Object.hasOwnProperty.call(message, "isInTrial")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isInTrial); + if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.configurationUid); + if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.nodeId); + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.controllerUid); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); return writer; }; /** - * Encodes the specified GetEnforcementResponse message, length delimited. Does not implicitly {@link Router.GetEnforcementResponse.verify|verify} messages. + * Encodes the specified PAMConfigurationData message, length delimited. Does not implicitly {@link PAM.PAMConfigurationData.verify|verify} messages. * @function encodeDelimited - * @memberof Router.GetEnforcementResponse + * @memberof PAM.PAMConfigurationData * @static - * @param {Router.IGetEnforcementResponse} message GetEnforcementResponse message or plain object to encode + * @param {PAM.IPAMConfigurationData} message PAMConfigurationData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnforcementResponse.encodeDelimited = function encodeDelimited(message, writer) { + PAMConfigurationData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetEnforcementResponse message from the specified reader or buffer. + * Decodes a PAMConfigurationData message from the specified reader or buffer. * @function decode - * @memberof Router.GetEnforcementResponse + * @memberof PAM.PAMConfigurationData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.GetEnforcementResponse} GetEnforcementResponse + * @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 */ - GetEnforcementResponse.decode = function decode(reader, length) { + PAMConfigurationData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.GetEnforcementResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMConfigurationData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.enforcementTypes && message.enforcementTypes.length)) - message.enforcementTypes = []; - message.enforcementTypes.push($root.Router.EnforcementType.decode(reader, reader.uint32())); + message.configurationUid = reader.bytes(); break; } case 2: { - if (!(message.addOnIds && message.addOnIds.length)) - message.addOnIds = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.addOnIds.push(reader.int32()); - } else - message.addOnIds.push(reader.int32()); + message.nodeId = reader.int64(); break; } case 3: { - message.isInTrial = reader.bool(); + message.controllerUid = reader.bytes(); + break; + } + case 4: { + message.data = reader.bytes(); break; } default: @@ -253555,171 +285101,190 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a GetEnforcementResponse message from the specified reader or buffer, length delimited. + * Decodes a PAMConfigurationData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.GetEnforcementResponse + * @memberof PAM.PAMConfigurationData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.GetEnforcementResponse} GetEnforcementResponse + * @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 */ - GetEnforcementResponse.decodeDelimited = function decodeDelimited(reader) { + PAMConfigurationData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetEnforcementResponse message. + * Verifies a PAMConfigurationData message. * @function verify - * @memberof Router.GetEnforcementResponse + * @memberof PAM.PAMConfigurationData * @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) { + PAMConfigurationData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - 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"; + 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 GetEnforcementResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PAMConfigurationData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.GetEnforcementResponse + * @memberof PAM.PAMConfigurationData * @static * @param {Object.} object Plain object - * @returns {Router.GetEnforcementResponse} GetEnforcementResponse + * @returns {PAM.PAMConfigurationData} PAMConfigurationData */ - GetEnforcementResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Router.GetEnforcementResponse) + PAMConfigurationData.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMConfigurationData) return object; - let message = new $root.Router.GetEnforcementResponse(); - if (object.enforcementTypes) { - if (!Array.isArray(object.enforcementTypes)) - throw TypeError(".Router.GetEnforcementResponse.enforcementTypes: array expected"); - message.enforcementTypes = []; - for (let i = 0; i < object.enforcementTypes.length; ++i) { - if (typeof object.enforcementTypes[i] !== "object") - throw TypeError(".Router.GetEnforcementResponse.enforcementTypes: object expected"); - message.enforcementTypes[i] = $root.Router.EnforcementType.fromObject(object.enforcementTypes[i]); - } - } - if (object.addOnIds) { - if (!Array.isArray(object.addOnIds)) - throw TypeError(".Router.GetEnforcementResponse.addOnIds: array expected"); - message.addOnIds = []; - for (let i = 0; i < object.addOnIds.length; ++i) - message.addOnIds[i] = object.addOnIds[i] | 0; - } - if (object.isInTrial != null) - message.isInTrial = Boolean(object.isInTrial); + let message = new $root.PAM.PAMConfigurationData(); + if (object.configurationUid != null) + if (typeof object.configurationUid === "string") + $util.base64.decode(object.configurationUid, message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid)), 0); + else if (object.configurationUid.length >= 0) + message.configurationUid = object.configurationUid; + if (object.nodeId != null) + if ($util.Long) + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === "string") + message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === "number") + message.nodeId = object.nodeId; + else if (typeof object.nodeId === "object") + message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); + if (object.controllerUid != null) + if (typeof object.controllerUid === "string") + $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); + else if (object.controllerUid.length >= 0) + message.controllerUid = object.controllerUid; + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; return message; }; /** - * Creates a plain object from a GetEnforcementResponse message. Also converts values to other types if specified. + * Creates a plain object from a PAMConfigurationData message. Also converts values to other types if specified. * @function toObject - * @memberof Router.GetEnforcementResponse + * @memberof PAM.PAMConfigurationData * @static - * @param {Router.GetEnforcementResponse} message GetEnforcementResponse + * @param {PAM.PAMConfigurationData} message PAMConfigurationData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetEnforcementResponse.toObject = function toObject(message, options) { + PAMConfigurationData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.enforcementTypes = []; - object.addOnIds = []; - } - if (options.defaults) - object.isInTrial = false; - if (message.enforcementTypes && message.enforcementTypes.length) { - object.enforcementTypes = []; - for (let j = 0; j < message.enforcementTypes.length; ++j) - object.enforcementTypes[j] = $root.Router.EnforcementType.toObject(message.enforcementTypes[j], options); - } - if (message.addOnIds && message.addOnIds.length) { - object.addOnIds = []; - for (let j = 0; j < message.addOnIds.length; ++j) - object.addOnIds[j] = message.addOnIds[j]; + if (options.defaults) { + if (options.bytes === String) + object.configurationUid = ""; + else { + object.configurationUid = []; + if (options.bytes !== Array) + object.configurationUid = $util.newBuffer(object.configurationUid); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.nodeId = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.controllerUid = ""; + else { + object.controllerUid = []; + if (options.bytes !== Array) + object.controllerUid = $util.newBuffer(object.controllerUid); + } + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } } - if (message.isInTrial != null && message.hasOwnProperty("isInTrial")) - object.isInTrial = message.isInTrial; + if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) + object.configurationUid = options.bytes === String ? $util.base64.encode(message.configurationUid, 0, message.configurationUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.configurationUid) : message.configurationUid; + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (typeof 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")) + 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")) + 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; }; /** - * Converts this GetEnforcementResponse to JSON. + * Converts this PAMConfigurationData to JSON. * @function toJSON - * @memberof Router.GetEnforcementResponse + * @memberof PAM.PAMConfigurationData * @instance * @returns {Object.} JSON object */ - GetEnforcementResponse.prototype.toJSON = function toJSON() { + PAMConfigurationData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetEnforcementResponse + * Gets the default type url for PAMConfigurationData * @function getTypeUrl - * @memberof Router.GetEnforcementResponse + * @memberof PAM.PAMConfigurationData * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetEnforcementResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMConfigurationData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.GetEnforcementResponse"; + return typeUrlPrefix + "/PAM.PAMConfigurationData"; }; - return GetEnforcementResponse; + return PAMConfigurationData; })(); - Router.PEDMTOTPValidateRequest = (function() { + PAM.PAMElementData = (function() { /** - * Properties of a PEDMTOTPValidateRequest. - * @memberof Router - * @interface IPEDMTOTPValidateRequest - * @property {string|null} [username] PEDMTOTPValidateRequest username - * @property {number|null} [enterpriseId] PEDMTOTPValidateRequest enterpriseId - * @property {number|null} [code] PEDMTOTPValidateRequest code + * Properties of a PAMElementData. + * @memberof PAM + * @interface IPAMElementData + * @property {Uint8Array|null} [elementUid] PAMElementData elementUid + * @property {Uint8Array|null} [parentUid] PAMElementData parentUid + * @property {Uint8Array|null} [data] PAMElementData data */ /** - * Constructs a new PEDMTOTPValidateRequest. - * @memberof Router - * @classdesc Represents a PEDMTOTPValidateRequest. - * @implements IPEDMTOTPValidateRequest + * Constructs a new PAMElementData. + * @memberof PAM + * @classdesc Represents a PAMElementData. + * @implements IPAMElementData * @constructor - * @param {Router.IPEDMTOTPValidateRequest=} [properties] Properties to set + * @param {PAM.IPAMElementData=} [properties] Properties to set */ - function PEDMTOTPValidateRequest(properties) { + function PAMElementData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -253727,103 +285292,103 @@ export const Router = $root.Router = (() => { } /** - * PEDMTOTPValidateRequest username. - * @member {string} username - * @memberof Router.PEDMTOTPValidateRequest + * PAMElementData elementUid. + * @member {Uint8Array} elementUid + * @memberof PAM.PAMElementData * @instance */ - PEDMTOTPValidateRequest.prototype.username = ""; + PAMElementData.prototype.elementUid = $util.newBuffer([]); /** - * PEDMTOTPValidateRequest enterpriseId. - * @member {number} enterpriseId - * @memberof Router.PEDMTOTPValidateRequest + * PAMElementData parentUid. + * @member {Uint8Array} parentUid + * @memberof PAM.PAMElementData * @instance */ - PEDMTOTPValidateRequest.prototype.enterpriseId = 0; + PAMElementData.prototype.parentUid = $util.newBuffer([]); /** - * PEDMTOTPValidateRequest code. - * @member {number} code - * @memberof Router.PEDMTOTPValidateRequest + * PAMElementData data. + * @member {Uint8Array} data + * @memberof PAM.PAMElementData * @instance */ - PEDMTOTPValidateRequest.prototype.code = 0; + PAMElementData.prototype.data = $util.newBuffer([]); /** - * Creates a new PEDMTOTPValidateRequest instance using the specified properties. + * Creates a new PAMElementData instance using the specified properties. * @function create - * @memberof Router.PEDMTOTPValidateRequest + * @memberof PAM.PAMElementData * @static - * @param {Router.IPEDMTOTPValidateRequest=} [properties] Properties to set - * @returns {Router.PEDMTOTPValidateRequest} PEDMTOTPValidateRequest instance + * @param {PAM.IPAMElementData=} [properties] Properties to set + * @returns {PAM.PAMElementData} PAMElementData instance */ - PEDMTOTPValidateRequest.create = function create(properties) { - return new PEDMTOTPValidateRequest(properties); + PAMElementData.create = function create(properties) { + return new PAMElementData(properties); }; /** - * Encodes the specified PEDMTOTPValidateRequest message. Does not implicitly {@link Router.PEDMTOTPValidateRequest.verify|verify} messages. + * Encodes the specified PAMElementData message. Does not implicitly {@link PAM.PAMElementData.verify|verify} messages. * @function encode - * @memberof Router.PEDMTOTPValidateRequest + * @memberof PAM.PAMElementData * @static - * @param {Router.IPEDMTOTPValidateRequest} message PEDMTOTPValidateRequest message or plain object to encode + * @param {PAM.IPAMElementData} message PAMElementData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PEDMTOTPValidateRequest.encode = function encode(message, writer) { + PAMElementData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enterpriseId); - if (message.code != null && Object.hasOwnProperty.call(message, "code")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.code); + if (message.elementUid != null && Object.hasOwnProperty.call(message, "elementUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.elementUid); + if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.parentUid); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); return writer; }; /** - * Encodes the specified PEDMTOTPValidateRequest message, length delimited. Does not implicitly {@link Router.PEDMTOTPValidateRequest.verify|verify} messages. + * Encodes the specified PAMElementData message, length delimited. Does not implicitly {@link PAM.PAMElementData.verify|verify} messages. * @function encodeDelimited - * @memberof Router.PEDMTOTPValidateRequest + * @memberof PAM.PAMElementData * @static - * @param {Router.IPEDMTOTPValidateRequest} message PEDMTOTPValidateRequest message or plain object to encode + * @param {PAM.IPAMElementData} message PAMElementData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PEDMTOTPValidateRequest.encodeDelimited = function encodeDelimited(message, writer) { + PAMElementData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PEDMTOTPValidateRequest message from the specified reader or buffer. + * Decodes a PAMElementData message from the specified reader or buffer. * @function decode - * @memberof Router.PEDMTOTPValidateRequest + * @memberof PAM.PAMElementData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.PEDMTOTPValidateRequest} PEDMTOTPValidateRequest + * @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 */ - PEDMTOTPValidateRequest.decode = function decode(reader, length) { + PAMElementData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.PEDMTOTPValidateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMElementData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.username = reader.string(); + message.elementUid = reader.bytes(); break; } case 2: { - message.enterpriseId = reader.int32(); + message.parentUid = reader.bytes(); break; } case 3: { - message.code = reader.int32(); + message.data = reader.bytes(); break; } default: @@ -253835,140 +285400,186 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a PEDMTOTPValidateRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMElementData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.PEDMTOTPValidateRequest + * @memberof PAM.PAMElementData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.PEDMTOTPValidateRequest} PEDMTOTPValidateRequest + * @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 */ - PEDMTOTPValidateRequest.decodeDelimited = function decodeDelimited(reader) { + PAMElementData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PEDMTOTPValidateRequest message. + * Verifies a PAMElementData message. * @function verify - * @memberof Router.PEDMTOTPValidateRequest + * @memberof PAM.PAMElementData * @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) { + PAMElementData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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 PEDMTOTPValidateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMElementData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.PEDMTOTPValidateRequest + * @memberof PAM.PAMElementData * @static * @param {Object.} object Plain object - * @returns {Router.PEDMTOTPValidateRequest} PEDMTOTPValidateRequest + * @returns {PAM.PAMElementData} PAMElementData */ - PEDMTOTPValidateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Router.PEDMTOTPValidateRequest) + PAMElementData.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMElementData) return object; - let message = new $root.Router.PEDMTOTPValidateRequest(); - if (object.username != null) - message.username = String(object.username); - if (object.enterpriseId != null) - message.enterpriseId = object.enterpriseId | 0; - if (object.code != null) - message.code = object.code | 0; + let message = new $root.PAM.PAMElementData(); + if (object.elementUid != null) + if (typeof object.elementUid === "string") + $util.base64.decode(object.elementUid, message.elementUid = $util.newBuffer($util.base64.length(object.elementUid)), 0); + else if (object.elementUid.length >= 0) + message.elementUid = object.elementUid; + if (object.parentUid != null) + if (typeof object.parentUid === "string") + $util.base64.decode(object.parentUid, message.parentUid = $util.newBuffer($util.base64.length(object.parentUid)), 0); + else if (object.parentUid.length >= 0) + message.parentUid = object.parentUid; + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; return message; }; /** - * Creates a plain object from a PEDMTOTPValidateRequest message. Also converts values to other types if specified. + * Creates a plain object from a PAMElementData message. Also converts values to other types if specified. * @function toObject - * @memberof Router.PEDMTOTPValidateRequest + * @memberof PAM.PAMElementData * @static - * @param {Router.PEDMTOTPValidateRequest} message PEDMTOTPValidateRequest + * @param {PAM.PAMElementData} message PAMElementData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PEDMTOTPValidateRequest.toObject = function toObject(message, options) { + PAMElementData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.username = ""; - object.enterpriseId = 0; - object.code = 0; + if (options.bytes === String) + object.elementUid = ""; + else { + object.elementUid = []; + if (options.bytes !== Array) + object.elementUid = $util.newBuffer(object.elementUid); + } + if (options.bytes === String) + object.parentUid = ""; + else { + object.parentUid = []; + if (options.bytes !== Array) + object.parentUid = $util.newBuffer(object.parentUid); + } + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - object.enterpriseId = message.enterpriseId; - if (message.code != null && message.hasOwnProperty("code")) - object.code = message.code; + if (message.elementUid != null && message.hasOwnProperty("elementUid")) + object.elementUid = options.bytes === String ? $util.base64.encode(message.elementUid, 0, message.elementUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.elementUid) : message.elementUid; + if (message.parentUid != null && message.hasOwnProperty("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")) + 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; }; /** - * Converts this PEDMTOTPValidateRequest to JSON. + * Converts this PAMElementData to JSON. * @function toJSON - * @memberof Router.PEDMTOTPValidateRequest + * @memberof PAM.PAMElementData * @instance * @returns {Object.} JSON object */ - PEDMTOTPValidateRequest.prototype.toJSON = function toJSON() { + PAMElementData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PEDMTOTPValidateRequest + * Gets the default type url for PAMElementData * @function getTypeUrl - * @memberof Router.PEDMTOTPValidateRequest + * @memberof PAM.PAMElementData * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PEDMTOTPValidateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMElementData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.PEDMTOTPValidateRequest"; + return typeUrlPrefix + "/PAM.PAMElementData"; }; - return PEDMTOTPValidateRequest; + return PAMElementData; })(); - Router.GetPEDMAdminInfoResponse = (function() { + /** + * PAMOperationResultType enum. + * @name PAM.PAMOperationResultType + * @enum {number} + * @property {number} POT_SUCCESS=0 POT_SUCCESS value + * @property {number} POT_UNKNOWN_ERROR=1 POT_UNKNOWN_ERROR value + * @property {number} POT_ALREADY_EXISTS=2 POT_ALREADY_EXISTS value + * @property {number} POT_DOES_NOT_EXIST=3 POT_DOES_NOT_EXIST value + */ + PAM.PAMOperationResultType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "POT_SUCCESS"] = 0; + values[valuesById[1] = "POT_UNKNOWN_ERROR"] = 1; + values[valuesById[2] = "POT_ALREADY_EXISTS"] = 2; + values[valuesById[3] = "POT_DOES_NOT_EXIST"] = 3; + return values; + })(); + + PAM.PAMElementOperationResult = (function() { /** - * Properties of a GetPEDMAdminInfoResponse. - * @memberof Router - * @interface IGetPEDMAdminInfoResponse - * @property {boolean|null} [isPedmAdmin] GetPEDMAdminInfoResponse isPedmAdmin - * @property {boolean|null} [pedmAddonActive] GetPEDMAdminInfoResponse pedmAddonActive + * Properties of a PAMElementOperationResult. + * @memberof PAM + * @interface IPAMElementOperationResult + * @property {Uint8Array|null} [elementUid] PAMElementOperationResult elementUid + * @property {PAM.PAMOperationResultType|null} [result] PAMElementOperationResult result + * @property {string|null} [message] PAMElementOperationResult message */ /** - * Constructs a new GetPEDMAdminInfoResponse. - * @memberof Router - * @classdesc Represents a GetPEDMAdminInfoResponse. - * @implements IGetPEDMAdminInfoResponse + * Constructs a new PAMElementOperationResult. + * @memberof PAM + * @classdesc Represents a PAMElementOperationResult. + * @implements IPAMElementOperationResult * @constructor - * @param {Router.IGetPEDMAdminInfoResponse=} [properties] Properties to set + * @param {PAM.IPAMElementOperationResult=} [properties] Properties to set */ - function GetPEDMAdminInfoResponse(properties) { + function PAMElementOperationResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -253976,89 +285587,103 @@ export const Router = $root.Router = (() => { } /** - * GetPEDMAdminInfoResponse isPedmAdmin. - * @member {boolean} isPedmAdmin - * @memberof Router.GetPEDMAdminInfoResponse + * PAMElementOperationResult elementUid. + * @member {Uint8Array} elementUid + * @memberof PAM.PAMElementOperationResult + * @instance + */ + PAMElementOperationResult.prototype.elementUid = $util.newBuffer([]); + + /** + * PAMElementOperationResult result. + * @member {PAM.PAMOperationResultType} result + * @memberof PAM.PAMElementOperationResult * @instance */ - GetPEDMAdminInfoResponse.prototype.isPedmAdmin = false; + PAMElementOperationResult.prototype.result = 0; /** - * GetPEDMAdminInfoResponse pedmAddonActive. - * @member {boolean} pedmAddonActive - * @memberof Router.GetPEDMAdminInfoResponse + * PAMElementOperationResult message. + * @member {string} message + * @memberof PAM.PAMElementOperationResult * @instance */ - GetPEDMAdminInfoResponse.prototype.pedmAddonActive = false; + PAMElementOperationResult.prototype.message = ""; /** - * Creates a new GetPEDMAdminInfoResponse instance using the specified properties. + * Creates a new PAMElementOperationResult instance using the specified properties. * @function create - * @memberof Router.GetPEDMAdminInfoResponse + * @memberof PAM.PAMElementOperationResult * @static - * @param {Router.IGetPEDMAdminInfoResponse=} [properties] Properties to set - * @returns {Router.GetPEDMAdminInfoResponse} GetPEDMAdminInfoResponse instance + * @param {PAM.IPAMElementOperationResult=} [properties] Properties to set + * @returns {PAM.PAMElementOperationResult} PAMElementOperationResult instance */ - GetPEDMAdminInfoResponse.create = function create(properties) { - return new GetPEDMAdminInfoResponse(properties); + PAMElementOperationResult.create = function create(properties) { + return new PAMElementOperationResult(properties); }; /** - * Encodes the specified GetPEDMAdminInfoResponse message. Does not implicitly {@link Router.GetPEDMAdminInfoResponse.verify|verify} messages. + * Encodes the specified PAMElementOperationResult message. Does not implicitly {@link PAM.PAMElementOperationResult.verify|verify} messages. * @function encode - * @memberof Router.GetPEDMAdminInfoResponse + * @memberof PAM.PAMElementOperationResult * @static - * @param {Router.IGetPEDMAdminInfoResponse} message GetPEDMAdminInfoResponse message or plain object to encode + * @param {PAM.IPAMElementOperationResult} message PAMElementOperationResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPEDMAdminInfoResponse.encode = function encode(message, writer) { + PAMElementOperationResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.isPedmAdmin != null && Object.hasOwnProperty.call(message, "isPedmAdmin")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isPedmAdmin); - if (message.pedmAddonActive != null && Object.hasOwnProperty.call(message, "pedmAddonActive")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.pedmAddonActive); + if (message.elementUid != null && Object.hasOwnProperty.call(message, "elementUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.elementUid); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.result); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); return writer; }; /** - * Encodes the specified GetPEDMAdminInfoResponse message, length delimited. Does not implicitly {@link Router.GetPEDMAdminInfoResponse.verify|verify} messages. + * Encodes the specified PAMElementOperationResult message, length delimited. Does not implicitly {@link PAM.PAMElementOperationResult.verify|verify} messages. * @function encodeDelimited - * @memberof Router.GetPEDMAdminInfoResponse + * @memberof PAM.PAMElementOperationResult * @static - * @param {Router.IGetPEDMAdminInfoResponse} message GetPEDMAdminInfoResponse message or plain object to encode + * @param {PAM.IPAMElementOperationResult} message PAMElementOperationResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPEDMAdminInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { + PAMElementOperationResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPEDMAdminInfoResponse message from the specified reader or buffer. + * Decodes a PAMElementOperationResult message from the specified reader or buffer. * @function decode - * @memberof Router.GetPEDMAdminInfoResponse + * @memberof PAM.PAMElementOperationResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.GetPEDMAdminInfoResponse} GetPEDMAdminInfoResponse + * @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 */ - GetPEDMAdminInfoResponse.decode = function decode(reader, length) { + PAMElementOperationResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.GetPEDMAdminInfoResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMElementOperationResult(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.isPedmAdmin = reader.bool(); + message.elementUid = reader.bytes(); break; } case 2: { - message.pedmAddonActive = reader.bool(); + message.result = reader.int32(); + break; + } + case 3: { + message.message = reader.string(); break; } default: @@ -254070,131 +285695,178 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a GetPEDMAdminInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a PAMElementOperationResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.GetPEDMAdminInfoResponse + * @memberof PAM.PAMElementOperationResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.GetPEDMAdminInfoResponse} GetPEDMAdminInfoResponse + * @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 */ - GetPEDMAdminInfoResponse.decodeDelimited = function decodeDelimited(reader) { + PAMElementOperationResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetPEDMAdminInfoResponse message. + * Verifies a PAMElementOperationResult message. * @function verify - * @memberof Router.GetPEDMAdminInfoResponse + * @memberof PAM.PAMElementOperationResult * @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) { + PAMElementOperationResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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 GetPEDMAdminInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PAMElementOperationResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.GetPEDMAdminInfoResponse + * @memberof PAM.PAMElementOperationResult * @static * @param {Object.} object Plain object - * @returns {Router.GetPEDMAdminInfoResponse} GetPEDMAdminInfoResponse + * @returns {PAM.PAMElementOperationResult} PAMElementOperationResult */ - GetPEDMAdminInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Router.GetPEDMAdminInfoResponse) + PAMElementOperationResult.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMElementOperationResult) return object; - let message = new $root.Router.GetPEDMAdminInfoResponse(); - if (object.isPedmAdmin != null) - message.isPedmAdmin = Boolean(object.isPedmAdmin); - if (object.pedmAddonActive != null) - message.pedmAddonActive = Boolean(object.pedmAddonActive); + let message = new $root.PAM.PAMElementOperationResult(); + if (object.elementUid != null) + if (typeof object.elementUid === "string") + $util.base64.decode(object.elementUid, message.elementUid = $util.newBuffer($util.base64.length(object.elementUid)), 0); + else if (object.elementUid.length >= 0) + message.elementUid = object.elementUid; + switch (object.result) { + default: + if (typeof object.result === "number") { + message.result = object.result; + break; + } + break; + case "POT_SUCCESS": + case 0: + message.result = 0; + break; + case "POT_UNKNOWN_ERROR": + case 1: + message.result = 1; + break; + case "POT_ALREADY_EXISTS": + case 2: + message.result = 2; + break; + case "POT_DOES_NOT_EXIST": + case 3: + message.result = 3; + break; + } + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a GetPEDMAdminInfoResponse message. Also converts values to other types if specified. + * Creates a plain object from a PAMElementOperationResult message. Also converts values to other types if specified. * @function toObject - * @memberof Router.GetPEDMAdminInfoResponse + * @memberof PAM.PAMElementOperationResult * @static - * @param {Router.GetPEDMAdminInfoResponse} message GetPEDMAdminInfoResponse + * @param {PAM.PAMElementOperationResult} message PAMElementOperationResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPEDMAdminInfoResponse.toObject = function toObject(message, options) { + PAMElementOperationResult.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.isPedmAdmin = false; - object.pedmAddonActive = false; + if (options.bytes === String) + object.elementUid = ""; + else { + object.elementUid = []; + if (options.bytes !== Array) + object.elementUid = $util.newBuffer(object.elementUid); + } + object.result = options.enums === String ? "POT_SUCCESS" : 0; + object.message = ""; } - if (message.isPedmAdmin != null && message.hasOwnProperty("isPedmAdmin")) - object.isPedmAdmin = message.isPedmAdmin; - if (message.pedmAddonActive != null && message.hasOwnProperty("pedmAddonActive")) - object.pedmAddonActive = message.pedmAddonActive; + if (message.elementUid != null && message.hasOwnProperty("elementUid")) + object.elementUid = options.bytes === String ? $util.base64.encode(message.elementUid, 0, message.elementUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.elementUid) : message.elementUid; + if (message.result != null && message.hasOwnProperty("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")) + object.message = message.message; return object; }; /** - * Converts this GetPEDMAdminInfoResponse to JSON. + * Converts this PAMElementOperationResult to JSON. * @function toJSON - * @memberof Router.GetPEDMAdminInfoResponse + * @memberof PAM.PAMElementOperationResult * @instance * @returns {Object.} JSON object */ - GetPEDMAdminInfoResponse.prototype.toJSON = function toJSON() { + PAMElementOperationResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetPEDMAdminInfoResponse + * Gets the default type url for PAMElementOperationResult * @function getTypeUrl - * @memberof Router.GetPEDMAdminInfoResponse + * @memberof PAM.PAMElementOperationResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetPEDMAdminInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMElementOperationResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.GetPEDMAdminInfoResponse"; + return typeUrlPrefix + "/PAM.PAMElementOperationResult"; }; - return GetPEDMAdminInfoResponse; + return PAMElementOperationResult; })(); - Router.PAMNetworkSettings = (function() { + PAM.PAMModifyResult = (function() { /** - * Properties of a PAMNetworkSettings. - * @memberof Router - * @interface IPAMNetworkSettings - * @property {Uint8Array|null} [allowedSettings] PAMNetworkSettings allowedSettings + * Properties of a PAMModifyResult. + * @memberof PAM + * @interface IPAMModifyResult + * @property {Array.|null} [results] PAMModifyResult results */ /** - * Constructs a new PAMNetworkSettings. - * @memberof Router - * @classdesc Represents a PAMNetworkSettings. - * @implements IPAMNetworkSettings + * Constructs a new PAMModifyResult. + * @memberof PAM + * @classdesc Represents a PAMModifyResult. + * @implements IPAMModifyResult * @constructor - * @param {Router.IPAMNetworkSettings=} [properties] Properties to set + * @param {PAM.IPAMModifyResult=} [properties] Properties to set */ - function PAMNetworkSettings(properties) { + function PAMModifyResult(properties) { + this.results = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -254202,75 +285874,78 @@ export const Router = $root.Router = (() => { } /** - * PAMNetworkSettings allowedSettings. - * @member {Uint8Array} allowedSettings - * @memberof Router.PAMNetworkSettings + * PAMModifyResult results. + * @member {Array.} results + * @memberof PAM.PAMModifyResult * @instance */ - PAMNetworkSettings.prototype.allowedSettings = $util.newBuffer([]); + PAMModifyResult.prototype.results = $util.emptyArray; /** - * Creates a new PAMNetworkSettings instance using the specified properties. + * Creates a new PAMModifyResult instance using the specified properties. * @function create - * @memberof Router.PAMNetworkSettings + * @memberof PAM.PAMModifyResult * @static - * @param {Router.IPAMNetworkSettings=} [properties] Properties to set - * @returns {Router.PAMNetworkSettings} PAMNetworkSettings instance + * @param {PAM.IPAMModifyResult=} [properties] Properties to set + * @returns {PAM.PAMModifyResult} PAMModifyResult instance */ - PAMNetworkSettings.create = function create(properties) { - return new PAMNetworkSettings(properties); + PAMModifyResult.create = function create(properties) { + return new PAMModifyResult(properties); }; /** - * Encodes the specified PAMNetworkSettings message. Does not implicitly {@link Router.PAMNetworkSettings.verify|verify} messages. + * Encodes the specified PAMModifyResult message. Does not implicitly {@link PAM.PAMModifyResult.verify|verify} messages. * @function encode - * @memberof Router.PAMNetworkSettings + * @memberof PAM.PAMModifyResult * @static - * @param {Router.IPAMNetworkSettings} message PAMNetworkSettings message or plain object to encode + * @param {PAM.IPAMModifyResult} message PAMModifyResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMNetworkSettings.encode = function encode(message, writer) { + PAMModifyResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.allowedSettings != null && Object.hasOwnProperty.call(message, "allowedSettings")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.allowedSettings); + if (message.results != null && message.results.length) + for (let i = 0; i < message.results.length; ++i) + $root.PAM.PAMElementOperationResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified PAMNetworkSettings message, length delimited. Does not implicitly {@link Router.PAMNetworkSettings.verify|verify} messages. + * Encodes the specified PAMModifyResult message, length delimited. Does not implicitly {@link PAM.PAMModifyResult.verify|verify} messages. * @function encodeDelimited - * @memberof Router.PAMNetworkSettings + * @memberof PAM.PAMModifyResult * @static - * @param {Router.IPAMNetworkSettings} message PAMNetworkSettings message or plain object to encode + * @param {PAM.IPAMModifyResult} message PAMModifyResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMNetworkSettings.encodeDelimited = function encodeDelimited(message, writer) { + PAMModifyResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMNetworkSettings message from the specified reader or buffer. + * Decodes a PAMModifyResult message from the specified reader or buffer. * @function decode - * @memberof Router.PAMNetworkSettings + * @memberof PAM.PAMModifyResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.PAMNetworkSettings} PAMNetworkSettings + * @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 */ - PAMNetworkSettings.decode = function decode(reader, length) { + PAMModifyResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.PAMNetworkSettings(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMModifyResult(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.allowedSettings = reader.bytes(); + if (!(message.results && message.results.length)) + message.results = []; + message.results.push($root.PAM.PAMElementOperationResult.decode(reader, reader.uint32())); break; } default: @@ -254282,136 +285957,144 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a PAMNetworkSettings message from the specified reader or buffer, length delimited. + * Decodes a PAMModifyResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.PAMNetworkSettings + * @memberof PAM.PAMModifyResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.PAMNetworkSettings} PAMNetworkSettings + * @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 */ - PAMNetworkSettings.decodeDelimited = function decodeDelimited(reader) { + PAMModifyResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMNetworkSettings message. + * Verifies a PAMModifyResult message. * @function verify - * @memberof Router.PAMNetworkSettings + * @memberof PAM.PAMModifyResult * @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) { + PAMModifyResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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.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]); + if (error) + return "results." + error; + } + } return null; }; /** - * Creates a PAMNetworkSettings message from a plain object. Also converts values to their respective internal types. + * Creates a PAMModifyResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.PAMNetworkSettings + * @memberof PAM.PAMModifyResult * @static * @param {Object.} object Plain object - * @returns {Router.PAMNetworkSettings} PAMNetworkSettings + * @returns {PAM.PAMModifyResult} PAMModifyResult */ - PAMNetworkSettings.fromObject = function fromObject(object) { - if (object instanceof $root.Router.PAMNetworkSettings) + PAMModifyResult.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMModifyResult) return object; - let message = new $root.Router.PAMNetworkSettings(); - if (object.allowedSettings != null) - if (typeof object.allowedSettings === "string") - $util.base64.decode(object.allowedSettings, message.allowedSettings = $util.newBuffer($util.base64.length(object.allowedSettings)), 0); - else if (object.allowedSettings.length >= 0) - message.allowedSettings = object.allowedSettings; + let message = new $root.PAM.PAMModifyResult(); + if (object.results) { + if (!Array.isArray(object.results)) + throw TypeError(".PAM.PAMModifyResult.results: array expected"); + message.results = []; + for (let i = 0; i < object.results.length; ++i) { + if (typeof object.results[i] !== "object") + throw TypeError(".PAM.PAMModifyResult.results: object expected"); + message.results[i] = $root.PAM.PAMElementOperationResult.fromObject(object.results[i]); + } + } return message; }; /** - * Creates a plain object from a PAMNetworkSettings message. Also converts values to other types if specified. + * Creates a plain object from a PAMModifyResult message. Also converts values to other types if specified. * @function toObject - * @memberof Router.PAMNetworkSettings + * @memberof PAM.PAMModifyResult * @static - * @param {Router.PAMNetworkSettings} message PAMNetworkSettings + * @param {PAM.PAMModifyResult} message PAMModifyResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMNetworkSettings.toObject = function toObject(message, options) { + PAMModifyResult.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - if (options.bytes === String) - object.allowedSettings = ""; - else { - object.allowedSettings = []; - if (options.bytes !== Array) - object.allowedSettings = $util.newBuffer(object.allowedSettings); - } - if (message.allowedSettings != null && message.hasOwnProperty("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 (options.arrays || options.defaults) + object.results = []; + if (message.results && message.results.length) { + object.results = []; + for (let j = 0; j < message.results.length; ++j) + object.results[j] = $root.PAM.PAMElementOperationResult.toObject(message.results[j], options); + } return object; }; /** - * Converts this PAMNetworkSettings to JSON. + * Converts this PAMModifyResult to JSON. * @function toJSON - * @memberof Router.PAMNetworkSettings + * @memberof PAM.PAMModifyResult * @instance * @returns {Object.} JSON object */ - PAMNetworkSettings.prototype.toJSON = function toJSON() { + PAMModifyResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMNetworkSettings + * Gets the default type url for PAMModifyResult * @function getTypeUrl - * @memberof Router.PAMNetworkSettings + * @memberof PAM.PAMModifyResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMNetworkSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMModifyResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.PAMNetworkSettings"; + return typeUrlPrefix + "/PAM.PAMModifyResult"; }; - return PAMNetworkSettings; + return PAMModifyResult; })(); - Router.PAMNetworkConfigurationRequest = (function() { + PAM.PAMElement = (function() { /** - * Properties of a PAMNetworkConfigurationRequest. - * @memberof Router - * @interface IPAMNetworkConfigurationRequest - * @property {Uint8Array|null} [recordUid] PAMNetworkConfigurationRequest recordUid - * @property {Router.IPAMNetworkSettings|null} [networkSettings] PAMNetworkConfigurationRequest networkSettings - * @property {Array.|null} [resources] PAMNetworkConfigurationRequest resources - * @property {Array.|null} [rotations] PAMNetworkConfigurationRequest rotations + * Properties of a PAMElement. + * @memberof PAM + * @interface IPAMElement + * @property {Uint8Array|null} [elementUid] PAMElement elementUid + * @property {Uint8Array|null} [data] PAMElement data + * @property {number|Long|null} [created] PAMElement created + * @property {number|Long|null} [lastModified] PAMElement lastModified + * @property {Array.|null} [children] PAMElement children */ /** - * Constructs a new PAMNetworkConfigurationRequest. - * @memberof Router - * @classdesc Represents a PAMNetworkConfigurationRequest. - * @implements IPAMNetworkConfigurationRequest + * Constructs a new PAMElement. + * @memberof PAM + * @classdesc Represents a PAMElement. + * @implements IPAMElement * @constructor - * @param {Router.IPAMNetworkConfigurationRequest=} [properties] Properties to set + * @param {PAM.IPAMElement=} [properties] Properties to set */ - function PAMNetworkConfigurationRequest(properties) { - this.resources = []; - this.rotations = []; + function PAMElement(properties) { + this.children = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -254419,137 +286102,134 @@ export const Router = $root.Router = (() => { } /** - * PAMNetworkConfigurationRequest recordUid. - * @member {Uint8Array} recordUid - * @memberof Router.PAMNetworkConfigurationRequest + * PAMElement elementUid. + * @member {Uint8Array} elementUid + * @memberof PAM.PAMElement * @instance */ - PAMNetworkConfigurationRequest.prototype.recordUid = $util.newBuffer([]); + PAMElement.prototype.elementUid = $util.newBuffer([]); /** - * PAMNetworkConfigurationRequest networkSettings. - * @member {Router.IPAMNetworkSettings|null|undefined} networkSettings - * @memberof Router.PAMNetworkConfigurationRequest + * PAMElement data. + * @member {Uint8Array} data + * @memberof PAM.PAMElement * @instance */ - PAMNetworkConfigurationRequest.prototype.networkSettings = null; + PAMElement.prototype.data = $util.newBuffer([]); /** - * PAMNetworkConfigurationRequest resources. - * @member {Array.} resources - * @memberof Router.PAMNetworkConfigurationRequest + * PAMElement created. + * @member {number|Long} created + * @memberof PAM.PAMElement * @instance */ - PAMNetworkConfigurationRequest.prototype.resources = $util.emptyArray; + PAMElement.prototype.created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * PAMNetworkConfigurationRequest rotations. - * @member {Array.} rotations - * @memberof Router.PAMNetworkConfigurationRequest + * PAMElement lastModified. + * @member {number|Long} lastModified + * @memberof PAM.PAMElement * @instance */ - PAMNetworkConfigurationRequest.prototype.rotations = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; + PAMElement.prototype.lastModified = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * PAMNetworkConfigurationRequest _networkSettings. - * @member {"networkSettings"|undefined} _networkSettings - * @memberof Router.PAMNetworkConfigurationRequest + * PAMElement children. + * @member {Array.} children + * @memberof PAM.PAMElement * @instance */ - Object.defineProperty(PAMNetworkConfigurationRequest.prototype, "_networkSettings", { - get: $util.oneOfGetter($oneOfFields = ["networkSettings"]), - set: $util.oneOfSetter($oneOfFields) - }); + PAMElement.prototype.children = $util.emptyArray; /** - * Creates a new PAMNetworkConfigurationRequest instance using the specified properties. + * Creates a new PAMElement instance using the specified properties. * @function create - * @memberof Router.PAMNetworkConfigurationRequest + * @memberof PAM.PAMElement * @static - * @param {Router.IPAMNetworkConfigurationRequest=} [properties] Properties to set - * @returns {Router.PAMNetworkConfigurationRequest} PAMNetworkConfigurationRequest instance + * @param {PAM.IPAMElement=} [properties] Properties to set + * @returns {PAM.PAMElement} PAMElement instance */ - PAMNetworkConfigurationRequest.create = function create(properties) { - return new PAMNetworkConfigurationRequest(properties); + PAMElement.create = function create(properties) { + return new PAMElement(properties); }; /** - * Encodes the specified PAMNetworkConfigurationRequest message. Does not implicitly {@link Router.PAMNetworkConfigurationRequest.verify|verify} messages. + * Encodes the specified PAMElement message. Does not implicitly {@link PAM.PAMElement.verify|verify} messages. * @function encode - * @memberof Router.PAMNetworkConfigurationRequest + * @memberof PAM.PAMElement * @static - * @param {Router.IPAMNetworkConfigurationRequest} message PAMNetworkConfigurationRequest message or plain object to encode + * @param {PAM.IPAMElement} message PAMElement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMNetworkConfigurationRequest.encode = function encode(message, writer) { + PAMElement.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.networkSettings != null && Object.hasOwnProperty.call(message, "networkSettings")) - $root.Router.PAMNetworkSettings.encode(message.networkSettings, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.resources != null && message.resources.length) - for (let i = 0; i < message.resources.length; ++i) - $root.PAM.PAMResourceConfig.encode(message.resources[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.rotations != null && message.rotations.length) - for (let i = 0; i < message.rotations.length; ++i) - $root.Router.RouterRecordRotationRequest.encode(message.rotations[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.elementUid != null && Object.hasOwnProperty.call(message, "elementUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.elementUid); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); + if (message.created != null && Object.hasOwnProperty.call(message, "created")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.created); + if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.lastModified); + if (message.children != null && message.children.length) + for (let i = 0; i < message.children.length; ++i) + $root.PAM.PAMElement.encode(message.children[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified PAMNetworkConfigurationRequest message, length delimited. Does not implicitly {@link Router.PAMNetworkConfigurationRequest.verify|verify} messages. + * Encodes the specified PAMElement message, length delimited. Does not implicitly {@link PAM.PAMElement.verify|verify} messages. * @function encodeDelimited - * @memberof Router.PAMNetworkConfigurationRequest + * @memberof PAM.PAMElement * @static - * @param {Router.IPAMNetworkConfigurationRequest} message PAMNetworkConfigurationRequest message or plain object to encode + * @param {PAM.IPAMElement} message PAMElement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMNetworkConfigurationRequest.encodeDelimited = function encodeDelimited(message, writer) { + PAMElement.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMNetworkConfigurationRequest message from the specified reader or buffer. + * Decodes a PAMElement message from the specified reader or buffer. * @function decode - * @memberof Router.PAMNetworkConfigurationRequest + * @memberof PAM.PAMElement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.PAMNetworkConfigurationRequest} PAMNetworkConfigurationRequest + * @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 */ - PAMNetworkConfigurationRequest.decode = function decode(reader, length) { + PAMElement.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.PAMNetworkConfigurationRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMElement(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + message.elementUid = reader.bytes(); break; } case 2: { - message.networkSettings = $root.Router.PAMNetworkSettings.decode(reader, reader.uint32()); + message.data = reader.bytes(); break; } case 3: { - if (!(message.resources && message.resources.length)) - message.resources = []; - message.resources.push($root.PAM.PAMResourceConfig.decode(reader, reader.uint32())); + message.created = reader.int64(); break; } case 4: { - if (!(message.rotations && message.rotations.length)) - message.rotations = []; - message.rotations.push($root.Router.RouterRecordRotationRequest.decode(reader, reader.uint32())); + message.lastModified = reader.int64(); + break; + } + case 5: { + if (!(message.children && message.children.length)) + message.children = []; + message.children.push($root.PAM.PAMElement.decode(reader, reader.uint32())); break; } default: @@ -254561,204 +286241,219 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a PAMNetworkConfigurationRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMElement message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.PAMNetworkConfigurationRequest + * @memberof PAM.PAMElement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.PAMNetworkConfigurationRequest} PAMNetworkConfigurationRequest + * @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 */ - PAMNetworkConfigurationRequest.decodeDelimited = function decodeDelimited(reader) { + PAMElement.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMNetworkConfigurationRequest message. + * Verifies a PAMElement message. * @function verify - * @memberof Router.PAMNetworkConfigurationRequest + * @memberof PAM.PAMElement * @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) { + PAMElement.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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); - 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]); - 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]); + 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]); if (error) - return "rotations." + error; + return "children." + error; } } return null; }; /** - * Creates a PAMNetworkConfigurationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMElement message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.PAMNetworkConfigurationRequest + * @memberof PAM.PAMElement * @static * @param {Object.} object Plain object - * @returns {Router.PAMNetworkConfigurationRequest} PAMNetworkConfigurationRequest + * @returns {PAM.PAMElement} PAMElement */ - PAMNetworkConfigurationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Router.PAMNetworkConfigurationRequest) + PAMElement.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMElement) return object; - let message = new $root.Router.PAMNetworkConfigurationRequest(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.networkSettings != null) { - if (typeof object.networkSettings !== "object") - throw TypeError(".Router.PAMNetworkConfigurationRequest.networkSettings: object expected"); - message.networkSettings = $root.Router.PAMNetworkSettings.fromObject(object.networkSettings); - } - if (object.resources) { - if (!Array.isArray(object.resources)) - throw TypeError(".Router.PAMNetworkConfigurationRequest.resources: array expected"); - message.resources = []; - for (let i = 0; i < object.resources.length; ++i) { - if (typeof object.resources[i] !== "object") - throw TypeError(".Router.PAMNetworkConfigurationRequest.resources: object expected"); - message.resources[i] = $root.PAM.PAMResourceConfig.fromObject(object.resources[i]); - } - } - if (object.rotations) { - if (!Array.isArray(object.rotations)) - throw TypeError(".Router.PAMNetworkConfigurationRequest.rotations: array expected"); - message.rotations = []; - for (let i = 0; i < object.rotations.length; ++i) { - if (typeof object.rotations[i] !== "object") - throw TypeError(".Router.PAMNetworkConfigurationRequest.rotations: object expected"); - message.rotations[i] = $root.Router.RouterRecordRotationRequest.fromObject(object.rotations[i]); + let message = new $root.PAM.PAMElement(); + if (object.elementUid != null) + if (typeof object.elementUid === "string") + $util.base64.decode(object.elementUid, message.elementUid = $util.newBuffer($util.base64.length(object.elementUid)), 0); + else if (object.elementUid.length >= 0) + message.elementUid = object.elementUid; + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + if (object.created != null) + if ($util.Long) + (message.created = $util.Long.fromValue(object.created)).unsigned = false; + else if (typeof object.created === "string") + message.created = parseInt(object.created, 10); + else if (typeof object.created === "number") + message.created = object.created; + else if (typeof object.created === "object") + message.created = new $util.LongBits(object.created.low >>> 0, object.created.high >>> 0).toNumber(); + if (object.lastModified != null) + if ($util.Long) + (message.lastModified = $util.Long.fromValue(object.lastModified)).unsigned = false; + else if (typeof object.lastModified === "string") + message.lastModified = parseInt(object.lastModified, 10); + else if (typeof object.lastModified === "number") + message.lastModified = object.lastModified; + else if (typeof object.lastModified === "object") + message.lastModified = new $util.LongBits(object.lastModified.low >>> 0, object.lastModified.high >>> 0).toNumber(); + if (object.children) { + if (!Array.isArray(object.children)) + throw TypeError(".PAM.PAMElement.children: array expected"); + message.children = []; + for (let i = 0; i < object.children.length; ++i) { + if (typeof object.children[i] !== "object") + throw TypeError(".PAM.PAMElement.children: object expected"); + message.children[i] = $root.PAM.PAMElement.fromObject(object.children[i]); } } return message; }; /** - * Creates a plain object from a PAMNetworkConfigurationRequest message. Also converts values to other types if specified. + * Creates a plain object from a PAMElement message. Also converts values to other types if specified. * @function toObject - * @memberof Router.PAMNetworkConfigurationRequest + * @memberof PAM.PAMElement * @static - * @param {Router.PAMNetworkConfigurationRequest} message PAMNetworkConfigurationRequest + * @param {PAM.PAMElement} message PAMElement * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMNetworkConfigurationRequest.toObject = function toObject(message, options) { + PAMElement.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.resources = []; - object.rotations = []; - } - if (options.defaults) + if (options.arrays || options.defaults) + object.children = []; + if (options.defaults) { if (options.bytes === String) - object.recordUid = ""; + object.elementUid = ""; else { - object.recordUid = []; + object.elementUid = []; if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + object.elementUid = $util.newBuffer(object.elementUid); } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.networkSettings != null && message.hasOwnProperty("networkSettings")) { - object.networkSettings = $root.Router.PAMNetworkSettings.toObject(message.networkSettings, options); - if (options.oneofs) - object._networkSettings = "networkSettings"; - } - if (message.resources && message.resources.length) { - object.resources = []; - for (let j = 0; j < message.resources.length; ++j) - object.resources[j] = $root.PAM.PAMResourceConfig.toObject(message.resources[j], options); + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.created = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.lastModified = options.longs === String ? "0" : 0; } - if (message.rotations && message.rotations.length) { - object.rotations = []; - for (let j = 0; j < message.rotations.length; ++j) - object.rotations[j] = $root.Router.RouterRecordRotationRequest.toObject(message.rotations[j], options); + if (message.elementUid != null && message.hasOwnProperty("elementUid")) + object.elementUid = options.bytes === String ? $util.base64.encode(message.elementUid, 0, message.elementUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.elementUid) : message.elementUid; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.created != null && message.hasOwnProperty("created")) + if (typeof message.created === "number") + object.created = options.longs === String ? String(message.created) : message.created; + else + object.created = options.longs === String ? $util.Long.prototype.toString.call(message.created) : options.longs === Number ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() : message.created; + if (message.lastModified != null && message.hasOwnProperty("lastModified")) + if (typeof message.lastModified === "number") + object.lastModified = options.longs === String ? String(message.lastModified) : message.lastModified; + else + object.lastModified = options.longs === String ? $util.Long.prototype.toString.call(message.lastModified) : options.longs === Number ? new $util.LongBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0).toNumber() : message.lastModified; + if (message.children && message.children.length) { + object.children = []; + for (let j = 0; j < message.children.length; ++j) + object.children[j] = $root.PAM.PAMElement.toObject(message.children[j], options); } return object; }; /** - * Converts this PAMNetworkConfigurationRequest to JSON. + * Converts this PAMElement to JSON. * @function toJSON - * @memberof Router.PAMNetworkConfigurationRequest + * @memberof PAM.PAMElement * @instance * @returns {Object.} JSON object */ - PAMNetworkConfigurationRequest.prototype.toJSON = function toJSON() { + PAMElement.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMNetworkConfigurationRequest + * Gets the default type url for PAMElement * @function getTypeUrl - * @memberof Router.PAMNetworkConfigurationRequest + * @memberof PAM.PAMElement * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMNetworkConfigurationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMElement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.PAMNetworkConfigurationRequest"; + return typeUrlPrefix + "/PAM.PAMElement"; }; - return PAMNetworkConfigurationRequest; + return PAMElement; })(); - Router.PAMDiscoveryRulesSetRequest = (function() { + PAM.PAMGenericUidRequest = (function() { /** - * Properties of a PAMDiscoveryRulesSetRequest. - * @memberof Router - * @interface IPAMDiscoveryRulesSetRequest - * @property {Uint8Array|null} [networkUid] PAMDiscoveryRulesSetRequest networkUid - * @property {Uint8Array|null} [rules] PAMDiscoveryRulesSetRequest rules - * @property {Uint8Array|null} [rulesKey] PAMDiscoveryRulesSetRequest rulesKey + * Properties of a PAMGenericUidRequest. + * @memberof PAM + * @interface IPAMGenericUidRequest + * @property {Uint8Array|null} [uid] PAMGenericUidRequest uid */ /** - * Constructs a new PAMDiscoveryRulesSetRequest. - * @memberof Router - * @classdesc Represents a PAMDiscoveryRulesSetRequest. - * @implements IPAMDiscoveryRulesSetRequest + * Constructs a new PAMGenericUidRequest. + * @memberof PAM + * @classdesc Represents a PAMGenericUidRequest. + * @implements IPAMGenericUidRequest * @constructor - * @param {Router.IPAMDiscoveryRulesSetRequest=} [properties] Properties to set + * @param {PAM.IPAMGenericUidRequest=} [properties] Properties to set */ - function PAMDiscoveryRulesSetRequest(properties) { + function PAMGenericUidRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -254766,103 +286461,75 @@ export const Router = $root.Router = (() => { } /** - * PAMDiscoveryRulesSetRequest networkUid. - * @member {Uint8Array} networkUid - * @memberof Router.PAMDiscoveryRulesSetRequest - * @instance - */ - PAMDiscoveryRulesSetRequest.prototype.networkUid = $util.newBuffer([]); - - /** - * PAMDiscoveryRulesSetRequest rules. - * @member {Uint8Array} rules - * @memberof Router.PAMDiscoveryRulesSetRequest - * @instance - */ - PAMDiscoveryRulesSetRequest.prototype.rules = $util.newBuffer([]); - - /** - * PAMDiscoveryRulesSetRequest rulesKey. - * @member {Uint8Array} rulesKey - * @memberof Router.PAMDiscoveryRulesSetRequest + * PAMGenericUidRequest uid. + * @member {Uint8Array} uid + * @memberof PAM.PAMGenericUidRequest * @instance */ - PAMDiscoveryRulesSetRequest.prototype.rulesKey = $util.newBuffer([]); + PAMGenericUidRequest.prototype.uid = $util.newBuffer([]); /** - * Creates a new PAMDiscoveryRulesSetRequest instance using the specified properties. + * Creates a new PAMGenericUidRequest instance using the specified properties. * @function create - * @memberof Router.PAMDiscoveryRulesSetRequest + * @memberof PAM.PAMGenericUidRequest * @static - * @param {Router.IPAMDiscoveryRulesSetRequest=} [properties] Properties to set - * @returns {Router.PAMDiscoveryRulesSetRequest} PAMDiscoveryRulesSetRequest instance + * @param {PAM.IPAMGenericUidRequest=} [properties] Properties to set + * @returns {PAM.PAMGenericUidRequest} PAMGenericUidRequest instance */ - PAMDiscoveryRulesSetRequest.create = function create(properties) { - return new PAMDiscoveryRulesSetRequest(properties); + PAMGenericUidRequest.create = function create(properties) { + return new PAMGenericUidRequest(properties); }; /** - * Encodes the specified PAMDiscoveryRulesSetRequest message. Does not implicitly {@link Router.PAMDiscoveryRulesSetRequest.verify|verify} messages. + * Encodes the specified PAMGenericUidRequest message. Does not implicitly {@link PAM.PAMGenericUidRequest.verify|verify} messages. * @function encode - * @memberof Router.PAMDiscoveryRulesSetRequest + * @memberof PAM.PAMGenericUidRequest * @static - * @param {Router.IPAMDiscoveryRulesSetRequest} message PAMDiscoveryRulesSetRequest message or plain object to encode + * @param {PAM.IPAMGenericUidRequest} message PAMGenericUidRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMDiscoveryRulesSetRequest.encode = function encode(message, writer) { + PAMGenericUidRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.networkUid != null && Object.hasOwnProperty.call(message, "networkUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.networkUid); - if (message.rules != null && Object.hasOwnProperty.call(message, "rules")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.rules); - if (message.rulesKey != null && Object.hasOwnProperty.call(message, "rulesKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.rulesKey); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); return writer; }; /** - * Encodes the specified PAMDiscoveryRulesSetRequest message, length delimited. Does not implicitly {@link Router.PAMDiscoveryRulesSetRequest.verify|verify} messages. + * Encodes the specified PAMGenericUidRequest message, length delimited. Does not implicitly {@link PAM.PAMGenericUidRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Router.PAMDiscoveryRulesSetRequest + * @memberof PAM.PAMGenericUidRequest * @static - * @param {Router.IPAMDiscoveryRulesSetRequest} message PAMDiscoveryRulesSetRequest message or plain object to encode + * @param {PAM.IPAMGenericUidRequest} message PAMGenericUidRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMDiscoveryRulesSetRequest.encodeDelimited = function encodeDelimited(message, writer) { + PAMGenericUidRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMDiscoveryRulesSetRequest message from the specified reader or buffer. + * Decodes a PAMGenericUidRequest message from the specified reader or buffer. * @function decode - * @memberof Router.PAMDiscoveryRulesSetRequest + * @memberof PAM.PAMGenericUidRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.PAMDiscoveryRulesSetRequest} PAMDiscoveryRulesSetRequest + * @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 */ - PAMDiscoveryRulesSetRequest.decode = function decode(reader, length) { + PAMGenericUidRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.PAMDiscoveryRulesSetRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMGenericUidRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.networkUid = reader.bytes(); - break; - } - case 2: { - message.rules = reader.bytes(); - break; - } - case 3: { - message.rulesKey = reader.bytes(); + message.uid = reader.bytes(); break; } default: @@ -254874,168 +286541,132 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a PAMDiscoveryRulesSetRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMGenericUidRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.PAMDiscoveryRulesSetRequest + * @memberof PAM.PAMGenericUidRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.PAMDiscoveryRulesSetRequest} PAMDiscoveryRulesSetRequest + * @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 */ - PAMDiscoveryRulesSetRequest.decodeDelimited = function decodeDelimited(reader) { + PAMGenericUidRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMDiscoveryRulesSetRequest message. + * Verifies a PAMGenericUidRequest message. * @function verify - * @memberof Router.PAMDiscoveryRulesSetRequest + * @memberof PAM.PAMGenericUidRequest * @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) { + PAMGenericUidRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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 PAMDiscoveryRulesSetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMGenericUidRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.PAMDiscoveryRulesSetRequest + * @memberof PAM.PAMGenericUidRequest * @static * @param {Object.} object Plain object - * @returns {Router.PAMDiscoveryRulesSetRequest} PAMDiscoveryRulesSetRequest + * @returns {PAM.PAMGenericUidRequest} PAMGenericUidRequest */ - PAMDiscoveryRulesSetRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Router.PAMDiscoveryRulesSetRequest) + PAMGenericUidRequest.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMGenericUidRequest) return object; - let message = new $root.Router.PAMDiscoveryRulesSetRequest(); - if (object.networkUid != null) - if (typeof object.networkUid === "string") - $util.base64.decode(object.networkUid, message.networkUid = $util.newBuffer($util.base64.length(object.networkUid)), 0); - else if (object.networkUid.length >= 0) - message.networkUid = object.networkUid; - if (object.rules != null) - if (typeof object.rules === "string") - $util.base64.decode(object.rules, message.rules = $util.newBuffer($util.base64.length(object.rules)), 0); - else if (object.rules.length >= 0) - message.rules = object.rules; - if (object.rulesKey != null) - if (typeof object.rulesKey === "string") - $util.base64.decode(object.rulesKey, message.rulesKey = $util.newBuffer($util.base64.length(object.rulesKey)), 0); - else if (object.rulesKey.length >= 0) - message.rulesKey = object.rulesKey; + let message = new $root.PAM.PAMGenericUidRequest(); + if (object.uid != null) + if (typeof object.uid === "string") + $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); + else if (object.uid.length >= 0) + message.uid = object.uid; return message; }; /** - * Creates a plain object from a PAMDiscoveryRulesSetRequest message. Also converts values to other types if specified. + * Creates a plain object from a PAMGenericUidRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Router.PAMDiscoveryRulesSetRequest + * @memberof PAM.PAMGenericUidRequest * @static - * @param {Router.PAMDiscoveryRulesSetRequest} message PAMDiscoveryRulesSetRequest + * @param {PAM.PAMGenericUidRequest} message PAMGenericUidRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMDiscoveryRulesSetRequest.toObject = function toObject(message, options) { + PAMGenericUidRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.networkUid = ""; - else { - object.networkUid = []; - if (options.bytes !== Array) - object.networkUid = $util.newBuffer(object.networkUid); - } - if (options.bytes === String) - object.rules = ""; - else { - object.rules = []; - if (options.bytes !== Array) - object.rules = $util.newBuffer(object.rules); - } + if (options.defaults) if (options.bytes === String) - object.rulesKey = ""; + object.uid = ""; else { - object.rulesKey = []; + object.uid = []; if (options.bytes !== Array) - object.rulesKey = $util.newBuffer(object.rulesKey); + object.uid = $util.newBuffer(object.uid); } - } - if (message.networkUid != null && message.hasOwnProperty("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")) - 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")) - 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; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; return object; }; /** - * Converts this PAMDiscoveryRulesSetRequest to JSON. + * Converts this PAMGenericUidRequest to JSON. * @function toJSON - * @memberof Router.PAMDiscoveryRulesSetRequest + * @memberof PAM.PAMGenericUidRequest * @instance * @returns {Object.} JSON object */ - PAMDiscoveryRulesSetRequest.prototype.toJSON = function toJSON() { + PAMGenericUidRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMDiscoveryRulesSetRequest + * Gets the default type url for PAMGenericUidRequest * @function getTypeUrl - * @memberof Router.PAMDiscoveryRulesSetRequest + * @memberof PAM.PAMGenericUidRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMDiscoveryRulesSetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMGenericUidRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.PAMDiscoveryRulesSetRequest"; + return typeUrlPrefix + "/PAM.PAMGenericUidRequest"; }; - return PAMDiscoveryRulesSetRequest; + return PAMGenericUidRequest; })(); - Router.Router2FAValidateRequest = (function() { + PAM.PAMGenericUidsRequest = (function() { /** - * Properties of a Router2FAValidateRequest. - * @memberof Router - * @interface IRouter2FAValidateRequest - * @property {Uint8Array|null} [transmissionKey] Router2FAValidateRequest transmissionKey - * @property {Uint8Array|null} [sessionToken] Router2FAValidateRequest sessionToken - * @property {string|null} [value] Router2FAValidateRequest value + * Properties of a PAMGenericUidsRequest. + * @memberof PAM + * @interface IPAMGenericUidsRequest + * @property {Array.|null} [uids] PAMGenericUidsRequest uids */ /** - * Constructs a new Router2FAValidateRequest. - * @memberof Router - * @classdesc Represents a Router2FAValidateRequest. - * @implements IRouter2FAValidateRequest + * Constructs a new PAMGenericUidsRequest. + * @memberof PAM + * @classdesc Represents a PAMGenericUidsRequest. + * @implements IPAMGenericUidsRequest * @constructor - * @param {Router.IRouter2FAValidateRequest=} [properties] Properties to set + * @param {PAM.IPAMGenericUidsRequest=} [properties] Properties to set */ - function Router2FAValidateRequest(properties) { + function PAMGenericUidsRequest(properties) { + this.uids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -255043,103 +286674,78 @@ export const Router = $root.Router = (() => { } /** - * Router2FAValidateRequest transmissionKey. - * @member {Uint8Array} transmissionKey - * @memberof Router.Router2FAValidateRequest - * @instance - */ - Router2FAValidateRequest.prototype.transmissionKey = $util.newBuffer([]); - - /** - * Router2FAValidateRequest sessionToken. - * @member {Uint8Array} sessionToken - * @memberof Router.Router2FAValidateRequest - * @instance - */ - Router2FAValidateRequest.prototype.sessionToken = $util.newBuffer([]); - - /** - * Router2FAValidateRequest value. - * @member {string} value - * @memberof Router.Router2FAValidateRequest + * PAMGenericUidsRequest uids. + * @member {Array.} uids + * @memberof PAM.PAMGenericUidsRequest * @instance */ - Router2FAValidateRequest.prototype.value = ""; + PAMGenericUidsRequest.prototype.uids = $util.emptyArray; /** - * Creates a new Router2FAValidateRequest instance using the specified properties. + * Creates a new PAMGenericUidsRequest instance using the specified properties. * @function create - * @memberof Router.Router2FAValidateRequest + * @memberof PAM.PAMGenericUidsRequest * @static - * @param {Router.IRouter2FAValidateRequest=} [properties] Properties to set - * @returns {Router.Router2FAValidateRequest} Router2FAValidateRequest instance - */ - Router2FAValidateRequest.create = function create(properties) { - return new Router2FAValidateRequest(properties); + * @param {PAM.IPAMGenericUidsRequest=} [properties] Properties to set + * @returns {PAM.PAMGenericUidsRequest} PAMGenericUidsRequest instance + */ + PAMGenericUidsRequest.create = function create(properties) { + return new PAMGenericUidsRequest(properties); }; /** - * Encodes the specified Router2FAValidateRequest message. Does not implicitly {@link Router.Router2FAValidateRequest.verify|verify} messages. + * Encodes the specified PAMGenericUidsRequest message. Does not implicitly {@link PAM.PAMGenericUidsRequest.verify|verify} messages. * @function encode - * @memberof Router.Router2FAValidateRequest + * @memberof PAM.PAMGenericUidsRequest * @static - * @param {Router.IRouter2FAValidateRequest} message Router2FAValidateRequest message or plain object to encode + * @param {PAM.IPAMGenericUidsRequest} message PAMGenericUidsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Router2FAValidateRequest.encode = function encode(message, writer) { + PAMGenericUidsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transmissionKey != null && Object.hasOwnProperty.call(message, "transmissionKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.transmissionKey); - if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sessionToken); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.value); + if (message.uids != null && message.uids.length) + for (let i = 0; i < message.uids.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uids[i]); return writer; }; /** - * Encodes the specified Router2FAValidateRequest message, length delimited. Does not implicitly {@link Router.Router2FAValidateRequest.verify|verify} messages. + * Encodes the specified PAMGenericUidsRequest message, length delimited. Does not implicitly {@link PAM.PAMGenericUidsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof Router.Router2FAValidateRequest + * @memberof PAM.PAMGenericUidsRequest * @static - * @param {Router.IRouter2FAValidateRequest} message Router2FAValidateRequest message or plain object to encode + * @param {PAM.IPAMGenericUidsRequest} message PAMGenericUidsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Router2FAValidateRequest.encodeDelimited = function encodeDelimited(message, writer) { + PAMGenericUidsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Router2FAValidateRequest message from the specified reader or buffer. + * Decodes a PAMGenericUidsRequest message from the specified reader or buffer. * @function decode - * @memberof Router.Router2FAValidateRequest + * @memberof PAM.PAMGenericUidsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.Router2FAValidateRequest} Router2FAValidateRequest + * @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 */ - Router2FAValidateRequest.decode = function decode(reader, length) { + PAMGenericUidsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.Router2FAValidateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMGenericUidsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.transmissionKey = reader.bytes(); - break; - } - case 2: { - message.sessionToken = reader.bytes(); - break; - } - case 3: { - message.value = reader.string(); + if (!(message.uids && message.uids.length)) + message.uids = []; + message.uids.push(reader.bytes()); break; } default: @@ -255151,159 +286757,144 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a Router2FAValidateRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMGenericUidsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.Router2FAValidateRequest + * @memberof PAM.PAMGenericUidsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.Router2FAValidateRequest} Router2FAValidateRequest + * @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 */ - Router2FAValidateRequest.decodeDelimited = function decodeDelimited(reader) { + PAMGenericUidsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Router2FAValidateRequest message. + * Verifies a PAMGenericUidsRequest message. * @function verify - * @memberof Router.Router2FAValidateRequest + * @memberof PAM.PAMGenericUidsRequest * @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) { + PAMGenericUidsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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 Router2FAValidateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMGenericUidsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.Router2FAValidateRequest + * @memberof PAM.PAMGenericUidsRequest * @static * @param {Object.} object Plain object - * @returns {Router.Router2FAValidateRequest} Router2FAValidateRequest + * @returns {PAM.PAMGenericUidsRequest} PAMGenericUidsRequest */ - Router2FAValidateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Router.Router2FAValidateRequest) + PAMGenericUidsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMGenericUidsRequest) return object; - let message = new $root.Router.Router2FAValidateRequest(); - if (object.transmissionKey != null) - if (typeof object.transmissionKey === "string") - $util.base64.decode(object.transmissionKey, message.transmissionKey = $util.newBuffer($util.base64.length(object.transmissionKey)), 0); - else if (object.transmissionKey.length >= 0) - message.transmissionKey = object.transmissionKey; - if (object.sessionToken != null) - if (typeof object.sessionToken === "string") - $util.base64.decode(object.sessionToken, message.sessionToken = $util.newBuffer($util.base64.length(object.sessionToken)), 0); - else if (object.sessionToken.length >= 0) - message.sessionToken = object.sessionToken; - if (object.value != null) - message.value = String(object.value); + let message = new $root.PAM.PAMGenericUidsRequest(); + if (object.uids) { + if (!Array.isArray(object.uids)) + throw TypeError(".PAM.PAMGenericUidsRequest.uids: array expected"); + message.uids = []; + for (let i = 0; i < object.uids.length; ++i) + if (typeof object.uids[i] === "string") + $util.base64.decode(object.uids[i], message.uids[i] = $util.newBuffer($util.base64.length(object.uids[i])), 0); + else if (object.uids[i].length >= 0) + message.uids[i] = object.uids[i]; + } return message; }; /** - * Creates a plain object from a Router2FAValidateRequest message. Also converts values to other types if specified. + * Creates a plain object from a PAMGenericUidsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof Router.Router2FAValidateRequest + * @memberof PAM.PAMGenericUidsRequest * @static - * @param {Router.Router2FAValidateRequest} message Router2FAValidateRequest + * @param {PAM.PAMGenericUidsRequest} message PAMGenericUidsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Router2FAValidateRequest.toObject = function toObject(message, options) { + PAMGenericUidsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.transmissionKey = ""; - else { - object.transmissionKey = []; - if (options.bytes !== Array) - object.transmissionKey = $util.newBuffer(object.transmissionKey); - } - if (options.bytes === String) - object.sessionToken = ""; - else { - object.sessionToken = []; - if (options.bytes !== Array) - object.sessionToken = $util.newBuffer(object.sessionToken); - } - object.value = ""; + if (options.arrays || options.defaults) + object.uids = []; + if (message.uids && message.uids.length) { + object.uids = []; + for (let j = 0; j < message.uids.length; ++j) + object.uids[j] = options.bytes === String ? $util.base64.encode(message.uids[j], 0, message.uids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.uids[j]) : message.uids[j]; } - if (message.transmissionKey != null && message.hasOwnProperty("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")) - 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")) - object.value = message.value; return object; }; /** - * Converts this Router2FAValidateRequest to JSON. + * Converts this PAMGenericUidsRequest to JSON. * @function toJSON - * @memberof Router.Router2FAValidateRequest + * @memberof PAM.PAMGenericUidsRequest * @instance * @returns {Object.} JSON object */ - Router2FAValidateRequest.prototype.toJSON = function toJSON() { + PAMGenericUidsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Router2FAValidateRequest + * Gets the default type url for PAMGenericUidsRequest * @function getTypeUrl - * @memberof Router.Router2FAValidateRequest + * @memberof PAM.PAMGenericUidsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Router2FAValidateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMGenericUidsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.Router2FAValidateRequest"; + return typeUrlPrefix + "/PAM.PAMGenericUidsRequest"; }; - return Router2FAValidateRequest; + return PAMGenericUidsRequest; })(); - Router.Router2FASendPushRequest = (function() { + PAM.PAMConfiguration = (function() { /** - * Properties of a Router2FASendPushRequest. - * @memberof Router - * @interface IRouter2FASendPushRequest - * @property {Uint8Array|null} [transmissionKey] Router2FASendPushRequest transmissionKey - * @property {Uint8Array|null} [sessionToken] Router2FASendPushRequest sessionToken - * @property {Authentication.TwoFactorPushType|null} [pushType] Router2FASendPushRequest pushType + * Properties of a PAMConfiguration. + * @memberof PAM + * @interface IPAMConfiguration + * @property {Uint8Array|null} [configurationUid] PAMConfiguration configurationUid + * @property {number|Long|null} [nodeId] PAMConfiguration nodeId + * @property {Uint8Array|null} [controllerUid] PAMConfiguration controllerUid + * @property {Uint8Array|null} [data] PAMConfiguration data + * @property {number|Long|null} [created] PAMConfiguration created + * @property {number|Long|null} [lastModified] PAMConfiguration lastModified + * @property {Array.|null} [children] PAMConfiguration children */ /** - * Constructs a new Router2FASendPushRequest. - * @memberof Router - * @classdesc Represents a Router2FASendPushRequest. - * @implements IRouter2FASendPushRequest + * Constructs a new PAMConfiguration. + * @memberof PAM + * @classdesc Represents a PAMConfiguration. + * @implements IPAMConfiguration * @constructor - * @param {Router.IRouter2FASendPushRequest=} [properties] Properties to set + * @param {PAM.IPAMConfiguration=} [properties] Properties to set */ - function Router2FASendPushRequest(properties) { + function PAMConfiguration(properties) { + this.children = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -255311,103 +286902,162 @@ export const Router = $root.Router = (() => { } /** - * Router2FASendPushRequest transmissionKey. - * @member {Uint8Array} transmissionKey - * @memberof Router.Router2FASendPushRequest + * PAMConfiguration configurationUid. + * @member {Uint8Array} configurationUid + * @memberof PAM.PAMConfiguration * @instance */ - Router2FASendPushRequest.prototype.transmissionKey = $util.newBuffer([]); + PAMConfiguration.prototype.configurationUid = $util.newBuffer([]); /** - * Router2FASendPushRequest sessionToken. - * @member {Uint8Array} sessionToken - * @memberof Router.Router2FASendPushRequest + * PAMConfiguration nodeId. + * @member {number|Long} nodeId + * @memberof PAM.PAMConfiguration * @instance */ - Router2FASendPushRequest.prototype.sessionToken = $util.newBuffer([]); + PAMConfiguration.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Router2FASendPushRequest pushType. - * @member {Authentication.TwoFactorPushType} pushType - * @memberof Router.Router2FASendPushRequest + * PAMConfiguration controllerUid. + * @member {Uint8Array} controllerUid + * @memberof PAM.PAMConfiguration * @instance */ - Router2FASendPushRequest.prototype.pushType = 0; + PAMConfiguration.prototype.controllerUid = $util.newBuffer([]); /** - * Creates a new Router2FASendPushRequest instance using the specified properties. + * PAMConfiguration data. + * @member {Uint8Array} data + * @memberof PAM.PAMConfiguration + * @instance + */ + PAMConfiguration.prototype.data = $util.newBuffer([]); + + /** + * PAMConfiguration created. + * @member {number|Long} created + * @memberof PAM.PAMConfiguration + * @instance + */ + PAMConfiguration.prototype.created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * PAMConfiguration lastModified. + * @member {number|Long} lastModified + * @memberof PAM.PAMConfiguration + * @instance + */ + PAMConfiguration.prototype.lastModified = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * PAMConfiguration children. + * @member {Array.} children + * @memberof PAM.PAMConfiguration + * @instance + */ + PAMConfiguration.prototype.children = $util.emptyArray; + + /** + * Creates a new PAMConfiguration instance using the specified properties. * @function create - * @memberof Router.Router2FASendPushRequest + * @memberof PAM.PAMConfiguration * @static - * @param {Router.IRouter2FASendPushRequest=} [properties] Properties to set - * @returns {Router.Router2FASendPushRequest} Router2FASendPushRequest instance + * @param {PAM.IPAMConfiguration=} [properties] Properties to set + * @returns {PAM.PAMConfiguration} PAMConfiguration instance */ - Router2FASendPushRequest.create = function create(properties) { - return new Router2FASendPushRequest(properties); + PAMConfiguration.create = function create(properties) { + return new PAMConfiguration(properties); }; /** - * Encodes the specified Router2FASendPushRequest message. Does not implicitly {@link Router.Router2FASendPushRequest.verify|verify} messages. + * Encodes the specified PAMConfiguration message. Does not implicitly {@link PAM.PAMConfiguration.verify|verify} messages. * @function encode - * @memberof Router.Router2FASendPushRequest + * @memberof PAM.PAMConfiguration * @static - * @param {Router.IRouter2FASendPushRequest} message Router2FASendPushRequest message or plain object to encode + * @param {PAM.IPAMConfiguration} message PAMConfiguration message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Router2FASendPushRequest.encode = function encode(message, writer) { + PAMConfiguration.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transmissionKey != null && Object.hasOwnProperty.call(message, "transmissionKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.transmissionKey); - if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sessionToken); - if (message.pushType != null && Object.hasOwnProperty.call(message, "pushType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pushType); + if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.configurationUid); + if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.nodeId); + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.controllerUid); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); + if (message.created != null && Object.hasOwnProperty.call(message, "created")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.created); + if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.lastModified); + if (message.children != null && message.children.length) + for (let i = 0; i < message.children.length; ++i) + $root.PAM.PAMElement.encode(message.children[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified Router2FASendPushRequest message, length delimited. Does not implicitly {@link Router.Router2FASendPushRequest.verify|verify} messages. + * Encodes the specified PAMConfiguration message, length delimited. Does not implicitly {@link PAM.PAMConfiguration.verify|verify} messages. * @function encodeDelimited - * @memberof Router.Router2FASendPushRequest + * @memberof PAM.PAMConfiguration * @static - * @param {Router.IRouter2FASendPushRequest} message Router2FASendPushRequest message or plain object to encode + * @param {PAM.IPAMConfiguration} message PAMConfiguration message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Router2FASendPushRequest.encodeDelimited = function encodeDelimited(message, writer) { + PAMConfiguration.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Router2FASendPushRequest message from the specified reader or buffer. + * Decodes a PAMConfiguration message from the specified reader or buffer. * @function decode - * @memberof Router.Router2FASendPushRequest + * @memberof PAM.PAMConfiguration * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.Router2FASendPushRequest} Router2FASendPushRequest + * @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 */ - Router2FASendPushRequest.decode = function decode(reader, length) { + PAMConfiguration.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.Router2FASendPushRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMConfiguration(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.transmissionKey = reader.bytes(); + message.configurationUid = reader.bytes(); break; } case 2: { - message.sessionToken = reader.bytes(); + message.nodeId = reader.int64(); break; } case 3: { - message.pushType = reader.int32(); + message.controllerUid = reader.bytes(); + break; + } + case 4: { + message.data = reader.bytes(); + break; + } + case 5: { + message.created = reader.int64(); + break; + } + case 6: { + message.lastModified = reader.int64(); + break; + } + case 7: { + if (!(message.children && message.children.length)) + message.children = []; + message.children.push($root.PAM.PAMElement.decode(reader, reader.uint32())); break; } default: @@ -255419,202 +287069,259 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a Router2FASendPushRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMConfiguration message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.Router2FASendPushRequest + * @memberof PAM.PAMConfiguration * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.Router2FASendPushRequest} Router2FASendPushRequest + * @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 */ - Router2FASendPushRequest.decodeDelimited = function decodeDelimited(reader) { + PAMConfiguration.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Router2FASendPushRequest message. + * Verifies a PAMConfiguration message. * @function verify - * @memberof Router.Router2FASendPushRequest + * @memberof PAM.PAMConfiguration * @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) { + PAMConfiguration.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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; + 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]); + if (error) + return "children." + error; } + } return null; }; /** - * Creates a Router2FASendPushRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMConfiguration message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.Router2FASendPushRequest + * @memberof PAM.PAMConfiguration * @static * @param {Object.} object Plain object - * @returns {Router.Router2FASendPushRequest} Router2FASendPushRequest + * @returns {PAM.PAMConfiguration} PAMConfiguration */ - Router2FASendPushRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Router.Router2FASendPushRequest) + PAMConfiguration.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMConfiguration) return object; - let message = new $root.Router.Router2FASendPushRequest(); - if (object.transmissionKey != null) - if (typeof object.transmissionKey === "string") - $util.base64.decode(object.transmissionKey, message.transmissionKey = $util.newBuffer($util.base64.length(object.transmissionKey)), 0); - else if (object.transmissionKey.length >= 0) - message.transmissionKey = object.transmissionKey; - if (object.sessionToken != null) - if (typeof object.sessionToken === "string") - $util.base64.decode(object.sessionToken, message.sessionToken = $util.newBuffer($util.base64.length(object.sessionToken)), 0); - else if (object.sessionToken.length >= 0) - message.sessionToken = object.sessionToken; - switch (object.pushType) { - default: - if (typeof object.pushType === "number") { - message.pushType = object.pushType; - break; + let message = new $root.PAM.PAMConfiguration(); + if (object.configurationUid != null) + if (typeof object.configurationUid === "string") + $util.base64.decode(object.configurationUid, message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid)), 0); + else if (object.configurationUid.length >= 0) + message.configurationUid = object.configurationUid; + if (object.nodeId != null) + if ($util.Long) + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === "string") + message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === "number") + message.nodeId = object.nodeId; + else if (typeof object.nodeId === "object") + message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); + if (object.controllerUid != null) + if (typeof object.controllerUid === "string") + $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); + else if (object.controllerUid.length >= 0) + message.controllerUid = object.controllerUid; + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + if (object.created != null) + if ($util.Long) + (message.created = $util.Long.fromValue(object.created)).unsigned = false; + else if (typeof object.created === "string") + message.created = parseInt(object.created, 10); + else if (typeof object.created === "number") + message.created = object.created; + else if (typeof object.created === "object") + message.created = new $util.LongBits(object.created.low >>> 0, object.created.high >>> 0).toNumber(); + if (object.lastModified != null) + if ($util.Long) + (message.lastModified = $util.Long.fromValue(object.lastModified)).unsigned = false; + else if (typeof object.lastModified === "string") + message.lastModified = parseInt(object.lastModified, 10); + else if (typeof object.lastModified === "number") + message.lastModified = object.lastModified; + else if (typeof object.lastModified === "object") + message.lastModified = new $util.LongBits(object.lastModified.low >>> 0, object.lastModified.high >>> 0).toNumber(); + if (object.children) { + if (!Array.isArray(object.children)) + throw TypeError(".PAM.PAMConfiguration.children: array expected"); + message.children = []; + for (let i = 0; i < object.children.length; ++i) { + if (typeof object.children[i] !== "object") + throw TypeError(".PAM.PAMConfiguration.children: object expected"); + message.children[i] = $root.PAM.PAMElement.fromObject(object.children[i]); } - break; - case "TWO_FA_PUSH_NONE": - case 0: - message.pushType = 0; - break; - case "TWO_FA_PUSH_SMS": - case 1: - message.pushType = 1; - break; - case "TWO_FA_PUSH_KEEPER": - case 2: - message.pushType = 2; - break; - case "TWO_FA_PUSH_DUO_PUSH": - case 3: - message.pushType = 3; - break; - case "TWO_FA_PUSH_DUO_TEXT": - case 4: - message.pushType = 4; - break; - case "TWO_FA_PUSH_DUO_CALL": - case 5: - message.pushType = 5; - break; - case "TWO_FA_PUSH_DNA": - case 6: - message.pushType = 6; - break; } return message; }; /** - * Creates a plain object from a Router2FASendPushRequest message. Also converts values to other types if specified. + * Creates a plain object from a PAMConfiguration message. Also converts values to other types if specified. * @function toObject - * @memberof Router.Router2FASendPushRequest + * @memberof PAM.PAMConfiguration * @static - * @param {Router.Router2FASendPushRequest} message Router2FASendPushRequest + * @param {PAM.PAMConfiguration} message PAMConfiguration * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Router2FASendPushRequest.toObject = function toObject(message, options) { + PAMConfiguration.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.children = []; if (options.defaults) { if (options.bytes === String) - object.transmissionKey = ""; + object.configurationUid = ""; else { - object.transmissionKey = []; + object.configurationUid = []; if (options.bytes !== Array) - object.transmissionKey = $util.newBuffer(object.transmissionKey); + object.configurationUid = $util.newBuffer(object.configurationUid); } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.nodeId = options.longs === String ? "0" : 0; if (options.bytes === String) - object.sessionToken = ""; + object.controllerUid = ""; else { - object.sessionToken = []; + object.controllerUid = []; if (options.bytes !== Array) - object.sessionToken = $util.newBuffer(object.sessionToken); + object.controllerUid = $util.newBuffer(object.controllerUid); } - object.pushType = options.enums === String ? "TWO_FA_PUSH_NONE" : 0; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.created = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.lastModified = options.longs === String ? "0" : 0; + } + if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) + object.configurationUid = options.bytes === String ? $util.base64.encode(message.configurationUid, 0, message.configurationUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.configurationUid) : message.configurationUid; + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (typeof 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")) + 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")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.created != null && message.hasOwnProperty("created")) + if (typeof message.created === "number") + object.created = options.longs === String ? String(message.created) : message.created; + else + object.created = options.longs === String ? $util.Long.prototype.toString.call(message.created) : options.longs === Number ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() : message.created; + if (message.lastModified != null && message.hasOwnProperty("lastModified")) + if (typeof message.lastModified === "number") + object.lastModified = options.longs === String ? String(message.lastModified) : message.lastModified; + else + object.lastModified = options.longs === String ? $util.Long.prototype.toString.call(message.lastModified) : options.longs === Number ? new $util.LongBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0).toNumber() : message.lastModified; + if (message.children && message.children.length) { + object.children = []; + for (let j = 0; j < message.children.length; ++j) + object.children[j] = $root.PAM.PAMElement.toObject(message.children[j], options); } - if (message.transmissionKey != null && message.hasOwnProperty("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")) - 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")) - object.pushType = options.enums === String ? $root.Authentication.TwoFactorPushType[message.pushType] === undefined ? message.pushType : $root.Authentication.TwoFactorPushType[message.pushType] : message.pushType; return object; }; /** - * Converts this Router2FASendPushRequest to JSON. + * Converts this PAMConfiguration to JSON. * @function toJSON - * @memberof Router.Router2FASendPushRequest + * @memberof PAM.PAMConfiguration * @instance * @returns {Object.} JSON object */ - Router2FASendPushRequest.prototype.toJSON = function toJSON() { + PAMConfiguration.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Router2FASendPushRequest + * Gets the default type url for PAMConfiguration * @function getTypeUrl - * @memberof Router.Router2FASendPushRequest + * @memberof PAM.PAMConfiguration * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Router2FASendPushRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMConfiguration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.Router2FASendPushRequest"; + return typeUrlPrefix + "/PAM.PAMConfiguration"; }; - return Router2FASendPushRequest; + return PAMConfiguration; })(); - Router.Router2FAGetWebAuthnChallengeRequest = (function() { + PAM.PAMConfigurations = (function() { /** - * Properties of a Router2FAGetWebAuthnChallengeRequest. - * @memberof Router - * @interface IRouter2FAGetWebAuthnChallengeRequest - * @property {Uint8Array|null} [transmissionKey] Router2FAGetWebAuthnChallengeRequest transmissionKey - * @property {Uint8Array|null} [sessionToken] Router2FAGetWebAuthnChallengeRequest sessionToken + * Properties of a PAMConfigurations. + * @memberof PAM + * @interface IPAMConfigurations + * @property {Array.|null} [configurations] PAMConfigurations configurations */ /** - * Constructs a new Router2FAGetWebAuthnChallengeRequest. - * @memberof Router - * @classdesc Represents a Router2FAGetWebAuthnChallengeRequest. - * @implements IRouter2FAGetWebAuthnChallengeRequest + * Constructs a new PAMConfigurations. + * @memberof PAM + * @classdesc Represents a PAMConfigurations. + * @implements IPAMConfigurations * @constructor - * @param {Router.IRouter2FAGetWebAuthnChallengeRequest=} [properties] Properties to set + * @param {PAM.IPAMConfigurations=} [properties] Properties to set */ - function Router2FAGetWebAuthnChallengeRequest(properties) { + function PAMConfigurations(properties) { + this.configurations = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -255622,89 +287329,78 @@ export const Router = $root.Router = (() => { } /** - * Router2FAGetWebAuthnChallengeRequest transmissionKey. - * @member {Uint8Array} transmissionKey - * @memberof Router.Router2FAGetWebAuthnChallengeRequest - * @instance - */ - Router2FAGetWebAuthnChallengeRequest.prototype.transmissionKey = $util.newBuffer([]); - - /** - * Router2FAGetWebAuthnChallengeRequest sessionToken. - * @member {Uint8Array} sessionToken - * @memberof Router.Router2FAGetWebAuthnChallengeRequest + * PAMConfigurations configurations. + * @member {Array.} configurations + * @memberof PAM.PAMConfigurations * @instance */ - Router2FAGetWebAuthnChallengeRequest.prototype.sessionToken = $util.newBuffer([]); + PAMConfigurations.prototype.configurations = $util.emptyArray; /** - * Creates a new Router2FAGetWebAuthnChallengeRequest instance using the specified properties. + * Creates a new PAMConfigurations instance using the specified properties. * @function create - * @memberof Router.Router2FAGetWebAuthnChallengeRequest + * @memberof PAM.PAMConfigurations * @static - * @param {Router.IRouter2FAGetWebAuthnChallengeRequest=} [properties] Properties to set - * @returns {Router.Router2FAGetWebAuthnChallengeRequest} Router2FAGetWebAuthnChallengeRequest instance + * @param {PAM.IPAMConfigurations=} [properties] Properties to set + * @returns {PAM.PAMConfigurations} PAMConfigurations instance */ - Router2FAGetWebAuthnChallengeRequest.create = function create(properties) { - return new Router2FAGetWebAuthnChallengeRequest(properties); + PAMConfigurations.create = function create(properties) { + return new PAMConfigurations(properties); }; /** - * Encodes the specified Router2FAGetWebAuthnChallengeRequest message. Does not implicitly {@link Router.Router2FAGetWebAuthnChallengeRequest.verify|verify} messages. + * Encodes the specified PAMConfigurations message. Does not implicitly {@link PAM.PAMConfigurations.verify|verify} messages. * @function encode - * @memberof Router.Router2FAGetWebAuthnChallengeRequest + * @memberof PAM.PAMConfigurations * @static - * @param {Router.IRouter2FAGetWebAuthnChallengeRequest} message Router2FAGetWebAuthnChallengeRequest message or plain object to encode + * @param {PAM.IPAMConfigurations} message PAMConfigurations message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Router2FAGetWebAuthnChallengeRequest.encode = function encode(message, writer) { + PAMConfigurations.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transmissionKey != null && Object.hasOwnProperty.call(message, "transmissionKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.transmissionKey); - if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sessionToken); + if (message.configurations != null && message.configurations.length) + for (let i = 0; i < message.configurations.length; ++i) + $root.PAM.PAMConfiguration.encode(message.configurations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Router2FAGetWebAuthnChallengeRequest message, length delimited. Does not implicitly {@link Router.Router2FAGetWebAuthnChallengeRequest.verify|verify} messages. + * Encodes the specified PAMConfigurations message, length delimited. Does not implicitly {@link PAM.PAMConfigurations.verify|verify} messages. * @function encodeDelimited - * @memberof Router.Router2FAGetWebAuthnChallengeRequest + * @memberof PAM.PAMConfigurations * @static - * @param {Router.IRouter2FAGetWebAuthnChallengeRequest} message Router2FAGetWebAuthnChallengeRequest message or plain object to encode + * @param {PAM.IPAMConfigurations} message PAMConfigurations message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Router2FAGetWebAuthnChallengeRequest.encodeDelimited = function encodeDelimited(message, writer) { + PAMConfigurations.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Router2FAGetWebAuthnChallengeRequest message from the specified reader or buffer. + * Decodes a PAMConfigurations message from the specified reader or buffer. * @function decode - * @memberof Router.Router2FAGetWebAuthnChallengeRequest + * @memberof PAM.PAMConfigurations * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.Router2FAGetWebAuthnChallengeRequest} Router2FAGetWebAuthnChallengeRequest + * @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 */ - Router2FAGetWebAuthnChallengeRequest.decode = function decode(reader, length) { + PAMConfigurations.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.Router2FAGetWebAuthnChallengeRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMConfigurations(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.transmissionKey = reader.bytes(); - break; - } - case 2: { - message.sessionToken = reader.bytes(); + if (!(message.configurations && message.configurations.length)) + message.configurations = []; + message.configurations.push($root.PAM.PAMConfiguration.decode(reader, reader.uint32())); break; } default: @@ -255716,151 +287412,148 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a Router2FAGetWebAuthnChallengeRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMConfigurations message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.Router2FAGetWebAuthnChallengeRequest + * @memberof PAM.PAMConfigurations * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.Router2FAGetWebAuthnChallengeRequest} Router2FAGetWebAuthnChallengeRequest + * @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 */ - Router2FAGetWebAuthnChallengeRequest.decodeDelimited = function decodeDelimited(reader) { + PAMConfigurations.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Router2FAGetWebAuthnChallengeRequest message. + * Verifies a PAMConfigurations message. * @function verify - * @memberof Router.Router2FAGetWebAuthnChallengeRequest + * @memberof PAM.PAMConfigurations * @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) { + PAMConfigurations.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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.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]); + if (error) + return "configurations." + error; + } + } return null; }; /** - * Creates a Router2FAGetWebAuthnChallengeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMConfigurations message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.Router2FAGetWebAuthnChallengeRequest + * @memberof PAM.PAMConfigurations * @static * @param {Object.} object Plain object - * @returns {Router.Router2FAGetWebAuthnChallengeRequest} Router2FAGetWebAuthnChallengeRequest + * @returns {PAM.PAMConfigurations} PAMConfigurations */ - Router2FAGetWebAuthnChallengeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Router.Router2FAGetWebAuthnChallengeRequest) + PAMConfigurations.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMConfigurations) return object; - let message = new $root.Router.Router2FAGetWebAuthnChallengeRequest(); - if (object.transmissionKey != null) - if (typeof object.transmissionKey === "string") - $util.base64.decode(object.transmissionKey, message.transmissionKey = $util.newBuffer($util.base64.length(object.transmissionKey)), 0); - else if (object.transmissionKey.length >= 0) - message.transmissionKey = object.transmissionKey; - if (object.sessionToken != null) - if (typeof object.sessionToken === "string") - $util.base64.decode(object.sessionToken, message.sessionToken = $util.newBuffer($util.base64.length(object.sessionToken)), 0); - else if (object.sessionToken.length >= 0) - message.sessionToken = object.sessionToken; + let message = new $root.PAM.PAMConfigurations(); + if (object.configurations) { + if (!Array.isArray(object.configurations)) + throw TypeError(".PAM.PAMConfigurations.configurations: array expected"); + message.configurations = []; + for (let i = 0; i < object.configurations.length; ++i) { + if (typeof object.configurations[i] !== "object") + throw TypeError(".PAM.PAMConfigurations.configurations: object expected"); + message.configurations[i] = $root.PAM.PAMConfiguration.fromObject(object.configurations[i]); + } + } return message; }; /** - * Creates a plain object from a Router2FAGetWebAuthnChallengeRequest message. Also converts values to other types if specified. + * Creates a plain object from a PAMConfigurations message. Also converts values to other types if specified. * @function toObject - * @memberof Router.Router2FAGetWebAuthnChallengeRequest + * @memberof PAM.PAMConfigurations * @static - * @param {Router.Router2FAGetWebAuthnChallengeRequest} message Router2FAGetWebAuthnChallengeRequest + * @param {PAM.PAMConfigurations} message PAMConfigurations * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Router2FAGetWebAuthnChallengeRequest.toObject = function toObject(message, options) { + PAMConfigurations.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.transmissionKey = ""; - else { - object.transmissionKey = []; - if (options.bytes !== Array) - object.transmissionKey = $util.newBuffer(object.transmissionKey); - } - if (options.bytes === String) - object.sessionToken = ""; - else { - object.sessionToken = []; - if (options.bytes !== Array) - object.sessionToken = $util.newBuffer(object.sessionToken); - } + if (options.arrays || options.defaults) + object.configurations = []; + if (message.configurations && message.configurations.length) { + object.configurations = []; + for (let j = 0; j < message.configurations.length; ++j) + object.configurations[j] = $root.PAM.PAMConfiguration.toObject(message.configurations[j], options); } - if (message.transmissionKey != null && message.hasOwnProperty("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")) - 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; }; /** - * Converts this Router2FAGetWebAuthnChallengeRequest to JSON. + * Converts this PAMConfigurations to JSON. * @function toJSON - * @memberof Router.Router2FAGetWebAuthnChallengeRequest + * @memberof PAM.PAMConfigurations * @instance * @returns {Object.} JSON object */ - Router2FAGetWebAuthnChallengeRequest.prototype.toJSON = function toJSON() { + PAMConfigurations.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Router2FAGetWebAuthnChallengeRequest + * Gets the default type url for PAMConfigurations * @function getTypeUrl - * @memberof Router.Router2FAGetWebAuthnChallengeRequest + * @memberof PAM.PAMConfigurations * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Router2FAGetWebAuthnChallengeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMConfigurations.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.Router2FAGetWebAuthnChallengeRequest"; + return typeUrlPrefix + "/PAM.PAMConfigurations"; }; - return Router2FAGetWebAuthnChallengeRequest; + return PAMConfigurations; })(); - Router.Router2FAGetWebAuthnChallengeResponse = (function() { + PAM.PAMController = (function() { /** - * Properties of a Router2FAGetWebAuthnChallengeResponse. - * @memberof Router - * @interface IRouter2FAGetWebAuthnChallengeResponse - * @property {string|null} [challenge] Router2FAGetWebAuthnChallengeResponse challenge - * @property {Array.|null} [capabilities] Router2FAGetWebAuthnChallengeResponse capabilities + * Properties of a PAMController. + * @memberof PAM + * @interface IPAMController + * @property {Uint8Array|null} [controllerUid] PAMController controllerUid + * @property {string|null} [controllerName] PAMController controllerName + * @property {string|null} [deviceToken] PAMController deviceToken + * @property {string|null} [deviceName] PAMController deviceName + * @property {number|Long|null} [nodeId] PAMController nodeId + * @property {number|Long|null} [created] PAMController created + * @property {number|Long|null} [lastModified] PAMController lastModified + * @property {Uint8Array|null} [applicationUid] PAMController applicationUid + * @property {Enterprise.AppClientType|null} [appClientType] PAMController appClientType + * @property {boolean|null} [isInitialized] PAMController isInitialized */ /** - * Constructs a new Router2FAGetWebAuthnChallengeResponse. - * @memberof Router - * @classdesc Represents a Router2FAGetWebAuthnChallengeResponse. - * @implements IRouter2FAGetWebAuthnChallengeResponse + * Constructs a new PAMController. + * @memberof PAM + * @classdesc Represents a PAMController. + * @implements IPAMController * @constructor - * @param {Router.IRouter2FAGetWebAuthnChallengeResponse=} [properties] Properties to set + * @param {PAM.IPAMController=} [properties] Properties to set */ - function Router2FAGetWebAuthnChallengeResponse(properties) { - this.capabilities = []; + function PAMController(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -255868,92 +287561,201 @@ export const Router = $root.Router = (() => { } /** - * Router2FAGetWebAuthnChallengeResponse challenge. - * @member {string} challenge - * @memberof Router.Router2FAGetWebAuthnChallengeResponse + * PAMController controllerUid. + * @member {Uint8Array} controllerUid + * @memberof PAM.PAMController * @instance */ - Router2FAGetWebAuthnChallengeResponse.prototype.challenge = ""; + PAMController.prototype.controllerUid = $util.newBuffer([]); /** - * Router2FAGetWebAuthnChallengeResponse capabilities. - * @member {Array.} capabilities - * @memberof Router.Router2FAGetWebAuthnChallengeResponse + * PAMController controllerName. + * @member {string} controllerName + * @memberof PAM.PAMController * @instance */ - Router2FAGetWebAuthnChallengeResponse.prototype.capabilities = $util.emptyArray; + PAMController.prototype.controllerName = ""; /** - * Creates a new Router2FAGetWebAuthnChallengeResponse instance using the specified properties. + * PAMController deviceToken. + * @member {string} deviceToken + * @memberof PAM.PAMController + * @instance + */ + PAMController.prototype.deviceToken = ""; + + /** + * PAMController deviceName. + * @member {string} deviceName + * @memberof PAM.PAMController + * @instance + */ + PAMController.prototype.deviceName = ""; + + /** + * PAMController nodeId. + * @member {number|Long} nodeId + * @memberof PAM.PAMController + * @instance + */ + PAMController.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * PAMController created. + * @member {number|Long} created + * @memberof PAM.PAMController + * @instance + */ + PAMController.prototype.created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * PAMController lastModified. + * @member {number|Long} lastModified + * @memberof PAM.PAMController + * @instance + */ + PAMController.prototype.lastModified = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * PAMController applicationUid. + * @member {Uint8Array} applicationUid + * @memberof PAM.PAMController + * @instance + */ + PAMController.prototype.applicationUid = $util.newBuffer([]); + + /** + * PAMController appClientType. + * @member {Enterprise.AppClientType} appClientType + * @memberof PAM.PAMController + * @instance + */ + PAMController.prototype.appClientType = 0; + + /** + * PAMController isInitialized. + * @member {boolean} isInitialized + * @memberof PAM.PAMController + * @instance + */ + PAMController.prototype.isInitialized = false; + + /** + * Creates a new PAMController instance using the specified properties. * @function create - * @memberof Router.Router2FAGetWebAuthnChallengeResponse + * @memberof PAM.PAMController * @static - * @param {Router.IRouter2FAGetWebAuthnChallengeResponse=} [properties] Properties to set - * @returns {Router.Router2FAGetWebAuthnChallengeResponse} Router2FAGetWebAuthnChallengeResponse instance + * @param {PAM.IPAMController=} [properties] Properties to set + * @returns {PAM.PAMController} PAMController instance */ - Router2FAGetWebAuthnChallengeResponse.create = function create(properties) { - return new Router2FAGetWebAuthnChallengeResponse(properties); + PAMController.create = function create(properties) { + return new PAMController(properties); }; /** - * Encodes the specified Router2FAGetWebAuthnChallengeResponse message. Does not implicitly {@link Router.Router2FAGetWebAuthnChallengeResponse.verify|verify} messages. + * Encodes the specified PAMController message. Does not implicitly {@link PAM.PAMController.verify|verify} messages. * @function encode - * @memberof Router.Router2FAGetWebAuthnChallengeResponse + * @memberof PAM.PAMController * @static - * @param {Router.IRouter2FAGetWebAuthnChallengeResponse} message Router2FAGetWebAuthnChallengeResponse message or plain object to encode + * @param {PAM.IPAMController} message PAMController message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Router2FAGetWebAuthnChallengeResponse.encode = function encode(message, writer) { + PAMController.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.challenge != null && Object.hasOwnProperty.call(message, "challenge")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.challenge); - if (message.capabilities != null && message.capabilities.length) - for (let i = 0; i < message.capabilities.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.capabilities[i]); + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.controllerUid); + if (message.controllerName != null && Object.hasOwnProperty.call(message, "controllerName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.controllerName); + if (message.deviceToken != null && Object.hasOwnProperty.call(message, "deviceToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.deviceToken); + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.deviceName); + if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.nodeId); + if (message.created != null && Object.hasOwnProperty.call(message, "created")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.created); + if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.lastModified); + if (message.applicationUid != null && Object.hasOwnProperty.call(message, "applicationUid")) + writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.applicationUid); + if (message.appClientType != null && Object.hasOwnProperty.call(message, "appClientType")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.appClientType); + if (message.isInitialized != null && Object.hasOwnProperty.call(message, "isInitialized")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.isInitialized); return writer; }; /** - * Encodes the specified Router2FAGetWebAuthnChallengeResponse message, length delimited. Does not implicitly {@link Router.Router2FAGetWebAuthnChallengeResponse.verify|verify} messages. + * Encodes the specified PAMController message, length delimited. Does not implicitly {@link PAM.PAMController.verify|verify} messages. * @function encodeDelimited - * @memberof Router.Router2FAGetWebAuthnChallengeResponse + * @memberof PAM.PAMController * @static - * @param {Router.IRouter2FAGetWebAuthnChallengeResponse} message Router2FAGetWebAuthnChallengeResponse message or plain object to encode + * @param {PAM.IPAMController} message PAMController message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Router2FAGetWebAuthnChallengeResponse.encodeDelimited = function encodeDelimited(message, writer) { + PAMController.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Router2FAGetWebAuthnChallengeResponse message from the specified reader or buffer. + * Decodes a PAMController message from the specified reader or buffer. * @function decode - * @memberof Router.Router2FAGetWebAuthnChallengeResponse + * @memberof PAM.PAMController * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {Router.Router2FAGetWebAuthnChallengeResponse} Router2FAGetWebAuthnChallengeResponse + * @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 */ - Router2FAGetWebAuthnChallengeResponse.decode = function decode(reader, length) { + PAMController.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.Router2FAGetWebAuthnChallengeResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMController(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.challenge = reader.string(); + message.controllerUid = reader.bytes(); break; } case 2: { - if (!(message.capabilities && message.capabilities.length)) - message.capabilities = []; - message.capabilities.push(reader.string()); + message.controllerName = reader.string(); + break; + } + case 3: { + message.deviceToken = reader.string(); + break; + } + case 4: { + message.deviceName = reader.string(); + break; + } + case 5: { + message.nodeId = reader.int64(); + break; + } + case 6: { + message.created = reader.int64(); + break; + } + case 7: { + message.lastModified = reader.int64(); + break; + } + case 8: { + message.applicationUid = reader.bytes(); + break; + } + case 9: { + message.appClientType = reader.int32(); + break; + } + case 10: { + message.isInitialized = reader.bool(); break; } default: @@ -255965,159 +287767,290 @@ export const Router = $root.Router = (() => { }; /** - * Decodes a Router2FAGetWebAuthnChallengeResponse message from the specified reader or buffer, length delimited. + * Decodes a PAMController message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof Router.Router2FAGetWebAuthnChallengeResponse + * @memberof PAM.PAMController * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Router.Router2FAGetWebAuthnChallengeResponse} Router2FAGetWebAuthnChallengeResponse + * @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 */ - Router2FAGetWebAuthnChallengeResponse.decodeDelimited = function decodeDelimited(reader) { + PAMController.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Router2FAGetWebAuthnChallengeResponse message. + * Verifies a PAMController message. * @function verify - * @memberof Router.Router2FAGetWebAuthnChallengeResponse + * @memberof PAM.PAMController * @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) { + PAMController.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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 Router2FAGetWebAuthnChallengeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PAMController message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof Router.Router2FAGetWebAuthnChallengeResponse + * @memberof PAM.PAMController * @static * @param {Object.} object Plain object - * @returns {Router.Router2FAGetWebAuthnChallengeResponse} Router2FAGetWebAuthnChallengeResponse + * @returns {PAM.PAMController} PAMController */ - Router2FAGetWebAuthnChallengeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Router.Router2FAGetWebAuthnChallengeResponse) + PAMController.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMController) return object; - let message = new $root.Router.Router2FAGetWebAuthnChallengeResponse(); - if (object.challenge != null) - message.challenge = String(object.challenge); - if (object.capabilities) { - if (!Array.isArray(object.capabilities)) - throw TypeError(".Router.Router2FAGetWebAuthnChallengeResponse.capabilities: array expected"); - message.capabilities = []; - for (let i = 0; i < object.capabilities.length; ++i) - message.capabilities[i] = String(object.capabilities[i]); + let message = new $root.PAM.PAMController(); + if (object.controllerUid != null) + if (typeof object.controllerUid === "string") + $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); + else if (object.controllerUid.length >= 0) + message.controllerUid = object.controllerUid; + if (object.controllerName != null) + message.controllerName = String(object.controllerName); + if (object.deviceToken != null) + message.deviceToken = String(object.deviceToken); + if (object.deviceName != null) + message.deviceName = String(object.deviceName); + if (object.nodeId != null) + if ($util.Long) + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === "string") + message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === "number") + message.nodeId = object.nodeId; + else if (typeof object.nodeId === "object") + message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); + if (object.created != null) + if ($util.Long) + (message.created = $util.Long.fromValue(object.created)).unsigned = false; + else if (typeof object.created === "string") + message.created = parseInt(object.created, 10); + else if (typeof object.created === "number") + message.created = object.created; + else if (typeof object.created === "object") + message.created = new $util.LongBits(object.created.low >>> 0, object.created.high >>> 0).toNumber(); + if (object.lastModified != null) + if ($util.Long) + (message.lastModified = $util.Long.fromValue(object.lastModified)).unsigned = false; + else if (typeof object.lastModified === "string") + message.lastModified = parseInt(object.lastModified, 10); + else if (typeof object.lastModified === "number") + message.lastModified = object.lastModified; + else if (typeof object.lastModified === "object") + message.lastModified = new $util.LongBits(object.lastModified.low >>> 0, object.lastModified.high >>> 0).toNumber(); + if (object.applicationUid != null) + if (typeof object.applicationUid === "string") + $util.base64.decode(object.applicationUid, message.applicationUid = $util.newBuffer($util.base64.length(object.applicationUid)), 0); + else if (object.applicationUid.length >= 0) + message.applicationUid = object.applicationUid; + switch (object.appClientType) { + default: + if (typeof object.appClientType === "number") { + message.appClientType = object.appClientType; + break; + } + break; + case "NOT_USED": + case 0: + message.appClientType = 0; + break; + case "GENERAL": + case 1: + message.appClientType = 1; + break; + case "DISCOVERY_AND_ROTATION_CONTROLLER": + case 2: + message.appClientType = 2; + break; + case "KCM_CONTROLLER": + case 3: + message.appClientType = 3; + break; + case "SELF_DESTRUCT": + case 4: + message.appClientType = 4; + break; } + if (object.isInitialized != null) + message.isInitialized = Boolean(object.isInitialized); return message; }; /** - * Creates a plain object from a Router2FAGetWebAuthnChallengeResponse message. Also converts values to other types if specified. + * Creates a plain object from a PAMController message. Also converts values to other types if specified. * @function toObject - * @memberof Router.Router2FAGetWebAuthnChallengeResponse + * @memberof PAM.PAMController * @static - * @param {Router.Router2FAGetWebAuthnChallengeResponse} message Router2FAGetWebAuthnChallengeResponse + * @param {PAM.PAMController} message PAMController * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Router2FAGetWebAuthnChallengeResponse.toObject = function toObject(message, options) { + PAMController.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.capabilities = []; - if (options.defaults) - object.challenge = ""; - if (message.challenge != null && message.hasOwnProperty("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 (options.defaults) { + if (options.bytes === String) + object.controllerUid = ""; + else { + object.controllerUid = []; + if (options.bytes !== Array) + object.controllerUid = $util.newBuffer(object.controllerUid); + } + object.controllerName = ""; + object.deviceToken = ""; + object.deviceName = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.nodeId = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.created = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.lastModified = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.applicationUid = ""; + else { + object.applicationUid = []; + if (options.bytes !== Array) + object.applicationUid = $util.newBuffer(object.applicationUid); + } + object.appClientType = options.enums === String ? "NOT_USED" : 0; + object.isInitialized = false; } + if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) + object.controllerUid = options.bytes === String ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUid) : message.controllerUid; + if (message.controllerName != null && message.hasOwnProperty("controllerName")) + object.controllerName = message.controllerName; + if (message.deviceToken != null && message.hasOwnProperty("deviceToken")) + object.deviceToken = message.deviceToken; + if (message.deviceName != null && message.hasOwnProperty("deviceName")) + object.deviceName = message.deviceName; + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (typeof message.nodeId === "number") + object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; + else + object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; + if (message.created != null && message.hasOwnProperty("created")) + if (typeof message.created === "number") + object.created = options.longs === String ? String(message.created) : message.created; + else + object.created = options.longs === String ? $util.Long.prototype.toString.call(message.created) : options.longs === Number ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() : message.created; + if (message.lastModified != null && message.hasOwnProperty("lastModified")) + if (typeof 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")) + 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")) + 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")) + object.isInitialized = message.isInitialized; return object; }; /** - * Converts this Router2FAGetWebAuthnChallengeResponse to JSON. + * Converts this PAMController to JSON. * @function toJSON - * @memberof Router.Router2FAGetWebAuthnChallengeResponse + * @memberof PAM.PAMController * @instance * @returns {Object.} JSON object */ - Router2FAGetWebAuthnChallengeResponse.prototype.toJSON = function toJSON() { + PAMController.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Router2FAGetWebAuthnChallengeResponse + * Gets the default type url for PAMController * @function getTypeUrl - * @memberof Router.Router2FAGetWebAuthnChallengeResponse + * @memberof PAM.PAMController * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Router2FAGetWebAuthnChallengeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMController.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/Router.Router2FAGetWebAuthnChallengeResponse"; + return typeUrlPrefix + "/PAM.PAMController"; }; - return Router2FAGetWebAuthnChallengeResponse; + return PAMController; })(); - return Router; -})(); - -export const PAM = $root.PAM = (() => { - - /** - * Namespace PAM. - * @exports PAM - * @namespace - */ - const PAM = {}; - - PAM.PAMRotationSchedule = (function() { + PAM.PAMSetMaxInstanceCountRequest = (function() { /** - * Properties of a PAMRotationSchedule. + * Properties of a PAMSetMaxInstanceCountRequest. * @memberof PAM - * @interface IPAMRotationSchedule - * @property {Uint8Array|null} [recordUid] PAMRotationSchedule recordUid - * @property {Uint8Array|null} [configurationUid] PAMRotationSchedule configurationUid - * @property {Uint8Array|null} [controllerUid] PAMRotationSchedule controllerUid - * @property {string|null} [scheduleData] PAMRotationSchedule scheduleData - * @property {boolean|null} [noSchedule] PAMRotationSchedule noSchedule + * @interface IPAMSetMaxInstanceCountRequest + * @property {Uint8Array|null} [controllerUid] PAMSetMaxInstanceCountRequest controllerUid + * @property {number|null} [maxInstanceCount] PAMSetMaxInstanceCountRequest maxInstanceCount */ /** - * Constructs a new PAMRotationSchedule. + * Constructs a new PAMSetMaxInstanceCountRequest. * @memberof PAM - * @classdesc Represents a PAMRotationSchedule. - * @implements IPAMRotationSchedule + * @classdesc Represents a PAMSetMaxInstanceCountRequest. + * @implements IPAMSetMaxInstanceCountRequest * @constructor - * @param {PAM.IPAMRotationSchedule=} [properties] Properties to set + * @param {PAM.IPAMSetMaxInstanceCountRequest=} [properties] Properties to set */ - function PAMRotationSchedule(properties) { + function PAMSetMaxInstanceCountRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -256125,131 +288058,89 @@ export const PAM = $root.PAM = (() => { } /** - * PAMRotationSchedule recordUid. - * @member {Uint8Array} recordUid - * @memberof PAM.PAMRotationSchedule - * @instance - */ - PAMRotationSchedule.prototype.recordUid = $util.newBuffer([]); - - /** - * PAMRotationSchedule configurationUid. - * @member {Uint8Array} configurationUid - * @memberof PAM.PAMRotationSchedule - * @instance - */ - PAMRotationSchedule.prototype.configurationUid = $util.newBuffer([]); - - /** - * PAMRotationSchedule controllerUid. + * PAMSetMaxInstanceCountRequest controllerUid. * @member {Uint8Array} controllerUid - * @memberof PAM.PAMRotationSchedule - * @instance - */ - PAMRotationSchedule.prototype.controllerUid = $util.newBuffer([]); - - /** - * PAMRotationSchedule scheduleData. - * @member {string} scheduleData - * @memberof PAM.PAMRotationSchedule + * @memberof PAM.PAMSetMaxInstanceCountRequest * @instance */ - PAMRotationSchedule.prototype.scheduleData = ""; + PAMSetMaxInstanceCountRequest.prototype.controllerUid = $util.newBuffer([]); /** - * PAMRotationSchedule noSchedule. - * @member {boolean} noSchedule - * @memberof PAM.PAMRotationSchedule + * PAMSetMaxInstanceCountRequest maxInstanceCount. + * @member {number} maxInstanceCount + * @memberof PAM.PAMSetMaxInstanceCountRequest * @instance */ - PAMRotationSchedule.prototype.noSchedule = false; + PAMSetMaxInstanceCountRequest.prototype.maxInstanceCount = 0; /** - * Creates a new PAMRotationSchedule instance using the specified properties. + * Creates a new PAMSetMaxInstanceCountRequest instance using the specified properties. * @function create - * @memberof PAM.PAMRotationSchedule + * @memberof PAM.PAMSetMaxInstanceCountRequest * @static - * @param {PAM.IPAMRotationSchedule=} [properties] Properties to set - * @returns {PAM.PAMRotationSchedule} PAMRotationSchedule instance + * @param {PAM.IPAMSetMaxInstanceCountRequest=} [properties] Properties to set + * @returns {PAM.PAMSetMaxInstanceCountRequest} PAMSetMaxInstanceCountRequest instance */ - PAMRotationSchedule.create = function create(properties) { - return new PAMRotationSchedule(properties); + PAMSetMaxInstanceCountRequest.create = function create(properties) { + return new PAMSetMaxInstanceCountRequest(properties); }; /** - * Encodes the specified PAMRotationSchedule message. Does not implicitly {@link PAM.PAMRotationSchedule.verify|verify} messages. + * Encodes the specified PAMSetMaxInstanceCountRequest message. Does not implicitly {@link PAM.PAMSetMaxInstanceCountRequest.verify|verify} messages. * @function encode - * @memberof PAM.PAMRotationSchedule + * @memberof PAM.PAMSetMaxInstanceCountRequest * @static - * @param {PAM.IPAMRotationSchedule} message PAMRotationSchedule message or plain object to encode + * @param {PAM.IPAMSetMaxInstanceCountRequest} message PAMSetMaxInstanceCountRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRotationSchedule.encode = function encode(message, writer) { + PAMSetMaxInstanceCountRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.configurationUid); if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.controllerUid); - if (message.scheduleData != null && Object.hasOwnProperty.call(message, "scheduleData")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.scheduleData); - if (message.noSchedule != null && Object.hasOwnProperty.call(message, "noSchedule")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.noSchedule); + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.controllerUid); + if (message.maxInstanceCount != null && Object.hasOwnProperty.call(message, "maxInstanceCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxInstanceCount); return writer; }; /** - * Encodes the specified PAMRotationSchedule message, length delimited. Does not implicitly {@link PAM.PAMRotationSchedule.verify|verify} messages. + * Encodes the specified PAMSetMaxInstanceCountRequest message, length delimited. Does not implicitly {@link PAM.PAMSetMaxInstanceCountRequest.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMRotationSchedule + * @memberof PAM.PAMSetMaxInstanceCountRequest * @static - * @param {PAM.IPAMRotationSchedule} message PAMRotationSchedule message or plain object to encode + * @param {PAM.IPAMSetMaxInstanceCountRequest} message PAMSetMaxInstanceCountRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRotationSchedule.encodeDelimited = function encodeDelimited(message, writer) { + PAMSetMaxInstanceCountRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMRotationSchedule message from the specified reader or buffer. + * Decodes a PAMSetMaxInstanceCountRequest message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMRotationSchedule + * @memberof PAM.PAMSetMaxInstanceCountRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMRotationSchedule} PAMRotationSchedule + * @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 */ - PAMRotationSchedule.decode = function decode(reader, length) { + PAMSetMaxInstanceCountRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRotationSchedule(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMSetMaxInstanceCountRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); - break; - } - case 2: { - message.configurationUid = reader.bytes(); - break; - } - case 3: { message.controllerUid = reader.bytes(); break; } - case 4: { - message.scheduleData = reader.string(); - break; - } - case 5: { - message.noSchedule = reader.bool(); + case 2: { + message.maxInstanceCount = reader.int32(); break; } default: @@ -256261,112 +288152,77 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMRotationSchedule message from the specified reader or buffer, length delimited. + * Decodes a PAMSetMaxInstanceCountRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMRotationSchedule + * @memberof PAM.PAMSetMaxInstanceCountRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMRotationSchedule} PAMRotationSchedule + * @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 */ - PAMRotationSchedule.decodeDelimited = function decodeDelimited(reader) { + PAMSetMaxInstanceCountRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMRotationSchedule message. + * Verifies a PAMSetMaxInstanceCountRequest message. * @function verify - * @memberof PAM.PAMRotationSchedule + * @memberof PAM.PAMSetMaxInstanceCountRequest * @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) { + PAMSetMaxInstanceCountRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.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"; + if (message.maxInstanceCount != null && message.hasOwnProperty("maxInstanceCount")) + if (!$util.isInteger(message.maxInstanceCount)) + return "maxInstanceCount: integer expected"; return null; }; /** - * Creates a PAMRotationSchedule message from a plain object. Also converts values to their respective internal types. + * Creates a PAMSetMaxInstanceCountRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMRotationSchedule + * @memberof PAM.PAMSetMaxInstanceCountRequest * @static * @param {Object.} object Plain object - * @returns {PAM.PAMRotationSchedule} PAMRotationSchedule + * @returns {PAM.PAMSetMaxInstanceCountRequest} PAMSetMaxInstanceCountRequest */ - PAMRotationSchedule.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMRotationSchedule) + PAMSetMaxInstanceCountRequest.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMSetMaxInstanceCountRequest) return object; - let message = new $root.PAM.PAMRotationSchedule(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.configurationUid != null) - if (typeof object.configurationUid === "string") - $util.base64.decode(object.configurationUid, message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid)), 0); - else if (object.configurationUid.length >= 0) - message.configurationUid = object.configurationUid; + let message = new $root.PAM.PAMSetMaxInstanceCountRequest(); if (object.controllerUid != null) if (typeof object.controllerUid === "string") $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); else if (object.controllerUid.length >= 0) message.controllerUid = object.controllerUid; - if (object.scheduleData != null) - message.scheduleData = String(object.scheduleData); - if (object.noSchedule != null) - message.noSchedule = Boolean(object.noSchedule); + if (object.maxInstanceCount != null) + message.maxInstanceCount = object.maxInstanceCount | 0; return message; }; /** - * Creates a plain object from a PAMRotationSchedule message. Also converts values to other types if specified. + * Creates a plain object from a PAMSetMaxInstanceCountRequest message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMRotationSchedule + * @memberof PAM.PAMSetMaxInstanceCountRequest * @static - * @param {PAM.PAMRotationSchedule} message PAMRotationSchedule + * @param {PAM.PAMSetMaxInstanceCountRequest} message PAMSetMaxInstanceCountRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMRotationSchedule.toObject = function toObject(message, options) { + PAMSetMaxInstanceCountRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - if (options.bytes === String) - object.configurationUid = ""; - else { - object.configurationUid = []; - if (options.bytes !== Array) - object.configurationUid = $util.newBuffer(object.configurationUid); - } if (options.bytes === String) object.controllerUid = ""; else { @@ -256374,70 +288230,80 @@ export const PAM = $root.PAM = (() => { if (options.bytes !== Array) object.controllerUid = $util.newBuffer(object.controllerUid); } - object.scheduleData = ""; - object.noSchedule = false; + object.maxInstanceCount = 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) - object.configurationUid = options.bytes === String ? $util.base64.encode(message.configurationUid, 0, message.configurationUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.configurationUid) : message.configurationUid; if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) object.controllerUid = options.bytes === String ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUid) : message.controllerUid; - if (message.scheduleData != null && message.hasOwnProperty("scheduleData")) - object.scheduleData = message.scheduleData; - if (message.noSchedule != null && message.hasOwnProperty("noSchedule")) - object.noSchedule = message.noSchedule; + if (message.maxInstanceCount != null && message.hasOwnProperty("maxInstanceCount")) + object.maxInstanceCount = message.maxInstanceCount; return object; }; /** - * Converts this PAMRotationSchedule to JSON. + * Converts this PAMSetMaxInstanceCountRequest to JSON. * @function toJSON - * @memberof PAM.PAMRotationSchedule + * @memberof PAM.PAMSetMaxInstanceCountRequest * @instance * @returns {Object.} JSON object */ - PAMRotationSchedule.prototype.toJSON = function toJSON() { + PAMSetMaxInstanceCountRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMRotationSchedule + * Gets the default type url for PAMSetMaxInstanceCountRequest * @function getTypeUrl - * @memberof PAM.PAMRotationSchedule + * @memberof PAM.PAMSetMaxInstanceCountRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMRotationSchedule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMSetMaxInstanceCountRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMRotationSchedule"; + return typeUrlPrefix + "/PAM.PAMSetMaxInstanceCountRequest"; }; - return PAMRotationSchedule; + return PAMSetMaxInstanceCountRequest; })(); - PAM.PAMRotationSchedulesResponse = (function() { + /** + * ControllerMessageType enum. + * @name PAM.ControllerMessageType + * @enum {number} + * @property {number} CMT_GENERAL=0 CMT_GENERAL value + * @property {number} CMT_ROTATE=1 CMT_ROTATE value + * @property {number} CMT_DISCOVERY=2 CMT_DISCOVERY value + * @property {number} CMT_CONNECT=3 CMT_CONNECT value + */ + PAM.ControllerMessageType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CMT_GENERAL"] = 0; + values[valuesById[1] = "CMT_ROTATE"] = 1; + values[valuesById[2] = "CMT_DISCOVERY"] = 2; + values[valuesById[3] = "CMT_CONNECT"] = 3; + return values; + })(); + + PAM.ControllerResponse = (function() { /** - * Properties of a PAMRotationSchedulesResponse. + * Properties of a ControllerResponse. * @memberof PAM - * @interface IPAMRotationSchedulesResponse - * @property {Array.|null} [schedules] PAMRotationSchedulesResponse schedules + * @interface IControllerResponse + * @property {string|null} [payload] ControllerResponse payload */ /** - * Constructs a new PAMRotationSchedulesResponse. + * Constructs a new ControllerResponse. * @memberof PAM - * @classdesc Represents a PAMRotationSchedulesResponse. - * @implements IPAMRotationSchedulesResponse + * @classdesc Represents a ControllerResponse. + * @implements IControllerResponse * @constructor - * @param {PAM.IPAMRotationSchedulesResponse=} [properties] Properties to set + * @param {PAM.IControllerResponse=} [properties] Properties to set */ - function PAMRotationSchedulesResponse(properties) { - this.schedules = []; + function ControllerResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -256445,78 +288311,75 @@ export const PAM = $root.PAM = (() => { } /** - * PAMRotationSchedulesResponse schedules. - * @member {Array.} schedules - * @memberof PAM.PAMRotationSchedulesResponse + * ControllerResponse payload. + * @member {string} payload + * @memberof PAM.ControllerResponse * @instance */ - PAMRotationSchedulesResponse.prototype.schedules = $util.emptyArray; + ControllerResponse.prototype.payload = ""; /** - * Creates a new PAMRotationSchedulesResponse instance using the specified properties. + * Creates a new ControllerResponse instance using the specified properties. * @function create - * @memberof PAM.PAMRotationSchedulesResponse + * @memberof PAM.ControllerResponse * @static - * @param {PAM.IPAMRotationSchedulesResponse=} [properties] Properties to set - * @returns {PAM.PAMRotationSchedulesResponse} PAMRotationSchedulesResponse instance + * @param {PAM.IControllerResponse=} [properties] Properties to set + * @returns {PAM.ControllerResponse} ControllerResponse instance */ - PAMRotationSchedulesResponse.create = function create(properties) { - return new PAMRotationSchedulesResponse(properties); + ControllerResponse.create = function create(properties) { + return new ControllerResponse(properties); }; /** - * Encodes the specified PAMRotationSchedulesResponse message. Does not implicitly {@link PAM.PAMRotationSchedulesResponse.verify|verify} messages. + * Encodes the specified ControllerResponse message. Does not implicitly {@link PAM.ControllerResponse.verify|verify} messages. * @function encode - * @memberof PAM.PAMRotationSchedulesResponse + * @memberof PAM.ControllerResponse * @static - * @param {PAM.IPAMRotationSchedulesResponse} message PAMRotationSchedulesResponse message or plain object to encode + * @param {PAM.IControllerResponse} message ControllerResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRotationSchedulesResponse.encode = function encode(message, writer) { + ControllerResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.schedules != null && message.schedules.length) - for (let i = 0; i < message.schedules.length; ++i) - $root.PAM.PAMRotationSchedule.encode(message.schedules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.payload); return writer; }; /** - * Encodes the specified PAMRotationSchedulesResponse message, length delimited. Does not implicitly {@link PAM.PAMRotationSchedulesResponse.verify|verify} messages. + * Encodes the specified ControllerResponse message, length delimited. Does not implicitly {@link PAM.ControllerResponse.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMRotationSchedulesResponse + * @memberof PAM.ControllerResponse * @static - * @param {PAM.IPAMRotationSchedulesResponse} message PAMRotationSchedulesResponse message or plain object to encode + * @param {PAM.IControllerResponse} message ControllerResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRotationSchedulesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ControllerResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMRotationSchedulesResponse message from the specified reader or buffer. + * Decodes a ControllerResponse message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMRotationSchedulesResponse + * @memberof PAM.ControllerResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMRotationSchedulesResponse} PAMRotationSchedulesResponse + * @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 */ - PAMRotationSchedulesResponse.decode = function decode(reader, length) { + ControllerResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRotationSchedulesResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.ControllerResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.schedules && message.schedules.length)) - message.schedules = []; - message.schedules.push($root.PAM.PAMRotationSchedule.decode(reader, reader.uint32())); + message.payload = reader.string(); break; } default: @@ -256528,144 +288391,123 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMRotationSchedulesResponse message from the specified reader or buffer, length delimited. + * Decodes a ControllerResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMRotationSchedulesResponse + * @memberof PAM.ControllerResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMRotationSchedulesResponse} PAMRotationSchedulesResponse + * @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 */ - PAMRotationSchedulesResponse.decodeDelimited = function decodeDelimited(reader) { + ControllerResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMRotationSchedulesResponse message. + * Verifies a ControllerResponse message. * @function verify - * @memberof PAM.PAMRotationSchedulesResponse + * @memberof PAM.ControllerResponse * @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) { + ControllerResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.PAM.PAMRotationSchedule.verify(message.schedules[i]); - if (error) - return "schedules." + error; - } - } + if (message.payload != null && message.hasOwnProperty("payload")) + if (!$util.isString(message.payload)) + return "payload: string expected"; return null; }; /** - * Creates a PAMRotationSchedulesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ControllerResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMRotationSchedulesResponse + * @memberof PAM.ControllerResponse * @static * @param {Object.} object Plain object - * @returns {PAM.PAMRotationSchedulesResponse} PAMRotationSchedulesResponse + * @returns {PAM.ControllerResponse} ControllerResponse */ - PAMRotationSchedulesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMRotationSchedulesResponse) + ControllerResponse.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.ControllerResponse) return object; - let message = new $root.PAM.PAMRotationSchedulesResponse(); - if (object.schedules) { - if (!Array.isArray(object.schedules)) - throw TypeError(".PAM.PAMRotationSchedulesResponse.schedules: array expected"); - message.schedules = []; - for (let i = 0; i < object.schedules.length; ++i) { - if (typeof object.schedules[i] !== "object") - throw TypeError(".PAM.PAMRotationSchedulesResponse.schedules: object expected"); - message.schedules[i] = $root.PAM.PAMRotationSchedule.fromObject(object.schedules[i]); - } - } + let message = new $root.PAM.ControllerResponse(); + if (object.payload != null) + message.payload = String(object.payload); return message; }; /** - * Creates a plain object from a PAMRotationSchedulesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ControllerResponse message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMRotationSchedulesResponse + * @memberof PAM.ControllerResponse * @static - * @param {PAM.PAMRotationSchedulesResponse} message PAMRotationSchedulesResponse + * @param {PAM.ControllerResponse} message ControllerResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMRotationSchedulesResponse.toObject = function toObject(message, options) { + ControllerResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.schedules = []; - if (message.schedules && message.schedules.length) { - object.schedules = []; - for (let j = 0; j < message.schedules.length; ++j) - object.schedules[j] = $root.PAM.PAMRotationSchedule.toObject(message.schedules[j], options); - } + if (options.defaults) + object.payload = ""; + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = message.payload; return object; }; /** - * Converts this PAMRotationSchedulesResponse to JSON. + * Converts this ControllerResponse to JSON. * @function toJSON - * @memberof PAM.PAMRotationSchedulesResponse + * @memberof PAM.ControllerResponse * @instance * @returns {Object.} JSON object */ - PAMRotationSchedulesResponse.prototype.toJSON = function toJSON() { + ControllerResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMRotationSchedulesResponse + * Gets the default type url for ControllerResponse * @function getTypeUrl - * @memberof PAM.PAMRotationSchedulesResponse + * @memberof PAM.ControllerResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMRotationSchedulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ControllerResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMRotationSchedulesResponse"; + return typeUrlPrefix + "/PAM.ControllerResponse"; }; - return PAMRotationSchedulesResponse; + return ControllerResponse; })(); - PAM.PAMOnlineController = (function() { + PAM.PAMConfigurationController = (function() { /** - * Properties of a PAMOnlineController. + * Properties of a PAMConfigurationController. * @memberof PAM - * @interface IPAMOnlineController - * @property {Uint8Array|null} [controllerUid] PAMOnlineController controllerUid - * @property {number|Long|null} [connectedOn] PAMOnlineController connectedOn - * @property {string|null} [ipAddress] PAMOnlineController ipAddress - * @property {string|null} [version] PAMOnlineController version - * @property {Array.|null} [connections] PAMOnlineController connections + * @interface IPAMConfigurationController + * @property {Uint8Array|null} [configurationUid] PAMConfigurationController configurationUid + * @property {Uint8Array|null} [controllerUid] PAMConfigurationController controllerUid */ /** - * Constructs a new PAMOnlineController. + * Constructs a new PAMConfigurationController. * @memberof PAM - * @classdesc Represents a PAMOnlineController. - * @implements IPAMOnlineController + * @classdesc Represents a PAMConfigurationController. + * @implements IPAMConfigurationController * @constructor - * @param {PAM.IPAMOnlineController=} [properties] Properties to set + * @param {PAM.IPAMConfigurationController=} [properties] Properties to set */ - function PAMOnlineController(properties) { - this.connections = []; + function PAMConfigurationController(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -256673,134 +288515,89 @@ export const PAM = $root.PAM = (() => { } /** - * PAMOnlineController controllerUid. - * @member {Uint8Array} controllerUid - * @memberof PAM.PAMOnlineController - * @instance - */ - PAMOnlineController.prototype.controllerUid = $util.newBuffer([]); - - /** - * PAMOnlineController connectedOn. - * @member {number|Long} connectedOn - * @memberof PAM.PAMOnlineController - * @instance - */ - PAMOnlineController.prototype.connectedOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * PAMOnlineController ipAddress. - * @member {string} ipAddress - * @memberof PAM.PAMOnlineController - * @instance - */ - PAMOnlineController.prototype.ipAddress = ""; - - /** - * PAMOnlineController version. - * @member {string} version - * @memberof PAM.PAMOnlineController + * PAMConfigurationController configurationUid. + * @member {Uint8Array} configurationUid + * @memberof PAM.PAMConfigurationController * @instance */ - PAMOnlineController.prototype.version = ""; + PAMConfigurationController.prototype.configurationUid = $util.newBuffer([]); /** - * PAMOnlineController connections. - * @member {Array.} connections - * @memberof PAM.PAMOnlineController + * PAMConfigurationController controllerUid. + * @member {Uint8Array} controllerUid + * @memberof PAM.PAMConfigurationController * @instance */ - PAMOnlineController.prototype.connections = $util.emptyArray; + PAMConfigurationController.prototype.controllerUid = $util.newBuffer([]); /** - * Creates a new PAMOnlineController instance using the specified properties. + * Creates a new PAMConfigurationController instance using the specified properties. * @function create - * @memberof PAM.PAMOnlineController + * @memberof PAM.PAMConfigurationController * @static - * @param {PAM.IPAMOnlineController=} [properties] Properties to set - * @returns {PAM.PAMOnlineController} PAMOnlineController instance + * @param {PAM.IPAMConfigurationController=} [properties] Properties to set + * @returns {PAM.PAMConfigurationController} PAMConfigurationController instance */ - PAMOnlineController.create = function create(properties) { - return new PAMOnlineController(properties); + PAMConfigurationController.create = function create(properties) { + return new PAMConfigurationController(properties); }; /** - * Encodes the specified PAMOnlineController message. Does not implicitly {@link PAM.PAMOnlineController.verify|verify} messages. + * Encodes the specified PAMConfigurationController message. Does not implicitly {@link PAM.PAMConfigurationController.verify|verify} messages. * @function encode - * @memberof PAM.PAMOnlineController + * @memberof PAM.PAMConfigurationController * @static - * @param {PAM.IPAMOnlineController} message PAMOnlineController message or plain object to encode + * @param {PAM.IPAMConfigurationController} message PAMConfigurationController message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMOnlineController.encode = function encode(message, writer) { + PAMConfigurationController.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.configurationUid); if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.controllerUid); - if (message.connectedOn != null && Object.hasOwnProperty.call(message, "connectedOn")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.connectedOn); - if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.ipAddress); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.version); - if (message.connections != null && message.connections.length) - for (let i = 0; i < message.connections.length; ++i) - $root.PAM.PAMWebRtcConnection.encode(message.connections[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.controllerUid); return writer; }; /** - * Encodes the specified PAMOnlineController message, length delimited. Does not implicitly {@link PAM.PAMOnlineController.verify|verify} messages. + * Encodes the specified PAMConfigurationController message, length delimited. Does not implicitly {@link PAM.PAMConfigurationController.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMOnlineController + * @memberof PAM.PAMConfigurationController * @static - * @param {PAM.IPAMOnlineController} message PAMOnlineController message or plain object to encode + * @param {PAM.IPAMConfigurationController} message PAMConfigurationController message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMOnlineController.encodeDelimited = function encodeDelimited(message, writer) { + PAMConfigurationController.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMOnlineController message from the specified reader or buffer. + * Decodes a PAMConfigurationController message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMOnlineController + * @memberof PAM.PAMConfigurationController * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMOnlineController} PAMOnlineController + * @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 */ - PAMOnlineController.decode = function decode(reader, length) { + PAMConfigurationController.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMOnlineController(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMConfigurationController(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.controllerUid = reader.bytes(); + message.configurationUid = reader.bytes(); break; } case 2: { - message.connectedOn = reader.int64(); - break; - } - case 3: { - message.ipAddress = reader.string(); - break; - } - case 4: { - message.version = reader.string(); - break; - } - case 5: { - if (!(message.connections && message.connections.length)) - message.connections = []; - message.connections.push($root.PAM.PAMWebRtcConnection.decode(reader, reader.uint32())); + message.controllerUid = reader.bytes(); break; } default: @@ -256812,115 +288609,87 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMOnlineController message from the specified reader or buffer, length delimited. + * Decodes a PAMConfigurationController message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMOnlineController + * @memberof PAM.PAMConfigurationController * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMOnlineController} PAMOnlineController + * @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 */ - PAMOnlineController.decodeDelimited = function decodeDelimited(reader) { + PAMConfigurationController.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMOnlineController message. + * Verifies a PAMConfigurationController message. * @function verify - * @memberof PAM.PAMOnlineController + * @memberof PAM.PAMConfigurationController * @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) { + PAMConfigurationController.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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]); - if (error) - return "connections." + error; - } - } return null; }; /** - * Creates a PAMOnlineController message from a plain object. Also converts values to their respective internal types. + * Creates a PAMConfigurationController message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMOnlineController + * @memberof PAM.PAMConfigurationController * @static * @param {Object.} object Plain object - * @returns {PAM.PAMOnlineController} PAMOnlineController + * @returns {PAM.PAMConfigurationController} PAMConfigurationController */ - PAMOnlineController.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMOnlineController) + PAMConfigurationController.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMConfigurationController) return object; - let message = new $root.PAM.PAMOnlineController(); + let message = new $root.PAM.PAMConfigurationController(); + if (object.configurationUid != null) + if (typeof object.configurationUid === "string") + $util.base64.decode(object.configurationUid, message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid)), 0); + else if (object.configurationUid.length >= 0) + message.configurationUid = object.configurationUid; if (object.controllerUid != null) if (typeof object.controllerUid === "string") $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); else if (object.controllerUid.length >= 0) message.controllerUid = object.controllerUid; - if (object.connectedOn != null) - if ($util.Long) - (message.connectedOn = $util.Long.fromValue(object.connectedOn)).unsigned = false; - else if (typeof object.connectedOn === "string") - message.connectedOn = parseInt(object.connectedOn, 10); - else if (typeof object.connectedOn === "number") - message.connectedOn = object.connectedOn; - else if (typeof object.connectedOn === "object") - message.connectedOn = new $util.LongBits(object.connectedOn.low >>> 0, object.connectedOn.high >>> 0).toNumber(); - if (object.ipAddress != null) - message.ipAddress = String(object.ipAddress); - if (object.version != null) - message.version = String(object.version); - if (object.connections) { - if (!Array.isArray(object.connections)) - throw TypeError(".PAM.PAMOnlineController.connections: array expected"); - message.connections = []; - for (let i = 0; i < object.connections.length; ++i) { - if (typeof object.connections[i] !== "object") - throw TypeError(".PAM.PAMOnlineController.connections: object expected"); - message.connections[i] = $root.PAM.PAMWebRtcConnection.fromObject(object.connections[i]); - } - } return message; }; /** - * Creates a plain object from a PAMOnlineController message. Also converts values to other types if specified. + * Creates a plain object from a PAMConfigurationController message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMOnlineController + * @memberof PAM.PAMConfigurationController * @static - * @param {PAM.PAMOnlineController} message PAMOnlineController + * @param {PAM.PAMConfigurationController} message PAMConfigurationController * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMOnlineController.toObject = function toObject(message, options) { + PAMConfigurationController.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.connections = []; if (options.defaults) { + if (options.bytes === String) + object.configurationUid = ""; + else { + object.configurationUid = []; + if (options.bytes !== Array) + object.configurationUid = $util.newBuffer(object.configurationUid); + } if (options.bytes === String) object.controllerUid = ""; else { @@ -256928,117 +288697,66 @@ export const PAM = $root.PAM = (() => { if (options.bytes !== Array) object.controllerUid = $util.newBuffer(object.controllerUid); } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.connectedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.connectedOn = options.longs === String ? "0" : 0; - object.ipAddress = ""; - object.version = ""; } + if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) + object.configurationUid = options.bytes === String ? $util.base64.encode(message.configurationUid, 0, message.configurationUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.configurationUid) : message.configurationUid; if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) object.controllerUid = options.bytes === String ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUid) : message.controllerUid; - if (message.connectedOn != null && message.hasOwnProperty("connectedOn")) - if (typeof 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")) - object.ipAddress = message.ipAddress; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.connections && message.connections.length) { - object.connections = []; - for (let j = 0; j < message.connections.length; ++j) - object.connections[j] = $root.PAM.PAMWebRtcConnection.toObject(message.connections[j], options); - } return object; }; /** - * Converts this PAMOnlineController to JSON. + * Converts this PAMConfigurationController to JSON. * @function toJSON - * @memberof PAM.PAMOnlineController + * @memberof PAM.PAMConfigurationController * @instance * @returns {Object.} JSON object */ - PAMOnlineController.prototype.toJSON = function toJSON() { + PAMConfigurationController.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMOnlineController + * Gets the default type url for PAMConfigurationController * @function getTypeUrl - * @memberof PAM.PAMOnlineController + * @memberof PAM.PAMConfigurationController * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMOnlineController.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMConfigurationController.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMOnlineController"; + return typeUrlPrefix + "/PAM.PAMConfigurationController"; }; - return PAMOnlineController; - })(); - - /** - * WebRtcConnectionType enum. - * @name PAM.WebRtcConnectionType - * @enum {number} - * @property {number} CONNECTION=0 CONNECTION value - * @property {number} TUNNEL=1 TUNNEL value - * @property {number} SSH=2 SSH value - * @property {number} RDP=3 RDP value - * @property {number} HTTP=4 HTTP value - * @property {number} VNC=5 VNC value - * @property {number} TELNET=6 TELNET value - * @property {number} MYSQL=7 MYSQL value - * @property {number} SQL_SERVER=8 SQL_SERVER value - * @property {number} POSTGRESQL=9 POSTGRESQL value - * @property {number} KUBERNETES=10 KUBERNETES value - */ - PAM.WebRtcConnectionType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CONNECTION"] = 0; - values[valuesById[1] = "TUNNEL"] = 1; - values[valuesById[2] = "SSH"] = 2; - values[valuesById[3] = "RDP"] = 3; - values[valuesById[4] = "HTTP"] = 4; - values[valuesById[5] = "VNC"] = 5; - values[valuesById[6] = "TELNET"] = 6; - values[valuesById[7] = "MYSQL"] = 7; - values[valuesById[8] = "SQL_SERVER"] = 8; - values[valuesById[9] = "POSTGRESQL"] = 9; - values[valuesById[10] = "KUBERNETES"] = 10; - return values; + return PAMConfigurationController; })(); - PAM.PAMWebRtcConnection = (function() { + PAM.ConfigurationAddRequest = (function() { /** - * Properties of a PAMWebRtcConnection. + * Properties of a ConfigurationAddRequest. * @memberof PAM - * @interface IPAMWebRtcConnection - * @property {Uint8Array|null} [connectionUid] PAMWebRtcConnection connectionUid - * @property {PAM.WebRtcConnectionType|null} [type] PAMWebRtcConnection type - * @property {Uint8Array|null} [recordUid] PAMWebRtcConnection recordUid - * @property {string|null} [userName] PAMWebRtcConnection userName - * @property {number|Long|null} [startedOn] PAMWebRtcConnection startedOn - * @property {Uint8Array|null} [configurationUid] PAMWebRtcConnection configurationUid + * @interface IConfigurationAddRequest + * @property {Uint8Array|null} [configurationUid] ConfigurationAddRequest configurationUid + * @property {Uint8Array|null} [recordKey] ConfigurationAddRequest recordKey + * @property {Uint8Array|null} [data] ConfigurationAddRequest data + * @property {Array.|null} [recordLinks] ConfigurationAddRequest recordLinks + * @property {Records.IRecordAudit|null} [audit] ConfigurationAddRequest audit */ /** - * Constructs a new PAMWebRtcConnection. + * Constructs a new ConfigurationAddRequest. * @memberof PAM - * @classdesc Represents a PAMWebRtcConnection. - * @implements IPAMWebRtcConnection + * @classdesc Represents a ConfigurationAddRequest. + * @implements IConfigurationAddRequest * @constructor - * @param {PAM.IPAMWebRtcConnection=} [properties] Properties to set + * @param {PAM.IConfigurationAddRequest=} [properties] Properties to set */ - function PAMWebRtcConnection(properties) { + function ConfigurationAddRequest(properties) { + this.recordLinks = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -257046,145 +288764,134 @@ export const PAM = $root.PAM = (() => { } /** - * PAMWebRtcConnection connectionUid. - * @member {Uint8Array} connectionUid - * @memberof PAM.PAMWebRtcConnection - * @instance - */ - PAMWebRtcConnection.prototype.connectionUid = $util.newBuffer([]); - - /** - * PAMWebRtcConnection type. - * @member {PAM.WebRtcConnectionType} type - * @memberof PAM.PAMWebRtcConnection + * ConfigurationAddRequest configurationUid. + * @member {Uint8Array} configurationUid + * @memberof PAM.ConfigurationAddRequest * @instance */ - PAMWebRtcConnection.prototype.type = 0; + ConfigurationAddRequest.prototype.configurationUid = $util.newBuffer([]); /** - * PAMWebRtcConnection recordUid. - * @member {Uint8Array} recordUid - * @memberof PAM.PAMWebRtcConnection + * ConfigurationAddRequest recordKey. + * @member {Uint8Array} recordKey + * @memberof PAM.ConfigurationAddRequest * @instance */ - PAMWebRtcConnection.prototype.recordUid = $util.newBuffer([]); + ConfigurationAddRequest.prototype.recordKey = $util.newBuffer([]); /** - * PAMWebRtcConnection userName. - * @member {string} userName - * @memberof PAM.PAMWebRtcConnection + * ConfigurationAddRequest data. + * @member {Uint8Array} data + * @memberof PAM.ConfigurationAddRequest * @instance */ - PAMWebRtcConnection.prototype.userName = ""; + ConfigurationAddRequest.prototype.data = $util.newBuffer([]); /** - * PAMWebRtcConnection startedOn. - * @member {number|Long} startedOn - * @memberof PAM.PAMWebRtcConnection + * ConfigurationAddRequest recordLinks. + * @member {Array.} recordLinks + * @memberof PAM.ConfigurationAddRequest * @instance */ - PAMWebRtcConnection.prototype.startedOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ConfigurationAddRequest.prototype.recordLinks = $util.emptyArray; /** - * PAMWebRtcConnection configurationUid. - * @member {Uint8Array} configurationUid - * @memberof PAM.PAMWebRtcConnection + * ConfigurationAddRequest audit. + * @member {Records.IRecordAudit|null|undefined} audit + * @memberof PAM.ConfigurationAddRequest * @instance */ - PAMWebRtcConnection.prototype.configurationUid = $util.newBuffer([]); + ConfigurationAddRequest.prototype.audit = null; /** - * Creates a new PAMWebRtcConnection instance using the specified properties. + * Creates a new ConfigurationAddRequest instance using the specified properties. * @function create - * @memberof PAM.PAMWebRtcConnection + * @memberof PAM.ConfigurationAddRequest * @static - * @param {PAM.IPAMWebRtcConnection=} [properties] Properties to set - * @returns {PAM.PAMWebRtcConnection} PAMWebRtcConnection instance + * @param {PAM.IConfigurationAddRequest=} [properties] Properties to set + * @returns {PAM.ConfigurationAddRequest} ConfigurationAddRequest instance */ - PAMWebRtcConnection.create = function create(properties) { - return new PAMWebRtcConnection(properties); + ConfigurationAddRequest.create = function create(properties) { + return new ConfigurationAddRequest(properties); }; /** - * Encodes the specified PAMWebRtcConnection message. Does not implicitly {@link PAM.PAMWebRtcConnection.verify|verify} messages. + * Encodes the specified ConfigurationAddRequest message. Does not implicitly {@link PAM.ConfigurationAddRequest.verify|verify} messages. * @function encode - * @memberof PAM.PAMWebRtcConnection + * @memberof PAM.ConfigurationAddRequest * @static - * @param {PAM.IPAMWebRtcConnection} message PAMWebRtcConnection message or plain object to encode + * @param {PAM.IConfigurationAddRequest} message ConfigurationAddRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMWebRtcConnection.encode = function encode(message, writer) { + ConfigurationAddRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connectionUid != null && Object.hasOwnProperty.call(message, "connectionUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.connectionUid); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordUid); - if (message.userName != null && Object.hasOwnProperty.call(message, "userName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.userName); - if (message.startedOn != null && Object.hasOwnProperty.call(message, "startedOn")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.startedOn); if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.configurationUid); + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.configurationUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordKey); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); + if (message.recordLinks != null && message.recordLinks.length) + for (let i = 0; i < message.recordLinks.length; ++i) + $root.Records.RecordLink.encode(message.recordLinks[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) + $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified PAMWebRtcConnection message, length delimited. Does not implicitly {@link PAM.PAMWebRtcConnection.verify|verify} messages. + * Encodes the specified ConfigurationAddRequest message, length delimited. Does not implicitly {@link PAM.ConfigurationAddRequest.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMWebRtcConnection + * @memberof PAM.ConfigurationAddRequest * @static - * @param {PAM.IPAMWebRtcConnection} message PAMWebRtcConnection message or plain object to encode + * @param {PAM.IConfigurationAddRequest} message ConfigurationAddRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMWebRtcConnection.encodeDelimited = function encodeDelimited(message, writer) { + ConfigurationAddRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMWebRtcConnection message from the specified reader or buffer. + * Decodes a ConfigurationAddRequest message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMWebRtcConnection + * @memberof PAM.ConfigurationAddRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMWebRtcConnection} PAMWebRtcConnection + * @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 */ - PAMWebRtcConnection.decode = function decode(reader, length) { + ConfigurationAddRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMWebRtcConnection(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.ConfigurationAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.connectionUid = reader.bytes(); + message.configurationUid = reader.bytes(); break; } case 2: { - message.type = reader.int32(); + message.recordKey = reader.bytes(); break; } case 3: { - message.recordUid = reader.bytes(); + message.data = reader.bytes(); break; } case 4: { - message.userName = reader.string(); + if (!(message.recordLinks && message.recordLinks.length)) + message.recordLinks = []; + message.recordLinks.push($root.Records.RecordLink.decode(reader, reader.uint32())); break; } case 5: { - message.startedOn = reader.int64(); - break; - } - case 6: { - message.configurationUid = reader.bytes(); + message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); break; } default: @@ -257196,271 +288903,207 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMWebRtcConnection message from the specified reader or buffer, length delimited. + * Decodes a ConfigurationAddRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMWebRtcConnection + * @memberof PAM.ConfigurationAddRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMWebRtcConnection} PAMWebRtcConnection + * @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 */ - PAMWebRtcConnection.decodeDelimited = function decodeDelimited(reader) { + ConfigurationAddRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMWebRtcConnection message. + * Verifies a ConfigurationAddRequest message. * @function verify - * @memberof PAM.PAMWebRtcConnection + * @memberof PAM.ConfigurationAddRequest * @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) { + ConfigurationAddRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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]); + if (error) + return "recordLinks." + error; + } + } + if (message.audit != null && message.hasOwnProperty("audit")) { + let error = $root.Records.RecordAudit.verify(message.audit); + if (error) + return "audit." + error; + } return null; }; /** - * Creates a PAMWebRtcConnection message from a plain object. Also converts values to their respective internal types. + * Creates a ConfigurationAddRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMWebRtcConnection + * @memberof PAM.ConfigurationAddRequest * @static * @param {Object.} object Plain object - * @returns {PAM.PAMWebRtcConnection} PAMWebRtcConnection + * @returns {PAM.ConfigurationAddRequest} ConfigurationAddRequest */ - PAMWebRtcConnection.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMWebRtcConnection) + ConfigurationAddRequest.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.ConfigurationAddRequest) return object; - let message = new $root.PAM.PAMWebRtcConnection(); - if (object.connectionUid != null) - if (typeof object.connectionUid === "string") - $util.base64.decode(object.connectionUid, message.connectionUid = $util.newBuffer($util.base64.length(object.connectionUid)), 0); - else if (object.connectionUid.length >= 0) - message.connectionUid = object.connectionUid; - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "CONNECTION": - case 0: - message.type = 0; - break; - case "TUNNEL": - case 1: - message.type = 1; - break; - case "SSH": - case 2: - message.type = 2; - break; - case "RDP": - case 3: - message.type = 3; - break; - case "HTTP": - case 4: - message.type = 4; - break; - case "VNC": - case 5: - message.type = 5; - break; - case "TELNET": - case 6: - message.type = 6; - break; - case "MYSQL": - case 7: - message.type = 7; - break; - case "SQL_SERVER": - case 8: - message.type = 8; - break; - case "POSTGRESQL": - case 9: - message.type = 9; - break; - case "KUBERNETES": - case 10: - message.type = 10; - break; - } - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.userName != null) - message.userName = String(object.userName); - if (object.startedOn != null) - if ($util.Long) - (message.startedOn = $util.Long.fromValue(object.startedOn)).unsigned = false; - else if (typeof object.startedOn === "string") - message.startedOn = parseInt(object.startedOn, 10); - else if (typeof object.startedOn === "number") - message.startedOn = object.startedOn; - else if (typeof object.startedOn === "object") - message.startedOn = new $util.LongBits(object.startedOn.low >>> 0, object.startedOn.high >>> 0).toNumber(); + let message = new $root.PAM.ConfigurationAddRequest(); if (object.configurationUid != null) if (typeof object.configurationUid === "string") $util.base64.decode(object.configurationUid, message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid)), 0); else if (object.configurationUid.length >= 0) message.configurationUid = object.configurationUid; + if (object.recordKey != null) + if (typeof object.recordKey === "string") + $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); + else if (object.recordKey.length >= 0) + message.recordKey = object.recordKey; + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + if (object.recordLinks) { + if (!Array.isArray(object.recordLinks)) + throw TypeError(".PAM.ConfigurationAddRequest.recordLinks: array expected"); + message.recordLinks = []; + for (let i = 0; i < object.recordLinks.length; ++i) { + if (typeof object.recordLinks[i] !== "object") + throw TypeError(".PAM.ConfigurationAddRequest.recordLinks: object expected"); + message.recordLinks[i] = $root.Records.RecordLink.fromObject(object.recordLinks[i]); + } + } + if (object.audit != null) { + if (typeof object.audit !== "object") + throw TypeError(".PAM.ConfigurationAddRequest.audit: object expected"); + message.audit = $root.Records.RecordAudit.fromObject(object.audit); + } return message; }; /** - * Creates a plain object from a PAMWebRtcConnection message. Also converts values to other types if specified. + * Creates a plain object from a ConfigurationAddRequest message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMWebRtcConnection + * @memberof PAM.ConfigurationAddRequest * @static - * @param {PAM.PAMWebRtcConnection} message PAMWebRtcConnection + * @param {PAM.ConfigurationAddRequest} message ConfigurationAddRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMWebRtcConnection.toObject = function toObject(message, options) { + ConfigurationAddRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.recordLinks = []; if (options.defaults) { if (options.bytes === String) - object.connectionUid = ""; + object.configurationUid = ""; else { - object.connectionUid = []; + object.configurationUid = []; if (options.bytes !== Array) - object.connectionUid = $util.newBuffer(object.connectionUid); + object.configurationUid = $util.newBuffer(object.configurationUid); } - object.type = options.enums === String ? "CONNECTION" : 0; if (options.bytes === String) - object.recordUid = ""; + object.recordKey = ""; else { - object.recordUid = []; + object.recordKey = []; if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + object.recordKey = $util.newBuffer(object.recordKey); } - object.userName = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.startedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.startedOn = options.longs === String ? "0" : 0; if (options.bytes === String) - object.configurationUid = ""; + object.data = ""; else { - object.configurationUid = []; + object.data = []; if (options.bytes !== Array) - object.configurationUid = $util.newBuffer(object.configurationUid); + object.data = $util.newBuffer(object.data); } + object.audit = null; } - if (message.connectionUid != null && message.hasOwnProperty("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")) - 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")) - 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")) - object.userName = message.userName; - if (message.startedOn != null && message.hasOwnProperty("startedOn")) - 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")) 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")) + 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")) + 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); + } + if (message.audit != null && message.hasOwnProperty("audit")) + object.audit = $root.Records.RecordAudit.toObject(message.audit, options); return object; }; /** - * Converts this PAMWebRtcConnection to JSON. + * Converts this ConfigurationAddRequest to JSON. * @function toJSON - * @memberof PAM.PAMWebRtcConnection + * @memberof PAM.ConfigurationAddRequest * @instance * @returns {Object.} JSON object */ - PAMWebRtcConnection.prototype.toJSON = function toJSON() { + ConfigurationAddRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMWebRtcConnection + * Gets the default type url for ConfigurationAddRequest * @function getTypeUrl - * @memberof PAM.PAMWebRtcConnection + * @memberof PAM.ConfigurationAddRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMWebRtcConnection.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ConfigurationAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMWebRtcConnection"; + return typeUrlPrefix + "/PAM.ConfigurationAddRequest"; }; - return PAMWebRtcConnection; + return ConfigurationAddRequest; })(); - PAM.PAMOnlineControllers = (function() { + PAM.RelayAccessCreds = (function() { /** - * Properties of a PAMOnlineControllers. + * Properties of a RelayAccessCreds. * @memberof PAM - * @interface IPAMOnlineControllers - * @property {Array.|null} [deprecated] PAMOnlineControllers deprecated - * @property {Array.|null} [controllers] PAMOnlineControllers controllers + * @interface IRelayAccessCreds + * @property {string|null} [username] RelayAccessCreds username + * @property {string|null} [password] RelayAccessCreds password + * @property {number|Long|null} [serverTime] RelayAccessCreds serverTime */ /** - * Constructs a new PAMOnlineControllers. + * Constructs a new RelayAccessCreds. * @memberof PAM - * @classdesc Represents a PAMOnlineControllers. - * @implements IPAMOnlineControllers + * @classdesc Represents a RelayAccessCreds. + * @implements IRelayAccessCreds * @constructor - * @param {PAM.IPAMOnlineControllers=} [properties] Properties to set + * @param {PAM.IRelayAccessCreds=} [properties] Properties to set */ - function PAMOnlineControllers(properties) { - this.deprecated = []; - this.controllers = []; + function RelayAccessCreds(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -257468,95 +289111,103 @@ export const PAM = $root.PAM = (() => { } /** - * PAMOnlineControllers deprecated. - * @member {Array.} deprecated - * @memberof PAM.PAMOnlineControllers + * RelayAccessCreds username. + * @member {string} username + * @memberof PAM.RelayAccessCreds * @instance */ - PAMOnlineControllers.prototype.deprecated = $util.emptyArray; + RelayAccessCreds.prototype.username = ""; /** - * PAMOnlineControllers controllers. - * @member {Array.} controllers - * @memberof PAM.PAMOnlineControllers + * RelayAccessCreds password. + * @member {string} password + * @memberof PAM.RelayAccessCreds * @instance */ - PAMOnlineControllers.prototype.controllers = $util.emptyArray; + RelayAccessCreds.prototype.password = ""; /** - * Creates a new PAMOnlineControllers instance using the specified properties. + * RelayAccessCreds serverTime. + * @member {number|Long} serverTime + * @memberof PAM.RelayAccessCreds + * @instance + */ + RelayAccessCreds.prototype.serverTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new RelayAccessCreds instance using the specified properties. * @function create - * @memberof PAM.PAMOnlineControllers + * @memberof PAM.RelayAccessCreds * @static - * @param {PAM.IPAMOnlineControllers=} [properties] Properties to set - * @returns {PAM.PAMOnlineControllers} PAMOnlineControllers instance + * @param {PAM.IRelayAccessCreds=} [properties] Properties to set + * @returns {PAM.RelayAccessCreds} RelayAccessCreds instance */ - PAMOnlineControllers.create = function create(properties) { - return new PAMOnlineControllers(properties); + RelayAccessCreds.create = function create(properties) { + return new RelayAccessCreds(properties); }; /** - * Encodes the specified PAMOnlineControllers message. Does not implicitly {@link PAM.PAMOnlineControllers.verify|verify} messages. + * Encodes the specified RelayAccessCreds message. Does not implicitly {@link PAM.RelayAccessCreds.verify|verify} messages. * @function encode - * @memberof PAM.PAMOnlineControllers + * @memberof PAM.RelayAccessCreds * @static - * @param {PAM.IPAMOnlineControllers} message PAMOnlineControllers message or plain object to encode + * @param {PAM.IRelayAccessCreds} message RelayAccessCreds message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMOnlineControllers.encode = function encode(message, writer) { + RelayAccessCreds.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && message.deprecated.length) - for (let i = 0; i < message.deprecated.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.deprecated[i]); - if (message.controllers != null && message.controllers.length) - for (let i = 0; i < message.controllers.length; ++i) - $root.PAM.PAMOnlineController.encode(message.controllers[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); + if (message.password != null && Object.hasOwnProperty.call(message, "password")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.password); + if (message.serverTime != null && Object.hasOwnProperty.call(message, "serverTime")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.serverTime); return writer; }; /** - * Encodes the specified PAMOnlineControllers message, length delimited. Does not implicitly {@link PAM.PAMOnlineControllers.verify|verify} messages. + * Encodes the specified RelayAccessCreds message, length delimited. Does not implicitly {@link PAM.RelayAccessCreds.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMOnlineControllers + * @memberof PAM.RelayAccessCreds * @static - * @param {PAM.IPAMOnlineControllers} message PAMOnlineControllers message or plain object to encode + * @param {PAM.IRelayAccessCreds} message RelayAccessCreds message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMOnlineControllers.encodeDelimited = function encodeDelimited(message, writer) { + RelayAccessCreds.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMOnlineControllers message from the specified reader or buffer. + * Decodes a RelayAccessCreds message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMOnlineControllers + * @memberof PAM.RelayAccessCreds * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMOnlineControllers} PAMOnlineControllers + * @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 */ - PAMOnlineControllers.decode = function decode(reader, length) { + RelayAccessCreds.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMOnlineControllers(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.RelayAccessCreds(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.deprecated && message.deprecated.length)) - message.deprecated = []; - message.deprecated.push(reader.bytes()); + message.username = reader.string(); break; } case 2: { - if (!(message.controllers && message.controllers.length)) - message.controllers = []; - message.controllers.push($root.PAM.PAMOnlineController.decode(reader, reader.uint32())); + message.password = reader.string(); + break; + } + case 3: { + message.serverTime = reader.int64(); break; } default: @@ -257568,164 +289219,202 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMOnlineControllers message from the specified reader or buffer, length delimited. + * Decodes a RelayAccessCreds message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMOnlineControllers + * @memberof PAM.RelayAccessCreds * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMOnlineControllers} PAMOnlineControllers + * @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 */ - PAMOnlineControllers.decodeDelimited = function decodeDelimited(reader) { + RelayAccessCreds.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMOnlineControllers message. + * Verifies a RelayAccessCreds message. * @function verify - * @memberof PAM.PAMOnlineControllers + * @memberof PAM.RelayAccessCreds * @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) { + RelayAccessCreds.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "controllers." + error; - } - } + 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 PAMOnlineControllers message from a plain object. Also converts values to their respective internal types. + * Creates a RelayAccessCreds message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMOnlineControllers + * @memberof PAM.RelayAccessCreds * @static * @param {Object.} object Plain object - * @returns {PAM.PAMOnlineControllers} PAMOnlineControllers + * @returns {PAM.RelayAccessCreds} RelayAccessCreds */ - PAMOnlineControllers.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMOnlineControllers) + RelayAccessCreds.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.RelayAccessCreds) return object; - let message = new $root.PAM.PAMOnlineControllers(); - if (object.deprecated) { - if (!Array.isArray(object.deprecated)) - throw TypeError(".PAM.PAMOnlineControllers.deprecated: array expected"); - message.deprecated = []; - for (let i = 0; i < object.deprecated.length; ++i) - if (typeof object.deprecated[i] === "string") - $util.base64.decode(object.deprecated[i], message.deprecated[i] = $util.newBuffer($util.base64.length(object.deprecated[i])), 0); - else if (object.deprecated[i].length >= 0) - message.deprecated[i] = object.deprecated[i]; - } - if (object.controllers) { - if (!Array.isArray(object.controllers)) - throw TypeError(".PAM.PAMOnlineControllers.controllers: array expected"); - message.controllers = []; - for (let i = 0; i < object.controllers.length; ++i) { - if (typeof object.controllers[i] !== "object") - throw TypeError(".PAM.PAMOnlineControllers.controllers: object expected"); - message.controllers[i] = $root.PAM.PAMOnlineController.fromObject(object.controllers[i]); - } - } + let message = new $root.PAM.RelayAccessCreds(); + if (object.username != null) + message.username = String(object.username); + if (object.password != null) + message.password = String(object.password); + if (object.serverTime != null) + if ($util.Long) + (message.serverTime = $util.Long.fromValue(object.serverTime)).unsigned = false; + else if (typeof object.serverTime === "string") + message.serverTime = parseInt(object.serverTime, 10); + else if (typeof object.serverTime === "number") + message.serverTime = object.serverTime; + else if (typeof object.serverTime === "object") + message.serverTime = new $util.LongBits(object.serverTime.low >>> 0, object.serverTime.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a PAMOnlineControllers message. Also converts values to other types if specified. + * Creates a plain object from a RelayAccessCreds message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMOnlineControllers + * @memberof PAM.RelayAccessCreds * @static - * @param {PAM.PAMOnlineControllers} message PAMOnlineControllers + * @param {PAM.RelayAccessCreds} message RelayAccessCreds * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMOnlineControllers.toObject = function toObject(message, options) { + RelayAccessCreds.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.deprecated = []; - object.controllers = []; - } - if (message.deprecated && message.deprecated.length) { - object.deprecated = []; - for (let j = 0; j < message.deprecated.length; ++j) - object.deprecated[j] = options.bytes === String ? $util.base64.encode(message.deprecated[j], 0, message.deprecated[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.deprecated[j]) : message.deprecated[j]; - } - if (message.controllers && message.controllers.length) { - object.controllers = []; - for (let j = 0; j < message.controllers.length; ++j) - object.controllers[j] = $root.PAM.PAMOnlineController.toObject(message.controllers[j], options); + if (options.defaults) { + object.username = ""; + object.password = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.serverTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.serverTime = options.longs === String ? "0" : 0; } + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.password != null && message.hasOwnProperty("password")) + object.password = message.password; + if (message.serverTime != null && message.hasOwnProperty("serverTime")) + if (typeof message.serverTime === "number") + object.serverTime = options.longs === String ? String(message.serverTime) : message.serverTime; + else + object.serverTime = options.longs === String ? $util.Long.prototype.toString.call(message.serverTime) : options.longs === Number ? new $util.LongBits(message.serverTime.low >>> 0, message.serverTime.high >>> 0).toNumber() : message.serverTime; return object; }; /** - * Converts this PAMOnlineControllers to JSON. + * Converts this RelayAccessCreds to JSON. * @function toJSON - * @memberof PAM.PAMOnlineControllers + * @memberof PAM.RelayAccessCreds * @instance * @returns {Object.} JSON object */ - PAMOnlineControllers.prototype.toJSON = function toJSON() { + RelayAccessCreds.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMOnlineControllers + * Gets the default type url for RelayAccessCreds * @function getTypeUrl - * @memberof PAM.PAMOnlineControllers + * @memberof PAM.RelayAccessCreds * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMOnlineControllers.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RelayAccessCreds.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMOnlineControllers"; + return typeUrlPrefix + "/PAM.RelayAccessCreds"; }; - return PAMOnlineControllers; + return RelayAccessCreds; })(); - PAM.PAMRotateRequest = (function() { + /** + * PAMRecordingType enum. + * @name PAM.PAMRecordingType + * @enum {number} + * @property {number} PRT_SESSION=0 PRT_SESSION value + * @property {number} PRT_TYPESCRIPT=1 PRT_TYPESCRIPT value + * @property {number} PRT_TIME=2 PRT_TIME value + * @property {number} PRT_SUMMARY=3 PRT_SUMMARY value + */ + PAM.PAMRecordingType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PRT_SESSION"] = 0; + values[valuesById[1] = "PRT_TYPESCRIPT"] = 1; + values[valuesById[2] = "PRT_TIME"] = 2; + values[valuesById[3] = "PRT_SUMMARY"] = 3; + return values; + })(); + + /** + * PAMRecordingRiskLevel enum. + * @name PAM.PAMRecordingRiskLevel + * @enum {number} + * @property {number} PRR_UNSPECIFIED=0 PRR_UNSPECIFIED value + * @property {number} PRR_LOW=1 PRR_LOW value + * @property {number} PRR_MEDIUM=2 PRR_MEDIUM value + * @property {number} PRR_HIGH=3 PRR_HIGH value + * @property {number} PRR_CRITICAL=4 PRR_CRITICAL value + */ + PAM.PAMRecordingRiskLevel = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PRR_UNSPECIFIED"] = 0; + values[valuesById[1] = "PRR_LOW"] = 1; + values[valuesById[2] = "PRR_MEDIUM"] = 2; + values[valuesById[3] = "PRR_HIGH"] = 3; + values[valuesById[4] = "PRR_CRITICAL"] = 4; + return values; + })(); + + PAM.PAMRecordingsRequest = (function() { /** - * Properties of a PAMRotateRequest. + * Properties of a PAMRecordingsRequest. * @memberof PAM - * @interface IPAMRotateRequest - * @property {Uint8Array|null} [requestUid] PAMRotateRequest requestUid - * @property {Uint8Array|null} [recordUid] PAMRotateRequest recordUid + * @interface IPAMRecordingsRequest + * @property {Uint8Array|null} [recordUid] PAMRecordingsRequest recordUid + * @property {number|null} [maxCount] PAMRecordingsRequest maxCount + * @property {number|Long|null} [rangeStart] PAMRecordingsRequest rangeStart + * @property {number|Long|null} [rangeEnd] PAMRecordingsRequest rangeEnd + * @property {Array.|null} [types] PAMRecordingsRequest types + * @property {Array.|null} [risks] PAMRecordingsRequest risks + * @property {Array.|null} [protocols] PAMRecordingsRequest protocols + * @property {Array.|null} [closeReasons] PAMRecordingsRequest closeReasons */ /** - * Constructs a new PAMRotateRequest. + * Constructs a new PAMRecordingsRequest. * @memberof PAM - * @classdesc Represents a PAMRotateRequest. - * @implements IPAMRotateRequest + * @classdesc Represents a PAMRecordingsRequest. + * @implements IPAMRecordingsRequest * @constructor - * @param {PAM.IPAMRotateRequest=} [properties] Properties to set + * @param {PAM.IPAMRecordingsRequest=} [properties] Properties to set */ - function PAMRotateRequest(properties) { + function PAMRecordingsRequest(properties) { + this.types = []; + this.risks = []; + this.protocols = []; + this.closeReasons = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -257733,89 +289422,234 @@ export const PAM = $root.PAM = (() => { } /** - * PAMRotateRequest requestUid. - * @member {Uint8Array} requestUid - * @memberof PAM.PAMRotateRequest + * PAMRecordingsRequest recordUid. + * @member {Uint8Array} recordUid + * @memberof PAM.PAMRecordingsRequest * @instance */ - PAMRotateRequest.prototype.requestUid = $util.newBuffer([]); + PAMRecordingsRequest.prototype.recordUid = $util.newBuffer([]); /** - * PAMRotateRequest recordUid. - * @member {Uint8Array} recordUid - * @memberof PAM.PAMRotateRequest + * PAMRecordingsRequest maxCount. + * @member {number} maxCount + * @memberof PAM.PAMRecordingsRequest * @instance */ - PAMRotateRequest.prototype.recordUid = $util.newBuffer([]); + PAMRecordingsRequest.prototype.maxCount = 0; /** - * Creates a new PAMRotateRequest instance using the specified properties. + * PAMRecordingsRequest rangeStart. + * @member {number|Long|null|undefined} rangeStart + * @memberof PAM.PAMRecordingsRequest + * @instance + */ + PAMRecordingsRequest.prototype.rangeStart = null; + + /** + * PAMRecordingsRequest rangeEnd. + * @member {number|Long|null|undefined} rangeEnd + * @memberof PAM.PAMRecordingsRequest + * @instance + */ + PAMRecordingsRequest.prototype.rangeEnd = null; + + /** + * PAMRecordingsRequest types. + * @member {Array.} types + * @memberof PAM.PAMRecordingsRequest + * @instance + */ + PAMRecordingsRequest.prototype.types = $util.emptyArray; + + /** + * PAMRecordingsRequest risks. + * @member {Array.} risks + * @memberof PAM.PAMRecordingsRequest + * @instance + */ + PAMRecordingsRequest.prototype.risks = $util.emptyArray; + + /** + * PAMRecordingsRequest protocols. + * @member {Array.} protocols + * @memberof PAM.PAMRecordingsRequest + * @instance + */ + PAMRecordingsRequest.prototype.protocols = $util.emptyArray; + + /** + * PAMRecordingsRequest closeReasons. + * @member {Array.} closeReasons + * @memberof PAM.PAMRecordingsRequest + * @instance + */ + PAMRecordingsRequest.prototype.closeReasons = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * PAMRecordingsRequest _rangeStart. + * @member {"rangeStart"|undefined} _rangeStart + * @memberof PAM.PAMRecordingsRequest + * @instance + */ + Object.defineProperty(PAMRecordingsRequest.prototype, "_rangeStart", { + get: $util.oneOfGetter($oneOfFields = ["rangeStart"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PAMRecordingsRequest _rangeEnd. + * @member {"rangeEnd"|undefined} _rangeEnd + * @memberof PAM.PAMRecordingsRequest + * @instance + */ + Object.defineProperty(PAMRecordingsRequest.prototype, "_rangeEnd", { + get: $util.oneOfGetter($oneOfFields = ["rangeEnd"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PAMRecordingsRequest instance using the specified properties. * @function create - * @memberof PAM.PAMRotateRequest + * @memberof PAM.PAMRecordingsRequest * @static - * @param {PAM.IPAMRotateRequest=} [properties] Properties to set - * @returns {PAM.PAMRotateRequest} PAMRotateRequest instance + * @param {PAM.IPAMRecordingsRequest=} [properties] Properties to set + * @returns {PAM.PAMRecordingsRequest} PAMRecordingsRequest instance */ - PAMRotateRequest.create = function create(properties) { - return new PAMRotateRequest(properties); + PAMRecordingsRequest.create = function create(properties) { + return new PAMRecordingsRequest(properties); }; /** - * Encodes the specified PAMRotateRequest message. Does not implicitly {@link PAM.PAMRotateRequest.verify|verify} messages. + * Encodes the specified PAMRecordingsRequest message. Does not implicitly {@link PAM.PAMRecordingsRequest.verify|verify} messages. * @function encode - * @memberof PAM.PAMRotateRequest + * @memberof PAM.PAMRecordingsRequest * @static - * @param {PAM.IPAMRotateRequest} message PAMRotateRequest message or plain object to encode + * @param {PAM.IPAMRecordingsRequest} message PAMRecordingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRotateRequest.encode = function encode(message, writer) { + PAMRecordingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.requestUid != null && Object.hasOwnProperty.call(message, "requestUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.requestUid); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.maxCount != null && Object.hasOwnProperty.call(message, "maxCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxCount); + if (message.rangeStart != null && Object.hasOwnProperty.call(message, "rangeStart")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.rangeStart); + if (message.rangeEnd != null && Object.hasOwnProperty.call(message, "rangeEnd")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.rangeEnd); + if (message.types != null && message.types.length) { + writer.uint32(/* id 5, wireType 2 =*/42).fork(); + for (let i = 0; i < message.types.length; ++i) + writer.int32(message.types[i]); + writer.ldelim(); + } + if (message.risks != null && message.risks.length) { + writer.uint32(/* id 6, wireType 2 =*/50).fork(); + for (let i = 0; i < message.risks.length; ++i) + writer.int32(message.risks[i]); + writer.ldelim(); + } + if (message.protocols != null && message.protocols.length) + for (let i = 0; i < message.protocols.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.protocols[i]); + if (message.closeReasons != null && message.closeReasons.length) { + writer.uint32(/* id 8, wireType 2 =*/66).fork(); + for (let i = 0; i < message.closeReasons.length; ++i) + writer.int32(message.closeReasons[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified PAMRotateRequest message, length delimited. Does not implicitly {@link PAM.PAMRotateRequest.verify|verify} messages. + * Encodes the specified PAMRecordingsRequest message, length delimited. Does not implicitly {@link PAM.PAMRecordingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMRotateRequest + * @memberof PAM.PAMRecordingsRequest * @static - * @param {PAM.IPAMRotateRequest} message PAMRotateRequest message or plain object to encode + * @param {PAM.IPAMRecordingsRequest} message PAMRecordingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRotateRequest.encodeDelimited = function encodeDelimited(message, writer) { + PAMRecordingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMRotateRequest message from the specified reader or buffer. + * Decodes a PAMRecordingsRequest message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMRotateRequest + * @memberof PAM.PAMRecordingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMRotateRequest} PAMRotateRequest + * @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 */ - PAMRotateRequest.decode = function decode(reader, length) { + PAMRecordingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRotateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRecordingsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.requestUid = reader.bytes(); + message.recordUid = reader.bytes(); break; } case 2: { - message.recordUid = reader.bytes(); + message.maxCount = reader.int32(); + break; + } + case 3: { + message.rangeStart = reader.int64(); + break; + } + case 4: { + message.rangeEnd = reader.int64(); + break; + } + case 5: { + if (!(message.types && message.types.length)) + message.types = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.types.push(reader.int32()); + } else + message.types.push(reader.int32()); + break; + } + case 6: { + if (!(message.risks && message.risks.length)) + message.risks = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.risks.push(reader.int32()); + } else + message.risks.push(reader.int32()); + break; + } + case 7: { + if (!(message.protocols && message.protocols.length)) + message.protocols = []; + message.protocols.push(reader.string()); + break; + } + case 8: { + if (!(message.closeReasons && message.closeReasons.length)) + message.closeReasons = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.closeReasons.push(reader.int32()); + } else + message.closeReasons.push(reader.int32()); break; } default: @@ -257827,87 +289661,231 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMRotateRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMRecordingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMRotateRequest + * @memberof PAM.PAMRecordingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMRotateRequest} PAMRotateRequest + * @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 */ - PAMRotateRequest.decodeDelimited = function decodeDelimited(reader) { + PAMRecordingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMRotateRequest message. + * Verifies a PAMRecordingsRequest message. * @function verify - * @memberof PAM.PAMRotateRequest + * @memberof PAM.PAMRecordingsRequest * @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) { + PAMRecordingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.requestUid != null && message.hasOwnProperty("requestUid")) - if (!(message.requestUid && typeof message.requestUid.length === "number" || $util.isString(message.requestUid))) - return "requestUid: buffer expected"; + 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 PAMRotateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRecordingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMRotateRequest + * @memberof PAM.PAMRecordingsRequest * @static * @param {Object.} object Plain object - * @returns {PAM.PAMRotateRequest} PAMRotateRequest + * @returns {PAM.PAMRecordingsRequest} PAMRecordingsRequest */ - PAMRotateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMRotateRequest) + PAMRecordingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMRecordingsRequest) return object; - let message = new $root.PAM.PAMRotateRequest(); - if (object.requestUid != null) - if (typeof object.requestUid === "string") - $util.base64.decode(object.requestUid, message.requestUid = $util.newBuffer($util.base64.length(object.requestUid)), 0); - else if (object.requestUid.length >= 0) - message.requestUid = object.requestUid; + let message = new $root.PAM.PAMRecordingsRequest(); if (object.recordUid != null) if (typeof object.recordUid === "string") $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); else if (object.recordUid.length >= 0) message.recordUid = object.recordUid; + if (object.maxCount != null) + message.maxCount = object.maxCount | 0; + if (object.rangeStart != null) + if ($util.Long) + (message.rangeStart = $util.Long.fromValue(object.rangeStart)).unsigned = false; + else if (typeof object.rangeStart === "string") + message.rangeStart = parseInt(object.rangeStart, 10); + else if (typeof object.rangeStart === "number") + message.rangeStart = object.rangeStart; + else if (typeof object.rangeStart === "object") + message.rangeStart = new $util.LongBits(object.rangeStart.low >>> 0, object.rangeStart.high >>> 0).toNumber(); + if (object.rangeEnd != null) + if ($util.Long) + (message.rangeEnd = $util.Long.fromValue(object.rangeEnd)).unsigned = false; + else if (typeof object.rangeEnd === "string") + message.rangeEnd = parseInt(object.rangeEnd, 10); + else if (typeof object.rangeEnd === "number") + message.rangeEnd = object.rangeEnd; + else if (typeof object.rangeEnd === "object") + message.rangeEnd = new $util.LongBits(object.rangeEnd.low >>> 0, object.rangeEnd.high >>> 0).toNumber(); + if (object.types) { + if (!Array.isArray(object.types)) + throw TypeError(".PAM.PAMRecordingsRequest.types: array expected"); + message.types = []; + for (let i = 0; i < object.types.length; ++i) + switch (object.types[i]) { + default: + if (typeof object.types[i] === "number") { + message.types[i] = object.types[i]; + break; + } + case "PRT_SESSION": + case 0: + message.types[i] = 0; + break; + case "PRT_TYPESCRIPT": + case 1: + message.types[i] = 1; + break; + case "PRT_TIME": + case 2: + message.types[i] = 2; + break; + case "PRT_SUMMARY": + case 3: + message.types[i] = 3; + break; + } + } + if (object.risks) { + if (!Array.isArray(object.risks)) + throw TypeError(".PAM.PAMRecordingsRequest.risks: array expected"); + message.risks = []; + for (let i = 0; i < object.risks.length; ++i) + switch (object.risks[i]) { + default: + if (typeof object.risks[i] === "number") { + message.risks[i] = object.risks[i]; + break; + } + case "PRR_UNSPECIFIED": + case 0: + message.risks[i] = 0; + break; + case "PRR_LOW": + case 1: + message.risks[i] = 1; + break; + case "PRR_MEDIUM": + case 2: + message.risks[i] = 2; + break; + case "PRR_HIGH": + case 3: + message.risks[i] = 3; + break; + case "PRR_CRITICAL": + case 4: + message.risks[i] = 4; + break; + } + } + if (object.protocols) { + if (!Array.isArray(object.protocols)) + throw TypeError(".PAM.PAMRecordingsRequest.protocols: array expected"); + message.protocols = []; + for (let i = 0; i < object.protocols.length; ++i) + message.protocols[i] = String(object.protocols[i]); + } + if (object.closeReasons) { + if (!Array.isArray(object.closeReasons)) + throw TypeError(".PAM.PAMRecordingsRequest.closeReasons: array expected"); + message.closeReasons = []; + for (let i = 0; i < object.closeReasons.length; ++i) + message.closeReasons[i] = object.closeReasons[i] | 0; + } return message; }; /** - * Creates a plain object from a PAMRotateRequest message. Also converts values to other types if specified. + * Creates a plain object from a PAMRecordingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMRotateRequest + * @memberof PAM.PAMRecordingsRequest * @static - * @param {PAM.PAMRotateRequest} message PAMRotateRequest + * @param {PAM.PAMRecordingsRequest} message PAMRecordingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMRotateRequest.toObject = function toObject(message, options) { + PAMRecordingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) { + object.types = []; + object.risks = []; + object.protocols = []; + object.closeReasons = []; + } if (options.defaults) { - if (options.bytes === String) - object.requestUid = ""; - else { - object.requestUid = []; - if (options.bytes !== Array) - object.requestUid = $util.newBuffer(object.requestUid); - } if (options.bytes === String) object.recordUid = ""; else { @@ -257915,62 +289893,110 @@ export const PAM = $root.PAM = (() => { if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } + object.maxCount = 0; } - if (message.requestUid != null && message.hasOwnProperty("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")) 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")) + object.maxCount = message.maxCount; + if (message.rangeStart != null && message.hasOwnProperty("rangeStart")) { + if (typeof message.rangeStart === "number") + object.rangeStart = options.longs === String ? String(message.rangeStart) : message.rangeStart; + else + object.rangeStart = options.longs === String ? $util.Long.prototype.toString.call(message.rangeStart) : options.longs === Number ? new $util.LongBits(message.rangeStart.low >>> 0, message.rangeStart.high >>> 0).toNumber() : message.rangeStart; + if (options.oneofs) + object._rangeStart = "rangeStart"; + } + if (message.rangeEnd != null && message.hasOwnProperty("rangeEnd")) { + if (typeof message.rangeEnd === "number") + object.rangeEnd = options.longs === String ? String(message.rangeEnd) : message.rangeEnd; + else + object.rangeEnd = options.longs === String ? $util.Long.prototype.toString.call(message.rangeEnd) : options.longs === Number ? new $util.LongBits(message.rangeEnd.low >>> 0, message.rangeEnd.high >>> 0).toNumber() : message.rangeEnd; + if (options.oneofs) + object._rangeEnd = "rangeEnd"; + } + if (message.types && message.types.length) { + object.types = []; + for (let j = 0; j < message.types.length; ++j) + object.types[j] = options.enums === String ? $root.PAM.PAMRecordingType[message.types[j]] === undefined ? message.types[j] : $root.PAM.PAMRecordingType[message.types[j]] : message.types[j]; + } + if (message.risks && message.risks.length) { + object.risks = []; + for (let j = 0; j < message.risks.length; ++j) + object.risks[j] = options.enums === String ? $root.PAM.PAMRecordingRiskLevel[message.risks[j]] === undefined ? message.risks[j] : $root.PAM.PAMRecordingRiskLevel[message.risks[j]] : message.risks[j]; + } + if (message.protocols && message.protocols.length) { + object.protocols = []; + for (let j = 0; j < message.protocols.length; ++j) + object.protocols[j] = message.protocols[j]; + } + if (message.closeReasons && message.closeReasons.length) { + object.closeReasons = []; + for (let j = 0; j < message.closeReasons.length; ++j) + object.closeReasons[j] = message.closeReasons[j]; + } return object; }; /** - * Converts this PAMRotateRequest to JSON. + * Converts this PAMRecordingsRequest to JSON. * @function toJSON - * @memberof PAM.PAMRotateRequest + * @memberof PAM.PAMRecordingsRequest * @instance * @returns {Object.} JSON object */ - PAMRotateRequest.prototype.toJSON = function toJSON() { + PAMRecordingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMRotateRequest + * Gets the default type url for PAMRecordingsRequest * @function getTypeUrl - * @memberof PAM.PAMRotateRequest + * @memberof PAM.PAMRecordingsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMRotateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMRecordingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMRotateRequest"; + return typeUrlPrefix + "/PAM.PAMRecordingsRequest"; }; - return PAMRotateRequest; + return PAMRecordingsRequest; })(); - PAM.PAMControllersResponse = (function() { + PAM.PAMRecording = (function() { /** - * Properties of a PAMControllersResponse. + * Properties of a PAMRecording. * @memberof PAM - * @interface IPAMControllersResponse - * @property {Array.|null} [controllers] PAMControllersResponse controllers + * @interface IPAMRecording + * @property {Uint8Array|null} [connectionUid] PAMRecording connectionUid + * @property {PAM.PAMRecordingType|null} [recordingType] PAMRecording recordingType + * @property {Uint8Array|null} [recordUid] PAMRecording recordUid + * @property {string|null} [userName] PAMRecording userName + * @property {number|Long|null} [startedOn] PAMRecording startedOn + * @property {number|null} [length] PAMRecording length + * @property {number|Long|null} [fileSize] PAMRecording fileSize + * @property {number|Long|null} [createdOn] PAMRecording createdOn + * @property {string|null} [protocol] PAMRecording protocol + * @property {number|null} [closeReason] PAMRecording closeReason + * @property {number|null} [recordingDuration] PAMRecording recordingDuration + * @property {PAM.PAMRecordingRiskLevel|null} [aiOverallRiskLevel] PAMRecording aiOverallRiskLevel + * @property {Uint8Array|null} [aiOverallSummary] PAMRecording aiOverallSummary */ /** - * Constructs a new PAMControllersResponse. + * Constructs a new PAMRecording. * @memberof PAM - * @classdesc Represents a PAMControllersResponse. - * @implements IPAMControllersResponse + * @classdesc Represents a PAMRecording. + * @implements IPAMRecording * @constructor - * @param {PAM.IPAMControllersResponse=} [properties] Properties to set + * @param {PAM.IPAMRecording=} [properties] Properties to set */ - function PAMControllersResponse(properties) { - this.controllers = []; + function PAMRecording(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -257978,313 +290004,243 @@ export const PAM = $root.PAM = (() => { } /** - * PAMControllersResponse controllers. - * @member {Array.} controllers - * @memberof PAM.PAMControllersResponse + * PAMRecording connectionUid. + * @member {Uint8Array} connectionUid + * @memberof PAM.PAMRecording * @instance */ - PAMControllersResponse.prototype.controllers = $util.emptyArray; - - /** - * Creates a new PAMControllersResponse instance using the specified properties. - * @function create - * @memberof PAM.PAMControllersResponse - * @static - * @param {PAM.IPAMControllersResponse=} [properties] Properties to set - * @returns {PAM.PAMControllersResponse} PAMControllersResponse instance - */ - PAMControllersResponse.create = function create(properties) { - return new PAMControllersResponse(properties); - }; - - /** - * Encodes the specified PAMControllersResponse message. Does not implicitly {@link PAM.PAMControllersResponse.verify|verify} messages. - * @function encode - * @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.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.controllers != null && message.controllers.length) - for (let i = 0; i < message.controllers.length; ++i) - $root.PAM.PAMController.encode(message.controllers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + PAMRecording.prototype.connectionUid = $util.newBuffer([]); /** - * 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 + * PAMRecording recordingType. + * @member {PAM.PAMRecordingType} recordingType + * @memberof PAM.PAMRecording + * @instance */ - PAMControllersResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + PAMRecording.prototype.recordingType = 0; /** - * Decodes a PAMControllersResponse message from the specified reader or buffer. - * @function decode - * @memberof PAM.PAMControllersResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @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 + * PAMRecording recordUid. + * @member {Uint8Array} recordUid + * @memberof PAM.PAMRecording + * @instance */ - PAMControllersResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMControllersResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.controllers && message.controllers.length)) - message.controllers = []; - message.controllers.push($root.PAM.PAMController.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + PAMRecording.prototype.recordUid = $util.newBuffer([]); /** - * 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 + * PAMRecording userName. + * @member {string} userName + * @memberof PAM.PAMRecording + * @instance */ - PAMControllersResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + PAMRecording.prototype.userName = ""; /** - * 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 + * PAMRecording startedOn. + * @member {number|Long} startedOn + * @memberof PAM.PAMRecording + * @instance */ - PAMControllersResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object 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.PAMController.verify(message.controllers[i]); - if (error) - return "controllers." + error; - } - } - return null; - }; + PAMRecording.prototype.startedOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a PAMControllersResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof PAM.PAMControllersResponse - * @static - * @param {Object.} object Plain object - * @returns {PAM.PAMControllersResponse} PAMControllersResponse + * PAMRecording length. + * @member {number} length + * @memberof PAM.PAMRecording + * @instance */ - PAMControllersResponse.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMControllersResponse) - return object; - let message = new $root.PAM.PAMControllersResponse(); - if (object.controllers) { - if (!Array.isArray(object.controllers)) - throw TypeError(".PAM.PAMControllersResponse.controllers: array expected"); - message.controllers = []; - for (let i = 0; i < object.controllers.length; ++i) { - if (typeof object.controllers[i] !== "object") - throw TypeError(".PAM.PAMControllersResponse.controllers: object expected"); - message.controllers[i] = $root.PAM.PAMController.fromObject(object.controllers[i]); - } - } - return message; - }; + PAMRecording.prototype.length = 0; /** - * Creates a plain object from a PAMControllersResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof PAM.PAMControllersResponse - * @static - * @param {PAM.PAMControllersResponse} message PAMControllersResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * PAMRecording fileSize. + * @member {number|Long} fileSize + * @memberof PAM.PAMRecording + * @instance */ - PAMControllersResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.controllers = []; - if (message.controllers && message.controllers.length) { - object.controllers = []; - for (let j = 0; j < message.controllers.length; ++j) - object.controllers[j] = $root.PAM.PAMController.toObject(message.controllers[j], options); - } - return object; - }; + PAMRecording.prototype.fileSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Converts this PAMControllersResponse to JSON. - * @function toJSON - * @memberof PAM.PAMControllersResponse + * PAMRecording createdOn. + * @member {number|Long} createdOn + * @memberof PAM.PAMRecording * @instance - * @returns {Object.} JSON object */ - PAMControllersResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + PAMRecording.prototype.createdOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Gets the default type url for PAMControllersResponse - * @function getTypeUrl - * @memberof PAM.PAMControllersResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * PAMRecording protocol. + * @member {string} protocol + * @memberof PAM.PAMRecording + * @instance */ - PAMControllersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/PAM.PAMControllersResponse"; - }; - - return PAMControllersResponse; - })(); - - PAM.PAMRemoveController = (function() { + PAMRecording.prototype.protocol = ""; /** - * Properties of a PAMRemoveController. - * @memberof PAM - * @interface IPAMRemoveController - * @property {Uint8Array|null} [controllerUid] PAMRemoveController controllerUid - * @property {string|null} [message] PAMRemoveController message + * PAMRecording closeReason. + * @member {number} closeReason + * @memberof PAM.PAMRecording + * @instance */ + PAMRecording.prototype.closeReason = 0; /** - * Constructs a new PAMRemoveController. - * @memberof PAM - * @classdesc Represents a PAMRemoveController. - * @implements IPAMRemoveController - * @constructor - * @param {PAM.IPAMRemoveController=} [properties] Properties to set + * PAMRecording recordingDuration. + * @member {number} recordingDuration + * @memberof PAM.PAMRecording + * @instance */ - function PAMRemoveController(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + PAMRecording.prototype.recordingDuration = 0; /** - * PAMRemoveController controllerUid. - * @member {Uint8Array} controllerUid - * @memberof PAM.PAMRemoveController + * PAMRecording aiOverallRiskLevel. + * @member {PAM.PAMRecordingRiskLevel} aiOverallRiskLevel + * @memberof PAM.PAMRecording * @instance */ - PAMRemoveController.prototype.controllerUid = $util.newBuffer([]); + PAMRecording.prototype.aiOverallRiskLevel = 0; /** - * PAMRemoveController message. - * @member {string} message - * @memberof PAM.PAMRemoveController + * PAMRecording aiOverallSummary. + * @member {Uint8Array} aiOverallSummary + * @memberof PAM.PAMRecording * @instance */ - PAMRemoveController.prototype.message = ""; + PAMRecording.prototype.aiOverallSummary = $util.newBuffer([]); /** - * Creates a new PAMRemoveController instance using the specified properties. + * Creates a new PAMRecording instance using the specified properties. * @function create - * @memberof PAM.PAMRemoveController + * @memberof PAM.PAMRecording * @static - * @param {PAM.IPAMRemoveController=} [properties] Properties to set - * @returns {PAM.PAMRemoveController} PAMRemoveController instance + * @param {PAM.IPAMRecording=} [properties] Properties to set + * @returns {PAM.PAMRecording} PAMRecording instance */ - PAMRemoveController.create = function create(properties) { - return new PAMRemoveController(properties); + PAMRecording.create = function create(properties) { + return new PAMRecording(properties); }; /** - * Encodes the specified PAMRemoveController message. Does not implicitly {@link PAM.PAMRemoveController.verify|verify} messages. + * Encodes the specified PAMRecording message. Does not implicitly {@link PAM.PAMRecording.verify|verify} messages. * @function encode - * @memberof PAM.PAMRemoveController + * @memberof PAM.PAMRecording * @static - * @param {PAM.IPAMRemoveController} message PAMRemoveController message or plain object to encode + * @param {PAM.IPAMRecording} message PAMRecording message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRemoveController.encode = function encode(message, writer) { + PAMRecording.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.controllerUid); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.connectionUid != null && Object.hasOwnProperty.call(message, "connectionUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.connectionUid); + if (message.recordingType != null && Object.hasOwnProperty.call(message, "recordingType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.recordingType); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordUid); + if (message.userName != null && Object.hasOwnProperty.call(message, "userName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.userName); + if (message.startedOn != null && Object.hasOwnProperty.call(message, "startedOn")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.startedOn); + if (message.length != null && Object.hasOwnProperty.call(message, "length")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.length); + if (message.fileSize != null && Object.hasOwnProperty.call(message, "fileSize")) + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.fileSize); + if (message.createdOn != null && Object.hasOwnProperty.call(message, "createdOn")) + writer.uint32(/* id 8, wireType 0 =*/64).int64(message.createdOn); + if (message.protocol != null && Object.hasOwnProperty.call(message, "protocol")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.protocol); + if (message.closeReason != null && Object.hasOwnProperty.call(message, "closeReason")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.closeReason); + if (message.recordingDuration != null && Object.hasOwnProperty.call(message, "recordingDuration")) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.recordingDuration); + if (message.aiOverallRiskLevel != null && Object.hasOwnProperty.call(message, "aiOverallRiskLevel")) + writer.uint32(/* id 12, wireType 0 =*/96).int32(message.aiOverallRiskLevel); + if (message.aiOverallSummary != null && Object.hasOwnProperty.call(message, "aiOverallSummary")) + writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.aiOverallSummary); return writer; }; /** - * Encodes the specified PAMRemoveController message, length delimited. Does not implicitly {@link PAM.PAMRemoveController.verify|verify} messages. + * Encodes the specified PAMRecording message, length delimited. Does not implicitly {@link PAM.PAMRecording.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMRemoveController + * @memberof PAM.PAMRecording * @static - * @param {PAM.IPAMRemoveController} message PAMRemoveController message or plain object to encode + * @param {PAM.IPAMRecording} message PAMRecording message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRemoveController.encodeDelimited = function encodeDelimited(message, writer) { + PAMRecording.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMRemoveController message from the specified reader or buffer. + * Decodes a PAMRecording message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMRemoveController + * @memberof PAM.PAMRecording * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMRemoveController} PAMRemoveController + * @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 */ - PAMRemoveController.decode = function decode(reader, length) { + PAMRecording.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRemoveController(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRecording(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.controllerUid = reader.bytes(); + message.connectionUid = reader.bytes(); break; } case 2: { - message.message = reader.string(); + message.recordingType = reader.int32(); + break; + } + case 3: { + message.recordUid = reader.bytes(); + break; + } + case 4: { + message.userName = reader.string(); + break; + } + case 5: { + message.startedOn = reader.int64(); + break; + } + case 6: { + message.length = reader.int32(); + break; + } + case 7: { + message.fileSize = reader.int64(); + break; + } + case 8: { + message.createdOn = reader.int64(); + break; + } + case 9: { + message.protocol = reader.string(); + break; + } + case 10: { + message.closeReason = reader.int32(); + break; + } + case 11: { + message.recordingDuration = reader.int32(); + break; + } + case 12: { + message.aiOverallRiskLevel = reader.int32(); + break; + } + case 13: { + message.aiOverallSummary = reader.bytes(); break; } default: @@ -258296,141 +290252,353 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMRemoveController message from the specified reader or buffer, length delimited. + * Decodes a PAMRecording message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMRemoveController + * @memberof PAM.PAMRecording * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMRemoveController} PAMRemoveController + * @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 */ - PAMRemoveController.decodeDelimited = function decodeDelimited(reader) { + PAMRecording.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMRemoveController message. + * Verifies a PAMRecording message. * @function verify - * @memberof PAM.PAMRemoveController + * @memberof PAM.PAMRecording * @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) { + PAMRecording.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + 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 PAMRemoveController message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRecording message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMRemoveController + * @memberof PAM.PAMRecording * @static * @param {Object.} object Plain object - * @returns {PAM.PAMRemoveController} PAMRemoveController + * @returns {PAM.PAMRecording} PAMRecording */ - PAMRemoveController.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMRemoveController) + PAMRecording.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMRecording) return object; - let message = new $root.PAM.PAMRemoveController(); - if (object.controllerUid != null) - if (typeof object.controllerUid === "string") - $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); - else if (object.controllerUid.length >= 0) - message.controllerUid = object.controllerUid; - if (object.message != null) - message.message = String(object.message); + let message = new $root.PAM.PAMRecording(); + if (object.connectionUid != null) + if (typeof object.connectionUid === "string") + $util.base64.decode(object.connectionUid, message.connectionUid = $util.newBuffer($util.base64.length(object.connectionUid)), 0); + else if (object.connectionUid.length >= 0) + message.connectionUid = object.connectionUid; + switch (object.recordingType) { + default: + if (typeof object.recordingType === "number") { + message.recordingType = object.recordingType; + break; + } + break; + case "PRT_SESSION": + case 0: + message.recordingType = 0; + break; + case "PRT_TYPESCRIPT": + case 1: + message.recordingType = 1; + break; + case "PRT_TIME": + case 2: + message.recordingType = 2; + break; + case "PRT_SUMMARY": + case 3: + message.recordingType = 3; + break; + } + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.userName != null) + message.userName = String(object.userName); + if (object.startedOn != null) + if ($util.Long) + (message.startedOn = $util.Long.fromValue(object.startedOn)).unsigned = false; + else if (typeof object.startedOn === "string") + message.startedOn = parseInt(object.startedOn, 10); + else if (typeof object.startedOn === "number") + message.startedOn = object.startedOn; + else if (typeof object.startedOn === "object") + message.startedOn = new $util.LongBits(object.startedOn.low >>> 0, object.startedOn.high >>> 0).toNumber(); + if (object.length != null) + message.length = object.length | 0; + if (object.fileSize != null) + if ($util.Long) + (message.fileSize = $util.Long.fromValue(object.fileSize)).unsigned = false; + else if (typeof object.fileSize === "string") + message.fileSize = parseInt(object.fileSize, 10); + else if (typeof object.fileSize === "number") + message.fileSize = object.fileSize; + else if (typeof object.fileSize === "object") + message.fileSize = new $util.LongBits(object.fileSize.low >>> 0, object.fileSize.high >>> 0).toNumber(); + if (object.createdOn != null) + if ($util.Long) + (message.createdOn = $util.Long.fromValue(object.createdOn)).unsigned = false; + else if (typeof object.createdOn === "string") + message.createdOn = parseInt(object.createdOn, 10); + else if (typeof object.createdOn === "number") + message.createdOn = object.createdOn; + else if (typeof object.createdOn === "object") + message.createdOn = new $util.LongBits(object.createdOn.low >>> 0, object.createdOn.high >>> 0).toNumber(); + if (object.protocol != null) + message.protocol = String(object.protocol); + if (object.closeReason != null) + message.closeReason = object.closeReason | 0; + if (object.recordingDuration != null) + message.recordingDuration = object.recordingDuration | 0; + switch (object.aiOverallRiskLevel) { + default: + if (typeof object.aiOverallRiskLevel === "number") { + message.aiOverallRiskLevel = object.aiOverallRiskLevel; + break; + } + break; + case "PRR_UNSPECIFIED": + case 0: + message.aiOverallRiskLevel = 0; + break; + case "PRR_LOW": + case 1: + message.aiOverallRiskLevel = 1; + break; + case "PRR_MEDIUM": + case 2: + message.aiOverallRiskLevel = 2; + break; + case "PRR_HIGH": + case 3: + message.aiOverallRiskLevel = 3; + break; + case "PRR_CRITICAL": + case 4: + message.aiOverallRiskLevel = 4; + break; + } + if (object.aiOverallSummary != null) + if (typeof object.aiOverallSummary === "string") + $util.base64.decode(object.aiOverallSummary, message.aiOverallSummary = $util.newBuffer($util.base64.length(object.aiOverallSummary)), 0); + else if (object.aiOverallSummary.length >= 0) + message.aiOverallSummary = object.aiOverallSummary; return message; }; /** - * Creates a plain object from a PAMRemoveController message. Also converts values to other types if specified. + * Creates a plain object from a PAMRecording message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMRemoveController + * @memberof PAM.PAMRecording * @static - * @param {PAM.PAMRemoveController} message PAMRemoveController + * @param {PAM.PAMRecording} message PAMRecording * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMRemoveController.toObject = function toObject(message, options) { + PAMRecording.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { if (options.bytes === String) - object.controllerUid = ""; + object.connectionUid = ""; else { - object.controllerUid = []; + object.connectionUid = []; if (options.bytes !== Array) - object.controllerUid = $util.newBuffer(object.controllerUid); + object.connectionUid = $util.newBuffer(object.connectionUid); + } + object.recordingType = options.enums === String ? "PRT_SESSION" : 0; + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + object.userName = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.startedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.startedOn = options.longs === String ? "0" : 0; + object.length = 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.fileSize = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.createdOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.createdOn = options.longs === String ? "0" : 0; + object.protocol = ""; + object.closeReason = 0; + object.recordingDuration = 0; + object.aiOverallRiskLevel = options.enums === String ? "PRR_UNSPECIFIED" : 0; + if (options.bytes === String) + object.aiOverallSummary = ""; + else { + object.aiOverallSummary = []; + if (options.bytes !== Array) + object.aiOverallSummary = $util.newBuffer(object.aiOverallSummary); } - object.message = ""; } - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) - object.controllerUid = options.bytes === String ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUid) : message.controllerUid; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (message.connectionUid != null && message.hasOwnProperty("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")) + 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")) + 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")) + object.userName = message.userName; + if (message.startedOn != null && message.hasOwnProperty("startedOn")) + if (typeof message.startedOn === "number") + object.startedOn = options.longs === String ? String(message.startedOn) : message.startedOn; + else + object.startedOn = options.longs === String ? $util.Long.prototype.toString.call(message.startedOn) : options.longs === Number ? new $util.LongBits(message.startedOn.low >>> 0, message.startedOn.high >>> 0).toNumber() : message.startedOn; + if (message.length != null && message.hasOwnProperty("length")) + object.length = message.length; + if (message.fileSize != null && message.hasOwnProperty("fileSize")) + if (typeof message.fileSize === "number") + object.fileSize = options.longs === String ? String(message.fileSize) : message.fileSize; + else + object.fileSize = options.longs === String ? $util.Long.prototype.toString.call(message.fileSize) : options.longs === Number ? new $util.LongBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0).toNumber() : message.fileSize; + if (message.createdOn != null && message.hasOwnProperty("createdOn")) + if (typeof 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")) + object.protocol = message.protocol; + if (message.closeReason != null && message.hasOwnProperty("closeReason")) + object.closeReason = message.closeReason; + if (message.recordingDuration != null && message.hasOwnProperty("recordingDuration")) + object.recordingDuration = message.recordingDuration; + if (message.aiOverallRiskLevel != null && message.hasOwnProperty("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")) + 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; }; /** - * Converts this PAMRemoveController to JSON. + * Converts this PAMRecording to JSON. * @function toJSON - * @memberof PAM.PAMRemoveController + * @memberof PAM.PAMRecording * @instance * @returns {Object.} JSON object */ - PAMRemoveController.prototype.toJSON = function toJSON() { + PAMRecording.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMRemoveController + * Gets the default type url for PAMRecording * @function getTypeUrl - * @memberof PAM.PAMRemoveController + * @memberof PAM.PAMRecording * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMRemoveController.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMRecording.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMRemoveController"; + return typeUrlPrefix + "/PAM.PAMRecording"; }; - return PAMRemoveController; + return PAMRecording; })(); - PAM.PAMRemoveControllerResponse = (function() { + PAM.PAMRecordingsResponse = (function() { /** - * Properties of a PAMRemoveControllerResponse. + * Properties of a PAMRecordingsResponse. * @memberof PAM - * @interface IPAMRemoveControllerResponse - * @property {Array.|null} [controllers] PAMRemoveControllerResponse controllers + * @interface IPAMRecordingsResponse + * @property {Array.|null} [recordings] PAMRecordingsResponse recordings + * @property {boolean|null} [hasMore] PAMRecordingsResponse hasMore */ /** - * Constructs a new PAMRemoveControllerResponse. + * Constructs a new PAMRecordingsResponse. * @memberof PAM - * @classdesc Represents a PAMRemoveControllerResponse. - * @implements IPAMRemoveControllerResponse + * @classdesc Represents a PAMRecordingsResponse. + * @implements IPAMRecordingsResponse * @constructor - * @param {PAM.IPAMRemoveControllerResponse=} [properties] Properties to set + * @param {PAM.IPAMRecordingsResponse=} [properties] Properties to set */ - function PAMRemoveControllerResponse(properties) { - this.controllers = []; + function PAMRecordingsResponse(properties) { + this.recordings = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -258438,78 +290606,92 @@ export const PAM = $root.PAM = (() => { } /** - * PAMRemoveControllerResponse controllers. - * @member {Array.} controllers - * @memberof PAM.PAMRemoveControllerResponse + * PAMRecordingsResponse recordings. + * @member {Array.} recordings + * @memberof PAM.PAMRecordingsResponse * @instance */ - PAMRemoveControllerResponse.prototype.controllers = $util.emptyArray; + PAMRecordingsResponse.prototype.recordings = $util.emptyArray; /** - * Creates a new PAMRemoveControllerResponse instance using the specified properties. + * PAMRecordingsResponse hasMore. + * @member {boolean} hasMore + * @memberof PAM.PAMRecordingsResponse + * @instance + */ + PAMRecordingsResponse.prototype.hasMore = false; + + /** + * Creates a new PAMRecordingsResponse instance using the specified properties. * @function create - * @memberof PAM.PAMRemoveControllerResponse + * @memberof PAM.PAMRecordingsResponse * @static - * @param {PAM.IPAMRemoveControllerResponse=} [properties] Properties to set - * @returns {PAM.PAMRemoveControllerResponse} PAMRemoveControllerResponse instance + * @param {PAM.IPAMRecordingsResponse=} [properties] Properties to set + * @returns {PAM.PAMRecordingsResponse} PAMRecordingsResponse instance */ - PAMRemoveControllerResponse.create = function create(properties) { - return new PAMRemoveControllerResponse(properties); + PAMRecordingsResponse.create = function create(properties) { + return new PAMRecordingsResponse(properties); }; /** - * Encodes the specified PAMRemoveControllerResponse message. Does not implicitly {@link PAM.PAMRemoveControllerResponse.verify|verify} messages. + * Encodes the specified PAMRecordingsResponse message. Does not implicitly {@link PAM.PAMRecordingsResponse.verify|verify} messages. * @function encode - * @memberof PAM.PAMRemoveControllerResponse + * @memberof PAM.PAMRecordingsResponse * @static - * @param {PAM.IPAMRemoveControllerResponse} message PAMRemoveControllerResponse message or plain object to encode + * @param {PAM.IPAMRecordingsResponse} message PAMRecordingsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRemoveControllerResponse.encode = function encode(message, writer) { + PAMRecordingsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.controllers != null && message.controllers.length) - for (let i = 0; i < message.controllers.length; ++i) - $root.PAM.PAMRemoveController.encode(message.controllers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.recordings != null && message.recordings.length) + for (let i = 0; i < message.recordings.length; ++i) + $root.PAM.PAMRecording.encode(message.recordings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.hasMore); return writer; }; /** - * Encodes the specified PAMRemoveControllerResponse message, length delimited. Does not implicitly {@link PAM.PAMRemoveControllerResponse.verify|verify} messages. + * Encodes the specified PAMRecordingsResponse message, length delimited. Does not implicitly {@link PAM.PAMRecordingsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMRemoveControllerResponse + * @memberof PAM.PAMRecordingsResponse * @static - * @param {PAM.IPAMRemoveControllerResponse} message PAMRemoveControllerResponse message or plain object to encode + * @param {PAM.IPAMRecordingsResponse} message PAMRecordingsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRemoveControllerResponse.encodeDelimited = function encodeDelimited(message, writer) { + PAMRecordingsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMRemoveControllerResponse message from the specified reader or buffer. + * Decodes a PAMRecordingsResponse message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMRemoveControllerResponse + * @memberof PAM.PAMRecordingsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMRemoveControllerResponse} PAMRemoveControllerResponse + * @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 */ - PAMRemoveControllerResponse.decode = function decode(reader, length) { + PAMRecordingsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRemoveControllerResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRecordingsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.controllers && message.controllers.length)) - message.controllers = []; - message.controllers.push($root.PAM.PAMRemoveController.decode(reader, reader.uint32())); + if (!(message.recordings && message.recordings.length)) + message.recordings = []; + message.recordings.push($root.PAM.PAMRecording.decode(reader, reader.uint32())); + break; + } + case 2: { + message.hasMore = reader.bool(); break; } default: @@ -258521,140 +290703,149 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMRemoveControllerResponse message from the specified reader or buffer, length delimited. + * Decodes a PAMRecordingsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMRemoveControllerResponse + * @memberof PAM.PAMRecordingsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMRemoveControllerResponse} PAMRemoveControllerResponse + * @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 */ - PAMRemoveControllerResponse.decodeDelimited = function decodeDelimited(reader) { + PAMRecordingsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMRemoveControllerResponse message. + * Verifies a PAMRecordingsResponse message. * @function verify - * @memberof PAM.PAMRemoveControllerResponse + * @memberof PAM.PAMRecordingsResponse * @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) { + PAMRecordingsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.PAMRemoveController.verify(message.controllers[i]); + 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]); if (error) - return "controllers." + error; + return "recordings." + error; } } + if (message.hasMore != null && message.hasOwnProperty("hasMore")) + if (typeof message.hasMore !== "boolean") + return "hasMore: boolean expected"; return null; }; /** - * Creates a PAMRemoveControllerResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRecordingsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMRemoveControllerResponse + * @memberof PAM.PAMRecordingsResponse * @static * @param {Object.} object Plain object - * @returns {PAM.PAMRemoveControllerResponse} PAMRemoveControllerResponse + * @returns {PAM.PAMRecordingsResponse} PAMRecordingsResponse */ - PAMRemoveControllerResponse.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMRemoveControllerResponse) + PAMRecordingsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMRecordingsResponse) return object; - let message = new $root.PAM.PAMRemoveControllerResponse(); - if (object.controllers) { - if (!Array.isArray(object.controllers)) - throw TypeError(".PAM.PAMRemoveControllerResponse.controllers: array expected"); - message.controllers = []; - for (let i = 0; i < object.controllers.length; ++i) { - if (typeof object.controllers[i] !== "object") - throw TypeError(".PAM.PAMRemoveControllerResponse.controllers: object expected"); - message.controllers[i] = $root.PAM.PAMRemoveController.fromObject(object.controllers[i]); + let message = new $root.PAM.PAMRecordingsResponse(); + if (object.recordings) { + if (!Array.isArray(object.recordings)) + throw TypeError(".PAM.PAMRecordingsResponse.recordings: array expected"); + message.recordings = []; + for (let i = 0; i < object.recordings.length; ++i) { + if (typeof object.recordings[i] !== "object") + throw TypeError(".PAM.PAMRecordingsResponse.recordings: object expected"); + message.recordings[i] = $root.PAM.PAMRecording.fromObject(object.recordings[i]); } } + if (object.hasMore != null) + message.hasMore = Boolean(object.hasMore); return message; }; /** - * Creates a plain object from a PAMRemoveControllerResponse message. Also converts values to other types if specified. + * Creates a plain object from a PAMRecordingsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMRemoveControllerResponse + * @memberof PAM.PAMRecordingsResponse * @static - * @param {PAM.PAMRemoveControllerResponse} message PAMRemoveControllerResponse + * @param {PAM.PAMRecordingsResponse} message PAMRecordingsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMRemoveControllerResponse.toObject = function toObject(message, options) { + PAMRecordingsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.controllers = []; - if (message.controllers && message.controllers.length) { - object.controllers = []; - for (let j = 0; j < message.controllers.length; ++j) - object.controllers[j] = $root.PAM.PAMRemoveController.toObject(message.controllers[j], options); + object.recordings = []; + if (options.defaults) + object.hasMore = false; + if (message.recordings && message.recordings.length) { + object.recordings = []; + for (let j = 0; j < message.recordings.length; ++j) + object.recordings[j] = $root.PAM.PAMRecording.toObject(message.recordings[j], options); } + if (message.hasMore != null && message.hasOwnProperty("hasMore")) + object.hasMore = message.hasMore; return object; }; /** - * Converts this PAMRemoveControllerResponse to JSON. + * Converts this PAMRecordingsResponse to JSON. * @function toJSON - * @memberof PAM.PAMRemoveControllerResponse + * @memberof PAM.PAMRecordingsResponse * @instance * @returns {Object.} JSON object */ - PAMRemoveControllerResponse.prototype.toJSON = function toJSON() { + PAMRecordingsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMRemoveControllerResponse + * Gets the default type url for PAMRecordingsResponse * @function getTypeUrl - * @memberof PAM.PAMRemoveControllerResponse + * @memberof PAM.PAMRecordingsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMRemoveControllerResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMRecordingsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMRemoveControllerResponse"; + return typeUrlPrefix + "/PAM.PAMRecordingsResponse"; }; - return PAMRemoveControllerResponse; + return PAMRecordingsResponse; })(); - PAM.PAMModifyRequest = (function() { + PAM.PAMData = (function() { /** - * Properties of a PAMModifyRequest. + * Properties of a PAMData. * @memberof PAM - * @interface IPAMModifyRequest - * @property {Array.|null} [operations] PAMModifyRequest operations + * @interface IPAMData + * @property {Uint8Array|null} [vertex] PAMData vertex + * @property {Uint8Array|null} [content] PAMData content */ /** - * Constructs a new PAMModifyRequest. + * Constructs a new PAMData. * @memberof PAM - * @classdesc Represents a PAMModifyRequest. - * @implements IPAMModifyRequest + * @classdesc Represents a PAMData. + * @implements IPAMData * @constructor - * @param {PAM.IPAMModifyRequest=} [properties] Properties to set + * @param {PAM.IPAMData=} [properties] Properties to set */ - function PAMModifyRequest(properties) { - this.operations = []; + function PAMData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -258662,78 +290853,89 @@ export const PAM = $root.PAM = (() => { } /** - * PAMModifyRequest operations. - * @member {Array.} operations - * @memberof PAM.PAMModifyRequest + * PAMData vertex. + * @member {Uint8Array} vertex + * @memberof PAM.PAMData + * @instance + */ + PAMData.prototype.vertex = $util.newBuffer([]); + + /** + * PAMData content. + * @member {Uint8Array} content + * @memberof PAM.PAMData * @instance */ - PAMModifyRequest.prototype.operations = $util.emptyArray; + PAMData.prototype.content = $util.newBuffer([]); /** - * Creates a new PAMModifyRequest instance using the specified properties. + * Creates a new PAMData instance using the specified properties. * @function create - * @memberof PAM.PAMModifyRequest + * @memberof PAM.PAMData * @static - * @param {PAM.IPAMModifyRequest=} [properties] Properties to set - * @returns {PAM.PAMModifyRequest} PAMModifyRequest instance + * @param {PAM.IPAMData=} [properties] Properties to set + * @returns {PAM.PAMData} PAMData instance */ - PAMModifyRequest.create = function create(properties) { - return new PAMModifyRequest(properties); + PAMData.create = function create(properties) { + return new PAMData(properties); }; /** - * Encodes the specified PAMModifyRequest message. Does not implicitly {@link PAM.PAMModifyRequest.verify|verify} messages. + * Encodes the specified PAMData message. Does not implicitly {@link PAM.PAMData.verify|verify} messages. * @function encode - * @memberof PAM.PAMModifyRequest + * @memberof PAM.PAMData * @static - * @param {PAM.IPAMModifyRequest} message PAMModifyRequest message or plain object to encode + * @param {PAM.IPAMData} message PAMData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMModifyRequest.encode = function encode(message, writer) { + PAMData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.operations != null && message.operations.length) - for (let i = 0; i < message.operations.length; ++i) - $root.PAM.PAMDataOperation.encode(message.operations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.vertex != null && Object.hasOwnProperty.call(message, "vertex")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.vertex); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.content); return writer; }; /** - * Encodes the specified PAMModifyRequest message, length delimited. Does not implicitly {@link PAM.PAMModifyRequest.verify|verify} messages. + * Encodes the specified PAMData message, length delimited. Does not implicitly {@link PAM.PAMData.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMModifyRequest + * @memberof PAM.PAMData * @static - * @param {PAM.IPAMModifyRequest} message PAMModifyRequest message or plain object to encode + * @param {PAM.IPAMData} message PAMData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMModifyRequest.encodeDelimited = function encodeDelimited(message, writer) { + PAMData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMModifyRequest message from the specified reader or buffer. + * Decodes a PAMData message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMModifyRequest + * @memberof PAM.PAMData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMModifyRequest} PAMModifyRequest + * @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 */ - PAMModifyRequest.decode = function decode(reader, length) { + PAMData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMModifyRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.operations && message.operations.length)) - message.operations = []; - message.operations.push($root.PAM.PAMDataOperation.decode(reader, reader.uint32())); + message.vertex = reader.bytes(); + break; + } + case 2: { + message.content = reader.bytes(); break; } default: @@ -258745,141 +290947,150 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMModifyRequest message from the specified reader or buffer, length delimited. + * Decodes a PAMData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMModifyRequest + * @memberof PAM.PAMData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMModifyRequest} PAMModifyRequest + * @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 */ - PAMModifyRequest.decodeDelimited = function decodeDelimited(reader) { + PAMData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMModifyRequest message. + * Verifies a PAMData message. * @function verify - * @memberof PAM.PAMModifyRequest + * @memberof PAM.PAMData * @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) { + PAMData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "operations." + error; - } - } + 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 PAMModifyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMModifyRequest + * @memberof PAM.PAMData * @static * @param {Object.} object Plain object - * @returns {PAM.PAMModifyRequest} PAMModifyRequest + * @returns {PAM.PAMData} PAMData */ - PAMModifyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMModifyRequest) + PAMData.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMData) return object; - let message = new $root.PAM.PAMModifyRequest(); - if (object.operations) { - if (!Array.isArray(object.operations)) - throw TypeError(".PAM.PAMModifyRequest.operations: array expected"); - message.operations = []; - for (let i = 0; i < object.operations.length; ++i) { - if (typeof object.operations[i] !== "object") - throw TypeError(".PAM.PAMModifyRequest.operations: object expected"); - message.operations[i] = $root.PAM.PAMDataOperation.fromObject(object.operations[i]); - } - } + let message = new $root.PAM.PAMData(); + if (object.vertex != null) + if (typeof object.vertex === "string") + $util.base64.decode(object.vertex, message.vertex = $util.newBuffer($util.base64.length(object.vertex)), 0); + else if (object.vertex.length >= 0) + message.vertex = object.vertex; + if (object.content != null) + if (typeof object.content === "string") + $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); + else if (object.content.length >= 0) + message.content = object.content; return message; }; /** - * Creates a plain object from a PAMModifyRequest message. Also converts values to other types if specified. + * Creates a plain object from a PAMData message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMModifyRequest + * @memberof PAM.PAMData * @static - * @param {PAM.PAMModifyRequest} message PAMModifyRequest + * @param {PAM.PAMData} message PAMData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMModifyRequest.toObject = function toObject(message, options) { + PAMData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.operations = []; - if (message.operations && message.operations.length) { - object.operations = []; - for (let j = 0; j < message.operations.length; ++j) - object.operations[j] = $root.PAM.PAMDataOperation.toObject(message.operations[j], options); + if (options.defaults) { + if (options.bytes === String) + object.vertex = ""; + else { + object.vertex = []; + if (options.bytes !== Array) + object.vertex = $util.newBuffer(object.vertex); + } + if (options.bytes === String) + object.content = ""; + else { + object.content = []; + if (options.bytes !== Array) + object.content = $util.newBuffer(object.content); + } } + if (message.vertex != null && message.hasOwnProperty("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")) + 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; }; /** - * Converts this PAMModifyRequest to JSON. + * Converts this PAMData to JSON. * @function toJSON - * @memberof PAM.PAMModifyRequest + * @memberof PAM.PAMData * @instance * @returns {Object.} JSON object */ - PAMModifyRequest.prototype.toJSON = function toJSON() { + PAMData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMModifyRequest + * Gets the default type url for PAMData * @function getTypeUrl - * @memberof PAM.PAMModifyRequest + * @memberof PAM.PAMData * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMModifyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMModifyRequest"; + return typeUrlPrefix + "/PAM.PAMData"; }; - return PAMModifyRequest; + return PAMData; })(); - PAM.PAMDataOperation = (function() { + PAM.UidList = (function() { /** - * Properties of a PAMDataOperation. + * Properties of an UidList. * @memberof PAM - * @interface IPAMDataOperation - * @property {PAM.PAMOperationType|null} [operationType] PAMDataOperation operationType - * @property {PAM.IPAMConfigurationData|null} [configuration] PAMDataOperation configuration - * @property {PAM.IPAMElementData|null} [element] PAMDataOperation element + * @interface IUidList + * @property {Array.|null} [uids] UidList uids */ /** - * Constructs a new PAMDataOperation. + * Constructs a new UidList. * @memberof PAM - * @classdesc Represents a PAMDataOperation. - * @implements IPAMDataOperation + * @classdesc Represents an UidList. + * @implements IUidList * @constructor - * @param {PAM.IPAMDataOperation=} [properties] Properties to set + * @param {PAM.IUidList=} [properties] Properties to set */ - function PAMDataOperation(properties) { + function UidList(properties) { + this.uids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -258887,103 +291098,78 @@ export const PAM = $root.PAM = (() => { } /** - * PAMDataOperation operationType. - * @member {PAM.PAMOperationType} operationType - * @memberof PAM.PAMDataOperation - * @instance - */ - PAMDataOperation.prototype.operationType = 0; - - /** - * PAMDataOperation configuration. - * @member {PAM.IPAMConfigurationData|null|undefined} configuration - * @memberof PAM.PAMDataOperation - * @instance - */ - PAMDataOperation.prototype.configuration = null; - - /** - * PAMDataOperation element. - * @member {PAM.IPAMElementData|null|undefined} element - * @memberof PAM.PAMDataOperation + * UidList uids. + * @member {Array.} uids + * @memberof PAM.UidList * @instance */ - PAMDataOperation.prototype.element = null; + UidList.prototype.uids = $util.emptyArray; /** - * Creates a new PAMDataOperation instance using the specified properties. + * Creates a new UidList instance using the specified properties. * @function create - * @memberof PAM.PAMDataOperation + * @memberof PAM.UidList * @static - * @param {PAM.IPAMDataOperation=} [properties] Properties to set - * @returns {PAM.PAMDataOperation} PAMDataOperation instance + * @param {PAM.IUidList=} [properties] Properties to set + * @returns {PAM.UidList} UidList instance */ - PAMDataOperation.create = function create(properties) { - return new PAMDataOperation(properties); + UidList.create = function create(properties) { + return new UidList(properties); }; /** - * Encodes the specified PAMDataOperation message. Does not implicitly {@link PAM.PAMDataOperation.verify|verify} messages. + * Encodes the specified UidList message. Does not implicitly {@link PAM.UidList.verify|verify} messages. * @function encode - * @memberof PAM.PAMDataOperation + * @memberof PAM.UidList * @static - * @param {PAM.IPAMDataOperation} message PAMDataOperation message or plain object to encode + * @param {PAM.IUidList} message UidList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMDataOperation.encode = function encode(message, writer) { + UidList.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.operationType != null && Object.hasOwnProperty.call(message, "operationType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operationType); - if (message.configuration != null && Object.hasOwnProperty.call(message, "configuration")) - $root.PAM.PAMConfigurationData.encode(message.configuration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.element != null && Object.hasOwnProperty.call(message, "element")) - $root.PAM.PAMElementData.encode(message.element, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.uids != null && message.uids.length) + for (let i = 0; i < message.uids.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uids[i]); return writer; }; /** - * Encodes the specified PAMDataOperation message, length delimited. Does not implicitly {@link PAM.PAMDataOperation.verify|verify} messages. + * Encodes the specified UidList message, length delimited. Does not implicitly {@link PAM.UidList.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMDataOperation + * @memberof PAM.UidList * @static - * @param {PAM.IPAMDataOperation} message PAMDataOperation message or plain object to encode + * @param {PAM.IUidList} message UidList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMDataOperation.encodeDelimited = function encodeDelimited(message, writer) { + UidList.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMDataOperation message from the specified reader or buffer. + * Decodes an UidList message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMDataOperation + * @memberof PAM.UidList * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMDataOperation} PAMDataOperation + * @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 */ - PAMDataOperation.decode = function decode(reader, length) { + UidList.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMDataOperation(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.UidList(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.operationType = reader.int32(); - break; - } - case 2: { - message.configuration = $root.PAM.PAMConfigurationData.decode(reader, reader.uint32()); - break; - } - case 3: { - message.element = $root.PAM.PAMElementData.decode(reader, reader.uint32()); + if (!(message.uids && message.uids.length)) + message.uids = []; + message.uids.push(reader.bytes()); break; } default: @@ -258995,199 +291181,145 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMDataOperation message from the specified reader or buffer, length delimited. + * Decodes an UidList message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMDataOperation + * @memberof PAM.UidList * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMDataOperation} PAMDataOperation + * @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 */ - PAMDataOperation.decodeDelimited = function decodeDelimited(reader) { + UidList.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMDataOperation message. + * Verifies an UidList message. * @function verify - * @memberof PAM.PAMDataOperation + * @memberof PAM.UidList * @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) { + UidList.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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; - } - if (message.configuration != null && message.hasOwnProperty("configuration")) { - let error = $root.PAM.PAMConfigurationData.verify(message.configuration); - if (error) - return "configuration." + error; - } - if (message.element != null && message.hasOwnProperty("element")) { - let error = $root.PAM.PAMElementData.verify(message.element); - if (error) - return "element." + error; + 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 PAMDataOperation message from a plain object. Also converts values to their respective internal types. + * Creates an UidList message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMDataOperation + * @memberof PAM.UidList * @static * @param {Object.} object Plain object - * @returns {PAM.PAMDataOperation} PAMDataOperation + * @returns {PAM.UidList} UidList */ - PAMDataOperation.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMDataOperation) + UidList.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.UidList) return object; - let message = new $root.PAM.PAMDataOperation(); - switch (object.operationType) { - default: - if (typeof object.operationType === "number") { - message.operationType = object.operationType; - break; - } - break; - case "ADD": - case 0: - message.operationType = 0; - break; - case "UPDATE": - case 1: - message.operationType = 1; - break; - case "REPLACE": - case 2: - message.operationType = 2; - break; - case "DELETE": - case 3: - message.operationType = 3; - break; - } - if (object.configuration != null) { - if (typeof object.configuration !== "object") - throw TypeError(".PAM.PAMDataOperation.configuration: object expected"); - message.configuration = $root.PAM.PAMConfigurationData.fromObject(object.configuration); - } - if (object.element != null) { - if (typeof object.element !== "object") - throw TypeError(".PAM.PAMDataOperation.element: object expected"); - message.element = $root.PAM.PAMElementData.fromObject(object.element); + let message = new $root.PAM.UidList(); + if (object.uids) { + if (!Array.isArray(object.uids)) + throw TypeError(".PAM.UidList.uids: array expected"); + message.uids = []; + for (let i = 0; i < object.uids.length; ++i) + if (typeof object.uids[i] === "string") + $util.base64.decode(object.uids[i], message.uids[i] = $util.newBuffer($util.base64.length(object.uids[i])), 0); + else if (object.uids[i].length >= 0) + message.uids[i] = object.uids[i]; } return message; }; /** - * Creates a plain object from a PAMDataOperation message. Also converts values to other types if specified. + * Creates a plain object from an UidList message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMDataOperation + * @memberof PAM.UidList * @static - * @param {PAM.PAMDataOperation} message PAMDataOperation + * @param {PAM.UidList} message UidList * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMDataOperation.toObject = function toObject(message, options) { + UidList.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.operationType = options.enums === String ? "ADD" : 0; - object.configuration = null; - object.element = null; + if (options.arrays || options.defaults) + object.uids = []; + if (message.uids && message.uids.length) { + object.uids = []; + for (let j = 0; j < message.uids.length; ++j) + object.uids[j] = options.bytes === String ? $util.base64.encode(message.uids[j], 0, message.uids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.uids[j]) : message.uids[j]; } - if (message.operationType != null && message.hasOwnProperty("operationType")) - object.operationType = options.enums === String ? $root.PAM.PAMOperationType[message.operationType] === undefined ? message.operationType : $root.PAM.PAMOperationType[message.operationType] : message.operationType; - if (message.configuration != null && message.hasOwnProperty("configuration")) - object.configuration = $root.PAM.PAMConfigurationData.toObject(message.configuration, options); - if (message.element != null && message.hasOwnProperty("element")) - object.element = $root.PAM.PAMElementData.toObject(message.element, options); return object; }; /** - * Converts this PAMDataOperation to JSON. + * Converts this UidList to JSON. * @function toJSON - * @memberof PAM.PAMDataOperation + * @memberof PAM.UidList * @instance * @returns {Object.} JSON object */ - PAMDataOperation.prototype.toJSON = function toJSON() { + UidList.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMDataOperation + * Gets the default type url for UidList * @function getTypeUrl - * @memberof PAM.PAMDataOperation + * @memberof PAM.UidList * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMDataOperation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UidList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMDataOperation"; + return typeUrlPrefix + "/PAM.UidList"; }; - return PAMDataOperation; - })(); - - /** - * PAMOperationType enum. - * @name PAM.PAMOperationType - * @enum {number} - * @property {number} ADD=0 ADD value - * @property {number} UPDATE=1 UPDATE value - * @property {number} REPLACE=2 REPLACE value - * @property {number} DELETE=3 DELETE value - */ - PAM.PAMOperationType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ADD"] = 0; - values[valuesById[1] = "UPDATE"] = 1; - values[valuesById[2] = "REPLACE"] = 2; - values[valuesById[3] = "DELETE"] = 3; - return values; + return UidList; })(); - PAM.PAMConfigurationData = (function() { + PAM.PAMResourceConfig = (function() { /** - * Properties of a PAMConfigurationData. + * Properties of a PAMResourceConfig. * @memberof PAM - * @interface IPAMConfigurationData - * @property {Uint8Array|null} [configurationUid] PAMConfigurationData configurationUid - * @property {number|Long|null} [nodeId] PAMConfigurationData nodeId - * @property {Uint8Array|null} [controllerUid] PAMConfigurationData controllerUid - * @property {Uint8Array|null} [data] PAMConfigurationData data + * @interface IPAMResourceConfig + * @property {Uint8Array|null} [recordUid] PAMResourceConfig recordUid + * @property {Uint8Array|null} [networkUid] PAMResourceConfig networkUid + * @property {Uint8Array|null} [adminUid] PAMResourceConfig adminUid + * @property {Uint8Array|null} [meta] PAMResourceConfig meta + * @property {Uint8Array|null} [connectionSettings] PAMResourceConfig connectionSettings + * @property {PAM.IUidList|null} [connectUsers] PAMResourceConfig connectUsers + * @property {Uint8Array|null} [domainUid] PAMResourceConfig domainUid + * @property {Uint8Array|null} [jitSettings] PAMResourceConfig jitSettings + * @property {Uint8Array|null} [keeperAiSettings] PAMResourceConfig keeperAiSettings */ /** - * Constructs a new PAMConfigurationData. + * Constructs a new PAMResourceConfig. * @memberof PAM - * @classdesc Represents a PAMConfigurationData. - * @implements IPAMConfigurationData + * @classdesc Represents a PAMResourceConfig. + * @implements IPAMResourceConfig * @constructor - * @param {PAM.IPAMConfigurationData=} [properties] Properties to set + * @param {PAM.IPAMResourceConfig=} [properties] Properties to set */ - function PAMConfigurationData(properties) { + function PAMResourceConfig(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -259195,117 +291327,278 @@ export const PAM = $root.PAM = (() => { } /** - * PAMConfigurationData configurationUid. - * @member {Uint8Array} configurationUid - * @memberof PAM.PAMConfigurationData + * PAMResourceConfig recordUid. + * @member {Uint8Array} recordUid + * @memberof PAM.PAMResourceConfig * @instance */ - PAMConfigurationData.prototype.configurationUid = $util.newBuffer([]); + PAMResourceConfig.prototype.recordUid = $util.newBuffer([]); /** - * PAMConfigurationData nodeId. - * @member {number|Long} nodeId - * @memberof PAM.PAMConfigurationData + * PAMResourceConfig networkUid. + * @member {Uint8Array|null|undefined} networkUid + * @memberof PAM.PAMResourceConfig * @instance */ - PAMConfigurationData.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + PAMResourceConfig.prototype.networkUid = null; /** - * PAMConfigurationData controllerUid. - * @member {Uint8Array} controllerUid - * @memberof PAM.PAMConfigurationData + * PAMResourceConfig adminUid. + * @member {Uint8Array|null|undefined} adminUid + * @memberof PAM.PAMResourceConfig * @instance */ - PAMConfigurationData.prototype.controllerUid = $util.newBuffer([]); + PAMResourceConfig.prototype.adminUid = null; /** - * PAMConfigurationData data. - * @member {Uint8Array} data - * @memberof PAM.PAMConfigurationData + * PAMResourceConfig meta. + * @member {Uint8Array|null|undefined} meta + * @memberof PAM.PAMResourceConfig * @instance */ - PAMConfigurationData.prototype.data = $util.newBuffer([]); + PAMResourceConfig.prototype.meta = null; /** - * Creates a new PAMConfigurationData instance using the specified properties. + * PAMResourceConfig connectionSettings. + * @member {Uint8Array|null|undefined} connectionSettings + * @memberof PAM.PAMResourceConfig + * @instance + */ + PAMResourceConfig.prototype.connectionSettings = null; + + /** + * PAMResourceConfig connectUsers. + * @member {PAM.IUidList|null|undefined} connectUsers + * @memberof PAM.PAMResourceConfig + * @instance + */ + PAMResourceConfig.prototype.connectUsers = null; + + /** + * PAMResourceConfig domainUid. + * @member {Uint8Array|null|undefined} domainUid + * @memberof PAM.PAMResourceConfig + * @instance + */ + PAMResourceConfig.prototype.domainUid = null; + + /** + * PAMResourceConfig jitSettings. + * @member {Uint8Array|null|undefined} jitSettings + * @memberof PAM.PAMResourceConfig + * @instance + */ + PAMResourceConfig.prototype.jitSettings = null; + + /** + * PAMResourceConfig keeperAiSettings. + * @member {Uint8Array|null|undefined} keeperAiSettings + * @memberof PAM.PAMResourceConfig + * @instance + */ + PAMResourceConfig.prototype.keeperAiSettings = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * PAMResourceConfig _networkUid. + * @member {"networkUid"|undefined} _networkUid + * @memberof PAM.PAMResourceConfig + * @instance + */ + Object.defineProperty(PAMResourceConfig.prototype, "_networkUid", { + get: $util.oneOfGetter($oneOfFields = ["networkUid"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PAMResourceConfig _adminUid. + * @member {"adminUid"|undefined} _adminUid + * @memberof PAM.PAMResourceConfig + * @instance + */ + Object.defineProperty(PAMResourceConfig.prototype, "_adminUid", { + get: $util.oneOfGetter($oneOfFields = ["adminUid"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PAMResourceConfig _meta. + * @member {"meta"|undefined} _meta + * @memberof PAM.PAMResourceConfig + * @instance + */ + Object.defineProperty(PAMResourceConfig.prototype, "_meta", { + get: $util.oneOfGetter($oneOfFields = ["meta"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PAMResourceConfig _connectionSettings. + * @member {"connectionSettings"|undefined} _connectionSettings + * @memberof PAM.PAMResourceConfig + * @instance + */ + Object.defineProperty(PAMResourceConfig.prototype, "_connectionSettings", { + get: $util.oneOfGetter($oneOfFields = ["connectionSettings"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PAMResourceConfig _connectUsers. + * @member {"connectUsers"|undefined} _connectUsers + * @memberof PAM.PAMResourceConfig + * @instance + */ + Object.defineProperty(PAMResourceConfig.prototype, "_connectUsers", { + get: $util.oneOfGetter($oneOfFields = ["connectUsers"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PAMResourceConfig _domainUid. + * @member {"domainUid"|undefined} _domainUid + * @memberof PAM.PAMResourceConfig + * @instance + */ + Object.defineProperty(PAMResourceConfig.prototype, "_domainUid", { + get: $util.oneOfGetter($oneOfFields = ["domainUid"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PAMResourceConfig _jitSettings. + * @member {"jitSettings"|undefined} _jitSettings + * @memberof PAM.PAMResourceConfig + * @instance + */ + Object.defineProperty(PAMResourceConfig.prototype, "_jitSettings", { + get: $util.oneOfGetter($oneOfFields = ["jitSettings"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PAMResourceConfig _keeperAiSettings. + * @member {"keeperAiSettings"|undefined} _keeperAiSettings + * @memberof PAM.PAMResourceConfig + * @instance + */ + Object.defineProperty(PAMResourceConfig.prototype, "_keeperAiSettings", { + get: $util.oneOfGetter($oneOfFields = ["keeperAiSettings"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PAMResourceConfig instance using the specified properties. * @function create - * @memberof PAM.PAMConfigurationData + * @memberof PAM.PAMResourceConfig * @static - * @param {PAM.IPAMConfigurationData=} [properties] Properties to set - * @returns {PAM.PAMConfigurationData} PAMConfigurationData instance + * @param {PAM.IPAMResourceConfig=} [properties] Properties to set + * @returns {PAM.PAMResourceConfig} PAMResourceConfig instance */ - PAMConfigurationData.create = function create(properties) { - return new PAMConfigurationData(properties); + PAMResourceConfig.create = function create(properties) { + return new PAMResourceConfig(properties); }; /** - * Encodes the specified PAMConfigurationData message. Does not implicitly {@link PAM.PAMConfigurationData.verify|verify} messages. + * Encodes the specified PAMResourceConfig message. Does not implicitly {@link PAM.PAMResourceConfig.verify|verify} messages. * @function encode - * @memberof PAM.PAMConfigurationData + * @memberof PAM.PAMResourceConfig * @static - * @param {PAM.IPAMConfigurationData} message PAMConfigurationData message or plain object to encode + * @param {PAM.IPAMResourceConfig} message PAMResourceConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMConfigurationData.encode = function encode(message, writer) { + PAMResourceConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.configurationUid); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.nodeId); - if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.controllerUid); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.networkUid != null && Object.hasOwnProperty.call(message, "networkUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.networkUid); + if (message.adminUid != null && Object.hasOwnProperty.call(message, "adminUid")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.adminUid); + if (message.meta != null && Object.hasOwnProperty.call(message, "meta")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.meta); + if (message.connectionSettings != null && Object.hasOwnProperty.call(message, "connectionSettings")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.connectionSettings); + if (message.connectUsers != null && Object.hasOwnProperty.call(message, "connectUsers")) + $root.PAM.UidList.encode(message.connectUsers, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.domainUid != null && Object.hasOwnProperty.call(message, "domainUid")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.domainUid); + if (message.jitSettings != null && Object.hasOwnProperty.call(message, "jitSettings")) + writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.jitSettings); + if (message.keeperAiSettings != null && Object.hasOwnProperty.call(message, "keeperAiSettings")) + writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.keeperAiSettings); return writer; }; /** - * Encodes the specified PAMConfigurationData message, length delimited. Does not implicitly {@link PAM.PAMConfigurationData.verify|verify} messages. + * Encodes the specified PAMResourceConfig message, length delimited. Does not implicitly {@link PAM.PAMResourceConfig.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMConfigurationData + * @memberof PAM.PAMResourceConfig * @static - * @param {PAM.IPAMConfigurationData} message PAMConfigurationData message or plain object to encode + * @param {PAM.IPAMResourceConfig} message PAMResourceConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMConfigurationData.encodeDelimited = function encodeDelimited(message, writer) { + PAMResourceConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMConfigurationData message from the specified reader or buffer. + * Decodes a PAMResourceConfig message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMConfigurationData + * @memberof PAM.PAMResourceConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMConfigurationData} PAMConfigurationData + * @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 */ - PAMConfigurationData.decode = function decode(reader, length) { + PAMResourceConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMConfigurationData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMResourceConfig(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.configurationUid = reader.bytes(); + message.recordUid = reader.bytes(); break; } case 2: { - message.nodeId = reader.int64(); + message.networkUid = reader.bytes(); break; } case 3: { - message.controllerUid = reader.bytes(); + message.adminUid = reader.bytes(); break; } case 4: { - message.data = reader.bytes(); + message.meta = reader.bytes(); + break; + } + case 5: { + message.connectionSettings = reader.bytes(); + break; + } + case 6: { + message.connectUsers = $root.PAM.UidList.decode(reader, reader.uint32()); + break; + } + case 7: { + message.domainUid = reader.bytes(); + break; + } + case 8: { + message.jitSettings = reader.bytes(); + break; + } + case 9: { + message.keeperAiSettings = reader.bytes(); break; } default: @@ -259317,190 +291610,255 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMConfigurationData message from the specified reader or buffer, length delimited. + * Decodes a PAMResourceConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMConfigurationData + * @memberof PAM.PAMResourceConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMConfigurationData} PAMConfigurationData + * @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 */ - PAMConfigurationData.decodeDelimited = function decodeDelimited(reader) { + PAMResourceConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMConfigurationData message. + * Verifies a PAMResourceConfig message. * @function verify - * @memberof PAM.PAMConfigurationData + * @memberof PAM.PAMResourceConfig * @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) { + PAMResourceConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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"; + 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); + 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"; + } return null; }; /** - * Creates a PAMConfigurationData message from a plain object. Also converts values to their respective internal types. + * Creates a PAMResourceConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMConfigurationData + * @memberof PAM.PAMResourceConfig * @static * @param {Object.} object Plain object - * @returns {PAM.PAMConfigurationData} PAMConfigurationData + * @returns {PAM.PAMResourceConfig} PAMResourceConfig */ - PAMConfigurationData.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMConfigurationData) + PAMResourceConfig.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMResourceConfig) return object; - let message = new $root.PAM.PAMConfigurationData(); - if (object.configurationUid != null) - if (typeof object.configurationUid === "string") - $util.base64.decode(object.configurationUid, message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid)), 0); - else if (object.configurationUid.length >= 0) - message.configurationUid = object.configurationUid; - if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") - message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); - if (object.controllerUid != null) - if (typeof object.controllerUid === "string") - $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); - else if (object.controllerUid.length >= 0) - message.controllerUid = object.controllerUid; - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + let message = new $root.PAM.PAMResourceConfig(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.networkUid != null) + if (typeof object.networkUid === "string") + $util.base64.decode(object.networkUid, message.networkUid = $util.newBuffer($util.base64.length(object.networkUid)), 0); + else if (object.networkUid.length >= 0) + message.networkUid = object.networkUid; + if (object.adminUid != null) + if (typeof object.adminUid === "string") + $util.base64.decode(object.adminUid, message.adminUid = $util.newBuffer($util.base64.length(object.adminUid)), 0); + else if (object.adminUid.length >= 0) + message.adminUid = object.adminUid; + if (object.meta != null) + if (typeof object.meta === "string") + $util.base64.decode(object.meta, message.meta = $util.newBuffer($util.base64.length(object.meta)), 0); + else if (object.meta.length >= 0) + message.meta = object.meta; + if (object.connectionSettings != null) + if (typeof object.connectionSettings === "string") + $util.base64.decode(object.connectionSettings, message.connectionSettings = $util.newBuffer($util.base64.length(object.connectionSettings)), 0); + else if (object.connectionSettings.length >= 0) + message.connectionSettings = object.connectionSettings; + if (object.connectUsers != null) { + if (typeof object.connectUsers !== "object") + throw TypeError(".PAM.PAMResourceConfig.connectUsers: object expected"); + message.connectUsers = $root.PAM.UidList.fromObject(object.connectUsers); + } + if (object.domainUid != null) + if (typeof object.domainUid === "string") + $util.base64.decode(object.domainUid, message.domainUid = $util.newBuffer($util.base64.length(object.domainUid)), 0); + else if (object.domainUid.length >= 0) + message.domainUid = object.domainUid; + if (object.jitSettings != null) + if (typeof object.jitSettings === "string") + $util.base64.decode(object.jitSettings, message.jitSettings = $util.newBuffer($util.base64.length(object.jitSettings)), 0); + else if (object.jitSettings.length >= 0) + message.jitSettings = object.jitSettings; + if (object.keeperAiSettings != null) + if (typeof object.keeperAiSettings === "string") + $util.base64.decode(object.keeperAiSettings, message.keeperAiSettings = $util.newBuffer($util.base64.length(object.keeperAiSettings)), 0); + else if (object.keeperAiSettings.length >= 0) + message.keeperAiSettings = object.keeperAiSettings; return message; }; /** - * Creates a plain object from a PAMConfigurationData message. Also converts values to other types if specified. + * Creates a plain object from a PAMResourceConfig message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMConfigurationData + * @memberof PAM.PAMResourceConfig * @static - * @param {PAM.PAMConfigurationData} message PAMConfigurationData + * @param {PAM.PAMResourceConfig} message PAMResourceConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMConfigurationData.toObject = function toObject(message, options) { + PAMResourceConfig.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.configurationUid = ""; - else { - object.configurationUid = []; - if (options.bytes !== Array) - object.configurationUid = $util.newBuffer(object.configurationUid); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.controllerUid = ""; - else { - object.controllerUid = []; - if (options.bytes !== Array) - object.controllerUid = $util.newBuffer(object.controllerUid); - } + if (options.defaults) if (options.bytes === String) - object.data = ""; + object.recordUid = ""; else { - object.data = []; + object.recordUid = []; if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + object.recordUid = $util.newBuffer(object.recordUid); } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.networkUid != null && message.hasOwnProperty("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")) { + 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")) { + 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")) { + 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")) { + object.connectUsers = $root.PAM.UidList.toObject(message.connectUsers, options); + if (options.oneofs) + object._connectUsers = "connectUsers"; + } + if (message.domainUid != null && message.hasOwnProperty("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")) { + 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")) { + 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.configurationUid != null && message.hasOwnProperty("configurationUid")) - object.configurationUid = options.bytes === String ? $util.base64.encode(message.configurationUid, 0, message.configurationUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.configurationUid) : message.configurationUid; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof 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")) - 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")) - 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; }; /** - * Converts this PAMConfigurationData to JSON. + * Converts this PAMResourceConfig to JSON. * @function toJSON - * @memberof PAM.PAMConfigurationData + * @memberof PAM.PAMResourceConfig * @instance * @returns {Object.} JSON object */ - PAMConfigurationData.prototype.toJSON = function toJSON() { + PAMResourceConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMConfigurationData + * Gets the default type url for PAMResourceConfig * @function getTypeUrl - * @memberof PAM.PAMConfigurationData + * @memberof PAM.PAMResourceConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMConfigurationData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMResourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMConfigurationData"; + return typeUrlPrefix + "/PAM.PAMResourceConfig"; }; - return PAMConfigurationData; + return PAMResourceConfig; })(); - PAM.PAMElementData = (function() { + PAM.PAMUniversalSyncFolder = (function() { /** - * Properties of a PAMElementData. + * Properties of a PAMUniversalSyncFolder. * @memberof PAM - * @interface IPAMElementData - * @property {Uint8Array|null} [elementUid] PAMElementData elementUid - * @property {Uint8Array|null} [parentUid] PAMElementData parentUid - * @property {Uint8Array|null} [data] PAMElementData data + * @interface IPAMUniversalSyncFolder + * @property {Uint8Array|null} [uid] PAMUniversalSyncFolder uid */ /** - * Constructs a new PAMElementData. + * Constructs a new PAMUniversalSyncFolder. * @memberof PAM - * @classdesc Represents a PAMElementData. - * @implements IPAMElementData + * @classdesc Represents a PAMUniversalSyncFolder. + * @implements IPAMUniversalSyncFolder * @constructor - * @param {PAM.IPAMElementData=} [properties] Properties to set + * @param {PAM.IPAMUniversalSyncFolder=} [properties] Properties to set */ - function PAMElementData(properties) { + function PAMUniversalSyncFolder(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -259508,103 +291866,75 @@ export const PAM = $root.PAM = (() => { } /** - * PAMElementData elementUid. - * @member {Uint8Array} elementUid - * @memberof PAM.PAMElementData - * @instance - */ - PAMElementData.prototype.elementUid = $util.newBuffer([]); - - /** - * PAMElementData parentUid. - * @member {Uint8Array} parentUid - * @memberof PAM.PAMElementData - * @instance - */ - PAMElementData.prototype.parentUid = $util.newBuffer([]); - - /** - * PAMElementData data. - * @member {Uint8Array} data - * @memberof PAM.PAMElementData + * PAMUniversalSyncFolder uid. + * @member {Uint8Array} uid + * @memberof PAM.PAMUniversalSyncFolder * @instance */ - PAMElementData.prototype.data = $util.newBuffer([]); + PAMUniversalSyncFolder.prototype.uid = $util.newBuffer([]); /** - * Creates a new PAMElementData instance using the specified properties. + * Creates a new PAMUniversalSyncFolder instance using the specified properties. * @function create - * @memberof PAM.PAMElementData + * @memberof PAM.PAMUniversalSyncFolder * @static - * @param {PAM.IPAMElementData=} [properties] Properties to set - * @returns {PAM.PAMElementData} PAMElementData instance + * @param {PAM.IPAMUniversalSyncFolder=} [properties] Properties to set + * @returns {PAM.PAMUniversalSyncFolder} PAMUniversalSyncFolder instance */ - PAMElementData.create = function create(properties) { - return new PAMElementData(properties); + PAMUniversalSyncFolder.create = function create(properties) { + return new PAMUniversalSyncFolder(properties); }; /** - * Encodes the specified PAMElementData message. Does not implicitly {@link PAM.PAMElementData.verify|verify} messages. + * Encodes the specified PAMUniversalSyncFolder message. Does not implicitly {@link PAM.PAMUniversalSyncFolder.verify|verify} messages. * @function encode - * @memberof PAM.PAMElementData + * @memberof PAM.PAMUniversalSyncFolder * @static - * @param {PAM.IPAMElementData} message PAMElementData message or plain object to encode + * @param {PAM.IPAMUniversalSyncFolder} message PAMUniversalSyncFolder message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMElementData.encode = function encode(message, writer) { + PAMUniversalSyncFolder.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.elementUid != null && Object.hasOwnProperty.call(message, "elementUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.elementUid); - if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.parentUid); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); return writer; }; /** - * Encodes the specified PAMElementData message, length delimited. Does not implicitly {@link PAM.PAMElementData.verify|verify} messages. + * Encodes the specified PAMUniversalSyncFolder message, length delimited. Does not implicitly {@link PAM.PAMUniversalSyncFolder.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMElementData + * @memberof PAM.PAMUniversalSyncFolder * @static - * @param {PAM.IPAMElementData} message PAMElementData message or plain object to encode + * @param {PAM.IPAMUniversalSyncFolder} message PAMUniversalSyncFolder message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMElementData.encodeDelimited = function encodeDelimited(message, writer) { + PAMUniversalSyncFolder.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMElementData message from the specified reader or buffer. + * Decodes a PAMUniversalSyncFolder message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMElementData + * @memberof PAM.PAMUniversalSyncFolder * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMElementData} PAMElementData + * @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 */ - PAMElementData.decode = function decode(reader, length) { + PAMUniversalSyncFolder.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMElementData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMUniversalSyncFolder(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.elementUid = reader.bytes(); - break; - } - case 2: { - message.parentUid = reader.bytes(); - break; - } - case 3: { - message.data = reader.bytes(); + message.uid = reader.bytes(); break; } default: @@ -259616,186 +291946,137 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMElementData message from the specified reader or buffer, length delimited. + * Decodes a PAMUniversalSyncFolder message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMElementData + * @memberof PAM.PAMUniversalSyncFolder * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMElementData} PAMElementData + * @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 */ - PAMElementData.decodeDelimited = function decodeDelimited(reader) { + PAMUniversalSyncFolder.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMElementData message. + * Verifies a PAMUniversalSyncFolder message. * @function verify - * @memberof PAM.PAMElementData + * @memberof PAM.PAMUniversalSyncFolder * @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) { + PAMUniversalSyncFolder.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + 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 PAMElementData message from a plain object. Also converts values to their respective internal types. + * Creates a PAMUniversalSyncFolder message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMElementData + * @memberof PAM.PAMUniversalSyncFolder * @static * @param {Object.} object Plain object - * @returns {PAM.PAMElementData} PAMElementData + * @returns {PAM.PAMUniversalSyncFolder} PAMUniversalSyncFolder */ - PAMElementData.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMElementData) + PAMUniversalSyncFolder.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMUniversalSyncFolder) return object; - let message = new $root.PAM.PAMElementData(); - if (object.elementUid != null) - if (typeof object.elementUid === "string") - $util.base64.decode(object.elementUid, message.elementUid = $util.newBuffer($util.base64.length(object.elementUid)), 0); - else if (object.elementUid.length >= 0) - message.elementUid = object.elementUid; - if (object.parentUid != null) - if (typeof object.parentUid === "string") - $util.base64.decode(object.parentUid, message.parentUid = $util.newBuffer($util.base64.length(object.parentUid)), 0); - else if (object.parentUid.length >= 0) - message.parentUid = object.parentUid; - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + let message = new $root.PAM.PAMUniversalSyncFolder(); + if (object.uid != null) + if (typeof object.uid === "string") + $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); + else if (object.uid.length >= 0) + message.uid = object.uid; return message; }; /** - * Creates a plain object from a PAMElementData message. Also converts values to other types if specified. + * Creates a plain object from a PAMUniversalSyncFolder message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMElementData + * @memberof PAM.PAMUniversalSyncFolder * @static - * @param {PAM.PAMElementData} message PAMElementData + * @param {PAM.PAMUniversalSyncFolder} message PAMUniversalSyncFolder * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMElementData.toObject = function toObject(message, options) { + PAMUniversalSyncFolder.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.elementUid = ""; - else { - object.elementUid = []; - if (options.bytes !== Array) - object.elementUid = $util.newBuffer(object.elementUid); - } - if (options.bytes === String) - object.parentUid = ""; - else { - object.parentUid = []; - if (options.bytes !== Array) - object.parentUid = $util.newBuffer(object.parentUid); - } + if (options.defaults) if (options.bytes === String) - object.data = ""; + object.uid = ""; else { - object.data = []; + object.uid = []; if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + object.uid = $util.newBuffer(object.uid); } - } - if (message.elementUid != null && message.hasOwnProperty("elementUid")) - object.elementUid = options.bytes === String ? $util.base64.encode(message.elementUid, 0, message.elementUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.elementUid) : message.elementUid; - if (message.parentUid != null && message.hasOwnProperty("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")) - 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.uid != null && message.hasOwnProperty("uid")) + object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; return object; }; /** - * Converts this PAMElementData to JSON. + * Converts this PAMUniversalSyncFolder to JSON. * @function toJSON - * @memberof PAM.PAMElementData + * @memberof PAM.PAMUniversalSyncFolder * @instance * @returns {Object.} JSON object */ - PAMElementData.prototype.toJSON = function toJSON() { + PAMUniversalSyncFolder.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMElementData + * Gets the default type url for PAMUniversalSyncFolder * @function getTypeUrl - * @memberof PAM.PAMElementData + * @memberof PAM.PAMUniversalSyncFolder * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMElementData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMUniversalSyncFolder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMElementData"; + return typeUrlPrefix + "/PAM.PAMUniversalSyncFolder"; }; - return PAMElementData; - })(); - - /** - * PAMOperationResultType enum. - * @name PAM.PAMOperationResultType - * @enum {number} - * @property {number} POT_SUCCESS=0 POT_SUCCESS value - * @property {number} POT_UNKNOWN_ERROR=1 POT_UNKNOWN_ERROR value - * @property {number} POT_ALREADY_EXISTS=2 POT_ALREADY_EXISTS value - * @property {number} POT_DOES_NOT_EXIST=3 POT_DOES_NOT_EXIST value - */ - PAM.PAMOperationResultType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "POT_SUCCESS"] = 0; - values[valuesById[1] = "POT_UNKNOWN_ERROR"] = 1; - values[valuesById[2] = "POT_ALREADY_EXISTS"] = 2; - values[valuesById[3] = "POT_DOES_NOT_EXIST"] = 3; - return values; + return PAMUniversalSyncFolder; })(); - PAM.PAMElementOperationResult = (function() { + PAM.PAMUniversalSyncConfig = (function() { /** - * Properties of a PAMElementOperationResult. + * Properties of a PAMUniversalSyncConfig. * @memberof PAM - * @interface IPAMElementOperationResult - * @property {Uint8Array|null} [elementUid] PAMElementOperationResult elementUid - * @property {PAM.PAMOperationResultType|null} [result] PAMElementOperationResult result - * @property {string|null} [message] PAMElementOperationResult message + * @interface IPAMUniversalSyncConfig + * @property {Uint8Array|null} [networkUid] PAMUniversalSyncConfig networkUid + * @property {boolean|null} [enabled] PAMUniversalSyncConfig enabled + * @property {boolean|null} [dryRunEnabled] PAMUniversalSyncConfig dryRunEnabled + * @property {Array.|null} [folders] PAMUniversalSyncConfig folders + * @property {Uint8Array|null} [syncIdentity] PAMUniversalSyncConfig syncIdentity + * @property {Uint8Array|null} [vaultName] PAMUniversalSyncConfig vaultName */ /** - * Constructs a new PAMElementOperationResult. + * Constructs a new PAMUniversalSyncConfig. * @memberof PAM - * @classdesc Represents a PAMElementOperationResult. - * @implements IPAMElementOperationResult + * @classdesc Represents a PAMUniversalSyncConfig. + * @implements IPAMUniversalSyncConfig * @constructor - * @param {PAM.IPAMElementOperationResult=} [properties] Properties to set + * @param {PAM.IPAMUniversalSyncConfig=} [properties] Properties to set */ - function PAMElementOperationResult(properties) { + function PAMUniversalSyncConfig(properties) { + this.folders = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -259803,103 +292084,195 @@ export const PAM = $root.PAM = (() => { } /** - * PAMElementOperationResult elementUid. - * @member {Uint8Array} elementUid - * @memberof PAM.PAMElementOperationResult + * PAMUniversalSyncConfig networkUid. + * @member {Uint8Array} networkUid + * @memberof PAM.PAMUniversalSyncConfig * @instance */ - PAMElementOperationResult.prototype.elementUid = $util.newBuffer([]); + PAMUniversalSyncConfig.prototype.networkUid = $util.newBuffer([]); /** - * PAMElementOperationResult result. - * @member {PAM.PAMOperationResultType} result - * @memberof PAM.PAMElementOperationResult + * PAMUniversalSyncConfig enabled. + * @member {boolean|null|undefined} enabled + * @memberof PAM.PAMUniversalSyncConfig * @instance */ - PAMElementOperationResult.prototype.result = 0; + PAMUniversalSyncConfig.prototype.enabled = null; /** - * PAMElementOperationResult message. - * @member {string} message - * @memberof PAM.PAMElementOperationResult + * PAMUniversalSyncConfig dryRunEnabled. + * @member {boolean|null|undefined} dryRunEnabled + * @memberof PAM.PAMUniversalSyncConfig * @instance */ - PAMElementOperationResult.prototype.message = ""; + PAMUniversalSyncConfig.prototype.dryRunEnabled = null; /** - * Creates a new PAMElementOperationResult instance using the specified properties. + * PAMUniversalSyncConfig folders. + * @member {Array.} folders + * @memberof PAM.PAMUniversalSyncConfig + * @instance + */ + PAMUniversalSyncConfig.prototype.folders = $util.emptyArray; + + /** + * PAMUniversalSyncConfig syncIdentity. + * @member {Uint8Array|null|undefined} syncIdentity + * @memberof PAM.PAMUniversalSyncConfig + * @instance + */ + PAMUniversalSyncConfig.prototype.syncIdentity = null; + + /** + * PAMUniversalSyncConfig vaultName. + * @member {Uint8Array|null|undefined} vaultName + * @memberof PAM.PAMUniversalSyncConfig + * @instance + */ + PAMUniversalSyncConfig.prototype.vaultName = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * PAMUniversalSyncConfig _enabled. + * @member {"enabled"|undefined} _enabled + * @memberof PAM.PAMUniversalSyncConfig + * @instance + */ + Object.defineProperty(PAMUniversalSyncConfig.prototype, "_enabled", { + get: $util.oneOfGetter($oneOfFields = ["enabled"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PAMUniversalSyncConfig _dryRunEnabled. + * @member {"dryRunEnabled"|undefined} _dryRunEnabled + * @memberof PAM.PAMUniversalSyncConfig + * @instance + */ + Object.defineProperty(PAMUniversalSyncConfig.prototype, "_dryRunEnabled", { + get: $util.oneOfGetter($oneOfFields = ["dryRunEnabled"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PAMUniversalSyncConfig _syncIdentity. + * @member {"syncIdentity"|undefined} _syncIdentity + * @memberof PAM.PAMUniversalSyncConfig + * @instance + */ + Object.defineProperty(PAMUniversalSyncConfig.prototype, "_syncIdentity", { + get: $util.oneOfGetter($oneOfFields = ["syncIdentity"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PAMUniversalSyncConfig _vaultName. + * @member {"vaultName"|undefined} _vaultName + * @memberof PAM.PAMUniversalSyncConfig + * @instance + */ + Object.defineProperty(PAMUniversalSyncConfig.prototype, "_vaultName", { + get: $util.oneOfGetter($oneOfFields = ["vaultName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PAMUniversalSyncConfig instance using the specified properties. * @function create - * @memberof PAM.PAMElementOperationResult + * @memberof PAM.PAMUniversalSyncConfig * @static - * @param {PAM.IPAMElementOperationResult=} [properties] Properties to set - * @returns {PAM.PAMElementOperationResult} PAMElementOperationResult instance + * @param {PAM.IPAMUniversalSyncConfig=} [properties] Properties to set + * @returns {PAM.PAMUniversalSyncConfig} PAMUniversalSyncConfig instance */ - PAMElementOperationResult.create = function create(properties) { - return new PAMElementOperationResult(properties); + PAMUniversalSyncConfig.create = function create(properties) { + return new PAMUniversalSyncConfig(properties); }; /** - * Encodes the specified PAMElementOperationResult message. Does not implicitly {@link PAM.PAMElementOperationResult.verify|verify} messages. + * Encodes the specified PAMUniversalSyncConfig message. Does not implicitly {@link PAM.PAMUniversalSyncConfig.verify|verify} messages. * @function encode - * @memberof PAM.PAMElementOperationResult + * @memberof PAM.PAMUniversalSyncConfig * @static - * @param {PAM.IPAMElementOperationResult} message PAMElementOperationResult message or plain object to encode + * @param {PAM.IPAMUniversalSyncConfig} message PAMUniversalSyncConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMElementOperationResult.encode = function encode(message, writer) { + PAMUniversalSyncConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.elementUid != null && Object.hasOwnProperty.call(message, "elementUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.elementUid); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.result); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); + if (message.networkUid != null && Object.hasOwnProperty.call(message, "networkUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.networkUid); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enabled); + if (message.dryRunEnabled != null && Object.hasOwnProperty.call(message, "dryRunEnabled")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.dryRunEnabled); + if (message.folders != null && message.folders.length) + for (let i = 0; i < message.folders.length; ++i) + $root.PAM.PAMUniversalSyncFolder.encode(message.folders[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.syncIdentity != null && Object.hasOwnProperty.call(message, "syncIdentity")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.syncIdentity); + if (message.vaultName != null && Object.hasOwnProperty.call(message, "vaultName")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.vaultName); return writer; }; /** - * Encodes the specified PAMElementOperationResult message, length delimited. Does not implicitly {@link PAM.PAMElementOperationResult.verify|verify} messages. + * Encodes the specified PAMUniversalSyncConfig message, length delimited. Does not implicitly {@link PAM.PAMUniversalSyncConfig.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMElementOperationResult + * @memberof PAM.PAMUniversalSyncConfig * @static - * @param {PAM.IPAMElementOperationResult} message PAMElementOperationResult message or plain object to encode + * @param {PAM.IPAMUniversalSyncConfig} message PAMUniversalSyncConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMElementOperationResult.encodeDelimited = function encodeDelimited(message, writer) { + PAMUniversalSyncConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMElementOperationResult message from the specified reader or buffer. + * Decodes a PAMUniversalSyncConfig message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMElementOperationResult + * @memberof PAM.PAMUniversalSyncConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMElementOperationResult} PAMElementOperationResult + * @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 */ - PAMElementOperationResult.decode = function decode(reader, length) { + PAMUniversalSyncConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMElementOperationResult(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMUniversalSyncConfig(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.elementUid = reader.bytes(); + message.networkUid = reader.bytes(); break; } case 2: { - message.result = reader.int32(); + message.enabled = reader.bool(); break; } case 3: { - message.message = reader.string(); + message.dryRunEnabled = reader.bool(); + break; + } + case 4: { + if (!(message.folders && message.folders.length)) + message.folders = []; + message.folders.push($root.PAM.PAMUniversalSyncFolder.decode(reader, reader.uint32())); + break; + } + case 5: { + message.syncIdentity = reader.bytes(); + break; + } + case 6: { + message.vaultName = reader.bytes(); break; } default: @@ -259911,178 +292284,220 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMElementOperationResult message from the specified reader or buffer, length delimited. + * Decodes a PAMUniversalSyncConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMElementOperationResult + * @memberof PAM.PAMUniversalSyncConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMElementOperationResult} PAMElementOperationResult + * @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 */ - PAMElementOperationResult.decodeDelimited = function decodeDelimited(reader) { + PAMUniversalSyncConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMElementOperationResult message. + * Verifies a PAMUniversalSyncConfig message. * @function verify - * @memberof PAM.PAMElementOperationResult + * @memberof PAM.PAMUniversalSyncConfig * @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) { + PAMUniversalSyncConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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; + 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]); + if (error) + return "folders." + error; } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + } + 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 PAMElementOperationResult message from a plain object. Also converts values to their respective internal types. + * Creates a PAMUniversalSyncConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMElementOperationResult + * @memberof PAM.PAMUniversalSyncConfig * @static * @param {Object.} object Plain object - * @returns {PAM.PAMElementOperationResult} PAMElementOperationResult + * @returns {PAM.PAMUniversalSyncConfig} PAMUniversalSyncConfig */ - PAMElementOperationResult.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMElementOperationResult) + PAMUniversalSyncConfig.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.PAMUniversalSyncConfig) return object; - let message = new $root.PAM.PAMElementOperationResult(); - if (object.elementUid != null) - if (typeof object.elementUid === "string") - $util.base64.decode(object.elementUid, message.elementUid = $util.newBuffer($util.base64.length(object.elementUid)), 0); - else if (object.elementUid.length >= 0) - message.elementUid = object.elementUid; - switch (object.result) { - default: - if (typeof object.result === "number") { - message.result = object.result; - break; + let message = new $root.PAM.PAMUniversalSyncConfig(); + if (object.networkUid != null) + if (typeof object.networkUid === "string") + $util.base64.decode(object.networkUid, message.networkUid = $util.newBuffer($util.base64.length(object.networkUid)), 0); + else if (object.networkUid.length >= 0) + message.networkUid = object.networkUid; + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.dryRunEnabled != null) + message.dryRunEnabled = Boolean(object.dryRunEnabled); + if (object.folders) { + if (!Array.isArray(object.folders)) + throw TypeError(".PAM.PAMUniversalSyncConfig.folders: array expected"); + message.folders = []; + for (let i = 0; i < object.folders.length; ++i) { + if (typeof object.folders[i] !== "object") + throw TypeError(".PAM.PAMUniversalSyncConfig.folders: object expected"); + message.folders[i] = $root.PAM.PAMUniversalSyncFolder.fromObject(object.folders[i]); } - break; - case "POT_SUCCESS": - case 0: - message.result = 0; - break; - case "POT_UNKNOWN_ERROR": - case 1: - message.result = 1; - break; - case "POT_ALREADY_EXISTS": - case 2: - message.result = 2; - break; - case "POT_DOES_NOT_EXIST": - case 3: - message.result = 3; - break; } - if (object.message != null) - message.message = String(object.message); + if (object.syncIdentity != null) + if (typeof object.syncIdentity === "string") + $util.base64.decode(object.syncIdentity, message.syncIdentity = $util.newBuffer($util.base64.length(object.syncIdentity)), 0); + else if (object.syncIdentity.length >= 0) + message.syncIdentity = object.syncIdentity; + if (object.vaultName != null) + if (typeof object.vaultName === "string") + $util.base64.decode(object.vaultName, message.vaultName = $util.newBuffer($util.base64.length(object.vaultName)), 0); + else if (object.vaultName.length >= 0) + message.vaultName = object.vaultName; return message; }; /** - * Creates a plain object from a PAMElementOperationResult message. Also converts values to other types if specified. + * Creates a plain object from a PAMUniversalSyncConfig message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMElementOperationResult + * @memberof PAM.PAMUniversalSyncConfig * @static - * @param {PAM.PAMElementOperationResult} message PAMElementOperationResult + * @param {PAM.PAMUniversalSyncConfig} message PAMUniversalSyncConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMElementOperationResult.toObject = function toObject(message, options) { + PAMUniversalSyncConfig.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { + if (options.arrays || options.defaults) + object.folders = []; + if (options.defaults) if (options.bytes === String) - object.elementUid = ""; + object.networkUid = ""; else { - object.elementUid = []; + object.networkUid = []; if (options.bytes !== Array) - object.elementUid = $util.newBuffer(object.elementUid); + object.networkUid = $util.newBuffer(object.networkUid); } - object.result = options.enums === String ? "POT_SUCCESS" : 0; - object.message = ""; + if (message.networkUid != null && message.hasOwnProperty("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")) { + object.enabled = message.enabled; + if (options.oneofs) + object._enabled = "enabled"; + } + if (message.dryRunEnabled != null && message.hasOwnProperty("dryRunEnabled")) { + object.dryRunEnabled = message.dryRunEnabled; + if (options.oneofs) + object._dryRunEnabled = "dryRunEnabled"; + } + if (message.folders && message.folders.length) { + object.folders = []; + for (let j = 0; j < message.folders.length; ++j) + object.folders[j] = $root.PAM.PAMUniversalSyncFolder.toObject(message.folders[j], options); + } + if (message.syncIdentity != null && message.hasOwnProperty("syncIdentity")) { + object.syncIdentity = options.bytes === String ? $util.base64.encode(message.syncIdentity, 0, message.syncIdentity.length) : options.bytes === Array ? Array.prototype.slice.call(message.syncIdentity) : message.syncIdentity; + if (options.oneofs) + object._syncIdentity = "syncIdentity"; + } + if (message.vaultName != null && message.hasOwnProperty("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"; } - if (message.elementUid != null && message.hasOwnProperty("elementUid")) - object.elementUid = options.bytes === String ? $util.base64.encode(message.elementUid, 0, message.elementUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.elementUid) : message.elementUid; - if (message.result != null && message.hasOwnProperty("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")) - object.message = message.message; return object; }; /** - * Converts this PAMElementOperationResult to JSON. + * Converts this PAMUniversalSyncConfig to JSON. * @function toJSON - * @memberof PAM.PAMElementOperationResult + * @memberof PAM.PAMUniversalSyncConfig * @instance * @returns {Object.} JSON object */ - PAMElementOperationResult.prototype.toJSON = function toJSON() { + PAMUniversalSyncConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMElementOperationResult + * Gets the default type url for PAMUniversalSyncConfig * @function getTypeUrl - * @memberof PAM.PAMElementOperationResult + * @memberof PAM.PAMUniversalSyncConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMElementOperationResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PAMUniversalSyncConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMElementOperationResult"; + return typeUrlPrefix + "/PAM.PAMUniversalSyncConfig"; }; - return PAMElementOperationResult; + return PAMUniversalSyncConfig; })(); - PAM.PAMModifyResult = (function() { + PAM.CnappWebhookRequest = (function() { /** - * Properties of a PAMModifyResult. + * Properties of a CnappWebhookRequest. * @memberof PAM - * @interface IPAMModifyResult - * @property {Array.|null} [results] PAMModifyResult results + * @interface ICnappWebhookRequest + * @property {Uint8Array|null} [networkUid] CnappWebhookRequest networkUid + * @property {string|null} [provider] CnappWebhookRequest provider + * @property {string|null} [clientId] CnappWebhookRequest clientId + * @property {string|null} [clientSecret] CnappWebhookRequest clientSecret + * @property {string|null} [apiEndpointUrl] CnappWebhookRequest apiEndpointUrl + * @property {string|null} [authUrl] CnappWebhookRequest authUrl + * @property {Uint8Array|null} [encryptionRecordKeyId] CnappWebhookRequest encryptionRecordKeyId + * @property {Uint8Array|null} [controllerUid] CnappWebhookRequest controllerUid + * @property {string|null} [webhookId] CnappWebhookRequest webhookId */ /** - * Constructs a new PAMModifyResult. + * Constructs a new CnappWebhookRequest. * @memberof PAM - * @classdesc Represents a PAMModifyResult. - * @implements IPAMModifyResult + * @classdesc Represents a CnappWebhookRequest. + * @implements ICnappWebhookRequest * @constructor - * @param {PAM.IPAMModifyResult=} [properties] Properties to set + * @param {PAM.ICnappWebhookRequest=} [properties] Properties to set */ - function PAMModifyResult(properties) { - this.results = []; + function CnappWebhookRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -260090,78 +292505,187 @@ export const PAM = $root.PAM = (() => { } /** - * PAMModifyResult results. - * @member {Array.} results - * @memberof PAM.PAMModifyResult + * CnappWebhookRequest networkUid. + * @member {Uint8Array} networkUid + * @memberof PAM.CnappWebhookRequest * @instance */ - PAMModifyResult.prototype.results = $util.emptyArray; + CnappWebhookRequest.prototype.networkUid = $util.newBuffer([]); /** - * Creates a new PAMModifyResult instance using the specified properties. + * CnappWebhookRequest provider. + * @member {string} provider + * @memberof PAM.CnappWebhookRequest + * @instance + */ + CnappWebhookRequest.prototype.provider = ""; + + /** + * CnappWebhookRequest clientId. + * @member {string} clientId + * @memberof PAM.CnappWebhookRequest + * @instance + */ + CnappWebhookRequest.prototype.clientId = ""; + + /** + * CnappWebhookRequest clientSecret. + * @member {string} clientSecret + * @memberof PAM.CnappWebhookRequest + * @instance + */ + CnappWebhookRequest.prototype.clientSecret = ""; + + /** + * CnappWebhookRequest apiEndpointUrl. + * @member {string} apiEndpointUrl + * @memberof PAM.CnappWebhookRequest + * @instance + */ + CnappWebhookRequest.prototype.apiEndpointUrl = ""; + + /** + * CnappWebhookRequest authUrl. + * @member {string} authUrl + * @memberof PAM.CnappWebhookRequest + * @instance + */ + CnappWebhookRequest.prototype.authUrl = ""; + + /** + * CnappWebhookRequest encryptionRecordKeyId. + * @member {Uint8Array} encryptionRecordKeyId + * @memberof PAM.CnappWebhookRequest + * @instance + */ + CnappWebhookRequest.prototype.encryptionRecordKeyId = $util.newBuffer([]); + + /** + * CnappWebhookRequest controllerUid. + * @member {Uint8Array} controllerUid + * @memberof PAM.CnappWebhookRequest + * @instance + */ + CnappWebhookRequest.prototype.controllerUid = $util.newBuffer([]); + + /** + * CnappWebhookRequest webhookId. + * @member {string} webhookId + * @memberof PAM.CnappWebhookRequest + * @instance + */ + CnappWebhookRequest.prototype.webhookId = ""; + + /** + * Creates a new CnappWebhookRequest instance using the specified properties. * @function create - * @memberof PAM.PAMModifyResult + * @memberof PAM.CnappWebhookRequest * @static - * @param {PAM.IPAMModifyResult=} [properties] Properties to set - * @returns {PAM.PAMModifyResult} PAMModifyResult instance + * @param {PAM.ICnappWebhookRequest=} [properties] Properties to set + * @returns {PAM.CnappWebhookRequest} CnappWebhookRequest instance */ - PAMModifyResult.create = function create(properties) { - return new PAMModifyResult(properties); + CnappWebhookRequest.create = function create(properties) { + return new CnappWebhookRequest(properties); }; /** - * Encodes the specified PAMModifyResult message. Does not implicitly {@link PAM.PAMModifyResult.verify|verify} messages. + * Encodes the specified CnappWebhookRequest message. Does not implicitly {@link PAM.CnappWebhookRequest.verify|verify} messages. * @function encode - * @memberof PAM.PAMModifyResult + * @memberof PAM.CnappWebhookRequest * @static - * @param {PAM.IPAMModifyResult} message PAMModifyResult message or plain object to encode + * @param {PAM.ICnappWebhookRequest} message CnappWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMModifyResult.encode = function encode(message, writer) { + CnappWebhookRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.results != null && message.results.length) - for (let i = 0; i < message.results.length; ++i) - $root.PAM.PAMElementOperationResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.networkUid != null && Object.hasOwnProperty.call(message, "networkUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.networkUid); + if (message.provider != null && Object.hasOwnProperty.call(message, "provider")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.provider); + if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clientId); + if (message.clientSecret != null && Object.hasOwnProperty.call(message, "clientSecret")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.clientSecret); + if (message.apiEndpointUrl != null && Object.hasOwnProperty.call(message, "apiEndpointUrl")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.apiEndpointUrl); + if (message.authUrl != null && Object.hasOwnProperty.call(message, "authUrl")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.authUrl); + if (message.encryptionRecordKeyId != null && Object.hasOwnProperty.call(message, "encryptionRecordKeyId")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.encryptionRecordKeyId); + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) + writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.controllerUid); + if (message.webhookId != null && Object.hasOwnProperty.call(message, "webhookId")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.webhookId); return writer; }; /** - * Encodes the specified PAMModifyResult message, length delimited. Does not implicitly {@link PAM.PAMModifyResult.verify|verify} messages. + * Encodes the specified CnappWebhookRequest message, length delimited. Does not implicitly {@link PAM.CnappWebhookRequest.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMModifyResult + * @memberof PAM.CnappWebhookRequest * @static - * @param {PAM.IPAMModifyResult} message PAMModifyResult message or plain object to encode + * @param {PAM.ICnappWebhookRequest} message CnappWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMModifyResult.encodeDelimited = function encodeDelimited(message, writer) { + CnappWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMModifyResult message from the specified reader or buffer. + * Decodes a CnappWebhookRequest message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMModifyResult + * @memberof PAM.CnappWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMModifyResult} PAMModifyResult + * @returns {PAM.CnappWebhookRequest} CnappWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMModifyResult.decode = function decode(reader, length) { + CnappWebhookRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMModifyResult(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappWebhookRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.results && message.results.length)) - message.results = []; - message.results.push($root.PAM.PAMElementOperationResult.decode(reader, reader.uint32())); + message.networkUid = reader.bytes(); + break; + } + case 2: { + message.provider = reader.string(); + break; + } + case 3: { + message.clientId = reader.string(); + break; + } + case 4: { + message.clientSecret = reader.string(); + break; + } + case 5: { + message.apiEndpointUrl = reader.string(); + break; + } + case 6: { + message.authUrl = reader.string(); + break; + } + case 7: { + message.encryptionRecordKeyId = reader.bytes(); + break; + } + case 8: { + message.controllerUid = reader.bytes(); + break; + } + case 9: { + message.webhookId = reader.string(); break; } default: @@ -260173,144 +292697,216 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMModifyResult message from the specified reader or buffer, length delimited. + * Decodes a CnappWebhookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMModifyResult + * @memberof PAM.CnappWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMModifyResult} PAMModifyResult + * @returns {PAM.CnappWebhookRequest} CnappWebhookRequest * @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) { + CnappWebhookRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMModifyResult message. + * Verifies a CnappWebhookRequest message. * @function verify - * @memberof PAM.PAMModifyResult + * @memberof PAM.CnappWebhookRequest * @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) { + CnappWebhookRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.PAM.PAMElementOperationResult.verify(message.results[i]); - if (error) - return "results." + error; - } - } + 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.provider != null && message.hasOwnProperty("provider")) + if (!$util.isString(message.provider)) + return "provider: string expected"; + if (message.clientId != null && message.hasOwnProperty("clientId")) + if (!$util.isString(message.clientId)) + return "clientId: string expected"; + if (message.clientSecret != null && message.hasOwnProperty("clientSecret")) + if (!$util.isString(message.clientSecret)) + return "clientSecret: string expected"; + if (message.apiEndpointUrl != null && message.hasOwnProperty("apiEndpointUrl")) + if (!$util.isString(message.apiEndpointUrl)) + return "apiEndpointUrl: string expected"; + if (message.authUrl != null && message.hasOwnProperty("authUrl")) + if (!$util.isString(message.authUrl)) + return "authUrl: string expected"; + if (message.encryptionRecordKeyId != null && message.hasOwnProperty("encryptionRecordKeyId")) + if (!(message.encryptionRecordKeyId && typeof message.encryptionRecordKeyId.length === "number" || $util.isString(message.encryptionRecordKeyId))) + return "encryptionRecordKeyId: 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.webhookId != null && message.hasOwnProperty("webhookId")) + if (!$util.isString(message.webhookId)) + return "webhookId: string expected"; return null; }; /** - * Creates a PAMModifyResult message from a plain object. Also converts values to their respective internal types. + * Creates a CnappWebhookRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMModifyResult + * @memberof PAM.CnappWebhookRequest * @static * @param {Object.} object Plain object - * @returns {PAM.PAMModifyResult} PAMModifyResult + * @returns {PAM.CnappWebhookRequest} CnappWebhookRequest */ - PAMModifyResult.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMModifyResult) + CnappWebhookRequest.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappWebhookRequest) return object; - let message = new $root.PAM.PAMModifyResult(); - if (object.results) { - if (!Array.isArray(object.results)) - throw TypeError(".PAM.PAMModifyResult.results: array expected"); - message.results = []; - for (let i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") - throw TypeError(".PAM.PAMModifyResult.results: object expected"); - message.results[i] = $root.PAM.PAMElementOperationResult.fromObject(object.results[i]); - } - } + let message = new $root.PAM.CnappWebhookRequest(); + if (object.networkUid != null) + if (typeof object.networkUid === "string") + $util.base64.decode(object.networkUid, message.networkUid = $util.newBuffer($util.base64.length(object.networkUid)), 0); + else if (object.networkUid.length >= 0) + message.networkUid = object.networkUid; + if (object.provider != null) + message.provider = String(object.provider); + if (object.clientId != null) + message.clientId = String(object.clientId); + if (object.clientSecret != null) + message.clientSecret = String(object.clientSecret); + if (object.apiEndpointUrl != null) + message.apiEndpointUrl = String(object.apiEndpointUrl); + if (object.authUrl != null) + message.authUrl = String(object.authUrl); + if (object.encryptionRecordKeyId != null) + if (typeof object.encryptionRecordKeyId === "string") + $util.base64.decode(object.encryptionRecordKeyId, message.encryptionRecordKeyId = $util.newBuffer($util.base64.length(object.encryptionRecordKeyId)), 0); + else if (object.encryptionRecordKeyId.length >= 0) + message.encryptionRecordKeyId = object.encryptionRecordKeyId; + if (object.controllerUid != null) + if (typeof object.controllerUid === "string") + $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); + else if (object.controllerUid.length >= 0) + message.controllerUid = object.controllerUid; + if (object.webhookId != null) + message.webhookId = String(object.webhookId); return message; }; /** - * Creates a plain object from a PAMModifyResult message. Also converts values to other types if specified. + * Creates a plain object from a CnappWebhookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMModifyResult + * @memberof PAM.CnappWebhookRequest * @static - * @param {PAM.PAMModifyResult} message PAMModifyResult + * @param {PAM.CnappWebhookRequest} message CnappWebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMModifyResult.toObject = function toObject(message, options) { + CnappWebhookRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.results = []; - if (message.results && message.results.length) { - object.results = []; - for (let j = 0; j < message.results.length; ++j) - object.results[j] = $root.PAM.PAMElementOperationResult.toObject(message.results[j], options); + if (options.defaults) { + if (options.bytes === String) + object.networkUid = ""; + else { + object.networkUid = []; + if (options.bytes !== Array) + object.networkUid = $util.newBuffer(object.networkUid); + } + object.provider = ""; + object.clientId = ""; + object.clientSecret = ""; + object.apiEndpointUrl = ""; + object.authUrl = ""; + if (options.bytes === String) + object.encryptionRecordKeyId = ""; + else { + object.encryptionRecordKeyId = []; + if (options.bytes !== Array) + object.encryptionRecordKeyId = $util.newBuffer(object.encryptionRecordKeyId); + } + if (options.bytes === String) + object.controllerUid = ""; + else { + object.controllerUid = []; + if (options.bytes !== Array) + object.controllerUid = $util.newBuffer(object.controllerUid); + } + object.webhookId = ""; } + if (message.networkUid != null && message.hasOwnProperty("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.provider != null && message.hasOwnProperty("provider")) + object.provider = message.provider; + if (message.clientId != null && message.hasOwnProperty("clientId")) + object.clientId = message.clientId; + if (message.clientSecret != null && message.hasOwnProperty("clientSecret")) + object.clientSecret = message.clientSecret; + if (message.apiEndpointUrl != null && message.hasOwnProperty("apiEndpointUrl")) + object.apiEndpointUrl = message.apiEndpointUrl; + if (message.authUrl != null && message.hasOwnProperty("authUrl")) + object.authUrl = message.authUrl; + if (message.encryptionRecordKeyId != null && message.hasOwnProperty("encryptionRecordKeyId")) + object.encryptionRecordKeyId = options.bytes === String ? $util.base64.encode(message.encryptionRecordKeyId, 0, message.encryptionRecordKeyId.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptionRecordKeyId) : message.encryptionRecordKeyId; + if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) + object.controllerUid = options.bytes === String ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUid) : message.controllerUid; + if (message.webhookId != null && message.hasOwnProperty("webhookId")) + object.webhookId = message.webhookId; return object; }; /** - * Converts this PAMModifyResult to JSON. + * Converts this CnappWebhookRequest to JSON. * @function toJSON - * @memberof PAM.PAMModifyResult + * @memberof PAM.CnappWebhookRequest * @instance * @returns {Object.} JSON object */ - PAMModifyResult.prototype.toJSON = function toJSON() { + CnappWebhookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMModifyResult + * Gets the default type url for CnappWebhookRequest * @function getTypeUrl - * @memberof PAM.PAMModifyResult + * @memberof PAM.CnappWebhookRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMModifyResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CnappWebhookRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMModifyResult"; + return typeUrlPrefix + "/PAM.CnappWebhookRequest"; }; - return PAMModifyResult; + return CnappWebhookRequest; })(); - PAM.PAMElement = (function() { + PAM.CnappWebhookResponse = (function() { /** - * Properties of a PAMElement. + * Properties of a CnappWebhookResponse. * @memberof PAM - * @interface IPAMElement - * @property {Uint8Array|null} [elementUid] PAMElement elementUid - * @property {Uint8Array|null} [data] PAMElement data - * @property {number|Long|null} [created] PAMElement created - * @property {number|Long|null} [lastModified] PAMElement lastModified - * @property {Array.|null} [children] PAMElement children + * @interface ICnappWebhookResponse + * @property {string|null} [webhookId] CnappWebhookResponse webhookId + * @property {string|null} [webhookUrl] CnappWebhookResponse webhookUrl + * @property {string|null} [webhookToken] CnappWebhookResponse webhookToken */ /** - * Constructs a new PAMElement. + * Constructs a new CnappWebhookResponse. * @memberof PAM - * @classdesc Represents a PAMElement. - * @implements IPAMElement + * @classdesc Represents a CnappWebhookResponse. + * @implements ICnappWebhookResponse * @constructor - * @param {PAM.IPAMElement=} [properties] Properties to set + * @param {PAM.ICnappWebhookResponse=} [properties] Properties to set */ - function PAMElement(properties) { - this.children = []; + function CnappWebhookResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -260318,134 +292914,103 @@ export const PAM = $root.PAM = (() => { } /** - * PAMElement elementUid. - * @member {Uint8Array} elementUid - * @memberof PAM.PAMElement - * @instance - */ - PAMElement.prototype.elementUid = $util.newBuffer([]); - - /** - * PAMElement data. - * @member {Uint8Array} data - * @memberof PAM.PAMElement - * @instance - */ - PAMElement.prototype.data = $util.newBuffer([]); - - /** - * PAMElement created. - * @member {number|Long} created - * @memberof PAM.PAMElement + * CnappWebhookResponse webhookId. + * @member {string} webhookId + * @memberof PAM.CnappWebhookResponse * @instance */ - PAMElement.prototype.created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CnappWebhookResponse.prototype.webhookId = ""; /** - * PAMElement lastModified. - * @member {number|Long} lastModified - * @memberof PAM.PAMElement + * CnappWebhookResponse webhookUrl. + * @member {string} webhookUrl + * @memberof PAM.CnappWebhookResponse * @instance */ - PAMElement.prototype.lastModified = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CnappWebhookResponse.prototype.webhookUrl = ""; /** - * PAMElement children. - * @member {Array.} children - * @memberof PAM.PAMElement + * CnappWebhookResponse webhookToken. + * @member {string} webhookToken + * @memberof PAM.CnappWebhookResponse * @instance */ - PAMElement.prototype.children = $util.emptyArray; + CnappWebhookResponse.prototype.webhookToken = ""; /** - * Creates a new PAMElement instance using the specified properties. + * Creates a new CnappWebhookResponse instance using the specified properties. * @function create - * @memberof PAM.PAMElement + * @memberof PAM.CnappWebhookResponse * @static - * @param {PAM.IPAMElement=} [properties] Properties to set - * @returns {PAM.PAMElement} PAMElement instance + * @param {PAM.ICnappWebhookResponse=} [properties] Properties to set + * @returns {PAM.CnappWebhookResponse} CnappWebhookResponse instance */ - PAMElement.create = function create(properties) { - return new PAMElement(properties); + CnappWebhookResponse.create = function create(properties) { + return new CnappWebhookResponse(properties); }; /** - * Encodes the specified PAMElement message. Does not implicitly {@link PAM.PAMElement.verify|verify} messages. + * Encodes the specified CnappWebhookResponse message. Does not implicitly {@link PAM.CnappWebhookResponse.verify|verify} messages. * @function encode - * @memberof PAM.PAMElement + * @memberof PAM.CnappWebhookResponse * @static - * @param {PAM.IPAMElement} message PAMElement message or plain object to encode + * @param {PAM.ICnappWebhookResponse} message CnappWebhookResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMElement.encode = function encode(message, writer) { + CnappWebhookResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.elementUid != null && Object.hasOwnProperty.call(message, "elementUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.elementUid); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); - if (message.created != null && Object.hasOwnProperty.call(message, "created")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.created); - if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.lastModified); - if (message.children != null && message.children.length) - for (let i = 0; i < message.children.length; ++i) - $root.PAM.PAMElement.encode(message.children[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.webhookId != null && Object.hasOwnProperty.call(message, "webhookId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.webhookId); + if (message.webhookUrl != null && Object.hasOwnProperty.call(message, "webhookUrl")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.webhookUrl); + if (message.webhookToken != null && Object.hasOwnProperty.call(message, "webhookToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.webhookToken); return writer; }; /** - * Encodes the specified PAMElement message, length delimited. Does not implicitly {@link PAM.PAMElement.verify|verify} messages. + * Encodes the specified CnappWebhookResponse message, length delimited. Does not implicitly {@link PAM.CnappWebhookResponse.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMElement + * @memberof PAM.CnappWebhookResponse * @static - * @param {PAM.IPAMElement} message PAMElement message or plain object to encode + * @param {PAM.ICnappWebhookResponse} message CnappWebhookResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMElement.encodeDelimited = function encodeDelimited(message, writer) { + CnappWebhookResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMElement message from the specified reader or buffer. + * Decodes a CnappWebhookResponse message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMElement + * @memberof PAM.CnappWebhookResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMElement} PAMElement + * @returns {PAM.CnappWebhookResponse} CnappWebhookResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMElement.decode = function decode(reader, length) { + CnappWebhookResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMElement(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappWebhookResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.elementUid = reader.bytes(); + message.webhookId = reader.string(); break; } case 2: { - message.data = reader.bytes(); + message.webhookUrl = reader.string(); break; } case 3: { - message.created = reader.int64(); - break; - } - case 4: { - message.lastModified = reader.int64(); - break; - } - case 5: { - if (!(message.children && message.children.length)) - message.children = []; - message.children.push($root.PAM.PAMElement.decode(reader, reader.uint32())); + message.webhookToken = reader.string(); break; } default: @@ -260453,223 +293018,143 @@ export const PAM = $root.PAM = (() => { break; } } - 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) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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]); - 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 - * @memberof PAM.PAMElement - * @static - * @param {Object.} object Plain object - * @returns {PAM.PAMElement} PAMElement - */ - PAMElement.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMElement) - return object; - let message = new $root.PAM.PAMElement(); - if (object.elementUid != null) - if (typeof object.elementUid === "string") - $util.base64.decode(object.elementUid, message.elementUid = $util.newBuffer($util.base64.length(object.elementUid)), 0); - else if (object.elementUid.length >= 0) - message.elementUid = object.elementUid; - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - if (object.created != null) - if ($util.Long) - (message.created = $util.Long.fromValue(object.created)).unsigned = false; - else if (typeof object.created === "string") - message.created = parseInt(object.created, 10); - else if (typeof object.created === "number") - message.created = object.created; - else if (typeof object.created === "object") - message.created = new $util.LongBits(object.created.low >>> 0, object.created.high >>> 0).toNumber(); - if (object.lastModified != null) - if ($util.Long) - (message.lastModified = $util.Long.fromValue(object.lastModified)).unsigned = false; - else if (typeof object.lastModified === "string") - message.lastModified = parseInt(object.lastModified, 10); - else if (typeof object.lastModified === "number") - message.lastModified = object.lastModified; - else if (typeof object.lastModified === "object") - message.lastModified = new $util.LongBits(object.lastModified.low >>> 0, object.lastModified.high >>> 0).toNumber(); - if (object.children) { - if (!Array.isArray(object.children)) - throw TypeError(".PAM.PAMElement.children: array expected"); - message.children = []; - for (let i = 0; i < object.children.length; ++i) { - if (typeof object.children[i] !== "object") - throw TypeError(".PAM.PAMElement.children: object expected"); - message.children[i] = $root.PAM.PAMElement.fromObject(object.children[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a PAMElement message. Also converts values to other types if specified. - * @function toObject - * @memberof PAM.PAMElement - * @static - * @param {PAM.PAMElement} message PAMElement - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PAMElement.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.children = []; - if (options.defaults) { - if (options.bytes === String) - object.elementUid = ""; - else { - object.elementUid = []; - if (options.bytes !== Array) - object.elementUid = $util.newBuffer(object.elementUid); - } - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.created = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastModified = options.longs === String ? "0" : 0; - } - if (message.elementUid != null && message.hasOwnProperty("elementUid")) - object.elementUid = options.bytes === String ? $util.base64.encode(message.elementUid, 0, message.elementUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.elementUid) : message.elementUid; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.created != null && message.hasOwnProperty("created")) - if (typeof message.created === "number") - object.created = options.longs === String ? String(message.created) : message.created; - else - object.created = options.longs === String ? $util.Long.prototype.toString.call(message.created) : options.longs === Number ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() : message.created; - if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (typeof message.lastModified === "number") - object.lastModified = options.longs === String ? String(message.lastModified) : message.lastModified; - else - object.lastModified = options.longs === String ? $util.Long.prototype.toString.call(message.lastModified) : options.longs === Number ? new $util.LongBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0).toNumber() : message.lastModified; - if (message.children && message.children.length) { - object.children = []; - for (let j = 0; j < message.children.length; ++j) - object.children[j] = $root.PAM.PAMElement.toObject(message.children[j], options); - } + return message; + }; + + /** + * Decodes a CnappWebhookResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof PAM.CnappWebhookResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {PAM.CnappWebhookResponse} CnappWebhookResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CnappWebhookResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CnappWebhookResponse message. + * @function verify + * @memberof PAM.CnappWebhookResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CnappWebhookResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.webhookId != null && message.hasOwnProperty("webhookId")) + if (!$util.isString(message.webhookId)) + return "webhookId: string expected"; + if (message.webhookUrl != null && message.hasOwnProperty("webhookUrl")) + if (!$util.isString(message.webhookUrl)) + return "webhookUrl: string expected"; + if (message.webhookToken != null && message.hasOwnProperty("webhookToken")) + if (!$util.isString(message.webhookToken)) + return "webhookToken: string expected"; + return null; + }; + + /** + * Creates a CnappWebhookResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof PAM.CnappWebhookResponse + * @static + * @param {Object.} object Plain object + * @returns {PAM.CnappWebhookResponse} CnappWebhookResponse + */ + CnappWebhookResponse.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappWebhookResponse) + return object; + let message = new $root.PAM.CnappWebhookResponse(); + if (object.webhookId != null) + message.webhookId = String(object.webhookId); + if (object.webhookUrl != null) + message.webhookUrl = String(object.webhookUrl); + if (object.webhookToken != null) + message.webhookToken = String(object.webhookToken); + return message; + }; + + /** + * Creates a plain object from a CnappWebhookResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof PAM.CnappWebhookResponse + * @static + * @param {PAM.CnappWebhookResponse} message CnappWebhookResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CnappWebhookResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.webhookId = ""; + object.webhookUrl = ""; + object.webhookToken = ""; + } + if (message.webhookId != null && message.hasOwnProperty("webhookId")) + object.webhookId = message.webhookId; + if (message.webhookUrl != null && message.hasOwnProperty("webhookUrl")) + object.webhookUrl = message.webhookUrl; + if (message.webhookToken != null && message.hasOwnProperty("webhookToken")) + object.webhookToken = message.webhookToken; return object; }; /** - * Converts this PAMElement to JSON. + * Converts this CnappWebhookResponse to JSON. * @function toJSON - * @memberof PAM.PAMElement + * @memberof PAM.CnappWebhookResponse * @instance * @returns {Object.} JSON object */ - PAMElement.prototype.toJSON = function toJSON() { + CnappWebhookResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMElement + * Gets the default type url for CnappWebhookResponse * @function getTypeUrl - * @memberof PAM.PAMElement + * @memberof PAM.CnappWebhookResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMElement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CnappWebhookResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMElement"; + return typeUrlPrefix + "/PAM.CnappWebhookResponse"; }; - return PAMElement; + return CnappWebhookResponse; })(); - PAM.PAMGenericUidRequest = (function() { + PAM.CnappDeleteWebhookRequest = (function() { /** - * Properties of a PAMGenericUidRequest. + * Properties of a CnappDeleteWebhookRequest. * @memberof PAM - * @interface IPAMGenericUidRequest - * @property {Uint8Array|null} [uid] PAMGenericUidRequest uid + * @interface ICnappDeleteWebhookRequest + * @property {Uint8Array|null} [networkUid] CnappDeleteWebhookRequest networkUid */ /** - * Constructs a new PAMGenericUidRequest. + * Constructs a new CnappDeleteWebhookRequest. * @memberof PAM - * @classdesc Represents a PAMGenericUidRequest. - * @implements IPAMGenericUidRequest + * @classdesc Represents a CnappDeleteWebhookRequest. + * @implements ICnappDeleteWebhookRequest * @constructor - * @param {PAM.IPAMGenericUidRequest=} [properties] Properties to set + * @param {PAM.ICnappDeleteWebhookRequest=} [properties] Properties to set */ - function PAMGenericUidRequest(properties) { + function CnappDeleteWebhookRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -260677,75 +293162,75 @@ export const PAM = $root.PAM = (() => { } /** - * PAMGenericUidRequest uid. - * @member {Uint8Array} uid - * @memberof PAM.PAMGenericUidRequest + * CnappDeleteWebhookRequest networkUid. + * @member {Uint8Array} networkUid + * @memberof PAM.CnappDeleteWebhookRequest * @instance */ - PAMGenericUidRequest.prototype.uid = $util.newBuffer([]); + CnappDeleteWebhookRequest.prototype.networkUid = $util.newBuffer([]); /** - * Creates a new PAMGenericUidRequest instance using the specified properties. + * Creates a new CnappDeleteWebhookRequest instance using the specified properties. * @function create - * @memberof PAM.PAMGenericUidRequest + * @memberof PAM.CnappDeleteWebhookRequest * @static - * @param {PAM.IPAMGenericUidRequest=} [properties] Properties to set - * @returns {PAM.PAMGenericUidRequest} PAMGenericUidRequest instance + * @param {PAM.ICnappDeleteWebhookRequest=} [properties] Properties to set + * @returns {PAM.CnappDeleteWebhookRequest} CnappDeleteWebhookRequest instance */ - PAMGenericUidRequest.create = function create(properties) { - return new PAMGenericUidRequest(properties); + CnappDeleteWebhookRequest.create = function create(properties) { + return new CnappDeleteWebhookRequest(properties); }; /** - * Encodes the specified PAMGenericUidRequest message. Does not implicitly {@link PAM.PAMGenericUidRequest.verify|verify} messages. + * Encodes the specified CnappDeleteWebhookRequest message. Does not implicitly {@link PAM.CnappDeleteWebhookRequest.verify|verify} messages. * @function encode - * @memberof PAM.PAMGenericUidRequest + * @memberof PAM.CnappDeleteWebhookRequest * @static - * @param {PAM.IPAMGenericUidRequest} message PAMGenericUidRequest message or plain object to encode + * @param {PAM.ICnappDeleteWebhookRequest} message CnappDeleteWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMGenericUidRequest.encode = function encode(message, writer) { + CnappDeleteWebhookRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); + if (message.networkUid != null && Object.hasOwnProperty.call(message, "networkUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.networkUid); return writer; }; /** - * Encodes the specified PAMGenericUidRequest message, length delimited. Does not implicitly {@link PAM.PAMGenericUidRequest.verify|verify} messages. + * Encodes the specified CnappDeleteWebhookRequest message, length delimited. Does not implicitly {@link PAM.CnappDeleteWebhookRequest.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMGenericUidRequest + * @memberof PAM.CnappDeleteWebhookRequest * @static - * @param {PAM.IPAMGenericUidRequest} message PAMGenericUidRequest message or plain object to encode + * @param {PAM.ICnappDeleteWebhookRequest} message CnappDeleteWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMGenericUidRequest.encodeDelimited = function encodeDelimited(message, writer) { + CnappDeleteWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMGenericUidRequest message from the specified reader or buffer. + * Decodes a CnappDeleteWebhookRequest message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMGenericUidRequest + * @memberof PAM.CnappDeleteWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMGenericUidRequest} PAMGenericUidRequest + * @returns {PAM.CnappDeleteWebhookRequest} CnappDeleteWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMGenericUidRequest.decode = function decode(reader, length) { + CnappDeleteWebhookRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMGenericUidRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappDeleteWebhookRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.uid = reader.bytes(); + message.networkUid = reader.bytes(); break; } default: @@ -260757,132 +293242,135 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMGenericUidRequest message from the specified reader or buffer, length delimited. + * Decodes a CnappDeleteWebhookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMGenericUidRequest + * @memberof PAM.CnappDeleteWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMGenericUidRequest} PAMGenericUidRequest + * @returns {PAM.CnappDeleteWebhookRequest} CnappDeleteWebhookRequest * @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) { + CnappDeleteWebhookRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMGenericUidRequest message. + * Verifies a CnappDeleteWebhookRequest message. * @function verify - * @memberof PAM.PAMGenericUidRequest + * @memberof PAM.CnappDeleteWebhookRequest * @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) { + CnappDeleteWebhookRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.networkUid != null && message.hasOwnProperty("networkUid")) + if (!(message.networkUid && typeof message.networkUid.length === "number" || $util.isString(message.networkUid))) + return "networkUid: buffer expected"; return null; }; /** - * Creates a PAMGenericUidRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CnappDeleteWebhookRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMGenericUidRequest + * @memberof PAM.CnappDeleteWebhookRequest * @static * @param {Object.} object Plain object - * @returns {PAM.PAMGenericUidRequest} PAMGenericUidRequest + * @returns {PAM.CnappDeleteWebhookRequest} CnappDeleteWebhookRequest */ - PAMGenericUidRequest.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMGenericUidRequest) + CnappDeleteWebhookRequest.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappDeleteWebhookRequest) return object; - let message = new $root.PAM.PAMGenericUidRequest(); - if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; + let message = new $root.PAM.CnappDeleteWebhookRequest(); + if (object.networkUid != null) + if (typeof object.networkUid === "string") + $util.base64.decode(object.networkUid, message.networkUid = $util.newBuffer($util.base64.length(object.networkUid)), 0); + else if (object.networkUid.length >= 0) + message.networkUid = object.networkUid; return message; }; /** - * Creates a plain object from a PAMGenericUidRequest message. Also converts values to other types if specified. + * Creates a plain object from a CnappDeleteWebhookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMGenericUidRequest + * @memberof PAM.CnappDeleteWebhookRequest * @static - * @param {PAM.PAMGenericUidRequest} message PAMGenericUidRequest + * @param {PAM.CnappDeleteWebhookRequest} message CnappDeleteWebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMGenericUidRequest.toObject = function toObject(message, options) { + CnappDeleteWebhookRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) if (options.bytes === String) - object.uid = ""; + object.networkUid = ""; else { - object.uid = []; + object.networkUid = []; if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); + object.networkUid = $util.newBuffer(object.networkUid); } - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; + if (message.networkUid != null && message.hasOwnProperty("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; return object; }; /** - * Converts this PAMGenericUidRequest to JSON. + * Converts this CnappDeleteWebhookRequest to JSON. * @function toJSON - * @memberof PAM.PAMGenericUidRequest + * @memberof PAM.CnappDeleteWebhookRequest * @instance * @returns {Object.} JSON object */ - PAMGenericUidRequest.prototype.toJSON = function toJSON() { + CnappDeleteWebhookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMGenericUidRequest + * Gets the default type url for CnappDeleteWebhookRequest * @function getTypeUrl - * @memberof PAM.PAMGenericUidRequest + * @memberof PAM.CnappDeleteWebhookRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMGenericUidRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CnappDeleteWebhookRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMGenericUidRequest"; + return typeUrlPrefix + "/PAM.CnappDeleteWebhookRequest"; }; - return PAMGenericUidRequest; + return CnappDeleteWebhookRequest; })(); - PAM.PAMGenericUidsRequest = (function() { + PAM.CnappTestCredentialsRequest = (function() { /** - * Properties of a PAMGenericUidsRequest. + * Properties of a CnappTestCredentialsRequest. * @memberof PAM - * @interface IPAMGenericUidsRequest - * @property {Array.|null} [uids] PAMGenericUidsRequest uids + * @interface ICnappTestCredentialsRequest + * @property {string|null} [provider] CnappTestCredentialsRequest provider + * @property {string|null} [clientId] CnappTestCredentialsRequest clientId + * @property {string|null} [clientSecret] CnappTestCredentialsRequest clientSecret + * @property {string|null} [apiEndpointUrl] CnappTestCredentialsRequest apiEndpointUrl + * @property {string|null} [authUrl] CnappTestCredentialsRequest authUrl */ /** - * Constructs a new PAMGenericUidsRequest. + * Constructs a new CnappTestCredentialsRequest. * @memberof PAM - * @classdesc Represents a PAMGenericUidsRequest. - * @implements IPAMGenericUidsRequest + * @classdesc Represents a CnappTestCredentialsRequest. + * @implements ICnappTestCredentialsRequest * @constructor - * @param {PAM.IPAMGenericUidsRequest=} [properties] Properties to set + * @param {PAM.ICnappTestCredentialsRequest=} [properties] Properties to set */ - function PAMGenericUidsRequest(properties) { - this.uids = []; + function CnappTestCredentialsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -260890,78 +293378,131 @@ export const PAM = $root.PAM = (() => { } /** - * PAMGenericUidsRequest uids. - * @member {Array.} uids - * @memberof PAM.PAMGenericUidsRequest + * CnappTestCredentialsRequest provider. + * @member {string} provider + * @memberof PAM.CnappTestCredentialsRequest * @instance */ - PAMGenericUidsRequest.prototype.uids = $util.emptyArray; + CnappTestCredentialsRequest.prototype.provider = ""; /** - * Creates a new PAMGenericUidsRequest instance using the specified properties. + * CnappTestCredentialsRequest clientId. + * @member {string} clientId + * @memberof PAM.CnappTestCredentialsRequest + * @instance + */ + CnappTestCredentialsRequest.prototype.clientId = ""; + + /** + * CnappTestCredentialsRequest clientSecret. + * @member {string} clientSecret + * @memberof PAM.CnappTestCredentialsRequest + * @instance + */ + CnappTestCredentialsRequest.prototype.clientSecret = ""; + + /** + * CnappTestCredentialsRequest apiEndpointUrl. + * @member {string} apiEndpointUrl + * @memberof PAM.CnappTestCredentialsRequest + * @instance + */ + CnappTestCredentialsRequest.prototype.apiEndpointUrl = ""; + + /** + * CnappTestCredentialsRequest authUrl. + * @member {string} authUrl + * @memberof PAM.CnappTestCredentialsRequest + * @instance + */ + CnappTestCredentialsRequest.prototype.authUrl = ""; + + /** + * Creates a new CnappTestCredentialsRequest instance using the specified properties. * @function create - * @memberof PAM.PAMGenericUidsRequest + * @memberof PAM.CnappTestCredentialsRequest * @static - * @param {PAM.IPAMGenericUidsRequest=} [properties] Properties to set - * @returns {PAM.PAMGenericUidsRequest} PAMGenericUidsRequest instance + * @param {PAM.ICnappTestCredentialsRequest=} [properties] Properties to set + * @returns {PAM.CnappTestCredentialsRequest} CnappTestCredentialsRequest instance */ - PAMGenericUidsRequest.create = function create(properties) { - return new PAMGenericUidsRequest(properties); + CnappTestCredentialsRequest.create = function create(properties) { + return new CnappTestCredentialsRequest(properties); }; /** - * Encodes the specified PAMGenericUidsRequest message. Does not implicitly {@link PAM.PAMGenericUidsRequest.verify|verify} messages. + * Encodes the specified CnappTestCredentialsRequest message. Does not implicitly {@link PAM.CnappTestCredentialsRequest.verify|verify} messages. * @function encode - * @memberof PAM.PAMGenericUidsRequest + * @memberof PAM.CnappTestCredentialsRequest * @static - * @param {PAM.IPAMGenericUidsRequest} message PAMGenericUidsRequest message or plain object to encode + * @param {PAM.ICnappTestCredentialsRequest} message CnappTestCredentialsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMGenericUidsRequest.encode = function encode(message, writer) { + CnappTestCredentialsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uids != null && message.uids.length) - for (let i = 0; i < message.uids.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uids[i]); + if (message.provider != null && Object.hasOwnProperty.call(message, "provider")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.provider); + if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.clientId); + if (message.clientSecret != null && Object.hasOwnProperty.call(message, "clientSecret")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clientSecret); + if (message.apiEndpointUrl != null && Object.hasOwnProperty.call(message, "apiEndpointUrl")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.apiEndpointUrl); + if (message.authUrl != null && Object.hasOwnProperty.call(message, "authUrl")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.authUrl); return writer; }; /** - * Encodes the specified PAMGenericUidsRequest message, length delimited. Does not implicitly {@link PAM.PAMGenericUidsRequest.verify|verify} messages. + * Encodes the specified CnappTestCredentialsRequest message, length delimited. Does not implicitly {@link PAM.CnappTestCredentialsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMGenericUidsRequest + * @memberof PAM.CnappTestCredentialsRequest * @static - * @param {PAM.IPAMGenericUidsRequest} message PAMGenericUidsRequest message or plain object to encode + * @param {PAM.ICnappTestCredentialsRequest} message CnappTestCredentialsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMGenericUidsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CnappTestCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMGenericUidsRequest message from the specified reader or buffer. + * Decodes a CnappTestCredentialsRequest message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMGenericUidsRequest + * @memberof PAM.CnappTestCredentialsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMGenericUidsRequest} PAMGenericUidsRequest + * @returns {PAM.CnappTestCredentialsRequest} CnappTestCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMGenericUidsRequest.decode = function decode(reader, length) { + CnappTestCredentialsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMGenericUidsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappTestCredentialsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.uids && message.uids.length)) - message.uids = []; - message.uids.push(reader.bytes()); + message.provider = reader.string(); + break; + } + case 2: { + message.clientId = reader.string(); + break; + } + case 3: { + message.clientSecret = reader.string(); + break; + } + case 4: { + message.apiEndpointUrl = reader.string(); + break; + } + case 5: { + message.authUrl = reader.string(); break; } default: @@ -260973,144 +293514,157 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMGenericUidsRequest message from the specified reader or buffer, length delimited. + * Decodes a CnappTestCredentialsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMGenericUidsRequest + * @memberof PAM.CnappTestCredentialsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMGenericUidsRequest} PAMGenericUidsRequest + * @returns {PAM.CnappTestCredentialsRequest} CnappTestCredentialsRequest * @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) { + CnappTestCredentialsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMGenericUidsRequest message. + * Verifies a CnappTestCredentialsRequest message. * @function verify - * @memberof PAM.PAMGenericUidsRequest + * @memberof PAM.CnappTestCredentialsRequest * @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) { + CnappTestCredentialsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; - } + if (message.provider != null && message.hasOwnProperty("provider")) + if (!$util.isString(message.provider)) + return "provider: string expected"; + if (message.clientId != null && message.hasOwnProperty("clientId")) + if (!$util.isString(message.clientId)) + return "clientId: string expected"; + if (message.clientSecret != null && message.hasOwnProperty("clientSecret")) + if (!$util.isString(message.clientSecret)) + return "clientSecret: string expected"; + if (message.apiEndpointUrl != null && message.hasOwnProperty("apiEndpointUrl")) + if (!$util.isString(message.apiEndpointUrl)) + return "apiEndpointUrl: string expected"; + if (message.authUrl != null && message.hasOwnProperty("authUrl")) + if (!$util.isString(message.authUrl)) + return "authUrl: string expected"; return null; }; /** - * Creates a PAMGenericUidsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CnappTestCredentialsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMGenericUidsRequest + * @memberof PAM.CnappTestCredentialsRequest * @static * @param {Object.} object Plain object - * @returns {PAM.PAMGenericUidsRequest} PAMGenericUidsRequest + * @returns {PAM.CnappTestCredentialsRequest} CnappTestCredentialsRequest */ - PAMGenericUidsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMGenericUidsRequest) + CnappTestCredentialsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappTestCredentialsRequest) return object; - let message = new $root.PAM.PAMGenericUidsRequest(); - if (object.uids) { - if (!Array.isArray(object.uids)) - throw TypeError(".PAM.PAMGenericUidsRequest.uids: array expected"); - message.uids = []; - for (let i = 0; i < object.uids.length; ++i) - if (typeof object.uids[i] === "string") - $util.base64.decode(object.uids[i], message.uids[i] = $util.newBuffer($util.base64.length(object.uids[i])), 0); - else if (object.uids[i].length >= 0) - message.uids[i] = object.uids[i]; - } + let message = new $root.PAM.CnappTestCredentialsRequest(); + if (object.provider != null) + message.provider = String(object.provider); + if (object.clientId != null) + message.clientId = String(object.clientId); + if (object.clientSecret != null) + message.clientSecret = String(object.clientSecret); + if (object.apiEndpointUrl != null) + message.apiEndpointUrl = String(object.apiEndpointUrl); + if (object.authUrl != null) + message.authUrl = String(object.authUrl); return message; }; /** - * Creates a plain object from a PAMGenericUidsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CnappTestCredentialsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMGenericUidsRequest + * @memberof PAM.CnappTestCredentialsRequest * @static - * @param {PAM.PAMGenericUidsRequest} message PAMGenericUidsRequest + * @param {PAM.CnappTestCredentialsRequest} message CnappTestCredentialsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMGenericUidsRequest.toObject = function toObject(message, options) { + CnappTestCredentialsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.uids = []; - if (message.uids && message.uids.length) { - object.uids = []; - for (let j = 0; j < message.uids.length; ++j) - object.uids[j] = options.bytes === String ? $util.base64.encode(message.uids[j], 0, message.uids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.uids[j]) : message.uids[j]; + if (options.defaults) { + object.provider = ""; + object.clientId = ""; + object.clientSecret = ""; + object.apiEndpointUrl = ""; + object.authUrl = ""; } + if (message.provider != null && message.hasOwnProperty("provider")) + object.provider = message.provider; + if (message.clientId != null && message.hasOwnProperty("clientId")) + object.clientId = message.clientId; + if (message.clientSecret != null && message.hasOwnProperty("clientSecret")) + object.clientSecret = message.clientSecret; + if (message.apiEndpointUrl != null && message.hasOwnProperty("apiEndpointUrl")) + object.apiEndpointUrl = message.apiEndpointUrl; + if (message.authUrl != null && message.hasOwnProperty("authUrl")) + object.authUrl = message.authUrl; return object; }; /** - * Converts this PAMGenericUidsRequest to JSON. + * Converts this CnappTestCredentialsRequest to JSON. * @function toJSON - * @memberof PAM.PAMGenericUidsRequest + * @memberof PAM.CnappTestCredentialsRequest * @instance * @returns {Object.} JSON object */ - PAMGenericUidsRequest.prototype.toJSON = function toJSON() { + CnappTestCredentialsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMGenericUidsRequest + * Gets the default type url for CnappTestCredentialsRequest * @function getTypeUrl - * @memberof PAM.PAMGenericUidsRequest + * @memberof PAM.CnappTestCredentialsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMGenericUidsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CnappTestCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMGenericUidsRequest"; + return typeUrlPrefix + "/PAM.CnappTestCredentialsRequest"; }; - return PAMGenericUidsRequest; + return CnappTestCredentialsRequest; })(); - PAM.PAMConfiguration = (function() { + PAM.CnappTestCredentialsResponse = (function() { /** - * Properties of a PAMConfiguration. + * Properties of a CnappTestCredentialsResponse. * @memberof PAM - * @interface IPAMConfiguration - * @property {Uint8Array|null} [configurationUid] PAMConfiguration configurationUid - * @property {number|Long|null} [nodeId] PAMConfiguration nodeId - * @property {Uint8Array|null} [controllerUid] PAMConfiguration controllerUid - * @property {Uint8Array|null} [data] PAMConfiguration data - * @property {number|Long|null} [created] PAMConfiguration created - * @property {number|Long|null} [lastModified] PAMConfiguration lastModified - * @property {Array.|null} [children] PAMConfiguration children + * @interface ICnappTestCredentialsResponse + * @property {boolean|null} [valid] CnappTestCredentialsResponse valid + * @property {string|null} [error] CnappTestCredentialsResponse error + * @property {string|null} [message] CnappTestCredentialsResponse message */ /** - * Constructs a new PAMConfiguration. + * Constructs a new CnappTestCredentialsResponse. * @memberof PAM - * @classdesc Represents a PAMConfiguration. - * @implements IPAMConfiguration + * @classdesc Represents a CnappTestCredentialsResponse. + * @implements ICnappTestCredentialsResponse * @constructor - * @param {PAM.IPAMConfiguration=} [properties] Properties to set + * @param {PAM.ICnappTestCredentialsResponse=} [properties] Properties to set */ - function PAMConfiguration(properties) { - this.children = []; + function CnappTestCredentialsResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -261118,162 +293672,103 @@ export const PAM = $root.PAM = (() => { } /** - * PAMConfiguration configurationUid. - * @member {Uint8Array} configurationUid - * @memberof PAM.PAMConfiguration - * @instance - */ - PAMConfiguration.prototype.configurationUid = $util.newBuffer([]); - - /** - * PAMConfiguration nodeId. - * @member {number|Long} nodeId - * @memberof PAM.PAMConfiguration - * @instance - */ - PAMConfiguration.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * PAMConfiguration controllerUid. - * @member {Uint8Array} controllerUid - * @memberof PAM.PAMConfiguration - * @instance - */ - PAMConfiguration.prototype.controllerUid = $util.newBuffer([]); - - /** - * PAMConfiguration data. - * @member {Uint8Array} data - * @memberof PAM.PAMConfiguration - * @instance - */ - PAMConfiguration.prototype.data = $util.newBuffer([]); - - /** - * PAMConfiguration created. - * @member {number|Long} created - * @memberof PAM.PAMConfiguration + * CnappTestCredentialsResponse valid. + * @member {boolean} valid + * @memberof PAM.CnappTestCredentialsResponse * @instance */ - PAMConfiguration.prototype.created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CnappTestCredentialsResponse.prototype.valid = false; /** - * PAMConfiguration lastModified. - * @member {number|Long} lastModified - * @memberof PAM.PAMConfiguration + * CnappTestCredentialsResponse error. + * @member {string} error + * @memberof PAM.CnappTestCredentialsResponse * @instance */ - PAMConfiguration.prototype.lastModified = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CnappTestCredentialsResponse.prototype.error = ""; /** - * PAMConfiguration children. - * @member {Array.} children - * @memberof PAM.PAMConfiguration + * CnappTestCredentialsResponse message. + * @member {string} message + * @memberof PAM.CnappTestCredentialsResponse * @instance */ - PAMConfiguration.prototype.children = $util.emptyArray; + CnappTestCredentialsResponse.prototype.message = ""; /** - * Creates a new PAMConfiguration instance using the specified properties. + * Creates a new CnappTestCredentialsResponse instance using the specified properties. * @function create - * @memberof PAM.PAMConfiguration + * @memberof PAM.CnappTestCredentialsResponse * @static - * @param {PAM.IPAMConfiguration=} [properties] Properties to set - * @returns {PAM.PAMConfiguration} PAMConfiguration instance + * @param {PAM.ICnappTestCredentialsResponse=} [properties] Properties to set + * @returns {PAM.CnappTestCredentialsResponse} CnappTestCredentialsResponse instance */ - PAMConfiguration.create = function create(properties) { - return new PAMConfiguration(properties); + CnappTestCredentialsResponse.create = function create(properties) { + return new CnappTestCredentialsResponse(properties); }; /** - * Encodes the specified PAMConfiguration message. Does not implicitly {@link PAM.PAMConfiguration.verify|verify} messages. + * Encodes the specified CnappTestCredentialsResponse message. Does not implicitly {@link PAM.CnappTestCredentialsResponse.verify|verify} messages. * @function encode - * @memberof PAM.PAMConfiguration + * @memberof PAM.CnappTestCredentialsResponse * @static - * @param {PAM.IPAMConfiguration} message PAMConfiguration message or plain object to encode + * @param {PAM.ICnappTestCredentialsResponse} message CnappTestCredentialsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMConfiguration.encode = function encode(message, writer) { + CnappTestCredentialsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.configurationUid); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.nodeId); - if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.controllerUid); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); - if (message.created != null && Object.hasOwnProperty.call(message, "created")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.created); - if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.lastModified); - if (message.children != null && message.children.length) - for (let i = 0; i < message.children.length; ++i) - $root.PAM.PAMElement.encode(message.children[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.valid != null && Object.hasOwnProperty.call(message, "valid")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.valid); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.error); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); return writer; }; /** - * Encodes the specified PAMConfiguration message, length delimited. Does not implicitly {@link PAM.PAMConfiguration.verify|verify} messages. + * Encodes the specified CnappTestCredentialsResponse message, length delimited. Does not implicitly {@link PAM.CnappTestCredentialsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMConfiguration + * @memberof PAM.CnappTestCredentialsResponse * @static - * @param {PAM.IPAMConfiguration} message PAMConfiguration message or plain object to encode + * @param {PAM.ICnappTestCredentialsResponse} message CnappTestCredentialsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMConfiguration.encodeDelimited = function encodeDelimited(message, writer) { + CnappTestCredentialsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMConfiguration message from the specified reader or buffer. + * Decodes a CnappTestCredentialsResponse message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMConfiguration + * @memberof PAM.CnappTestCredentialsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMConfiguration} PAMConfiguration + * @returns {PAM.CnappTestCredentialsResponse} CnappTestCredentialsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMConfiguration.decode = function decode(reader, length) { + CnappTestCredentialsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMConfiguration(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappTestCredentialsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.configurationUid = reader.bytes(); + message.valid = reader.bool(); break; } case 2: { - message.nodeId = reader.int64(); + message.error = reader.string(); break; } case 3: { - message.controllerUid = reader.bytes(); - break; - } - case 4: { - message.data = reader.bytes(); - break; - } - case 5: { - message.created = reader.int64(); - break; - } - case 6: { - message.lastModified = reader.int64(); - break; - } - case 7: { - if (!(message.children && message.children.length)) - message.children = []; - message.children.push($root.PAM.PAMElement.decode(reader, reader.uint32())); + message.message = reader.string(); break; } default: @@ -261285,259 +293780,142 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMConfiguration message from the specified reader or buffer, length delimited. + * Decodes a CnappTestCredentialsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMConfiguration + * @memberof PAM.CnappTestCredentialsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMConfiguration} PAMConfiguration + * @returns {PAM.CnappTestCredentialsResponse} CnappTestCredentialsResponse * @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) { + CnappTestCredentialsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMConfiguration message. + * Verifies a CnappTestCredentialsResponse message. * @function verify - * @memberof PAM.PAMConfiguration + * @memberof PAM.CnappTestCredentialsResponse * @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) { + CnappTestCredentialsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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]); - if (error) - return "children." + error; - } - } + if (message.valid != null && message.hasOwnProperty("valid")) + if (typeof message.valid !== "boolean") + return "valid: boolean expected"; + if (message.error != null && message.hasOwnProperty("error")) + if (!$util.isString(message.error)) + return "error: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; return null; }; /** - * Creates a PAMConfiguration message from a plain object. Also converts values to their respective internal types. + * Creates a CnappTestCredentialsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMConfiguration + * @memberof PAM.CnappTestCredentialsResponse * @static * @param {Object.} object Plain object - * @returns {PAM.PAMConfiguration} PAMConfiguration + * @returns {PAM.CnappTestCredentialsResponse} CnappTestCredentialsResponse */ - PAMConfiguration.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMConfiguration) + CnappTestCredentialsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappTestCredentialsResponse) return object; - let message = new $root.PAM.PAMConfiguration(); - if (object.configurationUid != null) - if (typeof object.configurationUid === "string") - $util.base64.decode(object.configurationUid, message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid)), 0); - else if (object.configurationUid.length >= 0) - message.configurationUid = object.configurationUid; - if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") - message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); - if (object.controllerUid != null) - if (typeof object.controllerUid === "string") - $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); - else if (object.controllerUid.length >= 0) - message.controllerUid = object.controllerUid; - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - if (object.created != null) - if ($util.Long) - (message.created = $util.Long.fromValue(object.created)).unsigned = false; - else if (typeof object.created === "string") - message.created = parseInt(object.created, 10); - else if (typeof object.created === "number") - message.created = object.created; - else if (typeof object.created === "object") - message.created = new $util.LongBits(object.created.low >>> 0, object.created.high >>> 0).toNumber(); - if (object.lastModified != null) - if ($util.Long) - (message.lastModified = $util.Long.fromValue(object.lastModified)).unsigned = false; - else if (typeof object.lastModified === "string") - message.lastModified = parseInt(object.lastModified, 10); - else if (typeof object.lastModified === "number") - message.lastModified = object.lastModified; - else if (typeof object.lastModified === "object") - message.lastModified = new $util.LongBits(object.lastModified.low >>> 0, object.lastModified.high >>> 0).toNumber(); - if (object.children) { - if (!Array.isArray(object.children)) - throw TypeError(".PAM.PAMConfiguration.children: array expected"); - message.children = []; - for (let i = 0; i < object.children.length; ++i) { - if (typeof object.children[i] !== "object") - throw TypeError(".PAM.PAMConfiguration.children: object expected"); - message.children[i] = $root.PAM.PAMElement.fromObject(object.children[i]); - } - } + let message = new $root.PAM.CnappTestCredentialsResponse(); + if (object.valid != null) + message.valid = Boolean(object.valid); + if (object.error != null) + message.error = String(object.error); + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a PAMConfiguration message. Also converts values to other types if specified. + * Creates a plain object from a CnappTestCredentialsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMConfiguration + * @memberof PAM.CnappTestCredentialsResponse * @static - * @param {PAM.PAMConfiguration} message PAMConfiguration + * @param {PAM.CnappTestCredentialsResponse} message CnappTestCredentialsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMConfiguration.toObject = function toObject(message, options) { + CnappTestCredentialsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.children = []; if (options.defaults) { - if (options.bytes === String) - object.configurationUid = ""; - else { - object.configurationUid = []; - if (options.bytes !== Array) - object.configurationUid = $util.newBuffer(object.configurationUid); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.controllerUid = ""; - else { - object.controllerUid = []; - if (options.bytes !== Array) - object.controllerUid = $util.newBuffer(object.controllerUid); - } - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.created = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastModified = options.longs === String ? "0" : 0; - } - if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) - object.configurationUid = options.bytes === String ? $util.base64.encode(message.configurationUid, 0, message.configurationUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.configurationUid) : message.configurationUid; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof 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")) - 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")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.created != null && message.hasOwnProperty("created")) - if (typeof message.created === "number") - object.created = options.longs === String ? String(message.created) : message.created; - else - object.created = options.longs === String ? $util.Long.prototype.toString.call(message.created) : options.longs === Number ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() : message.created; - if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (typeof message.lastModified === "number") - object.lastModified = options.longs === String ? String(message.lastModified) : message.lastModified; - else - object.lastModified = options.longs === String ? $util.Long.prototype.toString.call(message.lastModified) : options.longs === Number ? new $util.LongBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0).toNumber() : message.lastModified; - if (message.children && message.children.length) { - object.children = []; - for (let j = 0; j < message.children.length; ++j) - object.children[j] = $root.PAM.PAMElement.toObject(message.children[j], options); + object.valid = false; + object.error = ""; + object.message = ""; } + if (message.valid != null && message.hasOwnProperty("valid")) + object.valid = message.valid; + if (message.error != null && message.hasOwnProperty("error")) + object.error = message.error; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; return object; }; /** - * Converts this PAMConfiguration to JSON. + * Converts this CnappTestCredentialsResponse to JSON. * @function toJSON - * @memberof PAM.PAMConfiguration + * @memberof PAM.CnappTestCredentialsResponse * @instance * @returns {Object.} JSON object */ - PAMConfiguration.prototype.toJSON = function toJSON() { + CnappTestCredentialsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMConfiguration + * Gets the default type url for CnappTestCredentialsResponse * @function getTypeUrl - * @memberof PAM.PAMConfiguration + * @memberof PAM.CnappTestCredentialsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMConfiguration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CnappTestCredentialsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMConfiguration"; + return typeUrlPrefix + "/PAM.CnappTestCredentialsResponse"; }; - return PAMConfiguration; + return CnappTestCredentialsResponse; })(); - PAM.PAMConfigurations = (function() { + PAM.CnappQueueListRequest = (function() { /** - * Properties of a PAMConfigurations. + * Properties of a CnappQueueListRequest. * @memberof PAM - * @interface IPAMConfigurations - * @property {Array.|null} [configurations] PAMConfigurations configurations + * @interface ICnappQueueListRequest + * @property {Uint8Array|null} [networkUid] CnappQueueListRequest networkUid + * @property {number|null} [statusFilter] CnappQueueListRequest statusFilter + * @property {number|null} [limit] CnappQueueListRequest limit + * @property {number|null} [offset] CnappQueueListRequest offset */ /** - * Constructs a new PAMConfigurations. + * Constructs a new CnappQueueListRequest. * @memberof PAM - * @classdesc Represents a PAMConfigurations. - * @implements IPAMConfigurations + * @classdesc Represents a CnappQueueListRequest. + * @implements ICnappQueueListRequest * @constructor - * @param {PAM.IPAMConfigurations=} [properties] Properties to set + * @param {PAM.ICnappQueueListRequest=} [properties] Properties to set */ - function PAMConfigurations(properties) { - this.configurations = []; + function CnappQueueListRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -261545,78 +293923,117 @@ export const PAM = $root.PAM = (() => { } /** - * PAMConfigurations configurations. - * @member {Array.} configurations - * @memberof PAM.PAMConfigurations + * CnappQueueListRequest networkUid. + * @member {Uint8Array} networkUid + * @memberof PAM.CnappQueueListRequest * @instance */ - PAMConfigurations.prototype.configurations = $util.emptyArray; + CnappQueueListRequest.prototype.networkUid = $util.newBuffer([]); /** - * Creates a new PAMConfigurations instance using the specified properties. + * CnappQueueListRequest statusFilter. + * @member {number} statusFilter + * @memberof PAM.CnappQueueListRequest + * @instance + */ + CnappQueueListRequest.prototype.statusFilter = 0; + + /** + * CnappQueueListRequest limit. + * @member {number} limit + * @memberof PAM.CnappQueueListRequest + * @instance + */ + CnappQueueListRequest.prototype.limit = 0; + + /** + * CnappQueueListRequest offset. + * @member {number} offset + * @memberof PAM.CnappQueueListRequest + * @instance + */ + CnappQueueListRequest.prototype.offset = 0; + + /** + * Creates a new CnappQueueListRequest instance using the specified properties. * @function create - * @memberof PAM.PAMConfigurations + * @memberof PAM.CnappQueueListRequest * @static - * @param {PAM.IPAMConfigurations=} [properties] Properties to set - * @returns {PAM.PAMConfigurations} PAMConfigurations instance + * @param {PAM.ICnappQueueListRequest=} [properties] Properties to set + * @returns {PAM.CnappQueueListRequest} CnappQueueListRequest instance */ - PAMConfigurations.create = function create(properties) { - return new PAMConfigurations(properties); + CnappQueueListRequest.create = function create(properties) { + return new CnappQueueListRequest(properties); }; /** - * Encodes the specified PAMConfigurations message. Does not implicitly {@link PAM.PAMConfigurations.verify|verify} messages. + * Encodes the specified CnappQueueListRequest message. Does not implicitly {@link PAM.CnappQueueListRequest.verify|verify} messages. * @function encode - * @memberof PAM.PAMConfigurations + * @memberof PAM.CnappQueueListRequest * @static - * @param {PAM.IPAMConfigurations} message PAMConfigurations message or plain object to encode + * @param {PAM.ICnappQueueListRequest} message CnappQueueListRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMConfigurations.encode = function encode(message, writer) { + CnappQueueListRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.configurations != null && message.configurations.length) - for (let i = 0; i < message.configurations.length; ++i) - $root.PAM.PAMConfiguration.encode(message.configurations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.networkUid != null && Object.hasOwnProperty.call(message, "networkUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.networkUid); + if (message.statusFilter != null && Object.hasOwnProperty.call(message, "statusFilter")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.statusFilter); + if (message.limit != null && Object.hasOwnProperty.call(message, "limit")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.limit); + if (message.offset != null && Object.hasOwnProperty.call(message, "offset")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.offset); return writer; }; /** - * Encodes the specified PAMConfigurations message, length delimited. Does not implicitly {@link PAM.PAMConfigurations.verify|verify} messages. + * Encodes the specified CnappQueueListRequest message, length delimited. Does not implicitly {@link PAM.CnappQueueListRequest.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMConfigurations + * @memberof PAM.CnappQueueListRequest * @static - * @param {PAM.IPAMConfigurations} message PAMConfigurations message or plain object to encode + * @param {PAM.ICnappQueueListRequest} message CnappQueueListRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMConfigurations.encodeDelimited = function encodeDelimited(message, writer) { + CnappQueueListRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMConfigurations message from the specified reader or buffer. + * Decodes a CnappQueueListRequest message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMConfigurations + * @memberof PAM.CnappQueueListRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMConfigurations} PAMConfigurations + * @returns {PAM.CnappQueueListRequest} CnappQueueListRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMConfigurations.decode = function decode(reader, length) { + CnappQueueListRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMConfigurations(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappQueueListRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.configurations && message.configurations.length)) - message.configurations = []; - message.configurations.push($root.PAM.PAMConfiguration.decode(reader, reader.uint32())); + message.networkUid = reader.bytes(); + break; + } + case 2: { + message.statusFilter = reader.int32(); + break; + } + case 3: { + message.limit = reader.int32(); + break; + } + case 4: { + message.offset = reader.int32(); break; } default: @@ -261628,148 +294045,163 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMConfigurations message from the specified reader or buffer, length delimited. + * Decodes a CnappQueueListRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMConfigurations + * @memberof PAM.CnappQueueListRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMConfigurations} PAMConfigurations + * @returns {PAM.CnappQueueListRequest} CnappQueueListRequest * @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) { + CnappQueueListRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMConfigurations message. + * Verifies a CnappQueueListRequest message. * @function verify - * @memberof PAM.PAMConfigurations + * @memberof PAM.CnappQueueListRequest * @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) { + CnappQueueListRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "configurations." + error; - } - } + 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.statusFilter != null && message.hasOwnProperty("statusFilter")) + if (!$util.isInteger(message.statusFilter)) + return "statusFilter: integer expected"; + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.offset != null && message.hasOwnProperty("offset")) + if (!$util.isInteger(message.offset)) + return "offset: integer expected"; return null; }; /** - * Creates a PAMConfigurations message from a plain object. Also converts values to their respective internal types. + * Creates a CnappQueueListRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMConfigurations + * @memberof PAM.CnappQueueListRequest * @static * @param {Object.} object Plain object - * @returns {PAM.PAMConfigurations} PAMConfigurations + * @returns {PAM.CnappQueueListRequest} CnappQueueListRequest */ - PAMConfigurations.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMConfigurations) + CnappQueueListRequest.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappQueueListRequest) return object; - let message = new $root.PAM.PAMConfigurations(); - if (object.configurations) { - if (!Array.isArray(object.configurations)) - throw TypeError(".PAM.PAMConfigurations.configurations: array expected"); - message.configurations = []; - for (let i = 0; i < object.configurations.length; ++i) { - if (typeof object.configurations[i] !== "object") - throw TypeError(".PAM.PAMConfigurations.configurations: object expected"); - message.configurations[i] = $root.PAM.PAMConfiguration.fromObject(object.configurations[i]); - } - } + let message = new $root.PAM.CnappQueueListRequest(); + if (object.networkUid != null) + if (typeof object.networkUid === "string") + $util.base64.decode(object.networkUid, message.networkUid = $util.newBuffer($util.base64.length(object.networkUid)), 0); + else if (object.networkUid.length >= 0) + message.networkUid = object.networkUid; + if (object.statusFilter != null) + message.statusFilter = object.statusFilter | 0; + if (object.limit != null) + message.limit = object.limit | 0; + if (object.offset != null) + message.offset = object.offset | 0; return message; }; /** - * Creates a plain object from a PAMConfigurations message. Also converts values to other types if specified. + * Creates a plain object from a CnappQueueListRequest message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMConfigurations + * @memberof PAM.CnappQueueListRequest * @static - * @param {PAM.PAMConfigurations} message PAMConfigurations + * @param {PAM.CnappQueueListRequest} message CnappQueueListRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMConfigurations.toObject = function toObject(message, options) { + CnappQueueListRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.configurations = []; - if (message.configurations && message.configurations.length) { - object.configurations = []; - for (let j = 0; j < message.configurations.length; ++j) - object.configurations[j] = $root.PAM.PAMConfiguration.toObject(message.configurations[j], options); + if (options.defaults) { + if (options.bytes === String) + object.networkUid = ""; + else { + object.networkUid = []; + if (options.bytes !== Array) + object.networkUid = $util.newBuffer(object.networkUid); + } + object.statusFilter = 0; + object.limit = 0; + object.offset = 0; } + if (message.networkUid != null && message.hasOwnProperty("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.statusFilter != null && message.hasOwnProperty("statusFilter")) + object.statusFilter = message.statusFilter; + if (message.limit != null && message.hasOwnProperty("limit")) + object.limit = message.limit; + if (message.offset != null && message.hasOwnProperty("offset")) + object.offset = message.offset; return object; }; /** - * Converts this PAMConfigurations to JSON. + * Converts this CnappQueueListRequest to JSON. * @function toJSON - * @memberof PAM.PAMConfigurations + * @memberof PAM.CnappQueueListRequest * @instance * @returns {Object.} JSON object */ - PAMConfigurations.prototype.toJSON = function toJSON() { + CnappQueueListRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMConfigurations + * Gets the default type url for CnappQueueListRequest * @function getTypeUrl - * @memberof PAM.PAMConfigurations + * @memberof PAM.CnappQueueListRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMConfigurations.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CnappQueueListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMConfigurations"; + return typeUrlPrefix + "/PAM.CnappQueueListRequest"; }; - return PAMConfigurations; + return CnappQueueListRequest; })(); - PAM.PAMController = (function() { + PAM.CnappQueueItem = (function() { /** - * Properties of a PAMController. + * Properties of a CnappQueueItem. * @memberof PAM - * @interface IPAMController - * @property {Uint8Array|null} [controllerUid] PAMController controllerUid - * @property {string|null} [controllerName] PAMController controllerName - * @property {string|null} [deviceToken] PAMController deviceToken - * @property {string|null} [deviceName] PAMController deviceName - * @property {number|Long|null} [nodeId] PAMController nodeId - * @property {number|Long|null} [created] PAMController created - * @property {number|Long|null} [lastModified] PAMController lastModified - * @property {Uint8Array|null} [applicationUid] PAMController applicationUid - * @property {Enterprise.AppClientType|null} [appClientType] PAMController appClientType - * @property {boolean|null} [isInitialized] PAMController isInitialized + * @interface ICnappQueueItem + * @property {string|null} [cnappQueueId] CnappQueueItem cnappQueueId + * @property {string|null} [controlKey] CnappQueueItem controlKey + * @property {number|null} [cnappProviderId] CnappQueueItem cnappProviderId + * @property {number|null} [cnappQueueStatusId] CnappQueueItem cnappQueueStatusId + * @property {number|Long|null} [receivedAt] CnappQueueItem receivedAt + * @property {number|Long|null} [resolvedAt] CnappQueueItem resolvedAt + * @property {Uint8Array|null} [recordUid] CnappQueueItem recordUid + * @property {Uint8Array|null} [payload] CnappQueueItem payload */ /** - * Constructs a new PAMController. + * Constructs a new CnappQueueItem. * @memberof PAM - * @classdesc Represents a PAMController. - * @implements IPAMController + * @classdesc Represents a CnappQueueItem. + * @implements ICnappQueueItem * @constructor - * @param {PAM.IPAMController=} [properties] Properties to set + * @param {PAM.ICnappQueueItem=} [properties] Properties to set */ - function PAMController(properties) { + function CnappQueueItem(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -261777,201 +294209,173 @@ export const PAM = $root.PAM = (() => { } /** - * PAMController controllerUid. - * @member {Uint8Array} controllerUid - * @memberof PAM.PAMController - * @instance - */ - PAMController.prototype.controllerUid = $util.newBuffer([]); - - /** - * PAMController controllerName. - * @member {string} controllerName - * @memberof PAM.PAMController - * @instance - */ - PAMController.prototype.controllerName = ""; - - /** - * PAMController deviceToken. - * @member {string} deviceToken - * @memberof PAM.PAMController + * CnappQueueItem cnappQueueId. + * @member {string} cnappQueueId + * @memberof PAM.CnappQueueItem * @instance */ - PAMController.prototype.deviceToken = ""; + CnappQueueItem.prototype.cnappQueueId = ""; /** - * PAMController deviceName. - * @member {string} deviceName - * @memberof PAM.PAMController + * CnappQueueItem controlKey. + * @member {string} controlKey + * @memberof PAM.CnappQueueItem * @instance */ - PAMController.prototype.deviceName = ""; + CnappQueueItem.prototype.controlKey = ""; /** - * PAMController nodeId. - * @member {number|Long} nodeId - * @memberof PAM.PAMController + * CnappQueueItem cnappProviderId. + * @member {number} cnappProviderId + * @memberof PAM.CnappQueueItem * @instance */ - PAMController.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CnappQueueItem.prototype.cnappProviderId = 0; /** - * PAMController created. - * @member {number|Long} created - * @memberof PAM.PAMController + * CnappQueueItem cnappQueueStatusId. + * @member {number} cnappQueueStatusId + * @memberof PAM.CnappQueueItem * @instance */ - PAMController.prototype.created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CnappQueueItem.prototype.cnappQueueStatusId = 0; /** - * PAMController lastModified. - * @member {number|Long} lastModified - * @memberof PAM.PAMController + * CnappQueueItem receivedAt. + * @member {number|Long} receivedAt + * @memberof PAM.CnappQueueItem * @instance */ - PAMController.prototype.lastModified = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CnappQueueItem.prototype.receivedAt = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * PAMController applicationUid. - * @member {Uint8Array} applicationUid - * @memberof PAM.PAMController + * CnappQueueItem resolvedAt. + * @member {number|Long} resolvedAt + * @memberof PAM.CnappQueueItem * @instance */ - PAMController.prototype.applicationUid = $util.newBuffer([]); + CnappQueueItem.prototype.resolvedAt = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * PAMController appClientType. - * @member {Enterprise.AppClientType} appClientType - * @memberof PAM.PAMController + * CnappQueueItem recordUid. + * @member {Uint8Array} recordUid + * @memberof PAM.CnappQueueItem * @instance */ - PAMController.prototype.appClientType = 0; + CnappQueueItem.prototype.recordUid = $util.newBuffer([]); /** - * PAMController isInitialized. - * @member {boolean} isInitialized - * @memberof PAM.PAMController + * CnappQueueItem payload. + * @member {Uint8Array} payload + * @memberof PAM.CnappQueueItem * @instance */ - PAMController.prototype.isInitialized = false; + CnappQueueItem.prototype.payload = $util.newBuffer([]); /** - * Creates a new PAMController instance using the specified properties. + * Creates a new CnappQueueItem instance using the specified properties. * @function create - * @memberof PAM.PAMController + * @memberof PAM.CnappQueueItem * @static - * @param {PAM.IPAMController=} [properties] Properties to set - * @returns {PAM.PAMController} PAMController instance + * @param {PAM.ICnappQueueItem=} [properties] Properties to set + * @returns {PAM.CnappQueueItem} CnappQueueItem instance */ - PAMController.create = function create(properties) { - return new PAMController(properties); + CnappQueueItem.create = function create(properties) { + return new CnappQueueItem(properties); }; /** - * Encodes the specified PAMController message. Does not implicitly {@link PAM.PAMController.verify|verify} messages. + * Encodes the specified CnappQueueItem message. Does not implicitly {@link PAM.CnappQueueItem.verify|verify} messages. * @function encode - * @memberof PAM.PAMController + * @memberof PAM.CnappQueueItem * @static - * @param {PAM.IPAMController} message PAMController message or plain object to encode + * @param {PAM.ICnappQueueItem} message CnappQueueItem message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMController.encode = function encode(message, writer) { + CnappQueueItem.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.controllerUid); - if (message.controllerName != null && Object.hasOwnProperty.call(message, "controllerName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.controllerName); - if (message.deviceToken != null && Object.hasOwnProperty.call(message, "deviceToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.deviceToken); - if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.deviceName); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.nodeId); - if (message.created != null && Object.hasOwnProperty.call(message, "created")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.created); - if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.lastModified); - if (message.applicationUid != null && Object.hasOwnProperty.call(message, "applicationUid")) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.applicationUid); - if (message.appClientType != null && Object.hasOwnProperty.call(message, "appClientType")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.appClientType); - if (message.isInitialized != null && Object.hasOwnProperty.call(message, "isInitialized")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.isInitialized); + if (message.cnappQueueId != null && Object.hasOwnProperty.call(message, "cnappQueueId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cnappQueueId); + if (message.controlKey != null && Object.hasOwnProperty.call(message, "controlKey")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.controlKey); + if (message.cnappProviderId != null && Object.hasOwnProperty.call(message, "cnappProviderId")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.cnappProviderId); + if (message.cnappQueueStatusId != null && Object.hasOwnProperty.call(message, "cnappQueueStatusId")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.cnappQueueStatusId); + if (message.receivedAt != null && Object.hasOwnProperty.call(message, "receivedAt")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.receivedAt); + if (message.resolvedAt != null && Object.hasOwnProperty.call(message, "resolvedAt")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.resolvedAt); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.recordUid); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.payload); return writer; }; /** - * Encodes the specified PAMController message, length delimited. Does not implicitly {@link PAM.PAMController.verify|verify} messages. + * Encodes the specified CnappQueueItem message, length delimited. Does not implicitly {@link PAM.CnappQueueItem.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMController + * @memberof PAM.CnappQueueItem * @static - * @param {PAM.IPAMController} message PAMController message or plain object to encode + * @param {PAM.ICnappQueueItem} message CnappQueueItem message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMController.encodeDelimited = function encodeDelimited(message, writer) { + CnappQueueItem.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMController message from the specified reader or buffer. + * Decodes a CnappQueueItem message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMController + * @memberof PAM.CnappQueueItem * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMController} PAMController + * @returns {PAM.CnappQueueItem} CnappQueueItem * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMController.decode = function decode(reader, length) { + CnappQueueItem.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMController(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappQueueItem(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.controllerUid = reader.bytes(); + message.cnappQueueId = reader.string(); break; } case 2: { - message.controllerName = reader.string(); + message.controlKey = reader.string(); break; } case 3: { - message.deviceToken = reader.string(); + message.cnappProviderId = reader.int32(); break; } case 4: { - message.deviceName = reader.string(); + message.cnappQueueStatusId = reader.int32(); break; } case 5: { - message.nodeId = reader.int64(); + message.receivedAt = reader.int64(); break; } case 6: { - message.created = reader.int64(); + message.resolvedAt = reader.int64(); break; } case 7: { - message.lastModified = reader.int64(); + message.recordUid = reader.bytes(); break; } case 8: { - message.applicationUid = reader.bytes(); - break; - } - case 9: { - message.appClientType = reader.int32(); - break; - } - case 10: { - message.isInitialized = reader.bool(); + message.payload = reader.bytes(); break; } default: @@ -261983,290 +294387,228 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMController message from the specified reader or buffer, length delimited. + * Decodes a CnappQueueItem message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMController + * @memberof PAM.CnappQueueItem * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMController} PAMController + * @returns {PAM.CnappQueueItem} CnappQueueItem * @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) { + CnappQueueItem.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMController message. + * Verifies a CnappQueueItem message. * @function verify - * @memberof PAM.PAMController + * @memberof PAM.CnappQueueItem * @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) { + CnappQueueItem.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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"; + if (message.cnappQueueId != null && message.hasOwnProperty("cnappQueueId")) + if (!$util.isString(message.cnappQueueId)) + return "cnappQueueId: string expected"; + if (message.controlKey != null && message.hasOwnProperty("controlKey")) + if (!$util.isString(message.controlKey)) + return "controlKey: string expected"; + if (message.cnappProviderId != null && message.hasOwnProperty("cnappProviderId")) + if (!$util.isInteger(message.cnappProviderId)) + return "cnappProviderId: integer expected"; + if (message.cnappQueueStatusId != null && message.hasOwnProperty("cnappQueueStatusId")) + if (!$util.isInteger(message.cnappQueueStatusId)) + return "cnappQueueStatusId: integer expected"; + if (message.receivedAt != null && message.hasOwnProperty("receivedAt")) + if (!$util.isInteger(message.receivedAt) && !(message.receivedAt && $util.isInteger(message.receivedAt.low) && $util.isInteger(message.receivedAt.high))) + return "receivedAt: integer|Long expected"; + if (message.resolvedAt != null && message.hasOwnProperty("resolvedAt")) + if (!$util.isInteger(message.resolvedAt) && !(message.resolvedAt && $util.isInteger(message.resolvedAt.low) && $util.isInteger(message.resolvedAt.high))) + return "resolvedAt: 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.payload != null && message.hasOwnProperty("payload")) + if (!(message.payload && typeof message.payload.length === "number" || $util.isString(message.payload))) + return "payload: buffer expected"; return null; }; /** - * Creates a PAMController message from a plain object. Also converts values to their respective internal types. + * Creates a CnappQueueItem message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMController + * @memberof PAM.CnappQueueItem * @static * @param {Object.} object Plain object - * @returns {PAM.PAMController} PAMController + * @returns {PAM.CnappQueueItem} CnappQueueItem */ - PAMController.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMController) + CnappQueueItem.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappQueueItem) return object; - let message = new $root.PAM.PAMController(); - if (object.controllerUid != null) - if (typeof object.controllerUid === "string") - $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); - else if (object.controllerUid.length >= 0) - message.controllerUid = object.controllerUid; - if (object.controllerName != null) - message.controllerName = String(object.controllerName); - if (object.deviceToken != null) - message.deviceToken = String(object.deviceToken); - if (object.deviceName != null) - message.deviceName = String(object.deviceName); - if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") - message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); - if (object.created != null) + let message = new $root.PAM.CnappQueueItem(); + if (object.cnappQueueId != null) + message.cnappQueueId = String(object.cnappQueueId); + if (object.controlKey != null) + message.controlKey = String(object.controlKey); + if (object.cnappProviderId != null) + message.cnappProviderId = object.cnappProviderId | 0; + if (object.cnappQueueStatusId != null) + message.cnappQueueStatusId = object.cnappQueueStatusId | 0; + if (object.receivedAt != null) if ($util.Long) - (message.created = $util.Long.fromValue(object.created)).unsigned = false; - else if (typeof object.created === "string") - message.created = parseInt(object.created, 10); - else if (typeof object.created === "number") - message.created = object.created; - else if (typeof object.created === "object") - message.created = new $util.LongBits(object.created.low >>> 0, object.created.high >>> 0).toNumber(); - if (object.lastModified != null) + (message.receivedAt = $util.Long.fromValue(object.receivedAt)).unsigned = false; + else if (typeof object.receivedAt === "string") + message.receivedAt = parseInt(object.receivedAt, 10); + else if (typeof object.receivedAt === "number") + message.receivedAt = object.receivedAt; + else if (typeof object.receivedAt === "object") + message.receivedAt = new $util.LongBits(object.receivedAt.low >>> 0, object.receivedAt.high >>> 0).toNumber(); + if (object.resolvedAt != null) if ($util.Long) - (message.lastModified = $util.Long.fromValue(object.lastModified)).unsigned = false; - else if (typeof object.lastModified === "string") - message.lastModified = parseInt(object.lastModified, 10); - else if (typeof object.lastModified === "number") - message.lastModified = object.lastModified; - else if (typeof object.lastModified === "object") - message.lastModified = new $util.LongBits(object.lastModified.low >>> 0, object.lastModified.high >>> 0).toNumber(); - if (object.applicationUid != null) - if (typeof object.applicationUid === "string") - $util.base64.decode(object.applicationUid, message.applicationUid = $util.newBuffer($util.base64.length(object.applicationUid)), 0); - else if (object.applicationUid.length >= 0) - message.applicationUid = object.applicationUid; - switch (object.appClientType) { - default: - if (typeof object.appClientType === "number") { - message.appClientType = object.appClientType; - break; - } - break; - case "NOT_USED": - case 0: - message.appClientType = 0; - break; - case "GENERAL": - case 1: - message.appClientType = 1; - break; - case "DISCOVERY_AND_ROTATION_CONTROLLER": - case 2: - message.appClientType = 2; - break; - case "KCM_CONTROLLER": - case 3: - message.appClientType = 3; - break; - case "SELF_DESTRUCT": - case 4: - message.appClientType = 4; - break; - } - if (object.isInitialized != null) - message.isInitialized = Boolean(object.isInitialized); + (message.resolvedAt = $util.Long.fromValue(object.resolvedAt)).unsigned = false; + else if (typeof object.resolvedAt === "string") + message.resolvedAt = parseInt(object.resolvedAt, 10); + else if (typeof object.resolvedAt === "number") + message.resolvedAt = object.resolvedAt; + else if (typeof object.resolvedAt === "object") + message.resolvedAt = new $util.LongBits(object.resolvedAt.low >>> 0, object.resolvedAt.high >>> 0).toNumber(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.payload != null) + if (typeof object.payload === "string") + $util.base64.decode(object.payload, message.payload = $util.newBuffer($util.base64.length(object.payload)), 0); + else if (object.payload.length >= 0) + message.payload = object.payload; return message; }; /** - * Creates a plain object from a PAMController message. Also converts values to other types if specified. + * Creates a plain object from a CnappQueueItem message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMController + * @memberof PAM.CnappQueueItem * @static - * @param {PAM.PAMController} message PAMController + * @param {PAM.CnappQueueItem} message CnappQueueItem * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMController.toObject = function toObject(message, options) { + CnappQueueItem.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.controllerUid = ""; - else { - object.controllerUid = []; - if (options.bytes !== Array) - object.controllerUid = $util.newBuffer(object.controllerUid); - } - object.controllerName = ""; - object.deviceToken = ""; - object.deviceName = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; + object.cnappQueueId = ""; + object.controlKey = ""; + object.cnappProviderId = 0; + object.cnappQueueStatusId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.receivedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.created = options.longs === String ? "0" : 0; + object.receivedAt = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.resolvedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastModified = options.longs === String ? "0" : 0; + object.resolvedAt = options.longs === String ? "0" : 0; if (options.bytes === String) - object.applicationUid = ""; + object.recordUid = ""; else { - object.applicationUid = []; + object.recordUid = []; if (options.bytes !== Array) - object.applicationUid = $util.newBuffer(object.applicationUid); + object.recordUid = $util.newBuffer(object.recordUid); } - object.appClientType = options.enums === String ? "NOT_USED" : 0; - object.isInitialized = false; - } - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) - object.controllerUid = options.bytes === String ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUid) : message.controllerUid; - if (message.controllerName != null && message.hasOwnProperty("controllerName")) - object.controllerName = message.controllerName; - if (message.deviceToken != null && message.hasOwnProperty("deviceToken")) - object.deviceToken = message.deviceToken; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - object.deviceName = message.deviceName; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") - object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; - else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.created != null && message.hasOwnProperty("created")) - if (typeof message.created === "number") - object.created = options.longs === String ? String(message.created) : message.created; + if (options.bytes === String) + object.payload = ""; + else { + object.payload = []; + if (options.bytes !== Array) + object.payload = $util.newBuffer(object.payload); + } + } + if (message.cnappQueueId != null && message.hasOwnProperty("cnappQueueId")) + object.cnappQueueId = message.cnappQueueId; + if (message.controlKey != null && message.hasOwnProperty("controlKey")) + object.controlKey = message.controlKey; + if (message.cnappProviderId != null && message.hasOwnProperty("cnappProviderId")) + object.cnappProviderId = message.cnappProviderId; + if (message.cnappQueueStatusId != null && message.hasOwnProperty("cnappQueueStatusId")) + object.cnappQueueStatusId = message.cnappQueueStatusId; + if (message.receivedAt != null && message.hasOwnProperty("receivedAt")) + if (typeof message.receivedAt === "number") + object.receivedAt = options.longs === String ? String(message.receivedAt) : message.receivedAt; else - object.created = options.longs === String ? $util.Long.prototype.toString.call(message.created) : options.longs === Number ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() : message.created; - if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (typeof message.lastModified === "number") - object.lastModified = options.longs === String ? String(message.lastModified) : message.lastModified; + object.receivedAt = options.longs === String ? $util.Long.prototype.toString.call(message.receivedAt) : options.longs === Number ? new $util.LongBits(message.receivedAt.low >>> 0, message.receivedAt.high >>> 0).toNumber() : message.receivedAt; + if (message.resolvedAt != null && message.hasOwnProperty("resolvedAt")) + if (typeof message.resolvedAt === "number") + object.resolvedAt = options.longs === String ? String(message.resolvedAt) : message.resolvedAt; 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")) - 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")) - 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")) - object.isInitialized = message.isInitialized; + object.resolvedAt = options.longs === String ? $util.Long.prototype.toString.call(message.resolvedAt) : options.longs === Number ? new $util.LongBits(message.resolvedAt.low >>> 0, message.resolvedAt.high >>> 0).toNumber() : message.resolvedAt; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = options.bytes === String ? $util.base64.encode(message.payload, 0, message.payload.length) : options.bytes === Array ? Array.prototype.slice.call(message.payload) : message.payload; return object; }; /** - * Converts this PAMController to JSON. + * Converts this CnappQueueItem to JSON. * @function toJSON - * @memberof PAM.PAMController + * @memberof PAM.CnappQueueItem * @instance * @returns {Object.} JSON object */ - PAMController.prototype.toJSON = function toJSON() { + CnappQueueItem.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMController + * Gets the default type url for CnappQueueItem * @function getTypeUrl - * @memberof PAM.PAMController + * @memberof PAM.CnappQueueItem * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMController.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CnappQueueItem.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMController"; + return typeUrlPrefix + "/PAM.CnappQueueItem"; }; - return PAMController; + return CnappQueueItem; })(); - PAM.PAMSetMaxInstanceCountRequest = (function() { + PAM.CnappQueueListResponse = (function() { /** - * Properties of a PAMSetMaxInstanceCountRequest. + * Properties of a CnappQueueListResponse. * @memberof PAM - * @interface IPAMSetMaxInstanceCountRequest - * @property {Uint8Array|null} [controllerUid] PAMSetMaxInstanceCountRequest controllerUid - * @property {number|null} [maxInstanceCount] PAMSetMaxInstanceCountRequest maxInstanceCount + * @interface ICnappQueueListResponse + * @property {Array.|null} [items] CnappQueueListResponse items + * @property {number|null} [total] CnappQueueListResponse total + * @property {Uint8Array|null} [encryptionRecordKeyId] CnappQueueListResponse encryptionRecordKeyId */ /** - * Constructs a new PAMSetMaxInstanceCountRequest. + * Constructs a new CnappQueueListResponse. * @memberof PAM - * @classdesc Represents a PAMSetMaxInstanceCountRequest. - * @implements IPAMSetMaxInstanceCountRequest + * @classdesc Represents a CnappQueueListResponse. + * @implements ICnappQueueListResponse * @constructor - * @param {PAM.IPAMSetMaxInstanceCountRequest=} [properties] Properties to set + * @param {PAM.ICnappQueueListResponse=} [properties] Properties to set */ - function PAMSetMaxInstanceCountRequest(properties) { + function CnappQueueListResponse(properties) { + this.items = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -262274,89 +294616,106 @@ export const PAM = $root.PAM = (() => { } /** - * PAMSetMaxInstanceCountRequest controllerUid. - * @member {Uint8Array} controllerUid - * @memberof PAM.PAMSetMaxInstanceCountRequest + * CnappQueueListResponse items. + * @member {Array.} items + * @memberof PAM.CnappQueueListResponse * @instance */ - PAMSetMaxInstanceCountRequest.prototype.controllerUid = $util.newBuffer([]); + CnappQueueListResponse.prototype.items = $util.emptyArray; /** - * PAMSetMaxInstanceCountRequest maxInstanceCount. - * @member {number} maxInstanceCount - * @memberof PAM.PAMSetMaxInstanceCountRequest + * CnappQueueListResponse total. + * @member {number} total + * @memberof PAM.CnappQueueListResponse * @instance */ - PAMSetMaxInstanceCountRequest.prototype.maxInstanceCount = 0; + CnappQueueListResponse.prototype.total = 0; /** - * Creates a new PAMSetMaxInstanceCountRequest instance using the specified properties. + * CnappQueueListResponse encryptionRecordKeyId. + * @member {Uint8Array} encryptionRecordKeyId + * @memberof PAM.CnappQueueListResponse + * @instance + */ + CnappQueueListResponse.prototype.encryptionRecordKeyId = $util.newBuffer([]); + + /** + * Creates a new CnappQueueListResponse instance using the specified properties. * @function create - * @memberof PAM.PAMSetMaxInstanceCountRequest + * @memberof PAM.CnappQueueListResponse * @static - * @param {PAM.IPAMSetMaxInstanceCountRequest=} [properties] Properties to set - * @returns {PAM.PAMSetMaxInstanceCountRequest} PAMSetMaxInstanceCountRequest instance + * @param {PAM.ICnappQueueListResponse=} [properties] Properties to set + * @returns {PAM.CnappQueueListResponse} CnappQueueListResponse instance */ - PAMSetMaxInstanceCountRequest.create = function create(properties) { - return new PAMSetMaxInstanceCountRequest(properties); + CnappQueueListResponse.create = function create(properties) { + return new CnappQueueListResponse(properties); }; /** - * Encodes the specified PAMSetMaxInstanceCountRequest message. Does not implicitly {@link PAM.PAMSetMaxInstanceCountRequest.verify|verify} messages. + * Encodes the specified CnappQueueListResponse message. Does not implicitly {@link PAM.CnappQueueListResponse.verify|verify} messages. * @function encode - * @memberof PAM.PAMSetMaxInstanceCountRequest + * @memberof PAM.CnappQueueListResponse * @static - * @param {PAM.IPAMSetMaxInstanceCountRequest} message PAMSetMaxInstanceCountRequest message or plain object to encode + * @param {PAM.ICnappQueueListResponse} message CnappQueueListResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMSetMaxInstanceCountRequest.encode = function encode(message, writer) { + CnappQueueListResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.controllerUid); - if (message.maxInstanceCount != null && Object.hasOwnProperty.call(message, "maxInstanceCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxInstanceCount); + if (message.items != null && message.items.length) + for (let i = 0; i < message.items.length; ++i) + $root.PAM.CnappQueueItem.encode(message.items[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.total != null && Object.hasOwnProperty.call(message, "total")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.total); + if (message.encryptionRecordKeyId != null && Object.hasOwnProperty.call(message, "encryptionRecordKeyId")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.encryptionRecordKeyId); return writer; }; /** - * Encodes the specified PAMSetMaxInstanceCountRequest message, length delimited. Does not implicitly {@link PAM.PAMSetMaxInstanceCountRequest.verify|verify} messages. + * Encodes the specified CnappQueueListResponse message, length delimited. Does not implicitly {@link PAM.CnappQueueListResponse.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMSetMaxInstanceCountRequest + * @memberof PAM.CnappQueueListResponse * @static - * @param {PAM.IPAMSetMaxInstanceCountRequest} message PAMSetMaxInstanceCountRequest message or plain object to encode + * @param {PAM.ICnappQueueListResponse} message CnappQueueListResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMSetMaxInstanceCountRequest.encodeDelimited = function encodeDelimited(message, writer) { + CnappQueueListResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMSetMaxInstanceCountRequest message from the specified reader or buffer. + * Decodes a CnappQueueListResponse message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMSetMaxInstanceCountRequest + * @memberof PAM.CnappQueueListResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMSetMaxInstanceCountRequest} PAMSetMaxInstanceCountRequest + * @returns {PAM.CnappQueueListResponse} CnappQueueListResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMSetMaxInstanceCountRequest.decode = function decode(reader, length) { + CnappQueueListResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMSetMaxInstanceCountRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappQueueListResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.controllerUid = reader.bytes(); + if (!(message.items && message.items.length)) + message.items = []; + message.items.push($root.PAM.CnappQueueItem.decode(reader, reader.uint32())); break; } case 2: { - message.maxInstanceCount = reader.int32(); + message.total = reader.int32(); + break; + } + case 3: { + message.encryptionRecordKeyId = reader.bytes(); break; } default: @@ -262368,158 +294727,176 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMSetMaxInstanceCountRequest message from the specified reader or buffer, length delimited. + * Decodes a CnappQueueListResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMSetMaxInstanceCountRequest + * @memberof PAM.CnappQueueListResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMSetMaxInstanceCountRequest} PAMSetMaxInstanceCountRequest + * @returns {PAM.CnappQueueListResponse} CnappQueueListResponse * @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) { + CnappQueueListResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMSetMaxInstanceCountRequest message. + * Verifies a CnappQueueListResponse message. * @function verify - * @memberof PAM.PAMSetMaxInstanceCountRequest + * @memberof PAM.CnappQueueListResponse * @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) { + CnappQueueListResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.maxInstanceCount != null && message.hasOwnProperty("maxInstanceCount")) - if (!$util.isInteger(message.maxInstanceCount)) - return "maxInstanceCount: integer expected"; + if (message.items != null && message.hasOwnProperty("items")) { + if (!Array.isArray(message.items)) + return "items: array expected"; + for (let i = 0; i < message.items.length; ++i) { + let error = $root.PAM.CnappQueueItem.verify(message.items[i]); + if (error) + return "items." + error; + } + } + if (message.total != null && message.hasOwnProperty("total")) + if (!$util.isInteger(message.total)) + return "total: integer expected"; + if (message.encryptionRecordKeyId != null && message.hasOwnProperty("encryptionRecordKeyId")) + if (!(message.encryptionRecordKeyId && typeof message.encryptionRecordKeyId.length === "number" || $util.isString(message.encryptionRecordKeyId))) + return "encryptionRecordKeyId: buffer expected"; return null; }; /** - * Creates a PAMSetMaxInstanceCountRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CnappQueueListResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMSetMaxInstanceCountRequest + * @memberof PAM.CnappQueueListResponse * @static * @param {Object.} object Plain object - * @returns {PAM.PAMSetMaxInstanceCountRequest} PAMSetMaxInstanceCountRequest + * @returns {PAM.CnappQueueListResponse} CnappQueueListResponse */ - PAMSetMaxInstanceCountRequest.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMSetMaxInstanceCountRequest) + CnappQueueListResponse.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappQueueListResponse) return object; - let message = new $root.PAM.PAMSetMaxInstanceCountRequest(); - if (object.controllerUid != null) - if (typeof object.controllerUid === "string") - $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); - else if (object.controllerUid.length >= 0) - message.controllerUid = object.controllerUid; - if (object.maxInstanceCount != null) - message.maxInstanceCount = object.maxInstanceCount | 0; + let message = new $root.PAM.CnappQueueListResponse(); + if (object.items) { + if (!Array.isArray(object.items)) + throw TypeError(".PAM.CnappQueueListResponse.items: array expected"); + message.items = []; + for (let i = 0; i < object.items.length; ++i) { + if (typeof object.items[i] !== "object") + throw TypeError(".PAM.CnappQueueListResponse.items: object expected"); + message.items[i] = $root.PAM.CnappQueueItem.fromObject(object.items[i]); + } + } + if (object.total != null) + message.total = object.total | 0; + if (object.encryptionRecordKeyId != null) + if (typeof object.encryptionRecordKeyId === "string") + $util.base64.decode(object.encryptionRecordKeyId, message.encryptionRecordKeyId = $util.newBuffer($util.base64.length(object.encryptionRecordKeyId)), 0); + else if (object.encryptionRecordKeyId.length >= 0) + message.encryptionRecordKeyId = object.encryptionRecordKeyId; return message; }; /** - * Creates a plain object from a PAMSetMaxInstanceCountRequest message. Also converts values to other types if specified. + * Creates a plain object from a CnappQueueListResponse message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMSetMaxInstanceCountRequest + * @memberof PAM.CnappQueueListResponse * @static - * @param {PAM.PAMSetMaxInstanceCountRequest} message PAMSetMaxInstanceCountRequest + * @param {PAM.CnappQueueListResponse} message CnappQueueListResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMSetMaxInstanceCountRequest.toObject = function toObject(message, options) { + CnappQueueListResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.items = []; if (options.defaults) { + object.total = 0; if (options.bytes === String) - object.controllerUid = ""; + object.encryptionRecordKeyId = ""; else { - object.controllerUid = []; + object.encryptionRecordKeyId = []; if (options.bytes !== Array) - object.controllerUid = $util.newBuffer(object.controllerUid); + object.encryptionRecordKeyId = $util.newBuffer(object.encryptionRecordKeyId); } - object.maxInstanceCount = 0; } - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) - object.controllerUid = options.bytes === String ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUid) : message.controllerUid; - if (message.maxInstanceCount != null && message.hasOwnProperty("maxInstanceCount")) - object.maxInstanceCount = message.maxInstanceCount; + if (message.items && message.items.length) { + object.items = []; + for (let j = 0; j < message.items.length; ++j) + object.items[j] = $root.PAM.CnappQueueItem.toObject(message.items[j], options); + } + if (message.total != null && message.hasOwnProperty("total")) + object.total = message.total; + if (message.encryptionRecordKeyId != null && message.hasOwnProperty("encryptionRecordKeyId")) + object.encryptionRecordKeyId = options.bytes === String ? $util.base64.encode(message.encryptionRecordKeyId, 0, message.encryptionRecordKeyId.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptionRecordKeyId) : message.encryptionRecordKeyId; return object; }; /** - * Converts this PAMSetMaxInstanceCountRequest to JSON. + * Converts this CnappQueueListResponse to JSON. * @function toJSON - * @memberof PAM.PAMSetMaxInstanceCountRequest + * @memberof PAM.CnappQueueListResponse * @instance * @returns {Object.} JSON object */ - PAMSetMaxInstanceCountRequest.prototype.toJSON = function toJSON() { + CnappQueueListResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMSetMaxInstanceCountRequest + * Gets the default type url for CnappQueueListResponse * @function getTypeUrl - * @memberof PAM.PAMSetMaxInstanceCountRequest + * @memberof PAM.CnappQueueListResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMSetMaxInstanceCountRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CnappQueueListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMSetMaxInstanceCountRequest"; + return typeUrlPrefix + "/PAM.CnappQueueListResponse"; }; - return PAMSetMaxInstanceCountRequest; - })(); - - /** - * ControllerMessageType enum. - * @name PAM.ControllerMessageType - * @enum {number} - * @property {number} CMT_GENERAL=0 CMT_GENERAL value - * @property {number} CMT_ROTATE=1 CMT_ROTATE value - * @property {number} CMT_DISCOVERY=2 CMT_DISCOVERY value - * @property {number} CMT_CONNECT=3 CMT_CONNECT value - */ - PAM.ControllerMessageType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CMT_GENERAL"] = 0; - values[valuesById[1] = "CMT_ROTATE"] = 1; - values[valuesById[2] = "CMT_DISCOVERY"] = 2; - values[valuesById[3] = "CMT_CONNECT"] = 3; - return values; + return CnappQueueListResponse; })(); - PAM.ControllerResponse = (function() { + PAM.CnappQueueItemResponse = (function() { /** - * Properties of a ControllerResponse. + * Properties of a CnappQueueItemResponse. * @memberof PAM - * @interface IControllerResponse - * @property {string|null} [payload] ControllerResponse payload - */ - - /** - * Constructs a new ControllerResponse. + * @interface ICnappQueueItemResponse + * @property {string|null} [cnappQueueId] CnappQueueItemResponse cnappQueueId + * @property {string|null} [controlKey] CnappQueueItemResponse controlKey + * @property {number|null} [cnappProviderId] CnappQueueItemResponse cnappProviderId + * @property {number|null} [cnappQueueStatusId] CnappQueueItemResponse cnappQueueStatusId + * @property {number|Long|null} [receivedAt] CnappQueueItemResponse receivedAt + * @property {number|Long|null} [resolvedAt] CnappQueueItemResponse resolvedAt + * @property {Uint8Array|null} [recordUid] CnappQueueItemResponse recordUid + * @property {Uint8Array|null} [payload] CnappQueueItemResponse payload + * @property {Uint8Array|null} [controllerUid] CnappQueueItemResponse controllerUid + * @property {Uint8Array|null} [networkId] CnappQueueItemResponse networkId + * @property {Uint8Array|null} [encryptionRecordKeyId] CnappQueueItemResponse encryptionRecordKeyId + */ + + /** + * Constructs a new CnappQueueItemResponse. * @memberof PAM - * @classdesc Represents a ControllerResponse. - * @implements IControllerResponse + * @classdesc Represents a CnappQueueItemResponse. + * @implements ICnappQueueItemResponse * @constructor - * @param {PAM.IControllerResponse=} [properties] Properties to set + * @param {PAM.ICnappQueueItemResponse=} [properties] Properties to set */ - function ControllerResponse(properties) { + function CnappQueueItemResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -262527,75 +294904,215 @@ export const PAM = $root.PAM = (() => { } /** - * ControllerResponse payload. - * @member {string} payload - * @memberof PAM.ControllerResponse + * CnappQueueItemResponse cnappQueueId. + * @member {string} cnappQueueId + * @memberof PAM.CnappQueueItemResponse * @instance */ - ControllerResponse.prototype.payload = ""; + CnappQueueItemResponse.prototype.cnappQueueId = ""; /** - * Creates a new ControllerResponse instance using the specified properties. + * CnappQueueItemResponse controlKey. + * @member {string} controlKey + * @memberof PAM.CnappQueueItemResponse + * @instance + */ + CnappQueueItemResponse.prototype.controlKey = ""; + + /** + * CnappQueueItemResponse cnappProviderId. + * @member {number} cnappProviderId + * @memberof PAM.CnappQueueItemResponse + * @instance + */ + CnappQueueItemResponse.prototype.cnappProviderId = 0; + + /** + * CnappQueueItemResponse cnappQueueStatusId. + * @member {number} cnappQueueStatusId + * @memberof PAM.CnappQueueItemResponse + * @instance + */ + CnappQueueItemResponse.prototype.cnappQueueStatusId = 0; + + /** + * CnappQueueItemResponse receivedAt. + * @member {number|Long} receivedAt + * @memberof PAM.CnappQueueItemResponse + * @instance + */ + CnappQueueItemResponse.prototype.receivedAt = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * CnappQueueItemResponse resolvedAt. + * @member {number|Long} resolvedAt + * @memberof PAM.CnappQueueItemResponse + * @instance + */ + CnappQueueItemResponse.prototype.resolvedAt = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * CnappQueueItemResponse recordUid. + * @member {Uint8Array} recordUid + * @memberof PAM.CnappQueueItemResponse + * @instance + */ + CnappQueueItemResponse.prototype.recordUid = $util.newBuffer([]); + + /** + * CnappQueueItemResponse payload. + * @member {Uint8Array} payload + * @memberof PAM.CnappQueueItemResponse + * @instance + */ + CnappQueueItemResponse.prototype.payload = $util.newBuffer([]); + + /** + * CnappQueueItemResponse controllerUid. + * @member {Uint8Array} controllerUid + * @memberof PAM.CnappQueueItemResponse + * @instance + */ + CnappQueueItemResponse.prototype.controllerUid = $util.newBuffer([]); + + /** + * CnappQueueItemResponse networkId. + * @member {Uint8Array} networkId + * @memberof PAM.CnappQueueItemResponse + * @instance + */ + CnappQueueItemResponse.prototype.networkId = $util.newBuffer([]); + + /** + * CnappQueueItemResponse encryptionRecordKeyId. + * @member {Uint8Array} encryptionRecordKeyId + * @memberof PAM.CnappQueueItemResponse + * @instance + */ + CnappQueueItemResponse.prototype.encryptionRecordKeyId = $util.newBuffer([]); + + /** + * Creates a new CnappQueueItemResponse instance using the specified properties. * @function create - * @memberof PAM.ControllerResponse + * @memberof PAM.CnappQueueItemResponse * @static - * @param {PAM.IControllerResponse=} [properties] Properties to set - * @returns {PAM.ControllerResponse} ControllerResponse instance + * @param {PAM.ICnappQueueItemResponse=} [properties] Properties to set + * @returns {PAM.CnappQueueItemResponse} CnappQueueItemResponse instance */ - ControllerResponse.create = function create(properties) { - return new ControllerResponse(properties); + CnappQueueItemResponse.create = function create(properties) { + return new CnappQueueItemResponse(properties); }; /** - * Encodes the specified ControllerResponse message. Does not implicitly {@link PAM.ControllerResponse.verify|verify} messages. + * Encodes the specified CnappQueueItemResponse message. Does not implicitly {@link PAM.CnappQueueItemResponse.verify|verify} messages. * @function encode - * @memberof PAM.ControllerResponse + * @memberof PAM.CnappQueueItemResponse * @static - * @param {PAM.IControllerResponse} message ControllerResponse message or plain object to encode + * @param {PAM.ICnappQueueItemResponse} message CnappQueueItemResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ControllerResponse.encode = function encode(message, writer) { + CnappQueueItemResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.cnappQueueId != null && Object.hasOwnProperty.call(message, "cnappQueueId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cnappQueueId); + if (message.controlKey != null && Object.hasOwnProperty.call(message, "controlKey")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.controlKey); + if (message.cnappProviderId != null && Object.hasOwnProperty.call(message, "cnappProviderId")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.cnappProviderId); + if (message.cnappQueueStatusId != null && Object.hasOwnProperty.call(message, "cnappQueueStatusId")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.cnappQueueStatusId); + if (message.receivedAt != null && Object.hasOwnProperty.call(message, "receivedAt")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.receivedAt); + if (message.resolvedAt != null && Object.hasOwnProperty.call(message, "resolvedAt")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.resolvedAt); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.recordUid); if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.payload); + writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.payload); + if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) + writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.controllerUid); + if (message.networkId != null && Object.hasOwnProperty.call(message, "networkId")) + writer.uint32(/* id 10, wireType 2 =*/82).bytes(message.networkId); + if (message.encryptionRecordKeyId != null && Object.hasOwnProperty.call(message, "encryptionRecordKeyId")) + writer.uint32(/* id 11, wireType 2 =*/90).bytes(message.encryptionRecordKeyId); return writer; }; /** - * Encodes the specified ControllerResponse message, length delimited. Does not implicitly {@link PAM.ControllerResponse.verify|verify} messages. + * Encodes the specified CnappQueueItemResponse message, length delimited. Does not implicitly {@link PAM.CnappQueueItemResponse.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.ControllerResponse + * @memberof PAM.CnappQueueItemResponse * @static - * @param {PAM.IControllerResponse} message ControllerResponse message or plain object to encode + * @param {PAM.ICnappQueueItemResponse} message CnappQueueItemResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ControllerResponse.encodeDelimited = function encodeDelimited(message, writer) { + CnappQueueItemResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ControllerResponse message from the specified reader or buffer. + * Decodes a CnappQueueItemResponse message from the specified reader or buffer. * @function decode - * @memberof PAM.ControllerResponse + * @memberof PAM.CnappQueueItemResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.ControllerResponse} ControllerResponse + * @returns {PAM.CnappQueueItemResponse} CnappQueueItemResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ControllerResponse.decode = function decode(reader, length) { + CnappQueueItemResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.ControllerResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappQueueItemResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.payload = reader.string(); + message.cnappQueueId = reader.string(); + break; + } + case 2: { + message.controlKey = reader.string(); + break; + } + case 3: { + message.cnappProviderId = reader.int32(); + break; + } + case 4: { + message.cnappQueueStatusId = reader.int32(); + break; + } + case 5: { + message.receivedAt = reader.int64(); + break; + } + case 6: { + message.resolvedAt = reader.int64(); + break; + } + case 7: { + message.recordUid = reader.bytes(); + break; + } + case 8: { + message.payload = reader.bytes(); + break; + } + case 9: { + message.controllerUid = reader.bytes(); + break; + } + case 10: { + message.networkId = reader.bytes(); + break; + } + case 11: { + message.encryptionRecordKeyId = reader.bytes(); break; } default: @@ -262607,123 +295124,277 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a ControllerResponse message from the specified reader or buffer, length delimited. + * Decodes a CnappQueueItemResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.ControllerResponse + * @memberof PAM.CnappQueueItemResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.ControllerResponse} ControllerResponse + * @returns {PAM.CnappQueueItemResponse} CnappQueueItemResponse * @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) { + CnappQueueItemResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ControllerResponse message. + * Verifies a CnappQueueItemResponse message. * @function verify - * @memberof PAM.ControllerResponse + * @memberof PAM.CnappQueueItemResponse * @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) { + CnappQueueItemResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.cnappQueueId != null && message.hasOwnProperty("cnappQueueId")) + if (!$util.isString(message.cnappQueueId)) + return "cnappQueueId: string expected"; + if (message.controlKey != null && message.hasOwnProperty("controlKey")) + if (!$util.isString(message.controlKey)) + return "controlKey: string expected"; + if (message.cnappProviderId != null && message.hasOwnProperty("cnappProviderId")) + if (!$util.isInteger(message.cnappProviderId)) + return "cnappProviderId: integer expected"; + if (message.cnappQueueStatusId != null && message.hasOwnProperty("cnappQueueStatusId")) + if (!$util.isInteger(message.cnappQueueStatusId)) + return "cnappQueueStatusId: integer expected"; + if (message.receivedAt != null && message.hasOwnProperty("receivedAt")) + if (!$util.isInteger(message.receivedAt) && !(message.receivedAt && $util.isInteger(message.receivedAt.low) && $util.isInteger(message.receivedAt.high))) + return "receivedAt: integer|Long expected"; + if (message.resolvedAt != null && message.hasOwnProperty("resolvedAt")) + if (!$util.isInteger(message.resolvedAt) && !(message.resolvedAt && $util.isInteger(message.resolvedAt.low) && $util.isInteger(message.resolvedAt.high))) + return "resolvedAt: 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.payload != null && message.hasOwnProperty("payload")) - if (!$util.isString(message.payload)) - return "payload: string expected"; + if (!(message.payload && typeof message.payload.length === "number" || $util.isString(message.payload))) + return "payload: 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.networkId != null && message.hasOwnProperty("networkId")) + if (!(message.networkId && typeof message.networkId.length === "number" || $util.isString(message.networkId))) + return "networkId: buffer expected"; + if (message.encryptionRecordKeyId != null && message.hasOwnProperty("encryptionRecordKeyId")) + if (!(message.encryptionRecordKeyId && typeof message.encryptionRecordKeyId.length === "number" || $util.isString(message.encryptionRecordKeyId))) + return "encryptionRecordKeyId: buffer expected"; return null; }; /** - * Creates a ControllerResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CnappQueueItemResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.ControllerResponse + * @memberof PAM.CnappQueueItemResponse * @static * @param {Object.} object Plain object - * @returns {PAM.ControllerResponse} ControllerResponse + * @returns {PAM.CnappQueueItemResponse} CnappQueueItemResponse */ - ControllerResponse.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.ControllerResponse) + CnappQueueItemResponse.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappQueueItemResponse) return object; - let message = new $root.PAM.ControllerResponse(); + let message = new $root.PAM.CnappQueueItemResponse(); + if (object.cnappQueueId != null) + message.cnappQueueId = String(object.cnappQueueId); + if (object.controlKey != null) + message.controlKey = String(object.controlKey); + if (object.cnappProviderId != null) + message.cnappProviderId = object.cnappProviderId | 0; + if (object.cnappQueueStatusId != null) + message.cnappQueueStatusId = object.cnappQueueStatusId | 0; + if (object.receivedAt != null) + if ($util.Long) + (message.receivedAt = $util.Long.fromValue(object.receivedAt)).unsigned = false; + else if (typeof object.receivedAt === "string") + message.receivedAt = parseInt(object.receivedAt, 10); + else if (typeof object.receivedAt === "number") + message.receivedAt = object.receivedAt; + else if (typeof object.receivedAt === "object") + message.receivedAt = new $util.LongBits(object.receivedAt.low >>> 0, object.receivedAt.high >>> 0).toNumber(); + if (object.resolvedAt != null) + if ($util.Long) + (message.resolvedAt = $util.Long.fromValue(object.resolvedAt)).unsigned = false; + else if (typeof object.resolvedAt === "string") + message.resolvedAt = parseInt(object.resolvedAt, 10); + else if (typeof object.resolvedAt === "number") + message.resolvedAt = object.resolvedAt; + else if (typeof object.resolvedAt === "object") + message.resolvedAt = new $util.LongBits(object.resolvedAt.low >>> 0, object.resolvedAt.high >>> 0).toNumber(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; if (object.payload != null) - message.payload = String(object.payload); + if (typeof object.payload === "string") + $util.base64.decode(object.payload, message.payload = $util.newBuffer($util.base64.length(object.payload)), 0); + else if (object.payload.length >= 0) + message.payload = object.payload; + if (object.controllerUid != null) + if (typeof object.controllerUid === "string") + $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); + else if (object.controllerUid.length >= 0) + message.controllerUid = object.controllerUid; + if (object.networkId != null) + if (typeof object.networkId === "string") + $util.base64.decode(object.networkId, message.networkId = $util.newBuffer($util.base64.length(object.networkId)), 0); + else if (object.networkId.length >= 0) + message.networkId = object.networkId; + if (object.encryptionRecordKeyId != null) + if (typeof object.encryptionRecordKeyId === "string") + $util.base64.decode(object.encryptionRecordKeyId, message.encryptionRecordKeyId = $util.newBuffer($util.base64.length(object.encryptionRecordKeyId)), 0); + else if (object.encryptionRecordKeyId.length >= 0) + message.encryptionRecordKeyId = object.encryptionRecordKeyId; return message; }; /** - * Creates a plain object from a ControllerResponse message. Also converts values to other types if specified. + * Creates a plain object from a CnappQueueItemResponse message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.ControllerResponse + * @memberof PAM.CnappQueueItemResponse * @static - * @param {PAM.ControllerResponse} message ControllerResponse + * @param {PAM.CnappQueueItemResponse} message CnappQueueItemResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ControllerResponse.toObject = function toObject(message, options) { + CnappQueueItemResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.payload = ""; + if (options.defaults) { + object.cnappQueueId = ""; + object.controlKey = ""; + object.cnappProviderId = 0; + object.cnappQueueStatusId = 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.receivedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.receivedAt = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.resolvedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.resolvedAt = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if (options.bytes === String) + object.payload = ""; + else { + object.payload = []; + if (options.bytes !== Array) + object.payload = $util.newBuffer(object.payload); + } + if (options.bytes === String) + object.controllerUid = ""; + else { + object.controllerUid = []; + if (options.bytes !== Array) + object.controllerUid = $util.newBuffer(object.controllerUid); + } + if (options.bytes === String) + object.networkId = ""; + else { + object.networkId = []; + if (options.bytes !== Array) + object.networkId = $util.newBuffer(object.networkId); + } + if (options.bytes === String) + object.encryptionRecordKeyId = ""; + else { + object.encryptionRecordKeyId = []; + if (options.bytes !== Array) + object.encryptionRecordKeyId = $util.newBuffer(object.encryptionRecordKeyId); + } + } + if (message.cnappQueueId != null && message.hasOwnProperty("cnappQueueId")) + object.cnappQueueId = message.cnappQueueId; + if (message.controlKey != null && message.hasOwnProperty("controlKey")) + object.controlKey = message.controlKey; + if (message.cnappProviderId != null && message.hasOwnProperty("cnappProviderId")) + object.cnappProviderId = message.cnappProviderId; + if (message.cnappQueueStatusId != null && message.hasOwnProperty("cnappQueueStatusId")) + object.cnappQueueStatusId = message.cnappQueueStatusId; + if (message.receivedAt != null && message.hasOwnProperty("receivedAt")) + if (typeof message.receivedAt === "number") + object.receivedAt = options.longs === String ? String(message.receivedAt) : message.receivedAt; + else + object.receivedAt = options.longs === String ? $util.Long.prototype.toString.call(message.receivedAt) : options.longs === Number ? new $util.LongBits(message.receivedAt.low >>> 0, message.receivedAt.high >>> 0).toNumber() : message.receivedAt; + if (message.resolvedAt != null && message.hasOwnProperty("resolvedAt")) + if (typeof message.resolvedAt === "number") + object.resolvedAt = options.longs === String ? String(message.resolvedAt) : message.resolvedAt; + else + object.resolvedAt = options.longs === String ? $util.Long.prototype.toString.call(message.resolvedAt) : options.longs === Number ? new $util.LongBits(message.resolvedAt.low >>> 0, message.resolvedAt.high >>> 0).toNumber() : message.resolvedAt; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = 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.controllerUid != null && message.hasOwnProperty("controllerUid")) + object.controllerUid = options.bytes === String ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUid) : message.controllerUid; + if (message.networkId != null && message.hasOwnProperty("networkId")) + object.networkId = options.bytes === String ? $util.base64.encode(message.networkId, 0, message.networkId.length) : options.bytes === Array ? Array.prototype.slice.call(message.networkId) : message.networkId; + if (message.encryptionRecordKeyId != null && message.hasOwnProperty("encryptionRecordKeyId")) + object.encryptionRecordKeyId = options.bytes === String ? $util.base64.encode(message.encryptionRecordKeyId, 0, message.encryptionRecordKeyId.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptionRecordKeyId) : message.encryptionRecordKeyId; return object; }; /** - * Converts this ControllerResponse to JSON. + * Converts this CnappQueueItemResponse to JSON. * @function toJSON - * @memberof PAM.ControllerResponse + * @memberof PAM.CnappQueueItemResponse * @instance * @returns {Object.} JSON object */ - ControllerResponse.prototype.toJSON = function toJSON() { + CnappQueueItemResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ControllerResponse + * Gets the default type url for CnappQueueItemResponse * @function getTypeUrl - * @memberof PAM.ControllerResponse + * @memberof PAM.CnappQueueItemResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ControllerResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CnappQueueItemResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.ControllerResponse"; + return typeUrlPrefix + "/PAM.CnappQueueItemResponse"; }; - return ControllerResponse; + return CnappQueueItemResponse; })(); - PAM.PAMConfigurationController = (function() { + PAM.CnappAssociateRequest = (function() { /** - * Properties of a PAMConfigurationController. + * Properties of a CnappAssociateRequest. * @memberof PAM - * @interface IPAMConfigurationController - * @property {Uint8Array|null} [configurationUid] PAMConfigurationController configurationUid - * @property {Uint8Array|null} [controllerUid] PAMConfigurationController controllerUid + * @interface ICnappAssociateRequest + * @property {Uint8Array|null} [recordUid] CnappAssociateRequest recordUid + * @property {boolean|null} [executeAfterSetup] CnappAssociateRequest executeAfterSetup */ /** - * Constructs a new PAMConfigurationController. + * Constructs a new CnappAssociateRequest. * @memberof PAM - * @classdesc Represents a PAMConfigurationController. - * @implements IPAMConfigurationController + * @classdesc Represents a CnappAssociateRequest. + * @implements ICnappAssociateRequest * @constructor - * @param {PAM.IPAMConfigurationController=} [properties] Properties to set + * @param {PAM.ICnappAssociateRequest=} [properties] Properties to set */ - function PAMConfigurationController(properties) { + function CnappAssociateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -262731,89 +295402,89 @@ export const PAM = $root.PAM = (() => { } /** - * PAMConfigurationController configurationUid. - * @member {Uint8Array} configurationUid - * @memberof PAM.PAMConfigurationController + * CnappAssociateRequest recordUid. + * @member {Uint8Array} recordUid + * @memberof PAM.CnappAssociateRequest * @instance */ - PAMConfigurationController.prototype.configurationUid = $util.newBuffer([]); + CnappAssociateRequest.prototype.recordUid = $util.newBuffer([]); /** - * PAMConfigurationController controllerUid. - * @member {Uint8Array} controllerUid - * @memberof PAM.PAMConfigurationController + * CnappAssociateRequest executeAfterSetup. + * @member {boolean} executeAfterSetup + * @memberof PAM.CnappAssociateRequest * @instance */ - PAMConfigurationController.prototype.controllerUid = $util.newBuffer([]); + CnappAssociateRequest.prototype.executeAfterSetup = false; /** - * Creates a new PAMConfigurationController instance using the specified properties. + * Creates a new CnappAssociateRequest instance using the specified properties. * @function create - * @memberof PAM.PAMConfigurationController + * @memberof PAM.CnappAssociateRequest * @static - * @param {PAM.IPAMConfigurationController=} [properties] Properties to set - * @returns {PAM.PAMConfigurationController} PAMConfigurationController instance + * @param {PAM.ICnappAssociateRequest=} [properties] Properties to set + * @returns {PAM.CnappAssociateRequest} CnappAssociateRequest instance */ - PAMConfigurationController.create = function create(properties) { - return new PAMConfigurationController(properties); + CnappAssociateRequest.create = function create(properties) { + return new CnappAssociateRequest(properties); }; /** - * Encodes the specified PAMConfigurationController message. Does not implicitly {@link PAM.PAMConfigurationController.verify|verify} messages. + * Encodes the specified CnappAssociateRequest message. Does not implicitly {@link PAM.CnappAssociateRequest.verify|verify} messages. * @function encode - * @memberof PAM.PAMConfigurationController + * @memberof PAM.CnappAssociateRequest * @static - * @param {PAM.IPAMConfigurationController} message PAMConfigurationController message or plain object to encode + * @param {PAM.ICnappAssociateRequest} message CnappAssociateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMConfigurationController.encode = function encode(message, writer) { + CnappAssociateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.configurationUid); - if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.controllerUid); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.executeAfterSetup != null && Object.hasOwnProperty.call(message, "executeAfterSetup")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.executeAfterSetup); return writer; }; /** - * Encodes the specified PAMConfigurationController message, length delimited. Does not implicitly {@link PAM.PAMConfigurationController.verify|verify} messages. + * Encodes the specified CnappAssociateRequest message, length delimited. Does not implicitly {@link PAM.CnappAssociateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMConfigurationController + * @memberof PAM.CnappAssociateRequest * @static - * @param {PAM.IPAMConfigurationController} message PAMConfigurationController message or plain object to encode + * @param {PAM.ICnappAssociateRequest} message CnappAssociateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMConfigurationController.encodeDelimited = function encodeDelimited(message, writer) { + CnappAssociateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMConfigurationController message from the specified reader or buffer. + * Decodes a CnappAssociateRequest message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMConfigurationController + * @memberof PAM.CnappAssociateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMConfigurationController} PAMConfigurationController + * @returns {PAM.CnappAssociateRequest} CnappAssociateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMConfigurationController.decode = function decode(reader, length) { + CnappAssociateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMConfigurationController(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappAssociateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.configurationUid = reader.bytes(); + message.recordUid = reader.bytes(); break; } case 2: { - message.controllerUid = reader.bytes(); + message.executeAfterSetup = reader.bool(); break; } default: @@ -262825,154 +295496,141 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMConfigurationController message from the specified reader or buffer, length delimited. + * Decodes a CnappAssociateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMConfigurationController + * @memberof PAM.CnappAssociateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMConfigurationController} PAMConfigurationController + * @returns {PAM.CnappAssociateRequest} CnappAssociateRequest * @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) { + CnappAssociateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMConfigurationController message. + * Verifies a CnappAssociateRequest message. * @function verify - * @memberof PAM.PAMConfigurationController + * @memberof PAM.CnappAssociateRequest * @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) { + CnappAssociateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.recordUid != null && message.hasOwnProperty("recordUid")) + if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) + return "recordUid: buffer expected"; + if (message.executeAfterSetup != null && message.hasOwnProperty("executeAfterSetup")) + if (typeof message.executeAfterSetup !== "boolean") + return "executeAfterSetup: boolean expected"; return null; }; /** - * Creates a PAMConfigurationController message from a plain object. Also converts values to their respective internal types. + * Creates a CnappAssociateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMConfigurationController + * @memberof PAM.CnappAssociateRequest * @static * @param {Object.} object Plain object - * @returns {PAM.PAMConfigurationController} PAMConfigurationController + * @returns {PAM.CnappAssociateRequest} CnappAssociateRequest */ - PAMConfigurationController.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMConfigurationController) + CnappAssociateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappAssociateRequest) return object; - let message = new $root.PAM.PAMConfigurationController(); - if (object.configurationUid != null) - if (typeof object.configurationUid === "string") - $util.base64.decode(object.configurationUid, message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid)), 0); - else if (object.configurationUid.length >= 0) - message.configurationUid = object.configurationUid; - if (object.controllerUid != null) - if (typeof object.controllerUid === "string") - $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); - else if (object.controllerUid.length >= 0) - message.controllerUid = object.controllerUid; + let message = new $root.PAM.CnappAssociateRequest(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.executeAfterSetup != null) + message.executeAfterSetup = Boolean(object.executeAfterSetup); return message; }; /** - * Creates a plain object from a PAMConfigurationController message. Also converts values to other types if specified. + * Creates a plain object from a CnappAssociateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMConfigurationController + * @memberof PAM.CnappAssociateRequest * @static - * @param {PAM.PAMConfigurationController} message PAMConfigurationController + * @param {PAM.CnappAssociateRequest} message CnappAssociateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMConfigurationController.toObject = function toObject(message, options) { + CnappAssociateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { if (options.bytes === String) - object.configurationUid = ""; - else { - object.configurationUid = []; - if (options.bytes !== Array) - object.configurationUid = $util.newBuffer(object.configurationUid); - } - if (options.bytes === String) - object.controllerUid = ""; + object.recordUid = ""; else { - object.controllerUid = []; + object.recordUid = []; if (options.bytes !== Array) - object.controllerUid = $util.newBuffer(object.controllerUid); + object.recordUid = $util.newBuffer(object.recordUid); } + object.executeAfterSetup = false; } - if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) - object.configurationUid = options.bytes === String ? $util.base64.encode(message.configurationUid, 0, message.configurationUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.configurationUid) : message.configurationUid; - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) - object.controllerUid = options.bytes === String ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUid) : message.controllerUid; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.executeAfterSetup != null && message.hasOwnProperty("executeAfterSetup")) + object.executeAfterSetup = message.executeAfterSetup; return object; }; /** - * Converts this PAMConfigurationController to JSON. + * Converts this CnappAssociateRequest to JSON. * @function toJSON - * @memberof PAM.PAMConfigurationController + * @memberof PAM.CnappAssociateRequest * @instance * @returns {Object.} JSON object */ - PAMConfigurationController.prototype.toJSON = function toJSON() { + CnappAssociateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMConfigurationController + * Gets the default type url for CnappAssociateRequest * @function getTypeUrl - * @memberof PAM.PAMConfigurationController + * @memberof PAM.CnappAssociateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMConfigurationController.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CnappAssociateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMConfigurationController"; + return typeUrlPrefix + "/PAM.CnappAssociateRequest"; }; - return PAMConfigurationController; + return CnappAssociateRequest; })(); - PAM.ConfigurationAddRequest = (function() { + PAM.CnappAssociateResponse = (function() { /** - * Properties of a ConfigurationAddRequest. + * Properties of a CnappAssociateResponse. * @memberof PAM - * @interface IConfigurationAddRequest - * @property {Uint8Array|null} [configurationUid] ConfigurationAddRequest configurationUid - * @property {Uint8Array|null} [recordKey] ConfigurationAddRequest recordKey - * @property {Uint8Array|null} [data] ConfigurationAddRequest data - * @property {Array.|null} [recordLinks] ConfigurationAddRequest recordLinks - * @property {Records.IRecordAudit|null} [audit] ConfigurationAddRequest audit + * @interface ICnappAssociateResponse + * @property {string|null} [status] CnappAssociateResponse status + * @property {boolean|null} [remediationTriggered] CnappAssociateResponse remediationTriggered */ /** - * Constructs a new ConfigurationAddRequest. + * Constructs a new CnappAssociateResponse. * @memberof PAM - * @classdesc Represents a ConfigurationAddRequest. - * @implements IConfigurationAddRequest + * @classdesc Represents a CnappAssociateResponse. + * @implements ICnappAssociateResponse * @constructor - * @param {PAM.IConfigurationAddRequest=} [properties] Properties to set + * @param {PAM.ICnappAssociateResponse=} [properties] Properties to set */ - function ConfigurationAddRequest(properties) { - this.recordLinks = []; + function CnappAssociateResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -262980,134 +295638,89 @@ export const PAM = $root.PAM = (() => { } /** - * ConfigurationAddRequest configurationUid. - * @member {Uint8Array} configurationUid - * @memberof PAM.ConfigurationAddRequest - * @instance - */ - ConfigurationAddRequest.prototype.configurationUid = $util.newBuffer([]); - - /** - * ConfigurationAddRequest recordKey. - * @member {Uint8Array} recordKey - * @memberof PAM.ConfigurationAddRequest - * @instance - */ - ConfigurationAddRequest.prototype.recordKey = $util.newBuffer([]); - - /** - * ConfigurationAddRequest data. - * @member {Uint8Array} data - * @memberof PAM.ConfigurationAddRequest - * @instance - */ - ConfigurationAddRequest.prototype.data = $util.newBuffer([]); - - /** - * ConfigurationAddRequest recordLinks. - * @member {Array.} recordLinks - * @memberof PAM.ConfigurationAddRequest + * CnappAssociateResponse status. + * @member {string} status + * @memberof PAM.CnappAssociateResponse * @instance */ - ConfigurationAddRequest.prototype.recordLinks = $util.emptyArray; + CnappAssociateResponse.prototype.status = ""; /** - * ConfigurationAddRequest audit. - * @member {Records.IRecordAudit|null|undefined} audit - * @memberof PAM.ConfigurationAddRequest + * CnappAssociateResponse remediationTriggered. + * @member {boolean} remediationTriggered + * @memberof PAM.CnappAssociateResponse * @instance */ - ConfigurationAddRequest.prototype.audit = null; + CnappAssociateResponse.prototype.remediationTriggered = false; /** - * Creates a new ConfigurationAddRequest instance using the specified properties. + * Creates a new CnappAssociateResponse instance using the specified properties. * @function create - * @memberof PAM.ConfigurationAddRequest + * @memberof PAM.CnappAssociateResponse * @static - * @param {PAM.IConfigurationAddRequest=} [properties] Properties to set - * @returns {PAM.ConfigurationAddRequest} ConfigurationAddRequest instance + * @param {PAM.ICnappAssociateResponse=} [properties] Properties to set + * @returns {PAM.CnappAssociateResponse} CnappAssociateResponse instance */ - ConfigurationAddRequest.create = function create(properties) { - return new ConfigurationAddRequest(properties); + CnappAssociateResponse.create = function create(properties) { + return new CnappAssociateResponse(properties); }; /** - * Encodes the specified ConfigurationAddRequest message. Does not implicitly {@link PAM.ConfigurationAddRequest.verify|verify} messages. + * Encodes the specified CnappAssociateResponse message. Does not implicitly {@link PAM.CnappAssociateResponse.verify|verify} messages. * @function encode - * @memberof PAM.ConfigurationAddRequest + * @memberof PAM.CnappAssociateResponse * @static - * @param {PAM.IConfigurationAddRequest} message ConfigurationAddRequest message or plain object to encode + * @param {PAM.ICnappAssociateResponse} message CnappAssociateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConfigurationAddRequest.encode = function encode(message, writer) { + CnappAssociateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.configurationUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordKey); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); - if (message.recordLinks != null && message.recordLinks.length) - for (let i = 0; i < message.recordLinks.length; ++i) - $root.Records.RecordLink.encode(message.recordLinks[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) - $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.status); + if (message.remediationTriggered != null && Object.hasOwnProperty.call(message, "remediationTriggered")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.remediationTriggered); return writer; }; /** - * Encodes the specified ConfigurationAddRequest message, length delimited. Does not implicitly {@link PAM.ConfigurationAddRequest.verify|verify} messages. + * Encodes the specified CnappAssociateResponse message, length delimited. Does not implicitly {@link PAM.CnappAssociateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.ConfigurationAddRequest + * @memberof PAM.CnappAssociateResponse * @static - * @param {PAM.IConfigurationAddRequest} message ConfigurationAddRequest message or plain object to encode + * @param {PAM.ICnappAssociateResponse} message CnappAssociateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConfigurationAddRequest.encodeDelimited = function encodeDelimited(message, writer) { + CnappAssociateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConfigurationAddRequest message from the specified reader or buffer. + * Decodes a CnappAssociateResponse message from the specified reader or buffer. * @function decode - * @memberof PAM.ConfigurationAddRequest + * @memberof PAM.CnappAssociateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.ConfigurationAddRequest} ConfigurationAddRequest + * @returns {PAM.CnappAssociateResponse} CnappAssociateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConfigurationAddRequest.decode = function decode(reader, length) { + CnappAssociateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.ConfigurationAddRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappAssociateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.configurationUid = reader.bytes(); + message.status = reader.string(); break; } case 2: { - message.recordKey = reader.bytes(); - break; - } - case 3: { - message.data = reader.bytes(); - break; - } - case 4: { - if (!(message.recordLinks && message.recordLinks.length)) - message.recordLinks = []; - message.recordLinks.push($root.Records.RecordLink.decode(reader, reader.uint32())); - break; - } - case 5: { - message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); + message.remediationTriggered = reader.bool(); break; } default: @@ -263119,207 +295732,131 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a ConfigurationAddRequest message from the specified reader or buffer, length delimited. + * Decodes a CnappAssociateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.ConfigurationAddRequest + * @memberof PAM.CnappAssociateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.ConfigurationAddRequest} ConfigurationAddRequest + * @returns {PAM.CnappAssociateResponse} CnappAssociateResponse * @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) { + CnappAssociateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConfigurationAddRequest message. + * Verifies a CnappAssociateResponse message. * @function verify - * @memberof PAM.ConfigurationAddRequest + * @memberof PAM.CnappAssociateResponse * @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) { + CnappAssociateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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]); - if (error) - return "recordLinks." + error; - } - } - if (message.audit != null && message.hasOwnProperty("audit")) { - let error = $root.Records.RecordAudit.verify(message.audit); - if (error) - return "audit." + error; - } + if (message.status != null && message.hasOwnProperty("status")) + if (!$util.isString(message.status)) + return "status: string expected"; + if (message.remediationTriggered != null && message.hasOwnProperty("remediationTriggered")) + if (typeof message.remediationTriggered !== "boolean") + return "remediationTriggered: boolean expected"; return null; }; /** - * Creates a ConfigurationAddRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CnappAssociateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.ConfigurationAddRequest + * @memberof PAM.CnappAssociateResponse * @static * @param {Object.} object Plain object - * @returns {PAM.ConfigurationAddRequest} ConfigurationAddRequest + * @returns {PAM.CnappAssociateResponse} CnappAssociateResponse */ - ConfigurationAddRequest.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.ConfigurationAddRequest) + CnappAssociateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappAssociateResponse) return object; - let message = new $root.PAM.ConfigurationAddRequest(); - if (object.configurationUid != null) - if (typeof object.configurationUid === "string") - $util.base64.decode(object.configurationUid, message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid)), 0); - else if (object.configurationUid.length >= 0) - message.configurationUid = object.configurationUid; - if (object.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - if (object.recordLinks) { - if (!Array.isArray(object.recordLinks)) - throw TypeError(".PAM.ConfigurationAddRequest.recordLinks: array expected"); - message.recordLinks = []; - for (let i = 0; i < object.recordLinks.length; ++i) { - if (typeof object.recordLinks[i] !== "object") - throw TypeError(".PAM.ConfigurationAddRequest.recordLinks: object expected"); - message.recordLinks[i] = $root.Records.RecordLink.fromObject(object.recordLinks[i]); - } - } - if (object.audit != null) { - if (typeof object.audit !== "object") - throw TypeError(".PAM.ConfigurationAddRequest.audit: object expected"); - message.audit = $root.Records.RecordAudit.fromObject(object.audit); - } + let message = new $root.PAM.CnappAssociateResponse(); + if (object.status != null) + message.status = String(object.status); + if (object.remediationTriggered != null) + message.remediationTriggered = Boolean(object.remediationTriggered); return message; }; /** - * Creates a plain object from a ConfigurationAddRequest message. Also converts values to other types if specified. + * Creates a plain object from a CnappAssociateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.ConfigurationAddRequest + * @memberof PAM.CnappAssociateResponse * @static - * @param {PAM.ConfigurationAddRequest} message ConfigurationAddRequest + * @param {PAM.CnappAssociateResponse} message CnappAssociateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConfigurationAddRequest.toObject = function toObject(message, options) { + CnappAssociateResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.recordLinks = []; if (options.defaults) { - if (options.bytes === String) - object.configurationUid = ""; - else { - object.configurationUid = []; - if (options.bytes !== Array) - object.configurationUid = $util.newBuffer(object.configurationUid); - } - if (options.bytes === String) - object.recordKey = ""; - else { - object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); - } - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - object.audit = null; - } - if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) - object.configurationUid = options.bytes === String ? $util.base64.encode(message.configurationUid, 0, message.configurationUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.configurationUid) : message.configurationUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.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); + object.status = ""; + object.remediationTriggered = false; } - if (message.audit != null && message.hasOwnProperty("audit")) - object.audit = $root.Records.RecordAudit.toObject(message.audit, options); + if (message.status != null && message.hasOwnProperty("status")) + object.status = message.status; + if (message.remediationTriggered != null && message.hasOwnProperty("remediationTriggered")) + object.remediationTriggered = message.remediationTriggered; return object; }; /** - * Converts this ConfigurationAddRequest to JSON. + * Converts this CnappAssociateResponse to JSON. * @function toJSON - * @memberof PAM.ConfigurationAddRequest + * @memberof PAM.CnappAssociateResponse * @instance * @returns {Object.} JSON object */ - ConfigurationAddRequest.prototype.toJSON = function toJSON() { + CnappAssociateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ConfigurationAddRequest + * Gets the default type url for CnappAssociateResponse * @function getTypeUrl - * @memberof PAM.ConfigurationAddRequest + * @memberof PAM.CnappAssociateResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ConfigurationAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CnappAssociateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.ConfigurationAddRequest"; + return typeUrlPrefix + "/PAM.CnappAssociateResponse"; }; - return ConfigurationAddRequest; + return CnappAssociateResponse; })(); - PAM.RelayAccessCreds = (function() { + PAM.CnappResolveRequest = (function() { /** - * Properties of a RelayAccessCreds. + * Properties of a CnappResolveRequest. * @memberof PAM - * @interface IRelayAccessCreds - * @property {string|null} [username] RelayAccessCreds username - * @property {string|null} [password] RelayAccessCreds password - * @property {number|Long|null} [serverTime] RelayAccessCreds serverTime + * @interface ICnappResolveRequest + * @property {string|null} [resolutionNotes] CnappResolveRequest resolutionNotes */ /** - * Constructs a new RelayAccessCreds. + * Constructs a new CnappResolveRequest. * @memberof PAM - * @classdesc Represents a RelayAccessCreds. - * @implements IRelayAccessCreds + * @classdesc Represents a CnappResolveRequest. + * @implements ICnappResolveRequest * @constructor - * @param {PAM.IRelayAccessCreds=} [properties] Properties to set + * @param {PAM.ICnappResolveRequest=} [properties] Properties to set */ - function RelayAccessCreds(properties) { + function CnappResolveRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -263327,103 +295864,75 @@ export const PAM = $root.PAM = (() => { } /** - * RelayAccessCreds username. - * @member {string} username - * @memberof PAM.RelayAccessCreds - * @instance - */ - RelayAccessCreds.prototype.username = ""; - - /** - * RelayAccessCreds password. - * @member {string} password - * @memberof PAM.RelayAccessCreds - * @instance - */ - RelayAccessCreds.prototype.password = ""; - - /** - * RelayAccessCreds serverTime. - * @member {number|Long} serverTime - * @memberof PAM.RelayAccessCreds + * CnappResolveRequest resolutionNotes. + * @member {string} resolutionNotes + * @memberof PAM.CnappResolveRequest * @instance */ - RelayAccessCreds.prototype.serverTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CnappResolveRequest.prototype.resolutionNotes = ""; /** - * Creates a new RelayAccessCreds instance using the specified properties. + * Creates a new CnappResolveRequest instance using the specified properties. * @function create - * @memberof PAM.RelayAccessCreds + * @memberof PAM.CnappResolveRequest * @static - * @param {PAM.IRelayAccessCreds=} [properties] Properties to set - * @returns {PAM.RelayAccessCreds} RelayAccessCreds instance + * @param {PAM.ICnappResolveRequest=} [properties] Properties to set + * @returns {PAM.CnappResolveRequest} CnappResolveRequest instance */ - RelayAccessCreds.create = function create(properties) { - return new RelayAccessCreds(properties); + CnappResolveRequest.create = function create(properties) { + return new CnappResolveRequest(properties); }; /** - * Encodes the specified RelayAccessCreds message. Does not implicitly {@link PAM.RelayAccessCreds.verify|verify} messages. + * Encodes the specified CnappResolveRequest message. Does not implicitly {@link PAM.CnappResolveRequest.verify|verify} messages. * @function encode - * @memberof PAM.RelayAccessCreds + * @memberof PAM.CnappResolveRequest * @static - * @param {PAM.IRelayAccessCreds} message RelayAccessCreds message or plain object to encode + * @param {PAM.ICnappResolveRequest} message CnappResolveRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayAccessCreds.encode = function encode(message, writer) { + CnappResolveRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.password); - if (message.serverTime != null && Object.hasOwnProperty.call(message, "serverTime")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.serverTime); + if (message.resolutionNotes != null && Object.hasOwnProperty.call(message, "resolutionNotes")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.resolutionNotes); return writer; }; /** - * Encodes the specified RelayAccessCreds message, length delimited. Does not implicitly {@link PAM.RelayAccessCreds.verify|verify} messages. + * Encodes the specified CnappResolveRequest message, length delimited. Does not implicitly {@link PAM.CnappResolveRequest.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.RelayAccessCreds + * @memberof PAM.CnappResolveRequest * @static - * @param {PAM.IRelayAccessCreds} message RelayAccessCreds message or plain object to encode + * @param {PAM.ICnappResolveRequest} message CnappResolveRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayAccessCreds.encodeDelimited = function encodeDelimited(message, writer) { + CnappResolveRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RelayAccessCreds message from the specified reader or buffer. + * Decodes a CnappResolveRequest message from the specified reader or buffer. * @function decode - * @memberof PAM.RelayAccessCreds + * @memberof PAM.CnappResolveRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.RelayAccessCreds} RelayAccessCreds + * @returns {PAM.CnappResolveRequest} CnappResolveRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayAccessCreds.decode = function decode(reader, length) { + CnappResolveRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.RelayAccessCreds(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappResolveRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.username = reader.string(); - break; - } - case 2: { - message.password = reader.string(); - break; - } - case 3: { - message.serverTime = reader.int64(); + message.resolutionNotes = reader.string(); break; } default: @@ -263435,202 +295944,122 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a RelayAccessCreds message from the specified reader or buffer, length delimited. + * Decodes a CnappResolveRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.RelayAccessCreds + * @memberof PAM.CnappResolveRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.RelayAccessCreds} RelayAccessCreds + * @returns {PAM.CnappResolveRequest} CnappResolveRequest * @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) { + CnappResolveRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RelayAccessCreds message. + * Verifies a CnappResolveRequest message. * @function verify - * @memberof PAM.RelayAccessCreds + * @memberof PAM.CnappResolveRequest * @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) { + CnappResolveRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + if (message.resolutionNotes != null && message.hasOwnProperty("resolutionNotes")) + if (!$util.isString(message.resolutionNotes)) + return "resolutionNotes: string expected"; return null; }; /** - * Creates a RelayAccessCreds message from a plain object. Also converts values to their respective internal types. + * Creates a CnappResolveRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.RelayAccessCreds + * @memberof PAM.CnappResolveRequest * @static * @param {Object.} object Plain object - * @returns {PAM.RelayAccessCreds} RelayAccessCreds + * @returns {PAM.CnappResolveRequest} CnappResolveRequest */ - RelayAccessCreds.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.RelayAccessCreds) + CnappResolveRequest.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappResolveRequest) return object; - let message = new $root.PAM.RelayAccessCreds(); - if (object.username != null) - message.username = String(object.username); - if (object.password != null) - message.password = String(object.password); - if (object.serverTime != null) - if ($util.Long) - (message.serverTime = $util.Long.fromValue(object.serverTime)).unsigned = false; - else if (typeof object.serverTime === "string") - message.serverTime = parseInt(object.serverTime, 10); - else if (typeof object.serverTime === "number") - message.serverTime = object.serverTime; - else if (typeof object.serverTime === "object") - message.serverTime = new $util.LongBits(object.serverTime.low >>> 0, object.serverTime.high >>> 0).toNumber(); + let message = new $root.PAM.CnappResolveRequest(); + if (object.resolutionNotes != null) + message.resolutionNotes = String(object.resolutionNotes); return message; }; /** - * Creates a plain object from a RelayAccessCreds message. Also converts values to other types if specified. + * Creates a plain object from a CnappResolveRequest message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.RelayAccessCreds + * @memberof PAM.CnappResolveRequest * @static - * @param {PAM.RelayAccessCreds} message RelayAccessCreds + * @param {PAM.CnappResolveRequest} message CnappResolveRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RelayAccessCreds.toObject = function toObject(message, options) { + CnappResolveRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.username = ""; - object.password = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.serverTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serverTime = options.longs === String ? "0" : 0; - } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.password != null && message.hasOwnProperty("password")) - object.password = message.password; - if (message.serverTime != null && message.hasOwnProperty("serverTime")) - if (typeof message.serverTime === "number") - object.serverTime = options.longs === String ? String(message.serverTime) : message.serverTime; - else - object.serverTime = options.longs === String ? $util.Long.prototype.toString.call(message.serverTime) : options.longs === Number ? new $util.LongBits(message.serverTime.low >>> 0, message.serverTime.high >>> 0).toNumber() : message.serverTime; + if (options.defaults) + object.resolutionNotes = ""; + if (message.resolutionNotes != null && message.hasOwnProperty("resolutionNotes")) + object.resolutionNotes = message.resolutionNotes; return object; }; /** - * Converts this RelayAccessCreds to JSON. + * Converts this CnappResolveRequest to JSON. * @function toJSON - * @memberof PAM.RelayAccessCreds + * @memberof PAM.CnappResolveRequest * @instance * @returns {Object.} JSON object */ - RelayAccessCreds.prototype.toJSON = function toJSON() { + CnappResolveRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RelayAccessCreds + * Gets the default type url for CnappResolveRequest * @function getTypeUrl - * @memberof PAM.RelayAccessCreds + * @memberof PAM.CnappResolveRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RelayAccessCreds.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CnappResolveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.RelayAccessCreds"; + return typeUrlPrefix + "/PAM.CnappResolveRequest"; }; - return RelayAccessCreds; - })(); - - /** - * PAMRecordingType enum. - * @name PAM.PAMRecordingType - * @enum {number} - * @property {number} PRT_SESSION=0 PRT_SESSION value - * @property {number} PRT_TYPESCRIPT=1 PRT_TYPESCRIPT value - * @property {number} PRT_TIME=2 PRT_TIME value - * @property {number} PRT_SUMMARY=3 PRT_SUMMARY value - */ - PAM.PAMRecordingType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PRT_SESSION"] = 0; - values[valuesById[1] = "PRT_TYPESCRIPT"] = 1; - values[valuesById[2] = "PRT_TIME"] = 2; - values[valuesById[3] = "PRT_SUMMARY"] = 3; - return values; - })(); - - /** - * PAMRecordingRiskLevel enum. - * @name PAM.PAMRecordingRiskLevel - * @enum {number} - * @property {number} PRR_UNSPECIFIED=0 PRR_UNSPECIFIED value - * @property {number} PRR_LOW=1 PRR_LOW value - * @property {number} PRR_MEDIUM=2 PRR_MEDIUM value - * @property {number} PRR_HIGH=3 PRR_HIGH value - * @property {number} PRR_CRITICAL=4 PRR_CRITICAL value - */ - PAM.PAMRecordingRiskLevel = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PRR_UNSPECIFIED"] = 0; - values[valuesById[1] = "PRR_LOW"] = 1; - values[valuesById[2] = "PRR_MEDIUM"] = 2; - values[valuesById[3] = "PRR_HIGH"] = 3; - values[valuesById[4] = "PRR_CRITICAL"] = 4; - return values; + return CnappResolveRequest; })(); - PAM.PAMRecordingsRequest = (function() { + PAM.CnappRemediateRequest = (function() { /** - * Properties of a PAMRecordingsRequest. + * Properties of a CnappRemediateRequest. * @memberof PAM - * @interface IPAMRecordingsRequest - * @property {Uint8Array|null} [recordUid] PAMRecordingsRequest recordUid - * @property {number|null} [maxCount] PAMRecordingsRequest maxCount - * @property {number|Long|null} [rangeStart] PAMRecordingsRequest rangeStart - * @property {number|Long|null} [rangeEnd] PAMRecordingsRequest rangeEnd - * @property {Array.|null} [types] PAMRecordingsRequest types - * @property {Array.|null} [risks] PAMRecordingsRequest risks - * @property {Array.|null} [protocols] PAMRecordingsRequest protocols - * @property {Array.|null} [closeReasons] PAMRecordingsRequest closeReasons + * @interface ICnappRemediateRequest + * @property {string|null} [actionType] CnappRemediateRequest actionType */ /** - * Constructs a new PAMRecordingsRequest. + * Constructs a new CnappRemediateRequest. * @memberof PAM - * @classdesc Represents a PAMRecordingsRequest. - * @implements IPAMRecordingsRequest + * @classdesc Represents a CnappRemediateRequest. + * @implements ICnappRemediateRequest * @constructor - * @param {PAM.IPAMRecordingsRequest=} [properties] Properties to set + * @param {PAM.ICnappRemediateRequest=} [properties] Properties to set */ - function PAMRecordingsRequest(properties) { - this.types = []; - this.risks = []; - this.protocols = []; - this.closeReasons = []; + function CnappRemediateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -263638,234 +296067,323 @@ export const PAM = $root.PAM = (() => { } /** - * PAMRecordingsRequest recordUid. - * @member {Uint8Array} recordUid - * @memberof PAM.PAMRecordingsRequest + * CnappRemediateRequest actionType. + * @member {string} actionType + * @memberof PAM.CnappRemediateRequest * @instance */ - PAMRecordingsRequest.prototype.recordUid = $util.newBuffer([]); + CnappRemediateRequest.prototype.actionType = ""; /** - * PAMRecordingsRequest maxCount. - * @member {number} maxCount - * @memberof PAM.PAMRecordingsRequest - * @instance + * Creates a new CnappRemediateRequest instance using the specified properties. + * @function create + * @memberof PAM.CnappRemediateRequest + * @static + * @param {PAM.ICnappRemediateRequest=} [properties] Properties to set + * @returns {PAM.CnappRemediateRequest} CnappRemediateRequest instance */ - PAMRecordingsRequest.prototype.maxCount = 0; + CnappRemediateRequest.create = function create(properties) { + return new CnappRemediateRequest(properties); + }; /** - * PAMRecordingsRequest rangeStart. - * @member {number|Long|null|undefined} rangeStart - * @memberof PAM.PAMRecordingsRequest - * @instance + * Encodes the specified CnappRemediateRequest message. Does not implicitly {@link PAM.CnappRemediateRequest.verify|verify} messages. + * @function encode + * @memberof PAM.CnappRemediateRequest + * @static + * @param {PAM.ICnappRemediateRequest} message CnappRemediateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - PAMRecordingsRequest.prototype.rangeStart = null; + CnappRemediateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.actionType != null && Object.hasOwnProperty.call(message, "actionType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.actionType); + return writer; + }; /** - * PAMRecordingsRequest rangeEnd. - * @member {number|Long|null|undefined} rangeEnd - * @memberof PAM.PAMRecordingsRequest - * @instance + * Encodes the specified CnappRemediateRequest message, length delimited. Does not implicitly {@link PAM.CnappRemediateRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof PAM.CnappRemediateRequest + * @static + * @param {PAM.ICnappRemediateRequest} message CnappRemediateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - PAMRecordingsRequest.prototype.rangeEnd = null; + CnappRemediateRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * PAMRecordingsRequest types. - * @member {Array.} types - * @memberof PAM.PAMRecordingsRequest - * @instance + * Decodes a CnappRemediateRequest message from the specified reader or buffer. + * @function decode + * @memberof PAM.CnappRemediateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {PAM.CnappRemediateRequest} CnappRemediateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMRecordingsRequest.prototype.types = $util.emptyArray; + CnappRemediateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappRemediateRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.actionType = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * PAMRecordingsRequest risks. - * @member {Array.} risks - * @memberof PAM.PAMRecordingsRequest + * Decodes a CnappRemediateRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof PAM.CnappRemediateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {PAM.CnappRemediateRequest} CnappRemediateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CnappRemediateRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CnappRemediateRequest message. + * @function verify + * @memberof PAM.CnappRemediateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CnappRemediateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.actionType != null && message.hasOwnProperty("actionType")) + if (!$util.isString(message.actionType)) + return "actionType: string expected"; + return null; + }; + + /** + * Creates a CnappRemediateRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof PAM.CnappRemediateRequest + * @static + * @param {Object.} object Plain object + * @returns {PAM.CnappRemediateRequest} CnappRemediateRequest + */ + CnappRemediateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappRemediateRequest) + return object; + let message = new $root.PAM.CnappRemediateRequest(); + if (object.actionType != null) + message.actionType = String(object.actionType); + return message; + }; + + /** + * Creates a plain object from a CnappRemediateRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof PAM.CnappRemediateRequest + * @static + * @param {PAM.CnappRemediateRequest} message CnappRemediateRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CnappRemediateRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.actionType = ""; + if (message.actionType != null && message.hasOwnProperty("actionType")) + object.actionType = message.actionType; + return object; + }; + + /** + * Converts this CnappRemediateRequest to JSON. + * @function toJSON + * @memberof PAM.CnappRemediateRequest * @instance + * @returns {Object.} JSON object + */ + CnappRemediateRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CnappRemediateRequest + * @function getTypeUrl + * @memberof PAM.CnappRemediateRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CnappRemediateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/PAM.CnappRemediateRequest"; + }; + + return CnappRemediateRequest; + })(); + + PAM.CnappRemediateResponse = (function() { + + /** + * Properties of a CnappRemediateResponse. + * @memberof PAM + * @interface ICnappRemediateResponse + * @property {string|null} [status] CnappRemediateResponse status + * @property {string|null} [actionType] CnappRemediateResponse actionType + * @property {string|null} [result] CnappRemediateResponse result + * @property {number|Long|null} [executionTimeMs] CnappRemediateResponse executionTimeMs + */ + + /** + * Constructs a new CnappRemediateResponse. + * @memberof PAM + * @classdesc Represents a CnappRemediateResponse. + * @implements ICnappRemediateResponse + * @constructor + * @param {PAM.ICnappRemediateResponse=} [properties] Properties to set */ - PAMRecordingsRequest.prototype.risks = $util.emptyArray; + function CnappRemediateResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * PAMRecordingsRequest protocols. - * @member {Array.} protocols - * @memberof PAM.PAMRecordingsRequest + * CnappRemediateResponse status. + * @member {string} status + * @memberof PAM.CnappRemediateResponse * @instance */ - PAMRecordingsRequest.prototype.protocols = $util.emptyArray; + CnappRemediateResponse.prototype.status = ""; /** - * PAMRecordingsRequest closeReasons. - * @member {Array.} closeReasons - * @memberof PAM.PAMRecordingsRequest + * CnappRemediateResponse actionType. + * @member {string} actionType + * @memberof PAM.CnappRemediateResponse * @instance */ - PAMRecordingsRequest.prototype.closeReasons = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; + CnappRemediateResponse.prototype.actionType = ""; /** - * PAMRecordingsRequest _rangeStart. - * @member {"rangeStart"|undefined} _rangeStart - * @memberof PAM.PAMRecordingsRequest + * CnappRemediateResponse result. + * @member {string} result + * @memberof PAM.CnappRemediateResponse * @instance */ - Object.defineProperty(PAMRecordingsRequest.prototype, "_rangeStart", { - get: $util.oneOfGetter($oneOfFields = ["rangeStart"]), - set: $util.oneOfSetter($oneOfFields) - }); + CnappRemediateResponse.prototype.result = ""; /** - * PAMRecordingsRequest _rangeEnd. - * @member {"rangeEnd"|undefined} _rangeEnd - * @memberof PAM.PAMRecordingsRequest + * CnappRemediateResponse executionTimeMs. + * @member {number|Long} executionTimeMs + * @memberof PAM.CnappRemediateResponse * @instance */ - Object.defineProperty(PAMRecordingsRequest.prototype, "_rangeEnd", { - get: $util.oneOfGetter($oneOfFields = ["rangeEnd"]), - set: $util.oneOfSetter($oneOfFields) - }); + CnappRemediateResponse.prototype.executionTimeMs = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new PAMRecordingsRequest instance using the specified properties. + * Creates a new CnappRemediateResponse instance using the specified properties. * @function create - * @memberof PAM.PAMRecordingsRequest + * @memberof PAM.CnappRemediateResponse * @static - * @param {PAM.IPAMRecordingsRequest=} [properties] Properties to set - * @returns {PAM.PAMRecordingsRequest} PAMRecordingsRequest instance + * @param {PAM.ICnappRemediateResponse=} [properties] Properties to set + * @returns {PAM.CnappRemediateResponse} CnappRemediateResponse instance */ - PAMRecordingsRequest.create = function create(properties) { - return new PAMRecordingsRequest(properties); + CnappRemediateResponse.create = function create(properties) { + return new CnappRemediateResponse(properties); }; /** - * Encodes the specified PAMRecordingsRequest message. Does not implicitly {@link PAM.PAMRecordingsRequest.verify|verify} messages. + * Encodes the specified CnappRemediateResponse message. Does not implicitly {@link PAM.CnappRemediateResponse.verify|verify} messages. * @function encode - * @memberof PAM.PAMRecordingsRequest + * @memberof PAM.CnappRemediateResponse * @static - * @param {PAM.IPAMRecordingsRequest} message PAMRecordingsRequest message or plain object to encode + * @param {PAM.ICnappRemediateResponse} message CnappRemediateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRecordingsRequest.encode = function encode(message, writer) { + CnappRemediateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.maxCount != null && Object.hasOwnProperty.call(message, "maxCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxCount); - if (message.rangeStart != null && Object.hasOwnProperty.call(message, "rangeStart")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.rangeStart); - if (message.rangeEnd != null && Object.hasOwnProperty.call(message, "rangeEnd")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.rangeEnd); - if (message.types != null && message.types.length) { - writer.uint32(/* id 5, wireType 2 =*/42).fork(); - for (let i = 0; i < message.types.length; ++i) - writer.int32(message.types[i]); - writer.ldelim(); - } - if (message.risks != null && message.risks.length) { - writer.uint32(/* id 6, wireType 2 =*/50).fork(); - for (let i = 0; i < message.risks.length; ++i) - writer.int32(message.risks[i]); - writer.ldelim(); - } - if (message.protocols != null && message.protocols.length) - for (let i = 0; i < message.protocols.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.protocols[i]); - if (message.closeReasons != null && message.closeReasons.length) { - writer.uint32(/* id 8, wireType 2 =*/66).fork(); - for (let i = 0; i < message.closeReasons.length; ++i) - writer.int32(message.closeReasons[i]); - writer.ldelim(); - } + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.status); + if (message.actionType != null && Object.hasOwnProperty.call(message, "actionType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.actionType); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.result); + if (message.executionTimeMs != null && Object.hasOwnProperty.call(message, "executionTimeMs")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.executionTimeMs); return writer; }; /** - * Encodes the specified PAMRecordingsRequest message, length delimited. Does not implicitly {@link PAM.PAMRecordingsRequest.verify|verify} messages. + * Encodes the specified CnappRemediateResponse message, length delimited. Does not implicitly {@link PAM.CnappRemediateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMRecordingsRequest + * @memberof PAM.CnappRemediateResponse * @static - * @param {PAM.IPAMRecordingsRequest} message PAMRecordingsRequest message or plain object to encode + * @param {PAM.ICnappRemediateResponse} message CnappRemediateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRecordingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CnappRemediateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMRecordingsRequest message from the specified reader or buffer. + * Decodes a CnappRemediateResponse message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMRecordingsRequest + * @memberof PAM.CnappRemediateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMRecordingsRequest} PAMRecordingsRequest + * @returns {PAM.CnappRemediateResponse} CnappRemediateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMRecordingsRequest.decode = function decode(reader, length) { + CnappRemediateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRecordingsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappRemediateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + message.status = reader.string(); break; } case 2: { - message.maxCount = reader.int32(); + message.actionType = reader.string(); break; } case 3: { - message.rangeStart = reader.int64(); + message.result = reader.string(); break; } case 4: { - message.rangeEnd = reader.int64(); - break; - } - case 5: { - if (!(message.types && message.types.length)) - message.types = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.types.push(reader.int32()); - } else - message.types.push(reader.int32()); - break; - } - case 6: { - if (!(message.risks && message.risks.length)) - message.risks = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.risks.push(reader.int32()); - } else - message.risks.push(reader.int32()); - break; - } - case 7: { - if (!(message.protocols && message.protocols.length)) - message.protocols = []; - message.protocols.push(reader.string()); - break; - } - case 8: { - if (!(message.closeReasons && message.closeReasons.length)) - message.closeReasons = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.closeReasons.push(reader.int32()); - } else - message.closeReasons.push(reader.int32()); + message.executionTimeMs = reader.int64(); break; } default: @@ -263877,342 +296395,161 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMRecordingsRequest message from the specified reader or buffer, length delimited. + * Decodes a CnappRemediateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMRecordingsRequest + * @memberof PAM.CnappRemediateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMRecordingsRequest} PAMRecordingsRequest + * @returns {PAM.CnappRemediateResponse} CnappRemediateResponse * @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) { + CnappRemediateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMRecordingsRequest message. + * Verifies a CnappRemediateResponse message. * @function verify - * @memberof PAM.PAMRecordingsRequest + * @memberof PAM.CnappRemediateResponse * @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) { + CnappRemediateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; - } + if (message.status != null && message.hasOwnProperty("status")) + if (!$util.isString(message.status)) + return "status: string expected"; + if (message.actionType != null && message.hasOwnProperty("actionType")) + if (!$util.isString(message.actionType)) + return "actionType: string expected"; + if (message.result != null && message.hasOwnProperty("result")) + if (!$util.isString(message.result)) + return "result: string expected"; + if (message.executionTimeMs != null && message.hasOwnProperty("executionTimeMs")) + if (!$util.isInteger(message.executionTimeMs) && !(message.executionTimeMs && $util.isInteger(message.executionTimeMs.low) && $util.isInteger(message.executionTimeMs.high))) + return "executionTimeMs: integer|Long expected"; return null; }; /** - * Creates a PAMRecordingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CnappRemediateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMRecordingsRequest + * @memberof PAM.CnappRemediateResponse * @static * @param {Object.} object Plain object - * @returns {PAM.PAMRecordingsRequest} PAMRecordingsRequest + * @returns {PAM.CnappRemediateResponse} CnappRemediateResponse */ - PAMRecordingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMRecordingsRequest) + CnappRemediateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappRemediateResponse) return object; - let message = new $root.PAM.PAMRecordingsRequest(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.maxCount != null) - message.maxCount = object.maxCount | 0; - if (object.rangeStart != null) - if ($util.Long) - (message.rangeStart = $util.Long.fromValue(object.rangeStart)).unsigned = false; - else if (typeof object.rangeStart === "string") - message.rangeStart = parseInt(object.rangeStart, 10); - else if (typeof object.rangeStart === "number") - message.rangeStart = object.rangeStart; - else if (typeof object.rangeStart === "object") - message.rangeStart = new $util.LongBits(object.rangeStart.low >>> 0, object.rangeStart.high >>> 0).toNumber(); - if (object.rangeEnd != null) + let message = new $root.PAM.CnappRemediateResponse(); + if (object.status != null) + message.status = String(object.status); + if (object.actionType != null) + message.actionType = String(object.actionType); + if (object.result != null) + message.result = String(object.result); + if (object.executionTimeMs != null) if ($util.Long) - (message.rangeEnd = $util.Long.fromValue(object.rangeEnd)).unsigned = false; - else if (typeof object.rangeEnd === "string") - message.rangeEnd = parseInt(object.rangeEnd, 10); - else if (typeof object.rangeEnd === "number") - message.rangeEnd = object.rangeEnd; - else if (typeof object.rangeEnd === "object") - message.rangeEnd = new $util.LongBits(object.rangeEnd.low >>> 0, object.rangeEnd.high >>> 0).toNumber(); - if (object.types) { - if (!Array.isArray(object.types)) - throw TypeError(".PAM.PAMRecordingsRequest.types: array expected"); - message.types = []; - for (let i = 0; i < object.types.length; ++i) - switch (object.types[i]) { - default: - if (typeof object.types[i] === "number") { - message.types[i] = object.types[i]; - break; - } - case "PRT_SESSION": - case 0: - message.types[i] = 0; - break; - case "PRT_TYPESCRIPT": - case 1: - message.types[i] = 1; - break; - case "PRT_TIME": - case 2: - message.types[i] = 2; - break; - case "PRT_SUMMARY": - case 3: - message.types[i] = 3; - break; - } - } - if (object.risks) { - if (!Array.isArray(object.risks)) - throw TypeError(".PAM.PAMRecordingsRequest.risks: array expected"); - message.risks = []; - for (let i = 0; i < object.risks.length; ++i) - switch (object.risks[i]) { - default: - if (typeof object.risks[i] === "number") { - message.risks[i] = object.risks[i]; - break; - } - case "PRR_UNSPECIFIED": - case 0: - message.risks[i] = 0; - break; - case "PRR_LOW": - case 1: - message.risks[i] = 1; - break; - case "PRR_MEDIUM": - case 2: - message.risks[i] = 2; - break; - case "PRR_HIGH": - case 3: - message.risks[i] = 3; - break; - case "PRR_CRITICAL": - case 4: - message.risks[i] = 4; - break; - } - } - if (object.protocols) { - if (!Array.isArray(object.protocols)) - throw TypeError(".PAM.PAMRecordingsRequest.protocols: array expected"); - message.protocols = []; - for (let i = 0; i < object.protocols.length; ++i) - message.protocols[i] = String(object.protocols[i]); - } - if (object.closeReasons) { - if (!Array.isArray(object.closeReasons)) - throw TypeError(".PAM.PAMRecordingsRequest.closeReasons: array expected"); - message.closeReasons = []; - for (let i = 0; i < object.closeReasons.length; ++i) - message.closeReasons[i] = object.closeReasons[i] | 0; - } + (message.executionTimeMs = $util.Long.fromValue(object.executionTimeMs)).unsigned = false; + else if (typeof object.executionTimeMs === "string") + message.executionTimeMs = parseInt(object.executionTimeMs, 10); + else if (typeof object.executionTimeMs === "number") + message.executionTimeMs = object.executionTimeMs; + else if (typeof object.executionTimeMs === "object") + message.executionTimeMs = new $util.LongBits(object.executionTimeMs.low >>> 0, object.executionTimeMs.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a PAMRecordingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CnappRemediateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMRecordingsRequest + * @memberof PAM.CnappRemediateResponse * @static - * @param {PAM.PAMRecordingsRequest} message PAMRecordingsRequest + * @param {PAM.CnappRemediateResponse} message CnappRemediateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMRecordingsRequest.toObject = function toObject(message, options) { + CnappRemediateResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.types = []; - object.risks = []; - object.protocols = []; - object.closeReasons = []; - } if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - object.maxCount = 0; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.maxCount != null && message.hasOwnProperty("maxCount")) - object.maxCount = message.maxCount; - if (message.rangeStart != null && message.hasOwnProperty("rangeStart")) { - if (typeof message.rangeStart === "number") - object.rangeStart = options.longs === String ? String(message.rangeStart) : message.rangeStart; - else - object.rangeStart = options.longs === String ? $util.Long.prototype.toString.call(message.rangeStart) : options.longs === Number ? new $util.LongBits(message.rangeStart.low >>> 0, message.rangeStart.high >>> 0).toNumber() : message.rangeStart; - if (options.oneofs) - object._rangeStart = "rangeStart"; + object.status = ""; + object.actionType = ""; + object.result = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.executionTimeMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.executionTimeMs = options.longs === String ? "0" : 0; } - if (message.rangeEnd != null && message.hasOwnProperty("rangeEnd")) { - if (typeof message.rangeEnd === "number") - object.rangeEnd = options.longs === String ? String(message.rangeEnd) : message.rangeEnd; + if (message.status != null && message.hasOwnProperty("status")) + object.status = message.status; + if (message.actionType != null && message.hasOwnProperty("actionType")) + object.actionType = message.actionType; + if (message.result != null && message.hasOwnProperty("result")) + object.result = message.result; + if (message.executionTimeMs != null && message.hasOwnProperty("executionTimeMs")) + if (typeof message.executionTimeMs === "number") + object.executionTimeMs = options.longs === String ? String(message.executionTimeMs) : message.executionTimeMs; else - object.rangeEnd = options.longs === String ? $util.Long.prototype.toString.call(message.rangeEnd) : options.longs === Number ? new $util.LongBits(message.rangeEnd.low >>> 0, message.rangeEnd.high >>> 0).toNumber() : message.rangeEnd; - if (options.oneofs) - object._rangeEnd = "rangeEnd"; - } - if (message.types && message.types.length) { - object.types = []; - for (let j = 0; j < message.types.length; ++j) - object.types[j] = options.enums === String ? $root.PAM.PAMRecordingType[message.types[j]] === undefined ? message.types[j] : $root.PAM.PAMRecordingType[message.types[j]] : message.types[j]; - } - if (message.risks && message.risks.length) { - object.risks = []; - for (let j = 0; j < message.risks.length; ++j) - object.risks[j] = options.enums === String ? $root.PAM.PAMRecordingRiskLevel[message.risks[j]] === undefined ? message.risks[j] : $root.PAM.PAMRecordingRiskLevel[message.risks[j]] : message.risks[j]; - } - if (message.protocols && message.protocols.length) { - object.protocols = []; - for (let j = 0; j < message.protocols.length; ++j) - object.protocols[j] = message.protocols[j]; - } - if (message.closeReasons && message.closeReasons.length) { - object.closeReasons = []; - for (let j = 0; j < message.closeReasons.length; ++j) - object.closeReasons[j] = message.closeReasons[j]; - } + object.executionTimeMs = options.longs === String ? $util.Long.prototype.toString.call(message.executionTimeMs) : options.longs === Number ? new $util.LongBits(message.executionTimeMs.low >>> 0, message.executionTimeMs.high >>> 0).toNumber() : message.executionTimeMs; return object; }; /** - * Converts this PAMRecordingsRequest to JSON. + * Converts this CnappRemediateResponse to JSON. * @function toJSON - * @memberof PAM.PAMRecordingsRequest + * @memberof PAM.CnappRemediateResponse * @instance * @returns {Object.} JSON object */ - PAMRecordingsRequest.prototype.toJSON = function toJSON() { + CnappRemediateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMRecordingsRequest + * Gets the default type url for CnappRemediateResponse * @function getTypeUrl - * @memberof PAM.PAMRecordingsRequest + * @memberof PAM.CnappRemediateResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMRecordingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CnappRemediateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMRecordingsRequest"; + return typeUrlPrefix + "/PAM.CnappRemediateResponse"; }; - return PAMRecordingsRequest; + return CnappRemediateResponse; })(); - PAM.PAMRecording = (function() { + PAM.CnappIgnoreRequest = (function() { /** - * Properties of a PAMRecording. + * Properties of a CnappIgnoreRequest. * @memberof PAM - * @interface IPAMRecording - * @property {Uint8Array|null} [connectionUid] PAMRecording connectionUid - * @property {PAM.PAMRecordingType|null} [recordingType] PAMRecording recordingType - * @property {Uint8Array|null} [recordUid] PAMRecording recordUid - * @property {string|null} [userName] PAMRecording userName - * @property {number|Long|null} [startedOn] PAMRecording startedOn - * @property {number|null} [length] PAMRecording length - * @property {number|Long|null} [fileSize] PAMRecording fileSize - * @property {number|Long|null} [createdOn] PAMRecording createdOn - * @property {string|null} [protocol] PAMRecording protocol - * @property {number|null} [closeReason] PAMRecording closeReason - * @property {number|null} [recordingDuration] PAMRecording recordingDuration - * @property {PAM.PAMRecordingRiskLevel|null} [aiOverallRiskLevel] PAMRecording aiOverallRiskLevel - * @property {Uint8Array|null} [aiOverallSummary] PAMRecording aiOverallSummary + * @interface ICnappIgnoreRequest + * @property {string|null} [reason] CnappIgnoreRequest reason */ /** - * Constructs a new PAMRecording. + * Constructs a new CnappIgnoreRequest. * @memberof PAM - * @classdesc Represents a PAMRecording. - * @implements IPAMRecording + * @classdesc Represents a CnappIgnoreRequest. + * @implements ICnappIgnoreRequest * @constructor - * @param {PAM.IPAMRecording=} [properties] Properties to set + * @param {PAM.ICnappIgnoreRequest=} [properties] Properties to set */ - function PAMRecording(properties) { + function CnappIgnoreRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -264220,243 +296557,338 @@ export const PAM = $root.PAM = (() => { } /** - * PAMRecording connectionUid. - * @member {Uint8Array} connectionUid - * @memberof PAM.PAMRecording + * CnappIgnoreRequest reason. + * @member {string} reason + * @memberof PAM.CnappIgnoreRequest * @instance */ - PAMRecording.prototype.connectionUid = $util.newBuffer([]); + CnappIgnoreRequest.prototype.reason = ""; /** - * PAMRecording recordingType. - * @member {PAM.PAMRecordingType} recordingType - * @memberof PAM.PAMRecording - * @instance + * Creates a new CnappIgnoreRequest instance using the specified properties. + * @function create + * @memberof PAM.CnappIgnoreRequest + * @static + * @param {PAM.ICnappIgnoreRequest=} [properties] Properties to set + * @returns {PAM.CnappIgnoreRequest} CnappIgnoreRequest instance */ - PAMRecording.prototype.recordingType = 0; + CnappIgnoreRequest.create = function create(properties) { + return new CnappIgnoreRequest(properties); + }; /** - * PAMRecording recordUid. - * @member {Uint8Array} recordUid - * @memberof PAM.PAMRecording - * @instance + * Encodes the specified CnappIgnoreRequest message. Does not implicitly {@link PAM.CnappIgnoreRequest.verify|verify} messages. + * @function encode + * @memberof PAM.CnappIgnoreRequest + * @static + * @param {PAM.ICnappIgnoreRequest} message CnappIgnoreRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - PAMRecording.prototype.recordUid = $util.newBuffer([]); + CnappIgnoreRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.reason); + return writer; + }; /** - * PAMRecording userName. - * @member {string} userName - * @memberof PAM.PAMRecording - * @instance + * Encodes the specified CnappIgnoreRequest message, length delimited. Does not implicitly {@link PAM.CnappIgnoreRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof PAM.CnappIgnoreRequest + * @static + * @param {PAM.ICnappIgnoreRequest} message CnappIgnoreRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - PAMRecording.prototype.userName = ""; + CnappIgnoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * PAMRecording startedOn. - * @member {number|Long} startedOn - * @memberof PAM.PAMRecording - * @instance + * Decodes a CnappIgnoreRequest message from the specified reader or buffer. + * @function decode + * @memberof PAM.CnappIgnoreRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {PAM.CnappIgnoreRequest} CnappIgnoreRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMRecording.prototype.startedOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CnappIgnoreRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappIgnoreRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.reason = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * PAMRecording length. - * @member {number} length - * @memberof PAM.PAMRecording - * @instance + * Decodes a CnappIgnoreRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof PAM.CnappIgnoreRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {PAM.CnappIgnoreRequest} CnappIgnoreRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMRecording.prototype.length = 0; + CnappIgnoreRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * PAMRecording fileSize. - * @member {number|Long} fileSize - * @memberof PAM.PAMRecording - * @instance + * Verifies a CnappIgnoreRequest message. + * @function verify + * @memberof PAM.CnappIgnoreRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMRecording.prototype.fileSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CnappIgnoreRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.reason != null && message.hasOwnProperty("reason")) + if (!$util.isString(message.reason)) + return "reason: string expected"; + return null; + }; /** - * PAMRecording createdOn. - * @member {number|Long} createdOn - * @memberof PAM.PAMRecording + * Creates a CnappIgnoreRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof PAM.CnappIgnoreRequest + * @static + * @param {Object.} object Plain object + * @returns {PAM.CnappIgnoreRequest} CnappIgnoreRequest + */ + CnappIgnoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappIgnoreRequest) + return object; + let message = new $root.PAM.CnappIgnoreRequest(); + if (object.reason != null) + message.reason = String(object.reason); + return message; + }; + + /** + * Creates a plain object from a CnappIgnoreRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof PAM.CnappIgnoreRequest + * @static + * @param {PAM.CnappIgnoreRequest} message CnappIgnoreRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CnappIgnoreRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.reason = ""; + if (message.reason != null && message.hasOwnProperty("reason")) + object.reason = message.reason; + return object; + }; + + /** + * Converts this CnappIgnoreRequest to JSON. + * @function toJSON + * @memberof PAM.CnappIgnoreRequest * @instance + * @returns {Object.} JSON object */ - PAMRecording.prototype.createdOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CnappIgnoreRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * PAMRecording protocol. - * @member {string} protocol - * @memberof PAM.PAMRecording + * Gets the default type url for CnappIgnoreRequest + * @function getTypeUrl + * @memberof PAM.CnappIgnoreRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CnappIgnoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/PAM.CnappIgnoreRequest"; + }; + + return CnappIgnoreRequest; + })(); + + PAM.CnappDefaultBehaviorRequest = (function() { + + /** + * Properties of a CnappDefaultBehaviorRequest. + * @memberof PAM + * @interface ICnappDefaultBehaviorRequest + * @property {Uint8Array|null} [networkId] CnappDefaultBehaviorRequest networkId + * @property {number|null} [cnappProviderId] CnappDefaultBehaviorRequest cnappProviderId + * @property {string|null} [controlKey] CnappDefaultBehaviorRequest controlKey + * @property {number|null} [cnappActionTypeId] CnappDefaultBehaviorRequest cnappActionTypeId + * @property {boolean|null} [autoExecute] CnappDefaultBehaviorRequest autoExecute + */ + + /** + * Constructs a new CnappDefaultBehaviorRequest. + * @memberof PAM + * @classdesc Represents a CnappDefaultBehaviorRequest. + * @implements ICnappDefaultBehaviorRequest + * @constructor + * @param {PAM.ICnappDefaultBehaviorRequest=} [properties] Properties to set + */ + function CnappDefaultBehaviorRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CnappDefaultBehaviorRequest networkId. + * @member {Uint8Array} networkId + * @memberof PAM.CnappDefaultBehaviorRequest * @instance */ - PAMRecording.prototype.protocol = ""; + CnappDefaultBehaviorRequest.prototype.networkId = $util.newBuffer([]); /** - * PAMRecording closeReason. - * @member {number} closeReason - * @memberof PAM.PAMRecording + * CnappDefaultBehaviorRequest cnappProviderId. + * @member {number} cnappProviderId + * @memberof PAM.CnappDefaultBehaviorRequest * @instance */ - PAMRecording.prototype.closeReason = 0; + CnappDefaultBehaviorRequest.prototype.cnappProviderId = 0; /** - * PAMRecording recordingDuration. - * @member {number} recordingDuration - * @memberof PAM.PAMRecording + * CnappDefaultBehaviorRequest controlKey. + * @member {string} controlKey + * @memberof PAM.CnappDefaultBehaviorRequest * @instance */ - PAMRecording.prototype.recordingDuration = 0; + CnappDefaultBehaviorRequest.prototype.controlKey = ""; /** - * PAMRecording aiOverallRiskLevel. - * @member {PAM.PAMRecordingRiskLevel} aiOverallRiskLevel - * @memberof PAM.PAMRecording + * CnappDefaultBehaviorRequest cnappActionTypeId. + * @member {number} cnappActionTypeId + * @memberof PAM.CnappDefaultBehaviorRequest * @instance */ - PAMRecording.prototype.aiOverallRiskLevel = 0; + CnappDefaultBehaviorRequest.prototype.cnappActionTypeId = 0; /** - * PAMRecording aiOverallSummary. - * @member {Uint8Array} aiOverallSummary - * @memberof PAM.PAMRecording + * CnappDefaultBehaviorRequest autoExecute. + * @member {boolean} autoExecute + * @memberof PAM.CnappDefaultBehaviorRequest * @instance */ - PAMRecording.prototype.aiOverallSummary = $util.newBuffer([]); + CnappDefaultBehaviorRequest.prototype.autoExecute = false; /** - * Creates a new PAMRecording instance using the specified properties. + * Creates a new CnappDefaultBehaviorRequest instance using the specified properties. * @function create - * @memberof PAM.PAMRecording + * @memberof PAM.CnappDefaultBehaviorRequest * @static - * @param {PAM.IPAMRecording=} [properties] Properties to set - * @returns {PAM.PAMRecording} PAMRecording instance + * @param {PAM.ICnappDefaultBehaviorRequest=} [properties] Properties to set + * @returns {PAM.CnappDefaultBehaviorRequest} CnappDefaultBehaviorRequest instance */ - PAMRecording.create = function create(properties) { - return new PAMRecording(properties); + CnappDefaultBehaviorRequest.create = function create(properties) { + return new CnappDefaultBehaviorRequest(properties); }; /** - * Encodes the specified PAMRecording message. Does not implicitly {@link PAM.PAMRecording.verify|verify} messages. + * Encodes the specified CnappDefaultBehaviorRequest message. Does not implicitly {@link PAM.CnappDefaultBehaviorRequest.verify|verify} messages. * @function encode - * @memberof PAM.PAMRecording + * @memberof PAM.CnappDefaultBehaviorRequest * @static - * @param {PAM.IPAMRecording} message PAMRecording message or plain object to encode + * @param {PAM.ICnappDefaultBehaviorRequest} message CnappDefaultBehaviorRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRecording.encode = function encode(message, writer) { + CnappDefaultBehaviorRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connectionUid != null && Object.hasOwnProperty.call(message, "connectionUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.connectionUid); - if (message.recordingType != null && Object.hasOwnProperty.call(message, "recordingType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.recordingType); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordUid); - if (message.userName != null && Object.hasOwnProperty.call(message, "userName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.userName); - if (message.startedOn != null && Object.hasOwnProperty.call(message, "startedOn")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.startedOn); - if (message.length != null && Object.hasOwnProperty.call(message, "length")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.length); - if (message.fileSize != null && Object.hasOwnProperty.call(message, "fileSize")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.fileSize); - if (message.createdOn != null && Object.hasOwnProperty.call(message, "createdOn")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.createdOn); - if (message.protocol != null && Object.hasOwnProperty.call(message, "protocol")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.protocol); - if (message.closeReason != null && Object.hasOwnProperty.call(message, "closeReason")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.closeReason); - if (message.recordingDuration != null && Object.hasOwnProperty.call(message, "recordingDuration")) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.recordingDuration); - if (message.aiOverallRiskLevel != null && Object.hasOwnProperty.call(message, "aiOverallRiskLevel")) - writer.uint32(/* id 12, wireType 0 =*/96).int32(message.aiOverallRiskLevel); - if (message.aiOverallSummary != null && Object.hasOwnProperty.call(message, "aiOverallSummary")) - writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.aiOverallSummary); + if (message.networkId != null && Object.hasOwnProperty.call(message, "networkId")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.networkId); + if (message.cnappProviderId != null && Object.hasOwnProperty.call(message, "cnappProviderId")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.cnappProviderId); + if (message.controlKey != null && Object.hasOwnProperty.call(message, "controlKey")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.controlKey); + if (message.cnappActionTypeId != null && Object.hasOwnProperty.call(message, "cnappActionTypeId")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.cnappActionTypeId); + if (message.autoExecute != null && Object.hasOwnProperty.call(message, "autoExecute")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.autoExecute); return writer; }; /** - * Encodes the specified PAMRecording message, length delimited. Does not implicitly {@link PAM.PAMRecording.verify|verify} messages. + * Encodes the specified CnappDefaultBehaviorRequest message, length delimited. Does not implicitly {@link PAM.CnappDefaultBehaviorRequest.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMRecording + * @memberof PAM.CnappDefaultBehaviorRequest * @static - * @param {PAM.IPAMRecording} message PAMRecording message or plain object to encode + * @param {PAM.ICnappDefaultBehaviorRequest} message CnappDefaultBehaviorRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRecording.encodeDelimited = function encodeDelimited(message, writer) { + CnappDefaultBehaviorRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMRecording message from the specified reader or buffer. + * Decodes a CnappDefaultBehaviorRequest message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMRecording + * @memberof PAM.CnappDefaultBehaviorRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMRecording} PAMRecording + * @returns {PAM.CnappDefaultBehaviorRequest} CnappDefaultBehaviorRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMRecording.decode = function decode(reader, length) { + CnappDefaultBehaviorRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRecording(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappDefaultBehaviorRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.connectionUid = reader.bytes(); + message.networkId = reader.bytes(); break; } case 2: { - message.recordingType = reader.int32(); + message.cnappProviderId = reader.int32(); break; } case 3: { - message.recordUid = reader.bytes(); + message.controlKey = reader.string(); break; } case 4: { - message.userName = reader.string(); + message.cnappActionTypeId = reader.int32(); break; } case 5: { - message.startedOn = reader.int64(); - break; - } - case 6: { - message.length = reader.int32(); - break; - } - case 7: { - message.fileSize = reader.int64(); - break; - } - case 8: { - message.createdOn = reader.int64(); - break; - } - case 9: { - message.protocol = reader.string(); - break; - } - case 10: { - message.closeReason = reader.int32(); - break; - } - case 11: { - message.recordingDuration = reader.int32(); - break; - } - case 12: { - message.aiOverallRiskLevel = reader.int32(); - break; - } - case 13: { - message.aiOverallSummary = reader.bytes(); + message.autoExecute = reader.bool(); break; } default: @@ -264468,353 +296900,164 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMRecording message from the specified reader or buffer, length delimited. + * Decodes a CnappDefaultBehaviorRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMRecording + * @memberof PAM.CnappDefaultBehaviorRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMRecording} PAMRecording + * @returns {PAM.CnappDefaultBehaviorRequest} CnappDefaultBehaviorRequest * @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) { + CnappDefaultBehaviorRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMRecording message. + * Verifies a CnappDefaultBehaviorRequest message. * @function verify - * @memberof PAM.PAMRecording + * @memberof PAM.CnappDefaultBehaviorRequest * @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) { + CnappDefaultBehaviorRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + if (message.networkId != null && message.hasOwnProperty("networkId")) + if (!(message.networkId && typeof message.networkId.length === "number" || $util.isString(message.networkId))) + return "networkId: buffer expected"; + if (message.cnappProviderId != null && message.hasOwnProperty("cnappProviderId")) + if (!$util.isInteger(message.cnappProviderId)) + return "cnappProviderId: integer expected"; + if (message.controlKey != null && message.hasOwnProperty("controlKey")) + if (!$util.isString(message.controlKey)) + return "controlKey: string expected"; + if (message.cnappActionTypeId != null && message.hasOwnProperty("cnappActionTypeId")) + if (!$util.isInteger(message.cnappActionTypeId)) + return "cnappActionTypeId: integer expected"; + if (message.autoExecute != null && message.hasOwnProperty("autoExecute")) + if (typeof message.autoExecute !== "boolean") + return "autoExecute: boolean expected"; return null; }; /** - * Creates a PAMRecording message from a plain object. Also converts values to their respective internal types. + * Creates a CnappDefaultBehaviorRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMRecording + * @memberof PAM.CnappDefaultBehaviorRequest * @static * @param {Object.} object Plain object - * @returns {PAM.PAMRecording} PAMRecording + * @returns {PAM.CnappDefaultBehaviorRequest} CnappDefaultBehaviorRequest */ - PAMRecording.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMRecording) + CnappDefaultBehaviorRequest.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappDefaultBehaviorRequest) return object; - let message = new $root.PAM.PAMRecording(); - if (object.connectionUid != null) - if (typeof object.connectionUid === "string") - $util.base64.decode(object.connectionUid, message.connectionUid = $util.newBuffer($util.base64.length(object.connectionUid)), 0); - else if (object.connectionUid.length >= 0) - message.connectionUid = object.connectionUid; - switch (object.recordingType) { - default: - if (typeof object.recordingType === "number") { - message.recordingType = object.recordingType; - break; - } - break; - case "PRT_SESSION": - case 0: - message.recordingType = 0; - break; - case "PRT_TYPESCRIPT": - case 1: - message.recordingType = 1; - break; - case "PRT_TIME": - case 2: - message.recordingType = 2; - break; - case "PRT_SUMMARY": - case 3: - message.recordingType = 3; - break; - } - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.userName != null) - message.userName = String(object.userName); - if (object.startedOn != null) - if ($util.Long) - (message.startedOn = $util.Long.fromValue(object.startedOn)).unsigned = false; - else if (typeof object.startedOn === "string") - message.startedOn = parseInt(object.startedOn, 10); - else if (typeof object.startedOn === "number") - message.startedOn = object.startedOn; - else if (typeof object.startedOn === "object") - message.startedOn = new $util.LongBits(object.startedOn.low >>> 0, object.startedOn.high >>> 0).toNumber(); - if (object.length != null) - message.length = object.length | 0; - if (object.fileSize != null) - if ($util.Long) - (message.fileSize = $util.Long.fromValue(object.fileSize)).unsigned = false; - else if (typeof object.fileSize === "string") - message.fileSize = parseInt(object.fileSize, 10); - else if (typeof object.fileSize === "number") - message.fileSize = object.fileSize; - else if (typeof object.fileSize === "object") - message.fileSize = new $util.LongBits(object.fileSize.low >>> 0, object.fileSize.high >>> 0).toNumber(); - if (object.createdOn != null) - if ($util.Long) - (message.createdOn = $util.Long.fromValue(object.createdOn)).unsigned = false; - else if (typeof object.createdOn === "string") - message.createdOn = parseInt(object.createdOn, 10); - else if (typeof object.createdOn === "number") - message.createdOn = object.createdOn; - else if (typeof object.createdOn === "object") - message.createdOn = new $util.LongBits(object.createdOn.low >>> 0, object.createdOn.high >>> 0).toNumber(); - if (object.protocol != null) - message.protocol = String(object.protocol); - if (object.closeReason != null) - message.closeReason = object.closeReason | 0; - if (object.recordingDuration != null) - message.recordingDuration = object.recordingDuration | 0; - switch (object.aiOverallRiskLevel) { - default: - if (typeof object.aiOverallRiskLevel === "number") { - message.aiOverallRiskLevel = object.aiOverallRiskLevel; - break; - } - break; - case "PRR_UNSPECIFIED": - case 0: - message.aiOverallRiskLevel = 0; - break; - case "PRR_LOW": - case 1: - message.aiOverallRiskLevel = 1; - break; - case "PRR_MEDIUM": - case 2: - message.aiOverallRiskLevel = 2; - break; - case "PRR_HIGH": - case 3: - message.aiOverallRiskLevel = 3; - break; - case "PRR_CRITICAL": - case 4: - message.aiOverallRiskLevel = 4; - break; - } - if (object.aiOverallSummary != null) - if (typeof object.aiOverallSummary === "string") - $util.base64.decode(object.aiOverallSummary, message.aiOverallSummary = $util.newBuffer($util.base64.length(object.aiOverallSummary)), 0); - else if (object.aiOverallSummary.length >= 0) - message.aiOverallSummary = object.aiOverallSummary; + let message = new $root.PAM.CnappDefaultBehaviorRequest(); + if (object.networkId != null) + if (typeof object.networkId === "string") + $util.base64.decode(object.networkId, message.networkId = $util.newBuffer($util.base64.length(object.networkId)), 0); + else if (object.networkId.length >= 0) + message.networkId = object.networkId; + if (object.cnappProviderId != null) + message.cnappProviderId = object.cnappProviderId | 0; + if (object.controlKey != null) + message.controlKey = String(object.controlKey); + if (object.cnappActionTypeId != null) + message.cnappActionTypeId = object.cnappActionTypeId | 0; + if (object.autoExecute != null) + message.autoExecute = Boolean(object.autoExecute); return message; }; /** - * Creates a plain object from a PAMRecording message. Also converts values to other types if specified. + * Creates a plain object from a CnappDefaultBehaviorRequest message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMRecording + * @memberof PAM.CnappDefaultBehaviorRequest * @static - * @param {PAM.PAMRecording} message PAMRecording + * @param {PAM.CnappDefaultBehaviorRequest} message CnappDefaultBehaviorRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMRecording.toObject = function toObject(message, options) { + CnappDefaultBehaviorRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { if (options.bytes === String) - object.connectionUid = ""; - else { - object.connectionUid = []; - if (options.bytes !== Array) - object.connectionUid = $util.newBuffer(object.connectionUid); - } - object.recordingType = options.enums === String ? "PRT_SESSION" : 0; - if (options.bytes === String) - object.recordUid = ""; - else { - object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - object.userName = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.startedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.startedOn = options.longs === String ? "0" : 0; - object.length = 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.fileSize = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.createdOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.createdOn = options.longs === String ? "0" : 0; - object.protocol = ""; - object.closeReason = 0; - object.recordingDuration = 0; - object.aiOverallRiskLevel = options.enums === String ? "PRR_UNSPECIFIED" : 0; - if (options.bytes === String) - object.aiOverallSummary = ""; + object.networkId = ""; else { - object.aiOverallSummary = []; + object.networkId = []; if (options.bytes !== Array) - object.aiOverallSummary = $util.newBuffer(object.aiOverallSummary); - } - } - if (message.connectionUid != null && message.hasOwnProperty("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")) - 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")) - 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")) - object.userName = message.userName; - if (message.startedOn != null && message.hasOwnProperty("startedOn")) - if (typeof message.startedOn === "number") - object.startedOn = options.longs === String ? String(message.startedOn) : message.startedOn; - else - object.startedOn = options.longs === String ? $util.Long.prototype.toString.call(message.startedOn) : options.longs === Number ? new $util.LongBits(message.startedOn.low >>> 0, message.startedOn.high >>> 0).toNumber() : message.startedOn; - if (message.length != null && message.hasOwnProperty("length")) - object.length = message.length; - if (message.fileSize != null && message.hasOwnProperty("fileSize")) - if (typeof message.fileSize === "number") - object.fileSize = options.longs === String ? String(message.fileSize) : message.fileSize; - else - object.fileSize = options.longs === String ? $util.Long.prototype.toString.call(message.fileSize) : options.longs === Number ? new $util.LongBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0).toNumber() : message.fileSize; - if (message.createdOn != null && message.hasOwnProperty("createdOn")) - if (typeof 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")) - object.protocol = message.protocol; - if (message.closeReason != null && message.hasOwnProperty("closeReason")) - object.closeReason = message.closeReason; - if (message.recordingDuration != null && message.hasOwnProperty("recordingDuration")) - object.recordingDuration = message.recordingDuration; - if (message.aiOverallRiskLevel != null && message.hasOwnProperty("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")) - 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; + object.networkId = $util.newBuffer(object.networkId); + } + object.cnappProviderId = 0; + object.controlKey = ""; + object.cnappActionTypeId = 0; + object.autoExecute = false; + } + if (message.networkId != null && message.hasOwnProperty("networkId")) + object.networkId = options.bytes === String ? $util.base64.encode(message.networkId, 0, message.networkId.length) : options.bytes === Array ? Array.prototype.slice.call(message.networkId) : message.networkId; + if (message.cnappProviderId != null && message.hasOwnProperty("cnappProviderId")) + object.cnappProviderId = message.cnappProviderId; + if (message.controlKey != null && message.hasOwnProperty("controlKey")) + object.controlKey = message.controlKey; + if (message.cnappActionTypeId != null && message.hasOwnProperty("cnappActionTypeId")) + object.cnappActionTypeId = message.cnappActionTypeId; + if (message.autoExecute != null && message.hasOwnProperty("autoExecute")) + object.autoExecute = message.autoExecute; return object; }; /** - * Converts this PAMRecording to JSON. + * Converts this CnappDefaultBehaviorRequest to JSON. * @function toJSON - * @memberof PAM.PAMRecording + * @memberof PAM.CnappDefaultBehaviorRequest * @instance * @returns {Object.} JSON object */ - PAMRecording.prototype.toJSON = function toJSON() { + CnappDefaultBehaviorRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMRecording + * Gets the default type url for CnappDefaultBehaviorRequest * @function getTypeUrl - * @memberof PAM.PAMRecording + * @memberof PAM.CnappDefaultBehaviorRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMRecording.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CnappDefaultBehaviorRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMRecording"; + return typeUrlPrefix + "/PAM.CnappDefaultBehaviorRequest"; }; - return PAMRecording; + return CnappDefaultBehaviorRequest; })(); - PAM.PAMRecordingsResponse = (function() { + PAM.CnappDefaultBehaviorResponse = (function() { /** - * Properties of a PAMRecordingsResponse. + * Properties of a CnappDefaultBehaviorResponse. * @memberof PAM - * @interface IPAMRecordingsResponse - * @property {Array.|null} [recordings] PAMRecordingsResponse recordings - * @property {boolean|null} [hasMore] PAMRecordingsResponse hasMore + * @interface ICnappDefaultBehaviorResponse + * @property {number|null} [cnappDefaultBehaviorId] CnappDefaultBehaviorResponse cnappDefaultBehaviorId */ /** - * Constructs a new PAMRecordingsResponse. + * Constructs a new CnappDefaultBehaviorResponse. * @memberof PAM - * @classdesc Represents a PAMRecordingsResponse. - * @implements IPAMRecordingsResponse + * @classdesc Represents a CnappDefaultBehaviorResponse. + * @implements ICnappDefaultBehaviorResponse * @constructor - * @param {PAM.IPAMRecordingsResponse=} [properties] Properties to set + * @param {PAM.ICnappDefaultBehaviorResponse=} [properties] Properties to set */ - function PAMRecordingsResponse(properties) { - this.recordings = []; + function CnappDefaultBehaviorResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -264822,92 +297065,75 @@ export const PAM = $root.PAM = (() => { } /** - * PAMRecordingsResponse recordings. - * @member {Array.} recordings - * @memberof PAM.PAMRecordingsResponse - * @instance - */ - PAMRecordingsResponse.prototype.recordings = $util.emptyArray; - - /** - * PAMRecordingsResponse hasMore. - * @member {boolean} hasMore - * @memberof PAM.PAMRecordingsResponse + * CnappDefaultBehaviorResponse cnappDefaultBehaviorId. + * @member {number} cnappDefaultBehaviorId + * @memberof PAM.CnappDefaultBehaviorResponse * @instance */ - PAMRecordingsResponse.prototype.hasMore = false; + CnappDefaultBehaviorResponse.prototype.cnappDefaultBehaviorId = 0; /** - * Creates a new PAMRecordingsResponse instance using the specified properties. + * Creates a new CnappDefaultBehaviorResponse instance using the specified properties. * @function create - * @memberof PAM.PAMRecordingsResponse + * @memberof PAM.CnappDefaultBehaviorResponse * @static - * @param {PAM.IPAMRecordingsResponse=} [properties] Properties to set - * @returns {PAM.PAMRecordingsResponse} PAMRecordingsResponse instance + * @param {PAM.ICnappDefaultBehaviorResponse=} [properties] Properties to set + * @returns {PAM.CnappDefaultBehaviorResponse} CnappDefaultBehaviorResponse instance */ - PAMRecordingsResponse.create = function create(properties) { - return new PAMRecordingsResponse(properties); + CnappDefaultBehaviorResponse.create = function create(properties) { + return new CnappDefaultBehaviorResponse(properties); }; /** - * Encodes the specified PAMRecordingsResponse message. Does not implicitly {@link PAM.PAMRecordingsResponse.verify|verify} messages. + * Encodes the specified CnappDefaultBehaviorResponse message. Does not implicitly {@link PAM.CnappDefaultBehaviorResponse.verify|verify} messages. * @function encode - * @memberof PAM.PAMRecordingsResponse + * @memberof PAM.CnappDefaultBehaviorResponse * @static - * @param {PAM.IPAMRecordingsResponse} message PAMRecordingsResponse message or plain object to encode + * @param {PAM.ICnappDefaultBehaviorResponse} message CnappDefaultBehaviorResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRecordingsResponse.encode = function encode(message, writer) { + CnappDefaultBehaviorResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordings != null && message.recordings.length) - for (let i = 0; i < message.recordings.length; ++i) - $root.PAM.PAMRecording.encode(message.recordings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.hasMore); + if (message.cnappDefaultBehaviorId != null && Object.hasOwnProperty.call(message, "cnappDefaultBehaviorId")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.cnappDefaultBehaviorId); return writer; }; /** - * Encodes the specified PAMRecordingsResponse message, length delimited. Does not implicitly {@link PAM.PAMRecordingsResponse.verify|verify} messages. + * Encodes the specified CnappDefaultBehaviorResponse message, length delimited. Does not implicitly {@link PAM.CnappDefaultBehaviorResponse.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMRecordingsResponse + * @memberof PAM.CnappDefaultBehaviorResponse * @static - * @param {PAM.IPAMRecordingsResponse} message PAMRecordingsResponse message or plain object to encode + * @param {PAM.ICnappDefaultBehaviorResponse} message CnappDefaultBehaviorResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRecordingsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CnappDefaultBehaviorResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMRecordingsResponse message from the specified reader or buffer. + * Decodes a CnappDefaultBehaviorResponse message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMRecordingsResponse + * @memberof PAM.CnappDefaultBehaviorResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMRecordingsResponse} PAMRecordingsResponse + * @returns {PAM.CnappDefaultBehaviorResponse} CnappDefaultBehaviorResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMRecordingsResponse.decode = function decode(reader, length) { + CnappDefaultBehaviorResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRecordingsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappDefaultBehaviorResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.recordings && message.recordings.length)) - message.recordings = []; - message.recordings.push($root.PAM.PAMRecording.decode(reader, reader.uint32())); - break; - } - case 2: { - message.hasMore = reader.bool(); + message.cnappDefaultBehaviorId = reader.int32(); break; } default: @@ -264919,149 +297145,122 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMRecordingsResponse message from the specified reader or buffer, length delimited. + * Decodes a CnappDefaultBehaviorResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMRecordingsResponse + * @memberof PAM.CnappDefaultBehaviorResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMRecordingsResponse} PAMRecordingsResponse + * @returns {PAM.CnappDefaultBehaviorResponse} CnappDefaultBehaviorResponse * @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) { + CnappDefaultBehaviorResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMRecordingsResponse message. + * Verifies a CnappDefaultBehaviorResponse message. * @function verify - * @memberof PAM.PAMRecordingsResponse + * @memberof PAM.CnappDefaultBehaviorResponse * @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) { + CnappDefaultBehaviorResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - if (error) - return "recordings." + error; - } - } - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - if (typeof message.hasMore !== "boolean") - return "hasMore: boolean expected"; + if (message.cnappDefaultBehaviorId != null && message.hasOwnProperty("cnappDefaultBehaviorId")) + if (!$util.isInteger(message.cnappDefaultBehaviorId)) + return "cnappDefaultBehaviorId: integer expected"; return null; }; /** - * Creates a PAMRecordingsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CnappDefaultBehaviorResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMRecordingsResponse + * @memberof PAM.CnappDefaultBehaviorResponse * @static * @param {Object.} object Plain object - * @returns {PAM.PAMRecordingsResponse} PAMRecordingsResponse + * @returns {PAM.CnappDefaultBehaviorResponse} CnappDefaultBehaviorResponse */ - PAMRecordingsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMRecordingsResponse) + CnappDefaultBehaviorResponse.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappDefaultBehaviorResponse) return object; - let message = new $root.PAM.PAMRecordingsResponse(); - if (object.recordings) { - if (!Array.isArray(object.recordings)) - throw TypeError(".PAM.PAMRecordingsResponse.recordings: array expected"); - message.recordings = []; - for (let i = 0; i < object.recordings.length; ++i) { - if (typeof object.recordings[i] !== "object") - throw TypeError(".PAM.PAMRecordingsResponse.recordings: object expected"); - message.recordings[i] = $root.PAM.PAMRecording.fromObject(object.recordings[i]); - } - } - if (object.hasMore != null) - message.hasMore = Boolean(object.hasMore); + let message = new $root.PAM.CnappDefaultBehaviorResponse(); + if (object.cnappDefaultBehaviorId != null) + message.cnappDefaultBehaviorId = object.cnappDefaultBehaviorId | 0; return message; }; /** - * Creates a plain object from a PAMRecordingsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CnappDefaultBehaviorResponse message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMRecordingsResponse + * @memberof PAM.CnappDefaultBehaviorResponse * @static - * @param {PAM.PAMRecordingsResponse} message PAMRecordingsResponse + * @param {PAM.CnappDefaultBehaviorResponse} message CnappDefaultBehaviorResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMRecordingsResponse.toObject = function toObject(message, options) { + CnappDefaultBehaviorResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.recordings = []; if (options.defaults) - object.hasMore = false; - if (message.recordings && message.recordings.length) { - object.recordings = []; - for (let j = 0; j < message.recordings.length; ++j) - object.recordings[j] = $root.PAM.PAMRecording.toObject(message.recordings[j], options); - } - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - object.hasMore = message.hasMore; + object.cnappDefaultBehaviorId = 0; + if (message.cnappDefaultBehaviorId != null && message.hasOwnProperty("cnappDefaultBehaviorId")) + object.cnappDefaultBehaviorId = message.cnappDefaultBehaviorId; return object; }; /** - * Converts this PAMRecordingsResponse to JSON. + * Converts this CnappDefaultBehaviorResponse to JSON. * @function toJSON - * @memberof PAM.PAMRecordingsResponse + * @memberof PAM.CnappDefaultBehaviorResponse * @instance * @returns {Object.} JSON object */ - PAMRecordingsResponse.prototype.toJSON = function toJSON() { + CnappDefaultBehaviorResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMRecordingsResponse + * Gets the default type url for CnappDefaultBehaviorResponse * @function getTypeUrl - * @memberof PAM.PAMRecordingsResponse + * @memberof PAM.CnappDefaultBehaviorResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMRecordingsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CnappDefaultBehaviorResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMRecordingsResponse"; + return typeUrlPrefix + "/PAM.CnappDefaultBehaviorResponse"; }; - return PAMRecordingsResponse; + return CnappDefaultBehaviorResponse; })(); - PAM.PAMData = (function() { + PAM.CnappBehaviorListRequest = (function() { /** - * Properties of a PAMData. + * Properties of a CnappBehaviorListRequest. * @memberof PAM - * @interface IPAMData - * @property {Uint8Array|null} [vertex] PAMData vertex - * @property {Uint8Array|null} [content] PAMData content + * @interface ICnappBehaviorListRequest + * @property {Uint8Array|null} [networkUid] CnappBehaviorListRequest networkUid */ /** - * Constructs a new PAMData. + * Constructs a new CnappBehaviorListRequest. * @memberof PAM - * @classdesc Represents a PAMData. - * @implements IPAMData + * @classdesc Represents a CnappBehaviorListRequest. + * @implements ICnappBehaviorListRequest * @constructor - * @param {PAM.IPAMData=} [properties] Properties to set + * @param {PAM.ICnappBehaviorListRequest=} [properties] Properties to set */ - function PAMData(properties) { + function CnappBehaviorListRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -265069,89 +297268,75 @@ export const PAM = $root.PAM = (() => { } /** - * PAMData vertex. - * @member {Uint8Array} vertex - * @memberof PAM.PAMData - * @instance - */ - PAMData.prototype.vertex = $util.newBuffer([]); - - /** - * PAMData content. - * @member {Uint8Array} content - * @memberof PAM.PAMData + * CnappBehaviorListRequest networkUid. + * @member {Uint8Array} networkUid + * @memberof PAM.CnappBehaviorListRequest * @instance */ - PAMData.prototype.content = $util.newBuffer([]); + CnappBehaviorListRequest.prototype.networkUid = $util.newBuffer([]); /** - * Creates a new PAMData instance using the specified properties. + * Creates a new CnappBehaviorListRequest instance using the specified properties. * @function create - * @memberof PAM.PAMData + * @memberof PAM.CnappBehaviorListRequest * @static - * @param {PAM.IPAMData=} [properties] Properties to set - * @returns {PAM.PAMData} PAMData instance + * @param {PAM.ICnappBehaviorListRequest=} [properties] Properties to set + * @returns {PAM.CnappBehaviorListRequest} CnappBehaviorListRequest instance */ - PAMData.create = function create(properties) { - return new PAMData(properties); + CnappBehaviorListRequest.create = function create(properties) { + return new CnappBehaviorListRequest(properties); }; /** - * Encodes the specified PAMData message. Does not implicitly {@link PAM.PAMData.verify|verify} messages. + * Encodes the specified CnappBehaviorListRequest message. Does not implicitly {@link PAM.CnappBehaviorListRequest.verify|verify} messages. * @function encode - * @memberof PAM.PAMData + * @memberof PAM.CnappBehaviorListRequest * @static - * @param {PAM.IPAMData} message PAMData message or plain object to encode + * @param {PAM.ICnappBehaviorListRequest} message CnappBehaviorListRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMData.encode = function encode(message, writer) { + CnappBehaviorListRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.vertex != null && Object.hasOwnProperty.call(message, "vertex")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.vertex); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.content); + if (message.networkUid != null && Object.hasOwnProperty.call(message, "networkUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.networkUid); return writer; }; /** - * Encodes the specified PAMData message, length delimited. Does not implicitly {@link PAM.PAMData.verify|verify} messages. + * Encodes the specified CnappBehaviorListRequest message, length delimited. Does not implicitly {@link PAM.CnappBehaviorListRequest.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMData + * @memberof PAM.CnappBehaviorListRequest * @static - * @param {PAM.IPAMData} message PAMData message or plain object to encode + * @param {PAM.ICnappBehaviorListRequest} message CnappBehaviorListRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMData.encodeDelimited = function encodeDelimited(message, writer) { + CnappBehaviorListRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMData message from the specified reader or buffer. + * Decodes a CnappBehaviorListRequest message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMData + * @memberof PAM.CnappBehaviorListRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMData} PAMData + * @returns {PAM.CnappBehaviorListRequest} CnappBehaviorListRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMData.decode = function decode(reader, length) { + CnappBehaviorListRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappBehaviorListRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.vertex = reader.bytes(); - break; - } - case 2: { - message.content = reader.bytes(); + message.networkUid = reader.bytes(); break; } default: @@ -265163,150 +297348,132 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMData message from the specified reader or buffer, length delimited. + * Decodes a CnappBehaviorListRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMData + * @memberof PAM.CnappBehaviorListRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMData} PAMData + * @returns {PAM.CnappBehaviorListRequest} CnappBehaviorListRequest * @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) { + CnappBehaviorListRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMData message. + * Verifies a CnappBehaviorListRequest message. * @function verify - * @memberof PAM.PAMData + * @memberof PAM.CnappBehaviorListRequest * @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) { + CnappBehaviorListRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + if (message.networkUid != null && message.hasOwnProperty("networkUid")) + if (!(message.networkUid && typeof message.networkUid.length === "number" || $util.isString(message.networkUid))) + return "networkUid: buffer expected"; return null; }; /** - * Creates a PAMData message from a plain object. Also converts values to their respective internal types. + * Creates a CnappBehaviorListRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMData + * @memberof PAM.CnappBehaviorListRequest * @static * @param {Object.} object Plain object - * @returns {PAM.PAMData} PAMData + * @returns {PAM.CnappBehaviorListRequest} CnappBehaviorListRequest */ - PAMData.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMData) + CnappBehaviorListRequest.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappBehaviorListRequest) return object; - let message = new $root.PAM.PAMData(); - if (object.vertex != null) - if (typeof object.vertex === "string") - $util.base64.decode(object.vertex, message.vertex = $util.newBuffer($util.base64.length(object.vertex)), 0); - else if (object.vertex.length >= 0) - message.vertex = object.vertex; - if (object.content != null) - if (typeof object.content === "string") - $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); - else if (object.content.length >= 0) - message.content = object.content; + let message = new $root.PAM.CnappBehaviorListRequest(); + if (object.networkUid != null) + if (typeof object.networkUid === "string") + $util.base64.decode(object.networkUid, message.networkUid = $util.newBuffer($util.base64.length(object.networkUid)), 0); + else if (object.networkUid.length >= 0) + message.networkUid = object.networkUid; return message; }; /** - * Creates a plain object from a PAMData message. Also converts values to other types if specified. + * Creates a plain object from a CnappBehaviorListRequest message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMData + * @memberof PAM.CnappBehaviorListRequest * @static - * @param {PAM.PAMData} message PAMData + * @param {PAM.CnappBehaviorListRequest} message CnappBehaviorListRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMData.toObject = function toObject(message, options) { + CnappBehaviorListRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.vertex = ""; - else { - object.vertex = []; - if (options.bytes !== Array) - object.vertex = $util.newBuffer(object.vertex); - } + if (options.defaults) if (options.bytes === String) - object.content = ""; + object.networkUid = ""; else { - object.content = []; + object.networkUid = []; if (options.bytes !== Array) - object.content = $util.newBuffer(object.content); + object.networkUid = $util.newBuffer(object.networkUid); } - } - if (message.vertex != null && message.hasOwnProperty("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")) - 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.networkUid != null && message.hasOwnProperty("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; return object; }; /** - * Converts this PAMData to JSON. + * Converts this CnappBehaviorListRequest to JSON. * @function toJSON - * @memberof PAM.PAMData + * @memberof PAM.CnappBehaviorListRequest * @instance * @returns {Object.} JSON object */ - PAMData.prototype.toJSON = function toJSON() { + CnappBehaviorListRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMData + * Gets the default type url for CnappBehaviorListRequest * @function getTypeUrl - * @memberof PAM.PAMData + * @memberof PAM.CnappBehaviorListRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CnappBehaviorListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMData"; + return typeUrlPrefix + "/PAM.CnappBehaviorListRequest"; }; - return PAMData; + return CnappBehaviorListRequest; })(); - PAM.UidList = (function() { + PAM.CnappBehaviorListResponse = (function() { /** - * Properties of an UidList. + * Properties of a CnappBehaviorListResponse. * @memberof PAM - * @interface IUidList - * @property {Array.|null} [uids] UidList uids + * @interface ICnappBehaviorListResponse + * @property {Array.|null} [items] CnappBehaviorListResponse items */ /** - * Constructs a new UidList. + * Constructs a new CnappBehaviorListResponse. * @memberof PAM - * @classdesc Represents an UidList. - * @implements IUidList + * @classdesc Represents a CnappBehaviorListResponse. + * @implements ICnappBehaviorListResponse * @constructor - * @param {PAM.IUidList=} [properties] Properties to set + * @param {PAM.ICnappBehaviorListResponse=} [properties] Properties to set */ - function UidList(properties) { - this.uids = []; + function CnappBehaviorListResponse(properties) { + this.items = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -265314,78 +297481,78 @@ export const PAM = $root.PAM = (() => { } /** - * UidList uids. - * @member {Array.} uids - * @memberof PAM.UidList + * CnappBehaviorListResponse items. + * @member {Array.} items + * @memberof PAM.CnappBehaviorListResponse * @instance */ - UidList.prototype.uids = $util.emptyArray; + CnappBehaviorListResponse.prototype.items = $util.emptyArray; /** - * Creates a new UidList instance using the specified properties. + * Creates a new CnappBehaviorListResponse instance using the specified properties. * @function create - * @memberof PAM.UidList + * @memberof PAM.CnappBehaviorListResponse * @static - * @param {PAM.IUidList=} [properties] Properties to set - * @returns {PAM.UidList} UidList instance + * @param {PAM.ICnappBehaviorListResponse=} [properties] Properties to set + * @returns {PAM.CnappBehaviorListResponse} CnappBehaviorListResponse instance */ - UidList.create = function create(properties) { - return new UidList(properties); + CnappBehaviorListResponse.create = function create(properties) { + return new CnappBehaviorListResponse(properties); }; /** - * Encodes the specified UidList message. Does not implicitly {@link PAM.UidList.verify|verify} messages. + * Encodes the specified CnappBehaviorListResponse message. Does not implicitly {@link PAM.CnappBehaviorListResponse.verify|verify} messages. * @function encode - * @memberof PAM.UidList + * @memberof PAM.CnappBehaviorListResponse * @static - * @param {PAM.IUidList} message UidList message or plain object to encode + * @param {PAM.ICnappBehaviorListResponse} message CnappBehaviorListResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UidList.encode = function encode(message, writer) { + CnappBehaviorListResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uids != null && message.uids.length) - for (let i = 0; i < message.uids.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uids[i]); + if (message.items != null && message.items.length) + for (let i = 0; i < message.items.length; ++i) + $root.PAM.CnappDefaultBehaviorItem.encode(message.items[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified UidList message, length delimited. Does not implicitly {@link PAM.UidList.verify|verify} messages. + * Encodes the specified CnappBehaviorListResponse message, length delimited. Does not implicitly {@link PAM.CnappBehaviorListResponse.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.UidList + * @memberof PAM.CnappBehaviorListResponse * @static - * @param {PAM.IUidList} message UidList message or plain object to encode + * @param {PAM.ICnappBehaviorListResponse} message CnappBehaviorListResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UidList.encodeDelimited = function encodeDelimited(message, writer) { + CnappBehaviorListResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UidList message from the specified reader or buffer. + * Decodes a CnappBehaviorListResponse message from the specified reader or buffer. * @function decode - * @memberof PAM.UidList + * @memberof PAM.CnappBehaviorListResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.UidList} UidList + * @returns {PAM.CnappBehaviorListResponse} CnappBehaviorListResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UidList.decode = function decode(reader, length) { + CnappBehaviorListResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.UidList(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappBehaviorListResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.uids && message.uids.length)) - message.uids = []; - message.uids.push(reader.bytes()); + if (!(message.items && message.items.length)) + message.items = []; + message.items.push($root.PAM.CnappDefaultBehaviorItem.decode(reader, reader.uint32())); break; } default: @@ -265397,145 +297564,145 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes an UidList message from the specified reader or buffer, length delimited. + * Decodes a CnappBehaviorListResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.UidList + * @memberof PAM.CnappBehaviorListResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.UidList} UidList + * @returns {PAM.CnappBehaviorListResponse} CnappBehaviorListResponse * @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) { + CnappBehaviorListResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UidList message. + * Verifies a CnappBehaviorListResponse message. * @function verify - * @memberof PAM.UidList + * @memberof PAM.CnappBehaviorListResponse * @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) { + CnappBehaviorListResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + if (message.items != null && message.hasOwnProperty("items")) { + if (!Array.isArray(message.items)) + return "items: array expected"; + for (let i = 0; i < message.items.length; ++i) { + let error = $root.PAM.CnappDefaultBehaviorItem.verify(message.items[i]); + if (error) + return "items." + error; + } } return null; }; /** - * Creates an UidList message from a plain object. Also converts values to their respective internal types. + * Creates a CnappBehaviorListResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.UidList + * @memberof PAM.CnappBehaviorListResponse * @static * @param {Object.} object Plain object - * @returns {PAM.UidList} UidList + * @returns {PAM.CnappBehaviorListResponse} CnappBehaviorListResponse */ - UidList.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.UidList) + CnappBehaviorListResponse.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappBehaviorListResponse) return object; - let message = new $root.PAM.UidList(); - if (object.uids) { - if (!Array.isArray(object.uids)) - throw TypeError(".PAM.UidList.uids: array expected"); - message.uids = []; - for (let i = 0; i < object.uids.length; ++i) - if (typeof object.uids[i] === "string") - $util.base64.decode(object.uids[i], message.uids[i] = $util.newBuffer($util.base64.length(object.uids[i])), 0); - else if (object.uids[i].length >= 0) - message.uids[i] = object.uids[i]; + let message = new $root.PAM.CnappBehaviorListResponse(); + if (object.items) { + if (!Array.isArray(object.items)) + throw TypeError(".PAM.CnappBehaviorListResponse.items: array expected"); + message.items = []; + for (let i = 0; i < object.items.length; ++i) { + if (typeof object.items[i] !== "object") + throw TypeError(".PAM.CnappBehaviorListResponse.items: object expected"); + message.items[i] = $root.PAM.CnappDefaultBehaviorItem.fromObject(object.items[i]); + } } return message; }; /** - * Creates a plain object from an UidList message. Also converts values to other types if specified. + * Creates a plain object from a CnappBehaviorListResponse message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.UidList + * @memberof PAM.CnappBehaviorListResponse * @static - * @param {PAM.UidList} message UidList + * @param {PAM.CnappBehaviorListResponse} message CnappBehaviorListResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UidList.toObject = function toObject(message, options) { + CnappBehaviorListResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.uids = []; - if (message.uids && message.uids.length) { - object.uids = []; - for (let j = 0; j < message.uids.length; ++j) - object.uids[j] = options.bytes === String ? $util.base64.encode(message.uids[j], 0, message.uids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.uids[j]) : message.uids[j]; + object.items = []; + if (message.items && message.items.length) { + object.items = []; + for (let j = 0; j < message.items.length; ++j) + object.items[j] = $root.PAM.CnappDefaultBehaviorItem.toObject(message.items[j], options); } return object; }; /** - * Converts this UidList to JSON. + * Converts this CnappBehaviorListResponse to JSON. * @function toJSON - * @memberof PAM.UidList + * @memberof PAM.CnappBehaviorListResponse * @instance * @returns {Object.} JSON object */ - UidList.prototype.toJSON = function toJSON() { + CnappBehaviorListResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UidList + * Gets the default type url for CnappBehaviorListResponse * @function getTypeUrl - * @memberof PAM.UidList + * @memberof PAM.CnappBehaviorListResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UidList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CnappBehaviorListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.UidList"; + return typeUrlPrefix + "/PAM.CnappBehaviorListResponse"; }; - return UidList; + return CnappBehaviorListResponse; })(); - PAM.PAMResourceConfig = (function() { + PAM.CnappDefaultBehaviorItem = (function() { /** - * Properties of a PAMResourceConfig. + * Properties of a CnappDefaultBehaviorItem. * @memberof PAM - * @interface IPAMResourceConfig - * @property {Uint8Array|null} [recordUid] PAMResourceConfig recordUid - * @property {Uint8Array|null} [networkUid] PAMResourceConfig networkUid - * @property {Uint8Array|null} [adminUid] PAMResourceConfig adminUid - * @property {Uint8Array|null} [meta] PAMResourceConfig meta - * @property {Uint8Array|null} [connectionSettings] PAMResourceConfig connectionSettings - * @property {PAM.IUidList|null} [connectUsers] PAMResourceConfig connectUsers - * @property {Uint8Array|null} [domainUid] PAMResourceConfig domainUid - * @property {Uint8Array|null} [jitSettings] PAMResourceConfig jitSettings - * @property {Uint8Array|null} [keeperAiSettings] PAMResourceConfig keeperAiSettings + * @interface ICnappDefaultBehaviorItem + * @property {number|null} [id] CnappDefaultBehaviorItem id + * @property {Uint8Array|null} [networkId] CnappDefaultBehaviorItem networkId + * @property {number|null} [cnappProviderId] CnappDefaultBehaviorItem cnappProviderId + * @property {string|null} [controlKey] CnappDefaultBehaviorItem controlKey + * @property {number|null} [cnappActionTypeId] CnappDefaultBehaviorItem cnappActionTypeId + * @property {boolean|null} [autoExecute] CnappDefaultBehaviorItem autoExecute + * @property {boolean|null} [enabled] CnappDefaultBehaviorItem enabled */ /** - * Constructs a new PAMResourceConfig. + * Constructs a new CnappDefaultBehaviorItem. * @memberof PAM - * @classdesc Represents a PAMResourceConfig. - * @implements IPAMResourceConfig + * @classdesc Represents a CnappDefaultBehaviorItem. + * @implements ICnappDefaultBehaviorItem * @constructor - * @param {PAM.IPAMResourceConfig=} [properties] Properties to set + * @param {PAM.ICnappDefaultBehaviorItem=} [properties] Properties to set */ - function PAMResourceConfig(properties) { + function CnappDefaultBehaviorItem(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -265543,278 +297710,159 @@ export const PAM = $root.PAM = (() => { } /** - * PAMResourceConfig recordUid. - * @member {Uint8Array} recordUid - * @memberof PAM.PAMResourceConfig - * @instance - */ - PAMResourceConfig.prototype.recordUid = $util.newBuffer([]); - - /** - * PAMResourceConfig networkUid. - * @member {Uint8Array|null|undefined} networkUid - * @memberof PAM.PAMResourceConfig - * @instance - */ - PAMResourceConfig.prototype.networkUid = null; - - /** - * PAMResourceConfig adminUid. - * @member {Uint8Array|null|undefined} adminUid - * @memberof PAM.PAMResourceConfig - * @instance - */ - PAMResourceConfig.prototype.adminUid = null; - - /** - * PAMResourceConfig meta. - * @member {Uint8Array|null|undefined} meta - * @memberof PAM.PAMResourceConfig - * @instance - */ - PAMResourceConfig.prototype.meta = null; - - /** - * PAMResourceConfig connectionSettings. - * @member {Uint8Array|null|undefined} connectionSettings - * @memberof PAM.PAMResourceConfig - * @instance - */ - PAMResourceConfig.prototype.connectionSettings = null; - - /** - * PAMResourceConfig connectUsers. - * @member {PAM.IUidList|null|undefined} connectUsers - * @memberof PAM.PAMResourceConfig - * @instance - */ - PAMResourceConfig.prototype.connectUsers = null; - - /** - * PAMResourceConfig domainUid. - * @member {Uint8Array|null|undefined} domainUid - * @memberof PAM.PAMResourceConfig - * @instance - */ - PAMResourceConfig.prototype.domainUid = null; - - /** - * PAMResourceConfig jitSettings. - * @member {Uint8Array|null|undefined} jitSettings - * @memberof PAM.PAMResourceConfig - * @instance - */ - PAMResourceConfig.prototype.jitSettings = null; - - /** - * PAMResourceConfig keeperAiSettings. - * @member {Uint8Array|null|undefined} keeperAiSettings - * @memberof PAM.PAMResourceConfig - * @instance - */ - PAMResourceConfig.prototype.keeperAiSettings = null; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; - - /** - * PAMResourceConfig _networkUid. - * @member {"networkUid"|undefined} _networkUid - * @memberof PAM.PAMResourceConfig - * @instance - */ - Object.defineProperty(PAMResourceConfig.prototype, "_networkUid", { - get: $util.oneOfGetter($oneOfFields = ["networkUid"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * PAMResourceConfig _adminUid. - * @member {"adminUid"|undefined} _adminUid - * @memberof PAM.PAMResourceConfig + * CnappDefaultBehaviorItem id. + * @member {number} id + * @memberof PAM.CnappDefaultBehaviorItem * @instance */ - Object.defineProperty(PAMResourceConfig.prototype, "_adminUid", { - get: $util.oneOfGetter($oneOfFields = ["adminUid"]), - set: $util.oneOfSetter($oneOfFields) - }); + CnappDefaultBehaviorItem.prototype.id = 0; /** - * PAMResourceConfig _meta. - * @member {"meta"|undefined} _meta - * @memberof PAM.PAMResourceConfig + * CnappDefaultBehaviorItem networkId. + * @member {Uint8Array} networkId + * @memberof PAM.CnappDefaultBehaviorItem * @instance */ - Object.defineProperty(PAMResourceConfig.prototype, "_meta", { - get: $util.oneOfGetter($oneOfFields = ["meta"]), - set: $util.oneOfSetter($oneOfFields) - }); + CnappDefaultBehaviorItem.prototype.networkId = $util.newBuffer([]); /** - * PAMResourceConfig _connectionSettings. - * @member {"connectionSettings"|undefined} _connectionSettings - * @memberof PAM.PAMResourceConfig + * CnappDefaultBehaviorItem cnappProviderId. + * @member {number} cnappProviderId + * @memberof PAM.CnappDefaultBehaviorItem * @instance */ - Object.defineProperty(PAMResourceConfig.prototype, "_connectionSettings", { - get: $util.oneOfGetter($oneOfFields = ["connectionSettings"]), - set: $util.oneOfSetter($oneOfFields) - }); + CnappDefaultBehaviorItem.prototype.cnappProviderId = 0; /** - * PAMResourceConfig _connectUsers. - * @member {"connectUsers"|undefined} _connectUsers - * @memberof PAM.PAMResourceConfig + * CnappDefaultBehaviorItem controlKey. + * @member {string} controlKey + * @memberof PAM.CnappDefaultBehaviorItem * @instance */ - Object.defineProperty(PAMResourceConfig.prototype, "_connectUsers", { - get: $util.oneOfGetter($oneOfFields = ["connectUsers"]), - set: $util.oneOfSetter($oneOfFields) - }); + CnappDefaultBehaviorItem.prototype.controlKey = ""; /** - * PAMResourceConfig _domainUid. - * @member {"domainUid"|undefined} _domainUid - * @memberof PAM.PAMResourceConfig + * CnappDefaultBehaviorItem cnappActionTypeId. + * @member {number} cnappActionTypeId + * @memberof PAM.CnappDefaultBehaviorItem * @instance */ - Object.defineProperty(PAMResourceConfig.prototype, "_domainUid", { - get: $util.oneOfGetter($oneOfFields = ["domainUid"]), - set: $util.oneOfSetter($oneOfFields) - }); + CnappDefaultBehaviorItem.prototype.cnappActionTypeId = 0; /** - * PAMResourceConfig _jitSettings. - * @member {"jitSettings"|undefined} _jitSettings - * @memberof PAM.PAMResourceConfig + * CnappDefaultBehaviorItem autoExecute. + * @member {boolean} autoExecute + * @memberof PAM.CnappDefaultBehaviorItem * @instance */ - Object.defineProperty(PAMResourceConfig.prototype, "_jitSettings", { - get: $util.oneOfGetter($oneOfFields = ["jitSettings"]), - set: $util.oneOfSetter($oneOfFields) - }); + CnappDefaultBehaviorItem.prototype.autoExecute = false; /** - * PAMResourceConfig _keeperAiSettings. - * @member {"keeperAiSettings"|undefined} _keeperAiSettings - * @memberof PAM.PAMResourceConfig + * CnappDefaultBehaviorItem enabled. + * @member {boolean} enabled + * @memberof PAM.CnappDefaultBehaviorItem * @instance */ - Object.defineProperty(PAMResourceConfig.prototype, "_keeperAiSettings", { - get: $util.oneOfGetter($oneOfFields = ["keeperAiSettings"]), - set: $util.oneOfSetter($oneOfFields) - }); + CnappDefaultBehaviorItem.prototype.enabled = false; /** - * Creates a new PAMResourceConfig instance using the specified properties. + * Creates a new CnappDefaultBehaviorItem instance using the specified properties. * @function create - * @memberof PAM.PAMResourceConfig + * @memberof PAM.CnappDefaultBehaviorItem * @static - * @param {PAM.IPAMResourceConfig=} [properties] Properties to set - * @returns {PAM.PAMResourceConfig} PAMResourceConfig instance + * @param {PAM.ICnappDefaultBehaviorItem=} [properties] Properties to set + * @returns {PAM.CnappDefaultBehaviorItem} CnappDefaultBehaviorItem instance */ - PAMResourceConfig.create = function create(properties) { - return new PAMResourceConfig(properties); + CnappDefaultBehaviorItem.create = function create(properties) { + return new CnappDefaultBehaviorItem(properties); }; /** - * Encodes the specified PAMResourceConfig message. Does not implicitly {@link PAM.PAMResourceConfig.verify|verify} messages. + * Encodes the specified CnappDefaultBehaviorItem message. Does not implicitly {@link PAM.CnappDefaultBehaviorItem.verify|verify} messages. * @function encode - * @memberof PAM.PAMResourceConfig + * @memberof PAM.CnappDefaultBehaviorItem * @static - * @param {PAM.IPAMResourceConfig} message PAMResourceConfig message or plain object to encode + * @param {PAM.ICnappDefaultBehaviorItem} message CnappDefaultBehaviorItem message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMResourceConfig.encode = function encode(message, writer) { + CnappDefaultBehaviorItem.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.networkUid != null && Object.hasOwnProperty.call(message, "networkUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.networkUid); - if (message.adminUid != null && Object.hasOwnProperty.call(message, "adminUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.adminUid); - if (message.meta != null && Object.hasOwnProperty.call(message, "meta")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.meta); - if (message.connectionSettings != null && Object.hasOwnProperty.call(message, "connectionSettings")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.connectionSettings); - if (message.connectUsers != null && Object.hasOwnProperty.call(message, "connectUsers")) - $root.PAM.UidList.encode(message.connectUsers, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.domainUid != null && Object.hasOwnProperty.call(message, "domainUid")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.domainUid); - if (message.jitSettings != null && Object.hasOwnProperty.call(message, "jitSettings")) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.jitSettings); - if (message.keeperAiSettings != null && Object.hasOwnProperty.call(message, "keeperAiSettings")) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.keeperAiSettings); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); + if (message.networkId != null && Object.hasOwnProperty.call(message, "networkId")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.networkId); + if (message.cnappProviderId != null && Object.hasOwnProperty.call(message, "cnappProviderId")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.cnappProviderId); + if (message.controlKey != null && Object.hasOwnProperty.call(message, "controlKey")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.controlKey); + if (message.cnappActionTypeId != null && Object.hasOwnProperty.call(message, "cnappActionTypeId")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.cnappActionTypeId); + if (message.autoExecute != null && Object.hasOwnProperty.call(message, "autoExecute")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.autoExecute); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.enabled); return writer; }; /** - * Encodes the specified PAMResourceConfig message, length delimited. Does not implicitly {@link PAM.PAMResourceConfig.verify|verify} messages. + * Encodes the specified CnappDefaultBehaviorItem message, length delimited. Does not implicitly {@link PAM.CnappDefaultBehaviorItem.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMResourceConfig + * @memberof PAM.CnappDefaultBehaviorItem * @static - * @param {PAM.IPAMResourceConfig} message PAMResourceConfig message or plain object to encode + * @param {PAM.ICnappDefaultBehaviorItem} message CnappDefaultBehaviorItem message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMResourceConfig.encodeDelimited = function encodeDelimited(message, writer) { + CnappDefaultBehaviorItem.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMResourceConfig message from the specified reader or buffer. + * Decodes a CnappDefaultBehaviorItem message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMResourceConfig + * @memberof PAM.CnappDefaultBehaviorItem * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMResourceConfig} PAMResourceConfig + * @returns {PAM.CnappDefaultBehaviorItem} CnappDefaultBehaviorItem * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMResourceConfig.decode = function decode(reader, length) { + CnappDefaultBehaviorItem.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMResourceConfig(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappDefaultBehaviorItem(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.recordUid = reader.bytes(); + message.id = reader.int32(); break; } case 2: { - message.networkUid = reader.bytes(); + message.networkId = reader.bytes(); break; } case 3: { - message.adminUid = reader.bytes(); + message.cnappProviderId = reader.int32(); break; } case 4: { - message.meta = reader.bytes(); + message.controlKey = reader.string(); break; } case 5: { - message.connectionSettings = reader.bytes(); + message.cnappActionTypeId = reader.int32(); break; } case 6: { - message.connectUsers = $root.PAM.UidList.decode(reader, reader.uint32()); + message.autoExecute = reader.bool(); break; } case 7: { - message.domainUid = reader.bytes(); - break; - } - case 8: { - message.jitSettings = reader.bytes(); - break; - } - case 9: { - message.keeperAiSettings = reader.bytes(); + message.enabled = reader.bool(); break; } default: @@ -265826,255 +297874,184 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMResourceConfig message from the specified reader or buffer, length delimited. + * Decodes a CnappDefaultBehaviorItem message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMResourceConfig + * @memberof PAM.CnappDefaultBehaviorItem * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMResourceConfig} PAMResourceConfig + * @returns {PAM.CnappDefaultBehaviorItem} CnappDefaultBehaviorItem * @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) { + CnappDefaultBehaviorItem.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMResourceConfig message. + * Verifies a CnappDefaultBehaviorItem message. * @function verify - * @memberof PAM.PAMResourceConfig + * @memberof PAM.CnappDefaultBehaviorItem * @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) { + CnappDefaultBehaviorItem.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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); - 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.id != null && message.hasOwnProperty("id")) + if (!$util.isInteger(message.id)) + return "id: integer expected"; + if (message.networkId != null && message.hasOwnProperty("networkId")) + if (!(message.networkId && typeof message.networkId.length === "number" || $util.isString(message.networkId))) + return "networkId: buffer expected"; + if (message.cnappProviderId != null && message.hasOwnProperty("cnappProviderId")) + if (!$util.isInteger(message.cnappProviderId)) + return "cnappProviderId: integer expected"; + if (message.controlKey != null && message.hasOwnProperty("controlKey")) + if (!$util.isString(message.controlKey)) + return "controlKey: string expected"; + if (message.cnappActionTypeId != null && message.hasOwnProperty("cnappActionTypeId")) + if (!$util.isInteger(message.cnappActionTypeId)) + return "cnappActionTypeId: integer expected"; + if (message.autoExecute != null && message.hasOwnProperty("autoExecute")) + if (typeof message.autoExecute !== "boolean") + return "autoExecute: boolean expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; return null; }; /** - * Creates a PAMResourceConfig message from a plain object. Also converts values to their respective internal types. + * Creates a CnappDefaultBehaviorItem message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMResourceConfig + * @memberof PAM.CnappDefaultBehaviorItem * @static * @param {Object.} object Plain object - * @returns {PAM.PAMResourceConfig} PAMResourceConfig + * @returns {PAM.CnappDefaultBehaviorItem} CnappDefaultBehaviorItem */ - PAMResourceConfig.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMResourceConfig) + CnappDefaultBehaviorItem.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappDefaultBehaviorItem) return object; - let message = new $root.PAM.PAMResourceConfig(); - if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; - if (object.networkUid != null) - if (typeof object.networkUid === "string") - $util.base64.decode(object.networkUid, message.networkUid = $util.newBuffer($util.base64.length(object.networkUid)), 0); - else if (object.networkUid.length >= 0) - message.networkUid = object.networkUid; - if (object.adminUid != null) - if (typeof object.adminUid === "string") - $util.base64.decode(object.adminUid, message.adminUid = $util.newBuffer($util.base64.length(object.adminUid)), 0); - else if (object.adminUid.length >= 0) - message.adminUid = object.adminUid; - if (object.meta != null) - if (typeof object.meta === "string") - $util.base64.decode(object.meta, message.meta = $util.newBuffer($util.base64.length(object.meta)), 0); - else if (object.meta.length >= 0) - message.meta = object.meta; - if (object.connectionSettings != null) - if (typeof object.connectionSettings === "string") - $util.base64.decode(object.connectionSettings, message.connectionSettings = $util.newBuffer($util.base64.length(object.connectionSettings)), 0); - else if (object.connectionSettings.length >= 0) - message.connectionSettings = object.connectionSettings; - if (object.connectUsers != null) { - if (typeof object.connectUsers !== "object") - throw TypeError(".PAM.PAMResourceConfig.connectUsers: object expected"); - message.connectUsers = $root.PAM.UidList.fromObject(object.connectUsers); - } - if (object.domainUid != null) - if (typeof object.domainUid === "string") - $util.base64.decode(object.domainUid, message.domainUid = $util.newBuffer($util.base64.length(object.domainUid)), 0); - else if (object.domainUid.length >= 0) - message.domainUid = object.domainUid; - if (object.jitSettings != null) - if (typeof object.jitSettings === "string") - $util.base64.decode(object.jitSettings, message.jitSettings = $util.newBuffer($util.base64.length(object.jitSettings)), 0); - else if (object.jitSettings.length >= 0) - message.jitSettings = object.jitSettings; - if (object.keeperAiSettings != null) - if (typeof object.keeperAiSettings === "string") - $util.base64.decode(object.keeperAiSettings, message.keeperAiSettings = $util.newBuffer($util.base64.length(object.keeperAiSettings)), 0); - else if (object.keeperAiSettings.length >= 0) - message.keeperAiSettings = object.keeperAiSettings; + let message = new $root.PAM.CnappDefaultBehaviorItem(); + if (object.id != null) + message.id = object.id | 0; + if (object.networkId != null) + if (typeof object.networkId === "string") + $util.base64.decode(object.networkId, message.networkId = $util.newBuffer($util.base64.length(object.networkId)), 0); + else if (object.networkId.length >= 0) + message.networkId = object.networkId; + if (object.cnappProviderId != null) + message.cnappProviderId = object.cnappProviderId | 0; + if (object.controlKey != null) + message.controlKey = String(object.controlKey); + if (object.cnappActionTypeId != null) + message.cnappActionTypeId = object.cnappActionTypeId | 0; + if (object.autoExecute != null) + message.autoExecute = Boolean(object.autoExecute); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); return message; }; /** - * Creates a plain object from a PAMResourceConfig message. Also converts values to other types if specified. + * Creates a plain object from a CnappDefaultBehaviorItem message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMResourceConfig + * @memberof PAM.CnappDefaultBehaviorItem * @static - * @param {PAM.PAMResourceConfig} message PAMResourceConfig + * @param {PAM.CnappDefaultBehaviorItem} message CnappDefaultBehaviorItem * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMResourceConfig.toObject = function toObject(message, options) { + CnappDefaultBehaviorItem.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) + if (options.defaults) { + object.id = 0; if (options.bytes === String) - object.recordUid = ""; + object.networkId = ""; else { - object.recordUid = []; + object.networkId = []; if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + object.networkId = $util.newBuffer(object.networkId); } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.networkUid != null && message.hasOwnProperty("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")) { - 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")) { - 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")) { - 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")) { - object.connectUsers = $root.PAM.UidList.toObject(message.connectUsers, options); - if (options.oneofs) - object._connectUsers = "connectUsers"; - } - if (message.domainUid != null && message.hasOwnProperty("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")) { - 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")) { - 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"; + object.cnappProviderId = 0; + object.controlKey = ""; + object.cnappActionTypeId = 0; + object.autoExecute = false; + object.enabled = false; } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.networkId != null && message.hasOwnProperty("networkId")) + object.networkId = options.bytes === String ? $util.base64.encode(message.networkId, 0, message.networkId.length) : options.bytes === Array ? Array.prototype.slice.call(message.networkId) : message.networkId; + if (message.cnappProviderId != null && message.hasOwnProperty("cnappProviderId")) + object.cnappProviderId = message.cnappProviderId; + if (message.controlKey != null && message.hasOwnProperty("controlKey")) + object.controlKey = message.controlKey; + if (message.cnappActionTypeId != null && message.hasOwnProperty("cnappActionTypeId")) + object.cnappActionTypeId = message.cnappActionTypeId; + if (message.autoExecute != null && message.hasOwnProperty("autoExecute")) + object.autoExecute = message.autoExecute; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; return object; }; /** - * Converts this PAMResourceConfig to JSON. + * Converts this CnappDefaultBehaviorItem to JSON. * @function toJSON - * @memberof PAM.PAMResourceConfig + * @memberof PAM.CnappDefaultBehaviorItem * @instance * @returns {Object.} JSON object */ - PAMResourceConfig.prototype.toJSON = function toJSON() { + CnappDefaultBehaviorItem.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMResourceConfig + * Gets the default type url for CnappDefaultBehaviorItem * @function getTypeUrl - * @memberof PAM.PAMResourceConfig + * @memberof PAM.CnappDefaultBehaviorItem * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMResourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CnappDefaultBehaviorItem.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMResourceConfig"; + return typeUrlPrefix + "/PAM.CnappDefaultBehaviorItem"; }; - return PAMResourceConfig; + return CnappDefaultBehaviorItem; })(); - PAM.PAMUniversalSyncFolder = (function() { + PAM.CnappBehaviorUpdateRequest = (function() { /** - * Properties of a PAMUniversalSyncFolder. + * Properties of a CnappBehaviorUpdateRequest. * @memberof PAM - * @interface IPAMUniversalSyncFolder - * @property {Uint8Array|null} [uid] PAMUniversalSyncFolder uid + * @interface ICnappBehaviorUpdateRequest + * @property {number|null} [cnappDefaultBehaviorId] CnappBehaviorUpdateRequest cnappDefaultBehaviorId + * @property {string|null} [controlKey] CnappBehaviorUpdateRequest controlKey + * @property {number|null} [cnappActionTypeId] CnappBehaviorUpdateRequest cnappActionTypeId + * @property {boolean|null} [autoExecute] CnappBehaviorUpdateRequest autoExecute + * @property {boolean|null} [enabled] CnappBehaviorUpdateRequest enabled */ /** - * Constructs a new PAMUniversalSyncFolder. + * Constructs a new CnappBehaviorUpdateRequest. * @memberof PAM - * @classdesc Represents a PAMUniversalSyncFolder. - * @implements IPAMUniversalSyncFolder + * @classdesc Represents a CnappBehaviorUpdateRequest. + * @implements ICnappBehaviorUpdateRequest * @constructor - * @param {PAM.IPAMUniversalSyncFolder=} [properties] Properties to set + * @param {PAM.ICnappBehaviorUpdateRequest=} [properties] Properties to set */ - function PAMUniversalSyncFolder(properties) { + function CnappBehaviorUpdateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -266082,75 +298059,131 @@ export const PAM = $root.PAM = (() => { } /** - * PAMUniversalSyncFolder uid. - * @member {Uint8Array} uid - * @memberof PAM.PAMUniversalSyncFolder + * CnappBehaviorUpdateRequest cnappDefaultBehaviorId. + * @member {number} cnappDefaultBehaviorId + * @memberof PAM.CnappBehaviorUpdateRequest * @instance */ - PAMUniversalSyncFolder.prototype.uid = $util.newBuffer([]); + CnappBehaviorUpdateRequest.prototype.cnappDefaultBehaviorId = 0; /** - * Creates a new PAMUniversalSyncFolder instance using the specified properties. + * CnappBehaviorUpdateRequest controlKey. + * @member {string} controlKey + * @memberof PAM.CnappBehaviorUpdateRequest + * @instance + */ + CnappBehaviorUpdateRequest.prototype.controlKey = ""; + + /** + * CnappBehaviorUpdateRequest cnappActionTypeId. + * @member {number} cnappActionTypeId + * @memberof PAM.CnappBehaviorUpdateRequest + * @instance + */ + CnappBehaviorUpdateRequest.prototype.cnappActionTypeId = 0; + + /** + * CnappBehaviorUpdateRequest autoExecute. + * @member {boolean} autoExecute + * @memberof PAM.CnappBehaviorUpdateRequest + * @instance + */ + CnappBehaviorUpdateRequest.prototype.autoExecute = false; + + /** + * CnappBehaviorUpdateRequest enabled. + * @member {boolean} enabled + * @memberof PAM.CnappBehaviorUpdateRequest + * @instance + */ + CnappBehaviorUpdateRequest.prototype.enabled = false; + + /** + * Creates a new CnappBehaviorUpdateRequest instance using the specified properties. * @function create - * @memberof PAM.PAMUniversalSyncFolder + * @memberof PAM.CnappBehaviorUpdateRequest * @static - * @param {PAM.IPAMUniversalSyncFolder=} [properties] Properties to set - * @returns {PAM.PAMUniversalSyncFolder} PAMUniversalSyncFolder instance + * @param {PAM.ICnappBehaviorUpdateRequest=} [properties] Properties to set + * @returns {PAM.CnappBehaviorUpdateRequest} CnappBehaviorUpdateRequest instance */ - PAMUniversalSyncFolder.create = function create(properties) { - return new PAMUniversalSyncFolder(properties); + CnappBehaviorUpdateRequest.create = function create(properties) { + return new CnappBehaviorUpdateRequest(properties); }; /** - * Encodes the specified PAMUniversalSyncFolder message. Does not implicitly {@link PAM.PAMUniversalSyncFolder.verify|verify} messages. + * Encodes the specified CnappBehaviorUpdateRequest message. Does not implicitly {@link PAM.CnappBehaviorUpdateRequest.verify|verify} messages. * @function encode - * @memberof PAM.PAMUniversalSyncFolder + * @memberof PAM.CnappBehaviorUpdateRequest * @static - * @param {PAM.IPAMUniversalSyncFolder} message PAMUniversalSyncFolder message or plain object to encode + * @param {PAM.ICnappBehaviorUpdateRequest} message CnappBehaviorUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMUniversalSyncFolder.encode = function encode(message, writer) { + CnappBehaviorUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); + if (message.cnappDefaultBehaviorId != null && Object.hasOwnProperty.call(message, "cnappDefaultBehaviorId")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.cnappDefaultBehaviorId); + if (message.controlKey != null && Object.hasOwnProperty.call(message, "controlKey")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.controlKey); + if (message.cnappActionTypeId != null && Object.hasOwnProperty.call(message, "cnappActionTypeId")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.cnappActionTypeId); + if (message.autoExecute != null && Object.hasOwnProperty.call(message, "autoExecute")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.autoExecute); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enabled); return writer; }; /** - * Encodes the specified PAMUniversalSyncFolder message, length delimited. Does not implicitly {@link PAM.PAMUniversalSyncFolder.verify|verify} messages. + * Encodes the specified CnappBehaviorUpdateRequest message, length delimited. Does not implicitly {@link PAM.CnappBehaviorUpdateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMUniversalSyncFolder + * @memberof PAM.CnappBehaviorUpdateRequest * @static - * @param {PAM.IPAMUniversalSyncFolder} message PAMUniversalSyncFolder message or plain object to encode + * @param {PAM.ICnappBehaviorUpdateRequest} message CnappBehaviorUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMUniversalSyncFolder.encodeDelimited = function encodeDelimited(message, writer) { + CnappBehaviorUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMUniversalSyncFolder message from the specified reader or buffer. + * Decodes a CnappBehaviorUpdateRequest message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMUniversalSyncFolder + * @memberof PAM.CnappBehaviorUpdateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMUniversalSyncFolder} PAMUniversalSyncFolder + * @returns {PAM.CnappBehaviorUpdateRequest} CnappBehaviorUpdateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMUniversalSyncFolder.decode = function decode(reader, length) { + CnappBehaviorUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMUniversalSyncFolder(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappBehaviorUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.uid = reader.bytes(); + message.cnappDefaultBehaviorId = reader.int32(); + break; + } + case 2: { + message.controlKey = reader.string(); + break; + } + case 3: { + message.cnappActionTypeId = reader.int32(); + break; + } + case 4: { + message.autoExecute = reader.bool(); + break; + } + case 5: { + message.enabled = reader.bool(); break; } default: @@ -266162,137 +298195,155 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMUniversalSyncFolder message from the specified reader or buffer, length delimited. + * Decodes a CnappBehaviorUpdateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMUniversalSyncFolder + * @memberof PAM.CnappBehaviorUpdateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMUniversalSyncFolder} PAMUniversalSyncFolder + * @returns {PAM.CnappBehaviorUpdateRequest} CnappBehaviorUpdateRequest * @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) { + CnappBehaviorUpdateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMUniversalSyncFolder message. + * Verifies a CnappBehaviorUpdateRequest message. * @function verify - * @memberof PAM.PAMUniversalSyncFolder + * @memberof PAM.CnappBehaviorUpdateRequest * @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) { + CnappBehaviorUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.cnappDefaultBehaviorId != null && message.hasOwnProperty("cnappDefaultBehaviorId")) + if (!$util.isInteger(message.cnappDefaultBehaviorId)) + return "cnappDefaultBehaviorId: integer expected"; + if (message.controlKey != null && message.hasOwnProperty("controlKey")) + if (!$util.isString(message.controlKey)) + return "controlKey: string expected"; + if (message.cnappActionTypeId != null && message.hasOwnProperty("cnappActionTypeId")) + if (!$util.isInteger(message.cnappActionTypeId)) + return "cnappActionTypeId: integer expected"; + if (message.autoExecute != null && message.hasOwnProperty("autoExecute")) + if (typeof message.autoExecute !== "boolean") + return "autoExecute: boolean expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; return null; }; /** - * Creates a PAMUniversalSyncFolder message from a plain object. Also converts values to their respective internal types. + * Creates a CnappBehaviorUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMUniversalSyncFolder + * @memberof PAM.CnappBehaviorUpdateRequest * @static * @param {Object.} object Plain object - * @returns {PAM.PAMUniversalSyncFolder} PAMUniversalSyncFolder + * @returns {PAM.CnappBehaviorUpdateRequest} CnappBehaviorUpdateRequest */ - PAMUniversalSyncFolder.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMUniversalSyncFolder) + CnappBehaviorUpdateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappBehaviorUpdateRequest) return object; - let message = new $root.PAM.PAMUniversalSyncFolder(); - if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; + let message = new $root.PAM.CnappBehaviorUpdateRequest(); + if (object.cnappDefaultBehaviorId != null) + message.cnappDefaultBehaviorId = object.cnappDefaultBehaviorId | 0; + if (object.controlKey != null) + message.controlKey = String(object.controlKey); + if (object.cnappActionTypeId != null) + message.cnappActionTypeId = object.cnappActionTypeId | 0; + if (object.autoExecute != null) + message.autoExecute = Boolean(object.autoExecute); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); return message; }; /** - * Creates a plain object from a PAMUniversalSyncFolder message. Also converts values to other types if specified. + * Creates a plain object from a CnappBehaviorUpdateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMUniversalSyncFolder + * @memberof PAM.CnappBehaviorUpdateRequest * @static - * @param {PAM.PAMUniversalSyncFolder} message PAMUniversalSyncFolder + * @param {PAM.CnappBehaviorUpdateRequest} message CnappBehaviorUpdateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMUniversalSyncFolder.toObject = function toObject(message, options) { + CnappBehaviorUpdateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - if (options.bytes === String) - object.uid = ""; - else { - object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); - } - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; + if (options.defaults) { + object.cnappDefaultBehaviorId = 0; + object.controlKey = ""; + object.cnappActionTypeId = 0; + object.autoExecute = false; + object.enabled = false; + } + if (message.cnappDefaultBehaviorId != null && message.hasOwnProperty("cnappDefaultBehaviorId")) + object.cnappDefaultBehaviorId = message.cnappDefaultBehaviorId; + if (message.controlKey != null && message.hasOwnProperty("controlKey")) + object.controlKey = message.controlKey; + if (message.cnappActionTypeId != null && message.hasOwnProperty("cnappActionTypeId")) + object.cnappActionTypeId = message.cnappActionTypeId; + if (message.autoExecute != null && message.hasOwnProperty("autoExecute")) + object.autoExecute = message.autoExecute; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; return object; }; /** - * Converts this PAMUniversalSyncFolder to JSON. + * Converts this CnappBehaviorUpdateRequest to JSON. * @function toJSON - * @memberof PAM.PAMUniversalSyncFolder + * @memberof PAM.CnappBehaviorUpdateRequest * @instance * @returns {Object.} JSON object */ - PAMUniversalSyncFolder.prototype.toJSON = function toJSON() { + CnappBehaviorUpdateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMUniversalSyncFolder + * Gets the default type url for CnappBehaviorUpdateRequest * @function getTypeUrl - * @memberof PAM.PAMUniversalSyncFolder + * @memberof PAM.CnappBehaviorUpdateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMUniversalSyncFolder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CnappBehaviorUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMUniversalSyncFolder"; + return typeUrlPrefix + "/PAM.CnappBehaviorUpdateRequest"; }; - return PAMUniversalSyncFolder; + return CnappBehaviorUpdateRequest; })(); - PAM.PAMUniversalSyncConfig = (function() { + PAM.CnappBehaviorDeleteRequest = (function() { /** - * Properties of a PAMUniversalSyncConfig. + * Properties of a CnappBehaviorDeleteRequest. * @memberof PAM - * @interface IPAMUniversalSyncConfig - * @property {Uint8Array|null} [networkUid] PAMUniversalSyncConfig networkUid - * @property {boolean|null} [enabled] PAMUniversalSyncConfig enabled - * @property {boolean|null} [dryRunEnabled] PAMUniversalSyncConfig dryRunEnabled - * @property {Array.|null} [folders] PAMUniversalSyncConfig folders - * @property {Uint8Array|null} [syncIdentity] PAMUniversalSyncConfig syncIdentity - * @property {Uint8Array|null} [vaultName] PAMUniversalSyncConfig vaultName + * @interface ICnappBehaviorDeleteRequest + * @property {number|null} [cnappDefaultBehaviorId] CnappBehaviorDeleteRequest cnappDefaultBehaviorId */ /** - * Constructs a new PAMUniversalSyncConfig. + * Constructs a new CnappBehaviorDeleteRequest. * @memberof PAM - * @classdesc Represents a PAMUniversalSyncConfig. - * @implements IPAMUniversalSyncConfig + * @classdesc Represents a CnappBehaviorDeleteRequest. + * @implements ICnappBehaviorDeleteRequest * @constructor - * @param {PAM.IPAMUniversalSyncConfig=} [properties] Properties to set + * @param {PAM.ICnappBehaviorDeleteRequest=} [properties] Properties to set */ - function PAMUniversalSyncConfig(properties) { - this.folders = []; + function CnappBehaviorDeleteRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -266300,195 +298351,75 @@ export const PAM = $root.PAM = (() => { } /** - * PAMUniversalSyncConfig networkUid. - * @member {Uint8Array} networkUid - * @memberof PAM.PAMUniversalSyncConfig - * @instance - */ - PAMUniversalSyncConfig.prototype.networkUid = $util.newBuffer([]); - - /** - * PAMUniversalSyncConfig enabled. - * @member {boolean|null|undefined} enabled - * @memberof PAM.PAMUniversalSyncConfig - * @instance - */ - PAMUniversalSyncConfig.prototype.enabled = null; - - /** - * PAMUniversalSyncConfig dryRunEnabled. - * @member {boolean|null|undefined} dryRunEnabled - * @memberof PAM.PAMUniversalSyncConfig - * @instance - */ - PAMUniversalSyncConfig.prototype.dryRunEnabled = null; - - /** - * PAMUniversalSyncConfig folders. - * @member {Array.} folders - * @memberof PAM.PAMUniversalSyncConfig - * @instance - */ - PAMUniversalSyncConfig.prototype.folders = $util.emptyArray; - - /** - * PAMUniversalSyncConfig syncIdentity. - * @member {Uint8Array|null|undefined} syncIdentity - * @memberof PAM.PAMUniversalSyncConfig - * @instance - */ - PAMUniversalSyncConfig.prototype.syncIdentity = null; - - /** - * PAMUniversalSyncConfig vaultName. - * @member {Uint8Array|null|undefined} vaultName - * @memberof PAM.PAMUniversalSyncConfig - * @instance - */ - PAMUniversalSyncConfig.prototype.vaultName = null; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; - - /** - * PAMUniversalSyncConfig _enabled. - * @member {"enabled"|undefined} _enabled - * @memberof PAM.PAMUniversalSyncConfig - * @instance - */ - Object.defineProperty(PAMUniversalSyncConfig.prototype, "_enabled", { - get: $util.oneOfGetter($oneOfFields = ["enabled"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * PAMUniversalSyncConfig _dryRunEnabled. - * @member {"dryRunEnabled"|undefined} _dryRunEnabled - * @memberof PAM.PAMUniversalSyncConfig - * @instance - */ - Object.defineProperty(PAMUniversalSyncConfig.prototype, "_dryRunEnabled", { - get: $util.oneOfGetter($oneOfFields = ["dryRunEnabled"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * PAMUniversalSyncConfig _syncIdentity. - * @member {"syncIdentity"|undefined} _syncIdentity - * @memberof PAM.PAMUniversalSyncConfig - * @instance - */ - Object.defineProperty(PAMUniversalSyncConfig.prototype, "_syncIdentity", { - get: $util.oneOfGetter($oneOfFields = ["syncIdentity"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * PAMUniversalSyncConfig _vaultName. - * @member {"vaultName"|undefined} _vaultName - * @memberof PAM.PAMUniversalSyncConfig + * CnappBehaviorDeleteRequest cnappDefaultBehaviorId. + * @member {number} cnappDefaultBehaviorId + * @memberof PAM.CnappBehaviorDeleteRequest * @instance */ - Object.defineProperty(PAMUniversalSyncConfig.prototype, "_vaultName", { - get: $util.oneOfGetter($oneOfFields = ["vaultName"]), - set: $util.oneOfSetter($oneOfFields) - }); + CnappBehaviorDeleteRequest.prototype.cnappDefaultBehaviorId = 0; /** - * Creates a new PAMUniversalSyncConfig instance using the specified properties. + * Creates a new CnappBehaviorDeleteRequest instance using the specified properties. * @function create - * @memberof PAM.PAMUniversalSyncConfig + * @memberof PAM.CnappBehaviorDeleteRequest * @static - * @param {PAM.IPAMUniversalSyncConfig=} [properties] Properties to set - * @returns {PAM.PAMUniversalSyncConfig} PAMUniversalSyncConfig instance + * @param {PAM.ICnappBehaviorDeleteRequest=} [properties] Properties to set + * @returns {PAM.CnappBehaviorDeleteRequest} CnappBehaviorDeleteRequest instance */ - PAMUniversalSyncConfig.create = function create(properties) { - return new PAMUniversalSyncConfig(properties); + CnappBehaviorDeleteRequest.create = function create(properties) { + return new CnappBehaviorDeleteRequest(properties); }; /** - * Encodes the specified PAMUniversalSyncConfig message. Does not implicitly {@link PAM.PAMUniversalSyncConfig.verify|verify} messages. + * Encodes the specified CnappBehaviorDeleteRequest message. Does not implicitly {@link PAM.CnappBehaviorDeleteRequest.verify|verify} messages. * @function encode - * @memberof PAM.PAMUniversalSyncConfig + * @memberof PAM.CnappBehaviorDeleteRequest * @static - * @param {PAM.IPAMUniversalSyncConfig} message PAMUniversalSyncConfig message or plain object to encode + * @param {PAM.ICnappBehaviorDeleteRequest} message CnappBehaviorDeleteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMUniversalSyncConfig.encode = function encode(message, writer) { + CnappBehaviorDeleteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.networkUid != null && Object.hasOwnProperty.call(message, "networkUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.networkUid); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enabled); - if (message.dryRunEnabled != null && Object.hasOwnProperty.call(message, "dryRunEnabled")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.dryRunEnabled); - if (message.folders != null && message.folders.length) - for (let i = 0; i < message.folders.length; ++i) - $root.PAM.PAMUniversalSyncFolder.encode(message.folders[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.syncIdentity != null && Object.hasOwnProperty.call(message, "syncIdentity")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.syncIdentity); - if (message.vaultName != null && Object.hasOwnProperty.call(message, "vaultName")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.vaultName); + if (message.cnappDefaultBehaviorId != null && Object.hasOwnProperty.call(message, "cnappDefaultBehaviorId")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.cnappDefaultBehaviorId); return writer; }; /** - * Encodes the specified PAMUniversalSyncConfig message, length delimited. Does not implicitly {@link PAM.PAMUniversalSyncConfig.verify|verify} messages. + * Encodes the specified CnappBehaviorDeleteRequest message, length delimited. Does not implicitly {@link PAM.CnappBehaviorDeleteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof PAM.PAMUniversalSyncConfig + * @memberof PAM.CnappBehaviorDeleteRequest * @static - * @param {PAM.IPAMUniversalSyncConfig} message PAMUniversalSyncConfig message or plain object to encode + * @param {PAM.ICnappBehaviorDeleteRequest} message CnappBehaviorDeleteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMUniversalSyncConfig.encodeDelimited = function encodeDelimited(message, writer) { + CnappBehaviorDeleteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PAMUniversalSyncConfig message from the specified reader or buffer. + * Decodes a CnappBehaviorDeleteRequest message from the specified reader or buffer. * @function decode - * @memberof PAM.PAMUniversalSyncConfig + * @memberof PAM.CnappBehaviorDeleteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {PAM.PAMUniversalSyncConfig} PAMUniversalSyncConfig + * @returns {PAM.CnappBehaviorDeleteRequest} CnappBehaviorDeleteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMUniversalSyncConfig.decode = function decode(reader, length) { + CnappBehaviorDeleteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMUniversalSyncConfig(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.CnappBehaviorDeleteRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.networkUid = reader.bytes(); - break; - } - case 2: { - message.enabled = reader.bool(); - break; - } - case 3: { - message.dryRunEnabled = reader.bool(); - break; - } - case 4: { - if (!(message.folders && message.folders.length)) - message.folders = []; - message.folders.push($root.PAM.PAMUniversalSyncFolder.decode(reader, reader.uint32())); - break; - } - case 5: { - message.syncIdentity = reader.bytes(); - break; - } - case 6: { - message.vaultName = reader.bytes(); + message.cnappDefaultBehaviorId = reader.int32(); break; } default: @@ -266500,192 +298431,102 @@ export const PAM = $root.PAM = (() => { }; /** - * Decodes a PAMUniversalSyncConfig message from the specified reader or buffer, length delimited. + * Decodes a CnappBehaviorDeleteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof PAM.PAMUniversalSyncConfig + * @memberof PAM.CnappBehaviorDeleteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {PAM.PAMUniversalSyncConfig} PAMUniversalSyncConfig + * @returns {PAM.CnappBehaviorDeleteRequest} CnappBehaviorDeleteRequest * @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) { + CnappBehaviorDeleteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PAMUniversalSyncConfig message. + * Verifies a CnappBehaviorDeleteRequest message. * @function verify - * @memberof PAM.PAMUniversalSyncConfig + * @memberof PAM.CnappBehaviorDeleteRequest * @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) { + CnappBehaviorDeleteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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]); - 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"; - } + if (message.cnappDefaultBehaviorId != null && message.hasOwnProperty("cnappDefaultBehaviorId")) + if (!$util.isInteger(message.cnappDefaultBehaviorId)) + return "cnappDefaultBehaviorId: integer expected"; return null; }; /** - * Creates a PAMUniversalSyncConfig message from a plain object. Also converts values to their respective internal types. + * Creates a CnappBehaviorDeleteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof PAM.PAMUniversalSyncConfig + * @memberof PAM.CnappBehaviorDeleteRequest * @static * @param {Object.} object Plain object - * @returns {PAM.PAMUniversalSyncConfig} PAMUniversalSyncConfig + * @returns {PAM.CnappBehaviorDeleteRequest} CnappBehaviorDeleteRequest */ - PAMUniversalSyncConfig.fromObject = function fromObject(object) { - if (object instanceof $root.PAM.PAMUniversalSyncConfig) + CnappBehaviorDeleteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.PAM.CnappBehaviorDeleteRequest) return object; - let message = new $root.PAM.PAMUniversalSyncConfig(); - if (object.networkUid != null) - if (typeof object.networkUid === "string") - $util.base64.decode(object.networkUid, message.networkUid = $util.newBuffer($util.base64.length(object.networkUid)), 0); - else if (object.networkUid.length >= 0) - message.networkUid = object.networkUid; - if (object.enabled != null) - message.enabled = Boolean(object.enabled); - if (object.dryRunEnabled != null) - message.dryRunEnabled = Boolean(object.dryRunEnabled); - if (object.folders) { - if (!Array.isArray(object.folders)) - throw TypeError(".PAM.PAMUniversalSyncConfig.folders: array expected"); - message.folders = []; - for (let i = 0; i < object.folders.length; ++i) { - if (typeof object.folders[i] !== "object") - throw TypeError(".PAM.PAMUniversalSyncConfig.folders: object expected"); - message.folders[i] = $root.PAM.PAMUniversalSyncFolder.fromObject(object.folders[i]); - } - } - if (object.syncIdentity != null) - if (typeof object.syncIdentity === "string") - $util.base64.decode(object.syncIdentity, message.syncIdentity = $util.newBuffer($util.base64.length(object.syncIdentity)), 0); - else if (object.syncIdentity.length >= 0) - message.syncIdentity = object.syncIdentity; - if (object.vaultName != null) - if (typeof object.vaultName === "string") - $util.base64.decode(object.vaultName, message.vaultName = $util.newBuffer($util.base64.length(object.vaultName)), 0); - else if (object.vaultName.length >= 0) - message.vaultName = object.vaultName; + let message = new $root.PAM.CnappBehaviorDeleteRequest(); + if (object.cnappDefaultBehaviorId != null) + message.cnappDefaultBehaviorId = object.cnappDefaultBehaviorId | 0; return message; }; /** - * Creates a plain object from a PAMUniversalSyncConfig message. Also converts values to other types if specified. + * Creates a plain object from a CnappBehaviorDeleteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof PAM.PAMUniversalSyncConfig + * @memberof PAM.CnappBehaviorDeleteRequest * @static - * @param {PAM.PAMUniversalSyncConfig} message PAMUniversalSyncConfig + * @param {PAM.CnappBehaviorDeleteRequest} message CnappBehaviorDeleteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMUniversalSyncConfig.toObject = function toObject(message, options) { + CnappBehaviorDeleteRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.folders = []; if (options.defaults) - if (options.bytes === String) - object.networkUid = ""; - else { - object.networkUid = []; - if (options.bytes !== Array) - object.networkUid = $util.newBuffer(object.networkUid); - } - if (message.networkUid != null && message.hasOwnProperty("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")) { - object.enabled = message.enabled; - if (options.oneofs) - object._enabled = "enabled"; - } - if (message.dryRunEnabled != null && message.hasOwnProperty("dryRunEnabled")) { - object.dryRunEnabled = message.dryRunEnabled; - if (options.oneofs) - object._dryRunEnabled = "dryRunEnabled"; - } - if (message.folders && message.folders.length) { - object.folders = []; - for (let j = 0; j < message.folders.length; ++j) - object.folders[j] = $root.PAM.PAMUniversalSyncFolder.toObject(message.folders[j], options); - } - if (message.syncIdentity != null && message.hasOwnProperty("syncIdentity")) { - object.syncIdentity = options.bytes === String ? $util.base64.encode(message.syncIdentity, 0, message.syncIdentity.length) : options.bytes === Array ? Array.prototype.slice.call(message.syncIdentity) : message.syncIdentity; - if (options.oneofs) - object._syncIdentity = "syncIdentity"; - } - if (message.vaultName != null && message.hasOwnProperty("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"; - } + object.cnappDefaultBehaviorId = 0; + if (message.cnappDefaultBehaviorId != null && message.hasOwnProperty("cnappDefaultBehaviorId")) + object.cnappDefaultBehaviorId = message.cnappDefaultBehaviorId; return object; }; /** - * Converts this PAMUniversalSyncConfig to JSON. + * Converts this CnappBehaviorDeleteRequest to JSON. * @function toJSON - * @memberof PAM.PAMUniversalSyncConfig + * @memberof PAM.CnappBehaviorDeleteRequest * @instance * @returns {Object.} JSON object */ - PAMUniversalSyncConfig.prototype.toJSON = function toJSON() { + CnappBehaviorDeleteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PAMUniversalSyncConfig + * Gets the default type url for CnappBehaviorDeleteRequest * @function getTypeUrl - * @memberof PAM.PAMUniversalSyncConfig + * @memberof PAM.CnappBehaviorDeleteRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PAMUniversalSyncConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CnappBehaviorDeleteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/PAM.PAMUniversalSyncConfig"; + return typeUrlPrefix + "/PAM.CnappBehaviorDeleteRequest"; }; - return PAMUniversalSyncConfig; + return CnappBehaviorDeleteRequest; })(); return PAM; diff --git a/keeperapi/src/restMessages.ts b/keeperapi/src/restMessages.ts index b3af966..9e5b39d 100644 --- a/keeperapi/src/restMessages.ts +++ b/keeperapi/src/restMessages.ts @@ -16,6 +16,7 @@ import { Vault, Tokens, NotificationCenter, + record, } from './proto' // generated protobuf has all properties optional and nullable, while this is not an issue for KeeperApp, this type fixes it @@ -875,3 +876,13 @@ export const pamGetLeafsMessage = ( export const pamGetOnlineControllersMessage = (): RestOutMessage => createOutMessage('api/user/get_controllers', PAM.PAMOnlineControllers) + +export const keeperDriveRecordsAdd = ( + data: record.v3.IRecordsAddRequest +): RestMessage => + createMessage(data, '/vault/records/v3/add', record.v3.RecordsAddRequest, Records.RecordsModifyResponse) + +export const keeperDriveRecordsUpdate = ( + data: Records.IRecordsUpdateRequest +): RestMessage => + createMessage(data, '/vault/records/v3/update', Records.RecordsUpdateRequest, Records.RecordsModifyResponse)