Package com.google.cloud.metastore.v1
Class DataprocMetastoreSettings
- java.lang.Object
-
- com.google.api.gax.rpc.ClientSettings<DataprocMetastoreSettings>
-
- com.google.cloud.metastore.v1.DataprocMetastoreSettings
-
@Generated("by gapic-generator-java") public class DataprocMetastoreSettings extends com.google.api.gax.rpc.ClientSettings<DataprocMetastoreSettings>
Settings class to configure an instance ofDataprocMetastoreClient
.The default instance has everything set to sensible defaults:
- The default service address (metastore.googleapis.com) and default port (443) are used.
- Credentials are acquired automatically through Application Default Credentials.
- Retries are configured for idempotent methods but not for non-idempotent methods.
The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.
For example, to set the total timeout of getService to 30 seconds:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library DataprocMetastoreSettings.Builder dataprocMetastoreSettingsBuilder = DataprocMetastoreSettings.newBuilder(); dataprocMetastoreSettingsBuilder .getServiceSettings() .setRetrySettings( dataprocMetastoreSettingsBuilder .getServiceSettings() .getRetrySettings() .toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); DataprocMetastoreSettings dataprocMetastoreSettings = dataprocMetastoreSettingsBuilder.build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataprocMetastoreSettings.Builder
Builder for DataprocMetastoreSettings.
-
Constructor Summary
Constructors Modifier Constructor Description protected
DataprocMetastoreSettings(DataprocMetastoreSettings.Builder settingsBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.gax.rpc.OperationCallSettings<AlterMetadataResourceLocationRequest,AlterMetadataResourceLocationResponse,OperationMetadata>
alterMetadataResourceLocationOperationSettings()
Returns the object with the settings used for calls to alterMetadataResourceLocation.com.google.api.gax.rpc.UnaryCallSettings<AlterMetadataResourceLocationRequest,com.google.longrunning.Operation>
alterMetadataResourceLocationSettings()
Returns the object with the settings used for calls to alterMetadataResourceLocation.static DataprocMetastoreSettings
create(DataprocMetastoreStubSettings stub)
com.google.api.gax.rpc.OperationCallSettings<CreateBackupRequest,Backup,OperationMetadata>
createBackupOperationSettings()
Returns the object with the settings used for calls to createBackup.com.google.api.gax.rpc.UnaryCallSettings<CreateBackupRequest,com.google.longrunning.Operation>
createBackupSettings()
Returns the object with the settings used for calls to createBackup.com.google.api.gax.rpc.OperationCallSettings<CreateMetadataImportRequest,MetadataImport,OperationMetadata>
createMetadataImportOperationSettings()
Returns the object with the settings used for calls to createMetadataImport.com.google.api.gax.rpc.UnaryCallSettings<CreateMetadataImportRequest,com.google.longrunning.Operation>
createMetadataImportSettings()
Returns the object with the settings used for calls to createMetadataImport.com.google.api.gax.rpc.OperationCallSettings<CreateServiceRequest,Service,OperationMetadata>
createServiceOperationSettings()
Returns the object with the settings used for calls to createService.com.google.api.gax.rpc.UnaryCallSettings<CreateServiceRequest,com.google.longrunning.Operation>
createServiceSettings()
Returns the object with the settings used for calls to createService.static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
defaultApiClientHeaderProviderBuilder()
static com.google.api.gax.core.GoogleCredentialsProvider.Builder
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.static com.google.api.gax.core.InstantiatingExecutorProvider.Builder
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder
defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.static com.google.api.gax.rpc.TransportChannelProvider
defaultTransportChannelProvider()
com.google.api.gax.rpc.OperationCallSettings<DeleteBackupRequest,com.google.protobuf.Empty,OperationMetadata>
deleteBackupOperationSettings()
Returns the object with the settings used for calls to deleteBackup.com.google.api.gax.rpc.UnaryCallSettings<DeleteBackupRequest,com.google.longrunning.Operation>
deleteBackupSettings()
Returns the object with the settings used for calls to deleteBackup.com.google.api.gax.rpc.OperationCallSettings<DeleteServiceRequest,com.google.protobuf.Empty,OperationMetadata>
deleteServiceOperationSettings()
Returns the object with the settings used for calls to deleteService.com.google.api.gax.rpc.UnaryCallSettings<DeleteServiceRequest,com.google.longrunning.Operation>
deleteServiceSettings()
Returns the object with the settings used for calls to deleteService.com.google.api.gax.rpc.OperationCallSettings<ExportMetadataRequest,MetadataExport,OperationMetadata>
exportMetadataOperationSettings()
Returns the object with the settings used for calls to exportMetadata.com.google.api.gax.rpc.UnaryCallSettings<ExportMetadataRequest,com.google.longrunning.Operation>
exportMetadataSettings()
Returns the object with the settings used for calls to exportMetadata.com.google.api.gax.rpc.UnaryCallSettings<GetBackupRequest,Backup>
getBackupSettings()
Returns the object with the settings used for calls to getBackup.static String
getDefaultEndpoint()
Returns the default service endpoint.static List<String>
getDefaultServiceScopes()
Returns the default service scopes.com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
getLocationSettings()
Returns the object with the settings used for calls to getLocation.com.google.api.gax.rpc.UnaryCallSettings<GetMetadataImportRequest,MetadataImport>
getMetadataImportSettings()
Returns the object with the settings used for calls to getMetadataImport.com.google.api.gax.rpc.UnaryCallSettings<GetServiceRequest,Service>
getServiceSettings()
Returns the object with the settings used for calls to getService.com.google.api.gax.rpc.PagedCallSettings<ListBackupsRequest,ListBackupsResponse,DataprocMetastoreClient.ListBackupsPagedResponse>
listBackupsSettings()
Returns the object with the settings used for calls to listBackups.com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,DataprocMetastoreClient.ListLocationsPagedResponse>
listLocationsSettings()
Returns the object with the settings used for calls to listLocations.com.google.api.gax.rpc.PagedCallSettings<ListMetadataImportsRequest,ListMetadataImportsResponse,DataprocMetastoreClient.ListMetadataImportsPagedResponse>
listMetadataImportsSettings()
Returns the object with the settings used for calls to listMetadataImports.com.google.api.gax.rpc.PagedCallSettings<ListServicesRequest,ListServicesResponse,DataprocMetastoreClient.ListServicesPagedResponse>
listServicesSettings()
Returns the object with the settings used for calls to listServices.com.google.api.gax.rpc.OperationCallSettings<MoveTableToDatabaseRequest,MoveTableToDatabaseResponse,OperationMetadata>
moveTableToDatabaseOperationSettings()
Returns the object with the settings used for calls to moveTableToDatabase.com.google.api.gax.rpc.UnaryCallSettings<MoveTableToDatabaseRequest,com.google.longrunning.Operation>
moveTableToDatabaseSettings()
Returns the object with the settings used for calls to moveTableToDatabase.static DataprocMetastoreSettings.Builder
newBuilder()
Returns a new gRPC builder for this class.static DataprocMetastoreSettings.Builder
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.static DataprocMetastoreSettings.Builder
newHttpJsonBuilder()
Returns a new REST builder for this class.com.google.api.gax.rpc.OperationCallSettings<QueryMetadataRequest,QueryMetadataResponse,OperationMetadata>
queryMetadataOperationSettings()
Returns the object with the settings used for calls to queryMetadata.com.google.api.gax.rpc.UnaryCallSettings<QueryMetadataRequest,com.google.longrunning.Operation>
queryMetadataSettings()
Returns the object with the settings used for calls to queryMetadata.com.google.api.gax.rpc.OperationCallSettings<RestoreServiceRequest,Restore,OperationMetadata>
restoreServiceOperationSettings()
Returns the object with the settings used for calls to restoreService.com.google.api.gax.rpc.UnaryCallSettings<RestoreServiceRequest,com.google.longrunning.Operation>
restoreServiceSettings()
Returns the object with the settings used for calls to restoreService.com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.DataprocMetastoreSettings.Builder
toBuilder()
Returns a builder containing all the values of this settings class.com.google.api.gax.rpc.OperationCallSettings<UpdateMetadataImportRequest,MetadataImport,OperationMetadata>
updateMetadataImportOperationSettings()
Returns the object with the settings used for calls to updateMetadataImport.com.google.api.gax.rpc.UnaryCallSettings<UpdateMetadataImportRequest,com.google.longrunning.Operation>
updateMetadataImportSettings()
Returns the object with the settings used for calls to updateMetadataImport.com.google.api.gax.rpc.OperationCallSettings<UpdateServiceRequest,Service,OperationMetadata>
updateServiceOperationSettings()
Returns the object with the settings used for calls to updateService.com.google.api.gax.rpc.UnaryCallSettings<UpdateServiceRequest,com.google.longrunning.Operation>
updateServiceSettings()
Returns the object with the settings used for calls to updateService.-
Methods inherited from class com.google.api.gax.rpc.ClientSettings
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
-
-
-
-
Constructor Detail
-
DataprocMetastoreSettings
protected DataprocMetastoreSettings(DataprocMetastoreSettings.Builder settingsBuilder) throws IOException
- Throws:
IOException
-
-
Method Detail
-
listServicesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListServicesRequest,ListServicesResponse,DataprocMetastoreClient.ListServicesPagedResponse> listServicesSettings()
Returns the object with the settings used for calls to listServices.
-
getServiceSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetServiceRequest,Service> getServiceSettings()
Returns the object with the settings used for calls to getService.
-
createServiceSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateServiceRequest,com.google.longrunning.Operation> createServiceSettings()
Returns the object with the settings used for calls to createService.
-
createServiceOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateServiceRequest,Service,OperationMetadata> createServiceOperationSettings()
Returns the object with the settings used for calls to createService.
-
updateServiceSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateServiceRequest,com.google.longrunning.Operation> updateServiceSettings()
Returns the object with the settings used for calls to updateService.
-
updateServiceOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UpdateServiceRequest,Service,OperationMetadata> updateServiceOperationSettings()
Returns the object with the settings used for calls to updateService.
-
deleteServiceSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteServiceRequest,com.google.longrunning.Operation> deleteServiceSettings()
Returns the object with the settings used for calls to deleteService.
-
deleteServiceOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeleteServiceRequest,com.google.protobuf.Empty,OperationMetadata> deleteServiceOperationSettings()
Returns the object with the settings used for calls to deleteService.
-
listMetadataImportsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListMetadataImportsRequest,ListMetadataImportsResponse,DataprocMetastoreClient.ListMetadataImportsPagedResponse> listMetadataImportsSettings()
Returns the object with the settings used for calls to listMetadataImports.
-
getMetadataImportSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetMetadataImportRequest,MetadataImport> getMetadataImportSettings()
Returns the object with the settings used for calls to getMetadataImport.
-
createMetadataImportSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateMetadataImportRequest,com.google.longrunning.Operation> createMetadataImportSettings()
Returns the object with the settings used for calls to createMetadataImport.
-
createMetadataImportOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateMetadataImportRequest,MetadataImport,OperationMetadata> createMetadataImportOperationSettings()
Returns the object with the settings used for calls to createMetadataImport.
-
updateMetadataImportSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateMetadataImportRequest,com.google.longrunning.Operation> updateMetadataImportSettings()
Returns the object with the settings used for calls to updateMetadataImport.
-
updateMetadataImportOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UpdateMetadataImportRequest,MetadataImport,OperationMetadata> updateMetadataImportOperationSettings()
Returns the object with the settings used for calls to updateMetadataImport.
-
exportMetadataSettings
public com.google.api.gax.rpc.UnaryCallSettings<ExportMetadataRequest,com.google.longrunning.Operation> exportMetadataSettings()
Returns the object with the settings used for calls to exportMetadata.
-
exportMetadataOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<ExportMetadataRequest,MetadataExport,OperationMetadata> exportMetadataOperationSettings()
Returns the object with the settings used for calls to exportMetadata.
-
restoreServiceSettings
public com.google.api.gax.rpc.UnaryCallSettings<RestoreServiceRequest,com.google.longrunning.Operation> restoreServiceSettings()
Returns the object with the settings used for calls to restoreService.
-
restoreServiceOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<RestoreServiceRequest,Restore,OperationMetadata> restoreServiceOperationSettings()
Returns the object with the settings used for calls to restoreService.
-
listBackupsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListBackupsRequest,ListBackupsResponse,DataprocMetastoreClient.ListBackupsPagedResponse> listBackupsSettings()
Returns the object with the settings used for calls to listBackups.
-
getBackupSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetBackupRequest,Backup> getBackupSettings()
Returns the object with the settings used for calls to getBackup.
-
createBackupSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateBackupRequest,com.google.longrunning.Operation> createBackupSettings()
Returns the object with the settings used for calls to createBackup.
-
createBackupOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateBackupRequest,Backup,OperationMetadata> createBackupOperationSettings()
Returns the object with the settings used for calls to createBackup.
-
deleteBackupSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteBackupRequest,com.google.longrunning.Operation> deleteBackupSettings()
Returns the object with the settings used for calls to deleteBackup.
-
deleteBackupOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeleteBackupRequest,com.google.protobuf.Empty,OperationMetadata> deleteBackupOperationSettings()
Returns the object with the settings used for calls to deleteBackup.
-
queryMetadataSettings
public com.google.api.gax.rpc.UnaryCallSettings<QueryMetadataRequest,com.google.longrunning.Operation> queryMetadataSettings()
Returns the object with the settings used for calls to queryMetadata.
-
queryMetadataOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<QueryMetadataRequest,QueryMetadataResponse,OperationMetadata> queryMetadataOperationSettings()
Returns the object with the settings used for calls to queryMetadata.
-
moveTableToDatabaseSettings
public com.google.api.gax.rpc.UnaryCallSettings<MoveTableToDatabaseRequest,com.google.longrunning.Operation> moveTableToDatabaseSettings()
Returns the object with the settings used for calls to moveTableToDatabase.
-
moveTableToDatabaseOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<MoveTableToDatabaseRequest,MoveTableToDatabaseResponse,OperationMetadata> moveTableToDatabaseOperationSettings()
Returns the object with the settings used for calls to moveTableToDatabase.
-
alterMetadataResourceLocationSettings
public com.google.api.gax.rpc.UnaryCallSettings<AlterMetadataResourceLocationRequest,com.google.longrunning.Operation> alterMetadataResourceLocationSettings()
Returns the object with the settings used for calls to alterMetadataResourceLocation.
-
alterMetadataResourceLocationOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<AlterMetadataResourceLocationRequest,AlterMetadataResourceLocationResponse,OperationMetadata> alterMetadataResourceLocationOperationSettings()
Returns the object with the settings used for calls to alterMetadataResourceLocation.
-
listLocationsSettings
public com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,DataprocMetastoreClient.ListLocationsPagedResponse> listLocationsSettings()
Returns the object with the settings used for calls to listLocations.
-
getLocationSettings
public com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationSettings()
Returns the object with the settings used for calls to getLocation.
-
setIamPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.
-
getIamPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.
-
testIamPermissionsSettings
public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.
-
create
public static final DataprocMetastoreSettings create(DataprocMetastoreStubSettings stub) throws IOException
- Throws:
IOException
-
defaultExecutorProviderBuilder
public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
-
getDefaultEndpoint
public static String getDefaultEndpoint()
Returns the default service endpoint.
-
getDefaultServiceScopes
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
-
defaultCredentialsProviderBuilder
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
-
defaultGrpcTransportProviderBuilder
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
-
defaultHttpJsonTransportProviderBuilder
@BetaApi public static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
-
defaultTransportChannelProvider
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
-
defaultApiClientHeaderProviderBuilder
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
-
newBuilder
public static DataprocMetastoreSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
-
newHttpJsonBuilder
@BetaApi public static DataprocMetastoreSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
-
newBuilder
public static DataprocMetastoreSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
-
toBuilder
public DataprocMetastoreSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.- Specified by:
toBuilder
in classcom.google.api.gax.rpc.ClientSettings<DataprocMetastoreSettings>
-
-