Class DataprocMetastoreGrpc.DataprocMetastoreBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<DataprocMetastoreGrpc.DataprocMetastoreBlockingV2Stub>
com.google.cloud.metastore.v1beta.DataprocMetastoreGrpc.DataprocMetastoreBlockingV2Stub
- Enclosing class:
- DataprocMetastoreGrpc
public static final class DataprocMetastoreGrpc.DataprocMetastoreBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<DataprocMetastoreGrpc.DataprocMetastoreBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service DataprocMetastore.
Configures and manages metastore services.
Metastore services are fully managed, highly available, autoscaled,
autohealing, OSS-native deployments of technical metadata management
software. Each metastore service exposes a network endpoint through which
metadata queries are served. Metadata queries can originate from a variety
of sources, including Apache Hive, Apache Presto, and Apache Spark.
The Dataproc Metastore API defines the following resource model:
* The service works with a collection of Google Cloud projects, named:
`/projects/*`
* Each project has a collection of available locations, named: `/locations/*`
(a location must refer to a Google Cloud `region`)
* Each location has a collection of services, named: `/services/*`
* Dataproc Metastore services are resources with names of the form:
`/projects/{project_number}/locations/{location_id}/services/{service_id}`.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionAlter metadata resource location.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) createBackup(CreateBackupRequest request) Creates a new backup in a given project and location.Creates a new MetadataImport in a given project and location.createService(CreateServiceRequest request) Creates a metastore service in a project and location.deleteBackup(DeleteBackupRequest request) Deletes a single backup.deleteService(DeleteServiceRequest request) Deletes a single service.exportMetadata(ExportMetadataRequest request) Exports metadata from a service.getBackup(GetBackupRequest request) Gets details of a single backup.Gets details of a single import.getService(GetServiceRequest request) Gets the details of a single service.listBackups(ListBackupsRequest request) Lists backups in a service.Lists imports in a service.listServices(ListServicesRequest request) Lists services in a project and location.Move a table to another database.queryMetadata(QueryMetadataRequest request) Query DPMS metadata.removeIamPolicy(RemoveIamPolicyRequest request) Removes the attached IAM policies for a resourcerestoreService(RestoreServiceRequest request) Restores a service from a backup.Updates a single import.updateService(UpdateServiceRequest request) Updates the parameters of a single service.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected DataprocMetastoreGrpc.DataprocMetastoreBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<DataprocMetastoreGrpc.DataprocMetastoreBlockingV2Stub>
-
listServices
public ListServicesResponse listServices(ListServicesRequest request) throws io.grpc.StatusException Lists services in a project and location.
- Throws:
io.grpc.StatusException
-
getService
Gets the details of a single service.
- Throws:
io.grpc.StatusException
-
createService
Creates a metastore service in a project and location.
- Throws:
io.grpc.StatusException
-
updateService
Updates the parameters of a single service.
- Throws:
io.grpc.StatusException
-
deleteService
Deletes a single service.
- Throws:
io.grpc.StatusException
-
listMetadataImports
public ListMetadataImportsResponse listMetadataImports(ListMetadataImportsRequest request) throws io.grpc.StatusException Lists imports in a service.
- Throws:
io.grpc.StatusException
-
getMetadataImport
public MetadataImport getMetadataImport(GetMetadataImportRequest request) throws io.grpc.StatusException Gets details of a single import.
- Throws:
io.grpc.StatusException
-
createMetadataImport
public Operation createMetadataImport(CreateMetadataImportRequest request) throws io.grpc.StatusException Creates a new MetadataImport in a given project and location.
- Throws:
io.grpc.StatusException
-
updateMetadataImport
public Operation updateMetadataImport(UpdateMetadataImportRequest request) throws io.grpc.StatusException Updates a single import. Only the description field of MetadataImport is supported to be updated.
- Throws:
io.grpc.StatusException
-
exportMetadata
Exports metadata from a service.
- Throws:
io.grpc.StatusException
-
restoreService
Restores a service from a backup.
- Throws:
io.grpc.StatusException
-
listBackups
Lists backups in a service.
- Throws:
io.grpc.StatusException
-
getBackup
Gets details of a single backup.
- Throws:
io.grpc.StatusException
-
createBackup
Creates a new backup in a given project and location.
- Throws:
io.grpc.StatusException
-
deleteBackup
Deletes a single backup.
- Throws:
io.grpc.StatusException
-
removeIamPolicy
public RemoveIamPolicyResponse removeIamPolicy(RemoveIamPolicyRequest request) throws io.grpc.StatusException Removes the attached IAM policies for a resource
- Throws:
io.grpc.StatusException
-
queryMetadata
Query DPMS metadata.
- Throws:
io.grpc.StatusException
-
moveTableToDatabase
public Operation moveTableToDatabase(MoveTableToDatabaseRequest request) throws io.grpc.StatusException Move a table to another database.
- Throws:
io.grpc.StatusException
-
alterMetadataResourceLocation
public Operation alterMetadataResourceLocation(AlterMetadataResourceLocationRequest request) throws io.grpc.StatusException Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource and does not transfer any existing data to the new location.
- Throws:
io.grpc.StatusException
-