diff --git a/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml
new file mode 100644
index 000000000000..d2742a56836d
--- /dev/null
+++ b/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/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/v1beta1/cloudscheduler.proto") +public final class CloudSchedulerGrpc { + + private CloudSchedulerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.scheduler.v1beta1.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
+ * The Cloud Scheduler API allows external entities to reliably + * schedule asynchronous jobs. + *+ */ + public static abstract class CloudSchedulerImplBase implements io.grpc.BindableService { + + /** + *
+ * Lists jobs. + *+ */ + public void listJobs(com.google.cloud.scheduler.v1beta1.ListJobsRequest request, + io.grpc.stub.StreamObserver
+ * Gets a job. + *+ */ + public void getJob(com.google.cloud.scheduler.v1beta1.GetJobRequest request, + io.grpc.stub.StreamObserver
+ * Creates a job. + *+ */ + public void createJob(com.google.cloud.scheduler.v1beta1.CreateJobRequest request, + io.grpc.stub.StreamObserver
+ * Updates a job. + * If successful, the updated [Job][google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.UpdateJobRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a job. + *+ */ + public void deleteJob(com.google.cloud.scheduler.v1beta1.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.v1beta1.CloudScheduler.ResumeJob]. The + * state of the job is stored in [state][google.cloud.scheduler.v1beta1.Job.state]; if paused it + * will be set to [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED] + * to be paused. + *+ */ + public void pauseJob(com.google.cloud.scheduler.v1beta1.PauseJobRequest request, + io.grpc.stub.StreamObserver
+ * Resume a job. + * This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. The + * state of a job is stored in [Job.state][google.cloud.scheduler.v1beta1.Job.state]; after calling this method it + * will be set to [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED]. A job must be in + * [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED] to be resumed. + *+ */ + public void resumeJob(com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.ListJobsRequest request, + io.grpc.stub.StreamObserver
+ * Gets a job. + *+ */ + public void getJob(com.google.cloud.scheduler.v1beta1.GetJobRequest request, + io.grpc.stub.StreamObserver
+ * Creates a job. + *+ */ + public void createJob(com.google.cloud.scheduler.v1beta1.CreateJobRequest request, + io.grpc.stub.StreamObserver
+ * Updates a job. + * If successful, the updated [Job][google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.UpdateJobRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a job. + *+ */ + public void deleteJob(com.google.cloud.scheduler.v1beta1.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.v1beta1.CloudScheduler.ResumeJob]. The + * state of the job is stored in [state][google.cloud.scheduler.v1beta1.Job.state]; if paused it + * will be set to [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED] + * to be paused. + *+ */ + public void pauseJob(com.google.cloud.scheduler.v1beta1.PauseJobRequest request, + io.grpc.stub.StreamObserver
+ * Resume a job. + * This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. The + * state of a job is stored in [Job.state][google.cloud.scheduler.v1beta1.Job.state]; after calling this method it + * will be set to [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED]. A job must be in + * [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED] to be resumed. + *+ */ + public void resumeJob(com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.ListJobsResponse listJobs(com.google.cloud.scheduler.v1beta1.ListJobsRequest request) { + return blockingUnaryCall( + getChannel(), getListJobsMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Gets a job. + *+ */ + public com.google.cloud.scheduler.v1beta1.Job getJob(com.google.cloud.scheduler.v1beta1.GetJobRequest request) { + return blockingUnaryCall( + getChannel(), getGetJobMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Creates a job. + *+ */ + public com.google.cloud.scheduler.v1beta1.Job createJob(com.google.cloud.scheduler.v1beta1.CreateJobRequest request) { + return blockingUnaryCall( + getChannel(), getCreateJobMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Updates a job. + * If successful, the updated [Job][google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.Job updateJob(com.google.cloud.scheduler.v1beta1.UpdateJobRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateJobMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Deletes a job. + *+ */ + public com.google.protobuf.Empty deleteJob(com.google.cloud.scheduler.v1beta1.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.v1beta1.CloudScheduler.ResumeJob]. The + * state of the job is stored in [state][google.cloud.scheduler.v1beta1.Job.state]; if paused it + * will be set to [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED] + * to be paused. + *+ */ + public com.google.cloud.scheduler.v1beta1.Job pauseJob(com.google.cloud.scheduler.v1beta1.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.v1beta1.Job.State.PAUSED]. The + * state of a job is stored in [Job.state][google.cloud.scheduler.v1beta1.Job.state]; after calling this method it + * will be set to [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED]. A job must be in + * [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED] to be resumed. + *+ */ + public com.google.cloud.scheduler.v1beta1.Job resumeJob(com.google.cloud.scheduler.v1beta1.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.v1beta1.Job runJob(com.google.cloud.scheduler.v1beta1.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
+ * 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.v1beta1.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.v1beta1.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.v1beta1.CloudScheduler.ResumeJob]. The + * state of the job is stored in [state][google.cloud.scheduler.v1beta1.Job.state]; if paused it + * will be set to [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1beta1.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.v1beta1.Job.State.PAUSED]. The + * state of a job is stored in [Job.state][google.cloud.scheduler.v1beta1.Job.state]; after calling this method it + * will be set to [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED]. A job must be in + * [Job.State.PAUSED][google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.AppEngineHttpTarget} + */ +public final class AppEngineHttpTarget extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1beta1.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.v1beta1.AppEngineRouting.Builder subBuilder = null; + if (appEngineRouting_ != null) { + subBuilder = appEngineRouting_.toBuilder(); + } + appEngineRouting_ = input.readMessage(com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.HttpMethod http_method = 1;
+ */
+ public com.google.cloud.scheduler.v1beta1.HttpMethod getHttpMethod() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.scheduler.v1beta1.HttpMethod result = com.google.cloud.scheduler.v1beta1.HttpMethod.valueOf(httpMethod_);
+ return result == null ? com.google.cloud.scheduler.v1beta1.HttpMethod.UNRECOGNIZED : result;
+ }
+
+ public static final int APP_ENGINE_ROUTING_FIELD_NUMBER = 2;
+ private com.google.cloud.scheduler.v1beta1.AppEngineRouting appEngineRouting_;
+ /**
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineRouting app_engine_routing = 2;
+ */
+ public boolean hasAppEngineRouting() {
+ return appEngineRouting_ != null;
+ }
+ /**
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineRouting app_engine_routing = 2;
+ */
+ public com.google.cloud.scheduler.v1beta1.AppEngineRouting getAppEngineRouting() {
+ return appEngineRouting_ == null ? com.google.cloud.scheduler.v1beta1.AppEngineRouting.getDefaultInstance() : appEngineRouting_;
+ }
+ /**
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineRouting app_engine_routing = 2;
+ */
+ public com.google.cloud.scheduler.v1beta1.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<
+ java.lang.String, java.lang.String> defaultEntry =
+ 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`. + * If the job has an [body][google.cloud.scheduler.v1beta1.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. See + * [Reading request headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler; see + * [request headers](https://cloud.google.comappengine/docs/standard/python/config/cron#securing_urls_for_cron). + *+ * + *
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`. + * If the job has an [body][google.cloud.scheduler.v1beta1.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. See + * [Reading request headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler; see + * [request headers](https://cloud.google.comappengine/docs/standard/python/config/cron#securing_urls_for_cron). + *+ * + *
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`. + * If the job has an [body][google.cloud.scheduler.v1beta1.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. See + * [Reading request headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler; see + * [request headers](https://cloud.google.comappengine/docs/standard/python/config/cron#securing_urls_for_cron). + *+ * + *
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`. + * If the job has an [body][google.cloud.scheduler.v1beta1.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. See + * [Reading request headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler; see + * [request headers](https://cloud.google.comappengine/docs/standard/python/config/cron#securing_urls_for_cron). + *+ * + *
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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.HttpMethod http_method = 1;
+ */
+ public com.google.cloud.scheduler.v1beta1.HttpMethod getHttpMethod() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.scheduler.v1beta1.HttpMethod result = com.google.cloud.scheduler.v1beta1.HttpMethod.valueOf(httpMethod_);
+ return result == null ? com.google.cloud.scheduler.v1beta1.HttpMethod.UNRECOGNIZED : result;
+ }
+ /**
+ * + * The HTTP method to use for the request. PATCH and OPTIONS are not + * permitted. + *+ * + *
.google.cloud.scheduler.v1beta1.HttpMethod http_method = 1;
+ */
+ public Builder setHttpMethod(com.google.cloud.scheduler.v1beta1.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.v1beta1.HttpMethod http_method = 1;
+ */
+ public Builder clearHttpMethod() {
+
+ httpMethod_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.scheduler.v1beta1.AppEngineRouting appEngineRouting_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1beta1.AppEngineRouting, com.google.cloud.scheduler.v1beta1.AppEngineRouting.Builder, com.google.cloud.scheduler.v1beta1.AppEngineRoutingOrBuilder> appEngineRoutingBuilder_;
+ /**
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineRouting app_engine_routing = 2;
+ */
+ public boolean hasAppEngineRouting() {
+ return appEngineRoutingBuilder_ != null || appEngineRouting_ != null;
+ }
+ /**
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineRouting app_engine_routing = 2;
+ */
+ public com.google.cloud.scheduler.v1beta1.AppEngineRouting getAppEngineRouting() {
+ if (appEngineRoutingBuilder_ == null) {
+ return appEngineRouting_ == null ? com.google.cloud.scheduler.v1beta1.AppEngineRouting.getDefaultInstance() : appEngineRouting_;
+ } else {
+ return appEngineRoutingBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineRouting app_engine_routing = 2;
+ */
+ public Builder setAppEngineRouting(com.google.cloud.scheduler.v1beta1.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.v1beta1.AppEngineRouting app_engine_routing = 2;
+ */
+ public Builder setAppEngineRouting(
+ com.google.cloud.scheduler.v1beta1.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.v1beta1.AppEngineRouting app_engine_routing = 2;
+ */
+ public Builder mergeAppEngineRouting(com.google.cloud.scheduler.v1beta1.AppEngineRouting value) {
+ if (appEngineRoutingBuilder_ == null) {
+ if (appEngineRouting_ != null) {
+ appEngineRouting_ =
+ com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.AppEngineRouting app_engine_routing = 2;
+ */
+ public com.google.cloud.scheduler.v1beta1.AppEngineRouting.Builder getAppEngineRoutingBuilder() {
+
+ onChanged();
+ return getAppEngineRoutingFieldBuilder().getBuilder();
+ }
+ /**
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineRouting app_engine_routing = 2;
+ */
+ public com.google.cloud.scheduler.v1beta1.AppEngineRoutingOrBuilder getAppEngineRoutingOrBuilder() {
+ if (appEngineRoutingBuilder_ != null) {
+ return appEngineRoutingBuilder_.getMessageOrBuilder();
+ } else {
+ return appEngineRouting_ == null ?
+ com.google.cloud.scheduler.v1beta1.AppEngineRouting.getDefaultInstance() : appEngineRouting_;
+ }
+ }
+ /**
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineRouting app_engine_routing = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1beta1.AppEngineRouting, com.google.cloud.scheduler.v1beta1.AppEngineRouting.Builder, com.google.cloud.scheduler.v1beta1.AppEngineRoutingOrBuilder>
+ getAppEngineRoutingFieldBuilder() {
+ if (appEngineRoutingBuilder_ == null) {
+ appEngineRoutingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1beta1.AppEngineRouting, com.google.cloud.scheduler.v1beta1.AppEngineRouting.Builder, com.google.cloud.scheduler.v1beta1.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<
+ java.lang.String, java.lang.String> headers_;
+ 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`. + * If the job has an [body][google.cloud.scheduler.v1beta1.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. See + * [Reading request headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler; see + * [request headers](https://cloud.google.comappengine/docs/standard/python/config/cron#securing_urls_for_cron). + *+ * + *
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`. + * If the job has an [body][google.cloud.scheduler.v1beta1.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. See + * [Reading request headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler; see + * [request headers](https://cloud.google.comappengine/docs/standard/python/config/cron#securing_urls_for_cron). + *+ * + *
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`. + * If the job has an [body][google.cloud.scheduler.v1beta1.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. See + * [Reading request headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler; see + * [request headers](https://cloud.google.comappengine/docs/standard/python/config/cron#securing_urls_for_cron). + *+ * + *
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`. + * If the job has an [body][google.cloud.scheduler.v1beta1.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. See + * [Reading request headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler; see + * [request headers](https://cloud.google.comappengine/docs/standard/python/config/cron#securing_urls_for_cron). + *+ * + *
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`. + * If the job has an [body][google.cloud.scheduler.v1beta1.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. See + * [Reading request headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler; see + * [request headers](https://cloud.google.comappengine/docs/standard/python/config/cron#securing_urls_for_cron). + *+ * + *
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`. + * If the job has an [body][google.cloud.scheduler.v1beta1.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. See + * [Reading request headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler; see + * [request headers](https://cloud.google.comappengine/docs/standard/python/config/cron#securing_urls_for_cron). + *+ * + *
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`. + * If the job has an [body][google.cloud.scheduler.v1beta1.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. See + * [Reading request headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler; see + * [request headers](https://cloud.google.comappengine/docs/standard/python/config/cron#securing_urls_for_cron). + *+ * + *
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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AppEngineHttpTarget)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.AppEngineHttpTarget)
+ private static final com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget();
+ }
+
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.HttpMethod http_method = 1;
+ */
+ int getHttpMethodValue();
+ /**
+ * + * The HTTP method to use for the request. PATCH and OPTIONS are not + * permitted. + *+ * + *
.google.cloud.scheduler.v1beta1.HttpMethod http_method = 1;
+ */
+ com.google.cloud.scheduler.v1beta1.HttpMethod getHttpMethod();
+
+ /**
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineRouting app_engine_routing = 2;
+ */
+ boolean hasAppEngineRouting();
+ /**
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineRouting app_engine_routing = 2;
+ */
+ com.google.cloud.scheduler.v1beta1.AppEngineRouting getAppEngineRouting();
+ /**
+ * + * App Engine Routing setting for the job. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineRouting app_engine_routing = 2;
+ */
+ com.google.cloud.scheduler.v1beta1.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`. + * If the job has an [body][google.cloud.scheduler.v1beta1.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. See + * [Reading request headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler; see + * [request headers](https://cloud.google.comappengine/docs/standard/python/config/cron#securing_urls_for_cron). + *+ * + *
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`. + * If the job has an [body][google.cloud.scheduler.v1beta1.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. See + * [Reading request headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler; see + * [request headers](https://cloud.google.comappengine/docs/standard/python/config/cron#securing_urls_for_cron). + *+ * + *
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`. + * If the job has an [body][google.cloud.scheduler.v1beta1.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. See + * [Reading request headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler; see + * [request headers](https://cloud.google.comappengine/docs/standard/python/config/cron#securing_urls_for_cron). + *+ * + *
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`. + * If the job has an [body][google.cloud.scheduler.v1beta1.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. See + * [Reading request headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler; see + * [request headers](https://cloud.google.comappengine/docs/standard/python/config/cron#securing_urls_for_cron). + *+ * + *
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`. + * If the job has an [body][google.cloud.scheduler.v1beta1.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. See + * [Reading request headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * In addition, some App Engine headers, which contain + * job-specific information, are also be sent to the job handler; see + * [request headers](https://cloud.google.comappengine/docs/standard/python/config/cron#securing_urls_for_cron). + *+ * + *
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.v1beta1.HttpMethod]. + *+ * + *
bytes body = 5;
+ */
+ com.google.protobuf.ByteString getBody();
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/AppEngineRouting.java b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/AppEngineRouting.java
new file mode 100644
index 000000000000..5e36c2082f86
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/AppEngineRouting.java
@@ -0,0 +1,1409 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1beta1/target.proto
+
+package com.google.cloud.scheduler.v1beta1;
+
+/**
+ * + * 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.v1beta1.AppEngineRouting} + */ +public final class AppEngineRouting extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1beta1.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.v1beta1.TargetProto.internal_static_google_cloud_scheduler_v1beta1_AppEngineRouting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1beta1.TargetProto.internal_static_google_cloud_scheduler_v1beta1_AppEngineRouting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1beta1.AppEngineRouting.class, com.google.cloud.scheduler.v1beta1.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.v1beta1.AppEngineRouting.service] + * * `version =` [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] + * * `version_dot_service =` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * * `instance =` [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] + * * `instance_dot_service =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * * `instance_dot_version =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] + * * `instance_dot_version_dot_service =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * If [service][google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AppEngineRouting.service], + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version], or + * [instance][google.cloud.scheduler.v1beta1.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.v1beta1.AppEngineRouting.service] + * * `version =` [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] + * * `version_dot_service =` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * * `instance =` [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] + * * `instance_dot_service =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * * `instance_dot_version =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] + * * `instance_dot_version_dot_service =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * If [service][google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AppEngineRouting.service], + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version], or + * [instance][google.cloud.scheduler.v1beta1.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.v1beta1.AppEngineRouting)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1beta1.AppEngineRouting other = (com.google.cloud.scheduler.v1beta1.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.v1beta1.AppEngineRouting parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.AppEngineRouting parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.AppEngineRouting parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.AppEngineRouting parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.AppEngineRouting parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AppEngineRouting.service] + * * `version =` [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] + * * `version_dot_service =` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * * `instance =` [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] + * * `instance_dot_service =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * * `instance_dot_version =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] + * * `instance_dot_version_dot_service =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * If [service][google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AppEngineRouting.service], + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version], or + * [instance][google.cloud.scheduler.v1beta1.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.v1beta1.AppEngineRouting.service] + * * `version =` [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] + * * `version_dot_service =` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * * `instance =` [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] + * * `instance_dot_service =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * * `instance_dot_version =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] + * * `instance_dot_version_dot_service =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * If [service][google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AppEngineRouting.service], + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version], or + * [instance][google.cloud.scheduler.v1beta1.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.v1beta1.AppEngineRouting.service] + * * `version =` [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] + * * `version_dot_service =` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * * `instance =` [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] + * * `instance_dot_service =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * * `instance_dot_version =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] + * * `instance_dot_version_dot_service =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * If [service][google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AppEngineRouting.service], + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version], or + * [instance][google.cloud.scheduler.v1beta1.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.v1beta1.AppEngineRouting.service] + * * `version =` [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] + * * `version_dot_service =` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * * `instance =` [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] + * * `instance_dot_service =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * * `instance_dot_version =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] + * * `instance_dot_version_dot_service =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * If [service][google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AppEngineRouting.service], + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version], or + * [instance][google.cloud.scheduler.v1beta1.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.v1beta1.AppEngineRouting.service] + * * `version =` [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] + * * `version_dot_service =` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * * `instance =` [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] + * * `instance_dot_service =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * * `instance_dot_version =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] + * * `instance_dot_version_dot_service =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * If [service][google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AppEngineRouting.service], + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version], or + * [instance][google.cloud.scheduler.v1beta1.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.v1beta1.AppEngineRouting)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.AppEngineRouting)
+ private static final com.google.cloud.scheduler.v1beta1.AppEngineRouting DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1beta1.AppEngineRouting();
+ }
+
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.AppEngineRouting.service] + * * `version =` [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] + * * `version_dot_service =` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * * `instance =` [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] + * * `instance_dot_service =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * * `instance_dot_version =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] + * * `instance_dot_version_dot_service =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * If [service][google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AppEngineRouting.service], + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version], or + * [instance][google.cloud.scheduler.v1beta1.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.v1beta1.AppEngineRouting.service] + * * `version =` [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] + * * `version_dot_service =` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * * `instance =` [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] + * * `instance_dot_service =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * * `instance_dot_version =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] + * * `instance_dot_version_dot_service =` + * [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` + * [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] + * If [service][google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AppEngineRouting.service], + * [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version], or + * [instance][google.cloud.scheduler.v1beta1.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-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/CreateJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/CreateJobRequest.java
new file mode 100644
index 000000000000..de28463143cf
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/CreateJobRequest.java
@@ -0,0 +1,880 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1beta1/cloudscheduler.proto
+
+package com.google.cloud.scheduler.v1beta1;
+
+/**
+ * + * Request message for [CreateJob][google.cloud.scheduler.v1beta1.CloudScheduler.CreateJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1beta1.CreateJobRequest} + */ +public final class CreateJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1beta1.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.v1beta1.Job.Builder subBuilder = null; + if (job_ != null) { + subBuilder = job_.toBuilder(); + } + job_ = input.readMessage(com.google.cloud.scheduler.v1beta1.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.v1beta1.SchedulerProto.internal_static_google_cloud_scheduler_v1beta1_CreateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1beta1.SchedulerProto.internal_static_google_cloud_scheduler_v1beta1_CreateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1beta1.CreateJobRequest.class, com.google.cloud.scheduler.v1beta1.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.v1beta1.Job job_;
+ /**
+ * + * Required. + * The job to add. The user can optionally specify a name for the + * job in [name][google.cloud.scheduler.v1beta1.Job.name]. [name][google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]. [name][google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1beta1.Job job = 2;
+ */
+ public com.google.cloud.scheduler.v1beta1.Job getJob() {
+ return job_ == null ? com.google.cloud.scheduler.v1beta1.Job.getDefaultInstance() : job_;
+ }
+ /**
+ * + * Required. + * The job to add. The user can optionally specify a name for the + * job in [name][google.cloud.scheduler.v1beta1.Job.name]. [name][google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1beta1.Job job = 2;
+ */
+ public com.google.cloud.scheduler.v1beta1.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.v1beta1.CreateJobRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1beta1.CreateJobRequest other = (com.google.cloud.scheduler.v1beta1.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.v1beta1.CreateJobRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.CreateJobRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.CreateJobRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.CreateJobRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.CreateJobRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CloudScheduler.CreateJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1beta1.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.v1beta1.Job job_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1beta1.Job, com.google.cloud.scheduler.v1beta1.Job.Builder, com.google.cloud.scheduler.v1beta1.JobOrBuilder> jobBuilder_;
+ /**
+ * + * Required. + * The job to add. The user can optionally specify a name for the + * job in [name][google.cloud.scheduler.v1beta1.Job.name]. [name][google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]. [name][google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1beta1.Job job = 2;
+ */
+ public com.google.cloud.scheduler.v1beta1.Job getJob() {
+ if (jobBuilder_ == null) {
+ return job_ == null ? com.google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]. [name][google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1beta1.Job job = 2;
+ */
+ public Builder setJob(com.google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]. [name][google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1beta1.Job job = 2;
+ */
+ public Builder setJob(
+ com.google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]. [name][google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1beta1.Job job = 2;
+ */
+ public Builder mergeJob(com.google.cloud.scheduler.v1beta1.Job value) {
+ if (jobBuilder_ == null) {
+ if (job_ != null) {
+ job_ =
+ com.google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]. [name][google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]. [name][google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1beta1.Job job = 2;
+ */
+ public com.google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]. [name][google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1beta1.Job job = 2;
+ */
+ public com.google.cloud.scheduler.v1beta1.JobOrBuilder getJobOrBuilder() {
+ if (jobBuilder_ != null) {
+ return jobBuilder_.getMessageOrBuilder();
+ } else {
+ return job_ == null ?
+ com.google.cloud.scheduler.v1beta1.Job.getDefaultInstance() : job_;
+ }
+ }
+ /**
+ * + * Required. + * The job to add. The user can optionally specify a name for the + * job in [name][google.cloud.scheduler.v1beta1.Job.name]. [name][google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1beta1.Job job = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1beta1.Job, com.google.cloud.scheduler.v1beta1.Job.Builder, com.google.cloud.scheduler.v1beta1.JobOrBuilder>
+ getJobFieldBuilder() {
+ if (jobBuilder_ == null) {
+ jobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1beta1.Job, com.google.cloud.scheduler.v1beta1.Job.Builder, com.google.cloud.scheduler.v1beta1.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.v1beta1.CreateJobRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.CreateJobRequest)
+ private static final com.google.cloud.scheduler.v1beta1.CreateJobRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1beta1.CreateJobRequest();
+ }
+
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]. [name][google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]. [name][google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1beta1.Job job = 2;
+ */
+ com.google.cloud.scheduler.v1beta1.Job getJob();
+ /**
+ * + * Required. + * The job to add. The user can optionally specify a name for the + * job in [name][google.cloud.scheduler.v1beta1.Job.name]. [name][google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]) in the response. + *+ * + *
.google.cloud.scheduler.v1beta1.Job job = 2;
+ */
+ com.google.cloud.scheduler.v1beta1.JobOrBuilder getJobOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/DeleteJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/DeleteJobRequest.java
new file mode 100644
index 000000000000..220f64b8d4d7
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/DeleteJobRequest.java
@@ -0,0 +1,593 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1beta1/cloudscheduler.proto
+
+package com.google.cloud.scheduler.v1beta1;
+
+/**
+ * + * Request message for deleting a job using + * [DeleteJob][google.cloud.scheduler.v1beta1.CloudScheduler.DeleteJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1beta1.DeleteJobRequest} + */ +public final class DeleteJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1beta1.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.v1beta1.SchedulerProto.internal_static_google_cloud_scheduler_v1beta1_DeleteJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1beta1.SchedulerProto.internal_static_google_cloud_scheduler_v1beta1_DeleteJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1beta1.DeleteJobRequest.class, com.google.cloud.scheduler.v1beta1.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.v1beta1.DeleteJobRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1beta1.DeleteJobRequest other = (com.google.cloud.scheduler.v1beta1.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.v1beta1.DeleteJobRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.DeleteJobRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.DeleteJobRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.DeleteJobRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.DeleteJobRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CloudScheduler.DeleteJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1beta1.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.v1beta1.DeleteJobRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.DeleteJobRequest)
+ private static final com.google.cloud.scheduler.v1beta1.DeleteJobRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1beta1.DeleteJobRequest();
+ }
+
+ public static com.google.cloud.scheduler.v1beta1.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-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/GetJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/GetJobRequest.java
new file mode 100644
index 000000000000..b4aa93f3baf8
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/GetJobRequest.java
@@ -0,0 +1,591 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1beta1/cloudscheduler.proto
+
+package com.google.cloud.scheduler.v1beta1;
+
+/**
+ * + * Request message for [GetJob][google.cloud.scheduler.v1beta1.CloudScheduler.GetJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1beta1.GetJobRequest} + */ +public final class GetJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1beta1.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.v1beta1.SchedulerProto.internal_static_google_cloud_scheduler_v1beta1_GetJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1beta1.SchedulerProto.internal_static_google_cloud_scheduler_v1beta1_GetJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1beta1.GetJobRequest.class, com.google.cloud.scheduler.v1beta1.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.v1beta1.GetJobRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1beta1.GetJobRequest other = (com.google.cloud.scheduler.v1beta1.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.v1beta1.GetJobRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.GetJobRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.GetJobRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.GetJobRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.GetJobRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CloudScheduler.GetJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1beta1.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.v1beta1.GetJobRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.GetJobRequest)
+ private static final com.google.cloud.scheduler.v1beta1.GetJobRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1beta1.GetJobRequest();
+ }
+
+ public static com.google.cloud.scheduler.v1beta1.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-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/HttpMethod.java b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/HttpMethod.java
new file mode 100644
index 000000000000..2e2c53317be5
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/HttpMethod.java
@@ -0,0 +1,225 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1beta1/target.proto
+
+package com.google.cloud.scheduler.v1beta1;
+
+/**
+ * + * The HTTP method used to execute the job. + *+ * + * Protobuf enum {@code google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.HttpTarget} + */ +public final class HttpTarget extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.HttpMethod http_method = 2;
+ */
+ public int getHttpMethodValue() {
+ return httpMethod_;
+ }
+ /**
+ * + * Which HTTP method to use for the request. + *+ * + *
.google.cloud.scheduler.v1beta1.HttpMethod http_method = 2;
+ */
+ public com.google.cloud.scheduler.v1beta1.HttpMethod getHttpMethod() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.scheduler.v1beta1.HttpMethod result = com.google.cloud.scheduler.v1beta1.HttpMethod.valueOf(httpMethod_);
+ return result == null ? com.google.cloud.scheduler.v1beta1.HttpMethod.UNRECOGNIZED : result;
+ }
+
+ public static final int HEADERS_FIELD_NUMBER = 3;
+ private static final class HeadersDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ 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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.HttpMethod http_method = 2;
+ */
+ public int getHttpMethodValue() {
+ return httpMethod_;
+ }
+ /**
+ * + * Which HTTP method to use for the request. + *+ * + *
.google.cloud.scheduler.v1beta1.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.v1beta1.HttpMethod http_method = 2;
+ */
+ public com.google.cloud.scheduler.v1beta1.HttpMethod getHttpMethod() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.scheduler.v1beta1.HttpMethod result = com.google.cloud.scheduler.v1beta1.HttpMethod.valueOf(httpMethod_);
+ return result == null ? com.google.cloud.scheduler.v1beta1.HttpMethod.UNRECOGNIZED : result;
+ }
+ /**
+ * + * Which HTTP method to use for the request. + *+ * + *
.google.cloud.scheduler.v1beta1.HttpMethod http_method = 2;
+ */
+ public Builder setHttpMethod(com.google.cloud.scheduler.v1beta1.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.v1beta1.HttpMethod http_method = 2;
+ */
+ public Builder clearHttpMethod() {
+
+ httpMethod_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> headers_;
+ 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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.HttpTarget)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.HttpTarget)
+ private static final com.google.cloud.scheduler.v1beta1.HttpTarget DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1beta1.HttpTarget();
+ }
+
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.HttpMethod http_method = 2;
+ */
+ int getHttpMethodValue();
+ /**
+ * + * Which HTTP method to use for the request. + *+ * + *
.google.cloud.scheduler.v1beta1.HttpMethod http_method = 2;
+ */
+ com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.HttpMethod]. + *+ * + *
bytes body = 4;
+ */
+ com.google.protobuf.ByteString getBody();
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/Job.java b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/Job.java
new file mode 100644
index 000000000000..ad589f207535
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/Job.java
@@ -0,0 +1,3574 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1beta1/job.proto
+
+package com.google.cloud.scheduler.v1beta1;
+
+/**
+ * + * Configuration for a job. + * The maximum allowed size for a job is 100KB. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1beta1.Job} + */ +public final class Job extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1beta1.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.v1beta1.PubsubTarget.Builder subBuilder = null; + if (targetCase_ == 4) { + subBuilder = ((com.google.cloud.scheduler.v1beta1.PubsubTarget) target_).toBuilder(); + } + target_ = + input.readMessage(com.google.cloud.scheduler.v1beta1.PubsubTarget.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.scheduler.v1beta1.PubsubTarget) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 4; + break; + } + case 42: { + com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget.Builder subBuilder = null; + if (targetCase_ == 5) { + subBuilder = ((com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget) target_).toBuilder(); + } + target_ = + input.readMessage(com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 5; + break; + } + case 50: { + com.google.cloud.scheduler.v1beta1.HttpTarget.Builder subBuilder = null; + if (targetCase_ == 6) { + subBuilder = ((com.google.cloud.scheduler.v1beta1.HttpTarget) target_).toBuilder(); + } + target_ = + input.readMessage(com.google.cloud.scheduler.v1beta1.HttpTarget.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.scheduler.v1beta1.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.v1beta1.RetryConfig.Builder subBuilder = null; + if (retryConfig_ != null) { + subBuilder = retryConfig_.toBuilder(); + } + retryConfig_ = input.readMessage(com.google.cloud.scheduler.v1beta1.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.v1beta1.JobProto.internal_static_google_cloud_scheduler_v1beta1_Job_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1beta1.JobProto.internal_static_google_cloud_scheduler_v1beta1_Job_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1beta1.Job.class, com.google.cloud.scheduler.v1beta1.Job.Builder.class); + } + + /** + *
+ * State of the job. + *+ * + * Protobuf enum {@code google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.CloudScheduler.UpdateJob] + * operation. To recover a job from this state, retry + * [CloudScheduler.UpdateJob][google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.CloudScheduler.UpdateJob] + * operation. To recover a job from this state, retry + * [CloudScheduler.UpdateJob][google.cloud.scheduler.v1beta1.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+ * 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;
+ }
+ }
+ /**
+ * + * 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_;
+ /**
+ * + * 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;
+ }
+ }
+ /**
+ * + * 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.v1beta1.PubsubTarget pubsub_target = 4;
+ */
+ public boolean hasPubsubTarget() {
+ return targetCase_ == 4;
+ }
+ /**
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;
+ */
+ public com.google.cloud.scheduler.v1beta1.PubsubTarget getPubsubTarget() {
+ if (targetCase_ == 4) {
+ return (com.google.cloud.scheduler.v1beta1.PubsubTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1beta1.PubsubTarget.getDefaultInstance();
+ }
+ /**
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;
+ */
+ public com.google.cloud.scheduler.v1beta1.PubsubTargetOrBuilder getPubsubTargetOrBuilder() {
+ if (targetCase_ == 4) {
+ return (com.google.cloud.scheduler.v1beta1.PubsubTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1beta1.PubsubTarget.getDefaultInstance();
+ }
+
+ public static final int APP_ENGINE_HTTP_TARGET_FIELD_NUMBER = 5;
+ /**
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public boolean hasAppEngineHttpTarget() {
+ return targetCase_ == 5;
+ }
+ /**
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget getAppEngineHttpTarget() {
+ if (targetCase_ == 5) {
+ return (com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget.getDefaultInstance();
+ }
+ /**
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public com.google.cloud.scheduler.v1beta1.AppEngineHttpTargetOrBuilder getAppEngineHttpTargetOrBuilder() {
+ if (targetCase_ == 5) {
+ return (com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget.getDefaultInstance();
+ }
+
+ public static final int HTTP_TARGET_FIELD_NUMBER = 6;
+ /**
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;
+ */
+ public boolean hasHttpTarget() {
+ return targetCase_ == 6;
+ }
+ /**
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;
+ */
+ public com.google.cloud.scheduler.v1beta1.HttpTarget getHttpTarget() {
+ if (targetCase_ == 6) {
+ return (com.google.cloud.scheduler.v1beta1.HttpTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1beta1.HttpTarget.getDefaultInstance();
+ }
+ /**
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;
+ */
+ public com.google.cloud.scheduler.v1beta1.HttpTargetOrBuilder getHttpTargetOrBuilder() {
+ if (targetCase_ == 6) {
+ return (com.google.cloud.scheduler.v1beta1.HttpTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1beta1.HttpTarget.getDefaultInstance();
+ }
+
+ public static final int SCHEDULE_FIELD_NUMBER = 20;
+ private volatile java.lang.Object schedule_;
+ /**
+ * + * Required. + * Describes the schedule on which the job will be executed. + * 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.v1beta1.RetryConfig.retry_count] > 0 and a job attempt fails, + * the job will be tried a total of [retry_count][google.cloud.scheduler.v1beta1.RetryConfig.retry_count] + * times, with exponential backoff, until the next scheduled start + * time. + * 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) + *+ * + *
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. + * Describes the schedule on which the job will be executed. + * 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.v1beta1.RetryConfig.retry_count] > 0 and a job attempt fails, + * the job will be tried a total of [retry_count][google.cloud.scheduler.v1beta1.RetryConfig.retry_count] + * times, with exponential backoff, until the next scheduled start + * time. + * 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) + *+ * + *
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.v1beta1.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.v1beta1.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.v1beta1.Job.State state = 10;
+ */
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ * + * Output only. State of the job. + *+ * + *
.google.cloud.scheduler.v1beta1.Job.State state = 10;
+ */
+ public com.google.cloud.scheduler.v1beta1.Job.State getState() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.scheduler.v1beta1.Job.State result = com.google.cloud.scheduler.v1beta1.Job.State.valueOf(state_);
+ return result == null ? com.google.cloud.scheduler.v1beta1.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.v1beta1.RetryConfig retryConfig_;
+ /**
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;
+ */
+ public boolean hasRetryConfig() {
+ return retryConfig_ != null;
+ }
+ /**
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;
+ */
+ public com.google.cloud.scheduler.v1beta1.RetryConfig getRetryConfig() {
+ return retryConfig_ == null ? com.google.cloud.scheduler.v1beta1.RetryConfig.getDefaultInstance() : retryConfig_;
+ }
+ /**
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;
+ */
+ public com.google.cloud.scheduler.v1beta1.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.v1beta1.PubsubTarget) target_);
+ }
+ if (targetCase_ == 5) {
+ output.writeMessage(5, (com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget) target_);
+ }
+ if (targetCase_ == 6) {
+ output.writeMessage(6, (com.google.cloud.scheduler.v1beta1.HttpTarget) target_);
+ }
+ if (userUpdateTime_ != null) {
+ output.writeMessage(9, getUserUpdateTime());
+ }
+ if (state_ != com.google.cloud.scheduler.v1beta1.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.v1beta1.PubsubTarget) target_);
+ }
+ if (targetCase_ == 5) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(5, (com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget) target_);
+ }
+ if (targetCase_ == 6) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, (com.google.cloud.scheduler.v1beta1.HttpTarget) target_);
+ }
+ if (userUpdateTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(9, getUserUpdateTime());
+ }
+ if (state_ != com.google.cloud.scheduler.v1beta1.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.v1beta1.Job)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1beta1.Job other = (com.google.cloud.scheduler.v1beta1.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.v1beta1.Job parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.Job parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.Job parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.Job parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.Job parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Job} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * 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;
+ }
+ }
+ /**
+ * + * 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;
+ }
+ }
+ /**
+ * + * 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;
+ }
+ /**
+ * + * 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;
+ }
+ /**
+ * + * 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_ = "";
+ /**
+ * + * 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;
+ }
+ }
+ /**
+ * + * 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;
+ }
+ }
+ /**
+ * + * 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;
+ }
+ /**
+ * + * 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;
+ }
+ /**
+ * + * 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.v1beta1.PubsubTarget, com.google.cloud.scheduler.v1beta1.PubsubTarget.Builder, com.google.cloud.scheduler.v1beta1.PubsubTargetOrBuilder> pubsubTargetBuilder_;
+ /**
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;
+ */
+ public boolean hasPubsubTarget() {
+ return targetCase_ == 4;
+ }
+ /**
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;
+ */
+ public com.google.cloud.scheduler.v1beta1.PubsubTarget getPubsubTarget() {
+ if (pubsubTargetBuilder_ == null) {
+ if (targetCase_ == 4) {
+ return (com.google.cloud.scheduler.v1beta1.PubsubTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1beta1.PubsubTarget.getDefaultInstance();
+ } else {
+ if (targetCase_ == 4) {
+ return pubsubTargetBuilder_.getMessage();
+ }
+ return com.google.cloud.scheduler.v1beta1.PubsubTarget.getDefaultInstance();
+ }
+ }
+ /**
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;
+ */
+ public Builder setPubsubTarget(com.google.cloud.scheduler.v1beta1.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.v1beta1.PubsubTarget pubsub_target = 4;
+ */
+ public Builder setPubsubTarget(
+ com.google.cloud.scheduler.v1beta1.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.v1beta1.PubsubTarget pubsub_target = 4;
+ */
+ public Builder mergePubsubTarget(com.google.cloud.scheduler.v1beta1.PubsubTarget value) {
+ if (pubsubTargetBuilder_ == null) {
+ if (targetCase_ == 4 &&
+ target_ != com.google.cloud.scheduler.v1beta1.PubsubTarget.getDefaultInstance()) {
+ target_ = com.google.cloud.scheduler.v1beta1.PubsubTarget.newBuilder((com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.PubsubTarget pubsub_target = 4;
+ */
+ public com.google.cloud.scheduler.v1beta1.PubsubTarget.Builder getPubsubTargetBuilder() {
+ return getPubsubTargetFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;
+ */
+ public com.google.cloud.scheduler.v1beta1.PubsubTargetOrBuilder getPubsubTargetOrBuilder() {
+ if ((targetCase_ == 4) && (pubsubTargetBuilder_ != null)) {
+ return pubsubTargetBuilder_.getMessageOrBuilder();
+ } else {
+ if (targetCase_ == 4) {
+ return (com.google.cloud.scheduler.v1beta1.PubsubTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1beta1.PubsubTarget.getDefaultInstance();
+ }
+ }
+ /**
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1beta1.PubsubTarget, com.google.cloud.scheduler.v1beta1.PubsubTarget.Builder, com.google.cloud.scheduler.v1beta1.PubsubTargetOrBuilder>
+ getPubsubTargetFieldBuilder() {
+ if (pubsubTargetBuilder_ == null) {
+ if (!(targetCase_ == 4)) {
+ target_ = com.google.cloud.scheduler.v1beta1.PubsubTarget.getDefaultInstance();
+ }
+ pubsubTargetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1beta1.PubsubTarget, com.google.cloud.scheduler.v1beta1.PubsubTarget.Builder, com.google.cloud.scheduler.v1beta1.PubsubTargetOrBuilder>(
+ (com.google.cloud.scheduler.v1beta1.PubsubTarget) target_,
+ getParentForChildren(),
+ isClean());
+ target_ = null;
+ }
+ targetCase_ = 4;
+ onChanged();;
+ return pubsubTargetBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget, com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget.Builder, com.google.cloud.scheduler.v1beta1.AppEngineHttpTargetOrBuilder> appEngineHttpTargetBuilder_;
+ /**
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public boolean hasAppEngineHttpTarget() {
+ return targetCase_ == 5;
+ }
+ /**
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget getAppEngineHttpTarget() {
+ if (appEngineHttpTargetBuilder_ == null) {
+ if (targetCase_ == 5) {
+ return (com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget.getDefaultInstance();
+ } else {
+ if (targetCase_ == 5) {
+ return appEngineHttpTargetBuilder_.getMessage();
+ }
+ return com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget.getDefaultInstance();
+ }
+ }
+ /**
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public Builder setAppEngineHttpTarget(com.google.cloud.scheduler.v1beta1.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.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public Builder setAppEngineHttpTarget(
+ com.google.cloud.scheduler.v1beta1.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.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public Builder mergeAppEngineHttpTarget(com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget value) {
+ if (appEngineHttpTargetBuilder_ == null) {
+ if (targetCase_ == 5 &&
+ target_ != com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget.getDefaultInstance()) {
+ target_ = com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget.newBuilder((com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget.Builder getAppEngineHttpTargetBuilder() {
+ return getAppEngineHttpTargetFieldBuilder().getBuilder();
+ }
+ /**
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ public com.google.cloud.scheduler.v1beta1.AppEngineHttpTargetOrBuilder getAppEngineHttpTargetOrBuilder() {
+ if ((targetCase_ == 5) && (appEngineHttpTargetBuilder_ != null)) {
+ return appEngineHttpTargetBuilder_.getMessageOrBuilder();
+ } else {
+ if (targetCase_ == 5) {
+ return (com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget.getDefaultInstance();
+ }
+ }
+ /**
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget, com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget.Builder, com.google.cloud.scheduler.v1beta1.AppEngineHttpTargetOrBuilder>
+ getAppEngineHttpTargetFieldBuilder() {
+ if (appEngineHttpTargetBuilder_ == null) {
+ if (!(targetCase_ == 5)) {
+ target_ = com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget.getDefaultInstance();
+ }
+ appEngineHttpTargetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget, com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget.Builder, com.google.cloud.scheduler.v1beta1.AppEngineHttpTargetOrBuilder>(
+ (com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget) target_,
+ getParentForChildren(),
+ isClean());
+ target_ = null;
+ }
+ targetCase_ = 5;
+ onChanged();;
+ return appEngineHttpTargetBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1beta1.HttpTarget, com.google.cloud.scheduler.v1beta1.HttpTarget.Builder, com.google.cloud.scheduler.v1beta1.HttpTargetOrBuilder> httpTargetBuilder_;
+ /**
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;
+ */
+ public boolean hasHttpTarget() {
+ return targetCase_ == 6;
+ }
+ /**
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;
+ */
+ public com.google.cloud.scheduler.v1beta1.HttpTarget getHttpTarget() {
+ if (httpTargetBuilder_ == null) {
+ if (targetCase_ == 6) {
+ return (com.google.cloud.scheduler.v1beta1.HttpTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1beta1.HttpTarget.getDefaultInstance();
+ } else {
+ if (targetCase_ == 6) {
+ return httpTargetBuilder_.getMessage();
+ }
+ return com.google.cloud.scheduler.v1beta1.HttpTarget.getDefaultInstance();
+ }
+ }
+ /**
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;
+ */
+ public Builder setHttpTarget(com.google.cloud.scheduler.v1beta1.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.v1beta1.HttpTarget http_target = 6;
+ */
+ public Builder setHttpTarget(
+ com.google.cloud.scheduler.v1beta1.HttpTarget.Builder builderForValue) {
+ if (httpTargetBuilder_ == null) {
+ target_ = builderForValue.build();
+ onChanged();
+ } else {
+ httpTargetBuilder_.setMessage(builderForValue.build());
+ }
+ targetCase_ = 6;
+ return this;
+ }
+ /**
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;
+ */
+ public Builder mergeHttpTarget(com.google.cloud.scheduler.v1beta1.HttpTarget value) {
+ if (httpTargetBuilder_ == null) {
+ if (targetCase_ == 6 &&
+ target_ != com.google.cloud.scheduler.v1beta1.HttpTarget.getDefaultInstance()) {
+ target_ = com.google.cloud.scheduler.v1beta1.HttpTarget.newBuilder((com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.HttpTarget http_target = 6;
+ */
+ public com.google.cloud.scheduler.v1beta1.HttpTarget.Builder getHttpTargetBuilder() {
+ return getHttpTargetFieldBuilder().getBuilder();
+ }
+ /**
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;
+ */
+ public com.google.cloud.scheduler.v1beta1.HttpTargetOrBuilder getHttpTargetOrBuilder() {
+ if ((targetCase_ == 6) && (httpTargetBuilder_ != null)) {
+ return httpTargetBuilder_.getMessageOrBuilder();
+ } else {
+ if (targetCase_ == 6) {
+ return (com.google.cloud.scheduler.v1beta1.HttpTarget) target_;
+ }
+ return com.google.cloud.scheduler.v1beta1.HttpTarget.getDefaultInstance();
+ }
+ }
+ /**
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1beta1.HttpTarget, com.google.cloud.scheduler.v1beta1.HttpTarget.Builder, com.google.cloud.scheduler.v1beta1.HttpTargetOrBuilder>
+ getHttpTargetFieldBuilder() {
+ if (httpTargetBuilder_ == null) {
+ if (!(targetCase_ == 6)) {
+ target_ = com.google.cloud.scheduler.v1beta1.HttpTarget.getDefaultInstance();
+ }
+ httpTargetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1beta1.HttpTarget, com.google.cloud.scheduler.v1beta1.HttpTarget.Builder, com.google.cloud.scheduler.v1beta1.HttpTargetOrBuilder>(
+ (com.google.cloud.scheduler.v1beta1.HttpTarget) target_,
+ getParentForChildren(),
+ isClean());
+ target_ = null;
+ }
+ targetCase_ = 6;
+ onChanged();;
+ return httpTargetBuilder_;
+ }
+
+ private java.lang.Object schedule_ = "";
+ /**
+ * + * Required. + * Describes the schedule on which the job will be executed. + * 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.v1beta1.RetryConfig.retry_count] > 0 and a job attempt fails, + * the job will be tried a total of [retry_count][google.cloud.scheduler.v1beta1.RetryConfig.retry_count] + * times, with exponential backoff, until the next scheduled start + * time. + * 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) + *+ * + *
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. + * Describes the schedule on which the job will be executed. + * 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.v1beta1.RetryConfig.retry_count] > 0 and a job attempt fails, + * the job will be tried a total of [retry_count][google.cloud.scheduler.v1beta1.RetryConfig.retry_count] + * times, with exponential backoff, until the next scheduled start + * time. + * 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) + *+ * + *
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. + * Describes the schedule on which the job will be executed. + * 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.v1beta1.RetryConfig.retry_count] > 0 and a job attempt fails, + * the job will be tried a total of [retry_count][google.cloud.scheduler.v1beta1.RetryConfig.retry_count] + * times, with exponential backoff, until the next scheduled start + * time. + * 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) + *+ * + *
string schedule = 20;
+ */
+ public Builder setSchedule(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ schedule_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. + * Describes the schedule on which the job will be executed. + * 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.v1beta1.RetryConfig.retry_count] > 0 and a job attempt fails, + * the job will be tried a total of [retry_count][google.cloud.scheduler.v1beta1.RetryConfig.retry_count] + * times, with exponential backoff, until the next scheduled start + * time. + * 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) + *+ * + *
string schedule = 20;
+ */
+ public Builder clearSchedule() {
+
+ schedule_ = getDefaultInstance().getSchedule();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. + * Describes the schedule on which the job will be executed. + * 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.v1beta1.RetryConfig.retry_count] > 0 and a job attempt fails, + * the job will be tried a total of [retry_count][google.cloud.scheduler.v1beta1.RetryConfig.retry_count] + * times, with exponential backoff, until the next scheduled start + * time. + * 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) + *+ * + *
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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Job.State state = 10;
+ */
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ * + * Output only. State of the job. + *+ * + *
.google.cloud.scheduler.v1beta1.Job.State state = 10;
+ */
+ public Builder setStateValue(int value) {
+ state_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Output only. State of the job. + *+ * + *
.google.cloud.scheduler.v1beta1.Job.State state = 10;
+ */
+ public com.google.cloud.scheduler.v1beta1.Job.State getState() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.scheduler.v1beta1.Job.State result = com.google.cloud.scheduler.v1beta1.Job.State.valueOf(state_);
+ return result == null ? com.google.cloud.scheduler.v1beta1.Job.State.UNRECOGNIZED : result;
+ }
+ /**
+ * + * Output only. State of the job. + *+ * + *
.google.cloud.scheduler.v1beta1.Job.State state = 10;
+ */
+ public Builder setState(com.google.cloud.scheduler.v1beta1.Job.State value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Output only. State of the job. + *+ * + *
.google.cloud.scheduler.v1beta1.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.v1beta1.RetryConfig retryConfig_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1beta1.RetryConfig, com.google.cloud.scheduler.v1beta1.RetryConfig.Builder, com.google.cloud.scheduler.v1beta1.RetryConfigOrBuilder> retryConfigBuilder_;
+ /**
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;
+ */
+ public boolean hasRetryConfig() {
+ return retryConfigBuilder_ != null || retryConfig_ != null;
+ }
+ /**
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;
+ */
+ public com.google.cloud.scheduler.v1beta1.RetryConfig getRetryConfig() {
+ if (retryConfigBuilder_ == null) {
+ return retryConfig_ == null ? com.google.cloud.scheduler.v1beta1.RetryConfig.getDefaultInstance() : retryConfig_;
+ } else {
+ return retryConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;
+ */
+ public Builder setRetryConfig(com.google.cloud.scheduler.v1beta1.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.v1beta1.RetryConfig retry_config = 19;
+ */
+ public Builder setRetryConfig(
+ com.google.cloud.scheduler.v1beta1.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.v1beta1.RetryConfig retry_config = 19;
+ */
+ public Builder mergeRetryConfig(com.google.cloud.scheduler.v1beta1.RetryConfig value) {
+ if (retryConfigBuilder_ == null) {
+ if (retryConfig_ != null) {
+ retryConfig_ =
+ com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.RetryConfig retry_config = 19;
+ */
+ public com.google.cloud.scheduler.v1beta1.RetryConfig.Builder getRetryConfigBuilder() {
+
+ onChanged();
+ return getRetryConfigFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;
+ */
+ public com.google.cloud.scheduler.v1beta1.RetryConfigOrBuilder getRetryConfigOrBuilder() {
+ if (retryConfigBuilder_ != null) {
+ return retryConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return retryConfig_ == null ?
+ com.google.cloud.scheduler.v1beta1.RetryConfig.getDefaultInstance() : retryConfig_;
+ }
+ }
+ /**
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1beta1.RetryConfig, com.google.cloud.scheduler.v1beta1.RetryConfig.Builder, com.google.cloud.scheduler.v1beta1.RetryConfigOrBuilder>
+ getRetryConfigFieldBuilder() {
+ if (retryConfigBuilder_ == null) {
+ retryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.scheduler.v1beta1.RetryConfig, com.google.cloud.scheduler.v1beta1.RetryConfig.Builder, com.google.cloud.scheduler.v1beta1.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.v1beta1.Job)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.Job)
+ private static final com.google.cloud.scheduler.v1beta1.Job DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1beta1.Job();
+ }
+
+ public static com.google.cloud.scheduler.v1beta1.Job getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * 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();
+ /**
+ * + * 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();
+
+ /**
+ * + * A human-readable description for the job. This string must not contain + * more than 500 characters. + *+ * + *
string description = 2;
+ */
+ java.lang.String getDescription();
+ /**
+ * + * 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.v1beta1.PubsubTarget pubsub_target = 4;
+ */
+ boolean hasPubsubTarget();
+ /**
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;
+ */
+ com.google.cloud.scheduler.v1beta1.PubsubTarget getPubsubTarget();
+ /**
+ * + * Pub/Sub target. + *+ * + *
.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;
+ */
+ com.google.cloud.scheduler.v1beta1.PubsubTargetOrBuilder getPubsubTargetOrBuilder();
+
+ /**
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ boolean hasAppEngineHttpTarget();
+ /**
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget getAppEngineHttpTarget();
+ /**
+ * + * App Engine HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;
+ */
+ com.google.cloud.scheduler.v1beta1.AppEngineHttpTargetOrBuilder getAppEngineHttpTargetOrBuilder();
+
+ /**
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;
+ */
+ boolean hasHttpTarget();
+ /**
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;
+ */
+ com.google.cloud.scheduler.v1beta1.HttpTarget getHttpTarget();
+ /**
+ * + * HTTP target. + *+ * + *
.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;
+ */
+ com.google.cloud.scheduler.v1beta1.HttpTargetOrBuilder getHttpTargetOrBuilder();
+
+ /**
+ * + * Required. + * Describes the schedule on which the job will be executed. + * 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.v1beta1.RetryConfig.retry_count] > 0 and a job attempt fails, + * the job will be tried a total of [retry_count][google.cloud.scheduler.v1beta1.RetryConfig.retry_count] + * times, with exponential backoff, until the next scheduled start + * time. + * 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) + *+ * + *
string schedule = 20;
+ */
+ java.lang.String getSchedule();
+ /**
+ * + * Required. + * Describes the schedule on which the job will be executed. + * 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.v1beta1.RetryConfig.retry_count] > 0 and a job attempt fails, + * the job will be tried a total of [retry_count][google.cloud.scheduler.v1beta1.RetryConfig.retry_count] + * times, with exponential backoff, until the next scheduled start + * time. + * 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) + *+ * + *
string schedule = 20;
+ */
+ com.google.protobuf.ByteString
+ getScheduleBytes();
+
+ /**
+ * + * Specifies the time zone to be used in interpreting + * [schedule][google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.Job.State state = 10;
+ */
+ int getStateValue();
+ /**
+ * + * Output only. State of the job. + *+ * + *
.google.cloud.scheduler.v1beta1.Job.State state = 10;
+ */
+ com.google.cloud.scheduler.v1beta1.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.v1beta1.RetryConfig retry_config = 19;
+ */
+ boolean hasRetryConfig();
+ /**
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;
+ */
+ com.google.cloud.scheduler.v1beta1.RetryConfig getRetryConfig();
+ /**
+ * + * Settings that determine the retry behavior. + *+ * + *
.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;
+ */
+ com.google.cloud.scheduler.v1beta1.RetryConfigOrBuilder getRetryConfigOrBuilder();
+
+ public com.google.cloud.scheduler.v1beta1.Job.TargetCase getTargetCase();
+}
diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/JobProto.java b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/JobProto.java
new file mode 100644
index 000000000000..5e8e714be621
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/JobProto.java
@@ -0,0 +1,108 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1beta1/job.proto
+
+package com.google.cloud.scheduler.v1beta1;
+
+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_v1beta1_Job_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_scheduler_v1beta1_Job_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_scheduler_v1beta1_RetryConfig_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_scheduler_v1beta1_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/v1beta1/job.pro" +
+ "to\022\036google.cloud.scheduler.v1beta1\032\034goog" +
+ "le/api/annotations.proto\032+google/cloud/s" +
+ "cheduler/v1beta1/target.proto\032\036google/pr" +
+ "otobuf/duration.proto\032\037google/protobuf/t" +
+ "imestamp.proto\032\027google/rpc/status.proto\"" +
+ "\323\005\n\003Job\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001" +
+ "(\t\022E\n\rpubsub_target\030\004 \001(\0132,.google.cloud" +
+ ".scheduler.v1beta1.PubsubTargetH\000\022U\n\026app" +
+ "_engine_http_target\030\005 \001(\01323.google.cloud" +
+ ".scheduler.v1beta1.AppEngineHttpTargetH\000" +
+ "\022A\n\013http_target\030\006 \001(\0132*.google.cloud.sch" +
+ "eduler.v1beta1.HttpTargetH\000\022\020\n\010schedule\030" +
+ "\024 \001(\t\022\021\n\ttime_zone\030\025 \001(\t\0224\n\020user_update_" +
+ "time\030\t \001(\0132\032.google.protobuf.Timestamp\0228" +
+ "\n\005state\030\n \001(\0162).google.cloud.scheduler.v" +
+ "1beta1.Job.State\022\"\n\006status\030\013 \001(\0132\022.googl" +
+ "e.rpc.Status\0221\n\rschedule_time\030\021 \001(\0132\032.go" +
+ "ogle.protobuf.Timestamp\0225\n\021last_attempt_" +
+ "time\030\022 \001(\0132\032.google.protobuf.Timestamp\022A" +
+ "\n\014retry_config\030\023 \001(\0132+.google.cloud.sche" +
+ "duler.v1beta1.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(\005By\n\"co" +
+ "m.google.cloud.scheduler.v1beta1B\010JobPro" +
+ "toP\001ZGgoogle.golang.org/genproto/googlea" +
+ "pis/cloud/scheduler/v1beta1;schedulerb\006p" +
+ "roto3"
+ };
+ 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.v1beta1.TargetProto.getDescriptor(),
+ com.google.protobuf.DurationProto.getDescriptor(),
+ com.google.protobuf.TimestampProto.getDescriptor(),
+ com.google.rpc.StatusProto.getDescriptor(),
+ }, assigner);
+ internal_static_google_cloud_scheduler_v1beta1_Job_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_scheduler_v1beta1_Job_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_scheduler_v1beta1_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_v1beta1_RetryConfig_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_scheduler_v1beta1_RetryConfig_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_scheduler_v1beta1_RetryConfig_descriptor,
+ new java.lang.String[] { "RetryCount", "MaxRetryDuration", "MinBackoffDuration", "MaxBackoffDuration", "MaxDoublings", });
+ com.google.api.AnnotationsProto.getDescriptor();
+ com.google.cloud.scheduler.v1beta1.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-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/ListJobsRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/ListJobsRequest.java
new file mode 100644
index 000000000000..1dd146fa8883
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/ListJobsRequest.java
@@ -0,0 +1,878 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1beta1/cloudscheduler.proto
+
+package com.google.cloud.scheduler.v1beta1;
+
+/**
+ * + * Request message for listing jobs using [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1beta1.ListJobsRequest} + */ +public final class ListJobsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1beta1.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.v1beta1.SchedulerProto.internal_static_google_cloud_scheduler_v1beta1_ListJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1beta1.SchedulerProto.internal_static_google_cloud_scheduler_v1beta1_ListJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1beta1.ListJobsRequest.class, com.google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsResponse.next_page_token] returned from + * the previous call to [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs]. It is an error to + * switch the value of [filter][google.cloud.scheduler.v1beta1.ListJobsRequest.filter] or + * [order_by][google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsResponse.next_page_token] returned from + * the previous call to [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs]. It is an error to + * switch the value of [filter][google.cloud.scheduler.v1beta1.ListJobsRequest.filter] or + * [order_by][google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1beta1.ListJobsRequest other = (com.google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CloudScheduler.ListJobs]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsResponse.next_page_token] returned from + * the previous call to [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs]. It is an error to + * switch the value of [filter][google.cloud.scheduler.v1beta1.ListJobsRequest.filter] or + * [order_by][google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsResponse.next_page_token] returned from + * the previous call to [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs]. It is an error to + * switch the value of [filter][google.cloud.scheduler.v1beta1.ListJobsRequest.filter] or + * [order_by][google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsResponse.next_page_token] returned from + * the previous call to [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs]. It is an error to + * switch the value of [filter][google.cloud.scheduler.v1beta1.ListJobsRequest.filter] or + * [order_by][google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsResponse.next_page_token] returned from + * the previous call to [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs]. It is an error to + * switch the value of [filter][google.cloud.scheduler.v1beta1.ListJobsRequest.filter] or + * [order_by][google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsResponse.next_page_token] returned from + * the previous call to [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs]. It is an error to + * switch the value of [filter][google.cloud.scheduler.v1beta1.ListJobsRequest.filter] or + * [order_by][google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.ListJobsRequest)
+ private static final com.google.cloud.scheduler.v1beta1.ListJobsRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1beta1.ListJobsRequest();
+ }
+
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsResponse.next_page_token] returned from + * the previous call to [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs]. It is an error to + * switch the value of [filter][google.cloud.scheduler.v1beta1.ListJobsRequest.filter] or + * [order_by][google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsResponse.next_page_token] returned from + * the previous call to [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs]. It is an error to + * switch the value of [filter][google.cloud.scheduler.v1beta1.ListJobsRequest.filter] or + * [order_by][google.cloud.scheduler.v1beta1.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-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/ListJobsResponse.java b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/ListJobsResponse.java
new file mode 100644
index 000000000000..dba1113195a6
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/ListJobsResponse.java
@@ -0,0 +1,1052 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1beta1/cloudscheduler.proto
+
+package com.google.cloud.scheduler.v1beta1;
+
+/**
+ * + * Response message for listing jobs using [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1beta1.ListJobsResponse} + */ +public final class ListJobsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1beta1.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.v1beta1.Job jobs = 1;
+ */
+ public java.util.List+ * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1beta1.Job jobs = 1;
+ */
+ public java.util.List extends com.google.cloud.scheduler.v1beta1.JobOrBuilder>
+ getJobsOrBuilderList() {
+ return jobs_;
+ }
+ /**
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1beta1.Job jobs = 1;
+ */
+ public int getJobsCount() {
+ return jobs_.size();
+ }
+ /**
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1beta1.Job jobs = 1;
+ */
+ public com.google.cloud.scheduler.v1beta1.Job getJobs(int index) {
+ return jobs_.get(index);
+ }
+ /**
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1beta1.Job jobs = 1;
+ */
+ public com.google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsRequest.page_token] field in the subsequent call to + * [ListJobs][google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsRequest.page_token] field in the subsequent call to + * [ListJobs][google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1beta1.ListJobsResponse other = (com.google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CloudScheduler.ListJobs]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1beta1.ListJobsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1beta1.Job jobs = 1;
+ */
+ public java.util.List+ * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1beta1.Job jobs = 1;
+ */
+ public int getJobsCount() {
+ if (jobsBuilder_ == null) {
+ return jobs_.size();
+ } else {
+ return jobsBuilder_.getCount();
+ }
+ }
+ /**
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1beta1.Job jobs = 1;
+ */
+ public com.google.cloud.scheduler.v1beta1.Job getJobs(int index) {
+ if (jobsBuilder_ == null) {
+ return jobs_.get(index);
+ } else {
+ return jobsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1beta1.Job jobs = 1;
+ */
+ public Builder setJobs(
+ int index, com.google.cloud.scheduler.v1beta1.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.v1beta1.Job jobs = 1;
+ */
+ public Builder setJobs(
+ int index, com.google.cloud.scheduler.v1beta1.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.v1beta1.Job jobs = 1;
+ */
+ public Builder addJobs(com.google.cloud.scheduler.v1beta1.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.v1beta1.Job jobs = 1;
+ */
+ public Builder addJobs(
+ int index, com.google.cloud.scheduler.v1beta1.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.v1beta1.Job jobs = 1;
+ */
+ public Builder addJobs(
+ com.google.cloud.scheduler.v1beta1.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.v1beta1.Job jobs = 1;
+ */
+ public Builder addJobs(
+ int index, com.google.cloud.scheduler.v1beta1.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.v1beta1.Job jobs = 1;
+ */
+ public Builder addAllJobs(
+ java.lang.Iterable extends com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Job jobs = 1;
+ */
+ public com.google.cloud.scheduler.v1beta1.Job.Builder getJobsBuilder(
+ int index) {
+ return getJobsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1beta1.Job jobs = 1;
+ */
+ public com.google.cloud.scheduler.v1beta1.JobOrBuilder getJobsOrBuilder(
+ int index) {
+ if (jobsBuilder_ == null) {
+ return jobs_.get(index); } else {
+ return jobsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1beta1.Job jobs = 1;
+ */
+ public java.util.List extends com.google.cloud.scheduler.v1beta1.JobOrBuilder>
+ getJobsOrBuilderList() {
+ if (jobsBuilder_ != null) {
+ return jobsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(jobs_);
+ }
+ }
+ /**
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1beta1.Job jobs = 1;
+ */
+ public com.google.cloud.scheduler.v1beta1.Job.Builder addJobsBuilder() {
+ return getJobsFieldBuilder().addBuilder(
+ com.google.cloud.scheduler.v1beta1.Job.getDefaultInstance());
+ }
+ /**
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1beta1.Job jobs = 1;
+ */
+ public com.google.cloud.scheduler.v1beta1.Job.Builder addJobsBuilder(
+ int index) {
+ return getJobsFieldBuilder().addBuilder(
+ index, com.google.cloud.scheduler.v1beta1.Job.getDefaultInstance());
+ }
+ /**
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsRequest.page_token] field in the subsequent call to + * [ListJobs][google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsRequest.page_token] field in the subsequent call to + * [ListJobs][google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsRequest.page_token] field in the subsequent call to + * [ListJobs][google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsRequest.page_token] field in the subsequent call to + * [ListJobs][google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsRequest.page_token] field in the subsequent call to + * [ListJobs][google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.ListJobsResponse)
+ private static final com.google.cloud.scheduler.v1beta1.ListJobsResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1beta1.ListJobsResponse();
+ }
+
+ public static com.google.cloud.scheduler.v1beta1.ListJobsResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1beta1.Job jobs = 1;
+ */
+ java.util.List+ * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1beta1.Job jobs = 1;
+ */
+ com.google.cloud.scheduler.v1beta1.Job getJobs(int index);
+ /**
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1beta1.Job jobs = 1;
+ */
+ int getJobsCount();
+ /**
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1beta1.Job jobs = 1;
+ */
+ java.util.List extends com.google.cloud.scheduler.v1beta1.JobOrBuilder>
+ getJobsOrBuilderList();
+ /**
+ * + * The list of jobs. + *+ * + *
repeated .google.cloud.scheduler.v1beta1.Job jobs = 1;
+ */
+ com.google.cloud.scheduler.v1beta1.JobOrBuilder getJobsOrBuilder(
+ int index);
+
+ /**
+ * + * A token to retrieve next page of results. Pass this value in the + * [page_token][google.cloud.scheduler.v1beta1.ListJobsRequest.page_token] field in the subsequent call to + * [ListJobs][google.cloud.scheduler.v1beta1.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.v1beta1.ListJobsRequest.page_token] field in the subsequent call to + * [ListJobs][google.cloud.scheduler.v1beta1.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-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/LocationName.java b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/LocationName.java
new file mode 100644
index 000000000000..0ec185fa9780
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/LocationName.java
@@ -0,0 +1,189 @@
+/*
+ * 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.v1beta1;
+
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import java.util.Map;
+import java.util.ArrayList;
+import java.util.List;
+
+// 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.v1beta1.CloudScheduler.PauseJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1beta1.PauseJobRequest} + */ +public final class PauseJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1beta1.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.v1beta1.SchedulerProto.internal_static_google_cloud_scheduler_v1beta1_PauseJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1beta1.SchedulerProto.internal_static_google_cloud_scheduler_v1beta1_PauseJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1beta1.PauseJobRequest.class, com.google.cloud.scheduler.v1beta1.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.v1beta1.PauseJobRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1beta1.PauseJobRequest other = (com.google.cloud.scheduler.v1beta1.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.v1beta1.PauseJobRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.PauseJobRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.PauseJobRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.PauseJobRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.PauseJobRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CloudScheduler.PauseJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1beta1.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.v1beta1.PauseJobRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.PauseJobRequest)
+ private static final com.google.cloud.scheduler.v1beta1.PauseJobRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1beta1.PauseJobRequest();
+ }
+
+ public static com.google.cloud.scheduler.v1beta1.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-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/ProjectName.java b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/ProjectName.java
new file mode 100644
index 000000000000..74fa772f2313
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/ProjectName.java
@@ -0,0 +1,166 @@
+/*
+ * 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.v1beta1;
+
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import java.util.Map;
+import java.util.ArrayList;
+import java.util.List;
+
+// 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.v1beta1.PubsubTarget} + */ +public final class PubsubTarget extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1beta1.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<
+ java.lang.String, java.lang.String> defaultEntry =
+ 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.v1beta1.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<
+ java.lang.String, java.lang.String> attributes_;
+ 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-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/ResumeJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/ResumeJobRequest.java
new file mode 100644
index 000000000000..9c0c0a58a2eb
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/ResumeJobRequest.java
@@ -0,0 +1,591 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1beta1/cloudscheduler.proto
+
+package com.google.cloud.scheduler.v1beta1;
+
+/**
+ * + * Request message for [ResumeJob][google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1beta1.ResumeJobRequest} + */ +public final class ResumeJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1beta1.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.v1beta1.SchedulerProto.internal_static_google_cloud_scheduler_v1beta1_ResumeJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1beta1.SchedulerProto.internal_static_google_cloud_scheduler_v1beta1_ResumeJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1beta1.ResumeJobRequest.class, com.google.cloud.scheduler.v1beta1.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.v1beta1.ResumeJobRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1beta1.ResumeJobRequest other = (com.google.cloud.scheduler.v1beta1.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.v1beta1.ResumeJobRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.ResumeJobRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.ResumeJobRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.ResumeJobRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.ResumeJobRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CloudScheduler.ResumeJob]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1beta1.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.v1beta1.ResumeJobRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1beta1.ResumeJobRequest)
+ private static final com.google.cloud.scheduler.v1beta1.ResumeJobRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1beta1.ResumeJobRequest();
+ }
+
+ public static com.google.cloud.scheduler.v1beta1.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-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/RetryConfig.java b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/RetryConfig.java
new file mode 100644
index 000000000000..3b787f16be72
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/RetryConfig.java
@@ -0,0 +1,1475 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/scheduler/v1beta1/job.proto
+
+package com.google.cloud.scheduler.v1beta1;
+
+/**
+ * + * 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.v1beta1.RetryConfig]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1beta1.RetryConfig} + */ +public final class RetryConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1beta1.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.v1beta1.JobProto.internal_static_google_cloud_scheduler_v1beta1_RetryConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1beta1.JobProto.internal_static_google_cloud_scheduler_v1beta1_RetryConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1beta1.RetryConfig.class, com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.RetryConfig.max_backoff_duration] up to + * [retry_count][google.cloud.scheduler.v1beta1.RetryConfig.retry_count] times. + * For example, if [min_backoff_duration][google.cloud.scheduler.v1beta1.RetryConfig.min_backoff_duration] is + * 10s, [max_backoff_duration][google.cloud.scheduler.v1beta1.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.v1beta1.RetryConfig.max_backoff_duration] until the job has + * been attempted [retry_count][google.cloud.scheduler.v1beta1.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.v1beta1.RetryConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.scheduler.v1beta1.RetryConfig other = (com.google.cloud.scheduler.v1beta1.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.v1beta1.RetryConfig parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.RetryConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.RetryConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.RetryConfig parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.RetryConfig parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.RetryConfig]. + *+ * + * Protobuf type {@code google.cloud.scheduler.v1beta1.RetryConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder