Class JobServiceStubSettings


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

    The default instance has everything set to sensible defaults:

    • The default service address (aiplatform.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 createCustomJob 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
     JobServiceStubSettings.Builder jobServiceSettingsBuilder = JobServiceStubSettings.newBuilder();
     jobServiceSettingsBuilder
         .createCustomJobSettings()
         .setRetrySettings(
             jobServiceSettingsBuilder
                 .createCustomJobSettings()
                 .getRetrySettings()
                 .toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     JobServiceStubSettings jobServiceSettings = jobServiceSettingsBuilder.build();
     
    • Method Detail

      • createCustomJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateCustomJobRequest,​CustomJob> createCustomJobSettings()
        Returns the object with the settings used for calls to createCustomJob.
      • getCustomJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetCustomJobRequest,​CustomJob> getCustomJobSettings()
        Returns the object with the settings used for calls to getCustomJob.
      • deleteCustomJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteCustomJobRequest,​com.google.longrunning.Operation> deleteCustomJobSettings()
        Returns the object with the settings used for calls to deleteCustomJob.
      • deleteCustomJobOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteCustomJobRequest,​com.google.protobuf.Empty,​DeleteOperationMetadata> deleteCustomJobOperationSettings()
        Returns the object with the settings used for calls to deleteCustomJob.
      • cancelCustomJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CancelCustomJobRequest,​com.google.protobuf.Empty> cancelCustomJobSettings()
        Returns the object with the settings used for calls to cancelCustomJob.
      • createDataLabelingJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateDataLabelingJobRequest,​DataLabelingJob> createDataLabelingJobSettings()
        Returns the object with the settings used for calls to createDataLabelingJob.
      • getDataLabelingJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetDataLabelingJobRequest,​DataLabelingJob> getDataLabelingJobSettings()
        Returns the object with the settings used for calls to getDataLabelingJob.
      • deleteDataLabelingJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteDataLabelingJobRequest,​com.google.longrunning.Operation> deleteDataLabelingJobSettings()
        Returns the object with the settings used for calls to deleteDataLabelingJob.
      • deleteDataLabelingJobOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteDataLabelingJobRequest,​com.google.protobuf.Empty,​DeleteOperationMetadata> deleteDataLabelingJobOperationSettings()
        Returns the object with the settings used for calls to deleteDataLabelingJob.
      • cancelDataLabelingJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CancelDataLabelingJobRequest,​com.google.protobuf.Empty> cancelDataLabelingJobSettings()
        Returns the object with the settings used for calls to cancelDataLabelingJob.
      • deleteHyperparameterTuningJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteHyperparameterTuningJobRequest,​com.google.longrunning.Operation> deleteHyperparameterTuningJobSettings()
        Returns the object with the settings used for calls to deleteHyperparameterTuningJob.
      • deleteHyperparameterTuningJobOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteHyperparameterTuningJobRequest,​com.google.protobuf.Empty,​DeleteOperationMetadata> deleteHyperparameterTuningJobOperationSettings()
        Returns the object with the settings used for calls to deleteHyperparameterTuningJob.
      • cancelHyperparameterTuningJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CancelHyperparameterTuningJobRequest,​com.google.protobuf.Empty> cancelHyperparameterTuningJobSettings()
        Returns the object with the settings used for calls to cancelHyperparameterTuningJob.
      • createNasJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateNasJobRequest,​NasJob> createNasJobSettings()
        Returns the object with the settings used for calls to createNasJob.
      • getNasJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetNasJobRequest,​NasJob> getNasJobSettings()
        Returns the object with the settings used for calls to getNasJob.
      • deleteNasJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteNasJobRequest,​com.google.longrunning.Operation> deleteNasJobSettings()
        Returns the object with the settings used for calls to deleteNasJob.
      • deleteNasJobOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteNasJobRequest,​com.google.protobuf.Empty,​DeleteOperationMetadata> deleteNasJobOperationSettings()
        Returns the object with the settings used for calls to deleteNasJob.
      • cancelNasJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CancelNasJobRequest,​com.google.protobuf.Empty> cancelNasJobSettings()
        Returns the object with the settings used for calls to cancelNasJob.
      • getNasTrialDetailSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetNasTrialDetailRequest,​NasTrialDetail> getNasTrialDetailSettings()
        Returns the object with the settings used for calls to getNasTrialDetail.
      • createBatchPredictionJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateBatchPredictionJobRequest,​BatchPredictionJob> createBatchPredictionJobSettings()
        Returns the object with the settings used for calls to createBatchPredictionJob.
      • getBatchPredictionJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetBatchPredictionJobRequest,​BatchPredictionJob> getBatchPredictionJobSettings()
        Returns the object with the settings used for calls to getBatchPredictionJob.
      • deleteBatchPredictionJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteBatchPredictionJobRequest,​com.google.longrunning.Operation> deleteBatchPredictionJobSettings()
        Returns the object with the settings used for calls to deleteBatchPredictionJob.
      • deleteBatchPredictionJobOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteBatchPredictionJobRequest,​com.google.protobuf.Empty,​DeleteOperationMetadata> deleteBatchPredictionJobOperationSettings()
        Returns the object with the settings used for calls to deleteBatchPredictionJob.
      • cancelBatchPredictionJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CancelBatchPredictionJobRequest,​com.google.protobuf.Empty> cancelBatchPredictionJobSettings()
        Returns the object with the settings used for calls to cancelBatchPredictionJob.
      • updateModelDeploymentMonitoringJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateModelDeploymentMonitoringJobRequest,​com.google.longrunning.Operation> updateModelDeploymentMonitoringJobSettings()
        Returns the object with the settings used for calls to updateModelDeploymentMonitoringJob.
      • deleteModelDeploymentMonitoringJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteModelDeploymentMonitoringJobRequest,​com.google.longrunning.Operation> deleteModelDeploymentMonitoringJobSettings()
        Returns the object with the settings used for calls to deleteModelDeploymentMonitoringJob.
      • deleteModelDeploymentMonitoringJobOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteModelDeploymentMonitoringJobRequest,​com.google.protobuf.Empty,​DeleteOperationMetadata> deleteModelDeploymentMonitoringJobOperationSettings()
        Returns the object with the settings used for calls to deleteModelDeploymentMonitoringJob.
      • pauseModelDeploymentMonitoringJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<PauseModelDeploymentMonitoringJobRequest,​com.google.protobuf.Empty> pauseModelDeploymentMonitoringJobSettings()
        Returns the object with the settings used for calls to pauseModelDeploymentMonitoringJob.
      • resumeModelDeploymentMonitoringJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ResumeModelDeploymentMonitoringJobRequest,​com.google.protobuf.Empty> resumeModelDeploymentMonitoringJobSettings()
        Returns the object with the settings used for calls to resumeModelDeploymentMonitoringJob.
      • listLocationsSettings

        public com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,​com.google.cloud.location.ListLocationsResponse,​JobServiceClient.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 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 JobServiceStubSettings.Builder newBuilder​(com.google.api.gax.rpc.ClientContext clientContext)
        Returns a new builder for this class.