diff --git a/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml b/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml
new file mode 100644
index 000000000000..3ba98cc0074c
--- /dev/null
+++ b/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml
@@ -0,0 +1,31 @@
+
+ * The Cloud Scheduler API allows external entities to reliably + * schedule asynchronous jobs. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/scheduler/v1/cloudscheduler.proto") +public final class CloudSchedulerGrpc { + + private CloudSchedulerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.scheduler.v1.CloudScheduler"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListJobsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.ListJobsRequest, + com.google.cloud.scheduler.v1.ListJobsResponse> + METHOD_LIST_JOBS = getListJobsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.ListJobsRequest, + com.google.cloud.scheduler.v1.ListJobsResponse> + getListJobsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.ListJobsRequest, + com.google.cloud.scheduler.v1.ListJobsResponse> + getListJobsMethod() { + return getListJobsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.ListJobsRequest, + com.google.cloud.scheduler.v1.ListJobsResponse> + getListJobsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.ListJobsRequest, + com.google.cloud.scheduler.v1.ListJobsResponse> + getListJobsMethod; + if ((getListJobsMethod = CloudSchedulerGrpc.getListJobsMethod) == null) { + synchronized (CloudSchedulerGrpc.class) { + if ((getListJobsMethod = CloudSchedulerGrpc.getListJobsMethod) == null) { + CloudSchedulerGrpc.getListJobsMethod = + getListJobsMethod = + io.grpc.MethodDescriptor + .
+ * The Cloud Scheduler API allows external entities to reliably + * schedule asynchronous jobs. + *+ */ + public abstract static class CloudSchedulerImplBase implements io.grpc.BindableService { + + /** + * + * + *
+ * Lists jobs. + *+ */ + public void listJobs( + com.google.cloud.scheduler.v1.ListJobsRequest request, + io.grpc.stub.StreamObserver
+ * Gets a job. + *+ */ + public void getJob( + com.google.cloud.scheduler.v1.GetJobRequest request, + io.grpc.stub.StreamObserver
+ * Creates a job. + *+ */ + public void createJob( + com.google.cloud.scheduler.v1.CreateJobRequest request, + io.grpc.stub.StreamObserver
+ * Updates a job. + * If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does + * not exist, `NOT_FOUND` is returned. + * If UpdateJob does not successfully return, it is possible for the + * job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in this state may + * not be executed. If this happens, retry the UpdateJob request + * until a successful response is received. + *+ */ + public void updateJob( + com.google.cloud.scheduler.v1.UpdateJobRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a job. + *+ */ + public void deleteJob( + com.google.cloud.scheduler.v1.DeleteJobRequest request, + io.grpc.stub.StreamObserver
+ * Pauses a job. + * If a job is paused then the system will stop executing the job + * until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The + * state of the job is stored in [state][google.cloud.scheduler.v1.Job.state]; if paused it + * will be set to [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED] + * to be paused. + *+ */ + public void pauseJob( + com.google.cloud.scheduler.v1.PauseJobRequest request, + io.grpc.stub.StreamObserver
+ * Resume a job. + * This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The + * state of a job is stored in [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it + * will be set to [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed. + *+ */ + public void resumeJob( + com.google.cloud.scheduler.v1.ResumeJobRequest request, + io.grpc.stub.StreamObserver
+ * Forces a job to run now. + * When this method is called, Cloud Scheduler will dispatch the job, even + * if the job is already running. + *+ */ + public void runJob( + com.google.cloud.scheduler.v1.RunJobRequest request, + io.grpc.stub.StreamObserver
+ * The Cloud Scheduler API allows external entities to reliably + * schedule asynchronous jobs. + *+ */ + public static final class CloudSchedulerStub + extends io.grpc.stub.AbstractStub
+ * Lists jobs. + *+ */ + public void listJobs( + com.google.cloud.scheduler.v1.ListJobsRequest request, + io.grpc.stub.StreamObserver
+ * Gets a job. + *+ */ + public void getJob( + com.google.cloud.scheduler.v1.GetJobRequest request, + io.grpc.stub.StreamObserver
+ * Creates a job. + *+ */ + public void createJob( + com.google.cloud.scheduler.v1.CreateJobRequest request, + io.grpc.stub.StreamObserver
+ * Updates a job. + * If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does + * not exist, `NOT_FOUND` is returned. + * If UpdateJob does not successfully return, it is possible for the + * job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in this state may + * not be executed. If this happens, retry the UpdateJob request + * until a successful response is received. + *+ */ + public void updateJob( + com.google.cloud.scheduler.v1.UpdateJobRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a job. + *+ */ + public void deleteJob( + com.google.cloud.scheduler.v1.DeleteJobRequest request, + io.grpc.stub.StreamObserver
+ * Pauses a job. + * If a job is paused then the system will stop executing the job + * until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The + * state of the job is stored in [state][google.cloud.scheduler.v1.Job.state]; if paused it + * will be set to [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED] + * to be paused. + *+ */ + public void pauseJob( + com.google.cloud.scheduler.v1.PauseJobRequest request, + io.grpc.stub.StreamObserver
+ * Resume a job. + * This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The + * state of a job is stored in [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it + * will be set to [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed. + *+ */ + public void resumeJob( + com.google.cloud.scheduler.v1.ResumeJobRequest request, + io.grpc.stub.StreamObserver
+ * Forces a job to run now. + * When this method is called, Cloud Scheduler will dispatch the job, even + * if the job is already running. + *+ */ + public void runJob( + com.google.cloud.scheduler.v1.RunJobRequest request, + io.grpc.stub.StreamObserver
+ * The Cloud Scheduler API allows external entities to reliably + * schedule asynchronous jobs. + *+ */ + public static final class CloudSchedulerBlockingStub + extends io.grpc.stub.AbstractStub
+ * Lists jobs. + *+ */ + public com.google.cloud.scheduler.v1.ListJobsResponse listJobs( + com.google.cloud.scheduler.v1.ListJobsRequest request) { + return blockingUnaryCall(getChannel(), getListJobsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets a job. + *+ */ + public com.google.cloud.scheduler.v1.Job getJob( + com.google.cloud.scheduler.v1.GetJobRequest request) { + return blockingUnaryCall(getChannel(), getGetJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Creates a job. + *+ */ + public com.google.cloud.scheduler.v1.Job createJob( + com.google.cloud.scheduler.v1.CreateJobRequest request) { + return blockingUnaryCall(getChannel(), getCreateJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Updates a job. + * If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does + * not exist, `NOT_FOUND` is returned. + * If UpdateJob does not successfully return, it is possible for the + * job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in this state may + * not be executed. If this happens, retry the UpdateJob request + * until a successful response is received. + *+ */ + public com.google.cloud.scheduler.v1.Job updateJob( + com.google.cloud.scheduler.v1.UpdateJobRequest request) { + return blockingUnaryCall(getChannel(), getUpdateJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes a job. + *+ */ + public com.google.protobuf.Empty deleteJob( + com.google.cloud.scheduler.v1.DeleteJobRequest request) { + return blockingUnaryCall(getChannel(), getDeleteJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Pauses a job. + * If a job is paused then the system will stop executing the job + * until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The + * state of the job is stored in [state][google.cloud.scheduler.v1.Job.state]; if paused it + * will be set to [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED] + * to be paused. + *+ */ + public com.google.cloud.scheduler.v1.Job pauseJob( + com.google.cloud.scheduler.v1.PauseJobRequest request) { + return blockingUnaryCall(getChannel(), getPauseJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Resume a job. + * This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The + * state of a job is stored in [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it + * will be set to [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed. + *+ */ + public com.google.cloud.scheduler.v1.Job resumeJob( + com.google.cloud.scheduler.v1.ResumeJobRequest request) { + return blockingUnaryCall(getChannel(), getResumeJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Forces a job to run now. + * When this method is called, Cloud Scheduler will dispatch the job, even + * if the job is already running. + *+ */ + public com.google.cloud.scheduler.v1.Job runJob( + com.google.cloud.scheduler.v1.RunJobRequest request) { + return blockingUnaryCall(getChannel(), getRunJobMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+ * The Cloud Scheduler API allows external entities to reliably + * schedule asynchronous jobs. + *+ */ + public static final class CloudSchedulerFutureStub + extends io.grpc.stub.AbstractStub
+ * Lists jobs. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.scheduler.v1.ListJobsResponse> + listJobs(com.google.cloud.scheduler.v1.ListJobsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListJobsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets a job. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates a job. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Updates a job. + * If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does + * not exist, `NOT_FOUND` is returned. + * If UpdateJob does not successfully return, it is possible for the + * job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in this state may + * not be executed. If this happens, retry the UpdateJob request + * until a successful response is received. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes a job. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Pauses a job. + * If a job is paused then the system will stop executing the job + * until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The + * state of the job is stored in [state][google.cloud.scheduler.v1.Job.state]; if paused it + * will be set to [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED] + * to be paused. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Resume a job. + * This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The + * state of a job is stored in [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it + * will be set to [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Forces a job to run now. + * When this method is called, Cloud Scheduler will dispatch the job, even + * if the job is already running. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * App Engine target. The job will be pushed to a job handler by means + * of an HTTP request via an [http_method][google.cloud.scheduler.v1.AppEngineHttpTarget.http_method] such + * as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an + * HTTP response code in the range [200 - 299]. Error 503 is + * considered an App Engine system error instead of an application + * error. Requests returning error 503 will be retried regardless of + * retry configuration and not counted against retry counts. Any other + * response code, or a failure to receive a response before the + * deadline, constitutes a failed attempt. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.AppEngineHttpTarget} + */ +public final class AppEngineHttpTarget extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.AppEngineHttpTarget) + AppEngineHttpTargetOrBuilder { + private static final long serialVersionUID = 0L; + // Use AppEngineHttpTarget.newBuilder() to construct. + private AppEngineHttpTarget(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private AppEngineHttpTarget() { + httpMethod_ = 0; + relativeUri_ = ""; + body_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AppEngineHttpTarget( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + httpMethod_ = rawValue; + break; + } + case 18: + { + com.google.cloud.scheduler.v1.AppEngineRouting.Builder subBuilder = null; + if (appEngineRouting_ != null) { + subBuilder = appEngineRouting_.toBuilder(); + } + appEngineRouting_ = + input.readMessage( + com.google.cloud.scheduler.v1.AppEngineRouting.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(appEngineRouting_); + appEngineRouting_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + relativeUri_ = s; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + headers_ = + com.google.protobuf.MapField.newMapField( + HeadersDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry
+ * The HTTP method to use for the request. PATCH and OPTIONS are not + * permitted. + *+ * + *
.google.cloud.scheduler.v1.HttpMethod http_method = 1;
+ */
+ public int getHttpMethodValue() {
+ return httpMethod_;
+ }
+ /**
+ *
+ *
+ * + * The HTTP method to use for the request. PATCH and OPTIONS are not + * permitted. + *+ * + *
.google.cloud.scheduler.v1.HttpMethod http_method = 1;
+ */
+ public com.google.cloud.scheduler.v1.HttpMethod getHttpMethod() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.scheduler.v1.HttpMethod result =
+ com.google.cloud.scheduler.v1.HttpMethod.valueOf(httpMethod_);
+ return result == null ? com.google.cloud.scheduler.v1.HttpMethod.UNRECOGNIZED : result;
+ }
+
+ public static final int APP_ENGINE_ROUTING_FIELD_NUMBER = 2;
+ private com.google.cloud.scheduler.v1.AppEngineRouting appEngineRouting_;
+ /**
+ *
+ *
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2;
+ */
+ public boolean hasAppEngineRouting() {
+ return appEngineRouting_ != null;
+ }
+ /**
+ *
+ *
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2;
+ */
+ public com.google.cloud.scheduler.v1.AppEngineRouting getAppEngineRouting() {
+ return appEngineRouting_ == null
+ ? com.google.cloud.scheduler.v1.AppEngineRouting.getDefaultInstance()
+ : appEngineRouting_;
+ }
+ /**
+ *
+ *
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2;
+ */
+ public com.google.cloud.scheduler.v1.AppEngineRoutingOrBuilder getAppEngineRoutingOrBuilder() {
+ return getAppEngineRouting();
+ }
+
+ public static final int RELATIVE_URI_FIELD_NUMBER = 3;
+ private volatile java.lang.Object relativeUri_;
+ /**
+ *
+ *
+ * + * The relative URI. + * The relative URL must begin with "/" and must be a valid HTTP relative URL. + * It can contain a path, query string arguments, and `#` fragments. + * If the relative URL is empty, then the root path "/" will be used. + * No spaces are allowed, and the maximum length allowed is 2083 characters. + *+ * + *
string relative_uri = 3;
+ */
+ public java.lang.String getRelativeUri() {
+ java.lang.Object ref = relativeUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ relativeUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The relative URI. + * The relative URL must begin with "/" and must be a valid HTTP relative URL. + * It can contain a path, query string arguments, and `#` fragments. + * If the relative URL is empty, then the root path "/" will be used. + * No spaces are allowed, and the maximum length allowed is 2083 characters. + *+ * + *
string relative_uri = 3;
+ */
+ public com.google.protobuf.ByteString getRelativeUriBytes() {
+ java.lang.Object ref = relativeUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ relativeUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int HEADERS_FIELD_NUMBER = 4;
+
+ private static final class HeadersDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry+ * HTTP request headers. + * This map contains the header field names and values. Headers can be set + * when the job is created. + * Cloud Scheduler sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Scheduler will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * * `X-CloudScheduler`: This header will be set to true. + * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets + * the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explictly + * setting `Content-Type` to a particular media type when the job is + * created. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Scheduler. This value is + * output only. It cannot be changed. + * The headers below are output only. They cannot be set or overridden: + * * `X-Google-*`: For Google internal use only. + * * `X-AppEngine-*`: For Google internal use only. + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler. + *+ * + *
map<string, string> headers = 4;
+ */
+ public boolean containsHeaders(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetHeaders().getMap().containsKey(key);
+ }
+ /** Use {@link #getHeadersMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * HTTP request headers. + * This map contains the header field names and values. Headers can be set + * when the job is created. + * Cloud Scheduler sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Scheduler will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * * `X-CloudScheduler`: This header will be set to true. + * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets + * the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explictly + * setting `Content-Type` to a particular media type when the job is + * created. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Scheduler. This value is + * output only. It cannot be changed. + * The headers below are output only. They cannot be set or overridden: + * * `X-Google-*`: For Google internal use only. + * * `X-AppEngine-*`: For Google internal use only. + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler. + *+ * + *
map<string, string> headers = 4;
+ */
+ public java.util.Map+ * HTTP request headers. + * This map contains the header field names and values. Headers can be set + * when the job is created. + * Cloud Scheduler sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Scheduler will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * * `X-CloudScheduler`: This header will be set to true. + * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets + * the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explictly + * setting `Content-Type` to a particular media type when the job is + * created. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Scheduler. This value is + * output only. It cannot be changed. + * The headers below are output only. They cannot be set or overridden: + * * `X-Google-*`: For Google internal use only. + * * `X-AppEngine-*`: For Google internal use only. + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler. + *+ * + *
map<string, string> headers = 4;
+ */
+ public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * HTTP request headers. + * This map contains the header field names and values. Headers can be set + * when the job is created. + * Cloud Scheduler sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Scheduler will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * * `X-CloudScheduler`: This header will be set to true. + * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets + * the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explictly + * setting `Content-Type` to a particular media type when the job is + * created. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Scheduler. This value is + * output only. It cannot be changed. + * The headers below are output only. They cannot be set or overridden: + * * `X-Google-*`: For Google internal use only. + * * `X-AppEngine-*`: For Google internal use only. + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler. + *+ * + *
map<string, string> headers = 4;
+ */
+ public java.lang.String getHeadersOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * Body. + * HTTP request body. A request body is allowed only if the HTTP method is + * POST or PUT. It will result in invalid argument error to set a body on a + * job with an incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod]. + *+ * + *
bytes body = 5;
+ */
+ public com.google.protobuf.ByteString getBody() {
+ return body_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (httpMethod_
+ != com.google.cloud.scheduler.v1.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) {
+ output.writeEnum(1, httpMethod_);
+ }
+ if (appEngineRouting_ != null) {
+ output.writeMessage(2, getAppEngineRouting());
+ }
+ if (!getRelativeUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, relativeUri_);
+ }
+ com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+ output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 4);
+ if (!body_.isEmpty()) {
+ output.writeBytes(5, body_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (httpMethod_
+ != com.google.cloud.scheduler.v1.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, httpMethod_);
+ }
+ if (appEngineRouting_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAppEngineRouting());
+ }
+ if (!getRelativeUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, relativeUri_);
+ }
+ for (java.util.Map.Entry+ * App Engine target. The job will be pushed to a job handler by means + * of an HTTP request via an [http_method][google.cloud.scheduler.v1.AppEngineHttpTarget.http_method] such + * as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an + * HTTP response code in the range [200 - 299]. Error 503 is + * considered an App Engine system error instead of an application + * error. Requests returning error 503 will be retried regardless of + * retry configuration and not counted against retry counts. Any other + * response code, or a failure to receive a response before the + * deadline, constitutes a failed attempt. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.AppEngineHttpTarget} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The HTTP method to use for the request. PATCH and OPTIONS are not + * permitted. + *+ * + *
.google.cloud.scheduler.v1.HttpMethod http_method = 1;
+ */
+ public int getHttpMethodValue() {
+ return httpMethod_;
+ }
+ /**
+ *
+ *
+ * + * The HTTP method to use for the request. PATCH and OPTIONS are not + * permitted. + *+ * + *
.google.cloud.scheduler.v1.HttpMethod http_method = 1;
+ */
+ public Builder setHttpMethodValue(int value) {
+ httpMethod_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The HTTP method to use for the request. PATCH and OPTIONS are not + * permitted. + *+ * + *
.google.cloud.scheduler.v1.HttpMethod http_method = 1;
+ */
+ public com.google.cloud.scheduler.v1.HttpMethod getHttpMethod() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.scheduler.v1.HttpMethod result =
+ com.google.cloud.scheduler.v1.HttpMethod.valueOf(httpMethod_);
+ return result == null ? com.google.cloud.scheduler.v1.HttpMethod.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ * + * The HTTP method to use for the request. PATCH and OPTIONS are not + * permitted. + *+ * + *
.google.cloud.scheduler.v1.HttpMethod http_method = 1;
+ */
+ public Builder setHttpMethod(com.google.cloud.scheduler.v1.HttpMethod value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ httpMethod_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The HTTP method to use for the request. PATCH and OPTIONS are not + * permitted. + *+ * + *
.google.cloud.scheduler.v1.HttpMethod http_method = 1;
+ */
+ public Builder clearHttpMethod() {
+
+ httpMethod_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.scheduler.v1.AppEngineRouting appEngineRouting_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1.AppEngineRouting,
+ com.google.cloud.scheduler.v1.AppEngineRouting.Builder,
+ com.google.cloud.scheduler.v1.AppEngineRoutingOrBuilder>
+ appEngineRoutingBuilder_;
+ /**
+ *
+ *
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2;
+ */
+ public boolean hasAppEngineRouting() {
+ return appEngineRoutingBuilder_ != null || appEngineRouting_ != null;
+ }
+ /**
+ *
+ *
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2;
+ */
+ public com.google.cloud.scheduler.v1.AppEngineRouting getAppEngineRouting() {
+ if (appEngineRoutingBuilder_ == null) {
+ return appEngineRouting_ == null
+ ? com.google.cloud.scheduler.v1.AppEngineRouting.getDefaultInstance()
+ : appEngineRouting_;
+ } else {
+ return appEngineRoutingBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2;
+ */
+ public Builder setAppEngineRouting(com.google.cloud.scheduler.v1.AppEngineRouting value) {
+ if (appEngineRoutingBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ appEngineRouting_ = value;
+ onChanged();
+ } else {
+ appEngineRoutingBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2;
+ */
+ public Builder setAppEngineRouting(
+ com.google.cloud.scheduler.v1.AppEngineRouting.Builder builderForValue) {
+ if (appEngineRoutingBuilder_ == null) {
+ appEngineRouting_ = builderForValue.build();
+ onChanged();
+ } else {
+ appEngineRoutingBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2;
+ */
+ public Builder mergeAppEngineRouting(com.google.cloud.scheduler.v1.AppEngineRouting value) {
+ if (appEngineRoutingBuilder_ == null) {
+ if (appEngineRouting_ != null) {
+ appEngineRouting_ =
+ com.google.cloud.scheduler.v1.AppEngineRouting.newBuilder(appEngineRouting_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ appEngineRouting_ = value;
+ }
+ onChanged();
+ } else {
+ appEngineRoutingBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2;
+ */
+ public Builder clearAppEngineRouting() {
+ if (appEngineRoutingBuilder_ == null) {
+ appEngineRouting_ = null;
+ onChanged();
+ } else {
+ appEngineRouting_ = null;
+ appEngineRoutingBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2;
+ */
+ public com.google.cloud.scheduler.v1.AppEngineRouting.Builder getAppEngineRoutingBuilder() {
+
+ onChanged();
+ return getAppEngineRoutingFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2;
+ */
+ public com.google.cloud.scheduler.v1.AppEngineRoutingOrBuilder getAppEngineRoutingOrBuilder() {
+ if (appEngineRoutingBuilder_ != null) {
+ return appEngineRoutingBuilder_.getMessageOrBuilder();
+ } else {
+ return appEngineRouting_ == null
+ ? com.google.cloud.scheduler.v1.AppEngineRouting.getDefaultInstance()
+ : appEngineRouting_;
+ }
+ }
+ /**
+ *
+ *
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1.AppEngineRouting,
+ com.google.cloud.scheduler.v1.AppEngineRouting.Builder,
+ com.google.cloud.scheduler.v1.AppEngineRoutingOrBuilder>
+ getAppEngineRoutingFieldBuilder() {
+ if (appEngineRoutingBuilder_ == null) {
+ appEngineRoutingBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1.AppEngineRouting,
+ com.google.cloud.scheduler.v1.AppEngineRouting.Builder,
+ com.google.cloud.scheduler.v1.AppEngineRoutingOrBuilder>(
+ getAppEngineRouting(), getParentForChildren(), isClean());
+ appEngineRouting_ = null;
+ }
+ return appEngineRoutingBuilder_;
+ }
+
+ private java.lang.Object relativeUri_ = "";
+ /**
+ *
+ *
+ * + * The relative URI. + * The relative URL must begin with "/" and must be a valid HTTP relative URL. + * It can contain a path, query string arguments, and `#` fragments. + * If the relative URL is empty, then the root path "/" will be used. + * No spaces are allowed, and the maximum length allowed is 2083 characters. + *+ * + *
string relative_uri = 3;
+ */
+ public java.lang.String getRelativeUri() {
+ java.lang.Object ref = relativeUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ relativeUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The relative URI. + * The relative URL must begin with "/" and must be a valid HTTP relative URL. + * It can contain a path, query string arguments, and `#` fragments. + * If the relative URL is empty, then the root path "/" will be used. + * No spaces are allowed, and the maximum length allowed is 2083 characters. + *+ * + *
string relative_uri = 3;
+ */
+ public com.google.protobuf.ByteString getRelativeUriBytes() {
+ java.lang.Object ref = relativeUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ relativeUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The relative URI. + * The relative URL must begin with "/" and must be a valid HTTP relative URL. + * It can contain a path, query string arguments, and `#` fragments. + * If the relative URL is empty, then the root path "/" will be used. + * No spaces are allowed, and the maximum length allowed is 2083 characters. + *+ * + *
string relative_uri = 3;
+ */
+ public Builder setRelativeUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ relativeUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The relative URI. + * The relative URL must begin with "/" and must be a valid HTTP relative URL. + * It can contain a path, query string arguments, and `#` fragments. + * If the relative URL is empty, then the root path "/" will be used. + * No spaces are allowed, and the maximum length allowed is 2083 characters. + *+ * + *
string relative_uri = 3;
+ */
+ public Builder clearRelativeUri() {
+
+ relativeUri_ = getDefaultInstance().getRelativeUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The relative URI. + * The relative URL must begin with "/" and must be a valid HTTP relative URL. + * It can contain a path, query string arguments, and `#` fragments. + * If the relative URL is empty, then the root path "/" will be used. + * No spaces are allowed, and the maximum length allowed is 2083 characters. + *+ * + *
string relative_uri = 3;
+ */
+ public Builder setRelativeUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ relativeUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField+ * HTTP request headers. + * This map contains the header field names and values. Headers can be set + * when the job is created. + * Cloud Scheduler sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Scheduler will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * * `X-CloudScheduler`: This header will be set to true. + * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets + * the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explictly + * setting `Content-Type` to a particular media type when the job is + * created. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Scheduler. This value is + * output only. It cannot be changed. + * The headers below are output only. They cannot be set or overridden: + * * `X-Google-*`: For Google internal use only. + * * `X-AppEngine-*`: For Google internal use only. + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler. + *+ * + *
map<string, string> headers = 4;
+ */
+ public boolean containsHeaders(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetHeaders().getMap().containsKey(key);
+ }
+ /** Use {@link #getHeadersMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * HTTP request headers. + * This map contains the header field names and values. Headers can be set + * when the job is created. + * Cloud Scheduler sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Scheduler will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * * `X-CloudScheduler`: This header will be set to true. + * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets + * the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explictly + * setting `Content-Type` to a particular media type when the job is + * created. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Scheduler. This value is + * output only. It cannot be changed. + * The headers below are output only. They cannot be set or overridden: + * * `X-Google-*`: For Google internal use only. + * * `X-AppEngine-*`: For Google internal use only. + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler. + *+ * + *
map<string, string> headers = 4;
+ */
+ public java.util.Map+ * HTTP request headers. + * This map contains the header field names and values. Headers can be set + * when the job is created. + * Cloud Scheduler sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Scheduler will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * * `X-CloudScheduler`: This header will be set to true. + * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets + * the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explictly + * setting `Content-Type` to a particular media type when the job is + * created. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Scheduler. This value is + * output only. It cannot be changed. + * The headers below are output only. They cannot be set or overridden: + * * `X-Google-*`: For Google internal use only. + * * `X-AppEngine-*`: For Google internal use only. + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler. + *+ * + *
map<string, string> headers = 4;
+ */
+ public java.lang.String getHeadersOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * HTTP request headers. + * This map contains the header field names and values. Headers can be set + * when the job is created. + * Cloud Scheduler sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Scheduler will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * * `X-CloudScheduler`: This header will be set to true. + * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets + * the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explictly + * setting `Content-Type` to a particular media type when the job is + * created. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Scheduler. This value is + * output only. It cannot be changed. + * The headers below are output only. They cannot be set or overridden: + * * `X-Google-*`: For Google internal use only. + * * `X-AppEngine-*`: For Google internal use only. + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler. + *+ * + *
map<string, string> headers = 4;
+ */
+ public java.lang.String getHeadersOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * HTTP request headers. + * This map contains the header field names and values. Headers can be set + * when the job is created. + * Cloud Scheduler sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Scheduler will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * * `X-CloudScheduler`: This header will be set to true. + * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets + * the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explictly + * setting `Content-Type` to a particular media type when the job is + * created. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Scheduler. This value is + * output only. It cannot be changed. + * The headers below are output only. They cannot be set or overridden: + * * `X-Google-*`: For Google internal use only. + * * `X-AppEngine-*`: For Google internal use only. + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler. + *+ * + *
map<string, string> headers = 4;
+ */
+ public Builder removeHeaders(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableHeaders().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * HTTP request headers. + * This map contains the header field names and values. Headers can be set + * when the job is created. + * Cloud Scheduler sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Scheduler will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * * `X-CloudScheduler`: This header will be set to true. + * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets + * the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explictly + * setting `Content-Type` to a particular media type when the job is + * created. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Scheduler. This value is + * output only. It cannot be changed. + * The headers below are output only. They cannot be set or overridden: + * * `X-Google-*`: For Google internal use only. + * * `X-AppEngine-*`: For Google internal use only. + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler. + *+ * + *
map<string, string> headers = 4;
+ */
+ public Builder putHeaders(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableHeaders().getMutableMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ *
+ * + * HTTP request headers. + * This map contains the header field names and values. Headers can be set + * when the job is created. + * Cloud Scheduler sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Scheduler will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * * `X-CloudScheduler`: This header will be set to true. + * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets + * the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explictly + * setting `Content-Type` to a particular media type when the job is + * created. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Scheduler. This value is + * output only. It cannot be changed. + * The headers below are output only. They cannot be set or overridden: + * * `X-Google-*`: For Google internal use only. + * * `X-AppEngine-*`: For Google internal use only. + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler. + *+ * + *
map<string, string> headers = 4;
+ */
+ public Builder putAllHeaders(java.util.Map+ * Body. + * HTTP request body. A request body is allowed only if the HTTP method is + * POST or PUT. It will result in invalid argument error to set a body on a + * job with an incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod]. + *+ * + *
bytes body = 5;
+ */
+ public com.google.protobuf.ByteString getBody() {
+ return body_;
+ }
+ /**
+ *
+ *
+ * + * Body. + * HTTP request body. A request body is allowed only if the HTTP method is + * POST or PUT. It will result in invalid argument error to set a body on a + * job with an incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod]. + *+ * + *
bytes body = 5;
+ */
+ public Builder setBody(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ body_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Body. + * HTTP request body. A request body is allowed only if the HTTP method is + * POST or PUT. It will result in invalid argument error to set a body on a + * job with an incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod]. + *+ * + *
bytes body = 5;
+ */
+ public Builder clearBody() {
+
+ body_ = getDefaultInstance().getBody();
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.AppEngineHttpTarget)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.AppEngineHttpTarget)
+ private static final com.google.cloud.scheduler.v1.AppEngineHttpTarget DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.AppEngineHttpTarget();
+ }
+
+ public static com.google.cloud.scheduler.v1.AppEngineHttpTarget getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The HTTP method to use for the request. PATCH and OPTIONS are not + * permitted. + *+ * + *
.google.cloud.scheduler.v1.HttpMethod http_method = 1;
+ */
+ int getHttpMethodValue();
+ /**
+ *
+ *
+ * + * The HTTP method to use for the request. PATCH and OPTIONS are not + * permitted. + *+ * + *
.google.cloud.scheduler.v1.HttpMethod http_method = 1;
+ */
+ com.google.cloud.scheduler.v1.HttpMethod getHttpMethod();
+
+ /**
+ *
+ *
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2;
+ */
+ boolean hasAppEngineRouting();
+ /**
+ *
+ *
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2;
+ */
+ com.google.cloud.scheduler.v1.AppEngineRouting getAppEngineRouting();
+ /**
+ *
+ *
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2;
+ */
+ com.google.cloud.scheduler.v1.AppEngineRoutingOrBuilder getAppEngineRoutingOrBuilder();
+
+ /**
+ *
+ *
+ * + * The relative URI. + * The relative URL must begin with "/" and must be a valid HTTP relative URL. + * It can contain a path, query string arguments, and `#` fragments. + * If the relative URL is empty, then the root path "/" will be used. + * No spaces are allowed, and the maximum length allowed is 2083 characters. + *+ * + *
string relative_uri = 3;
+ */
+ java.lang.String getRelativeUri();
+ /**
+ *
+ *
+ * + * The relative URI. + * The relative URL must begin with "/" and must be a valid HTTP relative URL. + * It can contain a path, query string arguments, and `#` fragments. + * If the relative URL is empty, then the root path "/" will be used. + * No spaces are allowed, and the maximum length allowed is 2083 characters. + *+ * + *
string relative_uri = 3;
+ */
+ com.google.protobuf.ByteString getRelativeUriBytes();
+
+ /**
+ *
+ *
+ * + * HTTP request headers. + * This map contains the header field names and values. Headers can be set + * when the job is created. + * Cloud Scheduler sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Scheduler will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * * `X-CloudScheduler`: This header will be set to true. + * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets + * the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explictly + * setting `Content-Type` to a particular media type when the job is + * created. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Scheduler. This value is + * output only. It cannot be changed. + * The headers below are output only. They cannot be set or overridden: + * * `X-Google-*`: For Google internal use only. + * * `X-AppEngine-*`: For Google internal use only. + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler. + *+ * + *
map<string, string> headers = 4;
+ */
+ int getHeadersCount();
+ /**
+ *
+ *
+ * + * HTTP request headers. + * This map contains the header field names and values. Headers can be set + * when the job is created. + * Cloud Scheduler sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Scheduler will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * * `X-CloudScheduler`: This header will be set to true. + * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets + * the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explictly + * setting `Content-Type` to a particular media type when the job is + * created. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Scheduler. This value is + * output only. It cannot be changed. + * The headers below are output only. They cannot be set or overridden: + * * `X-Google-*`: For Google internal use only. + * * `X-AppEngine-*`: For Google internal use only. + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler. + *+ * + *
map<string, string> headers = 4;
+ */
+ boolean containsHeaders(java.lang.String key);
+ /** Use {@link #getHeadersMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map+ * HTTP request headers. + * This map contains the header field names and values. Headers can be set + * when the job is created. + * Cloud Scheduler sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Scheduler will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * * `X-CloudScheduler`: This header will be set to true. + * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets + * the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explictly + * setting `Content-Type` to a particular media type when the job is + * created. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Scheduler. This value is + * output only. It cannot be changed. + * The headers below are output only. They cannot be set or overridden: + * * `X-Google-*`: For Google internal use only. + * * `X-AppEngine-*`: For Google internal use only. + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler. + *+ * + *
map<string, string> headers = 4;
+ */
+ java.util.Map+ * HTTP request headers. + * This map contains the header field names and values. Headers can be set + * when the job is created. + * Cloud Scheduler sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Scheduler will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * * `X-CloudScheduler`: This header will be set to true. + * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets + * the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explictly + * setting `Content-Type` to a particular media type when the job is + * created. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Scheduler. This value is + * output only. It cannot be changed. + * The headers below are output only. They cannot be set or overridden: + * * `X-Google-*`: For Google internal use only. + * * `X-AppEngine-*`: For Google internal use only. + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler. + *+ * + *
map<string, string> headers = 4;
+ */
+ java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue);
+ /**
+ *
+ *
+ * + * HTTP request headers. + * This map contains the header field names and values. Headers can be set + * when the job is created. + * Cloud Scheduler sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Scheduler will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * * `X-CloudScheduler`: This header will be set to true. + * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets + * the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explictly + * setting `Content-Type` to a particular media type when the job is + * created. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Scheduler. This value is + * output only. It cannot be changed. + * The headers below are output only. They cannot be set or overridden: + * * `X-Google-*`: For Google internal use only. + * * `X-AppEngine-*`: For Google internal use only. + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler. + *+ * + *
map<string, string> headers = 4;
+ */
+ java.lang.String getHeadersOrThrow(java.lang.String key);
+
+ /**
+ *
+ *
+ * + * Body. + * HTTP request body. A request body is allowed only if the HTTP method is + * POST or PUT. It will result in invalid argument error to set a body on a + * job with an incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod]. + *+ * + *
bytes body = 5;
+ */
+ com.google.protobuf.ByteString getBody();
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineRouting.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineRouting.java
new file mode 100644
index 000000000000..268cfacd7b27
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineRouting.java
@@ -0,0 +1,1476 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1/target.proto
+
+package com.google.cloud.scheduler.v1;
+
+/**
+ *
+ *
+ * + * App Engine Routing. + * For more information about services, versions, and instances see + * [An Overview of App + * Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine), + * [Microservices Architecture on Google App + * Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine), + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed), + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.AppEngineRouting} + */ +public final class AppEngineRouting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.AppEngineRouting) + AppEngineRoutingOrBuilder { + private static final long serialVersionUID = 0L; + // Use AppEngineRouting.newBuilder() to construct. + private AppEngineRouting(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private AppEngineRouting() { + service_ = ""; + version_ = ""; + instance_ = ""; + host_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AppEngineRouting( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + service_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + instance_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + host_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_AppEngineRouting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_AppEngineRouting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.AppEngineRouting.class, + com.google.cloud.scheduler.v1.AppEngineRouting.Builder.class); + } + + public static final int SERVICE_FIELD_NUMBER = 1; + private volatile java.lang.Object service_; + /** + * + * + *
+ * App service. + * By default, the job is sent to the service which is the default + * service when the job is attempted. + *+ * + *
string service = 1;
+ */
+ public java.lang.String getService() {
+ java.lang.Object ref = service_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ service_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * App service. + * By default, the job is sent to the service which is the default + * service when the job is attempted. + *+ * + *
string service = 1;
+ */
+ public com.google.protobuf.ByteString getServiceBytes() {
+ java.lang.Object ref = service_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ service_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object version_;
+ /**
+ *
+ *
+ * + * App version. + * By default, the job is sent to the version which is the default + * version when the job is attempted. + *+ * + *
string version = 2;
+ */
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ version_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * App version. + * By default, the job is sent to the version which is the default + * version when the job is attempted. + *+ * + *
string version = 2;
+ */
+ public com.google.protobuf.ByteString getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INSTANCE_FIELD_NUMBER = 3;
+ private volatile java.lang.Object instance_;
+ /**
+ *
+ *
+ * + * App instance. + * By default, the job is sent to an instance which is available when + * the job is attempted. + * Requests can only be sent to a specific instance if + * [manual scaling is used in App Engine + * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). + * App Engine Flex does not support instances. For more information, see + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + *
string instance = 3;
+ */
+ public java.lang.String getInstance() {
+ java.lang.Object ref = instance_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ instance_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * App instance. + * By default, the job is sent to an instance which is available when + * the job is attempted. + * Requests can only be sent to a specific instance if + * [manual scaling is used in App Engine + * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). + * App Engine Flex does not support instances. For more information, see + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + *
string instance = 3;
+ */
+ public com.google.protobuf.ByteString getInstanceBytes() {
+ java.lang.Object ref = instance_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ instance_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int HOST_FIELD_NUMBER = 4;
+ private volatile java.lang.Object host_;
+ /**
+ *
+ *
+ * + * Output only. The host that the job is sent to. + * For more information about how App Engine requests are routed, see + * [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). + * The host is constructed as: + * * `host = [application_domain_name]`</br> + * `| [service] + '.' + [application_domain_name]`</br> + * `| [version] + '.' + [application_domain_name]`</br> + * `| [version_dot_service]+ '.' + [application_domain_name]`</br> + * `| [instance] + '.' + [application_domain_name]`</br> + * `| [instance_dot_service] + '.' + [application_domain_name]`</br> + * `| [instance_dot_version] + '.' + [application_domain_name]`</br> + * `| [instance_dot_version_dot_service] + '.' + [application_domain_name]` + * * `application_domain_name` = The domain name of the app, for + * example <app-id>.appspot.com, which is associated with the + * job's project ID. + * * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version] + * * `version_dot_service =` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] + * * `instance_dot_service =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `instance_dot_version =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] + * * `instance_dot_version_dot_service =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent + * to the service which is the default service when the job is attempted. + * If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent + * to the version which is the default version when the job is attempted. + * If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be + * sent to an instance which is available when the job is attempted. + * If [service][google.cloud.scheduler.v1.AppEngineRouting.service], + * [version][google.cloud.scheduler.v1.AppEngineRouting.version], or + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent + * to the default version of the default service when the job is attempted. + *+ * + *
string host = 4;
+ */
+ public java.lang.String getHost() {
+ java.lang.Object ref = host_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ host_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The host that the job is sent to. + * For more information about how App Engine requests are routed, see + * [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). + * The host is constructed as: + * * `host = [application_domain_name]`</br> + * `| [service] + '.' + [application_domain_name]`</br> + * `| [version] + '.' + [application_domain_name]`</br> + * `| [version_dot_service]+ '.' + [application_domain_name]`</br> + * `| [instance] + '.' + [application_domain_name]`</br> + * `| [instance_dot_service] + '.' + [application_domain_name]`</br> + * `| [instance_dot_version] + '.' + [application_domain_name]`</br> + * `| [instance_dot_version_dot_service] + '.' + [application_domain_name]` + * * `application_domain_name` = The domain name of the app, for + * example <app-id>.appspot.com, which is associated with the + * job's project ID. + * * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version] + * * `version_dot_service =` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] + * * `instance_dot_service =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `instance_dot_version =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] + * * `instance_dot_version_dot_service =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent + * to the service which is the default service when the job is attempted. + * If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent + * to the version which is the default version when the job is attempted. + * If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be + * sent to an instance which is available when the job is attempted. + * If [service][google.cloud.scheduler.v1.AppEngineRouting.service], + * [version][google.cloud.scheduler.v1.AppEngineRouting.version], or + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent + * to the default version of the default service when the job is attempted. + *+ * + *
string host = 4;
+ */
+ public com.google.protobuf.ByteString getHostBytes() {
+ java.lang.Object ref = host_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ host_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getServiceBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_);
+ }
+ if (!getVersionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
+ }
+ if (!getInstanceBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instance_);
+ }
+ if (!getHostBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, host_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getServiceBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_);
+ }
+ if (!getVersionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
+ }
+ if (!getInstanceBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instance_);
+ }
+ if (!getHostBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, host_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.scheduler.v1.AppEngineRouting)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1.AppEngineRouting other =
+ (com.google.cloud.scheduler.v1.AppEngineRouting) obj;
+
+ boolean result = true;
+ result = result && getService().equals(other.getService());
+ result = result && getVersion().equals(other.getVersion());
+ result = result && getInstance().equals(other.getInstance());
+ result = result && getHost().equals(other.getHost());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SERVICE_FIELD_NUMBER;
+ hash = (53 * hash) + getService().hashCode();
+ hash = (37 * hash) + VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getVersion().hashCode();
+ hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + getInstance().hashCode();
+ hash = (37 * hash) + HOST_FIELD_NUMBER;
+ hash = (53 * hash) + getHost().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.scheduler.v1.AppEngineRouting parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.AppEngineRouting parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.AppEngineRouting parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.AppEngineRouting parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.AppEngineRouting parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.AppEngineRouting parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.AppEngineRouting parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.AppEngineRouting parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.AppEngineRouting parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.AppEngineRouting parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.AppEngineRouting parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.AppEngineRouting parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.scheduler.v1.AppEngineRouting prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * App Engine Routing. + * For more information about services, versions, and instances see + * [An Overview of App + * Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine), + * [Microservices Architecture on Google App + * Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine), + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed), + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.AppEngineRouting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * App service. + * By default, the job is sent to the service which is the default + * service when the job is attempted. + *+ * + *
string service = 1;
+ */
+ public java.lang.String getService() {
+ java.lang.Object ref = service_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ service_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * App service. + * By default, the job is sent to the service which is the default + * service when the job is attempted. + *+ * + *
string service = 1;
+ */
+ public com.google.protobuf.ByteString getServiceBytes() {
+ java.lang.Object ref = service_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ service_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * App service. + * By default, the job is sent to the service which is the default + * service when the job is attempted. + *+ * + *
string service = 1;
+ */
+ public Builder setService(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ service_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App service. + * By default, the job is sent to the service which is the default + * service when the job is attempted. + *+ * + *
string service = 1;
+ */
+ public Builder clearService() {
+
+ service_ = getDefaultInstance().getService();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App service. + * By default, the job is sent to the service which is the default + * service when the job is attempted. + *+ * + *
string service = 1;
+ */
+ public Builder setServiceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ service_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object version_ = "";
+ /**
+ *
+ *
+ * + * App version. + * By default, the job is sent to the version which is the default + * version when the job is attempted. + *+ * + *
string version = 2;
+ */
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ version_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * App version. + * By default, the job is sent to the version which is the default + * version when the job is attempted. + *+ * + *
string version = 2;
+ */
+ public com.google.protobuf.ByteString getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * App version. + * By default, the job is sent to the version which is the default + * version when the job is attempted. + *+ * + *
string version = 2;
+ */
+ public Builder setVersion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ version_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App version. + * By default, the job is sent to the version which is the default + * version when the job is attempted. + *+ * + *
string version = 2;
+ */
+ public Builder clearVersion() {
+
+ version_ = getDefaultInstance().getVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App version. + * By default, the job is sent to the version which is the default + * version when the job is attempted. + *+ * + *
string version = 2;
+ */
+ public Builder setVersionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ version_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object instance_ = "";
+ /**
+ *
+ *
+ * + * App instance. + * By default, the job is sent to an instance which is available when + * the job is attempted. + * Requests can only be sent to a specific instance if + * [manual scaling is used in App Engine + * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). + * App Engine Flex does not support instances. For more information, see + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + *
string instance = 3;
+ */
+ public java.lang.String getInstance() {
+ java.lang.Object ref = instance_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ instance_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * App instance. + * By default, the job is sent to an instance which is available when + * the job is attempted. + * Requests can only be sent to a specific instance if + * [manual scaling is used in App Engine + * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). + * App Engine Flex does not support instances. For more information, see + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + *
string instance = 3;
+ */
+ public com.google.protobuf.ByteString getInstanceBytes() {
+ java.lang.Object ref = instance_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ instance_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * App instance. + * By default, the job is sent to an instance which is available when + * the job is attempted. + * Requests can only be sent to a specific instance if + * [manual scaling is used in App Engine + * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). + * App Engine Flex does not support instances. For more information, see + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + *
string instance = 3;
+ */
+ public Builder setInstance(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ instance_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App instance. + * By default, the job is sent to an instance which is available when + * the job is attempted. + * Requests can only be sent to a specific instance if + * [manual scaling is used in App Engine + * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). + * App Engine Flex does not support instances. For more information, see + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + *
string instance = 3;
+ */
+ public Builder clearInstance() {
+
+ instance_ = getDefaultInstance().getInstance();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App instance. + * By default, the job is sent to an instance which is available when + * the job is attempted. + * Requests can only be sent to a specific instance if + * [manual scaling is used in App Engine + * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). + * App Engine Flex does not support instances. For more information, see + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + *
string instance = 3;
+ */
+ public Builder setInstanceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ instance_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object host_ = "";
+ /**
+ *
+ *
+ * + * Output only. The host that the job is sent to. + * For more information about how App Engine requests are routed, see + * [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). + * The host is constructed as: + * * `host = [application_domain_name]`</br> + * `| [service] + '.' + [application_domain_name]`</br> + * `| [version] + '.' + [application_domain_name]`</br> + * `| [version_dot_service]+ '.' + [application_domain_name]`</br> + * `| [instance] + '.' + [application_domain_name]`</br> + * `| [instance_dot_service] + '.' + [application_domain_name]`</br> + * `| [instance_dot_version] + '.' + [application_domain_name]`</br> + * `| [instance_dot_version_dot_service] + '.' + [application_domain_name]` + * * `application_domain_name` = The domain name of the app, for + * example <app-id>.appspot.com, which is associated with the + * job's project ID. + * * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version] + * * `version_dot_service =` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] + * * `instance_dot_service =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `instance_dot_version =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] + * * `instance_dot_version_dot_service =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent + * to the service which is the default service when the job is attempted. + * If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent + * to the version which is the default version when the job is attempted. + * If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be + * sent to an instance which is available when the job is attempted. + * If [service][google.cloud.scheduler.v1.AppEngineRouting.service], + * [version][google.cloud.scheduler.v1.AppEngineRouting.version], or + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent + * to the default version of the default service when the job is attempted. + *+ * + *
string host = 4;
+ */
+ public java.lang.String getHost() {
+ java.lang.Object ref = host_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ host_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The host that the job is sent to. + * For more information about how App Engine requests are routed, see + * [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). + * The host is constructed as: + * * `host = [application_domain_name]`</br> + * `| [service] + '.' + [application_domain_name]`</br> + * `| [version] + '.' + [application_domain_name]`</br> + * `| [version_dot_service]+ '.' + [application_domain_name]`</br> + * `| [instance] + '.' + [application_domain_name]`</br> + * `| [instance_dot_service] + '.' + [application_domain_name]`</br> + * `| [instance_dot_version] + '.' + [application_domain_name]`</br> + * `| [instance_dot_version_dot_service] + '.' + [application_domain_name]` + * * `application_domain_name` = The domain name of the app, for + * example <app-id>.appspot.com, which is associated with the + * job's project ID. + * * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version] + * * `version_dot_service =` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] + * * `instance_dot_service =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `instance_dot_version =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] + * * `instance_dot_version_dot_service =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent + * to the service which is the default service when the job is attempted. + * If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent + * to the version which is the default version when the job is attempted. + * If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be + * sent to an instance which is available when the job is attempted. + * If [service][google.cloud.scheduler.v1.AppEngineRouting.service], + * [version][google.cloud.scheduler.v1.AppEngineRouting.version], or + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent + * to the default version of the default service when the job is attempted. + *+ * + *
string host = 4;
+ */
+ public com.google.protobuf.ByteString getHostBytes() {
+ java.lang.Object ref = host_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ host_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The host that the job is sent to. + * For more information about how App Engine requests are routed, see + * [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). + * The host is constructed as: + * * `host = [application_domain_name]`</br> + * `| [service] + '.' + [application_domain_name]`</br> + * `| [version] + '.' + [application_domain_name]`</br> + * `| [version_dot_service]+ '.' + [application_domain_name]`</br> + * `| [instance] + '.' + [application_domain_name]`</br> + * `| [instance_dot_service] + '.' + [application_domain_name]`</br> + * `| [instance_dot_version] + '.' + [application_domain_name]`</br> + * `| [instance_dot_version_dot_service] + '.' + [application_domain_name]` + * * `application_domain_name` = The domain name of the app, for + * example <app-id>.appspot.com, which is associated with the + * job's project ID. + * * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version] + * * `version_dot_service =` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] + * * `instance_dot_service =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `instance_dot_version =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] + * * `instance_dot_version_dot_service =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent + * to the service which is the default service when the job is attempted. + * If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent + * to the version which is the default version when the job is attempted. + * If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be + * sent to an instance which is available when the job is attempted. + * If [service][google.cloud.scheduler.v1.AppEngineRouting.service], + * [version][google.cloud.scheduler.v1.AppEngineRouting.version], or + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent + * to the default version of the default service when the job is attempted. + *+ * + *
string host = 4;
+ */
+ public Builder setHost(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ host_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The host that the job is sent to. + * For more information about how App Engine requests are routed, see + * [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). + * The host is constructed as: + * * `host = [application_domain_name]`</br> + * `| [service] + '.' + [application_domain_name]`</br> + * `| [version] + '.' + [application_domain_name]`</br> + * `| [version_dot_service]+ '.' + [application_domain_name]`</br> + * `| [instance] + '.' + [application_domain_name]`</br> + * `| [instance_dot_service] + '.' + [application_domain_name]`</br> + * `| [instance_dot_version] + '.' + [application_domain_name]`</br> + * `| [instance_dot_version_dot_service] + '.' + [application_domain_name]` + * * `application_domain_name` = The domain name of the app, for + * example <app-id>.appspot.com, which is associated with the + * job's project ID. + * * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version] + * * `version_dot_service =` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] + * * `instance_dot_service =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `instance_dot_version =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] + * * `instance_dot_version_dot_service =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent + * to the service which is the default service when the job is attempted. + * If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent + * to the version which is the default version when the job is attempted. + * If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be + * sent to an instance which is available when the job is attempted. + * If [service][google.cloud.scheduler.v1.AppEngineRouting.service], + * [version][google.cloud.scheduler.v1.AppEngineRouting.version], or + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent + * to the default version of the default service when the job is attempted. + *+ * + *
string host = 4;
+ */
+ public Builder clearHost() {
+
+ host_ = getDefaultInstance().getHost();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The host that the job is sent to. + * For more information about how App Engine requests are routed, see + * [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). + * The host is constructed as: + * * `host = [application_domain_name]`</br> + * `| [service] + '.' + [application_domain_name]`</br> + * `| [version] + '.' + [application_domain_name]`</br> + * `| [version_dot_service]+ '.' + [application_domain_name]`</br> + * `| [instance] + '.' + [application_domain_name]`</br> + * `| [instance_dot_service] + '.' + [application_domain_name]`</br> + * `| [instance_dot_version] + '.' + [application_domain_name]`</br> + * `| [instance_dot_version_dot_service] + '.' + [application_domain_name]` + * * `application_domain_name` = The domain name of the app, for + * example <app-id>.appspot.com, which is associated with the + * job's project ID. + * * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version] + * * `version_dot_service =` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] + * * `instance_dot_service =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `instance_dot_version =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] + * * `instance_dot_version_dot_service =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent + * to the service which is the default service when the job is attempted. + * If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent + * to the version which is the default version when the job is attempted. + * If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be + * sent to an instance which is available when the job is attempted. + * If [service][google.cloud.scheduler.v1.AppEngineRouting.service], + * [version][google.cloud.scheduler.v1.AppEngineRouting.version], or + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent + * to the default version of the default service when the job is attempted. + *+ * + *
string host = 4;
+ */
+ public Builder setHostBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ host_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.AppEngineRouting)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.AppEngineRouting)
+ private static final com.google.cloud.scheduler.v1.AppEngineRouting DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.AppEngineRouting();
+ }
+
+ public static com.google.cloud.scheduler.v1.AppEngineRouting getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * App service. + * By default, the job is sent to the service which is the default + * service when the job is attempted. + *+ * + *
string service = 1;
+ */
+ java.lang.String getService();
+ /**
+ *
+ *
+ * + * App service. + * By default, the job is sent to the service which is the default + * service when the job is attempted. + *+ * + *
string service = 1;
+ */
+ com.google.protobuf.ByteString getServiceBytes();
+
+ /**
+ *
+ *
+ * + * App version. + * By default, the job is sent to the version which is the default + * version when the job is attempted. + *+ * + *
string version = 2;
+ */
+ java.lang.String getVersion();
+ /**
+ *
+ *
+ * + * App version. + * By default, the job is sent to the version which is the default + * version when the job is attempted. + *+ * + *
string version = 2;
+ */
+ com.google.protobuf.ByteString getVersionBytes();
+
+ /**
+ *
+ *
+ * + * App instance. + * By default, the job is sent to an instance which is available when + * the job is attempted. + * Requests can only be sent to a specific instance if + * [manual scaling is used in App Engine + * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). + * App Engine Flex does not support instances. For more information, see + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + *
string instance = 3;
+ */
+ java.lang.String getInstance();
+ /**
+ *
+ *
+ * + * App instance. + * By default, the job is sent to an instance which is available when + * the job is attempted. + * Requests can only be sent to a specific instance if + * [manual scaling is used in App Engine + * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). + * App Engine Flex does not support instances. For more information, see + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + *
string instance = 3;
+ */
+ com.google.protobuf.ByteString getInstanceBytes();
+
+ /**
+ *
+ *
+ * + * Output only. The host that the job is sent to. + * For more information about how App Engine requests are routed, see + * [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). + * The host is constructed as: + * * `host = [application_domain_name]`</br> + * `| [service] + '.' + [application_domain_name]`</br> + * `| [version] + '.' + [application_domain_name]`</br> + * `| [version_dot_service]+ '.' + [application_domain_name]`</br> + * `| [instance] + '.' + [application_domain_name]`</br> + * `| [instance_dot_service] + '.' + [application_domain_name]`</br> + * `| [instance_dot_version] + '.' + [application_domain_name]`</br> + * `| [instance_dot_version_dot_service] + '.' + [application_domain_name]` + * * `application_domain_name` = The domain name of the app, for + * example <app-id>.appspot.com, which is associated with the + * job's project ID. + * * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version] + * * `version_dot_service =` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] + * * `instance_dot_service =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `instance_dot_version =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] + * * `instance_dot_version_dot_service =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent + * to the service which is the default service when the job is attempted. + * If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent + * to the version which is the default version when the job is attempted. + * If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be + * sent to an instance which is available when the job is attempted. + * If [service][google.cloud.scheduler.v1.AppEngineRouting.service], + * [version][google.cloud.scheduler.v1.AppEngineRouting.version], or + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent + * to the default version of the default service when the job is attempted. + *+ * + *
string host = 4;
+ */
+ java.lang.String getHost();
+ /**
+ *
+ *
+ * + * Output only. The host that the job is sent to. + * For more information about how App Engine requests are routed, see + * [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). + * The host is constructed as: + * * `host = [application_domain_name]`</br> + * `| [service] + '.' + [application_domain_name]`</br> + * `| [version] + '.' + [application_domain_name]`</br> + * `| [version_dot_service]+ '.' + [application_domain_name]`</br> + * `| [instance] + '.' + [application_domain_name]`</br> + * `| [instance_dot_service] + '.' + [application_domain_name]`</br> + * `| [instance_dot_version] + '.' + [application_domain_name]`</br> + * `| [instance_dot_version_dot_service] + '.' + [application_domain_name]` + * * `application_domain_name` = The domain name of the app, for + * example <app-id>.appspot.com, which is associated with the + * job's project ID. + * * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version] + * * `version_dot_service =` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] + * * `instance_dot_service =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * * `instance_dot_version =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] + * * `instance_dot_version_dot_service =` + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1.AppEngineRouting.service] + * If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent + * to the service which is the default service when the job is attempted. + * If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent + * to the version which is the default version when the job is attempted. + * If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be + * sent to an instance which is available when the job is attempted. + * If [service][google.cloud.scheduler.v1.AppEngineRouting.service], + * [version][google.cloud.scheduler.v1.AppEngineRouting.version], or + * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent + * to the default version of the default service when the job is attempted. + *+ * + *
string host = 4;
+ */
+ com.google.protobuf.ByteString getHostBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CreateJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CreateJobRequest.java
new file mode 100644
index 000000000000..d187c810c97d
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CreateJobRequest.java
@@ -0,0 +1,927 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1/cloudscheduler.proto
+
+package com.google.cloud.scheduler.v1;
+
+/**
+ *
+ *
+ * + * Request message for [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.CreateJobRequest} + */ +public final class CreateJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.CreateJobRequest) + CreateJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateJobRequest.newBuilder() to construct. + private CreateJobRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CreateJobRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.scheduler.v1.Job.Builder subBuilder = null; + if (job_ != null) { + subBuilder = job_.toBuilder(); + } + job_ = + input.readMessage(com.google.cloud.scheduler.v1.Job.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(job_); + job_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_CreateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_CreateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.CreateJobRequest.class, + com.google.cloud.scheduler.v1.CreateJobRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+ * Required. + * The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int JOB_FIELD_NUMBER = 2;
+ private com.google.cloud.scheduler.v1.Job job_;
+ /**
+ *
+ *
+ * + * Required. + * The job to add. The user can optionally specify a name for the + * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an + * existing job. If a name is not specified then the system will + * generate a random unique name that will be returned + * ([name][google.cloud.scheduler.v1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1.Job job = 2;
+ */
+ public boolean hasJob() {
+ return job_ != null;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job to add. The user can optionally specify a name for the + * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an + * existing job. If a name is not specified then the system will + * generate a random unique name that will be returned + * ([name][google.cloud.scheduler.v1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1.Job job = 2;
+ */
+ public com.google.cloud.scheduler.v1.Job getJob() {
+ return job_ == null ? com.google.cloud.scheduler.v1.Job.getDefaultInstance() : job_;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job to add. The user can optionally specify a name for the + * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an + * existing job. If a name is not specified then the system will + * generate a random unique name that will be returned + * ([name][google.cloud.scheduler.v1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1.Job job = 2;
+ */
+ public com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder() {
+ return getJob();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (job_ != null) {
+ output.writeMessage(2, getJob());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (job_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getJob());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.scheduler.v1.CreateJobRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1.CreateJobRequest other =
+ (com.google.cloud.scheduler.v1.CreateJobRequest) obj;
+
+ boolean result = true;
+ result = result && getParent().equals(other.getParent());
+ result = result && (hasJob() == other.hasJob());
+ if (hasJob()) {
+ result = result && getJob().equals(other.getJob());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (hasJob()) {
+ hash = (37 * hash) + JOB_FIELD_NUMBER;
+ hash = (53 * hash) + getJob().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.scheduler.v1.CreateJobRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.CreateJobRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.CreateJobRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.CreateJobRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.CreateJobRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.CreateJobRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.CreateJobRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.CreateJobRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.CreateJobRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.CreateJobRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.CreateJobRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.CreateJobRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.scheduler.v1.CreateJobRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.CreateJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. + * The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. + *+ * + *
string parent = 1;
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. + *+ * + *
string parent = 1;
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. + *+ * + *
string parent = 1;
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.scheduler.v1.Job job_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1.Job,
+ com.google.cloud.scheduler.v1.Job.Builder,
+ com.google.cloud.scheduler.v1.JobOrBuilder>
+ jobBuilder_;
+ /**
+ *
+ *
+ * + * Required. + * The job to add. The user can optionally specify a name for the + * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an + * existing job. If a name is not specified then the system will + * generate a random unique name that will be returned + * ([name][google.cloud.scheduler.v1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1.Job job = 2;
+ */
+ public boolean hasJob() {
+ return jobBuilder_ != null || job_ != null;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job to add. The user can optionally specify a name for the + * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an + * existing job. If a name is not specified then the system will + * generate a random unique name that will be returned + * ([name][google.cloud.scheduler.v1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1.Job job = 2;
+ */
+ public com.google.cloud.scheduler.v1.Job getJob() {
+ if (jobBuilder_ == null) {
+ return job_ == null ? com.google.cloud.scheduler.v1.Job.getDefaultInstance() : job_;
+ } else {
+ return jobBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job to add. The user can optionally specify a name for the + * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an + * existing job. If a name is not specified then the system will + * generate a random unique name that will be returned + * ([name][google.cloud.scheduler.v1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1.Job job = 2;
+ */
+ public Builder setJob(com.google.cloud.scheduler.v1.Job value) {
+ if (jobBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ job_ = value;
+ onChanged();
+ } else {
+ jobBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job to add. The user can optionally specify a name for the + * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an + * existing job. If a name is not specified then the system will + * generate a random unique name that will be returned + * ([name][google.cloud.scheduler.v1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1.Job job = 2;
+ */
+ public Builder setJob(com.google.cloud.scheduler.v1.Job.Builder builderForValue) {
+ if (jobBuilder_ == null) {
+ job_ = builderForValue.build();
+ onChanged();
+ } else {
+ jobBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job to add. The user can optionally specify a name for the + * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an + * existing job. If a name is not specified then the system will + * generate a random unique name that will be returned + * ([name][google.cloud.scheduler.v1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1.Job job = 2;
+ */
+ public Builder mergeJob(com.google.cloud.scheduler.v1.Job value) {
+ if (jobBuilder_ == null) {
+ if (job_ != null) {
+ job_ = com.google.cloud.scheduler.v1.Job.newBuilder(job_).mergeFrom(value).buildPartial();
+ } else {
+ job_ = value;
+ }
+ onChanged();
+ } else {
+ jobBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job to add. The user can optionally specify a name for the + * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an + * existing job. If a name is not specified then the system will + * generate a random unique name that will be returned + * ([name][google.cloud.scheduler.v1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1.Job job = 2;
+ */
+ public Builder clearJob() {
+ if (jobBuilder_ == null) {
+ job_ = null;
+ onChanged();
+ } else {
+ job_ = null;
+ jobBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job to add. The user can optionally specify a name for the + * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an + * existing job. If a name is not specified then the system will + * generate a random unique name that will be returned + * ([name][google.cloud.scheduler.v1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1.Job job = 2;
+ */
+ public com.google.cloud.scheduler.v1.Job.Builder getJobBuilder() {
+
+ onChanged();
+ return getJobFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job to add. The user can optionally specify a name for the + * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an + * existing job. If a name is not specified then the system will + * generate a random unique name that will be returned + * ([name][google.cloud.scheduler.v1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1.Job job = 2;
+ */
+ public com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder() {
+ if (jobBuilder_ != null) {
+ return jobBuilder_.getMessageOrBuilder();
+ } else {
+ return job_ == null ? com.google.cloud.scheduler.v1.Job.getDefaultInstance() : job_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job to add. The user can optionally specify a name for the + * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an + * existing job. If a name is not specified then the system will + * generate a random unique name that will be returned + * ([name][google.cloud.scheduler.v1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1.Job job = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1.Job,
+ com.google.cloud.scheduler.v1.Job.Builder,
+ com.google.cloud.scheduler.v1.JobOrBuilder>
+ getJobFieldBuilder() {
+ if (jobBuilder_ == null) {
+ jobBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1.Job,
+ com.google.cloud.scheduler.v1.Job.Builder,
+ com.google.cloud.scheduler.v1.JobOrBuilder>(
+ getJob(), getParentForChildren(), isClean());
+ job_ = null;
+ }
+ return jobBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.CreateJobRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.CreateJobRequest)
+ private static final com.google.cloud.scheduler.v1.CreateJobRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.CreateJobRequest();
+ }
+
+ public static com.google.cloud.scheduler.v1.CreateJobRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. + * The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. + *+ * + *
string parent = 1;
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * Required. + * The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. + *+ * + *
string parent = 1;
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Required. + * The job to add. The user can optionally specify a name for the + * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an + * existing job. If a name is not specified then the system will + * generate a random unique name that will be returned + * ([name][google.cloud.scheduler.v1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1.Job job = 2;
+ */
+ boolean hasJob();
+ /**
+ *
+ *
+ * + * Required. + * The job to add. The user can optionally specify a name for the + * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an + * existing job. If a name is not specified then the system will + * generate a random unique name that will be returned + * ([name][google.cloud.scheduler.v1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1.Job job = 2;
+ */
+ com.google.cloud.scheduler.v1.Job getJob();
+ /**
+ *
+ *
+ * + * Required. + * The job to add. The user can optionally specify a name for the + * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an + * existing job. If a name is not specified then the system will + * generate a random unique name that will be returned + * ([name][google.cloud.scheduler.v1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1.Job job = 2;
+ */
+ com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/DeleteJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/DeleteJobRequest.java
new file mode 100644
index 000000000000..2ee69dce304a
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/DeleteJobRequest.java
@@ -0,0 +1,613 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1/cloudscheduler.proto
+
+package com.google.cloud.scheduler.v1;
+
+/**
+ *
+ *
+ * + * Request message for deleting a job using + * [DeleteJob][google.cloud.scheduler.v1.CloudScheduler.DeleteJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.DeleteJobRequest} + */ +public final class DeleteJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.DeleteJobRequest) + DeleteJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteJobRequest.newBuilder() to construct. + private DeleteJobRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DeleteJobRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_DeleteJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_DeleteJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.DeleteJobRequest.class, + com.google.cloud.scheduler.v1.DeleteJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.scheduler.v1.DeleteJobRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1.DeleteJobRequest other =
+ (com.google.cloud.scheduler.v1.DeleteJobRequest) obj;
+
+ boolean result = true;
+ result = result && getName().equals(other.getName());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.scheduler.v1.DeleteJobRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.DeleteJobRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.DeleteJobRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.DeleteJobRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.DeleteJobRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.DeleteJobRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.DeleteJobRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.DeleteJobRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.DeleteJobRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.DeleteJobRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.DeleteJobRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.DeleteJobRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.scheduler.v1.DeleteJobRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for deleting a job using + * [DeleteJob][google.cloud.scheduler.v1.CloudScheduler.DeleteJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.DeleteJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.DeleteJobRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.DeleteJobRequest)
+ private static final com.google.cloud.scheduler.v1.DeleteJobRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.DeleteJobRequest();
+ }
+
+ public static com.google.cloud.scheduler.v1.DeleteJobRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/GetJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/GetJobRequest.java
new file mode 100644
index 000000000000..ec4b20ae32eb
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/GetJobRequest.java
@@ -0,0 +1,611 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1/cloudscheduler.proto
+
+package com.google.cloud.scheduler.v1;
+
+/**
+ *
+ *
+ * + * Request message for [GetJob][google.cloud.scheduler.v1.CloudScheduler.GetJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.GetJobRequest} + */ +public final class GetJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.GetJobRequest) + GetJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetJobRequest.newBuilder() to construct. + private GetJobRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private GetJobRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_GetJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_GetJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.GetJobRequest.class, + com.google.cloud.scheduler.v1.GetJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.scheduler.v1.GetJobRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1.GetJobRequest other =
+ (com.google.cloud.scheduler.v1.GetJobRequest) obj;
+
+ boolean result = true;
+ result = result && getName().equals(other.getName());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.scheduler.v1.GetJobRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.GetJobRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.GetJobRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.GetJobRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.GetJobRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.GetJobRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.GetJobRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.GetJobRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.GetJobRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.GetJobRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.GetJobRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.GetJobRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.scheduler.v1.GetJobRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for [GetJob][google.cloud.scheduler.v1.CloudScheduler.GetJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.GetJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.GetJobRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.GetJobRequest)
+ private static final com.google.cloud.scheduler.v1.GetJobRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.GetJobRequest();
+ }
+
+ public static com.google.cloud.scheduler.v1.GetJobRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpMethod.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpMethod.java
new file mode 100644
index 000000000000..b1237c181d35
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpMethod.java
@@ -0,0 +1,259 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1/target.proto
+
+package com.google.cloud.scheduler.v1;
+
+/**
+ *
+ *
+ * + * The HTTP method used to execute the job. + *+ * + * Protobuf enum {@code google.cloud.scheduler.v1.HttpMethod} + */ +public enum HttpMethod implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * HTTP method unspecified. Defaults to POST. + *+ * + *
HTTP_METHOD_UNSPECIFIED = 0;
+ */
+ HTTP_METHOD_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * HTTP POST + *+ * + *
POST = 1;
+ */
+ POST(1),
+ /**
+ *
+ *
+ * + * HTTP GET + *+ * + *
GET = 2;
+ */
+ GET(2),
+ /**
+ *
+ *
+ * + * HTTP HEAD + *+ * + *
HEAD = 3;
+ */
+ HEAD(3),
+ /**
+ *
+ *
+ * + * HTTP PUT + *+ * + *
PUT = 4;
+ */
+ PUT(4),
+ /**
+ *
+ *
+ * + * HTTP DELETE + *+ * + *
DELETE = 5;
+ */
+ DELETE(5),
+ /**
+ *
+ *
+ * + * HTTP PATCH + *+ * + *
PATCH = 6;
+ */
+ PATCH(6),
+ /**
+ *
+ *
+ * + * HTTP OPTIONS + *+ * + *
OPTIONS = 7;
+ */
+ OPTIONS(7),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * HTTP method unspecified. Defaults to POST. + *+ * + *
HTTP_METHOD_UNSPECIFIED = 0;
+ */
+ public static final int HTTP_METHOD_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * HTTP POST + *+ * + *
POST = 1;
+ */
+ public static final int POST_VALUE = 1;
+ /**
+ *
+ *
+ * + * HTTP GET + *+ * + *
GET = 2;
+ */
+ public static final int GET_VALUE = 2;
+ /**
+ *
+ *
+ * + * HTTP HEAD + *+ * + *
HEAD = 3;
+ */
+ public static final int HEAD_VALUE = 3;
+ /**
+ *
+ *
+ * + * HTTP PUT + *+ * + *
PUT = 4;
+ */
+ public static final int PUT_VALUE = 4;
+ /**
+ *
+ *
+ * + * HTTP DELETE + *+ * + *
DELETE = 5;
+ */
+ public static final int DELETE_VALUE = 5;
+ /**
+ *
+ *
+ * + * HTTP PATCH + *+ * + *
PATCH = 6;
+ */
+ public static final int PATCH_VALUE = 6;
+ /**
+ *
+ *
+ * + * HTTP OPTIONS + *+ * + *
OPTIONS = 7;
+ */
+ public static final int OPTIONS_VALUE = 7;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static HttpMethod valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static HttpMethod forNumber(int value) {
+ switch (value) {
+ case 0:
+ return HTTP_METHOD_UNSPECIFIED;
+ case 1:
+ return POST;
+ case 2:
+ return GET;
+ case 3:
+ return HEAD;
+ case 4:
+ return PUT;
+ case 5:
+ return DELETE;
+ case 6:
+ return PATCH;
+ case 7:
+ return OPTIONS;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Http target. The job will be pushed to the job handler by means of + * an HTTP request via an [http_method][google.cloud.scheduler.v1.HttpTarget.http_method] such as HTTP + * POST, HTTP GET, etc. The job is acknowledged by means of an HTTP + * response code in the range [200 - 299]. A failure to receive a response + * constitutes a failed execution. For a redirected request, the response + * returned by the redirected request is considered. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.HttpTarget} + */ +public final class HttpTarget extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.HttpTarget) + HttpTargetOrBuilder { + private static final long serialVersionUID = 0L; + // Use HttpTarget.newBuilder() to construct. + private HttpTarget(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private HttpTarget() { + uri_ = ""; + httpMethod_ = 0; + body_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HttpTarget( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + httpMethod_ = rawValue; + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + headers_ = + com.google.protobuf.MapField.newMapField( + HeadersDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry
+ * Required. + * The full URI path that the request will be sent to. This string + * must begin with either "http://" or "https://". Some examples of + * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are: + * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will + * encode some characters for safety and compatibility. The maximum allowed + * URL length is 2083 characters after encoding. + *+ * + *
string uri = 1;
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The full URI path that the request will be sent to. This string + * must begin with either "http://" or "https://". Some examples of + * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are: + * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will + * encode some characters for safety and compatibility. The maximum allowed + * URL length is 2083 characters after encoding. + *+ * + *
string uri = 1;
+ */
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int HTTP_METHOD_FIELD_NUMBER = 2;
+ private int httpMethod_;
+ /**
+ *
+ *
+ * + * Which HTTP method to use for the request. + *+ * + *
.google.cloud.scheduler.v1.HttpMethod http_method = 2;
+ */
+ public int getHttpMethodValue() {
+ return httpMethod_;
+ }
+ /**
+ *
+ *
+ * + * Which HTTP method to use for the request. + *+ * + *
.google.cloud.scheduler.v1.HttpMethod http_method = 2;
+ */
+ public com.google.cloud.scheduler.v1.HttpMethod getHttpMethod() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.scheduler.v1.HttpMethod result =
+ com.google.cloud.scheduler.v1.HttpMethod.valueOf(httpMethod_);
+ return result == null ? com.google.cloud.scheduler.v1.HttpMethod.UNRECOGNIZED : result;
+ }
+
+ public static final int HEADERS_FIELD_NUMBER = 3;
+
+ private static final class HeadersDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry+ * The user can specify HTTP request headers to send with the job's + * HTTP request. This map contains the header field names and + * values. Repeated headers are not supported, but a header value can + * contain commas. These headers represent a subset of the headers + * that will accompany the job's HTTP request. Some HTTP request + * headers will be ignored or replaced. A partial list of headers that + * will be ignored or replaced is below: + * - Host: This will be computed by Cloud Scheduler and derived from + * [uri][google.cloud.scheduler.v1.HttpTarget.uri]. + * * `Content-Length`: This will be computed by Cloud Scheduler. + * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. + * * `X-Google-*`: Google internal use only. + * * `X-AppEngine-*`: Google internal use only. + * The total size of headers must be less than 80KB. + *+ * + *
map<string, string> headers = 3;
+ */
+ public boolean containsHeaders(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetHeaders().getMap().containsKey(key);
+ }
+ /** Use {@link #getHeadersMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * The user can specify HTTP request headers to send with the job's + * HTTP request. This map contains the header field names and + * values. Repeated headers are not supported, but a header value can + * contain commas. These headers represent a subset of the headers + * that will accompany the job's HTTP request. Some HTTP request + * headers will be ignored or replaced. A partial list of headers that + * will be ignored or replaced is below: + * - Host: This will be computed by Cloud Scheduler and derived from + * [uri][google.cloud.scheduler.v1.HttpTarget.uri]. + * * `Content-Length`: This will be computed by Cloud Scheduler. + * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. + * * `X-Google-*`: Google internal use only. + * * `X-AppEngine-*`: Google internal use only. + * The total size of headers must be less than 80KB. + *+ * + *
map<string, string> headers = 3;
+ */
+ public java.util.Map+ * The user can specify HTTP request headers to send with the job's + * HTTP request. This map contains the header field names and + * values. Repeated headers are not supported, but a header value can + * contain commas. These headers represent a subset of the headers + * that will accompany the job's HTTP request. Some HTTP request + * headers will be ignored or replaced. A partial list of headers that + * will be ignored or replaced is below: + * - Host: This will be computed by Cloud Scheduler and derived from + * [uri][google.cloud.scheduler.v1.HttpTarget.uri]. + * * `Content-Length`: This will be computed by Cloud Scheduler. + * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. + * * `X-Google-*`: Google internal use only. + * * `X-AppEngine-*`: Google internal use only. + * The total size of headers must be less than 80KB. + *+ * + *
map<string, string> headers = 3;
+ */
+ public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * The user can specify HTTP request headers to send with the job's + * HTTP request. This map contains the header field names and + * values. Repeated headers are not supported, but a header value can + * contain commas. These headers represent a subset of the headers + * that will accompany the job's HTTP request. Some HTTP request + * headers will be ignored or replaced. A partial list of headers that + * will be ignored or replaced is below: + * - Host: This will be computed by Cloud Scheduler and derived from + * [uri][google.cloud.scheduler.v1.HttpTarget.uri]. + * * `Content-Length`: This will be computed by Cloud Scheduler. + * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. + * * `X-Google-*`: Google internal use only. + * * `X-AppEngine-*`: Google internal use only. + * The total size of headers must be less than 80KB. + *+ * + *
map<string, string> headers = 3;
+ */
+ public java.lang.String getHeadersOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * HTTP request body. A request body is allowed only if the HTTP + * method is POST, PUT, or PATCH. It is an error to set body on a job with an + * incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod]. + *+ * + *
bytes body = 4;
+ */
+ public com.google.protobuf.ByteString getBody() {
+ return body_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_);
+ }
+ if (httpMethod_
+ != com.google.cloud.scheduler.v1.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) {
+ output.writeEnum(2, httpMethod_);
+ }
+ com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+ output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 3);
+ if (!body_.isEmpty()) {
+ output.writeBytes(4, body_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_);
+ }
+ if (httpMethod_
+ != com.google.cloud.scheduler.v1.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, httpMethod_);
+ }
+ for (java.util.Map.Entry+ * Http target. The job will be pushed to the job handler by means of + * an HTTP request via an [http_method][google.cloud.scheduler.v1.HttpTarget.http_method] such as HTTP + * POST, HTTP GET, etc. The job is acknowledged by means of an HTTP + * response code in the range [200 - 299]. A failure to receive a response + * constitutes a failed execution. For a redirected request, the response + * returned by the redirected request is considered. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.HttpTarget} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. + * The full URI path that the request will be sent to. This string + * must begin with either "http://" or "https://". Some examples of + * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are: + * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will + * encode some characters for safety and compatibility. The maximum allowed + * URL length is 2083 characters after encoding. + *+ * + *
string uri = 1;
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The full URI path that the request will be sent to. This string + * must begin with either "http://" or "https://". Some examples of + * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are: + * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will + * encode some characters for safety and compatibility. The maximum allowed + * URL length is 2083 characters after encoding. + *+ * + *
string uri = 1;
+ */
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The full URI path that the request will be sent to. This string + * must begin with either "http://" or "https://". Some examples of + * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are: + * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will + * encode some characters for safety and compatibility. The maximum allowed + * URL length is 2083 characters after encoding. + *+ * + *
string uri = 1;
+ */
+ public Builder setUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ uri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The full URI path that the request will be sent to. This string + * must begin with either "http://" or "https://". Some examples of + * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are: + * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will + * encode some characters for safety and compatibility. The maximum allowed + * URL length is 2083 characters after encoding. + *+ * + *
string uri = 1;
+ */
+ public Builder clearUri() {
+
+ uri_ = getDefaultInstance().getUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The full URI path that the request will be sent to. This string + * must begin with either "http://" or "https://". Some examples of + * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are: + * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will + * encode some characters for safety and compatibility. The maximum allowed + * URL length is 2083 characters after encoding. + *+ * + *
string uri = 1;
+ */
+ public Builder setUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ uri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int httpMethod_ = 0;
+ /**
+ *
+ *
+ * + * Which HTTP method to use for the request. + *+ * + *
.google.cloud.scheduler.v1.HttpMethod http_method = 2;
+ */
+ public int getHttpMethodValue() {
+ return httpMethod_;
+ }
+ /**
+ *
+ *
+ * + * Which HTTP method to use for the request. + *+ * + *
.google.cloud.scheduler.v1.HttpMethod http_method = 2;
+ */
+ public Builder setHttpMethodValue(int value) {
+ httpMethod_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Which HTTP method to use for the request. + *+ * + *
.google.cloud.scheduler.v1.HttpMethod http_method = 2;
+ */
+ public com.google.cloud.scheduler.v1.HttpMethod getHttpMethod() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.scheduler.v1.HttpMethod result =
+ com.google.cloud.scheduler.v1.HttpMethod.valueOf(httpMethod_);
+ return result == null ? com.google.cloud.scheduler.v1.HttpMethod.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ * + * Which HTTP method to use for the request. + *+ * + *
.google.cloud.scheduler.v1.HttpMethod http_method = 2;
+ */
+ public Builder setHttpMethod(com.google.cloud.scheduler.v1.HttpMethod value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ httpMethod_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Which HTTP method to use for the request. + *+ * + *
.google.cloud.scheduler.v1.HttpMethod http_method = 2;
+ */
+ public Builder clearHttpMethod() {
+
+ httpMethod_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField+ * The user can specify HTTP request headers to send with the job's + * HTTP request. This map contains the header field names and + * values. Repeated headers are not supported, but a header value can + * contain commas. These headers represent a subset of the headers + * that will accompany the job's HTTP request. Some HTTP request + * headers will be ignored or replaced. A partial list of headers that + * will be ignored or replaced is below: + * - Host: This will be computed by Cloud Scheduler and derived from + * [uri][google.cloud.scheduler.v1.HttpTarget.uri]. + * * `Content-Length`: This will be computed by Cloud Scheduler. + * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. + * * `X-Google-*`: Google internal use only. + * * `X-AppEngine-*`: Google internal use only. + * The total size of headers must be less than 80KB. + *+ * + *
map<string, string> headers = 3;
+ */
+ public boolean containsHeaders(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetHeaders().getMap().containsKey(key);
+ }
+ /** Use {@link #getHeadersMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * The user can specify HTTP request headers to send with the job's + * HTTP request. This map contains the header field names and + * values. Repeated headers are not supported, but a header value can + * contain commas. These headers represent a subset of the headers + * that will accompany the job's HTTP request. Some HTTP request + * headers will be ignored or replaced. A partial list of headers that + * will be ignored or replaced is below: + * - Host: This will be computed by Cloud Scheduler and derived from + * [uri][google.cloud.scheduler.v1.HttpTarget.uri]. + * * `Content-Length`: This will be computed by Cloud Scheduler. + * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. + * * `X-Google-*`: Google internal use only. + * * `X-AppEngine-*`: Google internal use only. + * The total size of headers must be less than 80KB. + *+ * + *
map<string, string> headers = 3;
+ */
+ public java.util.Map+ * The user can specify HTTP request headers to send with the job's + * HTTP request. This map contains the header field names and + * values. Repeated headers are not supported, but a header value can + * contain commas. These headers represent a subset of the headers + * that will accompany the job's HTTP request. Some HTTP request + * headers will be ignored or replaced. A partial list of headers that + * will be ignored or replaced is below: + * - Host: This will be computed by Cloud Scheduler and derived from + * [uri][google.cloud.scheduler.v1.HttpTarget.uri]. + * * `Content-Length`: This will be computed by Cloud Scheduler. + * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. + * * `X-Google-*`: Google internal use only. + * * `X-AppEngine-*`: Google internal use only. + * The total size of headers must be less than 80KB. + *+ * + *
map<string, string> headers = 3;
+ */
+ public java.lang.String getHeadersOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * The user can specify HTTP request headers to send with the job's + * HTTP request. This map contains the header field names and + * values. Repeated headers are not supported, but a header value can + * contain commas. These headers represent a subset of the headers + * that will accompany the job's HTTP request. Some HTTP request + * headers will be ignored or replaced. A partial list of headers that + * will be ignored or replaced is below: + * - Host: This will be computed by Cloud Scheduler and derived from + * [uri][google.cloud.scheduler.v1.HttpTarget.uri]. + * * `Content-Length`: This will be computed by Cloud Scheduler. + * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. + * * `X-Google-*`: Google internal use only. + * * `X-AppEngine-*`: Google internal use only. + * The total size of headers must be less than 80KB. + *+ * + *
map<string, string> headers = 3;
+ */
+ public java.lang.String getHeadersOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * The user can specify HTTP request headers to send with the job's + * HTTP request. This map contains the header field names and + * values. Repeated headers are not supported, but a header value can + * contain commas. These headers represent a subset of the headers + * that will accompany the job's HTTP request. Some HTTP request + * headers will be ignored or replaced. A partial list of headers that + * will be ignored or replaced is below: + * - Host: This will be computed by Cloud Scheduler and derived from + * [uri][google.cloud.scheduler.v1.HttpTarget.uri]. + * * `Content-Length`: This will be computed by Cloud Scheduler. + * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. + * * `X-Google-*`: Google internal use only. + * * `X-AppEngine-*`: Google internal use only. + * The total size of headers must be less than 80KB. + *+ * + *
map<string, string> headers = 3;
+ */
+ public Builder removeHeaders(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableHeaders().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * The user can specify HTTP request headers to send with the job's + * HTTP request. This map contains the header field names and + * values. Repeated headers are not supported, but a header value can + * contain commas. These headers represent a subset of the headers + * that will accompany the job's HTTP request. Some HTTP request + * headers will be ignored or replaced. A partial list of headers that + * will be ignored or replaced is below: + * - Host: This will be computed by Cloud Scheduler and derived from + * [uri][google.cloud.scheduler.v1.HttpTarget.uri]. + * * `Content-Length`: This will be computed by Cloud Scheduler. + * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. + * * `X-Google-*`: Google internal use only. + * * `X-AppEngine-*`: Google internal use only. + * The total size of headers must be less than 80KB. + *+ * + *
map<string, string> headers = 3;
+ */
+ public Builder putHeaders(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableHeaders().getMutableMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The user can specify HTTP request headers to send with the job's + * HTTP request. This map contains the header field names and + * values. Repeated headers are not supported, but a header value can + * contain commas. These headers represent a subset of the headers + * that will accompany the job's HTTP request. Some HTTP request + * headers will be ignored or replaced. A partial list of headers that + * will be ignored or replaced is below: + * - Host: This will be computed by Cloud Scheduler and derived from + * [uri][google.cloud.scheduler.v1.HttpTarget.uri]. + * * `Content-Length`: This will be computed by Cloud Scheduler. + * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. + * * `X-Google-*`: Google internal use only. + * * `X-AppEngine-*`: Google internal use only. + * The total size of headers must be less than 80KB. + *+ * + *
map<string, string> headers = 3;
+ */
+ public Builder putAllHeaders(java.util.Map+ * HTTP request body. A request body is allowed only if the HTTP + * method is POST, PUT, or PATCH. It is an error to set body on a job with an + * incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod]. + *+ * + *
bytes body = 4;
+ */
+ public com.google.protobuf.ByteString getBody() {
+ return body_;
+ }
+ /**
+ *
+ *
+ * + * HTTP request body. A request body is allowed only if the HTTP + * method is POST, PUT, or PATCH. It is an error to set body on a job with an + * incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod]. + *+ * + *
bytes body = 4;
+ */
+ public Builder setBody(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ body_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * HTTP request body. A request body is allowed only if the HTTP + * method is POST, PUT, or PATCH. It is an error to set body on a job with an + * incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod]. + *+ * + *
bytes body = 4;
+ */
+ public Builder clearBody() {
+
+ body_ = getDefaultInstance().getBody();
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.HttpTarget)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.HttpTarget)
+ private static final com.google.cloud.scheduler.v1.HttpTarget DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.HttpTarget();
+ }
+
+ public static com.google.cloud.scheduler.v1.HttpTarget getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. + * The full URI path that the request will be sent to. This string + * must begin with either "http://" or "https://". Some examples of + * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are: + * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will + * encode some characters for safety and compatibility. The maximum allowed + * URL length is 2083 characters after encoding. + *+ * + *
string uri = 1;
+ */
+ java.lang.String getUri();
+ /**
+ *
+ *
+ * + * Required. + * The full URI path that the request will be sent to. This string + * must begin with either "http://" or "https://". Some examples of + * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are: + * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will + * encode some characters for safety and compatibility. The maximum allowed + * URL length is 2083 characters after encoding. + *+ * + *
string uri = 1;
+ */
+ com.google.protobuf.ByteString getUriBytes();
+
+ /**
+ *
+ *
+ * + * Which HTTP method to use for the request. + *+ * + *
.google.cloud.scheduler.v1.HttpMethod http_method = 2;
+ */
+ int getHttpMethodValue();
+ /**
+ *
+ *
+ * + * Which HTTP method to use for the request. + *+ * + *
.google.cloud.scheduler.v1.HttpMethod http_method = 2;
+ */
+ com.google.cloud.scheduler.v1.HttpMethod getHttpMethod();
+
+ /**
+ *
+ *
+ * + * The user can specify HTTP request headers to send with the job's + * HTTP request. This map contains the header field names and + * values. Repeated headers are not supported, but a header value can + * contain commas. These headers represent a subset of the headers + * that will accompany the job's HTTP request. Some HTTP request + * headers will be ignored or replaced. A partial list of headers that + * will be ignored or replaced is below: + * - Host: This will be computed by Cloud Scheduler and derived from + * [uri][google.cloud.scheduler.v1.HttpTarget.uri]. + * * `Content-Length`: This will be computed by Cloud Scheduler. + * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. + * * `X-Google-*`: Google internal use only. + * * `X-AppEngine-*`: Google internal use only. + * The total size of headers must be less than 80KB. + *+ * + *
map<string, string> headers = 3;
+ */
+ int getHeadersCount();
+ /**
+ *
+ *
+ * + * The user can specify HTTP request headers to send with the job's + * HTTP request. This map contains the header field names and + * values. Repeated headers are not supported, but a header value can + * contain commas. These headers represent a subset of the headers + * that will accompany the job's HTTP request. Some HTTP request + * headers will be ignored or replaced. A partial list of headers that + * will be ignored or replaced is below: + * - Host: This will be computed by Cloud Scheduler and derived from + * [uri][google.cloud.scheduler.v1.HttpTarget.uri]. + * * `Content-Length`: This will be computed by Cloud Scheduler. + * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. + * * `X-Google-*`: Google internal use only. + * * `X-AppEngine-*`: Google internal use only. + * The total size of headers must be less than 80KB. + *+ * + *
map<string, string> headers = 3;
+ */
+ boolean containsHeaders(java.lang.String key);
+ /** Use {@link #getHeadersMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map+ * The user can specify HTTP request headers to send with the job's + * HTTP request. This map contains the header field names and + * values. Repeated headers are not supported, but a header value can + * contain commas. These headers represent a subset of the headers + * that will accompany the job's HTTP request. Some HTTP request + * headers will be ignored or replaced. A partial list of headers that + * will be ignored or replaced is below: + * - Host: This will be computed by Cloud Scheduler and derived from + * [uri][google.cloud.scheduler.v1.HttpTarget.uri]. + * * `Content-Length`: This will be computed by Cloud Scheduler. + * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. + * * `X-Google-*`: Google internal use only. + * * `X-AppEngine-*`: Google internal use only. + * The total size of headers must be less than 80KB. + *+ * + *
map<string, string> headers = 3;
+ */
+ java.util.Map+ * The user can specify HTTP request headers to send with the job's + * HTTP request. This map contains the header field names and + * values. Repeated headers are not supported, but a header value can + * contain commas. These headers represent a subset of the headers + * that will accompany the job's HTTP request. Some HTTP request + * headers will be ignored or replaced. A partial list of headers that + * will be ignored or replaced is below: + * - Host: This will be computed by Cloud Scheduler and derived from + * [uri][google.cloud.scheduler.v1.HttpTarget.uri]. + * * `Content-Length`: This will be computed by Cloud Scheduler. + * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. + * * `X-Google-*`: Google internal use only. + * * `X-AppEngine-*`: Google internal use only. + * The total size of headers must be less than 80KB. + *+ * + *
map<string, string> headers = 3;
+ */
+ java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue);
+ /**
+ *
+ *
+ * + * The user can specify HTTP request headers to send with the job's + * HTTP request. This map contains the header field names and + * values. Repeated headers are not supported, but a header value can + * contain commas. These headers represent a subset of the headers + * that will accompany the job's HTTP request. Some HTTP request + * headers will be ignored or replaced. A partial list of headers that + * will be ignored or replaced is below: + * - Host: This will be computed by Cloud Scheduler and derived from + * [uri][google.cloud.scheduler.v1.HttpTarget.uri]. + * * `Content-Length`: This will be computed by Cloud Scheduler. + * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. + * * `X-Google-*`: Google internal use only. + * * `X-AppEngine-*`: Google internal use only. + * The total size of headers must be less than 80KB. + *+ * + *
map<string, string> headers = 3;
+ */
+ java.lang.String getHeadersOrThrow(java.lang.String key);
+
+ /**
+ *
+ *
+ * + * HTTP request body. A request body is allowed only if the HTTP + * method is POST, PUT, or PATCH. It is an error to set body on a job with an + * incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod]. + *+ * + *
bytes body = 4;
+ */
+ com.google.protobuf.ByteString getBody();
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/Job.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/Job.java
new file mode 100644
index 000000000000..c556bcc2211f
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/Job.java
@@ -0,0 +1,3978 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1/job.proto
+
+package com.google.cloud.scheduler.v1;
+
+/**
+ *
+ *
+ * + * Configuration for a job. + * The maximum allowed size for a job is 100KB. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.Job} + */ +public final class Job extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.Job) + JobOrBuilder { + private static final long serialVersionUID = 0L; + // Use Job.newBuilder() to construct. + private Job(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Job() { + name_ = ""; + description_ = ""; + schedule_ = ""; + timeZone_ = ""; + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Job( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 34: + { + com.google.cloud.scheduler.v1.PubsubTarget.Builder subBuilder = null; + if (targetCase_ == 4) { + subBuilder = ((com.google.cloud.scheduler.v1.PubsubTarget) target_).toBuilder(); + } + target_ = + input.readMessage( + com.google.cloud.scheduler.v1.PubsubTarget.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.scheduler.v1.PubsubTarget) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 4; + break; + } + case 42: + { + com.google.cloud.scheduler.v1.AppEngineHttpTarget.Builder subBuilder = null; + if (targetCase_ == 5) { + subBuilder = + ((com.google.cloud.scheduler.v1.AppEngineHttpTarget) target_).toBuilder(); + } + target_ = + input.readMessage( + com.google.cloud.scheduler.v1.AppEngineHttpTarget.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.scheduler.v1.AppEngineHttpTarget) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 5; + break; + } + case 50: + { + com.google.cloud.scheduler.v1.HttpTarget.Builder subBuilder = null; + if (targetCase_ == 6) { + subBuilder = ((com.google.cloud.scheduler.v1.HttpTarget) target_).toBuilder(); + } + target_ = + input.readMessage( + com.google.cloud.scheduler.v1.HttpTarget.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.scheduler.v1.HttpTarget) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 6; + break; + } + case 74: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (userUpdateTime_ != null) { + subBuilder = userUpdateTime_.toBuilder(); + } + userUpdateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(userUpdateTime_); + userUpdateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 80: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 90: + { + com.google.rpc.Status.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + + break; + } + case 138: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (scheduleTime_ != null) { + subBuilder = scheduleTime_.toBuilder(); + } + scheduleTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduleTime_); + scheduleTime_ = subBuilder.buildPartial(); + } + + break; + } + case 146: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastAttemptTime_ != null) { + subBuilder = lastAttemptTime_.toBuilder(); + } + lastAttemptTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastAttemptTime_); + lastAttemptTime_ = subBuilder.buildPartial(); + } + + break; + } + case 154: + { + com.google.cloud.scheduler.v1.RetryConfig.Builder subBuilder = null; + if (retryConfig_ != null) { + subBuilder = retryConfig_.toBuilder(); + } + retryConfig_ = + input.readMessage( + com.google.cloud.scheduler.v1.RetryConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(retryConfig_); + retryConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 162: + { + java.lang.String s = input.readStringRequireUtf8(); + + schedule_ = s; + break; + } + case 170: + { + java.lang.String s = input.readStringRequireUtf8(); + + timeZone_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.JobProto + .internal_static_google_cloud_scheduler_v1_Job_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.JobProto + .internal_static_google_cloud_scheduler_v1_Job_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.Job.class, + com.google.cloud.scheduler.v1.Job.Builder.class); + } + + /** + * + * + *
+ * State of the job. + *+ * + * Protobuf enum {@code google.cloud.scheduler.v1.Job.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified state. + *+ * + *
STATE_UNSPECIFIED = 0;
+ */
+ STATE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * The job is executing normally. + *+ * + *
ENABLED = 1;
+ */
+ ENABLED(1),
+ /**
+ *
+ *
+ * + * The job is paused by the user. It will not execute. A user can + * intentionally pause the job using + * [PauseJobRequest][google.cloud.scheduler.v1.PauseJobRequest]. + *+ * + *
PAUSED = 2;
+ */
+ PAUSED(2),
+ /**
+ *
+ *
+ * + * The job is disabled by the system due to error. The user + * cannot directly set a job to be disabled. + *+ * + *
DISABLED = 3;
+ */
+ DISABLED(3),
+ /**
+ *
+ *
+ * + * The job state resulting from a failed [CloudScheduler.UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob] + * operation. To recover a job from this state, retry + * [CloudScheduler.UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob] until a successful response is received. + *+ * + *
UPDATE_FAILED = 4;
+ */
+ UPDATE_FAILED(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified state. + *+ * + *
STATE_UNSPECIFIED = 0;
+ */
+ public static final int STATE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * The job is executing normally. + *+ * + *
ENABLED = 1;
+ */
+ public static final int ENABLED_VALUE = 1;
+ /**
+ *
+ *
+ * + * The job is paused by the user. It will not execute. A user can + * intentionally pause the job using + * [PauseJobRequest][google.cloud.scheduler.v1.PauseJobRequest]. + *+ * + *
PAUSED = 2;
+ */
+ public static final int PAUSED_VALUE = 2;
+ /**
+ *
+ *
+ * + * The job is disabled by the system due to error. The user + * cannot directly set a job to be disabled. + *+ * + *
DISABLED = 3;
+ */
+ public static final int DISABLED_VALUE = 3;
+ /**
+ *
+ *
+ * + * The job state resulting from a failed [CloudScheduler.UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob] + * operation. To recover a job from this state, retry + * [CloudScheduler.UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob] until a successful response is received. + *+ * + *
UPDATE_FAILED = 4;
+ */
+ public static final int UPDATE_FAILED_VALUE = 4;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static State valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static State forNumber(int value) {
+ switch (value) {
+ case 0:
+ return STATE_UNSPECIFIED;
+ case 1:
+ return ENABLED;
+ case 2:
+ return PAUSED;
+ case 3:
+ return DISABLED;
+ case 4:
+ return UPDATE_FAILED;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after + * which it becomes output only. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), colons (:), or periods (.). + * For more information, see + * [Identifying + * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) + * * `LOCATION_ID` is the canonical ID for the job's location. + * The list of available locations can be obtained by calling + * [ListLocations][google.cloud.location.Locations.ListLocations]. + * For more information, see https://cloud.google.com/about/locations/. + * * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), or underscores (_). The maximum length is 500 characters. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after + * which it becomes output only. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), colons (:), or periods (.). + * For more information, see + * [Identifying + * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) + * * `LOCATION_ID` is the canonical ID for the job's location. + * The list of available locations can be obtained by calling + * [ListLocations][google.cloud.location.Locations.ListLocations]. + * For more information, see https://cloud.google.com/about/locations/. + * * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), or underscores (_). The maximum length is 500 characters. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object description_;
+ /**
+ *
+ *
+ * + * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or + * [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + * A human-readable description for the job. This string must not contain + * more than 500 characters. + *+ * + *
string description = 2;
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or + * [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + * A human-readable description for the job. This string must not contain + * more than 500 characters. + *+ * + *
string description = 2;
+ */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PUBSUB_TARGET_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4;
+ */
+ public boolean hasPubsubTarget() {
+ return targetCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4;
+ */
+ public com.google.cloud.scheduler.v1.PubsubTarget getPubsubTarget() {
+ if (targetCase_ == 4) {
+ return (com.google.cloud.scheduler.v1.PubsubTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1.PubsubTarget.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4;
+ */
+ public com.google.cloud.scheduler.v1.PubsubTargetOrBuilder getPubsubTargetOrBuilder() {
+ if (targetCase_ == 4) {
+ return (com.google.cloud.scheduler.v1.PubsubTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1.PubsubTarget.getDefaultInstance();
+ }
+
+ public static final int APP_ENGINE_HTTP_TARGET_FIELD_NUMBER = 5;
+ /**
+ *
+ *
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public boolean hasAppEngineHttpTarget() {
+ return targetCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public com.google.cloud.scheduler.v1.AppEngineHttpTarget getAppEngineHttpTarget() {
+ if (targetCase_ == 5) {
+ return (com.google.cloud.scheduler.v1.AppEngineHttpTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1.AppEngineHttpTarget.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public com.google.cloud.scheduler.v1.AppEngineHttpTargetOrBuilder
+ getAppEngineHttpTargetOrBuilder() {
+ if (targetCase_ == 5) {
+ return (com.google.cloud.scheduler.v1.AppEngineHttpTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1.AppEngineHttpTarget.getDefaultInstance();
+ }
+
+ public static final int HTTP_TARGET_FIELD_NUMBER = 6;
+ /**
+ *
+ *
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1.HttpTarget http_target = 6;
+ */
+ public boolean hasHttpTarget() {
+ return targetCase_ == 6;
+ }
+ /**
+ *
+ *
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1.HttpTarget http_target = 6;
+ */
+ public com.google.cloud.scheduler.v1.HttpTarget getHttpTarget() {
+ if (targetCase_ == 6) {
+ return (com.google.cloud.scheduler.v1.HttpTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1.HttpTarget.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1.HttpTarget http_target = 6;
+ */
+ public com.google.cloud.scheduler.v1.HttpTargetOrBuilder getHttpTargetOrBuilder() {
+ if (targetCase_ == 6) {
+ return (com.google.cloud.scheduler.v1.HttpTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1.HttpTarget.getDefaultInstance();
+ }
+
+ public static final int SCHEDULE_FIELD_NUMBER = 20;
+ private volatile java.lang.Object schedule_;
+ /**
+ *
+ *
+ * + * Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + * Describes the schedule on which the job will be executed. + * The schedule can be either of the following types: + * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview) + * * English-like + * [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules) + * As a general rule, execution `n + 1` of a job will not begin + * until execution `n` has finished. Cloud Scheduler will never + * allow two simultaneously outstanding executions. For example, + * this implies that if the `n+1`th execution is scheduled to run at + * 16:00 but the `n`th execution takes until 16:15, the `n+1`th + * execution will not start until `16:15`. + * A scheduled start time will be delayed if the previous + * execution has not ended when its scheduled time occurs. + * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails, + * the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] + * times, with exponential backoff, until the next scheduled start + * time. + *+ * + *
string schedule = 20;
+ */
+ public java.lang.String getSchedule() {
+ java.lang.Object ref = schedule_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ schedule_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + * Describes the schedule on which the job will be executed. + * The schedule can be either of the following types: + * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview) + * * English-like + * [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules) + * As a general rule, execution `n + 1` of a job will not begin + * until execution `n` has finished. Cloud Scheduler will never + * allow two simultaneously outstanding executions. For example, + * this implies that if the `n+1`th execution is scheduled to run at + * 16:00 but the `n`th execution takes until 16:15, the `n+1`th + * execution will not start until `16:15`. + * A scheduled start time will be delayed if the previous + * execution has not ended when its scheduled time occurs. + * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails, + * the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] + * times, with exponential backoff, until the next scheduled start + * time. + *+ * + *
string schedule = 20;
+ */
+ public com.google.protobuf.ByteString getScheduleBytes() {
+ java.lang.Object ref = schedule_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ schedule_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TIME_ZONE_FIELD_NUMBER = 21;
+ private volatile java.lang.Object timeZone_;
+ /**
+ *
+ *
+ * + * Specifies the time zone to be used in interpreting + * [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time + * zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database). + * Note that some time zones include a provision for + * daylight savings time. The rules for daylight saving time are + * determined by the chosen tz. For UTC use the string "utc". If a + * time zone is not specified, the default will be in UTC (also known + * as GMT). + *+ * + *
string time_zone = 21;
+ */
+ public java.lang.String getTimeZone() {
+ java.lang.Object ref = timeZone_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ timeZone_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Specifies the time zone to be used in interpreting + * [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time + * zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database). + * Note that some time zones include a provision for + * daylight savings time. The rules for daylight saving time are + * determined by the chosen tz. For UTC use the string "utc". If a + * time zone is not specified, the default will be in UTC (also known + * as GMT). + *+ * + *
string time_zone = 21;
+ */
+ public com.google.protobuf.ByteString getTimeZoneBytes() {
+ java.lang.Object ref = timeZone_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ timeZone_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int USER_UPDATE_TIME_FIELD_NUMBER = 9;
+ private com.google.protobuf.Timestamp userUpdateTime_;
+ /**
+ *
+ *
+ * + * Output only. The creation time of the job. + *+ * + *
.google.protobuf.Timestamp user_update_time = 9;
+ */
+ public boolean hasUserUpdateTime() {
+ return userUpdateTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time of the job. + *+ * + *
.google.protobuf.Timestamp user_update_time = 9;
+ */
+ public com.google.protobuf.Timestamp getUserUpdateTime() {
+ return userUpdateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : userUpdateTime_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time of the job. + *+ * + *
.google.protobuf.Timestamp user_update_time = 9;
+ */
+ public com.google.protobuf.TimestampOrBuilder getUserUpdateTimeOrBuilder() {
+ return getUserUpdateTime();
+ }
+
+ public static final int STATE_FIELD_NUMBER = 10;
+ private int state_;
+ /**
+ *
+ *
+ * + * Output only. State of the job. + *+ * + *
.google.cloud.scheduler.v1.Job.State state = 10;
+ */
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ * + * Output only. State of the job. + *+ * + *
.google.cloud.scheduler.v1.Job.State state = 10;
+ */
+ public com.google.cloud.scheduler.v1.Job.State getState() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.scheduler.v1.Job.State result =
+ com.google.cloud.scheduler.v1.Job.State.valueOf(state_);
+ return result == null ? com.google.cloud.scheduler.v1.Job.State.UNRECOGNIZED : result;
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 11;
+ private com.google.rpc.Status status_;
+ /**
+ *
+ *
+ * + * Output only. The response from the target for the last attempted execution. + *+ * + *
.google.rpc.Status status = 11;
+ */
+ public boolean hasStatus() {
+ return status_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The response from the target for the last attempted execution. + *+ * + *
.google.rpc.Status status = 11;
+ */
+ public com.google.rpc.Status getStatus() {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The response from the target for the last attempted execution. + *+ * + *
.google.rpc.Status status = 11;
+ */
+ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
+ return getStatus();
+ }
+
+ public static final int SCHEDULE_TIME_FIELD_NUMBER = 17;
+ private com.google.protobuf.Timestamp scheduleTime_;
+ /**
+ *
+ *
+ * + * Output only. The next time the job is scheduled. Note that this may be a + * retry of a previously failed attempt or the next execution time + * according to the schedule. + *+ * + *
.google.protobuf.Timestamp schedule_time = 17;
+ */
+ public boolean hasScheduleTime() {
+ return scheduleTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The next time the job is scheduled. Note that this may be a + * retry of a previously failed attempt or the next execution time + * according to the schedule. + *+ * + *
.google.protobuf.Timestamp schedule_time = 17;
+ */
+ public com.google.protobuf.Timestamp getScheduleTime() {
+ return scheduleTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : scheduleTime_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The next time the job is scheduled. Note that this may be a + * retry of a previously failed attempt or the next execution time + * according to the schedule. + *+ * + *
.google.protobuf.Timestamp schedule_time = 17;
+ */
+ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
+ return getScheduleTime();
+ }
+
+ public static final int LAST_ATTEMPT_TIME_FIELD_NUMBER = 18;
+ private com.google.protobuf.Timestamp lastAttemptTime_;
+ /**
+ *
+ *
+ * + * Output only. The time the last job attempt started. + *+ * + *
.google.protobuf.Timestamp last_attempt_time = 18;
+ */
+ public boolean hasLastAttemptTime() {
+ return lastAttemptTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time the last job attempt started. + *+ * + *
.google.protobuf.Timestamp last_attempt_time = 18;
+ */
+ public com.google.protobuf.Timestamp getLastAttemptTime() {
+ return lastAttemptTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : lastAttemptTime_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time the last job attempt started. + *+ * + *
.google.protobuf.Timestamp last_attempt_time = 18;
+ */
+ public com.google.protobuf.TimestampOrBuilder getLastAttemptTimeOrBuilder() {
+ return getLastAttemptTime();
+ }
+
+ public static final int RETRY_CONFIG_FIELD_NUMBER = 19;
+ private com.google.cloud.scheduler.v1.RetryConfig retryConfig_;
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1.RetryConfig retry_config = 19;
+ */
+ public boolean hasRetryConfig() {
+ return retryConfig_ != null;
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1.RetryConfig retry_config = 19;
+ */
+ public com.google.cloud.scheduler.v1.RetryConfig getRetryConfig() {
+ return retryConfig_ == null
+ ? com.google.cloud.scheduler.v1.RetryConfig.getDefaultInstance()
+ : retryConfig_;
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1.RetryConfig retry_config = 19;
+ */
+ public com.google.cloud.scheduler.v1.RetryConfigOrBuilder getRetryConfigOrBuilder() {
+ return getRetryConfig();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
+ }
+ if (targetCase_ == 4) {
+ output.writeMessage(4, (com.google.cloud.scheduler.v1.PubsubTarget) target_);
+ }
+ if (targetCase_ == 5) {
+ output.writeMessage(5, (com.google.cloud.scheduler.v1.AppEngineHttpTarget) target_);
+ }
+ if (targetCase_ == 6) {
+ output.writeMessage(6, (com.google.cloud.scheduler.v1.HttpTarget) target_);
+ }
+ if (userUpdateTime_ != null) {
+ output.writeMessage(9, getUserUpdateTime());
+ }
+ if (state_ != com.google.cloud.scheduler.v1.Job.State.STATE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(10, state_);
+ }
+ if (status_ != null) {
+ output.writeMessage(11, getStatus());
+ }
+ if (scheduleTime_ != null) {
+ output.writeMessage(17, getScheduleTime());
+ }
+ if (lastAttemptTime_ != null) {
+ output.writeMessage(18, getLastAttemptTime());
+ }
+ if (retryConfig_ != null) {
+ output.writeMessage(19, getRetryConfig());
+ }
+ if (!getScheduleBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 20, schedule_);
+ }
+ if (!getTimeZoneBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 21, timeZone_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
+ }
+ if (targetCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, (com.google.cloud.scheduler.v1.PubsubTarget) target_);
+ }
+ if (targetCase_ == 5) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5, (com.google.cloud.scheduler.v1.AppEngineHttpTarget) target_);
+ }
+ if (targetCase_ == 6) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 6, (com.google.cloud.scheduler.v1.HttpTarget) target_);
+ }
+ if (userUpdateTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUserUpdateTime());
+ }
+ if (state_ != com.google.cloud.scheduler.v1.Job.State.STATE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_);
+ }
+ if (status_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getStatus());
+ }
+ if (scheduleTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getScheduleTime());
+ }
+ if (lastAttemptTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLastAttemptTime());
+ }
+ if (retryConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getRetryConfig());
+ }
+ if (!getScheduleBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, schedule_);
+ }
+ if (!getTimeZoneBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, timeZone_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.scheduler.v1.Job)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1.Job other = (com.google.cloud.scheduler.v1.Job) obj;
+
+ boolean result = true;
+ result = result && getName().equals(other.getName());
+ result = result && getDescription().equals(other.getDescription());
+ result = result && getSchedule().equals(other.getSchedule());
+ result = result && getTimeZone().equals(other.getTimeZone());
+ result = result && (hasUserUpdateTime() == other.hasUserUpdateTime());
+ if (hasUserUpdateTime()) {
+ result = result && getUserUpdateTime().equals(other.getUserUpdateTime());
+ }
+ result = result && state_ == other.state_;
+ result = result && (hasStatus() == other.hasStatus());
+ if (hasStatus()) {
+ result = result && getStatus().equals(other.getStatus());
+ }
+ result = result && (hasScheduleTime() == other.hasScheduleTime());
+ if (hasScheduleTime()) {
+ result = result && getScheduleTime().equals(other.getScheduleTime());
+ }
+ result = result && (hasLastAttemptTime() == other.hasLastAttemptTime());
+ if (hasLastAttemptTime()) {
+ result = result && getLastAttemptTime().equals(other.getLastAttemptTime());
+ }
+ result = result && (hasRetryConfig() == other.hasRetryConfig());
+ if (hasRetryConfig()) {
+ result = result && getRetryConfig().equals(other.getRetryConfig());
+ }
+ result = result && getTargetCase().equals(other.getTargetCase());
+ if (!result) return false;
+ switch (targetCase_) {
+ case 4:
+ result = result && getPubsubTarget().equals(other.getPubsubTarget());
+ break;
+ case 5:
+ result = result && getAppEngineHttpTarget().equals(other.getAppEngineHttpTarget());
+ break;
+ case 6:
+ result = result && getHttpTarget().equals(other.getHttpTarget());
+ break;
+ case 0:
+ default:
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ hash = (37 * hash) + SCHEDULE_FIELD_NUMBER;
+ hash = (53 * hash) + getSchedule().hashCode();
+ hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER;
+ hash = (53 * hash) + getTimeZone().hashCode();
+ if (hasUserUpdateTime()) {
+ hash = (37 * hash) + USER_UPDATE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getUserUpdateTime().hashCode();
+ }
+ hash = (37 * hash) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ if (hasStatus()) {
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + getStatus().hashCode();
+ }
+ if (hasScheduleTime()) {
+ hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getScheduleTime().hashCode();
+ }
+ if (hasLastAttemptTime()) {
+ hash = (37 * hash) + LAST_ATTEMPT_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getLastAttemptTime().hashCode();
+ }
+ if (hasRetryConfig()) {
+ hash = (37 * hash) + RETRY_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getRetryConfig().hashCode();
+ }
+ switch (targetCase_) {
+ case 4:
+ hash = (37 * hash) + PUBSUB_TARGET_FIELD_NUMBER;
+ hash = (53 * hash) + getPubsubTarget().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + APP_ENGINE_HTTP_TARGET_FIELD_NUMBER;
+ hash = (53 * hash) + getAppEngineHttpTarget().hashCode();
+ break;
+ case 6:
+ hash = (37 * hash) + HTTP_TARGET_FIELD_NUMBER;
+ hash = (53 * hash) + getHttpTarget().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.scheduler.v1.Job parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.Job parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.Job parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.Job parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.Job parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.Job parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.Job parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.Job parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.Job parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.Job parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.Job parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.Job parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.scheduler.v1.Job prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Configuration for a job. + * The maximum allowed size for a job is 100KB. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.Job} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after + * which it becomes output only. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), colons (:), or periods (.). + * For more information, see + * [Identifying + * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) + * * `LOCATION_ID` is the canonical ID for the job's location. + * The list of available locations can be obtained by calling + * [ListLocations][google.cloud.location.Locations.ListLocations]. + * For more information, see https://cloud.google.com/about/locations/. + * * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), or underscores (_). The maximum length is 500 characters. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after + * which it becomes output only. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), colons (:), or periods (.). + * For more information, see + * [Identifying + * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) + * * `LOCATION_ID` is the canonical ID for the job's location. + * The list of available locations can be obtained by calling + * [ListLocations][google.cloud.location.Locations.ListLocations]. + * For more information, see https://cloud.google.com/about/locations/. + * * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), or underscores (_). The maximum length is 500 characters. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after + * which it becomes output only. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), colons (:), or periods (.). + * For more information, see + * [Identifying + * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) + * * `LOCATION_ID` is the canonical ID for the job's location. + * The list of available locations can be obtained by calling + * [ListLocations][google.cloud.location.Locations.ListLocations]. + * For more information, see https://cloud.google.com/about/locations/. + * * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), or underscores (_). The maximum length is 500 characters. + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after + * which it becomes output only. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), colons (:), or periods (.). + * For more information, see + * [Identifying + * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) + * * `LOCATION_ID` is the canonical ID for the job's location. + * The list of available locations can be obtained by calling + * [ListLocations][google.cloud.location.Locations.ListLocations]. + * For more information, see https://cloud.google.com/about/locations/. + * * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), or underscores (_). The maximum length is 500 characters. + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after + * which it becomes output only. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), colons (:), or periods (.). + * For more information, see + * [Identifying + * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) + * * `LOCATION_ID` is the canonical ID for the job's location. + * The list of available locations can be obtained by calling + * [ListLocations][google.cloud.location.Locations.ListLocations]. + * For more information, see https://cloud.google.com/about/locations/. + * * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), or underscores (_). The maximum length is 500 characters. + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object description_ = "";
+ /**
+ *
+ *
+ * + * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or + * [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + * A human-readable description for the job. This string must not contain + * more than 500 characters. + *+ * + *
string description = 2;
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or + * [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + * A human-readable description for the job. This string must not contain + * more than 500 characters. + *+ * + *
string description = 2;
+ */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or + * [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + * A human-readable description for the job. This string must not contain + * more than 500 characters. + *+ * + *
string description = 2;
+ */
+ public Builder setDescription(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or + * [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + * A human-readable description for the job. This string must not contain + * more than 500 characters. + *+ * + *
string description = 2;
+ */
+ public Builder clearDescription() {
+
+ description_ = getDefaultInstance().getDescription();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or + * [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + * A human-readable description for the job. This string must not contain + * more than 500 characters. + *+ * + *
string description = 2;
+ */
+ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1.PubsubTarget,
+ com.google.cloud.scheduler.v1.PubsubTarget.Builder,
+ com.google.cloud.scheduler.v1.PubsubTargetOrBuilder>
+ pubsubTargetBuilder_;
+ /**
+ *
+ *
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4;
+ */
+ public boolean hasPubsubTarget() {
+ return targetCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4;
+ */
+ public com.google.cloud.scheduler.v1.PubsubTarget getPubsubTarget() {
+ if (pubsubTargetBuilder_ == null) {
+ if (targetCase_ == 4) {
+ return (com.google.cloud.scheduler.v1.PubsubTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1.PubsubTarget.getDefaultInstance();
+ } else {
+ if (targetCase_ == 4) {
+ return pubsubTargetBuilder_.getMessage();
+ }
+ return com.google.cloud.scheduler.v1.PubsubTarget.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4;
+ */
+ public Builder setPubsubTarget(com.google.cloud.scheduler.v1.PubsubTarget value) {
+ if (pubsubTargetBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ target_ = value;
+ onChanged();
+ } else {
+ pubsubTargetBuilder_.setMessage(value);
+ }
+ targetCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4;
+ */
+ public Builder setPubsubTarget(
+ com.google.cloud.scheduler.v1.PubsubTarget.Builder builderForValue) {
+ if (pubsubTargetBuilder_ == null) {
+ target_ = builderForValue.build();
+ onChanged();
+ } else {
+ pubsubTargetBuilder_.setMessage(builderForValue.build());
+ }
+ targetCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4;
+ */
+ public Builder mergePubsubTarget(com.google.cloud.scheduler.v1.PubsubTarget value) {
+ if (pubsubTargetBuilder_ == null) {
+ if (targetCase_ == 4
+ && target_ != com.google.cloud.scheduler.v1.PubsubTarget.getDefaultInstance()) {
+ target_ =
+ com.google.cloud.scheduler.v1.PubsubTarget.newBuilder(
+ (com.google.cloud.scheduler.v1.PubsubTarget) target_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ target_ = value;
+ }
+ onChanged();
+ } else {
+ if (targetCase_ == 4) {
+ pubsubTargetBuilder_.mergeFrom(value);
+ }
+ pubsubTargetBuilder_.setMessage(value);
+ }
+ targetCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4;
+ */
+ public Builder clearPubsubTarget() {
+ if (pubsubTargetBuilder_ == null) {
+ if (targetCase_ == 4) {
+ targetCase_ = 0;
+ target_ = null;
+ onChanged();
+ }
+ } else {
+ if (targetCase_ == 4) {
+ targetCase_ = 0;
+ target_ = null;
+ }
+ pubsubTargetBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4;
+ */
+ public com.google.cloud.scheduler.v1.PubsubTarget.Builder getPubsubTargetBuilder() {
+ return getPubsubTargetFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4;
+ */
+ public com.google.cloud.scheduler.v1.PubsubTargetOrBuilder getPubsubTargetOrBuilder() {
+ if ((targetCase_ == 4) && (pubsubTargetBuilder_ != null)) {
+ return pubsubTargetBuilder_.getMessageOrBuilder();
+ } else {
+ if (targetCase_ == 4) {
+ return (com.google.cloud.scheduler.v1.PubsubTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1.PubsubTarget.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1.PubsubTarget,
+ com.google.cloud.scheduler.v1.PubsubTarget.Builder,
+ com.google.cloud.scheduler.v1.PubsubTargetOrBuilder>
+ getPubsubTargetFieldBuilder() {
+ if (pubsubTargetBuilder_ == null) {
+ if (!(targetCase_ == 4)) {
+ target_ = com.google.cloud.scheduler.v1.PubsubTarget.getDefaultInstance();
+ }
+ pubsubTargetBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1.PubsubTarget,
+ com.google.cloud.scheduler.v1.PubsubTarget.Builder,
+ com.google.cloud.scheduler.v1.PubsubTargetOrBuilder>(
+ (com.google.cloud.scheduler.v1.PubsubTarget) target_,
+ getParentForChildren(),
+ isClean());
+ target_ = null;
+ }
+ targetCase_ = 4;
+ onChanged();
+ ;
+ return pubsubTargetBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1.AppEngineHttpTarget,
+ com.google.cloud.scheduler.v1.AppEngineHttpTarget.Builder,
+ com.google.cloud.scheduler.v1.AppEngineHttpTargetOrBuilder>
+ appEngineHttpTargetBuilder_;
+ /**
+ *
+ *
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public boolean hasAppEngineHttpTarget() {
+ return targetCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public com.google.cloud.scheduler.v1.AppEngineHttpTarget getAppEngineHttpTarget() {
+ if (appEngineHttpTargetBuilder_ == null) {
+ if (targetCase_ == 5) {
+ return (com.google.cloud.scheduler.v1.AppEngineHttpTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1.AppEngineHttpTarget.getDefaultInstance();
+ } else {
+ if (targetCase_ == 5) {
+ return appEngineHttpTargetBuilder_.getMessage();
+ }
+ return com.google.cloud.scheduler.v1.AppEngineHttpTarget.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public Builder setAppEngineHttpTarget(com.google.cloud.scheduler.v1.AppEngineHttpTarget value) {
+ if (appEngineHttpTargetBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ target_ = value;
+ onChanged();
+ } else {
+ appEngineHttpTargetBuilder_.setMessage(value);
+ }
+ targetCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public Builder setAppEngineHttpTarget(
+ com.google.cloud.scheduler.v1.AppEngineHttpTarget.Builder builderForValue) {
+ if (appEngineHttpTargetBuilder_ == null) {
+ target_ = builderForValue.build();
+ onChanged();
+ } else {
+ appEngineHttpTargetBuilder_.setMessage(builderForValue.build());
+ }
+ targetCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public Builder mergeAppEngineHttpTarget(
+ com.google.cloud.scheduler.v1.AppEngineHttpTarget value) {
+ if (appEngineHttpTargetBuilder_ == null) {
+ if (targetCase_ == 5
+ && target_ != com.google.cloud.scheduler.v1.AppEngineHttpTarget.getDefaultInstance()) {
+ target_ =
+ com.google.cloud.scheduler.v1.AppEngineHttpTarget.newBuilder(
+ (com.google.cloud.scheduler.v1.AppEngineHttpTarget) target_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ target_ = value;
+ }
+ onChanged();
+ } else {
+ if (targetCase_ == 5) {
+ appEngineHttpTargetBuilder_.mergeFrom(value);
+ }
+ appEngineHttpTargetBuilder_.setMessage(value);
+ }
+ targetCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public Builder clearAppEngineHttpTarget() {
+ if (appEngineHttpTargetBuilder_ == null) {
+ if (targetCase_ == 5) {
+ targetCase_ = 0;
+ target_ = null;
+ onChanged();
+ }
+ } else {
+ if (targetCase_ == 5) {
+ targetCase_ = 0;
+ target_ = null;
+ }
+ appEngineHttpTargetBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public com.google.cloud.scheduler.v1.AppEngineHttpTarget.Builder
+ getAppEngineHttpTargetBuilder() {
+ return getAppEngineHttpTargetFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public com.google.cloud.scheduler.v1.AppEngineHttpTargetOrBuilder
+ getAppEngineHttpTargetOrBuilder() {
+ if ((targetCase_ == 5) && (appEngineHttpTargetBuilder_ != null)) {
+ return appEngineHttpTargetBuilder_.getMessageOrBuilder();
+ } else {
+ if (targetCase_ == 5) {
+ return (com.google.cloud.scheduler.v1.AppEngineHttpTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1.AppEngineHttpTarget.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1.AppEngineHttpTarget,
+ com.google.cloud.scheduler.v1.AppEngineHttpTarget.Builder,
+ com.google.cloud.scheduler.v1.AppEngineHttpTargetOrBuilder>
+ getAppEngineHttpTargetFieldBuilder() {
+ if (appEngineHttpTargetBuilder_ == null) {
+ if (!(targetCase_ == 5)) {
+ target_ = com.google.cloud.scheduler.v1.AppEngineHttpTarget.getDefaultInstance();
+ }
+ appEngineHttpTargetBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1.AppEngineHttpTarget,
+ com.google.cloud.scheduler.v1.AppEngineHttpTarget.Builder,
+ com.google.cloud.scheduler.v1.AppEngineHttpTargetOrBuilder>(
+ (com.google.cloud.scheduler.v1.AppEngineHttpTarget) target_,
+ getParentForChildren(),
+ isClean());
+ target_ = null;
+ }
+ targetCase_ = 5;
+ onChanged();
+ ;
+ return appEngineHttpTargetBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1.HttpTarget,
+ com.google.cloud.scheduler.v1.HttpTarget.Builder,
+ com.google.cloud.scheduler.v1.HttpTargetOrBuilder>
+ httpTargetBuilder_;
+ /**
+ *
+ *
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1.HttpTarget http_target = 6;
+ */
+ public boolean hasHttpTarget() {
+ return targetCase_ == 6;
+ }
+ /**
+ *
+ *
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1.HttpTarget http_target = 6;
+ */
+ public com.google.cloud.scheduler.v1.HttpTarget getHttpTarget() {
+ if (httpTargetBuilder_ == null) {
+ if (targetCase_ == 6) {
+ return (com.google.cloud.scheduler.v1.HttpTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1.HttpTarget.getDefaultInstance();
+ } else {
+ if (targetCase_ == 6) {
+ return httpTargetBuilder_.getMessage();
+ }
+ return com.google.cloud.scheduler.v1.HttpTarget.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1.HttpTarget http_target = 6;
+ */
+ public Builder setHttpTarget(com.google.cloud.scheduler.v1.HttpTarget value) {
+ if (httpTargetBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ target_ = value;
+ onChanged();
+ } else {
+ httpTargetBuilder_.setMessage(value);
+ }
+ targetCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1.HttpTarget http_target = 6;
+ */
+ public Builder setHttpTarget(com.google.cloud.scheduler.v1.HttpTarget.Builder builderForValue) {
+ if (httpTargetBuilder_ == null) {
+ target_ = builderForValue.build();
+ onChanged();
+ } else {
+ httpTargetBuilder_.setMessage(builderForValue.build());
+ }
+ targetCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1.HttpTarget http_target = 6;
+ */
+ public Builder mergeHttpTarget(com.google.cloud.scheduler.v1.HttpTarget value) {
+ if (httpTargetBuilder_ == null) {
+ if (targetCase_ == 6
+ && target_ != com.google.cloud.scheduler.v1.HttpTarget.getDefaultInstance()) {
+ target_ =
+ com.google.cloud.scheduler.v1.HttpTarget.newBuilder(
+ (com.google.cloud.scheduler.v1.HttpTarget) target_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ target_ = value;
+ }
+ onChanged();
+ } else {
+ if (targetCase_ == 6) {
+ httpTargetBuilder_.mergeFrom(value);
+ }
+ httpTargetBuilder_.setMessage(value);
+ }
+ targetCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1.HttpTarget http_target = 6;
+ */
+ public Builder clearHttpTarget() {
+ if (httpTargetBuilder_ == null) {
+ if (targetCase_ == 6) {
+ targetCase_ = 0;
+ target_ = null;
+ onChanged();
+ }
+ } else {
+ if (targetCase_ == 6) {
+ targetCase_ = 0;
+ target_ = null;
+ }
+ httpTargetBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1.HttpTarget http_target = 6;
+ */
+ public com.google.cloud.scheduler.v1.HttpTarget.Builder getHttpTargetBuilder() {
+ return getHttpTargetFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1.HttpTarget http_target = 6;
+ */
+ public com.google.cloud.scheduler.v1.HttpTargetOrBuilder getHttpTargetOrBuilder() {
+ if ((targetCase_ == 6) && (httpTargetBuilder_ != null)) {
+ return httpTargetBuilder_.getMessageOrBuilder();
+ } else {
+ if (targetCase_ == 6) {
+ return (com.google.cloud.scheduler.v1.HttpTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1.HttpTarget.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1.HttpTarget http_target = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1.HttpTarget,
+ com.google.cloud.scheduler.v1.HttpTarget.Builder,
+ com.google.cloud.scheduler.v1.HttpTargetOrBuilder>
+ getHttpTargetFieldBuilder() {
+ if (httpTargetBuilder_ == null) {
+ if (!(targetCase_ == 6)) {
+ target_ = com.google.cloud.scheduler.v1.HttpTarget.getDefaultInstance();
+ }
+ httpTargetBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1.HttpTarget,
+ com.google.cloud.scheduler.v1.HttpTarget.Builder,
+ com.google.cloud.scheduler.v1.HttpTargetOrBuilder>(
+ (com.google.cloud.scheduler.v1.HttpTarget) target_,
+ getParentForChildren(),
+ isClean());
+ target_ = null;
+ }
+ targetCase_ = 6;
+ onChanged();
+ ;
+ return httpTargetBuilder_;
+ }
+
+ private java.lang.Object schedule_ = "";
+ /**
+ *
+ *
+ * + * Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + * Describes the schedule on which the job will be executed. + * The schedule can be either of the following types: + * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview) + * * English-like + * [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules) + * As a general rule, execution `n + 1` of a job will not begin + * until execution `n` has finished. Cloud Scheduler will never + * allow two simultaneously outstanding executions. For example, + * this implies that if the `n+1`th execution is scheduled to run at + * 16:00 but the `n`th execution takes until 16:15, the `n+1`th + * execution will not start until `16:15`. + * A scheduled start time will be delayed if the previous + * execution has not ended when its scheduled time occurs. + * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails, + * the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] + * times, with exponential backoff, until the next scheduled start + * time. + *+ * + *
string schedule = 20;
+ */
+ public java.lang.String getSchedule() {
+ java.lang.Object ref = schedule_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ schedule_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + * Describes the schedule on which the job will be executed. + * The schedule can be either of the following types: + * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview) + * * English-like + * [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules) + * As a general rule, execution `n + 1` of a job will not begin + * until execution `n` has finished. Cloud Scheduler will never + * allow two simultaneously outstanding executions. For example, + * this implies that if the `n+1`th execution is scheduled to run at + * 16:00 but the `n`th execution takes until 16:15, the `n+1`th + * execution will not start until `16:15`. + * A scheduled start time will be delayed if the previous + * execution has not ended when its scheduled time occurs. + * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails, + * the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] + * times, with exponential backoff, until the next scheduled start + * time. + *+ * + *
string schedule = 20;
+ */
+ public com.google.protobuf.ByteString getScheduleBytes() {
+ java.lang.Object ref = schedule_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ schedule_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + * Describes the schedule on which the job will be executed. + * The schedule can be either of the following types: + * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview) + * * English-like + * [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules) + * As a general rule, execution `n + 1` of a job will not begin + * until execution `n` has finished. Cloud Scheduler will never + * allow two simultaneously outstanding executions. For example, + * this implies that if the `n+1`th execution is scheduled to run at + * 16:00 but the `n`th execution takes until 16:15, the `n+1`th + * execution will not start until `16:15`. + * A scheduled start time will be delayed if the previous + * execution has not ended when its scheduled time occurs. + * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails, + * the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] + * times, with exponential backoff, until the next scheduled start + * time. + *+ * + *
string schedule = 20;
+ */
+ public Builder setSchedule(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ schedule_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + * Describes the schedule on which the job will be executed. + * The schedule can be either of the following types: + * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview) + * * English-like + * [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules) + * As a general rule, execution `n + 1` of a job will not begin + * until execution `n` has finished. Cloud Scheduler will never + * allow two simultaneously outstanding executions. For example, + * this implies that if the `n+1`th execution is scheduled to run at + * 16:00 but the `n`th execution takes until 16:15, the `n+1`th + * execution will not start until `16:15`. + * A scheduled start time will be delayed if the previous + * execution has not ended when its scheduled time occurs. + * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails, + * the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] + * times, with exponential backoff, until the next scheduled start + * time. + *+ * + *
string schedule = 20;
+ */
+ public Builder clearSchedule() {
+
+ schedule_ = getDefaultInstance().getSchedule();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + * Describes the schedule on which the job will be executed. + * The schedule can be either of the following types: + * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview) + * * English-like + * [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules) + * As a general rule, execution `n + 1` of a job will not begin + * until execution `n` has finished. Cloud Scheduler will never + * allow two simultaneously outstanding executions. For example, + * this implies that if the `n+1`th execution is scheduled to run at + * 16:00 but the `n`th execution takes until 16:15, the `n+1`th + * execution will not start until `16:15`. + * A scheduled start time will be delayed if the previous + * execution has not ended when its scheduled time occurs. + * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails, + * the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] + * times, with exponential backoff, until the next scheduled start + * time. + *+ * + *
string schedule = 20;
+ */
+ public Builder setScheduleBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ schedule_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object timeZone_ = "";
+ /**
+ *
+ *
+ * + * Specifies the time zone to be used in interpreting + * [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time + * zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database). + * Note that some time zones include a provision for + * daylight savings time. The rules for daylight saving time are + * determined by the chosen tz. For UTC use the string "utc". If a + * time zone is not specified, the default will be in UTC (also known + * as GMT). + *+ * + *
string time_zone = 21;
+ */
+ public java.lang.String getTimeZone() {
+ java.lang.Object ref = timeZone_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ timeZone_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Specifies the time zone to be used in interpreting + * [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time + * zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database). + * Note that some time zones include a provision for + * daylight savings time. The rules for daylight saving time are + * determined by the chosen tz. For UTC use the string "utc". If a + * time zone is not specified, the default will be in UTC (also known + * as GMT). + *+ * + *
string time_zone = 21;
+ */
+ public com.google.protobuf.ByteString getTimeZoneBytes() {
+ java.lang.Object ref = timeZone_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ timeZone_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Specifies the time zone to be used in interpreting + * [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time + * zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database). + * Note that some time zones include a provision for + * daylight savings time. The rules for daylight saving time are + * determined by the chosen tz. For UTC use the string "utc". If a + * time zone is not specified, the default will be in UTC (also known + * as GMT). + *+ * + *
string time_zone = 21;
+ */
+ public Builder setTimeZone(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ timeZone_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Specifies the time zone to be used in interpreting + * [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time + * zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database). + * Note that some time zones include a provision for + * daylight savings time. The rules for daylight saving time are + * determined by the chosen tz. For UTC use the string "utc". If a + * time zone is not specified, the default will be in UTC (also known + * as GMT). + *+ * + *
string time_zone = 21;
+ */
+ public Builder clearTimeZone() {
+
+ timeZone_ = getDefaultInstance().getTimeZone();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Specifies the time zone to be used in interpreting + * [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time + * zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database). + * Note that some time zones include a provision for + * daylight savings time. The rules for daylight saving time are + * determined by the chosen tz. For UTC use the string "utc". If a + * time zone is not specified, the default will be in UTC (also known + * as GMT). + *+ * + *
string time_zone = 21;
+ */
+ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ timeZone_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp userUpdateTime_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ userUpdateTimeBuilder_;
+ /**
+ *
+ *
+ * + * Output only. The creation time of the job. + *+ * + *
.google.protobuf.Timestamp user_update_time = 9;
+ */
+ public boolean hasUserUpdateTime() {
+ return userUpdateTimeBuilder_ != null || userUpdateTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time of the job. + *+ * + *
.google.protobuf.Timestamp user_update_time = 9;
+ */
+ public com.google.protobuf.Timestamp getUserUpdateTime() {
+ if (userUpdateTimeBuilder_ == null) {
+ return userUpdateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : userUpdateTime_;
+ } else {
+ return userUpdateTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time of the job. + *+ * + *
.google.protobuf.Timestamp user_update_time = 9;
+ */
+ public Builder setUserUpdateTime(com.google.protobuf.Timestamp value) {
+ if (userUpdateTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ userUpdateTime_ = value;
+ onChanged();
+ } else {
+ userUpdateTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time of the job. + *+ * + *
.google.protobuf.Timestamp user_update_time = 9;
+ */
+ public Builder setUserUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (userUpdateTimeBuilder_ == null) {
+ userUpdateTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ userUpdateTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time of the job. + *+ * + *
.google.protobuf.Timestamp user_update_time = 9;
+ */
+ public Builder mergeUserUpdateTime(com.google.protobuf.Timestamp value) {
+ if (userUpdateTimeBuilder_ == null) {
+ if (userUpdateTime_ != null) {
+ userUpdateTime_ =
+ com.google.protobuf.Timestamp.newBuilder(userUpdateTime_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ userUpdateTime_ = value;
+ }
+ onChanged();
+ } else {
+ userUpdateTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time of the job. + *+ * + *
.google.protobuf.Timestamp user_update_time = 9;
+ */
+ public Builder clearUserUpdateTime() {
+ if (userUpdateTimeBuilder_ == null) {
+ userUpdateTime_ = null;
+ onChanged();
+ } else {
+ userUpdateTime_ = null;
+ userUpdateTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time of the job. + *+ * + *
.google.protobuf.Timestamp user_update_time = 9;
+ */
+ public com.google.protobuf.Timestamp.Builder getUserUpdateTimeBuilder() {
+
+ onChanged();
+ return getUserUpdateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time of the job. + *+ * + *
.google.protobuf.Timestamp user_update_time = 9;
+ */
+ public com.google.protobuf.TimestampOrBuilder getUserUpdateTimeOrBuilder() {
+ if (userUpdateTimeBuilder_ != null) {
+ return userUpdateTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return userUpdateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : userUpdateTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time of the job. + *+ * + *
.google.protobuf.Timestamp user_update_time = 9;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getUserUpdateTimeFieldBuilder() {
+ if (userUpdateTimeBuilder_ == null) {
+ userUpdateTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getUserUpdateTime(), getParentForChildren(), isClean());
+ userUpdateTime_ = null;
+ }
+ return userUpdateTimeBuilder_;
+ }
+
+ private int state_ = 0;
+ /**
+ *
+ *
+ * + * Output only. State of the job. + *+ * + *
.google.cloud.scheduler.v1.Job.State state = 10;
+ */
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ * + * Output only. State of the job. + *+ * + *
.google.cloud.scheduler.v1.Job.State state = 10;
+ */
+ public Builder setStateValue(int value) {
+ state_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. State of the job. + *+ * + *
.google.cloud.scheduler.v1.Job.State state = 10;
+ */
+ public com.google.cloud.scheduler.v1.Job.State getState() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.scheduler.v1.Job.State result =
+ com.google.cloud.scheduler.v1.Job.State.valueOf(state_);
+ return result == null ? com.google.cloud.scheduler.v1.Job.State.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ * + * Output only. State of the job. + *+ * + *
.google.cloud.scheduler.v1.Job.State state = 10;
+ */
+ public Builder setState(com.google.cloud.scheduler.v1.Job.State value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. State of the job. + *+ * + *
.google.cloud.scheduler.v1.Job.State state = 10;
+ */
+ public Builder clearState() {
+
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.rpc.Status status_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ statusBuilder_;
+ /**
+ *
+ *
+ * + * Output only. The response from the target for the last attempted execution. + *+ * + *
.google.rpc.Status status = 11;
+ */
+ public boolean hasStatus() {
+ return statusBuilder_ != null || status_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The response from the target for the last attempted execution. + *+ * + *
.google.rpc.Status status = 11;
+ */
+ public com.google.rpc.Status getStatus() {
+ if (statusBuilder_ == null) {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ } else {
+ return statusBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The response from the target for the last attempted execution. + *+ * + *
.google.rpc.Status status = 11;
+ */
+ public Builder setStatus(com.google.rpc.Status value) {
+ if (statusBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ status_ = value;
+ onChanged();
+ } else {
+ statusBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The response from the target for the last attempted execution. + *+ * + *
.google.rpc.Status status = 11;
+ */
+ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) {
+ if (statusBuilder_ == null) {
+ status_ = builderForValue.build();
+ onChanged();
+ } else {
+ statusBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The response from the target for the last attempted execution. + *+ * + *
.google.rpc.Status status = 11;
+ */
+ public Builder mergeStatus(com.google.rpc.Status value) {
+ if (statusBuilder_ == null) {
+ if (status_ != null) {
+ status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial();
+ } else {
+ status_ = value;
+ }
+ onChanged();
+ } else {
+ statusBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The response from the target for the last attempted execution. + *+ * + *
.google.rpc.Status status = 11;
+ */
+ public Builder clearStatus() {
+ if (statusBuilder_ == null) {
+ status_ = null;
+ onChanged();
+ } else {
+ status_ = null;
+ statusBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The response from the target for the last attempted execution. + *+ * + *
.google.rpc.Status status = 11;
+ */
+ public com.google.rpc.Status.Builder getStatusBuilder() {
+
+ onChanged();
+ return getStatusFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. The response from the target for the last attempted execution. + *+ * + *
.google.rpc.Status status = 11;
+ */
+ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
+ if (statusBuilder_ != null) {
+ return statusBuilder_.getMessageOrBuilder();
+ } else {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The response from the target for the last attempted execution. + *+ * + *
.google.rpc.Status status = 11;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ getStatusFieldBuilder() {
+ if (statusBuilder_ == null) {
+ statusBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status,
+ com.google.rpc.Status.Builder,
+ com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean());
+ status_ = null;
+ }
+ return statusBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp scheduleTime_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ scheduleTimeBuilder_;
+ /**
+ *
+ *
+ * + * Output only. The next time the job is scheduled. Note that this may be a + * retry of a previously failed attempt or the next execution time + * according to the schedule. + *+ * + *
.google.protobuf.Timestamp schedule_time = 17;
+ */
+ public boolean hasScheduleTime() {
+ return scheduleTimeBuilder_ != null || scheduleTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The next time the job is scheduled. Note that this may be a + * retry of a previously failed attempt or the next execution time + * according to the schedule. + *+ * + *
.google.protobuf.Timestamp schedule_time = 17;
+ */
+ public com.google.protobuf.Timestamp getScheduleTime() {
+ if (scheduleTimeBuilder_ == null) {
+ return scheduleTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : scheduleTime_;
+ } else {
+ return scheduleTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The next time the job is scheduled. Note that this may be a + * retry of a previously failed attempt or the next execution time + * according to the schedule. + *+ * + *
.google.protobuf.Timestamp schedule_time = 17;
+ */
+ public Builder setScheduleTime(com.google.protobuf.Timestamp value) {
+ if (scheduleTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ scheduleTime_ = value;
+ onChanged();
+ } else {
+ scheduleTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The next time the job is scheduled. Note that this may be a + * retry of a previously failed attempt or the next execution time + * according to the schedule. + *+ * + *
.google.protobuf.Timestamp schedule_time = 17;
+ */
+ public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (scheduleTimeBuilder_ == null) {
+ scheduleTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ scheduleTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The next time the job is scheduled. Note that this may be a + * retry of a previously failed attempt or the next execution time + * according to the schedule. + *+ * + *
.google.protobuf.Timestamp schedule_time = 17;
+ */
+ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
+ if (scheduleTimeBuilder_ == null) {
+ if (scheduleTime_ != null) {
+ scheduleTime_ =
+ com.google.protobuf.Timestamp.newBuilder(scheduleTime_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ scheduleTime_ = value;
+ }
+ onChanged();
+ } else {
+ scheduleTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The next time the job is scheduled. Note that this may be a + * retry of a previously failed attempt or the next execution time + * according to the schedule. + *+ * + *
.google.protobuf.Timestamp schedule_time = 17;
+ */
+ public Builder clearScheduleTime() {
+ if (scheduleTimeBuilder_ == null) {
+ scheduleTime_ = null;
+ onChanged();
+ } else {
+ scheduleTime_ = null;
+ scheduleTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The next time the job is scheduled. Note that this may be a + * retry of a previously failed attempt or the next execution time + * according to the schedule. + *+ * + *
.google.protobuf.Timestamp schedule_time = 17;
+ */
+ public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() {
+
+ onChanged();
+ return getScheduleTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. The next time the job is scheduled. Note that this may be a + * retry of a previously failed attempt or the next execution time + * according to the schedule. + *+ * + *
.google.protobuf.Timestamp schedule_time = 17;
+ */
+ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
+ if (scheduleTimeBuilder_ != null) {
+ return scheduleTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return scheduleTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : scheduleTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The next time the job is scheduled. Note that this may be a + * retry of a previously failed attempt or the next execution time + * according to the schedule. + *+ * + *
.google.protobuf.Timestamp schedule_time = 17;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getScheduleTimeFieldBuilder() {
+ if (scheduleTimeBuilder_ == null) {
+ scheduleTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getScheduleTime(), getParentForChildren(), isClean());
+ scheduleTime_ = null;
+ }
+ return scheduleTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp lastAttemptTime_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ lastAttemptTimeBuilder_;
+ /**
+ *
+ *
+ * + * Output only. The time the last job attempt started. + *+ * + *
.google.protobuf.Timestamp last_attempt_time = 18;
+ */
+ public boolean hasLastAttemptTime() {
+ return lastAttemptTimeBuilder_ != null || lastAttemptTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time the last job attempt started. + *+ * + *
.google.protobuf.Timestamp last_attempt_time = 18;
+ */
+ public com.google.protobuf.Timestamp getLastAttemptTime() {
+ if (lastAttemptTimeBuilder_ == null) {
+ return lastAttemptTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : lastAttemptTime_;
+ } else {
+ return lastAttemptTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The time the last job attempt started. + *+ * + *
.google.protobuf.Timestamp last_attempt_time = 18;
+ */
+ public Builder setLastAttemptTime(com.google.protobuf.Timestamp value) {
+ if (lastAttemptTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ lastAttemptTime_ = value;
+ onChanged();
+ } else {
+ lastAttemptTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time the last job attempt started. + *+ * + *
.google.protobuf.Timestamp last_attempt_time = 18;
+ */
+ public Builder setLastAttemptTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (lastAttemptTimeBuilder_ == null) {
+ lastAttemptTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ lastAttemptTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time the last job attempt started. + *+ * + *
.google.protobuf.Timestamp last_attempt_time = 18;
+ */
+ public Builder mergeLastAttemptTime(com.google.protobuf.Timestamp value) {
+ if (lastAttemptTimeBuilder_ == null) {
+ if (lastAttemptTime_ != null) {
+ lastAttemptTime_ =
+ com.google.protobuf.Timestamp.newBuilder(lastAttemptTime_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ lastAttemptTime_ = value;
+ }
+ onChanged();
+ } else {
+ lastAttemptTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time the last job attempt started. + *+ * + *
.google.protobuf.Timestamp last_attempt_time = 18;
+ */
+ public Builder clearLastAttemptTime() {
+ if (lastAttemptTimeBuilder_ == null) {
+ lastAttemptTime_ = null;
+ onChanged();
+ } else {
+ lastAttemptTime_ = null;
+ lastAttemptTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time the last job attempt started. + *+ * + *
.google.protobuf.Timestamp last_attempt_time = 18;
+ */
+ public com.google.protobuf.Timestamp.Builder getLastAttemptTimeBuilder() {
+
+ onChanged();
+ return getLastAttemptTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. The time the last job attempt started. + *+ * + *
.google.protobuf.Timestamp last_attempt_time = 18;
+ */
+ public com.google.protobuf.TimestampOrBuilder getLastAttemptTimeOrBuilder() {
+ if (lastAttemptTimeBuilder_ != null) {
+ return lastAttemptTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return lastAttemptTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : lastAttemptTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The time the last job attempt started. + *+ * + *
.google.protobuf.Timestamp last_attempt_time = 18;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getLastAttemptTimeFieldBuilder() {
+ if (lastAttemptTimeBuilder_ == null) {
+ lastAttemptTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getLastAttemptTime(), getParentForChildren(), isClean());
+ lastAttemptTime_ = null;
+ }
+ return lastAttemptTimeBuilder_;
+ }
+
+ private com.google.cloud.scheduler.v1.RetryConfig retryConfig_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1.RetryConfig,
+ com.google.cloud.scheduler.v1.RetryConfig.Builder,
+ com.google.cloud.scheduler.v1.RetryConfigOrBuilder>
+ retryConfigBuilder_;
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1.RetryConfig retry_config = 19;
+ */
+ public boolean hasRetryConfig() {
+ return retryConfigBuilder_ != null || retryConfig_ != null;
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1.RetryConfig retry_config = 19;
+ */
+ public com.google.cloud.scheduler.v1.RetryConfig getRetryConfig() {
+ if (retryConfigBuilder_ == null) {
+ return retryConfig_ == null
+ ? com.google.cloud.scheduler.v1.RetryConfig.getDefaultInstance()
+ : retryConfig_;
+ } else {
+ return retryConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1.RetryConfig retry_config = 19;
+ */
+ public Builder setRetryConfig(com.google.cloud.scheduler.v1.RetryConfig value) {
+ if (retryConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ retryConfig_ = value;
+ onChanged();
+ } else {
+ retryConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1.RetryConfig retry_config = 19;
+ */
+ public Builder setRetryConfig(
+ com.google.cloud.scheduler.v1.RetryConfig.Builder builderForValue) {
+ if (retryConfigBuilder_ == null) {
+ retryConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ retryConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1.RetryConfig retry_config = 19;
+ */
+ public Builder mergeRetryConfig(com.google.cloud.scheduler.v1.RetryConfig value) {
+ if (retryConfigBuilder_ == null) {
+ if (retryConfig_ != null) {
+ retryConfig_ =
+ com.google.cloud.scheduler.v1.RetryConfig.newBuilder(retryConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ retryConfig_ = value;
+ }
+ onChanged();
+ } else {
+ retryConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1.RetryConfig retry_config = 19;
+ */
+ public Builder clearRetryConfig() {
+ if (retryConfigBuilder_ == null) {
+ retryConfig_ = null;
+ onChanged();
+ } else {
+ retryConfig_ = null;
+ retryConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1.RetryConfig retry_config = 19;
+ */
+ public com.google.cloud.scheduler.v1.RetryConfig.Builder getRetryConfigBuilder() {
+
+ onChanged();
+ return getRetryConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1.RetryConfig retry_config = 19;
+ */
+ public com.google.cloud.scheduler.v1.RetryConfigOrBuilder getRetryConfigOrBuilder() {
+ if (retryConfigBuilder_ != null) {
+ return retryConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return retryConfig_ == null
+ ? com.google.cloud.scheduler.v1.RetryConfig.getDefaultInstance()
+ : retryConfig_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1.RetryConfig retry_config = 19;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1.RetryConfig,
+ com.google.cloud.scheduler.v1.RetryConfig.Builder,
+ com.google.cloud.scheduler.v1.RetryConfigOrBuilder>
+ getRetryConfigFieldBuilder() {
+ if (retryConfigBuilder_ == null) {
+ retryConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1.RetryConfig,
+ com.google.cloud.scheduler.v1.RetryConfig.Builder,
+ com.google.cloud.scheduler.v1.RetryConfigOrBuilder>(
+ getRetryConfig(), getParentForChildren(), isClean());
+ retryConfig_ = null;
+ }
+ return retryConfigBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.Job)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.Job)
+ private static final com.google.cloud.scheduler.v1.Job DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.Job();
+ }
+
+ public static com.google.cloud.scheduler.v1.Job getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after + * which it becomes output only. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), colons (:), or periods (.). + * For more information, see + * [Identifying + * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) + * * `LOCATION_ID` is the canonical ID for the job's location. + * The list of available locations can be obtained by calling + * [ListLocations][google.cloud.location.Locations.ListLocations]. + * For more information, see https://cloud.google.com/about/locations/. + * * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), or underscores (_). The maximum length is 500 characters. + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after + * which it becomes output only. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), colons (:), or periods (.). + * For more information, see + * [Identifying + * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) + * * `LOCATION_ID` is the canonical ID for the job's location. + * The list of available locations can be obtained by calling + * [ListLocations][google.cloud.location.Locations.ListLocations]. + * For more information, see https://cloud.google.com/about/locations/. + * * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), or underscores (_). The maximum length is 500 characters. + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or + * [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + * A human-readable description for the job. This string must not contain + * more than 500 characters. + *+ * + *
string description = 2;
+ */
+ java.lang.String getDescription();
+ /**
+ *
+ *
+ * + * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or + * [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + * A human-readable description for the job. This string must not contain + * more than 500 characters. + *+ * + *
string description = 2;
+ */
+ com.google.protobuf.ByteString getDescriptionBytes();
+
+ /**
+ *
+ *
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4;
+ */
+ boolean hasPubsubTarget();
+ /**
+ *
+ *
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4;
+ */
+ com.google.cloud.scheduler.v1.PubsubTarget getPubsubTarget();
+ /**
+ *
+ *
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4;
+ */
+ com.google.cloud.scheduler.v1.PubsubTargetOrBuilder getPubsubTargetOrBuilder();
+
+ /**
+ *
+ *
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ boolean hasAppEngineHttpTarget();
+ /**
+ *
+ *
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ com.google.cloud.scheduler.v1.AppEngineHttpTarget getAppEngineHttpTarget();
+ /**
+ *
+ *
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ com.google.cloud.scheduler.v1.AppEngineHttpTargetOrBuilder getAppEngineHttpTargetOrBuilder();
+
+ /**
+ *
+ *
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1.HttpTarget http_target = 6;
+ */
+ boolean hasHttpTarget();
+ /**
+ *
+ *
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1.HttpTarget http_target = 6;
+ */
+ com.google.cloud.scheduler.v1.HttpTarget getHttpTarget();
+ /**
+ *
+ *
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1.HttpTarget http_target = 6;
+ */
+ com.google.cloud.scheduler.v1.HttpTargetOrBuilder getHttpTargetOrBuilder();
+
+ /**
+ *
+ *
+ * + * Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + * Describes the schedule on which the job will be executed. + * The schedule can be either of the following types: + * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview) + * * English-like + * [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules) + * As a general rule, execution `n + 1` of a job will not begin + * until execution `n` has finished. Cloud Scheduler will never + * allow two simultaneously outstanding executions. For example, + * this implies that if the `n+1`th execution is scheduled to run at + * 16:00 but the `n`th execution takes until 16:15, the `n+1`th + * execution will not start until `16:15`. + * A scheduled start time will be delayed if the previous + * execution has not ended when its scheduled time occurs. + * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails, + * the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] + * times, with exponential backoff, until the next scheduled start + * time. + *+ * + *
string schedule = 20;
+ */
+ java.lang.String getSchedule();
+ /**
+ *
+ *
+ * + * Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + * Describes the schedule on which the job will be executed. + * The schedule can be either of the following types: + * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview) + * * English-like + * [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules) + * As a general rule, execution `n + 1` of a job will not begin + * until execution `n` has finished. Cloud Scheduler will never + * allow two simultaneously outstanding executions. For example, + * this implies that if the `n+1`th execution is scheduled to run at + * 16:00 but the `n`th execution takes until 16:15, the `n+1`th + * execution will not start until `16:15`. + * A scheduled start time will be delayed if the previous + * execution has not ended when its scheduled time occurs. + * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails, + * the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] + * times, with exponential backoff, until the next scheduled start + * time. + *+ * + *
string schedule = 20;
+ */
+ com.google.protobuf.ByteString getScheduleBytes();
+
+ /**
+ *
+ *
+ * + * Specifies the time zone to be used in interpreting + * [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time + * zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database). + * Note that some time zones include a provision for + * daylight savings time. The rules for daylight saving time are + * determined by the chosen tz. For UTC use the string "utc". If a + * time zone is not specified, the default will be in UTC (also known + * as GMT). + *+ * + *
string time_zone = 21;
+ */
+ java.lang.String getTimeZone();
+ /**
+ *
+ *
+ * + * Specifies the time zone to be used in interpreting + * [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time + * zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database). + * Note that some time zones include a provision for + * daylight savings time. The rules for daylight saving time are + * determined by the chosen tz. For UTC use the string "utc". If a + * time zone is not specified, the default will be in UTC (also known + * as GMT). + *+ * + *
string time_zone = 21;
+ */
+ com.google.protobuf.ByteString getTimeZoneBytes();
+
+ /**
+ *
+ *
+ * + * Output only. The creation time of the job. + *+ * + *
.google.protobuf.Timestamp user_update_time = 9;
+ */
+ boolean hasUserUpdateTime();
+ /**
+ *
+ *
+ * + * Output only. The creation time of the job. + *+ * + *
.google.protobuf.Timestamp user_update_time = 9;
+ */
+ com.google.protobuf.Timestamp getUserUpdateTime();
+ /**
+ *
+ *
+ * + * Output only. The creation time of the job. + *+ * + *
.google.protobuf.Timestamp user_update_time = 9;
+ */
+ com.google.protobuf.TimestampOrBuilder getUserUpdateTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * Output only. State of the job. + *+ * + *
.google.cloud.scheduler.v1.Job.State state = 10;
+ */
+ int getStateValue();
+ /**
+ *
+ *
+ * + * Output only. State of the job. + *+ * + *
.google.cloud.scheduler.v1.Job.State state = 10;
+ */
+ com.google.cloud.scheduler.v1.Job.State getState();
+
+ /**
+ *
+ *
+ * + * Output only. The response from the target for the last attempted execution. + *+ * + *
.google.rpc.Status status = 11;
+ */
+ boolean hasStatus();
+ /**
+ *
+ *
+ * + * Output only. The response from the target for the last attempted execution. + *+ * + *
.google.rpc.Status status = 11;
+ */
+ com.google.rpc.Status getStatus();
+ /**
+ *
+ *
+ * + * Output only. The response from the target for the last attempted execution. + *+ * + *
.google.rpc.Status status = 11;
+ */
+ com.google.rpc.StatusOrBuilder getStatusOrBuilder();
+
+ /**
+ *
+ *
+ * + * Output only. The next time the job is scheduled. Note that this may be a + * retry of a previously failed attempt or the next execution time + * according to the schedule. + *+ * + *
.google.protobuf.Timestamp schedule_time = 17;
+ */
+ boolean hasScheduleTime();
+ /**
+ *
+ *
+ * + * Output only. The next time the job is scheduled. Note that this may be a + * retry of a previously failed attempt or the next execution time + * according to the schedule. + *+ * + *
.google.protobuf.Timestamp schedule_time = 17;
+ */
+ com.google.protobuf.Timestamp getScheduleTime();
+ /**
+ *
+ *
+ * + * Output only. The next time the job is scheduled. Note that this may be a + * retry of a previously failed attempt or the next execution time + * according to the schedule. + *+ * + *
.google.protobuf.Timestamp schedule_time = 17;
+ */
+ com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * Output only. The time the last job attempt started. + *+ * + *
.google.protobuf.Timestamp last_attempt_time = 18;
+ */
+ boolean hasLastAttemptTime();
+ /**
+ *
+ *
+ * + * Output only. The time the last job attempt started. + *+ * + *
.google.protobuf.Timestamp last_attempt_time = 18;
+ */
+ com.google.protobuf.Timestamp getLastAttemptTime();
+ /**
+ *
+ *
+ * + * Output only. The time the last job attempt started. + *+ * + *
.google.protobuf.Timestamp last_attempt_time = 18;
+ */
+ com.google.protobuf.TimestampOrBuilder getLastAttemptTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1.RetryConfig retry_config = 19;
+ */
+ boolean hasRetryConfig();
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1.RetryConfig retry_config = 19;
+ */
+ com.google.cloud.scheduler.v1.RetryConfig getRetryConfig();
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1.RetryConfig retry_config = 19;
+ */
+ com.google.cloud.scheduler.v1.RetryConfigOrBuilder getRetryConfigOrBuilder();
+
+ public com.google.cloud.scheduler.v1.Job.TargetCase getTargetCase();
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobProto.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobProto.java
new file mode 100644
index 000000000000..606acd8f2d15
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobProto.java
@@ -0,0 +1,124 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1/job.proto
+
+package com.google.cloud.scheduler.v1;
+
+public final class JobProto {
+ private JobProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_scheduler_v1_Job_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_scheduler_v1_Job_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_scheduler_v1_RetryConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_scheduler_v1_RetryConfig_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n#google/cloud/scheduler/v1/job.proto\022\031g"
+ + "oogle.cloud.scheduler.v1\032\034google/api/ann"
+ + "otations.proto\032&google/cloud/scheduler/v"
+ + "1/target.proto\032\036google/protobuf/duration"
+ + ".proto\032\037google/protobuf/timestamp.proto\032"
+ + "\027google/rpc/status.proto\"\272\005\n\003Job\022\014\n\004name"
+ + "\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022@\n\rpubsub_ta"
+ + "rget\030\004 \001(\0132\'.google.cloud.scheduler.v1.P"
+ + "ubsubTargetH\000\022P\n\026app_engine_http_target\030"
+ + "\005 \001(\0132..google.cloud.scheduler.v1.AppEng"
+ + "ineHttpTargetH\000\022<\n\013http_target\030\006 \001(\0132%.g"
+ + "oogle.cloud.scheduler.v1.HttpTargetH\000\022\020\n"
+ + "\010schedule\030\024 \001(\t\022\021\n\ttime_zone\030\025 \001(\t\0224\n\020us"
+ + "er_update_time\030\t \001(\0132\032.google.protobuf.T"
+ + "imestamp\0223\n\005state\030\n \001(\0162$.google.cloud.s"
+ + "cheduler.v1.Job.State\022\"\n\006status\030\013 \001(\0132\022."
+ + "google.rpc.Status\0221\n\rschedule_time\030\021 \001(\013"
+ + "2\032.google.protobuf.Timestamp\0225\n\021last_att"
+ + "empt_time\030\022 \001(\0132\032.google.protobuf.Timest"
+ + "amp\022<\n\014retry_config\030\023 \001(\0132&.google.cloud"
+ + ".scheduler.v1.RetryConfig\"X\n\005State\022\025\n\021ST"
+ + "ATE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\n\n\006PAUSED"
+ + "\020\002\022\014\n\010DISABLED\020\003\022\021\n\rUPDATE_FAILED\020\004B\010\n\006t"
+ + "arget\"\342\001\n\013RetryConfig\022\023\n\013retry_count\030\001 \001"
+ + "(\005\0225\n\022max_retry_duration\030\002 \001(\0132\031.google."
+ + "protobuf.Duration\0227\n\024min_backoff_duratio"
+ + "n\030\003 \001(\0132\031.google.protobuf.Duration\0227\n\024ma"
+ + "x_backoff_duration\030\004 \001(\0132\031.google.protob"
+ + "uf.Duration\022\025\n\rmax_doublings\030\005 \001(\005Bo\n\035co"
+ + "m.google.cloud.scheduler.v1B\010JobProtoP\001Z"
+ + "Bgoogle.golang.org/genproto/googleapis/c"
+ + "loud/scheduler/v1;schedulerb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.cloud.scheduler.v1.TargetProto.getDescriptor(),
+ com.google.protobuf.DurationProto.getDescriptor(),
+ com.google.protobuf.TimestampProto.getDescriptor(),
+ com.google.rpc.StatusProto.getDescriptor(),
+ },
+ assigner);
+ internal_static_google_cloud_scheduler_v1_Job_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_scheduler_v1_Job_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_scheduler_v1_Job_descriptor,
+ new java.lang.String[] {
+ "Name",
+ "Description",
+ "PubsubTarget",
+ "AppEngineHttpTarget",
+ "HttpTarget",
+ "Schedule",
+ "TimeZone",
+ "UserUpdateTime",
+ "State",
+ "Status",
+ "ScheduleTime",
+ "LastAttemptTime",
+ "RetryConfig",
+ "Target",
+ });
+ internal_static_google_cloud_scheduler_v1_RetryConfig_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_scheduler_v1_RetryConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_scheduler_v1_RetryConfig_descriptor,
+ new java.lang.String[] {
+ "RetryCount",
+ "MaxRetryDuration",
+ "MinBackoffDuration",
+ "MaxBackoffDuration",
+ "MaxDoublings",
+ });
+ com.google.api.AnnotationsProto.getDescriptor();
+ com.google.cloud.scheduler.v1.TargetProto.getDescriptor();
+ com.google.protobuf.DurationProto.getDescriptor();
+ com.google.protobuf.TimestampProto.getDescriptor();
+ com.google.rpc.StatusProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequest.java
new file mode 100644
index 000000000000..490af953d652
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequest.java
@@ -0,0 +1,910 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1/cloudscheduler.proto
+
+package com.google.cloud.scheduler.v1;
+
+/**
+ *
+ *
+ * + * Request message for listing jobs using [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.ListJobsRequest} + */ +public final class ListJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.ListJobsRequest) + ListJobsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListJobsRequest.newBuilder() to construct. + private ListJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ListJobsRequest() { + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListJobsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 40: + { + pageSize_ = input.readInt32(); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_ListJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_ListJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.ListJobsRequest.class, + com.google.cloud.scheduler.v1.ListJobsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+ * Required. + * The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PAGE_SIZE_FIELD_NUMBER = 5;
+ private int pageSize_;
+ /**
+ *
+ *
+ * + * Requested page size. + * The maximum page size is 500. If unspecified, the page size will + * be the maximum. Fewer jobs than requested might be returned, + * even if more jobs exist; use next_page_token to determine if more + * jobs exist. + *+ * + *
int32 page_size = 5;
+ */
+ public int getPageSize() {
+ return pageSize_;
+ }
+
+ public static final int PAGE_TOKEN_FIELD_NUMBER = 6;
+ private volatile java.lang.Object pageToken_;
+ /**
+ *
+ *
+ * + * A token identifying a page of results the server will return. To + * request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from + * the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to + * switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or + * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages. + *+ * + *
string page_token = 6;
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A token identifying a page of results the server will return. To + * request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from + * the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to + * switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or + * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages. + *+ * + *
string page_token = 6;
+ */
+ public com.google.protobuf.ByteString getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (pageSize_ != 0) {
+ output.writeInt32(5, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (pageSize_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.scheduler.v1.ListJobsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1.ListJobsRequest other =
+ (com.google.cloud.scheduler.v1.ListJobsRequest) obj;
+
+ boolean result = true;
+ result = result && getParent().equals(other.getParent());
+ result = result && (getPageSize() == other.getPageSize());
+ result = result && getPageToken().equals(other.getPageToken());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getPageSize();
+ hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.scheduler.v1.ListJobsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for listing jobs using [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.ListJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. + * The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. + *+ * + *
string parent = 1;
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. + *+ * + *
string parent = 1;
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. + *+ * + *
string parent = 1;
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int pageSize_;
+ /**
+ *
+ *
+ * + * Requested page size. + * The maximum page size is 500. If unspecified, the page size will + * be the maximum. Fewer jobs than requested might be returned, + * even if more jobs exist; use next_page_token to determine if more + * jobs exist. + *+ * + *
int32 page_size = 5;
+ */
+ public int getPageSize() {
+ return pageSize_;
+ }
+ /**
+ *
+ *
+ * + * Requested page size. + * The maximum page size is 500. If unspecified, the page size will + * be the maximum. Fewer jobs than requested might be returned, + * even if more jobs exist; use next_page_token to determine if more + * jobs exist. + *+ * + *
int32 page_size = 5;
+ */
+ public Builder setPageSize(int value) {
+
+ pageSize_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Requested page size. + * The maximum page size is 500. If unspecified, the page size will + * be the maximum. Fewer jobs than requested might be returned, + * even if more jobs exist; use next_page_token to determine if more + * jobs exist. + *+ * + *
int32 page_size = 5;
+ */
+ public Builder clearPageSize() {
+
+ pageSize_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object pageToken_ = "";
+ /**
+ *
+ *
+ * + * A token identifying a page of results the server will return. To + * request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from + * the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to + * switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or + * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages. + *+ * + *
string page_token = 6;
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A token identifying a page of results the server will return. To + * request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from + * the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to + * switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or + * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages. + *+ * + *
string page_token = 6;
+ */
+ public com.google.protobuf.ByteString getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A token identifying a page of results the server will return. To + * request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from + * the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to + * switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or + * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages. + *+ * + *
string page_token = 6;
+ */
+ public Builder setPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A token identifying a page of results the server will return. To + * request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from + * the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to + * switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or + * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages. + *+ * + *
string page_token = 6;
+ */
+ public Builder clearPageToken() {
+
+ pageToken_ = getDefaultInstance().getPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A token identifying a page of results the server will return. To + * request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from + * the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to + * switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or + * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages. + *+ * + *
string page_token = 6;
+ */
+ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.ListJobsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.ListJobsRequest)
+ private static final com.google.cloud.scheduler.v1.ListJobsRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.ListJobsRequest();
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. + * The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. + *+ * + *
string parent = 1;
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * Required. + * The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. + *+ * + *
string parent = 1;
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Requested page size. + * The maximum page size is 500. If unspecified, the page size will + * be the maximum. Fewer jobs than requested might be returned, + * even if more jobs exist; use next_page_token to determine if more + * jobs exist. + *+ * + *
int32 page_size = 5;
+ */
+ int getPageSize();
+
+ /**
+ *
+ *
+ * + * A token identifying a page of results the server will return. To + * request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from + * the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to + * switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or + * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages. + *+ * + *
string page_token = 6;
+ */
+ java.lang.String getPageToken();
+ /**
+ *
+ *
+ * + * A token identifying a page of results the server will return. To + * request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from + * the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to + * switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or + * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages. + *+ * + *
string page_token = 6;
+ */
+ com.google.protobuf.ByteString getPageTokenBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsResponse.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsResponse.java
new file mode 100644
index 000000000000..52a15f39861e
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsResponse.java
@@ -0,0 +1,1120 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1/cloudscheduler.proto
+
+package com.google.cloud.scheduler.v1;
+
+/**
+ *
+ *
+ * + * Response message for listing jobs using [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.ListJobsResponse} + */ +public final class ListJobsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.ListJobsResponse) + ListJobsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListJobsResponse.newBuilder() to construct. + private ListJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ListJobsResponse() { + jobs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListJobsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + jobs_ = new java.util.ArrayList
+ * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public java.util.List+ * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public java.util.List extends com.google.cloud.scheduler.v1.JobOrBuilder>
+ getJobsOrBuilderList() {
+ return jobs_;
+ }
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public int getJobsCount() {
+ return jobs_.size();
+ }
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public com.google.cloud.scheduler.v1.Job getJobs(int index) {
+ return jobs_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public com.google.cloud.scheduler.v1.JobOrBuilder getJobsOrBuilder(int index) {
+ return jobs_.get(index);
+ }
+
+ public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+ private volatile java.lang.Object nextPageToken_;
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. Pass this value in the + * [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to + * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results. + * If this is empty it indicates that there are no more results + * through which to paginate. + * The page token is valid for only 2 hours. + *+ * + *
string next_page_token = 2;
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. Pass this value in the + * [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to + * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results. + * If this is empty it indicates that there are no more results + * through which to paginate. + * The page token is valid for only 2 hours. + *+ * + *
string next_page_token = 2;
+ */
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < jobs_.size(); i++) {
+ output.writeMessage(1, jobs_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < jobs_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, jobs_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.scheduler.v1.ListJobsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1.ListJobsResponse other =
+ (com.google.cloud.scheduler.v1.ListJobsResponse) obj;
+
+ boolean result = true;
+ result = result && getJobsList().equals(other.getJobsList());
+ result = result && getNextPageToken().equals(other.getNextPageToken());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getJobsCount() > 0) {
+ hash = (37 * hash) + JOBS_FIELD_NUMBER;
+ hash = (53 * hash) + getJobsList().hashCode();
+ }
+ hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getNextPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsResponse parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsResponse parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsResponse parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.scheduler.v1.ListJobsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Response message for listing jobs using [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.ListJobsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public java.util.List+ * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public int getJobsCount() {
+ if (jobsBuilder_ == null) {
+ return jobs_.size();
+ } else {
+ return jobsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public com.google.cloud.scheduler.v1.Job getJobs(int index) {
+ if (jobsBuilder_ == null) {
+ return jobs_.get(index);
+ } else {
+ return jobsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public Builder setJobs(int index, com.google.cloud.scheduler.v1.Job value) {
+ if (jobsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureJobsIsMutable();
+ jobs_.set(index, value);
+ onChanged();
+ } else {
+ jobsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public Builder setJobs(int index, com.google.cloud.scheduler.v1.Job.Builder builderForValue) {
+ if (jobsBuilder_ == null) {
+ ensureJobsIsMutable();
+ jobs_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ jobsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public Builder addJobs(com.google.cloud.scheduler.v1.Job value) {
+ if (jobsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureJobsIsMutable();
+ jobs_.add(value);
+ onChanged();
+ } else {
+ jobsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public Builder addJobs(int index, com.google.cloud.scheduler.v1.Job value) {
+ if (jobsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureJobsIsMutable();
+ jobs_.add(index, value);
+ onChanged();
+ } else {
+ jobsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public Builder addJobs(com.google.cloud.scheduler.v1.Job.Builder builderForValue) {
+ if (jobsBuilder_ == null) {
+ ensureJobsIsMutable();
+ jobs_.add(builderForValue.build());
+ onChanged();
+ } else {
+ jobsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public Builder addJobs(int index, com.google.cloud.scheduler.v1.Job.Builder builderForValue) {
+ if (jobsBuilder_ == null) {
+ ensureJobsIsMutable();
+ jobs_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ jobsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public Builder addAllJobs(
+ java.lang.Iterable extends com.google.cloud.scheduler.v1.Job> values) {
+ if (jobsBuilder_ == null) {
+ ensureJobsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobs_);
+ onChanged();
+ } else {
+ jobsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public Builder clearJobs() {
+ if (jobsBuilder_ == null) {
+ jobs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ jobsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public Builder removeJobs(int index) {
+ if (jobsBuilder_ == null) {
+ ensureJobsIsMutable();
+ jobs_.remove(index);
+ onChanged();
+ } else {
+ jobsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public com.google.cloud.scheduler.v1.Job.Builder getJobsBuilder(int index) {
+ return getJobsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public com.google.cloud.scheduler.v1.JobOrBuilder getJobsOrBuilder(int index) {
+ if (jobsBuilder_ == null) {
+ return jobs_.get(index);
+ } else {
+ return jobsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public java.util.List extends com.google.cloud.scheduler.v1.JobOrBuilder>
+ getJobsOrBuilderList() {
+ if (jobsBuilder_ != null) {
+ return jobsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(jobs_);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public com.google.cloud.scheduler.v1.Job.Builder addJobsBuilder() {
+ return getJobsFieldBuilder()
+ .addBuilder(com.google.cloud.scheduler.v1.Job.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public com.google.cloud.scheduler.v1.Job.Builder addJobsBuilder(int index) {
+ return getJobsFieldBuilder()
+ .addBuilder(index, com.google.cloud.scheduler.v1.Job.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ public java.util.List+ * A token to retrieve next page of results. Pass this value in the + * [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to + * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results. + * If this is empty it indicates that there are no more results + * through which to paginate. + * The page token is valid for only 2 hours. + *+ * + *
string next_page_token = 2;
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. Pass this value in the + * [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to + * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results. + * If this is empty it indicates that there are no more results + * through which to paginate. + * The page token is valid for only 2 hours. + *+ * + *
string next_page_token = 2;
+ */
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. Pass this value in the + * [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to + * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results. + * If this is empty it indicates that there are no more results + * through which to paginate. + * The page token is valid for only 2 hours. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder setNextPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. Pass this value in the + * [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to + * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results. + * If this is empty it indicates that there are no more results + * through which to paginate. + * The page token is valid for only 2 hours. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder clearNextPageToken() {
+
+ nextPageToken_ = getDefaultInstance().getNextPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. Pass this value in the + * [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to + * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results. + * If this is empty it indicates that there are no more results + * through which to paginate. + * The page token is valid for only 2 hours. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.ListJobsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.ListJobsResponse)
+ private static final com.google.cloud.scheduler.v1.ListJobsResponse DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.ListJobsResponse();
+ }
+
+ public static com.google.cloud.scheduler.v1.ListJobsResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ java.util.List+ * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ com.google.cloud.scheduler.v1.Job getJobs(int index);
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ int getJobsCount();
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ java.util.List extends com.google.cloud.scheduler.v1.JobOrBuilder> getJobsOrBuilderList();
+ /**
+ *
+ *
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1.Job jobs = 1;
+ */
+ com.google.cloud.scheduler.v1.JobOrBuilder getJobsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. Pass this value in the + * [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to + * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results. + * If this is empty it indicates that there are no more results + * through which to paginate. + * The page token is valid for only 2 hours. + *+ * + *
string next_page_token = 2;
+ */
+ java.lang.String getNextPageToken();
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. Pass this value in the + * [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to + * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results. + * If this is empty it indicates that there are no more results + * through which to paginate. + * The page token is valid for only 2 hours. + *+ * + *
string next_page_token = 2;
+ */
+ com.google.protobuf.ByteString getNextPageTokenBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/LocationName.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/LocationName.java
new file mode 100644
index 000000000000..1f04f76f47d6
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/LocationName.java
@@ -0,0 +1,180 @@
+/*
+ * Copyright 2018 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ * or implied. See the License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+package com.google.cloud.scheduler.v1;
+
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+@javax.annotation.Generated("by GAPIC protoc plugin")
+public class LocationName implements ResourceName {
+
+ private static final PathTemplate PATH_TEMPLATE =
+ PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}");
+
+ private volatile Map+ * Request message for [PauseJob][google.cloud.scheduler.v1.CloudScheduler.PauseJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.PauseJobRequest} + */ +public final class PauseJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.PauseJobRequest) + PauseJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PauseJobRequest.newBuilder() to construct. + private PauseJobRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private PauseJobRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PauseJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_PauseJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_PauseJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.PauseJobRequest.class, + com.google.cloud.scheduler.v1.PauseJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.scheduler.v1.PauseJobRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1.PauseJobRequest other =
+ (com.google.cloud.scheduler.v1.PauseJobRequest) obj;
+
+ boolean result = true;
+ result = result && getName().equals(other.getName());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.scheduler.v1.PauseJobRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.PauseJobRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.PauseJobRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.PauseJobRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.PauseJobRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.PauseJobRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.PauseJobRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.PauseJobRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.PauseJobRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.PauseJobRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.PauseJobRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.PauseJobRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.scheduler.v1.PauseJobRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for [PauseJob][google.cloud.scheduler.v1.CloudScheduler.PauseJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.PauseJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.PauseJobRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.PauseJobRequest)
+ private static final com.google.cloud.scheduler.v1.PauseJobRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.PauseJobRequest();
+ }
+
+ public static com.google.cloud.scheduler.v1.PauseJobRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ProjectName.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ProjectName.java
new file mode 100644
index 000000000000..c635356575d6
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ProjectName.java
@@ -0,0 +1,160 @@
+/*
+ * Copyright 2018 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ * or implied. See the License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+package com.google.cloud.scheduler.v1;
+
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+@javax.annotation.Generated("by GAPIC protoc plugin")
+public class ProjectName implements ResourceName {
+
+ private static final PathTemplate PATH_TEMPLATE =
+ PathTemplate.createWithoutUrlEncoding("projects/{project}");
+
+ private volatile Map+ * Pub/Sub target. The job will be delivered by publishing a message to + * the given Pub/Sub topic. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.PubsubTarget} + */ +public final class PubsubTarget extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.PubsubTarget) + PubsubTargetOrBuilder { + private static final long serialVersionUID = 0L; + // Use PubsubTarget.newBuilder() to construct. + private PubsubTarget(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private PubsubTarget() { + topicName_ = ""; + data_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PubsubTarget( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + topicName_ = s; + break; + } + case 26: + { + data_ = input.readBytes(); + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + attributes_ = + com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry
+ * Required. + * The name of the Cloud Pub/Sub topic to which messages will + * be published when a job is delivered. The topic name must be in the + * same format as required by PubSub's + * [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest), + * for example `projects/PROJECT_ID/topics/TOPIC_ID`. + * The topic must be in the same project as the Cloud Scheduler job. + *+ * + *
string topic_name = 1;
+ */
+ public java.lang.String getTopicName() {
+ java.lang.Object ref = topicName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ topicName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The name of the Cloud Pub/Sub topic to which messages will + * be published when a job is delivered. The topic name must be in the + * same format as required by PubSub's + * [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest), + * for example `projects/PROJECT_ID/topics/TOPIC_ID`. + * The topic must be in the same project as the Cloud Scheduler job. + *+ * + *
string topic_name = 1;
+ */
+ public com.google.protobuf.ByteString getTopicNameBytes() {
+ java.lang.Object ref = topicName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ topicName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DATA_FIELD_NUMBER = 3;
+ private com.google.protobuf.ByteString data_;
+ /**
+ *
+ *
+ * + * The message payload for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
bytes data = 3;
+ */
+ public com.google.protobuf.ByteString getData() {
+ return data_;
+ }
+
+ public static final int ATTRIBUTES_FIELD_NUMBER = 4;
+
+ private static final class AttributesDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry+ * Attributes for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
map<string, string> attributes = 4;
+ */
+ public boolean containsAttributes(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetAttributes().getMap().containsKey(key);
+ }
+ /** Use {@link #getAttributesMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * Attributes for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
map<string, string> attributes = 4;
+ */
+ public java.util.Map+ * Attributes for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
map<string, string> attributes = 4;
+ */
+ public java.lang.String getAttributesOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * Attributes for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
map<string, string> attributes = 4;
+ */
+ public java.lang.String getAttributesOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * Pub/Sub target. The job will be delivered by publishing a message to + * the given Pub/Sub topic. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.PubsubTarget} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. + * The name of the Cloud Pub/Sub topic to which messages will + * be published when a job is delivered. The topic name must be in the + * same format as required by PubSub's + * [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest), + * for example `projects/PROJECT_ID/topics/TOPIC_ID`. + * The topic must be in the same project as the Cloud Scheduler job. + *+ * + *
string topic_name = 1;
+ */
+ public java.lang.String getTopicName() {
+ java.lang.Object ref = topicName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ topicName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The name of the Cloud Pub/Sub topic to which messages will + * be published when a job is delivered. The topic name must be in the + * same format as required by PubSub's + * [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest), + * for example `projects/PROJECT_ID/topics/TOPIC_ID`. + * The topic must be in the same project as the Cloud Scheduler job. + *+ * + *
string topic_name = 1;
+ */
+ public com.google.protobuf.ByteString getTopicNameBytes() {
+ java.lang.Object ref = topicName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ topicName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The name of the Cloud Pub/Sub topic to which messages will + * be published when a job is delivered. The topic name must be in the + * same format as required by PubSub's + * [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest), + * for example `projects/PROJECT_ID/topics/TOPIC_ID`. + * The topic must be in the same project as the Cloud Scheduler job. + *+ * + *
string topic_name = 1;
+ */
+ public Builder setTopicName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ topicName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The name of the Cloud Pub/Sub topic to which messages will + * be published when a job is delivered. The topic name must be in the + * same format as required by PubSub's + * [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest), + * for example `projects/PROJECT_ID/topics/TOPIC_ID`. + * The topic must be in the same project as the Cloud Scheduler job. + *+ * + *
string topic_name = 1;
+ */
+ public Builder clearTopicName() {
+
+ topicName_ = getDefaultInstance().getTopicName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The name of the Cloud Pub/Sub topic to which messages will + * be published when a job is delivered. The topic name must be in the + * same format as required by PubSub's + * [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest), + * for example `projects/PROJECT_ID/topics/TOPIC_ID`. + * The topic must be in the same project as the Cloud Scheduler job. + *+ * + *
string topic_name = 1;
+ */
+ public Builder setTopicNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ topicName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ *
+ *
+ * + * The message payload for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
bytes data = 3;
+ */
+ public com.google.protobuf.ByteString getData() {
+ return data_;
+ }
+ /**
+ *
+ *
+ * + * The message payload for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
bytes data = 3;
+ */
+ public Builder setData(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ data_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The message payload for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
bytes data = 3;
+ */
+ public Builder clearData() {
+
+ data_ = getDefaultInstance().getData();
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField+ * Attributes for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
map<string, string> attributes = 4;
+ */
+ public boolean containsAttributes(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetAttributes().getMap().containsKey(key);
+ }
+ /** Use {@link #getAttributesMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * Attributes for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
map<string, string> attributes = 4;
+ */
+ public java.util.Map+ * Attributes for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
map<string, string> attributes = 4;
+ */
+ public java.lang.String getAttributesOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * Attributes for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
map<string, string> attributes = 4;
+ */
+ public java.lang.String getAttributesOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * Attributes for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
map<string, string> attributes = 4;
+ */
+ public Builder removeAttributes(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableAttributes().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * Attributes for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
map<string, string> attributes = 4;
+ */
+ public Builder putAttributes(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableAttributes().getMutableMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Attributes for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
map<string, string> attributes = 4;
+ */
+ public Builder putAllAttributes(java.util.Map+ * Required. + * The name of the Cloud Pub/Sub topic to which messages will + * be published when a job is delivered. The topic name must be in the + * same format as required by PubSub's + * [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest), + * for example `projects/PROJECT_ID/topics/TOPIC_ID`. + * The topic must be in the same project as the Cloud Scheduler job. + *+ * + *
string topic_name = 1;
+ */
+ java.lang.String getTopicName();
+ /**
+ *
+ *
+ * + * Required. + * The name of the Cloud Pub/Sub topic to which messages will + * be published when a job is delivered. The topic name must be in the + * same format as required by PubSub's + * [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest), + * for example `projects/PROJECT_ID/topics/TOPIC_ID`. + * The topic must be in the same project as the Cloud Scheduler job. + *+ * + *
string topic_name = 1;
+ */
+ com.google.protobuf.ByteString getTopicNameBytes();
+
+ /**
+ *
+ *
+ * + * The message payload for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
bytes data = 3;
+ */
+ com.google.protobuf.ByteString getData();
+
+ /**
+ *
+ *
+ * + * Attributes for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
map<string, string> attributes = 4;
+ */
+ int getAttributesCount();
+ /**
+ *
+ *
+ * + * Attributes for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
map<string, string> attributes = 4;
+ */
+ boolean containsAttributes(java.lang.String key);
+ /** Use {@link #getAttributesMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map+ * Attributes for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
map<string, string> attributes = 4;
+ */
+ java.util.Map+ * Attributes for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
map<string, string> attributes = 4;
+ */
+ java.lang.String getAttributesOrDefault(java.lang.String key, java.lang.String defaultValue);
+ /**
+ *
+ *
+ * + * Attributes for PubsubMessage. + * Pubsub message must contain either non-empty data, or at least one + * attribute. + *+ * + *
map<string, string> attributes = 4;
+ */
+ java.lang.String getAttributesOrThrow(java.lang.String key);
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ResumeJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ResumeJobRequest.java
new file mode 100644
index 000000000000..c131762d15bc
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ResumeJobRequest.java
@@ -0,0 +1,611 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1/cloudscheduler.proto
+
+package com.google.cloud.scheduler.v1;
+
+/**
+ *
+ *
+ * + * Request message for [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.ResumeJobRequest} + */ +public final class ResumeJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.ResumeJobRequest) + ResumeJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResumeJobRequest.newBuilder() to construct. + private ResumeJobRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ResumeJobRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ResumeJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_ResumeJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_ResumeJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.ResumeJobRequest.class, + com.google.cloud.scheduler.v1.ResumeJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.scheduler.v1.ResumeJobRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1.ResumeJobRequest other =
+ (com.google.cloud.scheduler.v1.ResumeJobRequest) obj;
+
+ boolean result = true;
+ result = result && getName().equals(other.getName());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.scheduler.v1.ResumeJobRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.ResumeJobRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.ResumeJobRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.ResumeJobRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.ResumeJobRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.ResumeJobRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.ResumeJobRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.ResumeJobRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.ResumeJobRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.ResumeJobRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.ResumeJobRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.ResumeJobRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.scheduler.v1.ResumeJobRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.ResumeJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.ResumeJobRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.ResumeJobRequest)
+ private static final com.google.cloud.scheduler.v1.ResumeJobRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.ResumeJobRequest();
+ }
+
+ public static com.google.cloud.scheduler.v1.ResumeJobRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RetryConfig.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RetryConfig.java
new file mode 100644
index 000000000000..ed333b0c224c
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RetryConfig.java
@@ -0,0 +1,1609 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1/job.proto
+
+package com.google.cloud.scheduler.v1;
+
+/**
+ *
+ *
+ * + * Settings that determine the retry behavior. + * By default, if a job does not complete successfully (meaning that + * an acknowledgement is not received from the handler, then it will be retried + * with exponential backoff according to the settings in [RetryConfig][google.cloud.scheduler.v1.RetryConfig]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.RetryConfig} + */ +public final class RetryConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.RetryConfig) + RetryConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RetryConfig.newBuilder() to construct. + private RetryConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private RetryConfig() { + retryCount_ = 0; + maxDoublings_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RetryConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + retryCount_ = input.readInt32(); + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (maxRetryDuration_ != null) { + subBuilder = maxRetryDuration_.toBuilder(); + } + maxRetryDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxRetryDuration_); + maxRetryDuration_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (minBackoffDuration_ != null) { + subBuilder = minBackoffDuration_.toBuilder(); + } + minBackoffDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minBackoffDuration_); + minBackoffDuration_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (maxBackoffDuration_ != null) { + subBuilder = maxBackoffDuration_.toBuilder(); + } + maxBackoffDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxBackoffDuration_); + maxBackoffDuration_ = subBuilder.buildPartial(); + } + + break; + } + case 40: + { + maxDoublings_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.JobProto + .internal_static_google_cloud_scheduler_v1_RetryConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.JobProto + .internal_static_google_cloud_scheduler_v1_RetryConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.RetryConfig.class, + com.google.cloud.scheduler.v1.RetryConfig.Builder.class); + } + + public static final int RETRY_COUNT_FIELD_NUMBER = 1; + private int retryCount_; + /** + * + * + *
+ * The number of attempts that the system will make to run a job using the + * exponential backoff procedure described by + * [max_doublings][google.cloud.scheduler.v1.RetryConfig.max_doublings]. + * The default value of retry_count is zero. + * If retry_count is zero, a job attempt will *not* be retried if + * it fails. Instead the Cloud Scheduler system will wait for the + * next scheduled execution time. + * If retry_count is set to a non-zero number then Cloud Scheduler + * will retry failed attempts, using exponential backoff, + * retry_count times, or until the next scheduled execution time, + * whichever comes first. + * Values greater than 5 and negative values are not allowed. + *+ * + *
int32 retry_count = 1;
+ */
+ public int getRetryCount() {
+ return retryCount_;
+ }
+
+ public static final int MAX_RETRY_DURATION_FIELD_NUMBER = 2;
+ private com.google.protobuf.Duration maxRetryDuration_;
+ /**
+ *
+ *
+ * + * The time limit for retrying a failed job, measured from time when an + * execution was first attempted. If specified with + * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both + * limits are reached. + * The default value for max_retry_duration is zero, which means retry + * duration is unlimited. + *+ * + *
.google.protobuf.Duration max_retry_duration = 2;
+ */
+ public boolean hasMaxRetryDuration() {
+ return maxRetryDuration_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time limit for retrying a failed job, measured from time when an + * execution was first attempted. If specified with + * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both + * limits are reached. + * The default value for max_retry_duration is zero, which means retry + * duration is unlimited. + *+ * + *
.google.protobuf.Duration max_retry_duration = 2;
+ */
+ public com.google.protobuf.Duration getMaxRetryDuration() {
+ return maxRetryDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : maxRetryDuration_;
+ }
+ /**
+ *
+ *
+ * + * The time limit for retrying a failed job, measured from time when an + * execution was first attempted. If specified with + * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both + * limits are reached. + * The default value for max_retry_duration is zero, which means retry + * duration is unlimited. + *+ * + *
.google.protobuf.Duration max_retry_duration = 2;
+ */
+ public com.google.protobuf.DurationOrBuilder getMaxRetryDurationOrBuilder() {
+ return getMaxRetryDuration();
+ }
+
+ public static final int MIN_BACKOFF_DURATION_FIELD_NUMBER = 3;
+ private com.google.protobuf.Duration minBackoffDuration_;
+ /**
+ *
+ *
+ * + * The minimum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 5 seconds. + *+ * + *
.google.protobuf.Duration min_backoff_duration = 3;
+ */
+ public boolean hasMinBackoffDuration() {
+ return minBackoffDuration_ != null;
+ }
+ /**
+ *
+ *
+ * + * The minimum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 5 seconds. + *+ * + *
.google.protobuf.Duration min_backoff_duration = 3;
+ */
+ public com.google.protobuf.Duration getMinBackoffDuration() {
+ return minBackoffDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : minBackoffDuration_;
+ }
+ /**
+ *
+ *
+ * + * The minimum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 5 seconds. + *+ * + *
.google.protobuf.Duration min_backoff_duration = 3;
+ */
+ public com.google.protobuf.DurationOrBuilder getMinBackoffDurationOrBuilder() {
+ return getMinBackoffDuration();
+ }
+
+ public static final int MAX_BACKOFF_DURATION_FIELD_NUMBER = 4;
+ private com.google.protobuf.Duration maxBackoffDuration_;
+ /**
+ *
+ *
+ * + * The maximum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 1 hour. + *+ * + *
.google.protobuf.Duration max_backoff_duration = 4;
+ */
+ public boolean hasMaxBackoffDuration() {
+ return maxBackoffDuration_ != null;
+ }
+ /**
+ *
+ *
+ * + * The maximum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 1 hour. + *+ * + *
.google.protobuf.Duration max_backoff_duration = 4;
+ */
+ public com.google.protobuf.Duration getMaxBackoffDuration() {
+ return maxBackoffDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : maxBackoffDuration_;
+ }
+ /**
+ *
+ *
+ * + * The maximum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 1 hour. + *+ * + *
.google.protobuf.Duration max_backoff_duration = 4;
+ */
+ public com.google.protobuf.DurationOrBuilder getMaxBackoffDurationOrBuilder() {
+ return getMaxBackoffDuration();
+ }
+
+ public static final int MAX_DOUBLINGS_FIELD_NUMBER = 5;
+ private int maxDoublings_;
+ /**
+ *
+ *
+ * + * The time between retries will double `max_doublings` times. + * A job's retry interval starts at + * [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration], then doubles + * `max_doublings` times, then increases linearly, and finally + * retries retries at intervals of + * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] up to + * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times. + * For example, if [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration] is + * 10s, [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] is 300s, and + * `max_doublings` is 3, then the a job will first be retried in 10s. The + * retry interval will double three times, and then increase linearly by + * 2^3 * 10s. Finally, the job will retry at intervals of + * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] until the job has + * been attempted [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times. Thus, the + * requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, .... + * The default value of this field is 5. + *+ * + *
int32 max_doublings = 5;
+ */
+ public int getMaxDoublings() {
+ return maxDoublings_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (retryCount_ != 0) {
+ output.writeInt32(1, retryCount_);
+ }
+ if (maxRetryDuration_ != null) {
+ output.writeMessage(2, getMaxRetryDuration());
+ }
+ if (minBackoffDuration_ != null) {
+ output.writeMessage(3, getMinBackoffDuration());
+ }
+ if (maxBackoffDuration_ != null) {
+ output.writeMessage(4, getMaxBackoffDuration());
+ }
+ if (maxDoublings_ != 0) {
+ output.writeInt32(5, maxDoublings_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (retryCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, retryCount_);
+ }
+ if (maxRetryDuration_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxRetryDuration());
+ }
+ if (minBackoffDuration_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMinBackoffDuration());
+ }
+ if (maxBackoffDuration_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMaxBackoffDuration());
+ }
+ if (maxDoublings_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxDoublings_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.scheduler.v1.RetryConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1.RetryConfig other =
+ (com.google.cloud.scheduler.v1.RetryConfig) obj;
+
+ boolean result = true;
+ result = result && (getRetryCount() == other.getRetryCount());
+ result = result && (hasMaxRetryDuration() == other.hasMaxRetryDuration());
+ if (hasMaxRetryDuration()) {
+ result = result && getMaxRetryDuration().equals(other.getMaxRetryDuration());
+ }
+ result = result && (hasMinBackoffDuration() == other.hasMinBackoffDuration());
+ if (hasMinBackoffDuration()) {
+ result = result && getMinBackoffDuration().equals(other.getMinBackoffDuration());
+ }
+ result = result && (hasMaxBackoffDuration() == other.hasMaxBackoffDuration());
+ if (hasMaxBackoffDuration()) {
+ result = result && getMaxBackoffDuration().equals(other.getMaxBackoffDuration());
+ }
+ result = result && (getMaxDoublings() == other.getMaxDoublings());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RETRY_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getRetryCount();
+ if (hasMaxRetryDuration()) {
+ hash = (37 * hash) + MAX_RETRY_DURATION_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxRetryDuration().hashCode();
+ }
+ if (hasMinBackoffDuration()) {
+ hash = (37 * hash) + MIN_BACKOFF_DURATION_FIELD_NUMBER;
+ hash = (53 * hash) + getMinBackoffDuration().hashCode();
+ }
+ if (hasMaxBackoffDuration()) {
+ hash = (37 * hash) + MAX_BACKOFF_DURATION_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxBackoffDuration().hashCode();
+ }
+ hash = (37 * hash) + MAX_DOUBLINGS_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxDoublings();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.scheduler.v1.RetryConfig parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.RetryConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.RetryConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.RetryConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.RetryConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.RetryConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.RetryConfig parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.RetryConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.RetryConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.RetryConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.RetryConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.RetryConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.scheduler.v1.RetryConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + * By default, if a job does not complete successfully (meaning that + * an acknowledgement is not received from the handler, then it will be retried + * with exponential backoff according to the settings in [RetryConfig][google.cloud.scheduler.v1.RetryConfig]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.RetryConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The number of attempts that the system will make to run a job using the + * exponential backoff procedure described by + * [max_doublings][google.cloud.scheduler.v1.RetryConfig.max_doublings]. + * The default value of retry_count is zero. + * If retry_count is zero, a job attempt will *not* be retried if + * it fails. Instead the Cloud Scheduler system will wait for the + * next scheduled execution time. + * If retry_count is set to a non-zero number then Cloud Scheduler + * will retry failed attempts, using exponential backoff, + * retry_count times, or until the next scheduled execution time, + * whichever comes first. + * Values greater than 5 and negative values are not allowed. + *+ * + *
int32 retry_count = 1;
+ */
+ public int getRetryCount() {
+ return retryCount_;
+ }
+ /**
+ *
+ *
+ * + * The number of attempts that the system will make to run a job using the + * exponential backoff procedure described by + * [max_doublings][google.cloud.scheduler.v1.RetryConfig.max_doublings]. + * The default value of retry_count is zero. + * If retry_count is zero, a job attempt will *not* be retried if + * it fails. Instead the Cloud Scheduler system will wait for the + * next scheduled execution time. + * If retry_count is set to a non-zero number then Cloud Scheduler + * will retry failed attempts, using exponential backoff, + * retry_count times, or until the next scheduled execution time, + * whichever comes first. + * Values greater than 5 and negative values are not allowed. + *+ * + *
int32 retry_count = 1;
+ */
+ public Builder setRetryCount(int value) {
+
+ retryCount_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The number of attempts that the system will make to run a job using the + * exponential backoff procedure described by + * [max_doublings][google.cloud.scheduler.v1.RetryConfig.max_doublings]. + * The default value of retry_count is zero. + * If retry_count is zero, a job attempt will *not* be retried if + * it fails. Instead the Cloud Scheduler system will wait for the + * next scheduled execution time. + * If retry_count is set to a non-zero number then Cloud Scheduler + * will retry failed attempts, using exponential backoff, + * retry_count times, or until the next scheduled execution time, + * whichever comes first. + * Values greater than 5 and negative values are not allowed. + *+ * + *
int32 retry_count = 1;
+ */
+ public Builder clearRetryCount() {
+
+ retryCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Duration maxRetryDuration_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ maxRetryDurationBuilder_;
+ /**
+ *
+ *
+ * + * The time limit for retrying a failed job, measured from time when an + * execution was first attempted. If specified with + * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both + * limits are reached. + * The default value for max_retry_duration is zero, which means retry + * duration is unlimited. + *+ * + *
.google.protobuf.Duration max_retry_duration = 2;
+ */
+ public boolean hasMaxRetryDuration() {
+ return maxRetryDurationBuilder_ != null || maxRetryDuration_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time limit for retrying a failed job, measured from time when an + * execution was first attempted. If specified with + * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both + * limits are reached. + * The default value for max_retry_duration is zero, which means retry + * duration is unlimited. + *+ * + *
.google.protobuf.Duration max_retry_duration = 2;
+ */
+ public com.google.protobuf.Duration getMaxRetryDuration() {
+ if (maxRetryDurationBuilder_ == null) {
+ return maxRetryDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : maxRetryDuration_;
+ } else {
+ return maxRetryDurationBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The time limit for retrying a failed job, measured from time when an + * execution was first attempted. If specified with + * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both + * limits are reached. + * The default value for max_retry_duration is zero, which means retry + * duration is unlimited. + *+ * + *
.google.protobuf.Duration max_retry_duration = 2;
+ */
+ public Builder setMaxRetryDuration(com.google.protobuf.Duration value) {
+ if (maxRetryDurationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ maxRetryDuration_ = value;
+ onChanged();
+ } else {
+ maxRetryDurationBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time limit for retrying a failed job, measured from time when an + * execution was first attempted. If specified with + * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both + * limits are reached. + * The default value for max_retry_duration is zero, which means retry + * duration is unlimited. + *+ * + *
.google.protobuf.Duration max_retry_duration = 2;
+ */
+ public Builder setMaxRetryDuration(com.google.protobuf.Duration.Builder builderForValue) {
+ if (maxRetryDurationBuilder_ == null) {
+ maxRetryDuration_ = builderForValue.build();
+ onChanged();
+ } else {
+ maxRetryDurationBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time limit for retrying a failed job, measured from time when an + * execution was first attempted. If specified with + * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both + * limits are reached. + * The default value for max_retry_duration is zero, which means retry + * duration is unlimited. + *+ * + *
.google.protobuf.Duration max_retry_duration = 2;
+ */
+ public Builder mergeMaxRetryDuration(com.google.protobuf.Duration value) {
+ if (maxRetryDurationBuilder_ == null) {
+ if (maxRetryDuration_ != null) {
+ maxRetryDuration_ =
+ com.google.protobuf.Duration.newBuilder(maxRetryDuration_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ maxRetryDuration_ = value;
+ }
+ onChanged();
+ } else {
+ maxRetryDurationBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time limit for retrying a failed job, measured from time when an + * execution was first attempted. If specified with + * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both + * limits are reached. + * The default value for max_retry_duration is zero, which means retry + * duration is unlimited. + *+ * + *
.google.protobuf.Duration max_retry_duration = 2;
+ */
+ public Builder clearMaxRetryDuration() {
+ if (maxRetryDurationBuilder_ == null) {
+ maxRetryDuration_ = null;
+ onChanged();
+ } else {
+ maxRetryDuration_ = null;
+ maxRetryDurationBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time limit for retrying a failed job, measured from time when an + * execution was first attempted. If specified with + * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both + * limits are reached. + * The default value for max_retry_duration is zero, which means retry + * duration is unlimited. + *+ * + *
.google.protobuf.Duration max_retry_duration = 2;
+ */
+ public com.google.protobuf.Duration.Builder getMaxRetryDurationBuilder() {
+
+ onChanged();
+ return getMaxRetryDurationFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The time limit for retrying a failed job, measured from time when an + * execution was first attempted. If specified with + * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both + * limits are reached. + * The default value for max_retry_duration is zero, which means retry + * duration is unlimited. + *+ * + *
.google.protobuf.Duration max_retry_duration = 2;
+ */
+ public com.google.protobuf.DurationOrBuilder getMaxRetryDurationOrBuilder() {
+ if (maxRetryDurationBuilder_ != null) {
+ return maxRetryDurationBuilder_.getMessageOrBuilder();
+ } else {
+ return maxRetryDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : maxRetryDuration_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The time limit for retrying a failed job, measured from time when an + * execution was first attempted. If specified with + * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both + * limits are reached. + * The default value for max_retry_duration is zero, which means retry + * duration is unlimited. + *+ * + *
.google.protobuf.Duration max_retry_duration = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ getMaxRetryDurationFieldBuilder() {
+ if (maxRetryDurationBuilder_ == null) {
+ maxRetryDurationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getMaxRetryDuration(), getParentForChildren(), isClean());
+ maxRetryDuration_ = null;
+ }
+ return maxRetryDurationBuilder_;
+ }
+
+ private com.google.protobuf.Duration minBackoffDuration_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ minBackoffDurationBuilder_;
+ /**
+ *
+ *
+ * + * The minimum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 5 seconds. + *+ * + *
.google.protobuf.Duration min_backoff_duration = 3;
+ */
+ public boolean hasMinBackoffDuration() {
+ return minBackoffDurationBuilder_ != null || minBackoffDuration_ != null;
+ }
+ /**
+ *
+ *
+ * + * The minimum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 5 seconds. + *+ * + *
.google.protobuf.Duration min_backoff_duration = 3;
+ */
+ public com.google.protobuf.Duration getMinBackoffDuration() {
+ if (minBackoffDurationBuilder_ == null) {
+ return minBackoffDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : minBackoffDuration_;
+ } else {
+ return minBackoffDurationBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The minimum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 5 seconds. + *+ * + *
.google.protobuf.Duration min_backoff_duration = 3;
+ */
+ public Builder setMinBackoffDuration(com.google.protobuf.Duration value) {
+ if (minBackoffDurationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ minBackoffDuration_ = value;
+ onChanged();
+ } else {
+ minBackoffDurationBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The minimum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 5 seconds. + *+ * + *
.google.protobuf.Duration min_backoff_duration = 3;
+ */
+ public Builder setMinBackoffDuration(com.google.protobuf.Duration.Builder builderForValue) {
+ if (minBackoffDurationBuilder_ == null) {
+ minBackoffDuration_ = builderForValue.build();
+ onChanged();
+ } else {
+ minBackoffDurationBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The minimum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 5 seconds. + *+ * + *
.google.protobuf.Duration min_backoff_duration = 3;
+ */
+ public Builder mergeMinBackoffDuration(com.google.protobuf.Duration value) {
+ if (minBackoffDurationBuilder_ == null) {
+ if (minBackoffDuration_ != null) {
+ minBackoffDuration_ =
+ com.google.protobuf.Duration.newBuilder(minBackoffDuration_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ minBackoffDuration_ = value;
+ }
+ onChanged();
+ } else {
+ minBackoffDurationBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The minimum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 5 seconds. + *+ * + *
.google.protobuf.Duration min_backoff_duration = 3;
+ */
+ public Builder clearMinBackoffDuration() {
+ if (minBackoffDurationBuilder_ == null) {
+ minBackoffDuration_ = null;
+ onChanged();
+ } else {
+ minBackoffDuration_ = null;
+ minBackoffDurationBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The minimum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 5 seconds. + *+ * + *
.google.protobuf.Duration min_backoff_duration = 3;
+ */
+ public com.google.protobuf.Duration.Builder getMinBackoffDurationBuilder() {
+
+ onChanged();
+ return getMinBackoffDurationFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The minimum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 5 seconds. + *+ * + *
.google.protobuf.Duration min_backoff_duration = 3;
+ */
+ public com.google.protobuf.DurationOrBuilder getMinBackoffDurationOrBuilder() {
+ if (minBackoffDurationBuilder_ != null) {
+ return minBackoffDurationBuilder_.getMessageOrBuilder();
+ } else {
+ return minBackoffDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : minBackoffDuration_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The minimum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 5 seconds. + *+ * + *
.google.protobuf.Duration min_backoff_duration = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ getMinBackoffDurationFieldBuilder() {
+ if (minBackoffDurationBuilder_ == null) {
+ minBackoffDurationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getMinBackoffDuration(), getParentForChildren(), isClean());
+ minBackoffDuration_ = null;
+ }
+ return minBackoffDurationBuilder_;
+ }
+
+ private com.google.protobuf.Duration maxBackoffDuration_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ maxBackoffDurationBuilder_;
+ /**
+ *
+ *
+ * + * The maximum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 1 hour. + *+ * + *
.google.protobuf.Duration max_backoff_duration = 4;
+ */
+ public boolean hasMaxBackoffDuration() {
+ return maxBackoffDurationBuilder_ != null || maxBackoffDuration_ != null;
+ }
+ /**
+ *
+ *
+ * + * The maximum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 1 hour. + *+ * + *
.google.protobuf.Duration max_backoff_duration = 4;
+ */
+ public com.google.protobuf.Duration getMaxBackoffDuration() {
+ if (maxBackoffDurationBuilder_ == null) {
+ return maxBackoffDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : maxBackoffDuration_;
+ } else {
+ return maxBackoffDurationBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The maximum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 1 hour. + *+ * + *
.google.protobuf.Duration max_backoff_duration = 4;
+ */
+ public Builder setMaxBackoffDuration(com.google.protobuf.Duration value) {
+ if (maxBackoffDurationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ maxBackoffDuration_ = value;
+ onChanged();
+ } else {
+ maxBackoffDurationBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The maximum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 1 hour. + *+ * + *
.google.protobuf.Duration max_backoff_duration = 4;
+ */
+ public Builder setMaxBackoffDuration(com.google.protobuf.Duration.Builder builderForValue) {
+ if (maxBackoffDurationBuilder_ == null) {
+ maxBackoffDuration_ = builderForValue.build();
+ onChanged();
+ } else {
+ maxBackoffDurationBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The maximum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 1 hour. + *+ * + *
.google.protobuf.Duration max_backoff_duration = 4;
+ */
+ public Builder mergeMaxBackoffDuration(com.google.protobuf.Duration value) {
+ if (maxBackoffDurationBuilder_ == null) {
+ if (maxBackoffDuration_ != null) {
+ maxBackoffDuration_ =
+ com.google.protobuf.Duration.newBuilder(maxBackoffDuration_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ maxBackoffDuration_ = value;
+ }
+ onChanged();
+ } else {
+ maxBackoffDurationBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The maximum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 1 hour. + *+ * + *
.google.protobuf.Duration max_backoff_duration = 4;
+ */
+ public Builder clearMaxBackoffDuration() {
+ if (maxBackoffDurationBuilder_ == null) {
+ maxBackoffDuration_ = null;
+ onChanged();
+ } else {
+ maxBackoffDuration_ = null;
+ maxBackoffDurationBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The maximum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 1 hour. + *+ * + *
.google.protobuf.Duration max_backoff_duration = 4;
+ */
+ public com.google.protobuf.Duration.Builder getMaxBackoffDurationBuilder() {
+
+ onChanged();
+ return getMaxBackoffDurationFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The maximum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 1 hour. + *+ * + *
.google.protobuf.Duration max_backoff_duration = 4;
+ */
+ public com.google.protobuf.DurationOrBuilder getMaxBackoffDurationOrBuilder() {
+ if (maxBackoffDurationBuilder_ != null) {
+ return maxBackoffDurationBuilder_.getMessageOrBuilder();
+ } else {
+ return maxBackoffDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : maxBackoffDuration_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The maximum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 1 hour. + *+ * + *
.google.protobuf.Duration max_backoff_duration = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ getMaxBackoffDurationFieldBuilder() {
+ if (maxBackoffDurationBuilder_ == null) {
+ maxBackoffDurationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getMaxBackoffDuration(), getParentForChildren(), isClean());
+ maxBackoffDuration_ = null;
+ }
+ return maxBackoffDurationBuilder_;
+ }
+
+ private int maxDoublings_;
+ /**
+ *
+ *
+ * + * The time between retries will double `max_doublings` times. + * A job's retry interval starts at + * [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration], then doubles + * `max_doublings` times, then increases linearly, and finally + * retries retries at intervals of + * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] up to + * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times. + * For example, if [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration] is + * 10s, [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] is 300s, and + * `max_doublings` is 3, then the a job will first be retried in 10s. The + * retry interval will double three times, and then increase linearly by + * 2^3 * 10s. Finally, the job will retry at intervals of + * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] until the job has + * been attempted [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times. Thus, the + * requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, .... + * The default value of this field is 5. + *+ * + *
int32 max_doublings = 5;
+ */
+ public int getMaxDoublings() {
+ return maxDoublings_;
+ }
+ /**
+ *
+ *
+ * + * The time between retries will double `max_doublings` times. + * A job's retry interval starts at + * [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration], then doubles + * `max_doublings` times, then increases linearly, and finally + * retries retries at intervals of + * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] up to + * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times. + * For example, if [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration] is + * 10s, [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] is 300s, and + * `max_doublings` is 3, then the a job will first be retried in 10s. The + * retry interval will double three times, and then increase linearly by + * 2^3 * 10s. Finally, the job will retry at intervals of + * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] until the job has + * been attempted [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times. Thus, the + * requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, .... + * The default value of this field is 5. + *+ * + *
int32 max_doublings = 5;
+ */
+ public Builder setMaxDoublings(int value) {
+
+ maxDoublings_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time between retries will double `max_doublings` times. + * A job's retry interval starts at + * [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration], then doubles + * `max_doublings` times, then increases linearly, and finally + * retries retries at intervals of + * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] up to + * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times. + * For example, if [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration] is + * 10s, [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] is 300s, and + * `max_doublings` is 3, then the a job will first be retried in 10s. The + * retry interval will double three times, and then increase linearly by + * 2^3 * 10s. Finally, the job will retry at intervals of + * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] until the job has + * been attempted [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times. Thus, the + * requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, .... + * The default value of this field is 5. + *+ * + *
int32 max_doublings = 5;
+ */
+ public Builder clearMaxDoublings() {
+
+ maxDoublings_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.RetryConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.RetryConfig)
+ private static final com.google.cloud.scheduler.v1.RetryConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.RetryConfig();
+ }
+
+ public static com.google.cloud.scheduler.v1.RetryConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The number of attempts that the system will make to run a job using the + * exponential backoff procedure described by + * [max_doublings][google.cloud.scheduler.v1.RetryConfig.max_doublings]. + * The default value of retry_count is zero. + * If retry_count is zero, a job attempt will *not* be retried if + * it fails. Instead the Cloud Scheduler system will wait for the + * next scheduled execution time. + * If retry_count is set to a non-zero number then Cloud Scheduler + * will retry failed attempts, using exponential backoff, + * retry_count times, or until the next scheduled execution time, + * whichever comes first. + * Values greater than 5 and negative values are not allowed. + *+ * + *
int32 retry_count = 1;
+ */
+ int getRetryCount();
+
+ /**
+ *
+ *
+ * + * The time limit for retrying a failed job, measured from time when an + * execution was first attempted. If specified with + * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both + * limits are reached. + * The default value for max_retry_duration is zero, which means retry + * duration is unlimited. + *+ * + *
.google.protobuf.Duration max_retry_duration = 2;
+ */
+ boolean hasMaxRetryDuration();
+ /**
+ *
+ *
+ * + * The time limit for retrying a failed job, measured from time when an + * execution was first attempted. If specified with + * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both + * limits are reached. + * The default value for max_retry_duration is zero, which means retry + * duration is unlimited. + *+ * + *
.google.protobuf.Duration max_retry_duration = 2;
+ */
+ com.google.protobuf.Duration getMaxRetryDuration();
+ /**
+ *
+ *
+ * + * The time limit for retrying a failed job, measured from time when an + * execution was first attempted. If specified with + * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both + * limits are reached. + * The default value for max_retry_duration is zero, which means retry + * duration is unlimited. + *+ * + *
.google.protobuf.Duration max_retry_duration = 2;
+ */
+ com.google.protobuf.DurationOrBuilder getMaxRetryDurationOrBuilder();
+
+ /**
+ *
+ *
+ * + * The minimum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 5 seconds. + *+ * + *
.google.protobuf.Duration min_backoff_duration = 3;
+ */
+ boolean hasMinBackoffDuration();
+ /**
+ *
+ *
+ * + * The minimum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 5 seconds. + *+ * + *
.google.protobuf.Duration min_backoff_duration = 3;
+ */
+ com.google.protobuf.Duration getMinBackoffDuration();
+ /**
+ *
+ *
+ * + * The minimum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 5 seconds. + *+ * + *
.google.protobuf.Duration min_backoff_duration = 3;
+ */
+ com.google.protobuf.DurationOrBuilder getMinBackoffDurationOrBuilder();
+
+ /**
+ *
+ *
+ * + * The maximum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 1 hour. + *+ * + *
.google.protobuf.Duration max_backoff_duration = 4;
+ */
+ boolean hasMaxBackoffDuration();
+ /**
+ *
+ *
+ * + * The maximum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 1 hour. + *+ * + *
.google.protobuf.Duration max_backoff_duration = 4;
+ */
+ com.google.protobuf.Duration getMaxBackoffDuration();
+ /**
+ *
+ *
+ * + * The maximum amount of time to wait before retrying a job after + * it fails. + * The default value of this field is 1 hour. + *+ * + *
.google.protobuf.Duration max_backoff_duration = 4;
+ */
+ com.google.protobuf.DurationOrBuilder getMaxBackoffDurationOrBuilder();
+
+ /**
+ *
+ *
+ * + * The time between retries will double `max_doublings` times. + * A job's retry interval starts at + * [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration], then doubles + * `max_doublings` times, then increases linearly, and finally + * retries retries at intervals of + * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] up to + * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times. + * For example, if [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration] is + * 10s, [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] is 300s, and + * `max_doublings` is 3, then the a job will first be retried in 10s. The + * retry interval will double three times, and then increase linearly by + * 2^3 * 10s. Finally, the job will retry at intervals of + * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] until the job has + * been attempted [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times. Thus, the + * requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, .... + * The default value of this field is 5. + *+ * + *
int32 max_doublings = 5;
+ */
+ int getMaxDoublings();
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RunJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RunJobRequest.java
new file mode 100644
index 000000000000..ef23d9482899
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RunJobRequest.java
@@ -0,0 +1,613 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1/cloudscheduler.proto
+
+package com.google.cloud.scheduler.v1;
+
+/**
+ *
+ *
+ * + * Request message for forcing a job to run now using + * [RunJob][google.cloud.scheduler.v1.CloudScheduler.RunJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.RunJobRequest} + */ +public final class RunJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.RunJobRequest) + RunJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunJobRequest.newBuilder() to construct. + private RunJobRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private RunJobRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RunJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_RunJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_RunJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.RunJobRequest.class, + com.google.cloud.scheduler.v1.RunJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.scheduler.v1.RunJobRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1.RunJobRequest other =
+ (com.google.cloud.scheduler.v1.RunJobRequest) obj;
+
+ boolean result = true;
+ result = result && getName().equals(other.getName());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.scheduler.v1.RunJobRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.RunJobRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.RunJobRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.RunJobRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.RunJobRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.RunJobRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.RunJobRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.RunJobRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.RunJobRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.RunJobRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.RunJobRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.RunJobRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.scheduler.v1.RunJobRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for forcing a job to run now using + * [RunJob][google.cloud.scheduler.v1.CloudScheduler.RunJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.RunJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.RunJobRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.RunJobRequest)
+ private static final com.google.cloud.scheduler.v1.RunJobRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.RunJobRequest();
+ }
+
+ public static com.google.cloud.scheduler.v1.RunJobRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Required. + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/SchedulerProto.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/SchedulerProto.java
new file mode 100644
index 000000000000..0cc873ce13d7
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/SchedulerProto.java
@@ -0,0 +1,214 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1/cloudscheduler.proto
+
+package com.google.cloud.scheduler.v1;
+
+public final class SchedulerProto {
+ private SchedulerProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_scheduler_v1_ListJobsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_scheduler_v1_ListJobsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_scheduler_v1_ListJobsResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_scheduler_v1_ListJobsResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_scheduler_v1_GetJobRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_scheduler_v1_GetJobRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_scheduler_v1_CreateJobRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_scheduler_v1_CreateJobRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_scheduler_v1_UpdateJobRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_scheduler_v1_UpdateJobRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_scheduler_v1_DeleteJobRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_scheduler_v1_DeleteJobRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_scheduler_v1_PauseJobRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_scheduler_v1_PauseJobRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_scheduler_v1_ResumeJobRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_scheduler_v1_ResumeJobRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_scheduler_v1_RunJobRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_scheduler_v1_RunJobRequest_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n.google/cloud/scheduler/v1/cloudschedul"
+ + "er.proto\022\031google.cloud.scheduler.v1\032\034goo"
+ + "gle/api/annotations.proto\032#google/cloud/"
+ + "scheduler/v1/job.proto\032\033google/protobuf/"
+ + "empty.proto\032 google/protobuf/field_mask."
+ + "proto\"H\n\017ListJobsRequest\022\016\n\006parent\030\001 \001(\t"
+ + "\022\021\n\tpage_size\030\005 \001(\005\022\022\n\npage_token\030\006 \001(\t\""
+ + "Y\n\020ListJobsResponse\022,\n\004jobs\030\001 \003(\0132\036.goog"
+ + "le.cloud.scheduler.v1.Job\022\027\n\017next_page_t"
+ + "oken\030\002 \001(\t\"\035\n\rGetJobRequest\022\014\n\004name\030\001 \001("
+ + "\t\"O\n\020CreateJobRequest\022\016\n\006parent\030\001 \001(\t\022+\n"
+ + "\003job\030\002 \001(\0132\036.google.cloud.scheduler.v1.J"
+ + "ob\"p\n\020UpdateJobRequest\022+\n\003job\030\001 \001(\0132\036.go"
+ + "ogle.cloud.scheduler.v1.Job\022/\n\013update_ma"
+ + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\" \n\020"
+ + "DeleteJobRequest\022\014\n\004name\030\001 \001(\t\"\037\n\017PauseJ"
+ + "obRequest\022\014\n\004name\030\001 \001(\t\" \n\020ResumeJobRequ"
+ + "est\022\014\n\004name\030\001 \001(\t\"\035\n\rRunJobRequest\022\014\n\004na"
+ + "me\030\001 \001(\t2\225\t\n\016CloudScheduler\022\225\001\n\010ListJobs"
+ + "\022*.google.cloud.scheduler.v1.ListJobsReq"
+ + "uest\032+.google.cloud.scheduler.v1.ListJob"
+ + "sResponse\"0\202\323\344\223\002*\022(/v1/{parent=projects/"
+ + "*/locations/*}/jobs\022\204\001\n\006GetJob\022(.google."
+ + "cloud.scheduler.v1.GetJobRequest\032\036.googl"
+ + "e.cloud.scheduler.v1.Job\"0\202\323\344\223\002*\022(/v1/{n"
+ + "ame=projects/*/locations/*/jobs/*}\022\217\001\n\tC"
+ + "reateJob\022+.google.cloud.scheduler.v1.Cre"
+ + "ateJobRequest\032\036.google.cloud.scheduler.v"
+ + "1.Job\"5\202\323\344\223\002/\"(/v1/{parent=projects/*/lo"
+ + "cations/*}/jobs:\003job\022\223\001\n\tUpdateJob\022+.goo"
+ + "gle.cloud.scheduler.v1.UpdateJobRequest\032"
+ + "\036.google.cloud.scheduler.v1.Job\"9\202\323\344\223\00232"
+ + ",/v1/{job.name=projects/*/locations/*/jo"
+ + "bs/*}:\003job\022\202\001\n\tDeleteJob\022+.google.cloud."
+ + "scheduler.v1.DeleteJobRequest\032\026.google.p"
+ + "rotobuf.Empty\"0\202\323\344\223\002**(/v1/{name=project"
+ + "s/*/locations/*/jobs/*}\022\221\001\n\010PauseJob\022*.g"
+ + "oogle.cloud.scheduler.v1.PauseJobRequest"
+ + "\032\036.google.cloud.scheduler.v1.Job\"9\202\323\344\223\0023"
+ + "\"./v1/{name=projects/*/locations/*/jobs/"
+ + "*}:pause:\001*\022\224\001\n\tResumeJob\022+.google.cloud"
+ + ".scheduler.v1.ResumeJobRequest\032\036.google."
+ + "cloud.scheduler.v1.Job\":\202\323\344\223\0024\"//v1/{nam"
+ + "e=projects/*/locations/*/jobs/*}:resume:"
+ + "\001*\022\213\001\n\006RunJob\022(.google.cloud.scheduler.v"
+ + "1.RunJobRequest\032\036.google.cloud.scheduler"
+ + ".v1.Job\"7\202\323\344\223\0021\",/v1/{name=projects/*/lo"
+ + "cations/*/jobs/*}:run:\001*B\201\001\n\035com.google."
+ + "cloud.scheduler.v1B\016SchedulerProtoP\001ZBgo"
+ + "ogle.golang.org/genproto/googleapis/clou"
+ + "d/scheduler/v1;scheduler\242\002\tSCHEDULERb\006pr"
+ + "oto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.cloud.scheduler.v1.JobProto.getDescriptor(),
+ com.google.protobuf.EmptyProto.getDescriptor(),
+ com.google.protobuf.FieldMaskProto.getDescriptor(),
+ },
+ assigner);
+ internal_static_google_cloud_scheduler_v1_ListJobsRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_scheduler_v1_ListJobsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_scheduler_v1_ListJobsRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "PageSize", "PageToken",
+ });
+ internal_static_google_cloud_scheduler_v1_ListJobsResponse_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_scheduler_v1_ListJobsResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_scheduler_v1_ListJobsResponse_descriptor,
+ new java.lang.String[] {
+ "Jobs", "NextPageToken",
+ });
+ internal_static_google_cloud_scheduler_v1_GetJobRequest_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_cloud_scheduler_v1_GetJobRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_scheduler_v1_GetJobRequest_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
+ internal_static_google_cloud_scheduler_v1_CreateJobRequest_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_google_cloud_scheduler_v1_CreateJobRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_scheduler_v1_CreateJobRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "Job",
+ });
+ internal_static_google_cloud_scheduler_v1_UpdateJobRequest_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_google_cloud_scheduler_v1_UpdateJobRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_scheduler_v1_UpdateJobRequest_descriptor,
+ new java.lang.String[] {
+ "Job", "UpdateMask",
+ });
+ internal_static_google_cloud_scheduler_v1_DeleteJobRequest_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_google_cloud_scheduler_v1_DeleteJobRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_scheduler_v1_DeleteJobRequest_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
+ internal_static_google_cloud_scheduler_v1_PauseJobRequest_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_google_cloud_scheduler_v1_PauseJobRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_scheduler_v1_PauseJobRequest_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
+ internal_static_google_cloud_scheduler_v1_ResumeJobRequest_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_google_cloud_scheduler_v1_ResumeJobRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_scheduler_v1_ResumeJobRequest_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
+ internal_static_google_cloud_scheduler_v1_RunJobRequest_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_google_cloud_scheduler_v1_RunJobRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_scheduler_v1_RunJobRequest_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.AnnotationsProto.http);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ com.google.api.AnnotationsProto.getDescriptor();
+ com.google.cloud.scheduler.v1.JobProto.getDescriptor();
+ com.google.protobuf.EmptyProto.getDescriptor();
+ com.google.protobuf.FieldMaskProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/TargetProto.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/TargetProto.java
new file mode 100644
index 000000000000..be1438bb232c
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/TargetProto.java
@@ -0,0 +1,161 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1/target.proto
+
+package com.google.cloud.scheduler.v1;
+
+public final class TargetProto {
+ private TargetProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_scheduler_v1_HttpTarget_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_scheduler_v1_HttpTarget_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_scheduler_v1_HttpTarget_HeadersEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_scheduler_v1_HttpTarget_HeadersEntry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_HeadersEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_HeadersEntry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_scheduler_v1_PubsubTarget_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_scheduler_v1_PubsubTarget_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_scheduler_v1_PubsubTarget_AttributesEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_scheduler_v1_PubsubTarget_AttributesEntry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_scheduler_v1_AppEngineRouting_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_scheduler_v1_AppEngineRouting_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n&google/cloud/scheduler/v1/target.proto"
+ + "\022\031google.cloud.scheduler.v1\032\034google/api/"
+ + "annotations.proto\032\031google/protobuf/any.p"
+ + "roto\"\330\001\n\nHttpTarget\022\013\n\003uri\030\001 \001(\t\022:\n\013http"
+ + "_method\030\002 \001(\0162%.google.cloud.scheduler.v"
+ + "1.HttpMethod\022C\n\007headers\030\003 \003(\01322.google.c"
+ + "loud.scheduler.v1.HttpTarget.HeadersEntr"
+ + "y\022\014\n\004body\030\004 \001(\014\032.\n\014HeadersEntry\022\013\n\003key\030\001"
+ + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\274\002\n\023AppEngineHtt"
+ + "pTarget\022:\n\013http_method\030\001 \001(\0162%.google.cl"
+ + "oud.scheduler.v1.HttpMethod\022G\n\022app_engin"
+ + "e_routing\030\002 \001(\0132+.google.cloud.scheduler"
+ + ".v1.AppEngineRouting\022\024\n\014relative_uri\030\003 \001"
+ + "(\t\022L\n\007headers\030\004 \003(\0132;.google.cloud.sched"
+ + "uler.v1.AppEngineHttpTarget.HeadersEntry"
+ + "\022\014\n\004body\030\005 \001(\014\032.\n\014HeadersEntry\022\013\n\003key\030\001 "
+ + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\260\001\n\014PubsubTarget\022"
+ + "\022\n\ntopic_name\030\001 \001(\t\022\014\n\004data\030\003 \001(\014\022K\n\natt"
+ + "ributes\030\004 \003(\01327.google.cloud.scheduler.v"
+ + "1.PubsubTarget.AttributesEntry\0321\n\017Attrib"
+ + "utesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028"
+ + "\001\"T\n\020AppEngineRouting\022\017\n\007service\030\001 \001(\t\022\017"
+ + "\n\007version\030\002 \001(\t\022\020\n\010instance\030\003 \001(\t\022\014\n\004hos"
+ + "t\030\004 \001(\t*s\n\nHttpMethod\022\033\n\027HTTP_METHOD_UNS"
+ + "PECIFIED\020\000\022\010\n\004POST\020\001\022\007\n\003GET\020\002\022\010\n\004HEAD\020\003\022"
+ + "\007\n\003PUT\020\004\022\n\n\006DELETE\020\005\022\t\n\005PATCH\020\006\022\013\n\007OPTIO"
+ + "NS\020\007Br\n\035com.google.cloud.scheduler.v1B\013T"
+ + "argetProtoP\001ZBgoogle.golang.org/genproto"
+ + "/googleapis/cloud/scheduler/v1;scheduler"
+ + "b\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.protobuf.AnyProto.getDescriptor(),
+ },
+ assigner);
+ internal_static_google_cloud_scheduler_v1_HttpTarget_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_scheduler_v1_HttpTarget_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_scheduler_v1_HttpTarget_descriptor,
+ new java.lang.String[] {
+ "Uri", "HttpMethod", "Headers", "Body",
+ });
+ internal_static_google_cloud_scheduler_v1_HttpTarget_HeadersEntry_descriptor =
+ internal_static_google_cloud_scheduler_v1_HttpTarget_descriptor.getNestedTypes().get(0);
+ internal_static_google_cloud_scheduler_v1_HttpTarget_HeadersEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_scheduler_v1_HttpTarget_HeadersEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
+ internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_descriptor,
+ new java.lang.String[] {
+ "HttpMethod", "AppEngineRouting", "RelativeUri", "Headers", "Body",
+ });
+ internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_HeadersEntry_descriptor =
+ internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_HeadersEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_HeadersEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
+ internal_static_google_cloud_scheduler_v1_PubsubTarget_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_cloud_scheduler_v1_PubsubTarget_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_scheduler_v1_PubsubTarget_descriptor,
+ new java.lang.String[] {
+ "TopicName", "Data", "Attributes",
+ });
+ internal_static_google_cloud_scheduler_v1_PubsubTarget_AttributesEntry_descriptor =
+ internal_static_google_cloud_scheduler_v1_PubsubTarget_descriptor.getNestedTypes().get(0);
+ internal_static_google_cloud_scheduler_v1_PubsubTarget_AttributesEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_scheduler_v1_PubsubTarget_AttributesEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
+ internal_static_google_cloud_scheduler_v1_AppEngineRouting_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_google_cloud_scheduler_v1_AppEngineRouting_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_scheduler_v1_AppEngineRouting_descriptor,
+ new java.lang.String[] {
+ "Service", "Version", "Instance", "Host",
+ });
+ com.google.api.AnnotationsProto.getDescriptor();
+ com.google.protobuf.AnyProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/UpdateJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/UpdateJobRequest.java
new file mode 100644
index 000000000000..d1fea9eb28e6
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/UpdateJobRequest.java
@@ -0,0 +1,988 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1/cloudscheduler.proto
+
+package com.google.cloud.scheduler.v1;
+
+/**
+ *
+ *
+ * + * Request message for [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.UpdateJobRequest} + */ +public final class UpdateJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.UpdateJobRequest) + UpdateJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateJobRequest.newBuilder() to construct. + private UpdateJobRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private UpdateJobRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.scheduler.v1.Job.Builder subBuilder = null; + if (job_ != null) { + subBuilder = job_.toBuilder(); + } + job_ = + input.readMessage(com.google.cloud.scheduler.v1.Job.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(job_); + job_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_UpdateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_UpdateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.UpdateJobRequest.class, + com.google.cloud.scheduler.v1.UpdateJobRequest.Builder.class); + } + + public static final int JOB_FIELD_NUMBER = 1; + private com.google.cloud.scheduler.v1.Job job_; + /** + * + * + *
+ * Required. + * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. + * Output only fields cannot be modified using UpdateJob. + * Any value specified for an output only field will be ignored. + *+ * + *
.google.cloud.scheduler.v1.Job job = 1;
+ */
+ public boolean hasJob() {
+ return job_ != null;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. + * Output only fields cannot be modified using UpdateJob. + * Any value specified for an output only field will be ignored. + *+ * + *
.google.cloud.scheduler.v1.Job job = 1;
+ */
+ public com.google.cloud.scheduler.v1.Job getJob() {
+ return job_ == null ? com.google.cloud.scheduler.v1.Job.getDefaultInstance() : job_;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. + * Output only fields cannot be modified using UpdateJob. + * Any value specified for an output only field will be ignored. + *+ * + *
.google.cloud.scheduler.v1.Job job = 1;
+ */
+ public com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder() {
+ return getJob();
+ }
+
+ public static final int UPDATE_MASK_FIELD_NUMBER = 2;
+ private com.google.protobuf.FieldMask updateMask_;
+ /**
+ *
+ *
+ * + * A mask used to specify which fields of the job are being updated. + *+ * + *
.google.protobuf.FieldMask update_mask = 2;
+ */
+ public boolean hasUpdateMask() {
+ return updateMask_ != null;
+ }
+ /**
+ *
+ *
+ * + * A mask used to specify which fields of the job are being updated. + *+ * + *
.google.protobuf.FieldMask update_mask = 2;
+ */
+ public com.google.protobuf.FieldMask getUpdateMask() {
+ return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+ }
+ /**
+ *
+ *
+ * + * A mask used to specify which fields of the job are being updated. + *+ * + *
.google.protobuf.FieldMask update_mask = 2;
+ */
+ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
+ return getUpdateMask();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (job_ != null) {
+ output.writeMessage(1, getJob());
+ }
+ if (updateMask_ != null) {
+ output.writeMessage(2, getUpdateMask());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (job_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getJob());
+ }
+ if (updateMask_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.scheduler.v1.UpdateJobRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1.UpdateJobRequest other =
+ (com.google.cloud.scheduler.v1.UpdateJobRequest) obj;
+
+ boolean result = true;
+ result = result && (hasJob() == other.hasJob());
+ if (hasJob()) {
+ result = result && getJob().equals(other.getJob());
+ }
+ result = result && (hasUpdateMask() == other.hasUpdateMask());
+ if (hasUpdateMask()) {
+ result = result && getUpdateMask().equals(other.getUpdateMask());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasJob()) {
+ hash = (37 * hash) + JOB_FIELD_NUMBER;
+ hash = (53 * hash) + getJob().hashCode();
+ }
+ if (hasUpdateMask()) {
+ hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER;
+ hash = (53 * hash) + getUpdateMask().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.scheduler.v1.UpdateJobRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.UpdateJobRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.UpdateJobRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.UpdateJobRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.UpdateJobRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.scheduler.v1.UpdateJobRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.UpdateJobRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.UpdateJobRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.UpdateJobRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.UpdateJobRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.scheduler.v1.UpdateJobRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.scheduler.v1.UpdateJobRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.scheduler.v1.UpdateJobRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1.UpdateJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. + * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. + * Output only fields cannot be modified using UpdateJob. + * Any value specified for an output only field will be ignored. + *+ * + *
.google.cloud.scheduler.v1.Job job = 1;
+ */
+ public boolean hasJob() {
+ return jobBuilder_ != null || job_ != null;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. + * Output only fields cannot be modified using UpdateJob. + * Any value specified for an output only field will be ignored. + *+ * + *
.google.cloud.scheduler.v1.Job job = 1;
+ */
+ public com.google.cloud.scheduler.v1.Job getJob() {
+ if (jobBuilder_ == null) {
+ return job_ == null ? com.google.cloud.scheduler.v1.Job.getDefaultInstance() : job_;
+ } else {
+ return jobBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. + * Output only fields cannot be modified using UpdateJob. + * Any value specified for an output only field will be ignored. + *+ * + *
.google.cloud.scheduler.v1.Job job = 1;
+ */
+ public Builder setJob(com.google.cloud.scheduler.v1.Job value) {
+ if (jobBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ job_ = value;
+ onChanged();
+ } else {
+ jobBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. + * Output only fields cannot be modified using UpdateJob. + * Any value specified for an output only field will be ignored. + *+ * + *
.google.cloud.scheduler.v1.Job job = 1;
+ */
+ public Builder setJob(com.google.cloud.scheduler.v1.Job.Builder builderForValue) {
+ if (jobBuilder_ == null) {
+ job_ = builderForValue.build();
+ onChanged();
+ } else {
+ jobBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. + * Output only fields cannot be modified using UpdateJob. + * Any value specified for an output only field will be ignored. + *+ * + *
.google.cloud.scheduler.v1.Job job = 1;
+ */
+ public Builder mergeJob(com.google.cloud.scheduler.v1.Job value) {
+ if (jobBuilder_ == null) {
+ if (job_ != null) {
+ job_ = com.google.cloud.scheduler.v1.Job.newBuilder(job_).mergeFrom(value).buildPartial();
+ } else {
+ job_ = value;
+ }
+ onChanged();
+ } else {
+ jobBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. + * Output only fields cannot be modified using UpdateJob. + * Any value specified for an output only field will be ignored. + *+ * + *
.google.cloud.scheduler.v1.Job job = 1;
+ */
+ public Builder clearJob() {
+ if (jobBuilder_ == null) {
+ job_ = null;
+ onChanged();
+ } else {
+ job_ = null;
+ jobBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. + * Output only fields cannot be modified using UpdateJob. + * Any value specified for an output only field will be ignored. + *+ * + *
.google.cloud.scheduler.v1.Job job = 1;
+ */
+ public com.google.cloud.scheduler.v1.Job.Builder getJobBuilder() {
+
+ onChanged();
+ return getJobFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Required. + * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. + * Output only fields cannot be modified using UpdateJob. + * Any value specified for an output only field will be ignored. + *+ * + *
.google.cloud.scheduler.v1.Job job = 1;
+ */
+ public com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder() {
+ if (jobBuilder_ != null) {
+ return jobBuilder_.getMessageOrBuilder();
+ } else {
+ return job_ == null ? com.google.cloud.scheduler.v1.Job.getDefaultInstance() : job_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. + * Output only fields cannot be modified using UpdateJob. + * Any value specified for an output only field will be ignored. + *+ * + *
.google.cloud.scheduler.v1.Job job = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1.Job,
+ com.google.cloud.scheduler.v1.Job.Builder,
+ com.google.cloud.scheduler.v1.JobOrBuilder>
+ getJobFieldBuilder() {
+ if (jobBuilder_ == null) {
+ jobBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1.Job,
+ com.google.cloud.scheduler.v1.Job.Builder,
+ com.google.cloud.scheduler.v1.JobOrBuilder>(
+ getJob(), getParentForChildren(), isClean());
+ job_ = null;
+ }
+ return jobBuilder_;
+ }
+
+ private com.google.protobuf.FieldMask updateMask_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.FieldMask,
+ com.google.protobuf.FieldMask.Builder,
+ com.google.protobuf.FieldMaskOrBuilder>
+ updateMaskBuilder_;
+ /**
+ *
+ *
+ * + * A mask used to specify which fields of the job are being updated. + *+ * + *
.google.protobuf.FieldMask update_mask = 2;
+ */
+ public boolean hasUpdateMask() {
+ return updateMaskBuilder_ != null || updateMask_ != null;
+ }
+ /**
+ *
+ *
+ * + * A mask used to specify which fields of the job are being updated. + *+ * + *
.google.protobuf.FieldMask update_mask = 2;
+ */
+ public com.google.protobuf.FieldMask getUpdateMask() {
+ if (updateMaskBuilder_ == null) {
+ return updateMask_ == null
+ ? com.google.protobuf.FieldMask.getDefaultInstance()
+ : updateMask_;
+ } else {
+ return updateMaskBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * A mask used to specify which fields of the job are being updated. + *+ * + *
.google.protobuf.FieldMask update_mask = 2;
+ */
+ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
+ if (updateMaskBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ updateMask_ = value;
+ onChanged();
+ } else {
+ updateMaskBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A mask used to specify which fields of the job are being updated. + *+ * + *
.google.protobuf.FieldMask update_mask = 2;
+ */
+ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+ if (updateMaskBuilder_ == null) {
+ updateMask_ = builderForValue.build();
+ onChanged();
+ } else {
+ updateMaskBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A mask used to specify which fields of the job are being updated. + *+ * + *
.google.protobuf.FieldMask update_mask = 2;
+ */
+ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
+ if (updateMaskBuilder_ == null) {
+ if (updateMask_ != null) {
+ updateMask_ =
+ com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+ } else {
+ updateMask_ = value;
+ }
+ onChanged();
+ } else {
+ updateMaskBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A mask used to specify which fields of the job are being updated. + *+ * + *
.google.protobuf.FieldMask update_mask = 2;
+ */
+ public Builder clearUpdateMask() {
+ if (updateMaskBuilder_ == null) {
+ updateMask_ = null;
+ onChanged();
+ } else {
+ updateMask_ = null;
+ updateMaskBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A mask used to specify which fields of the job are being updated. + *+ * + *
.google.protobuf.FieldMask update_mask = 2;
+ */
+ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
+
+ onChanged();
+ return getUpdateMaskFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A mask used to specify which fields of the job are being updated. + *+ * + *
.google.protobuf.FieldMask update_mask = 2;
+ */
+ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
+ if (updateMaskBuilder_ != null) {
+ return updateMaskBuilder_.getMessageOrBuilder();
+ } else {
+ return updateMask_ == null
+ ? com.google.protobuf.FieldMask.getDefaultInstance()
+ : updateMask_;
+ }
+ }
+ /**
+ *
+ *
+ * + * A mask used to specify which fields of the job are being updated. + *+ * + *
.google.protobuf.FieldMask update_mask = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.FieldMask,
+ com.google.protobuf.FieldMask.Builder,
+ com.google.protobuf.FieldMaskOrBuilder>
+ getUpdateMaskFieldBuilder() {
+ if (updateMaskBuilder_ == null) {
+ updateMaskBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.FieldMask,
+ com.google.protobuf.FieldMask.Builder,
+ com.google.protobuf.FieldMaskOrBuilder>(
+ getUpdateMask(), getParentForChildren(), isClean());
+ updateMask_ = null;
+ }
+ return updateMaskBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.UpdateJobRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.UpdateJobRequest)
+ private static final com.google.cloud.scheduler.v1.UpdateJobRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.UpdateJobRequest();
+ }
+
+ public static com.google.cloud.scheduler.v1.UpdateJobRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. + * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. + * Output only fields cannot be modified using UpdateJob. + * Any value specified for an output only field will be ignored. + *+ * + *
.google.cloud.scheduler.v1.Job job = 1;
+ */
+ boolean hasJob();
+ /**
+ *
+ *
+ * + * Required. + * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. + * Output only fields cannot be modified using UpdateJob. + * Any value specified for an output only field will be ignored. + *+ * + *
.google.cloud.scheduler.v1.Job job = 1;
+ */
+ com.google.cloud.scheduler.v1.Job getJob();
+ /**
+ *
+ *
+ * + * Required. + * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. + * Output only fields cannot be modified using UpdateJob. + * Any value specified for an output only field will be ignored. + *+ * + *
.google.cloud.scheduler.v1.Job job = 1;
+ */
+ com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder();
+
+ /**
+ *
+ *
+ * + * A mask used to specify which fields of the job are being updated. + *+ * + *
.google.protobuf.FieldMask update_mask = 2;
+ */
+ boolean hasUpdateMask();
+ /**
+ *
+ *
+ * + * A mask used to specify which fields of the job are being updated. + *+ * + *
.google.protobuf.FieldMask update_mask = 2;
+ */
+ com.google.protobuf.FieldMask getUpdateMask();
+ /**
+ *
+ *
+ * + * A mask used to specify which fields of the job are being updated. + *+ * + *
.google.protobuf.FieldMask update_mask = 2;
+ */
+ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/cloudscheduler.proto b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/cloudscheduler.proto
new file mode 100644
index 000000000000..d12027a72554
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/cloudscheduler.proto
@@ -0,0 +1,237 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.scheduler.v1;
+
+import "google/api/annotations.proto";
+import "google/cloud/scheduler/v1/job.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/field_mask.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/scheduler/v1;scheduler";
+option java_multiple_files = true;
+option java_outer_classname = "SchedulerProto";
+option java_package = "com.google.cloud.scheduler.v1";
+option objc_class_prefix = "SCHEDULER";
+
+
+// The Cloud Scheduler API allows external entities to reliably
+// schedule asynchronous jobs.
+service CloudScheduler {
+ // Lists jobs.
+ rpc ListJobs(ListJobsRequest) returns (ListJobsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/jobs"
+ };
+ }
+
+ // Gets a job.
+ rpc GetJob(GetJobRequest) returns (Job) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/jobs/*}"
+ };
+ }
+
+ // Creates a job.
+ rpc CreateJob(CreateJobRequest) returns (Job) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/jobs"
+ body: "job"
+ };
+ }
+
+ // Updates a job.
+ //
+ // If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does
+ // not exist, `NOT_FOUND` is returned.
+ //
+ // If UpdateJob does not successfully return, it is possible for the
+ // job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in this state may
+ // not be executed. If this happens, retry the UpdateJob request
+ // until a successful response is received.
+ rpc UpdateJob(UpdateJobRequest) returns (Job) {
+ option (google.api.http) = {
+ patch: "/v1/{job.name=projects/*/locations/*/jobs/*}"
+ body: "job"
+ };
+ }
+
+ // Deletes a job.
+ rpc DeleteJob(DeleteJobRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/jobs/*}"
+ };
+ }
+
+ // Pauses a job.
+ //
+ // If a job is paused then the system will stop executing the job
+ // until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The
+ // state of the job is stored in [state][google.cloud.scheduler.v1.Job.state]; if paused it
+ // will be set to [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]
+ // to be paused.
+ rpc PauseJob(PauseJobRequest) returns (Job) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/jobs/*}:pause"
+ body: "*"
+ };
+ }
+
+ // Resume a job.
+ //
+ // This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The
+ // state of a job is stored in [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it
+ // will be set to [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in
+ // [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed.
+ rpc ResumeJob(ResumeJobRequest) returns (Job) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/jobs/*}:resume"
+ body: "*"
+ };
+ }
+
+ // Forces a job to run now.
+ //
+ // When this method is called, Cloud Scheduler will dispatch the job, even
+ // if the job is already running.
+ rpc RunJob(RunJobRequest) returns (Job) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/jobs/*}:run"
+ body: "*"
+ };
+ }
+}
+
+// Request message for listing jobs using [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs].
+message ListJobsRequest {
+ // Required.
+ //
+ // The location name. For example:
+ // `projects/PROJECT_ID/locations/LOCATION_ID`.
+ string parent = 1;
+
+ // Requested page size.
+ //
+ // The maximum page size is 500. If unspecified, the page size will
+ // be the maximum. Fewer jobs than requested might be returned,
+ // even if more jobs exist; use next_page_token to determine if more
+ // jobs exist.
+ int32 page_size = 5;
+
+ // A token identifying a page of results the server will return. To
+ // request the first page results, page_token must be empty. To
+ // request the next page of results, page_token must be the value of
+ // [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from
+ // the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to
+ // switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or
+ // [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages.
+ string page_token = 6;
+}
+
+// Response message for listing jobs using [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs].
+message ListJobsResponse {
+ // The list of jobs.
+ repeated Job jobs = 1;
+
+ // A token to retrieve next page of results. Pass this value in the
+ // [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to
+ // [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results.
+ // If this is empty it indicates that there are no more results
+ // through which to paginate.
+ //
+ // The page token is valid for only 2 hours.
+ string next_page_token = 2;
+}
+
+// Request message for [GetJob][google.cloud.scheduler.v1.CloudScheduler.GetJob].
+message GetJobRequest {
+ // Required.
+ //
+ // The job name. For example:
+ // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+ string name = 1;
+}
+
+// Request message for [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob].
+message CreateJobRequest {
+ // Required.
+ //
+ // The location name. For example:
+ // `projects/PROJECT_ID/locations/LOCATION_ID`.
+ string parent = 1;
+
+ // Required.
+ //
+ // The job to add. The user can optionally specify a name for the
+ // job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
+ // existing job. If a name is not specified then the system will
+ // generate a random unique name that will be returned
+ // ([name][google.cloud.scheduler.v1.Job.name]) in the response.
+ Job job = 2;
+}
+
+// Request message for [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+message UpdateJobRequest {
+ // Required.
+ //
+ // The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+ //
+ // Output only fields cannot be modified using UpdateJob.
+ // Any value specified for an output only field will be ignored.
+ Job job = 1;
+
+ // A mask used to specify which fields of the job are being updated.
+ google.protobuf.FieldMask update_mask = 2;
+}
+
+// Request message for deleting a job using
+// [DeleteJob][google.cloud.scheduler.v1.CloudScheduler.DeleteJob].
+message DeleteJobRequest {
+ // Required.
+ //
+ // The job name. For example:
+ // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+ string name = 1;
+}
+
+// Request message for [PauseJob][google.cloud.scheduler.v1.CloudScheduler.PauseJob].
+message PauseJobRequest {
+ // Required.
+ //
+ // The job name. For example:
+ // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+ string name = 1;
+}
+
+// Request message for [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob].
+message ResumeJobRequest {
+ // Required.
+ //
+ // The job name. For example:
+ // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+ string name = 1;
+}
+
+// Request message for forcing a job to run now using
+// [RunJob][google.cloud.scheduler.v1.CloudScheduler.RunJob].
+message RunJobRequest {
+ // Required.
+ //
+ // The job name. For example:
+ // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+ string name = 1;
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/job.proto b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/job.proto
new file mode 100644
index 000000000000..8cf36c4d2c31
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/job.proto
@@ -0,0 +1,220 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.scheduler.v1;
+
+import "google/api/annotations.proto";
+import "google/cloud/scheduler/v1/target.proto";
+import "google/protobuf/duration.proto";
+import "google/protobuf/timestamp.proto";
+import "google/rpc/status.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/scheduler/v1;scheduler";
+option java_multiple_files = true;
+option java_outer_classname = "JobProto";
+option java_package = "com.google.cloud.scheduler.v1";
+
+
+// Configuration for a job.
+// The maximum allowed size for a job is 100KB.
+message Job {
+ // State of the job.
+ enum State {
+ // Unspecified state.
+ STATE_UNSPECIFIED = 0;
+
+ // The job is executing normally.
+ ENABLED = 1;
+
+ // The job is paused by the user. It will not execute. A user can
+ // intentionally pause the job using
+ // [PauseJobRequest][google.cloud.scheduler.v1.PauseJobRequest].
+ PAUSED = 2;
+
+ // The job is disabled by the system due to error. The user
+ // cannot directly set a job to be disabled.
+ DISABLED = 3;
+
+ // The job state resulting from a failed [CloudScheduler.UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]
+ // operation. To recover a job from this state, retry
+ // [CloudScheduler.UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob] until a successful response is received.
+ UPDATE_FAILED = 4;
+ }
+
+ // Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after
+ // which it becomes output only.
+ //
+ // The job name. For example:
+ // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+ //
+ // * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
+ // hyphens (-), colons (:), or periods (.).
+ // For more information, see
+ // [Identifying
+ // projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
+ // * `LOCATION_ID` is the canonical ID for the job's location.
+ // The list of available locations can be obtained by calling
+ // [ListLocations][google.cloud.location.Locations.ListLocations].
+ // For more information, see https://cloud.google.com/about/locations/.
+ // * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
+ // hyphens (-), or underscores (_). The maximum length is 500 characters.
+ string name = 1;
+
+ // Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or
+ // [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+ //
+ // A human-readable description for the job. This string must not contain
+ // more than 500 characters.
+ string description = 2;
+
+ // Required.
+ //
+ // Delivery settings containing destination and parameters.
+ oneof target {
+ // Pub/Sub target.
+ PubsubTarget pubsub_target = 4;
+
+ // App Engine HTTP target.
+ AppEngineHttpTarget app_engine_http_target = 5;
+
+ // HTTP target.
+ HttpTarget http_target = 6;
+ }
+
+ // Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+ //
+ // Describes the schedule on which the job will be executed.
+ //
+ // The schedule can be either of the following types:
+ //
+ // * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
+ // * English-like
+ // [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
+ //
+ // As a general rule, execution `n + 1` of a job will not begin
+ // until execution `n` has finished. Cloud Scheduler will never
+ // allow two simultaneously outstanding executions. For example,
+ // this implies that if the `n+1`th execution is scheduled to run at
+ // 16:00 but the `n`th execution takes until 16:15, the `n+1`th
+ // execution will not start until `16:15`.
+ // A scheduled start time will be delayed if the previous
+ // execution has not ended when its scheduled time occurs.
+ //
+ // If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails,
+ // the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count]
+ // times, with exponential backoff, until the next scheduled start
+ // time.
+ string schedule = 20;
+
+ // Specifies the time zone to be used in interpreting
+ // [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time
+ // zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
+ //
+ // Note that some time zones include a provision for
+ // daylight savings time. The rules for daylight saving time are
+ // determined by the chosen tz. For UTC use the string "utc". If a
+ // time zone is not specified, the default will be in UTC (also known
+ // as GMT).
+ string time_zone = 21;
+
+ // Output only. The creation time of the job.
+ google.protobuf.Timestamp user_update_time = 9;
+
+ // Output only. State of the job.
+ State state = 10;
+
+ // Output only. The response from the target for the last attempted execution.
+ google.rpc.Status status = 11;
+
+ // Output only. The next time the job is scheduled. Note that this may be a
+ // retry of a previously failed attempt or the next execution time
+ // according to the schedule.
+ google.protobuf.Timestamp schedule_time = 17;
+
+ // Output only. The time the last job attempt started.
+ google.protobuf.Timestamp last_attempt_time = 18;
+
+ // Settings that determine the retry behavior.
+ RetryConfig retry_config = 19;
+}
+
+// Settings that determine the retry behavior.
+//
+// By default, if a job does not complete successfully (meaning that
+// an acknowledgement is not received from the handler, then it will be retried
+// with exponential backoff according to the settings in [RetryConfig][google.cloud.scheduler.v1.RetryConfig].
+message RetryConfig {
+ // The number of attempts that the system will make to run a job using the
+ // exponential backoff procedure described by
+ // [max_doublings][google.cloud.scheduler.v1.RetryConfig.max_doublings].
+ //
+ // The default value of retry_count is zero.
+ //
+ // If retry_count is zero, a job attempt will *not* be retried if
+ // it fails. Instead the Cloud Scheduler system will wait for the
+ // next scheduled execution time.
+ //
+ // If retry_count is set to a non-zero number then Cloud Scheduler
+ // will retry failed attempts, using exponential backoff,
+ // retry_count times, or until the next scheduled execution time,
+ // whichever comes first.
+ //
+ // Values greater than 5 and negative values are not allowed.
+ int32 retry_count = 1;
+
+ // The time limit for retrying a failed job, measured from time when an
+ // execution was first attempted. If specified with
+ // [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both
+ // limits are reached.
+ //
+ // The default value for max_retry_duration is zero, which means retry
+ // duration is unlimited.
+ google.protobuf.Duration max_retry_duration = 2;
+
+ // The minimum amount of time to wait before retrying a job after
+ // it fails.
+ //
+ // The default value of this field is 5 seconds.
+ google.protobuf.Duration min_backoff_duration = 3;
+
+ // The maximum amount of time to wait before retrying a job after
+ // it fails.
+ //
+ // The default value of this field is 1 hour.
+ google.protobuf.Duration max_backoff_duration = 4;
+
+ // The time between retries will double `max_doublings` times.
+ //
+ // A job's retry interval starts at
+ // [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration], then doubles
+ // `max_doublings` times, then increases linearly, and finally
+ // retries retries at intervals of
+ // [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] up to
+ // [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times.
+ //
+ // For example, if [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration] is
+ // 10s, [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] is 300s, and
+ // `max_doublings` is 3, then the a job will first be retried in 10s. The
+ // retry interval will double three times, and then increase linearly by
+ // 2^3 * 10s. Finally, the job will retry at intervals of
+ // [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] until the job has
+ // been attempted [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times. Thus, the
+ // requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
+ //
+ // The default value of this field is 5.
+ int32 max_doublings = 5;
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/target.proto b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/target.proto
new file mode 100644
index 000000000000..56de3b737e58
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/target.proto
@@ -0,0 +1,291 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.scheduler.v1;
+
+import "google/api/annotations.proto";
+import "google/protobuf/any.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/scheduler/v1;scheduler";
+option java_multiple_files = true;
+option java_outer_classname = "TargetProto";
+option java_package = "com.google.cloud.scheduler.v1";
+
+
+// Http target. The job will be pushed to the job handler by means of
+// an HTTP request via an [http_method][google.cloud.scheduler.v1.HttpTarget.http_method] such as HTTP
+// POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
+// response code in the range [200 - 299]. A failure to receive a response
+// constitutes a failed execution. For a redirected request, the response
+// returned by the redirected request is considered.
+message HttpTarget {
+ // Required.
+ //
+ // The full URI path that the request will be sent to. This string
+ // must begin with either "http://" or "https://". Some examples of
+ // valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
+ // `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
+ // encode some characters for safety and compatibility. The maximum allowed
+ // URL length is 2083 characters after encoding.
+ string uri = 1;
+
+ // Which HTTP method to use for the request.
+ HttpMethod http_method = 2;
+
+ // The user can specify HTTP request headers to send with the job's
+ // HTTP request. This map contains the header field names and
+ // values. Repeated headers are not supported, but a header value can
+ // contain commas. These headers represent a subset of the headers
+ // that will accompany the job's HTTP request. Some HTTP request
+ // headers will be ignored or replaced. A partial list of headers that
+ // will be ignored or replaced is below:
+ // - Host: This will be computed by Cloud Scheduler and derived from
+ // [uri][google.cloud.scheduler.v1.HttpTarget.uri].
+ // * `Content-Length`: This will be computed by Cloud Scheduler.
+ // * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
+ // * `X-Google-*`: Google internal use only.
+ // * `X-AppEngine-*`: Google internal use only.
+ //
+ // The total size of headers must be less than 80KB.
+ mapThis class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
+ *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * Job response = cloudSchedulerClient.getJob(name);
+ * }
+ *
+ *
+ *
+ * Note: close() needs to be called on the cloudSchedulerClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *
The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of CloudSchedulerSettings to + * create(). For example: + * + *
To customize credentials: + * + *
+ *
+ * CloudSchedulerSettings cloudSchedulerSettings =
+ * CloudSchedulerSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * CloudSchedulerClient cloudSchedulerClient =
+ * CloudSchedulerClient.create(cloudSchedulerSettings);
+ *
+ *
+ *
+ * To customize the endpoint:
+ *
+ *
+ *
+ * CloudSchedulerSettings cloudSchedulerSettings =
+ * CloudSchedulerSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * CloudSchedulerClient cloudSchedulerClient =
+ * CloudSchedulerClient.create(cloudSchedulerSettings);
+ *
+ *
+ */
+@Generated("by gapic-generator")
+@BetaApi
+public class CloudSchedulerClient implements BackgroundResource {
+ private final CloudSchedulerSettings settings;
+ private final CloudSchedulerStub stub;
+
+ /** Constructs an instance of CloudSchedulerClient with default settings. */
+ public static final CloudSchedulerClient create() throws IOException {
+ return create(CloudSchedulerSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of CloudSchedulerClient, using the given settings. The channels are
+ * created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final CloudSchedulerClient create(CloudSchedulerSettings settings)
+ throws IOException {
+ return new CloudSchedulerClient(settings);
+ }
+
+ /**
+ * Constructs an instance of CloudSchedulerClient, using the given stub for making calls. This is
+ * for advanced usage - prefer to use CloudSchedulerSettings}.
+ */
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public static final CloudSchedulerClient create(CloudSchedulerStub stub) {
+ return new CloudSchedulerClient(stub);
+ }
+
+ /**
+ * 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();
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ protected CloudSchedulerClient(CloudSchedulerStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final CloudSchedulerSettings getSettings() {
+ return settings;
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public CloudSchedulerStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Lists jobs.
+ *
+ * Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Job element : cloudSchedulerClient.listJobs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ *
+ * @param parent Required.
+ * The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListJobsPagedResponse listJobs(LocationName parent) { + ListJobsRequest request = + ListJobsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists jobs. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Job element : cloudSchedulerClient.listJobs(parent.toString()).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ *
+ * @param parent Required.
+ * The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListJobsPagedResponse listJobs(String parent) { + ListJobsRequest request = ListJobsRequest.newBuilder().setParent(parent).build(); + return listJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists jobs. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * ListJobsRequest request = ListJobsRequest.newBuilder()
+ * .setParent(parent.toString())
+ * .build();
+ * for (Job element : cloudSchedulerClient.listJobs(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListJobsPagedResponse listJobs(ListJobsRequest request) {
+ return listJobsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Lists jobs.
+ *
+ * Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * ListJobsRequest request = ListJobsRequest.newBuilder()
+ * .setParent(parent.toString())
+ * .build();
+ * ApiFuture<ListJobsPagedResponse> future = cloudSchedulerClient.listJobsPagedCallable().futureCall(request);
+ * // Do something
+ * for (Job element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ */
+ public final UnaryCallableSample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * ListJobsRequest request = ListJobsRequest.newBuilder()
+ * .setParent(parent.toString())
+ * .build();
+ * while (true) {
+ * ListJobsResponse response = cloudSchedulerClient.listJobsCallable().call(request);
+ * for (Job element : response.getJobsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ *
+ */
+ public final UnaryCallableSample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * Job response = cloudSchedulerClient.getJob(name);
+ * }
+ *
+ *
+ * @param name Required.
+ * The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job getJob(JobName name) { + + GetJobRequest request = + GetJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a job. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * Job response = cloudSchedulerClient.getJob(name.toString());
+ * }
+ *
+ *
+ * @param name Required.
+ * The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job getJob(String name) { + + GetJobRequest request = GetJobRequest.newBuilder().setName(name).build(); + return getJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a job. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * GetJobRequest request = GetJobRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * Job response = cloudSchedulerClient.getJob(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Job getJob(GetJobRequest request) {
+ return getJobCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Gets a job.
+ *
+ * Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * GetJobRequest request = GetJobRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * ApiFuture<Job> future = cloudSchedulerClient.getJobCallable().futureCall(request);
+ * // Do something
+ * Job response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallableSample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Job job = Job.newBuilder().build();
+ * Job response = cloudSchedulerClient.createJob(parent, job);
+ * }
+ *
+ *
+ * @param parent Required.
+ * The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`. + * @param job Required. + *
The job to add. The user can optionally specify a name for the job in + * [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] + * cannot be the same as an existing job. If a name is not specified then the system will + * generate a random unique name that will be returned + * ([name][google.cloud.scheduler.v1.Job.name]) in the response. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job createJob(LocationName parent, Job job) { + + CreateJobRequest request = + CreateJobRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setJob(job) + .build(); + return createJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a job. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Job job = Job.newBuilder().build();
+ * Job response = cloudSchedulerClient.createJob(parent.toString(), job);
+ * }
+ *
+ *
+ * @param parent Required.
+ * The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`. + * @param job Required. + *
The job to add. The user can optionally specify a name for the job in + * [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] + * cannot be the same as an existing job. If a name is not specified then the system will + * generate a random unique name that will be returned + * ([name][google.cloud.scheduler.v1.Job.name]) in the response. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job createJob(String parent, Job job) { + + CreateJobRequest request = CreateJobRequest.newBuilder().setParent(parent).setJob(job).build(); + return createJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a job. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Job job = Job.newBuilder().build();
+ * CreateJobRequest request = CreateJobRequest.newBuilder()
+ * .setParent(parent.toString())
+ * .setJob(job)
+ * .build();
+ * Job response = cloudSchedulerClient.createJob(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Job createJob(CreateJobRequest request) {
+ return createJobCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Creates a job.
+ *
+ * Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Job job = Job.newBuilder().build();
+ * CreateJobRequest request = CreateJobRequest.newBuilder()
+ * .setParent(parent.toString())
+ * .setJob(job)
+ * .build();
+ * ApiFuture<Job> future = cloudSchedulerClient.createJobCallable().futureCall(request);
+ * // Do something
+ * Job response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallableIf successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does + * not exist, `NOT_FOUND` is returned. + * + *
If UpdateJob does not successfully return, it is possible for the job to be in an + * [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in + * this state may not be executed. If this happens, retry the UpdateJob request until a successful + * response is received. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * Job job = Job.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Job response = cloudSchedulerClient.updateJob(job, updateMask);
+ * }
+ *
+ *
+ * @param job Required.
+ * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. + *
Output only fields cannot be modified using UpdateJob. Any value specified for an output + * only field will be ignored. + * @param updateMask A mask used to specify which fields of the job are being updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job updateJob(Job job, FieldMask updateMask) { + + UpdateJobRequest request = + UpdateJobRequest.newBuilder().setJob(job).setUpdateMask(updateMask).build(); + return updateJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a job. + * + *
If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does + * not exist, `NOT_FOUND` is returned. + * + *
If UpdateJob does not successfully return, it is possible for the job to be in an + * [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in + * this state may not be executed. If this happens, retry the UpdateJob request until a successful + * response is received. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * Job job = Job.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * UpdateJobRequest request = UpdateJobRequest.newBuilder()
+ * .setJob(job)
+ * .setUpdateMask(updateMask)
+ * .build();
+ * Job response = cloudSchedulerClient.updateJob(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Job updateJob(UpdateJobRequest request) {
+ return updateJobCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Updates a job.
+ *
+ * If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does + * not exist, `NOT_FOUND` is returned. + * + *
If UpdateJob does not successfully return, it is possible for the job to be in an + * [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in + * this state may not be executed. If this happens, retry the UpdateJob request until a successful + * response is received. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * Job job = Job.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * UpdateJobRequest request = UpdateJobRequest.newBuilder()
+ * .setJob(job)
+ * .setUpdateMask(updateMask)
+ * .build();
+ * ApiFuture<Job> future = cloudSchedulerClient.updateJobCallable().futureCall(request);
+ * // Do something
+ * Job response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallableSample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * cloudSchedulerClient.deleteJob(name);
+ * }
+ *
+ *
+ * @param name Required.
+ * The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteJob(JobName name) { + + DeleteJobRequest request = + DeleteJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a job. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * cloudSchedulerClient.deleteJob(name.toString());
+ * }
+ *
+ *
+ * @param name Required.
+ * The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteJob(String name) { + + DeleteJobRequest request = DeleteJobRequest.newBuilder().setName(name).build(); + deleteJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a job. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * DeleteJobRequest request = DeleteJobRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * cloudSchedulerClient.deleteJob(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteJob(DeleteJobRequest request) {
+ deleteJobCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Deletes a job.
+ *
+ * Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * DeleteJobRequest request = DeleteJobRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * ApiFuture<Void> future = cloudSchedulerClient.deleteJobCallable().futureCall(request);
+ * // Do something
+ * future.get();
+ * }
+ *
+ */
+ public final UnaryCallableIf a job is paused then the system will stop executing the job until it is re-enabled via + * [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The state of the job is stored + * in [state][google.cloud.scheduler.v1.Job.state]; if paused it will be set to + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in + * [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED] to be paused. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * Job response = cloudSchedulerClient.pauseJob(name);
+ * }
+ *
+ *
+ * @param name Required.
+ * The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job pauseJob(JobName name) { + + PauseJobRequest request = + PauseJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return pauseJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Pauses a job. + * + *
If a job is paused then the system will stop executing the job until it is re-enabled via + * [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The state of the job is stored + * in [state][google.cloud.scheduler.v1.Job.state]; if paused it will be set to + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in + * [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED] to be paused. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * Job response = cloudSchedulerClient.pauseJob(name.toString());
+ * }
+ *
+ *
+ * @param name Required.
+ * The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job pauseJob(String name) { + + PauseJobRequest request = PauseJobRequest.newBuilder().setName(name).build(); + return pauseJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Pauses a job. + * + *
If a job is paused then the system will stop executing the job until it is re-enabled via + * [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The state of the job is stored + * in [state][google.cloud.scheduler.v1.Job.state]; if paused it will be set to + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in + * [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED] to be paused. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * PauseJobRequest request = PauseJobRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * Job response = cloudSchedulerClient.pauseJob(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Job pauseJob(PauseJobRequest request) {
+ return pauseJobCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Pauses a job.
+ *
+ * If a job is paused then the system will stop executing the job until it is re-enabled via + * [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The state of the job is stored + * in [state][google.cloud.scheduler.v1.Job.state]; if paused it will be set to + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in + * [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED] to be paused. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * PauseJobRequest request = PauseJobRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * ApiFuture<Job> future = cloudSchedulerClient.pauseJobCallable().futureCall(request);
+ * // Do something
+ * Job response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallableThis method reenables a job after it has been + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The state of a job is stored in + * [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it will be set to + * [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * Job response = cloudSchedulerClient.resumeJob(name);
+ * }
+ *
+ *
+ * @param name Required.
+ * The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job resumeJob(JobName name) { + + ResumeJobRequest request = + ResumeJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return resumeJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Resume a job. + * + *
This method reenables a job after it has been + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The state of a job is stored in + * [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it will be set to + * [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * Job response = cloudSchedulerClient.resumeJob(name.toString());
+ * }
+ *
+ *
+ * @param name Required.
+ * The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job resumeJob(String name) { + + ResumeJobRequest request = ResumeJobRequest.newBuilder().setName(name).build(); + return resumeJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Resume a job. + * + *
This method reenables a job after it has been + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The state of a job is stored in + * [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it will be set to + * [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * ResumeJobRequest request = ResumeJobRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * Job response = cloudSchedulerClient.resumeJob(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Job resumeJob(ResumeJobRequest request) {
+ return resumeJobCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Resume a job.
+ *
+ * This method reenables a job after it has been + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The state of a job is stored in + * [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it will be set to + * [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * ResumeJobRequest request = ResumeJobRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * ApiFuture<Job> future = cloudSchedulerClient.resumeJobCallable().futureCall(request);
+ * // Do something
+ * Job response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallableWhen this method is called, Cloud Scheduler will dispatch the job, even if the job is + * already running. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * Job response = cloudSchedulerClient.runJob(name);
+ * }
+ *
+ *
+ * @param name Required.
+ * The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job runJob(JobName name) { + + RunJobRequest request = + RunJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return runJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Forces a job to run now. + * + *
When this method is called, Cloud Scheduler will dispatch the job, even if the job is + * already running. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * Job response = cloudSchedulerClient.runJob(name.toString());
+ * }
+ *
+ *
+ * @param name Required.
+ * The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job runJob(String name) { + + RunJobRequest request = RunJobRequest.newBuilder().setName(name).build(); + return runJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Forces a job to run now. + * + *
When this method is called, Cloud Scheduler will dispatch the job, even if the job is + * already running. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * RunJobRequest request = RunJobRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * Job response = cloudSchedulerClient.runJob(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Job runJob(RunJobRequest request) {
+ return runJobCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Forces a job to run now.
+ *
+ * When this method is called, Cloud Scheduler will dispatch the job, even if the job is + * already running. + * + *
Sample code: + * + *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * RunJobRequest request = RunJobRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * ApiFuture<Job> future = cloudSchedulerClient.runJobCallable().futureCall(request);
+ * // Do something
+ * Job response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallableThe default instance has everything set to sensible defaults: + * + *
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 getJob to 30 seconds: + * + *
+ *
+ * CloudSchedulerSettings.Builder cloudSchedulerSettingsBuilder =
+ * CloudSchedulerSettings.newBuilder();
+ * cloudSchedulerSettingsBuilder.getJobSettings().getRetrySettings().toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30));
+ * CloudSchedulerSettings cloudSchedulerSettings = cloudSchedulerSettingsBuilder.build();
+ *
+ *
+ */
+@Generated("by gapic-generator")
+@BetaApi
+public class CloudSchedulerSettings extends ClientSettingsNote: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction The interfaces provided are listed below, along with usage samples.
+ *
+ * ==================== CloudSchedulerClient ====================
+ *
+ * Service Description: The Cloud Scheduler API allows external entities to reliably schedule
+ * asynchronous jobs.
+ *
+ * Sample for CloudSchedulerClient:
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator")
+@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+public abstract class CloudSchedulerStub implements BackgroundResource {
+
+ public UnaryCallable The default instance has everything set to sensible defaults:
+ *
+ * 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 getJob to 30 seconds:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class is for advanced usage.
+ */
+@Generated("by gapic-generator")
+@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+public class GrpcCloudSchedulerCallableFactory implements GrpcStubCallableFactory {
+ @Override
+ public This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator")
+@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+public class GrpcCloudSchedulerStub extends CloudSchedulerStub {
+
+ private static final MethodDescriptor
+ *
+ */
+package com.google.cloud.scheduler.v1;
diff --git a/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStub.java b/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStub.java
new file mode 100644
index 000000000000..d1f1dcd5cb1a
--- /dev/null
+++ b/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStub.java
@@ -0,0 +1,84 @@
+/*
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.scheduler.v1.stub;
+
+import static com.google.cloud.scheduler.v1.CloudSchedulerClient.ListJobsPagedResponse;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.scheduler.v1.CreateJobRequest;
+import com.google.cloud.scheduler.v1.DeleteJobRequest;
+import com.google.cloud.scheduler.v1.GetJobRequest;
+import com.google.cloud.scheduler.v1.Job;
+import com.google.cloud.scheduler.v1.ListJobsRequest;
+import com.google.cloud.scheduler.v1.ListJobsResponse;
+import com.google.cloud.scheduler.v1.PauseJobRequest;
+import com.google.cloud.scheduler.v1.ResumeJobRequest;
+import com.google.cloud.scheduler.v1.RunJobRequest;
+import com.google.cloud.scheduler.v1.UpdateJobRequest;
+import com.google.protobuf.Empty;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+/**
+ * Base stub class for Cloud Scheduler API.
+ *
+ *
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ * Job response = cloudSchedulerClient.getJob(name);
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ */
+@Generated("by gapic-generator")
+@BetaApi
+public class CloudSchedulerStubSettings extends StubSettings
+ * CloudSchedulerStubSettings.Builder cloudSchedulerSettingsBuilder =
+ * CloudSchedulerStubSettings.newBuilder();
+ * cloudSchedulerSettingsBuilder.getJobSettings().getRetrySettings().toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30));
+ * CloudSchedulerStubSettings cloudSchedulerSettings = cloudSchedulerSettingsBuilder.build();
+ *
+ *