Class DataprocMetastoreStubSettings


  • @Generated("by gapic-generator-java")
    public class DataprocMetastoreStubSettings
    extends com.google.api.gax.rpc.StubSettings<DataprocMetastoreStubSettings>
    Settings class to configure an instance of DataprocMetastoreStub.

    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
     DataprocMetastoreStubSettings.Builder dataprocMetastoreSettingsBuilder =
         DataprocMetastoreStubSettings.newBuilder();
     dataprocMetastoreSettingsBuilder
         .getServiceSettings()
         .setRetrySettings(
             dataprocMetastoreSettingsBuilder
                 .getServiceSettings()
                 .getRetrySettings()
                 .toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     DataprocMetastoreStubSettings dataprocMetastoreSettings =
         dataprocMetastoreSettingsBuilder.build();
     
    • Method Detail

      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • getDefaultMtlsEndpoint

        public static String getDefaultMtlsEndpoint()
        Returns the default mTLS 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()
      • defaultGrpcApiClientHeaderProviderBuilder

        @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 defaultGrpcApiClientHeaderProviderBuilder()
      • defaultHttpJsonApiClientHeaderProviderBuilder

        @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 defaultHttpJsonApiClientHeaderProviderBuilder()
      • defaultApiClientHeaderProviderBuilder

        public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()