UNPKG

@google-cloud/resource-manager

Version:
936 lines (778 loc) 941 kB
// Copyright 2026 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 resourcemanager. */ namespace resourcemanager { /** Namespace v3. */ namespace v3 { /** Represents a Folders */ class Folders extends $protobuf.rpc.Service { /** * Constructs a new Folders 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 Folders 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): Folders; /** * Calls GetFolder. * @param request GetFolderRequest message or plain object * @param callback Node-style callback called with the error, if any, and Folder */ public getFolder(request: google.cloud.resourcemanager.v3.IGetFolderRequest, callback: google.cloud.resourcemanager.v3.Folders.GetFolderCallback): void; /** * Calls GetFolder. * @param request GetFolderRequest message or plain object * @returns Promise */ public getFolder(request: google.cloud.resourcemanager.v3.IGetFolderRequest): Promise<google.cloud.resourcemanager.v3.Folder>; /** * Calls ListFolders. * @param request ListFoldersRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListFoldersResponse */ public listFolders(request: google.cloud.resourcemanager.v3.IListFoldersRequest, callback: google.cloud.resourcemanager.v3.Folders.ListFoldersCallback): void; /** * Calls ListFolders. * @param request ListFoldersRequest message or plain object * @returns Promise */ public listFolders(request: google.cloud.resourcemanager.v3.IListFoldersRequest): Promise<google.cloud.resourcemanager.v3.ListFoldersResponse>; /** * Calls SearchFolders. * @param request SearchFoldersRequest message or plain object * @param callback Node-style callback called with the error, if any, and SearchFoldersResponse */ public searchFolders(request: google.cloud.resourcemanager.v3.ISearchFoldersRequest, callback: google.cloud.resourcemanager.v3.Folders.SearchFoldersCallback): void; /** * Calls SearchFolders. * @param request SearchFoldersRequest message or plain object * @returns Promise */ public searchFolders(request: google.cloud.resourcemanager.v3.ISearchFoldersRequest): Promise<google.cloud.resourcemanager.v3.SearchFoldersResponse>; /** * Calls CreateFolder. * @param request CreateFolderRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public createFolder(request: google.cloud.resourcemanager.v3.ICreateFolderRequest, callback: google.cloud.resourcemanager.v3.Folders.CreateFolderCallback): void; /** * Calls CreateFolder. * @param request CreateFolderRequest message or plain object * @returns Promise */ public createFolder(request: google.cloud.resourcemanager.v3.ICreateFolderRequest): Promise<google.longrunning.Operation>; /** * Calls UpdateFolder. * @param request UpdateFolderRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public updateFolder(request: google.cloud.resourcemanager.v3.IUpdateFolderRequest, callback: google.cloud.resourcemanager.v3.Folders.UpdateFolderCallback): void; /** * Calls UpdateFolder. * @param request UpdateFolderRequest message or plain object * @returns Promise */ public updateFolder(request: google.cloud.resourcemanager.v3.IUpdateFolderRequest): Promise<google.longrunning.Operation>; /** * Calls MoveFolder. * @param request MoveFolderRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public moveFolder(request: google.cloud.resourcemanager.v3.IMoveFolderRequest, callback: google.cloud.resourcemanager.v3.Folders.MoveFolderCallback): void; /** * Calls MoveFolder. * @param request MoveFolderRequest message or plain object * @returns Promise */ public moveFolder(request: google.cloud.resourcemanager.v3.IMoveFolderRequest): Promise<google.longrunning.Operation>; /** * Calls DeleteFolder. * @param request DeleteFolderRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public deleteFolder(request: google.cloud.resourcemanager.v3.IDeleteFolderRequest, callback: google.cloud.resourcemanager.v3.Folders.DeleteFolderCallback): void; /** * Calls DeleteFolder. * @param request DeleteFolderRequest message or plain object * @returns Promise */ public deleteFolder(request: google.cloud.resourcemanager.v3.IDeleteFolderRequest): Promise<google.longrunning.Operation>; /** * Calls UndeleteFolder. * @param request UndeleteFolderRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public undeleteFolder(request: google.cloud.resourcemanager.v3.IUndeleteFolderRequest, callback: google.cloud.resourcemanager.v3.Folders.UndeleteFolderCallback): void; /** * Calls UndeleteFolder. * @param request UndeleteFolderRequest message or plain object * @returns Promise */ public undeleteFolder(request: google.cloud.resourcemanager.v3.IUndeleteFolderRequest): Promise<google.longrunning.Operation>; /** * Calls GetIamPolicy. * @param request GetIamPolicyRequest message or plain object * @param callback Node-style callback called with the error, if any, and Policy */ public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.cloud.resourcemanager.v3.Folders.GetIamPolicyCallback): void; /** * Calls GetIamPolicy. * @param request GetIamPolicyRequest message or plain object * @returns Promise */ public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>; /** * Calls SetIamPolicy. * @param request SetIamPolicyRequest message or plain object * @param callback Node-style callback called with the error, if any, and Policy */ public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.cloud.resourcemanager.v3.Folders.SetIamPolicyCallback): void; /** * Calls SetIamPolicy. * @param request SetIamPolicyRequest message or plain object * @returns Promise */ public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>; /** * Calls TestIamPermissions. * @param request TestIamPermissionsRequest message or plain object * @param callback Node-style callback called with the error, if any, and TestIamPermissionsResponse */ public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.cloud.resourcemanager.v3.Folders.TestIamPermissionsCallback): void; /** * Calls TestIamPermissions. * @param request TestIamPermissionsRequest message or plain object * @returns Promise */ public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>; } namespace Folders { /** * Callback as used by {@link google.cloud.resourcemanager.v3.Folders|getFolder}. * @param error Error, if any * @param [response] Folder */ type GetFolderCallback = (error: (Error|null), response?: google.cloud.resourcemanager.v3.Folder) => void; /** * Callback as used by {@link google.cloud.resourcemanager.v3.Folders|listFolders}. * @param error Error, if any * @param [response] ListFoldersResponse */ type ListFoldersCallback = (error: (Error|null), response?: google.cloud.resourcemanager.v3.ListFoldersResponse) => void; /** * Callback as used by {@link google.cloud.resourcemanager.v3.Folders|searchFolders}. * @param error Error, if any * @param [response] SearchFoldersResponse */ type SearchFoldersCallback = (error: (Error|null), response?: google.cloud.resourcemanager.v3.SearchFoldersResponse) => void; /** * Callback as used by {@link google.cloud.resourcemanager.v3.Folders|createFolder}. * @param error Error, if any * @param [response] Operation */ type CreateFolderCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.cloud.resourcemanager.v3.Folders|updateFolder}. * @param error Error, if any * @param [response] Operation */ type UpdateFolderCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.cloud.resourcemanager.v3.Folders|moveFolder}. * @param error Error, if any * @param [response] Operation */ type MoveFolderCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.cloud.resourcemanager.v3.Folders|deleteFolder}. * @param error Error, if any * @param [response] Operation */ type DeleteFolderCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.cloud.resourcemanager.v3.Folders|undeleteFolder}. * @param error Error, if any * @param [response] Operation */ type UndeleteFolderCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.cloud.resourcemanager.v3.Folders|getIamPolicy}. * @param error Error, if any * @param [response] Policy */ type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** * Callback as used by {@link google.cloud.resourcemanager.v3.Folders|setIamPolicy}. * @param error Error, if any * @param [response] Policy */ type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** * Callback as used by {@link google.cloud.resourcemanager.v3.Folders|testIamPermissions}. * @param error Error, if any * @param [response] TestIamPermissionsResponse */ type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void; } /** Properties of a Folder. */ interface IFolder { /** Folder name */ name?: (string|null); /** Folder parent */ parent?: (string|null); /** Folder displayName */ displayName?: (string|null); /** Folder state */ state?: (google.cloud.resourcemanager.v3.Folder.State|keyof typeof google.cloud.resourcemanager.v3.Folder.State|null); /** Folder createTime */ createTime?: (google.protobuf.ITimestamp|null); /** Folder updateTime */ updateTime?: (google.protobuf.ITimestamp|null); /** Folder deleteTime */ deleteTime?: (google.protobuf.ITimestamp|null); /** Folder etag */ etag?: (string|null); } /** Represents a Folder. */ class Folder implements IFolder { /** * Constructs a new Folder. * @param [properties] Properties to set */ constructor(properties?: google.cloud.resourcemanager.v3.IFolder); /** Folder name. */ public name: string; /** Folder parent. */ public parent: string; /** Folder displayName. */ public displayName: string; /** Folder state. */ public state: (google.cloud.resourcemanager.v3.Folder.State|keyof typeof google.cloud.resourcemanager.v3.Folder.State); /** Folder createTime. */ public createTime?: (google.protobuf.ITimestamp|null); /** Folder updateTime. */ public updateTime?: (google.protobuf.ITimestamp|null); /** Folder deleteTime. */ public deleteTime?: (google.protobuf.ITimestamp|null); /** Folder etag. */ public etag: string; /** * Creates a new Folder instance using the specified properties. * @param [properties] Properties to set * @returns Folder instance */ public static create(properties?: google.cloud.resourcemanager.v3.IFolder): google.cloud.resourcemanager.v3.Folder; /** * Encodes the specified Folder message. Does not implicitly {@link google.cloud.resourcemanager.v3.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: google.cloud.resourcemanager.v3.IFolder, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Folder message, length delimited. Does not implicitly {@link google.cloud.resourcemanager.v3.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: google.cloud.resourcemanager.v3.IFolder, writer?: $protobuf.Writer): $protobuf.Writer; /** * 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 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): google.cloud.resourcemanager.v3.Folder; /** * Decodes a Folder message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Folder * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.resourcemanager.v3.Folder; /** * Verifies a Folder message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Folder message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Folder */ public static fromObject(object: { [k: string]: any }): google.cloud.resourcemanager.v3.Folder; /** * 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: google.cloud.resourcemanager.v3.Folder, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Folder to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * 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; } namespace Folder { /** State enum. */ enum State { STATE_UNSPECIFIED = 0, ACTIVE = 1, DELETE_REQUESTED = 2 } } /** Properties of a GetFolderRequest. */ interface IGetFolderRequest { /** GetFolderRequest name */ name?: (string|null); } /** Represents a GetFolderRequest. */ class GetFolderRequest implements IGetFolderRequest { /** * Constructs a new GetFolderRequest. * @param [properties] Properties to set */ constructor(properties?: google.cloud.resourcemanager.v3.IGetFolderRequest); /** GetFolderRequest name. */ public name: string; /** * Creates a new GetFolderRequest instance using the specified properties. * @param [properties] Properties to set * @returns GetFolderRequest instance */ public static create(properties?: google.cloud.resourcemanager.v3.IGetFolderRequest): google.cloud.resourcemanager.v3.GetFolderRequest; /** * Encodes the specified GetFolderRequest message. Does not implicitly {@link google.cloud.resourcemanager.v3.GetFolderRequest.verify|verify} messages. * @param message GetFolderRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.resourcemanager.v3.IGetFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified GetFolderRequest message, length delimited. Does not implicitly {@link google.cloud.resourcemanager.v3.GetFolderRequest.verify|verify} messages. * @param message GetFolderRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.resourcemanager.v3.IGetFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetFolderRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns GetFolderRequest * @throws {Error} If the payload is 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.resourcemanager.v3.GetFolderRequest; /** * Decodes a GetFolderRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns GetFolderRequest * @throws {Error} If the 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.resourcemanager.v3.GetFolderRequest; /** * Verifies a GetFolderRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a GetFolderRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns GetFolderRequest */ public static fromObject(object: { [k: string]: any }): google.cloud.resourcemanager.v3.GetFolderRequest; /** * Creates a plain object from a GetFolderRequest message. Also converts values to other types if specified. * @param message GetFolderRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.resourcemanager.v3.GetFolderRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GetFolderRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for GetFolderRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListFoldersRequest. */ interface IListFoldersRequest { /** ListFoldersRequest parent */ parent?: (string|null); /** ListFoldersRequest pageSize */ pageSize?: (number|null); /** ListFoldersRequest pageToken */ pageToken?: (string|null); /** ListFoldersRequest showDeleted */ showDeleted?: (boolean|null); } /** Represents a ListFoldersRequest. */ class ListFoldersRequest implements IListFoldersRequest { /** * Constructs a new ListFoldersRequest. * @param [properties] Properties to set */ constructor(properties?: google.cloud.resourcemanager.v3.IListFoldersRequest); /** ListFoldersRequest parent. */ public parent: string; /** ListFoldersRequest pageSize. */ public pageSize: number; /** ListFoldersRequest pageToken. */ public pageToken: string; /** ListFoldersRequest showDeleted. */ public showDeleted: boolean; /** * Creates a new ListFoldersRequest instance using the specified properties. * @param [properties] Properties to set * @returns ListFoldersRequest instance */ public static create(properties?: google.cloud.resourcemanager.v3.IListFoldersRequest): google.cloud.resourcemanager.v3.ListFoldersRequest; /** * Encodes the specified ListFoldersRequest message. Does not implicitly {@link google.cloud.resourcemanager.v3.ListFoldersRequest.verify|verify} messages. * @param message ListFoldersRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.resourcemanager.v3.IListFoldersRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ListFoldersRequest message, length delimited. Does not implicitly {@link google.cloud.resourcemanager.v3.ListFoldersRequest.verify|verify} messages. * @param message ListFoldersRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.resourcemanager.v3.IListFoldersRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListFoldersRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ListFoldersRequest * @throws {Error} If the payload is 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.resourcemanager.v3.ListFoldersRequest; /** * Decodes a ListFoldersRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ListFoldersRequest * @throws {Error} If the 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.resourcemanager.v3.ListFoldersRequest; /** * Verifies a ListFoldersRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a ListFoldersRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ListFoldersRequest */ public static fromObject(object: { [k: string]: any }): google.cloud.resourcemanager.v3.ListFoldersRequest; /** * Creates a plain object from a ListFoldersRequest message. Also converts values to other types if specified. * @param message ListFoldersRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.resourcemanager.v3.ListFoldersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListFoldersRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for ListFoldersRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListFoldersResponse. */ interface IListFoldersResponse { /** ListFoldersResponse folders */ folders?: (google.cloud.resourcemanager.v3.IFolder[]|null); /** ListFoldersResponse nextPageToken */ nextPageToken?: (string|null); } /** Represents a ListFoldersResponse. */ class ListFoldersResponse implements IListFoldersResponse { /** * Constructs a new ListFoldersResponse. * @param [properties] Properties to set */ constructor(properties?: google.cloud.resourcemanager.v3.IListFoldersResponse); /** ListFoldersResponse folders. */ public folders: google.cloud.resourcemanager.v3.IFolder[]; /** ListFoldersResponse nextPageToken. */ public nextPageToken: string; /** * Creates a new ListFoldersResponse instance using the specified properties. * @param [properties] Properties to set * @returns ListFoldersResponse instance */ public static create(properties?: google.cloud.resourcemanager.v3.IListFoldersResponse): google.cloud.resourcemanager.v3.ListFoldersResponse; /** * Encodes the specified ListFoldersResponse message. Does not implicitly {@link google.cloud.resourcemanager.v3.ListFoldersResponse.verify|verify} messages. * @param message ListFoldersResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.resourcemanager.v3.IListFoldersResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ListFoldersResponse message, length delimited. Does not implicitly {@link google.cloud.resourcemanager.v3.ListFoldersResponse.verify|verify} messages. * @param message ListFoldersResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.resourcemanager.v3.IListFoldersResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListFoldersResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ListFoldersResponse * @throws {Error} If the payload is 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.resourcemanager.v3.ListFoldersResponse; /** * Decodes a ListFoldersResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ListFoldersResponse * @throws {Error} If the 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.resourcemanager.v3.ListFoldersResponse; /** * Verifies a ListFoldersResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a ListFoldersResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ListFoldersResponse */ public static fromObject(object: { [k: string]: any }): google.cloud.resourcemanager.v3.ListFoldersResponse; /** * Creates a plain object from a ListFoldersResponse message. Also converts values to other types if specified. * @param message ListFoldersResponse * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.resourcemanager.v3.ListFoldersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListFoldersResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for ListFoldersResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SearchFoldersRequest. */ interface ISearchFoldersRequest { /** SearchFoldersRequest pageSize */ pageSize?: (number|null); /** SearchFoldersRequest pageToken */ pageToken?: (string|null); /** SearchFoldersRequest query */ query?: (string|null); } /** Represents a SearchFoldersRequest. */ class SearchFoldersRequest implements ISearchFoldersRequest { /** * Constructs a new SearchFoldersRequest. * @param [properties] Properties to set */ constructor(properties?: google.cloud.resourcemanager.v3.ISearchFoldersRequest); /** SearchFoldersRequest pageSize. */ public pageSize: number; /** SearchFoldersRequest pageToken. */ public pageToken: string; /** SearchFoldersRequest query. */ public query: string; /** * Creates a new SearchFoldersRequest instance using the specified properties. * @param [properties] Properties to set * @returns SearchFoldersRequest instance */ public static create(properties?: google.cloud.resourcemanager.v3.ISearchFoldersRequest): google.cloud.resourcemanager.v3.SearchFoldersRequest; /** * Encodes the specified SearchFoldersRequest message. Does not implicitly {@link google.cloud.resourcemanager.v3.SearchFoldersRequest.verify|verify} messages. * @param message SearchFoldersRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.resourcemanager.v3.ISearchFoldersRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified SearchFoldersRequest message, length delimited. Does not implicitly {@link google.cloud.resourcemanager.v3.SearchFoldersRequest.verify|verify} messages. * @param message SearchFoldersRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.resourcemanager.v3.ISearchFoldersRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SearchFoldersRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns SearchFoldersRequest * @throws {Error} If the payload is 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.resourcemanager.v3.SearchFoldersRequest; /** * Decodes a SearchFoldersRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns SearchFoldersRequest * @throws {Error} If the 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.resourcemanager.v3.SearchFoldersRequest; /** * Verifies a SearchFoldersRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a SearchFoldersRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns SearchFoldersRequest */ public static fromObject(object: { [k: string]: any }): google.cloud.resourcemanager.v3.SearchFoldersRequest; /** * Creates a plain object from a SearchFoldersRequest message. Also converts values to other types if specified. * @param message SearchFoldersRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.resourcemanager.v3.SearchFoldersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this SearchFoldersRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for SearchFoldersRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SearchFoldersResponse. */ interface ISearchFoldersResponse { /** SearchFoldersResponse folders */ folders?: (google.cloud.resourcemanager.v3.IFolder[]|null); /** SearchFoldersResponse nextPageToken */ nextPageToken?: (string|null); } /** Represents a SearchFoldersResponse. */ class SearchFoldersResponse implements ISearchFoldersResponse { /** * Constructs a new SearchFoldersResponse. * @param [properties] Properties to set */ constructor(properties?: google.cloud.resourcemanager.v3.ISearchFoldersResponse); /** SearchFoldersResponse folders. */ public folders: google.cloud.resourcemanager.v3.IFolder[]; /** SearchFoldersResponse nextPageToken. */ public nextPageToken: string; /** * Creates a new SearchFoldersResponse instance using the specified properties. * @param [properties] Properties to set * @returns SearchFoldersResponse instance */ public static create(properties?: google.cloud.resourcemanager.v3.ISearchFoldersResponse): google.cloud.resourcemanager.v3.SearchFoldersResponse; /** * Encodes the specified SearchFoldersResponse message. Does not implicitly {@link google.cloud.resourcemanager.v3.SearchFoldersResponse.verify|verify} messages. * @param message SearchFoldersResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.resourcemanager.v3.ISearchFoldersResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified SearchFoldersResponse message, length delimited. Does not implicitly {@link google.cloud.resourcemanager.v3.SearchFoldersResponse.verify|verify} messages. * @param message SearchFoldersResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.resourcemanager.v3.ISearchFoldersResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SearchFoldersResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns SearchFoldersResponse * @throws {Error} If the payload is 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.resourcemanager.v3.SearchFoldersResponse; /** * Decodes a SearchFoldersResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns SearchFoldersResponse * @throws {Error} If the 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.resourcemanager.v3.SearchFoldersResponse; /** * Verifies a SearchFoldersResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a SearchFoldersResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns SearchFoldersResponse */ public sta