UNPKG

@google-cloud/kms-inventory

Version:
842 lines (691 loc) 468 kB
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. import type {protobuf as $protobuf} from "google-gax"; import Long = require("long"); /** Namespace google. */ export namespace google { /** Namespace cloud. */ namespace cloud { /** Namespace kms. */ namespace kms { /** Namespace inventory. */ namespace inventory { /** Namespace v1. */ namespace v1 { /** Represents a KeyDashboardService */ class KeyDashboardService extends $protobuf.rpc.Service { /** * Constructs a new KeyDashboardService 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 KeyDashboardService 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): KeyDashboardService; /** * Calls ListCryptoKeys. * @param request ListCryptoKeysRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListCryptoKeysResponse */ public listCryptoKeys(request: google.cloud.kms.inventory.v1.IListCryptoKeysRequest, callback: google.cloud.kms.inventory.v1.KeyDashboardService.ListCryptoKeysCallback): void; /** * Calls ListCryptoKeys. * @param request ListCryptoKeysRequest message or plain object * @returns Promise */ public listCryptoKeys(request: google.cloud.kms.inventory.v1.IListCryptoKeysRequest): Promise<google.cloud.kms.inventory.v1.ListCryptoKeysResponse>; } namespace KeyDashboardService { /** * Callback as used by {@link google.cloud.kms.inventory.v1.KeyDashboardService|listCryptoKeys}. * @param error Error, if any * @param [response] ListCryptoKeysResponse */ type ListCryptoKeysCallback = (error: (Error|null), response?: google.cloud.kms.inventory.v1.ListCryptoKeysResponse) => void; } /** Properties of a ListCryptoKeysRequest. */ interface IListCryptoKeysRequest { /** ListCryptoKeysRequest parent */ parent?: (string|null); /** ListCryptoKeysRequest pageSize */ pageSize?: (number|null); /** ListCryptoKeysRequest pageToken */ pageToken?: (string|null); } /** Represents a ListCryptoKeysRequest. */ class ListCryptoKeysRequest implements IListCryptoKeysRequest { /** * Constructs a new ListCryptoKeysRequest. * @param [properties] Properties to set */ constructor(properties?: google.cloud.kms.inventory.v1.IListCryptoKeysRequest); /** ListCryptoKeysRequest parent. */ public parent: string; /** ListCryptoKeysRequest pageSize. */ public pageSize: number; /** ListCryptoKeysRequest pageToken. */ public pageToken: string; /** * Creates a new ListCryptoKeysRequest instance using the specified properties. * @param [properties] Properties to set * @returns ListCryptoKeysRequest instance */ public static create(properties?: google.cloud.kms.inventory.v1.IListCryptoKeysRequest): google.cloud.kms.inventory.v1.ListCryptoKeysRequest; /** * Encodes the specified ListCryptoKeysRequest message. Does not implicitly {@link google.cloud.kms.inventory.v1.ListCryptoKeysRequest.verify|verify} messages. * @param message ListCryptoKeysRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.kms.inventory.v1.IListCryptoKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ListCryptoKeysRequest message, length delimited. Does not implicitly {@link google.cloud.kms.inventory.v1.ListCryptoKeysRequest.verify|verify} messages. * @param message ListCryptoKeysRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.kms.inventory.v1.IListCryptoKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListCryptoKeysRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ListCryptoKeysRequest * @throws {Error} If the payload is 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.cloud.kms.inventory.v1.ListCryptoKeysRequest; /** * Decodes a ListCryptoKeysRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ListCryptoKeysRequest * @throws {Error} If the 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.cloud.kms.inventory.v1.ListCryptoKeysRequest; /** * Verifies a ListCryptoKeysRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a ListCryptoKeysRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ListCryptoKeysRequest */ public static fromObject(object: { [k: string]: any }): google.cloud.kms.inventory.v1.ListCryptoKeysRequest; /** * Creates a plain object from a ListCryptoKeysRequest message. Also converts values to other types if specified. * @param message ListCryptoKeysRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.kms.inventory.v1.ListCryptoKeysRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListCryptoKeysRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for ListCryptoKeysRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListCryptoKeysResponse. */ interface IListCryptoKeysResponse { /** ListCryptoKeysResponse cryptoKeys */ cryptoKeys?: (google.cloud.kms.v1.ICryptoKey[]|null); /** ListCryptoKeysResponse nextPageToken */ nextPageToken?: (string|null); } /** Represents a ListCryptoKeysResponse. */ class ListCryptoKeysResponse implements IListCryptoKeysResponse { /** * Constructs a new ListCryptoKeysResponse. * @param [properties] Properties to set */ constructor(properties?: google.cloud.kms.inventory.v1.IListCryptoKeysResponse); /** ListCryptoKeysResponse cryptoKeys. */ public cryptoKeys: google.cloud.kms.v1.ICryptoKey[]; /** ListCryptoKeysResponse nextPageToken. */ public nextPageToken: string; /** * Creates a new ListCryptoKeysResponse instance using the specified properties. * @param [properties] Properties to set * @returns ListCryptoKeysResponse instance */ public static create(properties?: google.cloud.kms.inventory.v1.IListCryptoKeysResponse): google.cloud.kms.inventory.v1.ListCryptoKeysResponse; /** * Encodes the specified ListCryptoKeysResponse message. Does not implicitly {@link google.cloud.kms.inventory.v1.ListCryptoKeysResponse.verify|verify} messages. * @param message ListCryptoKeysResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.kms.inventory.v1.IListCryptoKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ListCryptoKeysResponse message, length delimited. Does not implicitly {@link google.cloud.kms.inventory.v1.ListCryptoKeysResponse.verify|verify} messages. * @param message ListCryptoKeysResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.kms.inventory.v1.IListCryptoKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListCryptoKeysResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ListCryptoKeysResponse * @throws {Error} If the payload is 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.cloud.kms.inventory.v1.ListCryptoKeysResponse; /** * Decodes a ListCryptoKeysResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ListCryptoKeysResponse * @throws {Error} If the 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.cloud.kms.inventory.v1.ListCryptoKeysResponse; /** * Verifies a ListCryptoKeysResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a ListCryptoKeysResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ListCryptoKeysResponse */ public static fromObject(object: { [k: string]: any }): google.cloud.kms.inventory.v1.ListCryptoKeysResponse; /** * Creates a plain object from a ListCryptoKeysResponse message. Also converts values to other types if specified. * @param message ListCryptoKeysResponse * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.kms.inventory.v1.ListCryptoKeysResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListCryptoKeysResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for ListCryptoKeysResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Represents a KeyTrackingService */ class KeyTrackingService extends $protobuf.rpc.Service { /** * Constructs a new KeyTrackingService 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 KeyTrackingService 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): KeyTrackingService; /** * Calls GetProtectedResourcesSummary. * @param request GetProtectedResourcesSummaryRequest message or plain object * @param callback Node-style callback called with the error, if any, and ProtectedResourcesSummary */ public getProtectedResourcesSummary(request: google.cloud.kms.inventory.v1.IGetProtectedResourcesSummaryRequest, callback: google.cloud.kms.inventory.v1.KeyTrackingService.GetProtectedResourcesSummaryCallback): void; /** * Calls GetProtectedResourcesSummary. * @param request GetProtectedResourcesSummaryRequest message or plain object * @returns Promise */ public getProtectedResourcesSummary(request: google.cloud.kms.inventory.v1.IGetProtectedResourcesSummaryRequest): Promise<google.cloud.kms.inventory.v1.ProtectedResourcesSummary>; /** * Calls SearchProtectedResources. * @param request SearchProtectedResourcesRequest message or plain object * @param callback Node-style callback called with the error, if any, and SearchProtectedResourcesResponse */ public searchProtectedResources(request: google.cloud.kms.inventory.v1.ISearchProtectedResourcesRequest, callback: google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResourcesCallback): void; /** * Calls SearchProtectedResources. * @param request SearchProtectedResourcesRequest message or plain object * @returns Promise */ public searchProtectedResources(request: google.cloud.kms.inventory.v1.ISearchProtectedResourcesRequest): Promise<google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse>; } namespace KeyTrackingService { /** * Callback as used by {@link google.cloud.kms.inventory.v1.KeyTrackingService|getProtectedResourcesSummary}. * @param error Error, if any * @param [response] ProtectedResourcesSummary */ type GetProtectedResourcesSummaryCallback = (error: (Error|null), response?: google.cloud.kms.inventory.v1.ProtectedResourcesSummary) => void; /** * Callback as used by {@link google.cloud.kms.inventory.v1.KeyTrackingService|searchProtectedResources}. * @param error Error, if any * @param [response] SearchProtectedResourcesResponse */ type SearchProtectedResourcesCallback = (error: (Error|null), response?: google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse) => void; } /** Properties of a GetProtectedResourcesSummaryRequest. */ interface IGetProtectedResourcesSummaryRequest { /** GetProtectedResourcesSummaryRequest name */ name?: (string|null); } /** Represents a GetProtectedResourcesSummaryRequest. */ class GetProtectedResourcesSummaryRequest implements IGetProtectedResourcesSummaryRequest { /** * Constructs a new GetProtectedResourcesSummaryRequest. * @param [properties] Properties to set */ constructor(properties?: google.cloud.kms.inventory.v1.IGetProtectedResourcesSummaryRequest); /** GetProtectedResourcesSummaryRequest name. */ public name: string; /** * Creates a new GetProtectedResourcesSummaryRequest instance using the specified properties. * @param [properties] Properties to set * @returns GetProtectedResourcesSummaryRequest instance */ public static create(properties?: google.cloud.kms.inventory.v1.IGetProtectedResourcesSummaryRequest): google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest; /** * Encodes the specified GetProtectedResourcesSummaryRequest message. Does not implicitly {@link google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.verify|verify} messages. * @param message GetProtectedResourcesSummaryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.kms.inventory.v1.IGetProtectedResourcesSummaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified GetProtectedResourcesSummaryRequest message, length delimited. Does not implicitly {@link google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.verify|verify} messages. * @param message GetProtectedResourcesSummaryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.kms.inventory.v1.IGetProtectedResourcesSummaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetProtectedResourcesSummaryRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns GetProtectedResourcesSummaryRequest * @throws {Error} If the payload is 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.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest; /** * Decodes a GetProtectedResourcesSummaryRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns GetProtectedResourcesSummaryRequest * @throws {Error} If the 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.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest; /** * Verifies a GetProtectedResourcesSummaryRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a GetProtectedResourcesSummaryRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns GetProtectedResourcesSummaryRequest */ public static fromObject(object: { [k: string]: any }): google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest; /** * Creates a plain object from a GetProtectedResourcesSummaryRequest message. Also converts values to other types if specified. * @param message GetProtectedResourcesSummaryRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GetProtectedResourcesSummaryRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for GetProtectedResourcesSummaryRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ProtectedResourcesSummary. */ interface IProtectedResourcesSummary { /** ProtectedResourcesSummary name */ name?: (string|null); /** ProtectedResourcesSummary resourceCount */ resourceCount?: (number|Long|string|null); /** ProtectedResourcesSummary projectCount */ projectCount?: (number|null); /** ProtectedResourcesSummary resourceTypes */ resourceTypes?: ({ [k: string]: (number|Long|string) }|null); /** ProtectedResourcesSummary cloudProducts */ cloudProducts?: ({ [k: string]: (number|Long|string) }|null); /** ProtectedResourcesSummary locations */ locations?: ({ [k: string]: (number|Long|string) }|null); } /** Represents a ProtectedResourcesSummary. */ class ProtectedResourcesSummary implements IProtectedResourcesSummary { /** * Constructs a new ProtectedResourcesSummary. * @param [properties] Properties to set */ constructor(properties?: google.cloud.kms.inventory.v1.IProtectedResourcesSummary); /** ProtectedResourcesSummary name. */ public name: string; /** ProtectedResourcesSummary resourceCount. */ public resourceCount: (number|Long|string); /** ProtectedResourcesSummary projectCount. */ public projectCount: number; /** ProtectedResourcesSummary resourceTypes. */ public resourceTypes: { [k: string]: (number|Long|string) }; /** ProtectedResourcesSummary cloudProducts. */ public cloudProducts: { [k: string]: (number|Long|string) }; /** ProtectedResourcesSummary locations. */ public locations: { [k: string]: (number|Long|string) }; /** * Creates a new ProtectedResourcesSummary instance using the specified properties. * @param [properties] Properties to set * @returns ProtectedResourcesSummary instance */ public static create(properties?: google.cloud.kms.inventory.v1.IProtectedResourcesSummary): google.cloud.kms.inventory.v1.ProtectedResourcesSummary; /** * Encodes the specified ProtectedResourcesSummary message. Does not implicitly {@link google.cloud.kms.inventory.v1.ProtectedResourcesSummary.verify|verify} messages. * @param message ProtectedResourcesSummary message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.kms.inventory.v1.IProtectedResourcesSummary, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ProtectedResourcesSummary message, length delimited. Does not implicitly {@link google.cloud.kms.inventory.v1.ProtectedResourcesSummary.verify|verify} messages. * @param message ProtectedResourcesSummary message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.kms.inventory.v1.IProtectedResourcesSummary, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ProtectedResourcesSummary message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ProtectedResourcesSummary * @throws {Error} If the payload is 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.cloud.kms.inventory.v1.ProtectedResourcesSummary; /** * Decodes a ProtectedResourcesSummary message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ProtectedResourcesSummary * @throws {Error} If the 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.cloud.kms.inventory.v1.ProtectedResourcesSummary; /** * Verifies a ProtectedResourcesSummary message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a ProtectedResourcesSummary message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ProtectedResourcesSummary */ public static fromObject(object: { [k: string]: any }): google.cloud.kms.inventory.v1.ProtectedResourcesSummary; /** * Creates a plain object from a ProtectedResourcesSummary message. Also converts values to other types if specified. * @param message ProtectedResourcesSummary * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.kms.inventory.v1.ProtectedResourcesSummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ProtectedResourcesSummary to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for ProtectedResourcesSummary * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SearchProtectedResourcesRequest. */ interface ISearchProtectedResourcesRequest { /** SearchProtectedResourcesRequest scope */ scope?: (string|null); /** SearchProtectedResourcesRequest cryptoKey */ cryptoKey?: (string|null); /** SearchProtectedResourcesRequest pageSize */ pageSize?: (number|null); /** SearchProtectedResourcesRequest pageToken */ pageToken?: (string|null); /** SearchProtectedResourcesRequest resourceTypes */ resourceTypes?: (string[]|null); } /** Represents a SearchProtectedResourcesRequest. */ class SearchProtectedResourcesRequest implements ISearchProtectedResourcesRequest { /** * Constructs a new SearchProtectedResourcesRequest. * @param [properties] Properties to set */ constructor(properties?: google.cloud.kms.inventory.v1.ISearchProtectedResourcesRequest); /** SearchProtectedResourcesRequest scope. */ public scope: string; /** SearchProtectedResourcesRequest cryptoKey. */ public cryptoKey: string; /** SearchProtectedResourcesRequest pageSize. */ public pageSize: number; /** SearchProtectedResourcesRequest pageToken. */ public pageToken: string; /** SearchProtectedResourcesRequest resourceTypes. */ public resourceTypes: string[]; /** * Creates a new SearchProtectedResourcesRequest instance using the specified properties. * @param [properties] Properties to set * @returns SearchProtectedResourcesRequest instance */ public static create(properties?: google.cloud.kms.inventory.v1.ISearchProtectedResourcesRequest): google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest; /** * Encodes the specified SearchProtectedResourcesRequest message. Does not implicitly {@link google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.verify|verify} messages. * @param message SearchProtectedResourcesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.kms.inventory.v1.ISearchProtectedResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified SearchProtectedResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.verify|verify} messages. * @param message SearchProtectedResourcesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.kms.inventory.v1.ISearchProtectedResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SearchProtectedResourcesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns SearchProtectedResourcesRequest * @throws {Error} If the payload is 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.cloud.kms.inventory.v1.SearchProtectedResourcesRequest; /** * Decodes a SearchProtectedResourcesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns SearchProtectedResourcesRequest * @throws {Error} If the 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.cloud.kms.inventory.v1.SearchProtectedResourcesRequest; /** * Verifies a SearchProtectedResourcesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a SearchProtectedResourcesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns SearchProtectedResourcesRequest */ public static fromObject(object: { [k: string]: any }): google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest; /** * Creates a plain object from a SearchProtectedResourcesRequest message. Also converts values to other types if specified. * @param message SearchProtectedResourcesRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this SearchProtectedResourcesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for SearchProtectedResourcesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SearchProtectedResourcesResponse. */ interface ISearchProtectedResourcesResponse { /** SearchProtectedResourcesResponse protectedResources */ protectedResources?: (google.cloud.kms.inventory.v1.IProtectedResource[]|null); /** SearchProtectedResourcesResponse nextPageToken */ nextPageToken?: (string|null); } /** Represents a SearchProtectedResourcesResponse. */ class SearchProtectedResourcesResponse implements ISearchProtectedResourcesResponse { /** * Constructs a new SearchProtectedResourcesResponse. * @param [properties] Properties to set */ constructor(properties?: google.cloud.kms.inventory.v1.ISearchProtectedResourcesResponse); /** SearchProtectedResourcesResponse protectedResources. */ public protectedResources: google.cloud.kms.inventory.v1.IProtectedResource[]; /** SearchProtectedResourcesResponse nextPageToken. */ public nextPageToken: string; /** * Creates a new SearchProtectedResourcesResponse instance using the specified properties. * @param [properties] Properties to set * @returns SearchProtectedResourcesResponse instance */ public static create(properties?: google.cloud.kms.inventory.v1.ISearchProtectedResourcesResponse): google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse; /** * Encodes the specified SearchProtectedResourcesResponse message. Does not implicitly {@link google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.verify|verify} messages. * @param message SearchProtectedResourcesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.kms.inventory.v1.ISearchProtectedResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified SearchProtectedResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.verify|verify} messages. * @param message SearchProtectedResourcesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.kms.inventory.v1.ISearchProtectedResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SearchProtectedResourcesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns SearchProtectedResourcesResponse * @throws {Error} If the payload is 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.cloud.kms.inventory.v1.SearchProtectedResourcesResponse; /** * Decodes a SearchProtectedResourcesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns SearchProtectedResourcesResponse * @throws {Error} If the 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.cloud.kms.inventory.v1.SearchProtectedResourcesResponse; /** * Verifies a SearchProtectedResourcesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a SearchProtectedResourcesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns SearchProtectedResourcesResponse */ public static fromObject(object: { [k: string]: any }): google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse; /** * Creates a plain object from a SearchProtectedResourcesResponse message. Also converts values to other types if specified. * @param message SearchProtectedResourcesResponse * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this SearchProtectedResourcesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for SearchProtectedResourcesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ProtectedResource. */ interface IProtectedResource { /** ProtectedResource name */ name?: (string|null); /** ProtectedResource project */ project?: (string|null); /** ProtectedResource projectId */ projectId?: (string|null); /** ProtectedResource cloudProduct */ cloudProduct?: (string|null); /** ProtectedResource resourceType */ resourceType?: (string|null); /** ProtectedResource location */ location?: (string|null); /** ProtectedResource labels */ labels?: ({ [k: string]: string }|null); /** ProtectedResource cryptoKeyVersion */ cryptoKeyVersion?: (string|null); /** ProtectedResource cryptoKeyVersions */ cryptoKeyVersions?: (string[]|null); /** ProtectedResource createTime */ createTime?: (google.protobuf.ITimestamp|null); } /** Represents a ProtectedResource. */ class ProtectedResource implements IProtectedResource { /** * Constructs a new ProtectedResource. * @param [properties] Propert