Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
fix: migrate scheduler/v1beta1 to grpc_service_config (#167)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/2c593734-539a-435d-8a04-27f04c90082f/targets

- [ ] To automatically regenerate this PR, check this box.

PiperOrigin-RevId: 316713534
Source-Link: googleapis/googleapis@88ee692
  • Loading branch information
yoshi-automation committed Jun 16, 2020
1 parent c0cc92c commit 666c094
Show file tree
Hide file tree
Showing 8 changed files with 647 additions and 635 deletions.

Large diffs are not rendered by default.

Expand Up @@ -50,16 +50,16 @@
* <p>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.
*
* <p>For example, to set the total timeout of deleteJob to 30 seconds:
* <p>For example, to set the total timeout of getJob to 30 seconds:
*
* <pre>
* <code>
* CloudSchedulerSettings.Builder cloudSchedulerSettingsBuilder =
* CloudSchedulerSettings.newBuilder();
* cloudSchedulerSettingsBuilder
* .deleteJobSettings()
* .getJobSettings()
* .setRetrySettings(
* cloudSchedulerSettingsBuilder.deleteJobSettings().getRetrySettings().toBuilder()
* cloudSchedulerSettingsBuilder.getJobSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* CloudSchedulerSettings cloudSchedulerSettings = cloudSchedulerSettingsBuilder.build();
Expand All @@ -69,21 +69,6 @@
@Generated("by gapic-generator")
@BetaApi
public class CloudSchedulerSettings extends ClientSettings<CloudSchedulerSettings> {
/** 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 pauseJob. */
public UnaryCallSettings<PauseJobRequest, Job> pauseJobSettings() {
return ((CloudSchedulerStubSettings) getStubSettings()).pauseJobSettings();
}

/** 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 listJobs. */
public PagedCallSettings<ListJobsRequest, ListJobsResponse, ListJobsPagedResponse>
listJobsSettings() {
Expand All @@ -105,6 +90,21 @@ public UnaryCallSettings<UpdateJobRequest, Job> updateJobSettings() {
return ((CloudSchedulerStubSettings) getStubSettings()).updateJobSettings();
}

/** 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 pauseJob. */
public UnaryCallSettings<PauseJobRequest, Job> pauseJobSettings() {
return ((CloudSchedulerStubSettings) getStubSettings()).pauseJobSettings();
}

/** 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();
Expand Down Expand Up @@ -207,21 +207,6 @@ public Builder applyToAllUnaryMethods(
return this;
}

/** Returns the builder for the settings used for calls to deleteJob. */
public UnaryCallSettings.Builder<DeleteJobRequest, Empty> deleteJobSettings() {
return getStubSettingsBuilder().deleteJobSettings();
}

/** Returns the builder for the settings used for calls to pauseJob. */
public UnaryCallSettings.Builder<PauseJobRequest, Job> pauseJobSettings() {
return getStubSettingsBuilder().pauseJobSettings();
}

/** Returns the builder for the settings used for calls to resumeJob. */
public UnaryCallSettings.Builder<ResumeJobRequest, Job> resumeJobSettings() {
return getStubSettingsBuilder().resumeJobSettings();
}

/** Returns the builder for the settings used for calls to listJobs. */
public PagedCallSettings.Builder<ListJobsRequest, ListJobsResponse, ListJobsPagedResponse>
listJobsSettings() {
Expand All @@ -243,6 +228,21 @@ public UnaryCallSettings.Builder<UpdateJobRequest, Job> updateJobSettings() {
return getStubSettingsBuilder().updateJobSettings();
}

/** Returns the builder for the settings used for calls to deleteJob. */
public UnaryCallSettings.Builder<DeleteJobRequest, Empty> deleteJobSettings() {
return getStubSettingsBuilder().deleteJobSettings();
}

/** Returns the builder for the settings used for calls to pauseJob. */
public UnaryCallSettings.Builder<PauseJobRequest, Job> pauseJobSettings() {
return getStubSettingsBuilder().pauseJobSettings();
}

/** Returns the builder for the settings used for calls to resumeJob. */
public UnaryCallSettings.Builder<ResumeJobRequest, Job> resumeJobSettings() {
return getStubSettingsBuilder().resumeJobSettings();
}

/** Returns the builder for the settings used for calls to runJob. */
public UnaryCallSettings.Builder<RunJobRequest, Job> runJobSettings() {
return getStubSettingsBuilder().runJobSettings();
Expand Down
Expand Up @@ -30,7 +30,7 @@
* <code>
* try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
* JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
* cloudSchedulerClient.deleteJob(name);
* Job response = cloudSchedulerClient.getJob(name);
* }
* </code>
* </pre>
Expand Down
Expand Up @@ -43,18 +43,6 @@
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public abstract class CloudSchedulerStub implements BackgroundResource {

public UnaryCallable<DeleteJobRequest, Empty> deleteJobCallable() {
throw new UnsupportedOperationException("Not implemented: deleteJobCallable()");
}

public UnaryCallable<PauseJobRequest, Job> pauseJobCallable() {
throw new UnsupportedOperationException("Not implemented: pauseJobCallable()");
}

public UnaryCallable<ResumeJobRequest, Job> resumeJobCallable() {
throw new UnsupportedOperationException("Not implemented: resumeJobCallable()");
}

public UnaryCallable<ListJobsRequest, ListJobsPagedResponse> listJobsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listJobsPagedCallable()");
}
Expand All @@ -75,6 +63,18 @@ public UnaryCallable<UpdateJobRequest, Job> updateJobCallable() {
throw new UnsupportedOperationException("Not implemented: updateJobCallable()");
}

public UnaryCallable<DeleteJobRequest, Empty> deleteJobCallable() {
throw new UnsupportedOperationException("Not implemented: deleteJobCallable()");
}

public UnaryCallable<PauseJobRequest, Job> pauseJobCallable() {
throw new UnsupportedOperationException("Not implemented: pauseJobCallable()");
}

public UnaryCallable<ResumeJobRequest, Job> resumeJobCallable() {
throw new UnsupportedOperationException("Not implemented: resumeJobCallable()");
}

public UnaryCallable<RunJobRequest, Job> runJobCallable() {
throw new UnsupportedOperationException("Not implemented: runJobCallable()");
}
Expand Down

0 comments on commit 666c094

Please sign in to comment.