UNPKG

@google-cloud/bigtable

Version:
872 lines (740 loc) 2.05 MB
// 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 bigtable. */ namespace bigtable { /** Namespace admin. */ namespace admin { /** Namespace v2. */ namespace v2 { /** Represents a BigtableInstanceAdmin */ class BigtableInstanceAdmin extends $protobuf.rpc.Service { /** * Constructs a new BigtableInstanceAdmin 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 BigtableInstanceAdmin 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): BigtableInstanceAdmin; /** * Calls CreateInstance. * @param request CreateInstanceRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public createInstance(request: google.bigtable.admin.v2.ICreateInstanceRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstanceCallback): void; /** * Calls CreateInstance. * @param request CreateInstanceRequest message or plain object * @returns Promise */ public createInstance(request: google.bigtable.admin.v2.ICreateInstanceRequest): Promise<google.longrunning.Operation>; /** * Calls GetInstance. * @param request GetInstanceRequest message or plain object * @param callback Node-style callback called with the error, if any, and Instance */ public getInstance(request: google.bigtable.admin.v2.IGetInstanceRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstanceCallback): void; /** * Calls GetInstance. * @param request GetInstanceRequest message or plain object * @returns Promise */ public getInstance(request: google.bigtable.admin.v2.IGetInstanceRequest): Promise<google.bigtable.admin.v2.Instance>; /** * Calls ListInstances. * @param request ListInstancesRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListInstancesResponse */ public listInstances(request: google.bigtable.admin.v2.IListInstancesRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstancesCallback): void; /** * Calls ListInstances. * @param request ListInstancesRequest message or plain object * @returns Promise */ public listInstances(request: google.bigtable.admin.v2.IListInstancesRequest): Promise<google.bigtable.admin.v2.ListInstancesResponse>; /** * Calls UpdateInstance. * @param request Instance message or plain object * @param callback Node-style callback called with the error, if any, and Instance */ public updateInstance(request: google.bigtable.admin.v2.IInstance, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateInstanceCallback): void; /** * Calls UpdateInstance. * @param request Instance message or plain object * @returns Promise */ public updateInstance(request: google.bigtable.admin.v2.IInstance): Promise<google.bigtable.admin.v2.Instance>; /** * Calls PartialUpdateInstance. * @param request PartialUpdateInstanceRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public partialUpdateInstance(request: google.bigtable.admin.v2.IPartialUpdateInstanceRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateInstanceCallback): void; /** * Calls PartialUpdateInstance. * @param request PartialUpdateInstanceRequest message or plain object * @returns Promise */ public partialUpdateInstance(request: google.bigtable.admin.v2.IPartialUpdateInstanceRequest): Promise<google.longrunning.Operation>; /** * Calls DeleteInstance. * @param request DeleteInstanceRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ public deleteInstance(request: google.bigtable.admin.v2.IDeleteInstanceRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstanceCallback): void; /** * Calls DeleteInstance. * @param request DeleteInstanceRequest message or plain object * @returns Promise */ public deleteInstance(request: google.bigtable.admin.v2.IDeleteInstanceRequest): Promise<google.protobuf.Empty>; /** * Calls CreateCluster. * @param request CreateClusterRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public createCluster(request: google.bigtable.admin.v2.ICreateClusterRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.CreateClusterCallback): void; /** * Calls CreateCluster. * @param request CreateClusterRequest message or plain object * @returns Promise */ public createCluster(request: google.bigtable.admin.v2.ICreateClusterRequest): Promise<google.longrunning.Operation>; /** * Calls GetCluster. * @param request GetClusterRequest message or plain object * @param callback Node-style callback called with the error, if any, and Cluster */ public getCluster(request: google.bigtable.admin.v2.IGetClusterRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.GetClusterCallback): void; /** * Calls GetCluster. * @param request GetClusterRequest message or plain object * @returns Promise */ public getCluster(request: google.bigtable.admin.v2.IGetClusterRequest): Promise<google.bigtable.admin.v2.Cluster>; /** * Calls ListClusters. * @param request ListClustersRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListClustersResponse */ public listClusters(request: google.bigtable.admin.v2.IListClustersRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.ListClustersCallback): void; /** * Calls ListClusters. * @param request ListClustersRequest message or plain object * @returns Promise */ public listClusters(request: google.bigtable.admin.v2.IListClustersRequest): Promise<google.bigtable.admin.v2.ListClustersResponse>; /** * Calls UpdateCluster. * @param request Cluster message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public updateCluster(request: google.bigtable.admin.v2.ICluster, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateClusterCallback): void; /** * Calls UpdateCluster. * @param request Cluster message or plain object * @returns Promise */ public updateCluster(request: google.bigtable.admin.v2.ICluster): Promise<google.longrunning.Operation>; /** * Calls PartialUpdateCluster. * @param request PartialUpdateClusterRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public partialUpdateCluster(request: google.bigtable.admin.v2.IPartialUpdateClusterRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateClusterCallback): void; /** * Calls PartialUpdateCluster. * @param request PartialUpdateClusterRequest message or plain object * @returns Promise */ public partialUpdateCluster(request: google.bigtable.admin.v2.IPartialUpdateClusterRequest): Promise<google.longrunning.Operation>; /** * Calls DeleteCluster. * @param request DeleteClusterRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ public deleteCluster(request: google.bigtable.admin.v2.IDeleteClusterRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteClusterCallback): void; /** * Calls DeleteCluster. * @param request DeleteClusterRequest message or plain object * @returns Promise */ public deleteCluster(request: google.bigtable.admin.v2.IDeleteClusterRequest): Promise<google.protobuf.Empty>; /** * Calls CreateAppProfile. * @param request CreateAppProfileRequest message or plain object * @param callback Node-style callback called with the error, if any, and AppProfile */ public createAppProfile(request: google.bigtable.admin.v2.ICreateAppProfileRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfileCallback): void; /** * Calls CreateAppProfile. * @param request CreateAppProfileRequest message or plain object * @returns Promise */ public createAppProfile(request: google.bigtable.admin.v2.ICreateAppProfileRequest): Promise<google.bigtable.admin.v2.AppProfile>; /** * Calls GetAppProfile. * @param request GetAppProfileRequest message or plain object * @param callback Node-style callback called with the error, if any, and AppProfile */ public getAppProfile(request: google.bigtable.admin.v2.IGetAppProfileRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfileCallback): void; /** * Calls GetAppProfile. * @param request GetAppProfileRequest message or plain object * @returns Promise */ public getAppProfile(request: google.bigtable.admin.v2.IGetAppProfileRequest): Promise<google.bigtable.admin.v2.AppProfile>; /** * Calls ListAppProfiles. * @param request ListAppProfilesRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListAppProfilesResponse */ public listAppProfiles(request: google.bigtable.admin.v2.IListAppProfilesRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfilesCallback): void; /** * Calls ListAppProfiles. * @param request ListAppProfilesRequest message or plain object * @returns Promise */ public listAppProfiles(request: google.bigtable.admin.v2.IListAppProfilesRequest): Promise<google.bigtable.admin.v2.ListAppProfilesResponse>; /** * Calls UpdateAppProfile. * @param request UpdateAppProfileRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public updateAppProfile(request: google.bigtable.admin.v2.IUpdateAppProfileRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateAppProfileCallback): void; /** * Calls UpdateAppProfile. * @param request UpdateAppProfileRequest message or plain object * @returns Promise */ public updateAppProfile(request: google.bigtable.admin.v2.IUpdateAppProfileRequest): Promise<google.longrunning.Operation>; /** * Calls DeleteAppProfile. * @param request DeleteAppProfileRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ public deleteAppProfile(request: google.bigtable.admin.v2.IDeleteAppProfileRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfileCallback): void; /** * Calls DeleteAppProfile. * @param request DeleteAppProfileRequest message or plain object * @returns Promise */ public deleteAppProfile(request: google.bigtable.admin.v2.IDeleteAppProfileRequest): Promise<google.protobuf.Empty>; /** * 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.bigtable.admin.v2.BigtableInstanceAdmin.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.bigtable.admin.v2.BigtableInstanceAdmin.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.bigtable.admin.v2.BigtableInstanceAdmin.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>; /** * Calls ListHotTablets. * @param request ListHotTabletsRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListHotTabletsResponse */ public listHotTablets(request: google.bigtable.admin.v2.IListHotTabletsRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.ListHotTabletsCallback): void; /** * Calls ListHotTablets. * @param request ListHotTabletsRequest message or plain object * @returns Promise */ public listHotTablets(request: google.bigtable.admin.v2.IListHotTabletsRequest): Promise<google.bigtable.admin.v2.ListHotTabletsResponse>; /** * Calls CreateLogicalView. * @param request CreateLogicalViewRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public createLogicalView(request: google.bigtable.admin.v2.ICreateLogicalViewRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.CreateLogicalViewCallback): void; /** * Calls CreateLogicalView. * @param request CreateLogicalViewRequest message or plain object * @returns Promise */ public createLogicalView(request: google.bigtable.admin.v2.ICreateLogicalViewRequest): Promise<google.longrunning.Operation>; /** * Calls GetLogicalView. * @param request GetLogicalViewRequest message or plain object * @param callback Node-style callback called with the error, if any, and LogicalView */ public getLogicalView(request: google.bigtable.admin.v2.IGetLogicalViewRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.GetLogicalViewCallback): void; /** * Calls GetLogicalView. * @param request GetLogicalViewRequest message or plain object * @returns Promise */ public getLogicalView(request: google.bigtable.admin.v2.IGetLogicalViewRequest): Promise<google.bigtable.admin.v2.LogicalView>; /** * Calls ListLogicalViews. * @param request ListLogicalViewsRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListLogicalViewsResponse */ public listLogicalViews(request: google.bigtable.admin.v2.IListLogicalViewsRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.ListLogicalViewsCallback): void; /** * Calls ListLogicalViews. * @param request ListLogicalViewsRequest message or plain object * @returns Promise */ public listLogicalViews(request: google.bigtable.admin.v2.IListLogicalViewsRequest): Promise<google.bigtable.admin.v2.ListLogicalViewsResponse>; /** * Calls UpdateLogicalView. * @param request UpdateLogicalViewRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public updateLogicalView(request: google.bigtable.admin.v2.IUpdateLogicalViewRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateLogicalViewCallback): void; /** * Calls UpdateLogicalView. * @param request UpdateLogicalViewRequest message or plain object * @returns Promise */ public updateLogicalView(request: google.bigtable.admin.v2.IUpdateLogicalViewRequest): Promise<google.longrunning.Operation>; /** * Calls DeleteLogicalView. * @param request DeleteLogicalViewRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ public deleteLogicalView(request: google.bigtable.admin.v2.IDeleteLogicalViewRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteLogicalViewCallback): void; /** * Calls DeleteLogicalView. * @param request DeleteLogicalViewRequest message or plain object * @returns Promise */ public deleteLogicalView(request: google.bigtable.admin.v2.IDeleteLogicalViewRequest): Promise<google.protobuf.Empty>; /** * Calls CreateMaterializedView. * @param request CreateMaterializedViewRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public createMaterializedView(request: google.bigtable.admin.v2.ICreateMaterializedViewRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.CreateMaterializedViewCallback): void; /** * Calls CreateMaterializedView. * @param request CreateMaterializedViewRequest message or plain object * @returns Promise */ public createMaterializedView(request: google.bigtable.admin.v2.ICreateMaterializedViewRequest): Promise<google.longrunning.Operation>; /** * Calls GetMaterializedView. * @param request GetMaterializedViewRequest message or plain object * @param callback Node-style callback called with the error, if any, and MaterializedView */ public getMaterializedView(request: google.bigtable.admin.v2.IGetMaterializedViewRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.GetMaterializedViewCallback): void; /** * Calls GetMaterializedView. * @param request GetMaterializedViewRequest message or plain object * @returns Promise */ public getMaterializedView(request: google.bigtable.admin.v2.IGetMaterializedViewRequest): Promise<google.bigtable.admin.v2.MaterializedView>; /** * Calls ListMaterializedViews. * @param request ListMaterializedViewsRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListMaterializedViewsResponse */ public listMaterializedViews(request: google.bigtable.admin.v2.IListMaterializedViewsRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.ListMaterializedViewsCallback): void; /** * Calls ListMaterializedViews. * @param request ListMaterializedViewsRequest message or plain object * @returns Promise */ public listMaterializedViews(request: google.bigtable.admin.v2.IListMaterializedViewsRequest): Promise<google.bigtable.admin.v2.ListMaterializedViewsResponse>; /** * Calls UpdateMaterializedView. * @param request UpdateMaterializedViewRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public updateMaterializedView(request: google.bigtable.admin.v2.IUpdateMaterializedViewRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateMaterializedViewCallback): void; /** * Calls UpdateMaterializedView. * @param request UpdateMaterializedViewRequest message or plain object * @returns Promise */ public updateMaterializedView(request: google.bigtable.admin.v2.IUpdateMaterializedViewRequest): Promise<google.longrunning.Operation>; /** * Calls DeleteMaterializedView. * @param request DeleteMaterializedViewRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ public deleteMaterializedView(request: google.bigtable.admin.v2.IDeleteMaterializedViewRequest, callback: google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteMaterializedViewCallback): void; /** * Calls DeleteMaterializedView. * @param request DeleteMaterializedViewRequest message or plain object * @returns Promise */ public deleteMaterializedView(request: google.bigtable.admin.v2.IDeleteMaterializedViewRequest): Promise<google.protobuf.Empty>; } namespace BigtableInstanceAdmin { /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createInstance}. * @param error Error, if any * @param [response] Operation */ type CreateInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getInstance}. * @param error Error, if any * @param [response] Instance */ type GetInstanceCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Instance) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listInstances}. * @param error Error, if any * @param [response] ListInstancesResponse */ type ListInstancesCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListInstancesResponse) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateInstance}. * @param error Error, if any * @param [response] Instance */ type UpdateInstanceCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Instance) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|partialUpdateInstance}. * @param error Error, if any * @param [response] Operation */ type PartialUpdateInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteInstance}. * @param error Error, if any * @param [response] Empty */ type DeleteInstanceCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createCluster}. * @param error Error, if any * @param [response] Operation */ type CreateClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getCluster}. * @param error Error, if any * @param [response] Cluster */ type GetClusterCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Cluster) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listClusters}. * @param error Error, if any * @param [response] ListClustersResponse */ type ListClustersCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListClustersResponse) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateCluster}. * @param error Error, if any * @param [response] Operation */ type UpdateClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|partialUpdateCluster}. * @param error Error, if any * @param [response] Operation */ type PartialUpdateClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteCluster}. * @param error Error, if any * @param [response] Empty */ type DeleteClusterCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createAppProfile}. * @param error Error, if any * @param [response] AppProfile */ type CreateAppProfileCallback = (error: (Error|null), response?: google.bigtable.admin.v2.AppProfile) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getAppProfile}. * @param error Error, if any * @param [response] AppProfile */ type GetAppProfileCallback = (error: (Error|null), response?: google.bigtable.admin.v2.AppProfile) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listAppProfiles}. * @param error Error, if any * @param [response] ListAppProfilesResponse */ type ListAppProfilesCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListAppProfilesResponse) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateAppProfile}. * @param error Error, if any * @param [response] Operation */ type UpdateAppProfileCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteAppProfile}. * @param error Error, if any * @param [response] Empty */ type DeleteAppProfileCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|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.bigtable.admin.v2.BigtableInstanceAdmin|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.bigtable.admin.v2.BigtableInstanceAdmin|testIamPermissions}. * @param error Error, if any * @param [response] TestIamPermissionsResponse */ type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listHotTablets}. * @param error Error, if any * @param [response] ListHotTabletsResponse */ type ListHotTabletsCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListHotTabletsResponse) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createLogicalView}. * @param error Error, if any * @param [response] Operation */ type CreateLogicalViewCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getLogicalView}. * @param error Error, if any * @param [response] LogicalView */ type GetLogicalViewCallback = (error: (Error|null), response?: google.bigtable.admin.v2.LogicalView) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listLogicalViews}. * @param error Error, if any * @param [response] ListLogicalViewsResponse */ type ListLogicalViewsCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListLogicalViewsResponse) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateLogicalView}. * @param error Error, if any * @param [response] Operation */ type UpdateLogicalViewCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteLogicalView}. * @param error Error, if any * @param [response] Empty */ type DeleteLogicalViewCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createMaterializedView}. * @param error Error, if any * @param [response] Operation */ type CreateMaterializedViewCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getMaterializedView}. * @param error Error, if any * @param [response] MaterializedView */ type GetMaterializedViewCallback = (error: (Error|null), response?: google.bigtable.admin.v2.MaterializedView) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listMaterializedViews}. * @param error Error, if any * @param [response] ListMaterializedViewsResponse */ type ListMaterializedViewsCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListMaterializedViewsResponse) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateMaterializedView}. * @param error Error, if any * @param [response] Operation */ type UpdateMaterializedViewCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteMaterializedView}. * @param error Error, if any * @param [response] Empty */ type DeleteMaterializedViewCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } /** Properties of a CreateInstanceRequest. */ interface ICreateInstanceRequest { /** CreateInstanceRequest parent */ parent?: (string|null); /** CreateInstanceRequest instanceId */ instanceId?: (string|null); /** CreateInstanceRequest instance */ instance?: (google.bigtable.admin.v2.IInstance|null); /** CreateInstanceRequest clusters */ clusters?: ({ [k: string]: google.bigtable.admin.v2.ICluster }|null); } /** Represents a CreateInstanceRequest. */ class CreateInstanceRequest implements ICreateInstanceRequest { /** * Constructs a new CreateInstanceRequest. * @param [properties] Properties to set */ constructor(properties?: google.bigtable.admin.v2.ICreateInstanceRequest); /** CreateInstanceRequest parent. */ public parent: string; /** CreateInstanceRequest instanceId. */ public instanceId: string; /** CreateInstanceRequest instance. */ public instance?: (google.bigtable.admin.v2.IInstance|null); /** CreateInstanceRequest clusters. */ public clusters: { [k: string]: google.bigtable.admin.v2.ICluster }; /** * Creates a new CreateInstanceRequest instance using the specified properties. * @param [properties] Properties to set * @returns CreateInstanceRequest instance */ public static create(properties?: google.bigtable.admin.v2.ICreateInstanceRequest): google.bigtable.admin.v2.CreateInstanceRequest; /** * Encodes the specified CreateInstanceRequest message. Does not implicitly {@link google.bigtable.admin.v2.CreateInstanceRequest.verify|verify} messages. * @param message CreateInstanceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.bigtable.admin.v2.ICreateInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CreateInstanceRequest message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.CreateInstanceRequest.verify|verify} messages. * @param message CreateInstanceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.bigtable.admin.v2.ICreateInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CreateInstanceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns CreateInstanceRequest * @throws {Error} If the payload is 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.bigtable.admin.v2.CreateInstanceRequest; /** * Decodes a CreateInstanceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns CreateInstanceRequest * @throws {Error} If the 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.bigtable.admin.v2.CreateInstanceRequest; /** * Verifies a CreateInstanceRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a CreateInstanceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns CreateInstanceRequest */ public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.CreateInstanceRequest; /** * Creates a plain object from a CreateInstanceRequest message. Also converts values to other types if specified. * @param message CreateInstanceRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.bigtable.admin.v2.CreateInstanceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CreateInstanceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for CreateInstanceRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetInstanceRequest. */ interface IGetInstanceRequest { /** GetInstanceRequest name */ name?: (string|null); } /** Represents a GetInstanceRequest. */ class GetInstanceRequest implements IGetInstanceRequest { /** * Constructs a new GetInstanceRequest. * @param [properties] Properties to set */ constructor(properties?: google.bigtable.admin.v2.IGetInstanceRequest); /** GetInstanceRequest name. */ public name: string; /** * Creates a new GetInstanceRequest instance using the specified properties. * @param [properties] Properties to set * @returns GetInstanceRequest instance */ public static create(properties?: google.bigtable.admin.v2.IGetInstanceRequest): google.bigtable.admin.v2.GetInstanceRequest; /** * Encodes the specified GetInstanceRequest message. Does not implicitly {@link google.bigtable.admin.v2.GetInstanceRequest.verify|verify} messages. * @param message GetInstanceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.bigtable.admin.v2.IGetInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified GetInstanceRequest message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.GetInstanceRequest.verify|verify} messages. * @param message GetInstanceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.bigtable.admin.v2.IGetInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetInstanceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns GetInstanceRequest * @throws {Error} If the payload is 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.bigtable.admin.v2.GetInstanceRequest; /** * Decodes a GetInstanceRequest message from the specified reade