@Override public CloudSchedulerSettings build() throws IOException { return new CloudSchedulerSettings(this); } }
/** * Constructs an instance of CloudSchedulerClient, using the given settings. This is protected so * that it is easy to make a subclass, but otherwise, the static factory methods should be * preferred. */ protected CloudSchedulerClient(CloudSchedulerSettings settings) throws IOException { this.settings = settings; this.stub = ((CloudSchedulerStubSettings) settings.getStubSettings()).createStub(); }
/** Constructs an instance of CloudSchedulerClient with default settings. */ public static final CloudSchedulerClient create() throws IOException { return create(CloudSchedulerSettings.newBuilder().build()); }
@Before public void setUp() throws IOException { serviceHelper.reset(); channelProvider = serviceHelper.createChannelProvider(); CloudSchedulerSettings settings = CloudSchedulerSettings.newBuilder() .setTransportChannelProvider(channelProvider) .setCredentialsProvider(NoCredentialsProvider.create()) .build(); client = CloudSchedulerClient.create(settings); }
/** Returns the object with the settings used for calls to updateJob. */ public UnaryCallSettings<UpdateJobRequest, Job> updateJobSettings() { return ((CloudSchedulerStubSettings) getStubSettings()).updateJobSettings(); }
/** Returns the object with the settings used for calls to pauseJob. */ public UnaryCallSettings<PauseJobRequest, Job> pauseJobSettings() { return ((CloudSchedulerStubSettings) getStubSettings()).pauseJobSettings(); }
/** Returns the object with the settings used for calls to listJobs. */ public PagedCallSettings<ListJobsRequest, ListJobsResponse, ListJobsPagedResponse> listJobsSettings() { return ((CloudSchedulerStubSettings) getStubSettings()).listJobsSettings(); }
protected Builder(CloudSchedulerSettings settings) { super(settings.getStubSettings().toBuilder()); }
/** Returns the object with the settings used for calls to getJob. */ public UnaryCallSettings<GetJobRequest, Job> getJobSettings() { return ((CloudSchedulerStubSettings) getStubSettings()).getJobSettings(); }
/** Returns the object with the settings used for calls to createJob. */ public UnaryCallSettings<CreateJobRequest, Job> createJobSettings() { return ((CloudSchedulerStubSettings) getStubSettings()).createJobSettings(); }
/** Returns the object with the settings used for calls to deleteJob. */ public UnaryCallSettings<DeleteJobRequest, Empty> deleteJobSettings() { return ((CloudSchedulerStubSettings) getStubSettings()).deleteJobSettings(); }
/** Returns the object with the settings used for calls to resumeJob. */ public UnaryCallSettings<ResumeJobRequest, Job> resumeJobSettings() { return ((CloudSchedulerStubSettings) getStubSettings()).resumeJobSettings(); }
/** Returns the object with the settings used for calls to runJob. */ public UnaryCallSettings<RunJobRequest, Job> runJobSettings() { return ((CloudSchedulerStubSettings) getStubSettings()).runJobSettings(); }