@google-cloud/storage-control
Version:
Cloud Storage API client for Node.js
948 lines (777 loc) • 500 kB
TypeScript
// 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 storage. */
namespace storage {
/** Namespace control. */
namespace control {
/** Namespace v2. */
namespace v2 {
/** Represents a StorageControl */
class StorageControl extends $protobuf.rpc.Service {
/**
* Constructs a new StorageControl 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 StorageControl 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): StorageControl;
/**
* Calls CreateFolder.
* @param request CreateFolderRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Folder
*/
public createFolder(request: google.storage.control.v2.ICreateFolderRequest, callback: google.storage.control.v2.StorageControl.CreateFolderCallback): void;
/**
* Calls CreateFolder.
* @param request CreateFolderRequest message or plain object
* @returns Promise
*/
public createFolder(request: google.storage.control.v2.ICreateFolderRequest): Promise<google.storage.control.v2.Folder>;
/**
* Calls DeleteFolder.
* @param request DeleteFolderRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Empty
*/
public deleteFolder(request: google.storage.control.v2.IDeleteFolderRequest, callback: google.storage.control.v2.StorageControl.DeleteFolderCallback): void;
/**
* Calls DeleteFolder.
* @param request DeleteFolderRequest message or plain object
* @returns Promise
*/
public deleteFolder(request: google.storage.control.v2.IDeleteFolderRequest): Promise<google.protobuf.Empty>;
/**
* 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.storage.control.v2.IGetFolderRequest, callback: google.storage.control.v2.StorageControl.GetFolderCallback): void;
/**
* Calls GetFolder.
* @param request GetFolderRequest message or plain object
* @returns Promise
*/
public getFolder(request: google.storage.control.v2.IGetFolderRequest): Promise<google.storage.control.v2.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.storage.control.v2.IListFoldersRequest, callback: google.storage.control.v2.StorageControl.ListFoldersCallback): void;
/**
* Calls ListFolders.
* @param request ListFoldersRequest message or plain object
* @returns Promise
*/
public listFolders(request: google.storage.control.v2.IListFoldersRequest): Promise<google.storage.control.v2.ListFoldersResponse>;
/**
* Calls RenameFolder.
* @param request RenameFolderRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Operation
*/
public renameFolder(request: google.storage.control.v2.IRenameFolderRequest, callback: google.storage.control.v2.StorageControl.RenameFolderCallback): void;
/**
* Calls RenameFolder.
* @param request RenameFolderRequest message or plain object
* @returns Promise
*/
public renameFolder(request: google.storage.control.v2.IRenameFolderRequest): Promise<google.longrunning.Operation>;
/**
* Calls GetStorageLayout.
* @param request GetStorageLayoutRequest message or plain object
* @param callback Node-style callback called with the error, if any, and StorageLayout
*/
public getStorageLayout(request: google.storage.control.v2.IGetStorageLayoutRequest, callback: google.storage.control.v2.StorageControl.GetStorageLayoutCallback): void;
/**
* Calls GetStorageLayout.
* @param request GetStorageLayoutRequest message or plain object
* @returns Promise
*/
public getStorageLayout(request: google.storage.control.v2.IGetStorageLayoutRequest): Promise<google.storage.control.v2.StorageLayout>;
/**
* Calls CreateManagedFolder.
* @param request CreateManagedFolderRequest message or plain object
* @param callback Node-style callback called with the error, if any, and ManagedFolder
*/
public createManagedFolder(request: google.storage.control.v2.ICreateManagedFolderRequest, callback: google.storage.control.v2.StorageControl.CreateManagedFolderCallback): void;
/**
* Calls CreateManagedFolder.
* @param request CreateManagedFolderRequest message or plain object
* @returns Promise
*/
public createManagedFolder(request: google.storage.control.v2.ICreateManagedFolderRequest): Promise<google.storage.control.v2.ManagedFolder>;
/**
* Calls DeleteManagedFolder.
* @param request DeleteManagedFolderRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Empty
*/
public deleteManagedFolder(request: google.storage.control.v2.IDeleteManagedFolderRequest, callback: google.storage.control.v2.StorageControl.DeleteManagedFolderCallback): void;
/**
* Calls DeleteManagedFolder.
* @param request DeleteManagedFolderRequest message or plain object
* @returns Promise
*/
public deleteManagedFolder(request: google.storage.control.v2.IDeleteManagedFolderRequest): Promise<google.protobuf.Empty>;
/**
* Calls GetManagedFolder.
* @param request GetManagedFolderRequest message or plain object
* @param callback Node-style callback called with the error, if any, and ManagedFolder
*/
public getManagedFolder(request: google.storage.control.v2.IGetManagedFolderRequest, callback: google.storage.control.v2.StorageControl.GetManagedFolderCallback): void;
/**
* Calls GetManagedFolder.
* @param request GetManagedFolderRequest message or plain object
* @returns Promise
*/
public getManagedFolder(request: google.storage.control.v2.IGetManagedFolderRequest): Promise<google.storage.control.v2.ManagedFolder>;
/**
* Calls ListManagedFolders.
* @param request ListManagedFoldersRequest message or plain object
* @param callback Node-style callback called with the error, if any, and ListManagedFoldersResponse
*/
public listManagedFolders(request: google.storage.control.v2.IListManagedFoldersRequest, callback: google.storage.control.v2.StorageControl.ListManagedFoldersCallback): void;
/**
* Calls ListManagedFolders.
* @param request ListManagedFoldersRequest message or plain object
* @returns Promise
*/
public listManagedFolders(request: google.storage.control.v2.IListManagedFoldersRequest): Promise<google.storage.control.v2.ListManagedFoldersResponse>;
}
namespace StorageControl {
/**
* Callback as used by {@link google.storage.control.v2.StorageControl|createFolder}.
* @param error Error, if any
* @param [response] Folder
*/
type CreateFolderCallback = (error: (Error|null), response?: google.storage.control.v2.Folder) => void;
/**
* Callback as used by {@link google.storage.control.v2.StorageControl|deleteFolder}.
* @param error Error, if any
* @param [response] Empty
*/
type DeleteFolderCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
/**
* Callback as used by {@link google.storage.control.v2.StorageControl|getFolder}.
* @param error Error, if any
* @param [response] Folder
*/
type GetFolderCallback = (error: (Error|null), response?: google.storage.control.v2.Folder) => void;
/**
* Callback as used by {@link google.storage.control.v2.StorageControl|listFolders}.
* @param error Error, if any
* @param [response] ListFoldersResponse
*/
type ListFoldersCallback = (error: (Error|null), response?: google.storage.control.v2.ListFoldersResponse) => void;
/**
* Callback as used by {@link google.storage.control.v2.StorageControl|renameFolder}.
* @param error Error, if any
* @param [response] Operation
*/
type RenameFolderCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
/**
* Callback as used by {@link google.storage.control.v2.StorageControl|getStorageLayout}.
* @param error Error, if any
* @param [response] StorageLayout
*/
type GetStorageLayoutCallback = (error: (Error|null), response?: google.storage.control.v2.StorageLayout) => void;
/**
* Callback as used by {@link google.storage.control.v2.StorageControl|createManagedFolder}.
* @param error Error, if any
* @param [response] ManagedFolder
*/
type CreateManagedFolderCallback = (error: (Error|null), response?: google.storage.control.v2.ManagedFolder) => void;
/**
* Callback as used by {@link google.storage.control.v2.StorageControl|deleteManagedFolder}.
* @param error Error, if any
* @param [response] Empty
*/
type DeleteManagedFolderCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
/**
* Callback as used by {@link google.storage.control.v2.StorageControl|getManagedFolder}.
* @param error Error, if any
* @param [response] ManagedFolder
*/
type GetManagedFolderCallback = (error: (Error|null), response?: google.storage.control.v2.ManagedFolder) => void;
/**
* Callback as used by {@link google.storage.control.v2.StorageControl|listManagedFolders}.
* @param error Error, if any
* @param [response] ListManagedFoldersResponse
*/
type ListManagedFoldersCallback = (error: (Error|null), response?: google.storage.control.v2.ListManagedFoldersResponse) => void;
}
/** Properties of a PendingRenameInfo. */
interface IPendingRenameInfo {
/** PendingRenameInfo operation */
operation?: (string|null);
}
/** Represents a PendingRenameInfo. */
class PendingRenameInfo implements IPendingRenameInfo {
/**
* Constructs a new PendingRenameInfo.
* @param [properties] Properties to set
*/
constructor(properties?: google.storage.control.v2.IPendingRenameInfo);
/** PendingRenameInfo operation. */
public operation: string;
/**
* Creates a new PendingRenameInfo instance using the specified properties.
* @param [properties] Properties to set
* @returns PendingRenameInfo instance
*/
public static create(properties?: google.storage.control.v2.IPendingRenameInfo): google.storage.control.v2.PendingRenameInfo;
/**
* Encodes the specified PendingRenameInfo message. Does not implicitly {@link google.storage.control.v2.PendingRenameInfo.verify|verify} messages.
* @param message PendingRenameInfo message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.storage.control.v2.IPendingRenameInfo, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified PendingRenameInfo message, length delimited. Does not implicitly {@link google.storage.control.v2.PendingRenameInfo.verify|verify} messages.
* @param message PendingRenameInfo message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.storage.control.v2.IPendingRenameInfo, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a PendingRenameInfo message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns PendingRenameInfo
* @throws {Error} If the payload is 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.storage.control.v2.PendingRenameInfo;
/**
* Decodes a PendingRenameInfo message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns PendingRenameInfo
* @throws {Error} If the 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.storage.control.v2.PendingRenameInfo;
/**
* Verifies a PendingRenameInfo message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a PendingRenameInfo message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns PendingRenameInfo
*/
public static fromObject(object: { [k: string]: any }): google.storage.control.v2.PendingRenameInfo;
/**
* Creates a plain object from a PendingRenameInfo message. Also converts values to other types if specified.
* @param message PendingRenameInfo
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.storage.control.v2.PendingRenameInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this PendingRenameInfo to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for PendingRenameInfo
* @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 {
/** Folder name */
name?: (string|null);
/** Folder metageneration */
metageneration?: (number|Long|string|null);
/** Folder createTime */
createTime?: (google.protobuf.ITimestamp|null);
/** Folder updateTime */
updateTime?: (google.protobuf.ITimestamp|null);
/** Folder pendingRenameInfo */
pendingRenameInfo?: (google.storage.control.v2.IPendingRenameInfo|null);
}
/** Represents a Folder. */
class Folder implements IFolder {
/**
* Constructs a new Folder.
* @param [properties] Properties to set
*/
constructor(properties?: google.storage.control.v2.IFolder);
/** Folder name. */
public name: string;
/** Folder metageneration. */
public metageneration: (number|Long|string);
/** Folder createTime. */
public createTime?: (google.protobuf.ITimestamp|null);
/** Folder updateTime. */
public updateTime?: (google.protobuf.ITimestamp|null);
/** Folder pendingRenameInfo. */
public pendingRenameInfo?: (google.storage.control.v2.IPendingRenameInfo|null);
/**
* Creates a new Folder instance using the specified properties.
* @param [properties] Properties to set
* @returns Folder instance
*/
public static create(properties?: google.storage.control.v2.IFolder): google.storage.control.v2.Folder;
/**
* Encodes the specified Folder message. Does not implicitly {@link google.storage.control.v2.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.storage.control.v2.IFolder, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Folder message, length delimited. Does not implicitly {@link google.storage.control.v2.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.storage.control.v2.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.storage.control.v2.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.storage.control.v2.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.storage.control.v2.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.storage.control.v2.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;
}
/** Properties of a GetFolderRequest. */
interface IGetFolderRequest {
/** GetFolderRequest name */
name?: (string|null);
/** GetFolderRequest ifMetagenerationMatch */
ifMetagenerationMatch?: (number|Long|string|null);
/** GetFolderRequest ifMetagenerationNotMatch */
ifMetagenerationNotMatch?: (number|Long|string|null);
/** GetFolderRequest requestId */
requestId?: (string|null);
}
/** Represents a GetFolderRequest. */
class GetFolderRequest implements IGetFolderRequest {
/**
* Constructs a new GetFolderRequest.
* @param [properties] Properties to set
*/
constructor(properties?: google.storage.control.v2.IGetFolderRequest);
/** GetFolderRequest name. */
public name: string;
/** GetFolderRequest ifMetagenerationMatch. */
public ifMetagenerationMatch?: (number|Long|string|null);
/** GetFolderRequest ifMetagenerationNotMatch. */
public ifMetagenerationNotMatch?: (number|Long|string|null);
/** GetFolderRequest requestId. */
public requestId: string;
/** GetFolderRequest _ifMetagenerationMatch. */
public _ifMetagenerationMatch?: "ifMetagenerationMatch";
/** GetFolderRequest _ifMetagenerationNotMatch. */
public _ifMetagenerationNotMatch?: "ifMetagenerationNotMatch";
/**
* Creates a new GetFolderRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns GetFolderRequest instance
*/
public static create(properties?: google.storage.control.v2.IGetFolderRequest): google.storage.control.v2.GetFolderRequest;
/**
* Encodes the specified GetFolderRequest message. Does not implicitly {@link google.storage.control.v2.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.storage.control.v2.IGetFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified GetFolderRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.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.storage.control.v2.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.storage.control.v2.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.storage.control.v2.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.storage.control.v2.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.storage.control.v2.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 CreateFolderRequest. */
interface ICreateFolderRequest {
/** CreateFolderRequest parent */
parent?: (string|null);
/** CreateFolderRequest folder */
folder?: (google.storage.control.v2.IFolder|null);
/** CreateFolderRequest folderId */
folderId?: (string|null);
/** CreateFolderRequest recursive */
recursive?: (boolean|null);
/** CreateFolderRequest requestId */
requestId?: (string|null);
}
/** Represents a CreateFolderRequest. */
class CreateFolderRequest implements ICreateFolderRequest {
/**
* Constructs a new CreateFolderRequest.
* @param [properties] Properties to set
*/
constructor(properties?: google.storage.control.v2.ICreateFolderRequest);
/** CreateFolderRequest parent. */
public parent: string;
/** CreateFolderRequest folder. */
public folder?: (google.storage.control.v2.IFolder|null);
/** CreateFolderRequest folderId. */
public folderId: string;
/** CreateFolderRequest recursive. */
public recursive: boolean;
/** CreateFolderRequest requestId. */
public requestId: string;
/**
* Creates a new CreateFolderRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns CreateFolderRequest instance
*/
public static create(properties?: google.storage.control.v2.ICreateFolderRequest): google.storage.control.v2.CreateFolderRequest;
/**
* Encodes the specified CreateFolderRequest message. Does not implicitly {@link google.storage.control.v2.CreateFolderRequest.verify|verify} messages.
* @param message CreateFolderRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.storage.control.v2.ICreateFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CreateFolderRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.CreateFolderRequest.verify|verify} messages.
* @param message CreateFolderRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.storage.control.v2.ICreateFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CreateFolderRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CreateFolderRequest
* @throws {Error} If the payload is 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.storage.control.v2.CreateFolderRequest;
/**
* Decodes a CreateFolderRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CreateFolderRequest
* @throws {Error} If the 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.storage.control.v2.CreateFolderRequest;
/**
* Verifies a CreateFolderRequest message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CreateFolderRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CreateFolderRequest
*/
public static fromObject(object: { [k: string]: any }): google.storage.control.v2.CreateFolderRequest;
/**
* Creates a plain object from a CreateFolderRequest message. Also converts values to other types if specified.
* @param message CreateFolderRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.storage.control.v2.CreateFolderRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CreateFolderRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for CreateFolderRequest
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a DeleteFolderRequest. */
interface IDeleteFolderRequest {
/** DeleteFolderRequest name */
name?: (string|null);
/** DeleteFolderRequest ifMetagenerationMatch */
ifMetagenerationMatch?: (number|Long|string|null);
/** DeleteFolderRequest ifMetagenerationNotMatch */
ifMetagenerationNotMatch?: (number|Long|string|null);
/** DeleteFolderRequest requestId */
requestId?: (string|null);
}
/** Represents a DeleteFolderRequest. */
class DeleteFolderRequest implements IDeleteFolderRequest {
/**
* Constructs a new DeleteFolderRequest.
* @param [properties] Properties to set
*/
constructor(properties?: google.storage.control.v2.IDeleteFolderRequest);
/** DeleteFolderRequest name. */
public name: string;
/** DeleteFolderRequest ifMetagenerationMatch. */
public ifMetagenerationMatch?: (number|Long|string|null);
/** DeleteFolderRequest ifMetagenerationNotMatch. */
public ifMetagenerationNotMatch?: (number|Long|string|null);
/** DeleteFolderRequest requestId. */
public requestId: string;
/** DeleteFolderRequest _ifMetagenerationMatch. */
public _ifMetagenerationMatch?: "ifMetagenerationMatch";
/** DeleteFolderRequest _ifMetagenerationNotMatch. */
public _ifMetagenerationNotMatch?: "ifMetagenerationNotMatch";
/**
* Creates a new DeleteFolderRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns DeleteFolderRequest instance
*/
public static create(properties?: google.storage.control.v2.IDeleteFolderRequest): google.storage.control.v2.DeleteFolderRequest;
/**
* Encodes the specified DeleteFolderRequest message. Does not implicitly {@link google.storage.control.v2.DeleteFolderRequest.verify|verify} messages.
* @param message DeleteFolderRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.storage.control.v2.IDeleteFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified DeleteFolderRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.DeleteFolderRequest.verify|verify} messages.
* @param message DeleteFolderRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.storage.control.v2.IDeleteFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a DeleteFolderRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns DeleteFolderRequest
* @throws {Error} If the payload is 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.storage.control.v2.DeleteFolderRequest;
/**
* Decodes a DeleteFolderRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns DeleteFolderRequest
* @throws {Error} If the 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.storage.control.v2.DeleteFolderRequest;
/**
* Verifies a DeleteFolderRequest message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a DeleteFolderRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns DeleteFolderRequest
*/
public static fromObject(object: { [k: string]: any }): google.storage.control.v2.DeleteFolderRequest;
/**
* Creates a plain object from a DeleteFolderRequest message. Also converts values to other types if specified.
* @param message DeleteFolderRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.storage.control.v2.DeleteFolderRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this DeleteFolderRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for DeleteFolderRequest
* @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 prefix */
prefix?: (string|null);
/** ListFoldersRequest delimiter */
delimiter?: (string|null);
/** ListFoldersRequest lexicographicStart */
lexicographicStart?: (string|null);
/** ListFoldersRequest lexicographicEnd */
lexicographicEnd?: (string|null);
/** ListFoldersRequest requestId */
requestId?: (string|null);
}
/** Represents a ListFoldersRequest. */
class ListFoldersRequest implements IListFoldersRequest {
/**
* Constructs a new ListFoldersRequest.
* @param [properties] Properties to set
*/
constructor(properties?: google.storage.control.v2.IListFoldersRequest);
/** ListFoldersRequest parent. */
public parent: string;
/** ListFoldersRequest pageSize. */
public pageSize: number;
/** ListFoldersRequest pageToken. */
public pageToken: string;
/** ListFoldersRequest prefix. */
public prefix: string;
/** ListFoldersRequest delimiter. */
public delimiter: string;
/** ListFoldersRequest lexicographicStart. */
public lexicographicStart: string;
/** ListFoldersRequest lexicographicEnd. */
public lexicographicEnd: string;
/** ListFoldersRequest requestId. */
public requestId: string;
/**
* Creates a new ListFoldersRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns ListFoldersRequest instance
*/
public static create(properties?: google.storage.control.v2.IListFoldersRequest): google.storage.control.v2.ListFoldersRequest;
/**
* Encodes the specified ListFoldersRequest message. Does not implicitly {@link google.storage.control.v2.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.storage.control.v2.IListFoldersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ListFoldersRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.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.storage.control.v2.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.storage.control.v2.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.storage.control.v2.ListFoldersRequest;
/**